@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d8b35b2daab6
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ShellCallStatus$inboundSchema, } from "./shellcallstatus.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const OutputShellCallItemAction$inboundSchema = z.object({
|
|
11
|
+
commands: z.array(z.string()),
|
|
12
|
+
max_output_length: z.nullable(z.int()),
|
|
13
|
+
timeout_ms: z.nullable(z.int()),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"max_output_length": "maxOutputLength",
|
|
17
|
+
"timeout_ms": "timeoutMs",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function outputShellCallItemActionFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => OutputShellCallItemAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallItemAction' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const OutputShellCallItem$inboundSchema = z.object({
|
|
25
|
+
action: z.lazy(() => OutputShellCallItemAction$inboundSchema).optional(),
|
|
26
|
+
call_id: z.string(),
|
|
27
|
+
id: z.string(),
|
|
28
|
+
status: ShellCallStatus$inboundSchema,
|
|
29
|
+
type: z.literal("shell_call"),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"call_id": "callId",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export function outputShellCallItemFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => OutputShellCallItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallItem' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=outputshellcallitem.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { ShellCallStatus } from "./shellcallstatus.js";
|
|
6
|
+
export type OutcomeTimeout = {
|
|
7
|
+
type: "timeout";
|
|
8
|
+
};
|
|
9
|
+
export type OutcomeExit = {
|
|
10
|
+
exitCode: number;
|
|
11
|
+
type: "exit";
|
|
12
|
+
};
|
|
13
|
+
export type Outcome = OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
|
|
14
|
+
export type OutputShellCallOutputItemOutput = {
|
|
15
|
+
outcome: OutcomeExit | OutcomeTimeout | discriminatedUnionTypes.Unknown<"type">;
|
|
16
|
+
stderr: string;
|
|
17
|
+
stdout: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A native `shell_call_output` item matching OpenAI's Responses API shape. Carries per-command stdout, stderr, and the exit/timeout outcome.
|
|
21
|
+
*/
|
|
22
|
+
export type OutputShellCallOutputItem = {
|
|
23
|
+
callId: string;
|
|
24
|
+
id: string;
|
|
25
|
+
maxOutputLength?: number | null | undefined;
|
|
26
|
+
output: Array<OutputShellCallOutputItemOutput>;
|
|
27
|
+
/**
|
|
28
|
+
* Status of a shell call or its output.
|
|
29
|
+
*/
|
|
30
|
+
status: ShellCallStatus;
|
|
31
|
+
type: "shell_call_output";
|
|
32
|
+
};
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const OutcomeTimeout$inboundSchema: z.ZodType<OutcomeTimeout, unknown>;
|
|
35
|
+
export declare function outcomeTimeoutFromJSON(jsonString: string): SafeParseResult<OutcomeTimeout, SDKValidationError>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const OutcomeExit$inboundSchema: z.ZodType<OutcomeExit, unknown>;
|
|
38
|
+
export declare function outcomeExitFromJSON(jsonString: string): SafeParseResult<OutcomeExit, SDKValidationError>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const Outcome$inboundSchema: z.ZodType<Outcome, unknown>;
|
|
41
|
+
export declare function outcomeFromJSON(jsonString: string): SafeParseResult<Outcome, SDKValidationError>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const OutputShellCallOutputItemOutput$inboundSchema: z.ZodType<OutputShellCallOutputItemOutput, unknown>;
|
|
44
|
+
export declare function outputShellCallOutputItemOutputFromJSON(jsonString: string): SafeParseResult<OutputShellCallOutputItemOutput, SDKValidationError>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const OutputShellCallOutputItem$inboundSchema: z.ZodType<OutputShellCallOutputItem, unknown>;
|
|
47
|
+
export declare function outputShellCallOutputItemFromJSON(jsonString: string): SafeParseResult<OutputShellCallOutputItem, SDKValidationError>;
|
|
48
|
+
//# sourceMappingURL=outputshellcalloutputitem.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a933ffbb5346
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
9
|
+
import { ShellCallStatus$inboundSchema, } from "./shellcallstatus.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const OutcomeTimeout$inboundSchema = z.object({
|
|
12
|
+
type: z.literal("timeout"),
|
|
13
|
+
});
|
|
14
|
+
export function outcomeTimeoutFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => OutcomeTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutcomeTimeout' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const OutcomeExit$inboundSchema = z
|
|
19
|
+
.object({
|
|
20
|
+
exit_code: z.int(),
|
|
21
|
+
type: z.literal("exit"),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"exit_code": "exitCode",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
export function outcomeExitFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => OutcomeExit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutcomeExit' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const Outcome$inboundSchema = discriminatedUnion("type", {
|
|
32
|
+
exit: z.lazy(() => OutcomeExit$inboundSchema),
|
|
33
|
+
timeout: z.lazy(() => OutcomeTimeout$inboundSchema),
|
|
34
|
+
});
|
|
35
|
+
export function outcomeFromJSON(jsonString) {
|
|
36
|
+
return safeParse(jsonString, (x) => Outcome$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Outcome' from JSON`);
|
|
37
|
+
}
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const OutputShellCallOutputItemOutput$inboundSchema = z.object({
|
|
40
|
+
outcome: discriminatedUnion("type", {
|
|
41
|
+
exit: z.lazy(() => OutcomeExit$inboundSchema),
|
|
42
|
+
timeout: z.lazy(() => OutcomeTimeout$inboundSchema),
|
|
43
|
+
}),
|
|
44
|
+
stderr: z.string(),
|
|
45
|
+
stdout: z.string(),
|
|
46
|
+
});
|
|
47
|
+
export function outputShellCallOutputItemOutputFromJSON(jsonString) {
|
|
48
|
+
return safeParse(jsonString, (x) => OutputShellCallOutputItemOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallOutputItemOutput' from JSON`);
|
|
49
|
+
}
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const OutputShellCallOutputItem$inboundSchema = z.object({
|
|
52
|
+
call_id: z.string(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
max_output_length: z.nullable(z.int()).optional(),
|
|
55
|
+
output: z.array(z.lazy(() => OutputShellCallOutputItemOutput$inboundSchema)),
|
|
56
|
+
status: ShellCallStatus$inboundSchema,
|
|
57
|
+
type: z.literal("shell_call_output"),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
"call_id": "callId",
|
|
61
|
+
"max_output_length": "maxOutputLength",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
export function outputShellCallOutputItemFromJSON(jsonString) {
|
|
65
|
+
return safeParse(jsonString, (x) => OutputShellCallOutputItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputShellCallOutputItem' from JSON`);
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=outputshellcalloutputitem.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { ToolCallStatus } from "./toolcallstatus.js";
|
|
6
|
+
export declare const OutputSubagentServerToolItemType: {
|
|
7
|
+
readonly OpenrouterSubagent: "openrouter:subagent";
|
|
8
|
+
};
|
|
9
|
+
export type OutputSubagentServerToolItemType = ClosedEnum<typeof OutputSubagentServerToolItemType>;
|
|
10
|
+
/**
|
|
11
|
+
* An openrouter:subagent server tool output item
|
|
12
|
+
*/
|
|
13
|
+
export type OutputSubagentServerToolItem = {
|
|
14
|
+
/**
|
|
15
|
+
* Error message when the subagent task did not produce an outcome.
|
|
16
|
+
*/
|
|
17
|
+
error?: string | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Slug of the worker model that executed the task.
|
|
21
|
+
*/
|
|
22
|
+
model?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The worker model's result (the outcome text returned to the delegating model).
|
|
25
|
+
*/
|
|
26
|
+
outcome?: string | undefined;
|
|
27
|
+
status: ToolCallStatus;
|
|
28
|
+
/**
|
|
29
|
+
* The task description the delegating model sent to the worker.
|
|
30
|
+
*/
|
|
31
|
+
taskDescription?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The short task identifier the delegating model supplied.
|
|
34
|
+
*/
|
|
35
|
+
taskName?: string | undefined;
|
|
36
|
+
type: OutputSubagentServerToolItemType;
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const OutputSubagentServerToolItemType$inboundSchema: z.ZodEnum<typeof OutputSubagentServerToolItemType>;
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const OutputSubagentServerToolItemType$outboundSchema: z.ZodEnum<typeof OutputSubagentServerToolItemType>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const OutputSubagentServerToolItem$inboundSchema: z.ZodType<OutputSubagentServerToolItem, unknown>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type OutputSubagentServerToolItem$Outbound = {
|
|
46
|
+
error?: string | undefined;
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
model?: string | undefined;
|
|
49
|
+
outcome?: string | undefined;
|
|
50
|
+
status: string;
|
|
51
|
+
task_description?: string | undefined;
|
|
52
|
+
task_name?: string | undefined;
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const OutputSubagentServerToolItem$outboundSchema: z.ZodType<OutputSubagentServerToolItem$Outbound, OutputSubagentServerToolItem>;
|
|
57
|
+
export declare function outputSubagentServerToolItemToJSON(outputSubagentServerToolItem: OutputSubagentServerToolItem): string;
|
|
58
|
+
export declare function outputSubagentServerToolItemFromJSON(jsonString: string): SafeParseResult<OutputSubagentServerToolItem, SDKValidationError>;
|
|
59
|
+
//# sourceMappingURL=outputsubagentservertoolitem.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9161bc044a98
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
9
|
+
export const OutputSubagentServerToolItemType = {
|
|
10
|
+
OpenrouterSubagent: "openrouter:subagent",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const OutputSubagentServerToolItemType$inboundSchema = z.enum(OutputSubagentServerToolItemType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const OutputSubagentServerToolItemType$outboundSchema = OutputSubagentServerToolItemType$inboundSchema;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const OutputSubagentServerToolItem$inboundSchema = z.object({
|
|
18
|
+
error: z.string().optional(),
|
|
19
|
+
id: z.string().optional(),
|
|
20
|
+
model: z.string().optional(),
|
|
21
|
+
outcome: z.string().optional(),
|
|
22
|
+
status: ToolCallStatus$inboundSchema,
|
|
23
|
+
task_description: z.string().optional(),
|
|
24
|
+
task_name: z.string().optional(),
|
|
25
|
+
type: OutputSubagentServerToolItemType$inboundSchema,
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"task_description": "taskDescription",
|
|
29
|
+
"task_name": "taskName",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const OutputSubagentServerToolItem$outboundSchema = z.object({
|
|
34
|
+
error: z.string().optional(),
|
|
35
|
+
id: z.string().optional(),
|
|
36
|
+
model: z.string().optional(),
|
|
37
|
+
outcome: z.string().optional(),
|
|
38
|
+
status: ToolCallStatus$outboundSchema,
|
|
39
|
+
taskDescription: z.string().optional(),
|
|
40
|
+
taskName: z.string().optional(),
|
|
41
|
+
type: OutputSubagentServerToolItemType$outboundSchema,
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
taskDescription: "task_description",
|
|
45
|
+
taskName: "task_name",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
export function outputSubagentServerToolItemToJSON(outputSubagentServerToolItem) {
|
|
49
|
+
return JSON.stringify(OutputSubagentServerToolItem$outboundSchema.parse(outputSubagentServerToolItem));
|
|
50
|
+
}
|
|
51
|
+
export function outputSubagentServerToolItemFromJSON(jsonString) {
|
|
52
|
+
return safeParse(jsonString, (x) => OutputSubagentServerToolItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputSubagentServerToolItem' from JSON`);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=outputsubagentservertoolitem.js.map
|
|
@@ -26,7 +26,7 @@ export declare const TypeWebSearchCall: {
|
|
|
26
26
|
};
|
|
27
27
|
export type TypeWebSearchCall = ClosedEnum<typeof TypeWebSearchCall>;
|
|
28
28
|
export type OutputWebSearchCallItem = {
|
|
29
|
-
action
|
|
29
|
+
action?: OutputWebSearchCallItemActionSearch | ActionOpenPage | ActionFindInPage | discriminatedUnionTypes.Unknown<"type"> | undefined;
|
|
30
30
|
id: string;
|
|
31
31
|
status: WebSearchStatus;
|
|
32
32
|
type: TypeWebSearchCall;
|
|
@@ -83,7 +83,7 @@ export declare const TypeWebSearchCall$outboundSchema: z.ZodEnum<typeof TypeWebS
|
|
|
83
83
|
export declare const OutputWebSearchCallItem$inboundSchema: z.ZodType<OutputWebSearchCallItem, unknown>;
|
|
84
84
|
/** @internal */
|
|
85
85
|
export type OutputWebSearchCallItem$Outbound = {
|
|
86
|
-
action
|
|
86
|
+
action?: OutputWebSearchCallItemActionSearch$Outbound | ActionOpenPage$Outbound | ActionFindInPage$Outbound | undefined;
|
|
87
87
|
id: string;
|
|
88
88
|
status: string;
|
|
89
89
|
type: string;
|
|
@@ -93,7 +93,7 @@ export const OutputWebSearchCallItem$inboundSchema = z.object({
|
|
|
93
93
|
search: z.lazy(() => OutputWebSearchCallItemActionSearch$inboundSchema),
|
|
94
94
|
open_page: z.lazy(() => ActionOpenPage$inboundSchema),
|
|
95
95
|
find_in_page: z.lazy(() => ActionFindInPage$inboundSchema),
|
|
96
|
-
}),
|
|
96
|
+
}).optional(),
|
|
97
97
|
id: z.string(),
|
|
98
98
|
status: WebSearchStatus$inboundSchema,
|
|
99
99
|
type: TypeWebSearchCall$inboundSchema,
|
|
@@ -104,7 +104,7 @@ export const OutputWebSearchCallItem$outboundSchema = z.object({
|
|
|
104
104
|
z.lazy(() => OutputWebSearchCallItemActionSearch$outboundSchema),
|
|
105
105
|
z.lazy(() => ActionOpenPage$outboundSchema),
|
|
106
106
|
z.lazy(() => ActionFindInPage$outboundSchema),
|
|
107
|
-
]),
|
|
107
|
+
]).optional(),
|
|
108
108
|
id: z.string(),
|
|
109
109
|
status: WebSearchStatus$outboundSchema,
|
|
110
110
|
type: TypeWebSearchCall$outboundSchema,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { PresetStatus } from "./presetstatus.js";
|
|
5
|
+
/**
|
|
6
|
+
* A preset without version details.
|
|
7
|
+
*/
|
|
8
|
+
export type Preset = {
|
|
9
|
+
createdAt: string;
|
|
10
|
+
creatorUserId: string | null;
|
|
11
|
+
description: string | null;
|
|
12
|
+
designatedVersionId: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
slug: string;
|
|
16
|
+
/**
|
|
17
|
+
* The status of a preset.
|
|
18
|
+
*/
|
|
19
|
+
status: PresetStatus;
|
|
20
|
+
statusUpdatedAt: string | null;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
workspaceId: string | null;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const Preset$inboundSchema: z.ZodType<Preset, unknown>;
|
|
26
|
+
export declare function presetFromJSON(jsonString: string): SafeParseResult<Preset, SDKValidationError>;
|
|
27
|
+
//# sourceMappingURL=preset.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f9cbbbd64494
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { PresetStatus$inboundSchema } from "./presetstatus.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const Preset$inboundSchema = z.object({
|
|
11
|
+
created_at: z.string(),
|
|
12
|
+
creator_user_id: z.nullable(z.string()),
|
|
13
|
+
description: z.nullable(z.string()),
|
|
14
|
+
designated_version_id: z.nullable(z.string()),
|
|
15
|
+
id: z.string(),
|
|
16
|
+
name: z.string(),
|
|
17
|
+
slug: z.string(),
|
|
18
|
+
status: PresetStatus$inboundSchema,
|
|
19
|
+
status_updated_at: z.nullable(z.string()),
|
|
20
|
+
updated_at: z.string(),
|
|
21
|
+
workspace_id: z.nullable(z.string()),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"created_at": "createdAt",
|
|
25
|
+
"creator_user_id": "creatorUserId",
|
|
26
|
+
"designated_version_id": "designatedVersionId",
|
|
27
|
+
"status_updated_at": "statusUpdatedAt",
|
|
28
|
+
"updated_at": "updatedAt",
|
|
29
|
+
"workspace_id": "workspaceId",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function presetFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => Preset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Preset' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=preset.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The status of a preset.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PresetStatus: {
|
|
7
|
+
readonly Active: "active";
|
|
8
|
+
readonly Disabled: "disabled";
|
|
9
|
+
readonly Archived: "archived";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The status of a preset.
|
|
13
|
+
*/
|
|
14
|
+
export type PresetStatus = OpenEnum<typeof PresetStatus>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const PresetStatus$inboundSchema: z.ZodType<PresetStatus, unknown>;
|
|
17
|
+
//# sourceMappingURL=presetstatus.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 76e85e81f36b
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* The status of a preset.
|
|
8
|
+
*/
|
|
9
|
+
export const PresetStatus = {
|
|
10
|
+
Active: "active",
|
|
11
|
+
Disabled: "disabled",
|
|
12
|
+
Archived: "archived",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PresetStatus$inboundSchema = openEnums.inboundSchema(PresetStatus);
|
|
16
|
+
//# sourceMappingURL=presetstatus.js.map
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
4
|
import { PresetDesignatedVersion } from "./presetdesignatedversion.js";
|
|
6
|
-
|
|
7
|
-
readonly Active: "active";
|
|
8
|
-
readonly Disabled: "disabled";
|
|
9
|
-
readonly Archived: "archived";
|
|
10
|
-
};
|
|
11
|
-
export type PresetWithDesignatedVersionStatus = OpenEnum<typeof PresetWithDesignatedVersionStatus>;
|
|
5
|
+
import { PresetStatus } from "./presetstatus.js";
|
|
12
6
|
/**
|
|
13
7
|
* A preset with its currently designated version.
|
|
14
8
|
*/
|
|
@@ -16,22 +10,23 @@ export type PresetWithDesignatedVersion = {
|
|
|
16
10
|
createdAt: string;
|
|
17
11
|
creatorUserId: string | null;
|
|
18
12
|
description: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* A specific version of a preset, containing config and optional system prompt.
|
|
21
|
-
*/
|
|
22
|
-
designatedVersion: PresetDesignatedVersion | null;
|
|
23
13
|
designatedVersionId: string | null;
|
|
24
14
|
id: string;
|
|
25
15
|
name: string;
|
|
26
16
|
slug: string;
|
|
27
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The status of a preset.
|
|
19
|
+
*/
|
|
20
|
+
status: PresetStatus;
|
|
28
21
|
statusUpdatedAt: string | null;
|
|
29
22
|
updatedAt: string;
|
|
30
23
|
workspaceId: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* A specific version of a preset, containing config and optional system prompt.
|
|
26
|
+
*/
|
|
27
|
+
designatedVersion: PresetDesignatedVersion | null;
|
|
31
28
|
};
|
|
32
29
|
/** @internal */
|
|
33
|
-
export declare const PresetWithDesignatedVersionStatus$inboundSchema: z.ZodType<PresetWithDesignatedVersionStatus, unknown>;
|
|
34
|
-
/** @internal */
|
|
35
30
|
export declare const PresetWithDesignatedVersion$inboundSchema: z.ZodType<PresetWithDesignatedVersion, unknown>;
|
|
36
31
|
export declare function presetWithDesignatedVersionFromJSON(jsonString: string): SafeParseResult<PresetWithDesignatedVersion, SDKValidationError>;
|
|
37
32
|
//# sourceMappingURL=presetwithdesignatedversion.d.ts.map
|
|
@@ -5,38 +5,31 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import * as openEnums from "../types/enums.js";
|
|
9
8
|
import { PresetDesignatedVersion$inboundSchema, } from "./presetdesignatedversion.js";
|
|
10
|
-
|
|
11
|
-
Active: "active",
|
|
12
|
-
Disabled: "disabled",
|
|
13
|
-
Archived: "archived",
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const PresetWithDesignatedVersionStatus$inboundSchema = openEnums.inboundSchema(PresetWithDesignatedVersionStatus);
|
|
9
|
+
import { PresetStatus$inboundSchema } from "./presetstatus.js";
|
|
17
10
|
/** @internal */
|
|
18
11
|
export const PresetWithDesignatedVersion$inboundSchema = z.object({
|
|
19
12
|
created_at: z.string(),
|
|
20
13
|
creator_user_id: z.nullable(z.string()),
|
|
21
14
|
description: z.nullable(z.string()),
|
|
22
|
-
designated_version: z.nullable(PresetDesignatedVersion$inboundSchema),
|
|
23
15
|
designated_version_id: z.nullable(z.string()),
|
|
24
16
|
id: z.string(),
|
|
25
17
|
name: z.string(),
|
|
26
18
|
slug: z.string(),
|
|
27
|
-
status:
|
|
19
|
+
status: PresetStatus$inboundSchema,
|
|
28
20
|
status_updated_at: z.nullable(z.string()),
|
|
29
21
|
updated_at: z.string(),
|
|
30
22
|
workspace_id: z.nullable(z.string()),
|
|
23
|
+
designated_version: z.nullable(PresetDesignatedVersion$inboundSchema),
|
|
31
24
|
}).transform((v) => {
|
|
32
25
|
return remap$(v, {
|
|
33
26
|
"created_at": "createdAt",
|
|
34
27
|
"creator_user_id": "creatorUserId",
|
|
35
|
-
"designated_version": "designatedVersion",
|
|
36
28
|
"designated_version_id": "designatedVersionId",
|
|
37
29
|
"status_updated_at": "statusUpdatedAt",
|
|
38
30
|
"updated_at": "updatedAt",
|
|
39
31
|
"workspace_id": "workspaceId",
|
|
32
|
+
"designated_version": "designatedVersion",
|
|
40
33
|
});
|
|
41
34
|
});
|
|
42
35
|
export function presetWithDesignatedVersionFromJSON(jsonString) {
|
|
@@ -10,12 +10,12 @@ import { WebSearchEngineEnum } from "./websearchengineenum.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export type Preview20250311WebSearchServerTool = {
|
|
12
12
|
/**
|
|
13
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API.
|
|
13
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
14
14
|
*/
|
|
15
15
|
engine?: WebSearchEngineEnum | undefined;
|
|
16
16
|
filters?: WebSearchDomainFilter | null | undefined;
|
|
17
17
|
/**
|
|
18
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and
|
|
18
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
|
|
19
19
|
*/
|
|
20
20
|
maxResults?: number | undefined;
|
|
21
21
|
/**
|
|
@@ -10,12 +10,12 @@ import { WebSearchEngineEnum } from "./websearchengineenum.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export type PreviewWebSearchServerTool = {
|
|
12
12
|
/**
|
|
13
|
-
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API.
|
|
13
|
+
* Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
|
|
14
14
|
*/
|
|
15
15
|
engine?: WebSearchEngineEnum | undefined;
|
|
16
16
|
filters?: WebSearchDomainFilter | null | undefined;
|
|
17
17
|
/**
|
|
18
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and
|
|
18
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
|
|
19
19
|
*/
|
|
20
20
|
maxResults?: number | undefined;
|
|
21
21
|
/**
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PromptInjectionScanScope: {
|
|
7
|
+
readonly UserOnly: "user_only";
|
|
8
|
+
readonly AllMessages: "all_messages";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.
|
|
12
|
+
*/
|
|
13
|
+
export type PromptInjectionScanScope = OpenEnum<typeof PromptInjectionScanScope>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const PromptInjectionScanScope$inboundSchema: z.ZodType<PromptInjectionScanScope, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const PromptInjectionScanScope$outboundSchema: z.ZodType<string, PromptInjectionScanScope>;
|
|
18
|
+
//# sourceMappingURL=promptinjectionscanscope.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 43af25e14cf3
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults to all_messages.
|
|
8
|
+
*/
|
|
9
|
+
export const PromptInjectionScanScope = {
|
|
10
|
+
UserOnly: "user_only",
|
|
11
|
+
AllMessages: "all_messages",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const PromptInjectionScanScope$inboundSchema = openEnums.inboundSchema(PromptInjectionScanScope);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PromptInjectionScanScope$outboundSchema = openEnums.outboundSchema(PromptInjectionScanScope);
|
|
17
|
+
//# sourceMappingURL=promptinjectionscanscope.js.map
|
|
@@ -26,6 +26,7 @@ export declare const ProviderName: {
|
|
|
26
26
|
readonly Crucible: "Crucible";
|
|
27
27
|
readonly Crusoe: "Crusoe";
|
|
28
28
|
readonly Darkbloom: "Darkbloom";
|
|
29
|
+
readonly Decart: "Decart";
|
|
29
30
|
readonly DeepInfra: "DeepInfra";
|
|
30
31
|
readonly DeepSeek: "DeepSeek";
|
|
31
32
|
readonly DekaLLM: "DekaLLM";
|
|
@@ -37,7 +38,6 @@ export declare const ProviderName: {
|
|
|
37
38
|
readonly Google: "Google";
|
|
38
39
|
readonly GoogleAIStudio: "Google AI Studio";
|
|
39
40
|
readonly Groq: "Groq";
|
|
40
|
-
readonly Hyperbolic: "Hyperbolic";
|
|
41
41
|
readonly Inception: "Inception";
|
|
42
42
|
readonly Inceptron: "Inceptron";
|
|
43
43
|
readonly InferenceNet: "InferenceNet";
|
|
@@ -81,6 +81,7 @@ export declare const ProviderName: {
|
|
|
81
81
|
readonly Together: "Together";
|
|
82
82
|
readonly Upstage: "Upstage";
|
|
83
83
|
readonly Venice: "Venice";
|
|
84
|
+
readonly Wafer: "Wafer";
|
|
84
85
|
readonly WandB: "WandB";
|
|
85
86
|
readonly Xiaomi: "Xiaomi";
|
|
86
87
|
readonly XAI: "xAI";
|
|
@@ -29,6 +29,7 @@ export const ProviderName = {
|
|
|
29
29
|
Crucible: "Crucible",
|
|
30
30
|
Crusoe: "Crusoe",
|
|
31
31
|
Darkbloom: "Darkbloom",
|
|
32
|
+
Decart: "Decart",
|
|
32
33
|
DeepInfra: "DeepInfra",
|
|
33
34
|
DeepSeek: "DeepSeek",
|
|
34
35
|
DekaLLM: "DekaLLM",
|
|
@@ -40,7 +41,6 @@ export const ProviderName = {
|
|
|
40
41
|
Google: "Google",
|
|
41
42
|
GoogleAIStudio: "Google AI Studio",
|
|
42
43
|
Groq: "Groq",
|
|
43
|
-
Hyperbolic: "Hyperbolic",
|
|
44
44
|
Inception: "Inception",
|
|
45
45
|
Inceptron: "Inceptron",
|
|
46
46
|
InferenceNet: "InferenceNet",
|
|
@@ -84,6 +84,7 @@ export const ProviderName = {
|
|
|
84
84
|
Together: "Together",
|
|
85
85
|
Upstage: "Upstage",
|
|
86
86
|
Venice: "Venice",
|
|
87
|
+
Wafer: "Wafer",
|
|
87
88
|
WandB: "WandB",
|
|
88
89
|
Xiaomi: "Xiaomi",
|
|
89
90
|
XAI: "xAI",
|
|
@@ -93,6 +93,9 @@ export type ProviderOptions = {
|
|
|
93
93
|
darkbloom?: {
|
|
94
94
|
[k: string]: any | null;
|
|
95
95
|
} | undefined;
|
|
96
|
+
decart?: {
|
|
97
|
+
[k: string]: any | null;
|
|
98
|
+
} | undefined;
|
|
96
99
|
deepinfra?: {
|
|
97
100
|
[k: string]: any | null;
|
|
98
101
|
} | undefined;
|
|
@@ -330,6 +333,9 @@ export type ProviderOptions = {
|
|
|
330
333
|
venice?: {
|
|
331
334
|
[k: string]: any | null;
|
|
332
335
|
} | undefined;
|
|
336
|
+
wafer?: {
|
|
337
|
+
[k: string]: any | null;
|
|
338
|
+
} | undefined;
|
|
333
339
|
wandb?: {
|
|
334
340
|
[k: string]: any | null;
|
|
335
341
|
} | undefined;
|
|
@@ -435,6 +441,9 @@ export type ProviderOptions$Outbound = {
|
|
|
435
441
|
darkbloom?: {
|
|
436
442
|
[k: string]: any | null;
|
|
437
443
|
} | undefined;
|
|
444
|
+
decart?: {
|
|
445
|
+
[k: string]: any | null;
|
|
446
|
+
} | undefined;
|
|
438
447
|
deepinfra?: {
|
|
439
448
|
[k: string]: any | null;
|
|
440
449
|
} | undefined;
|
|
@@ -672,6 +681,9 @@ export type ProviderOptions$Outbound = {
|
|
|
672
681
|
venice?: {
|
|
673
682
|
[k: string]: any | null;
|
|
674
683
|
} | undefined;
|
|
684
|
+
wafer?: {
|
|
685
|
+
[k: string]: any | null;
|
|
686
|
+
} | undefined;
|
|
675
687
|
wandb?: {
|
|
676
688
|
[k: string]: any | null;
|
|
677
689
|
} | undefined;
|