@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,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 55adc33e474c
|
|
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 * as openEnums from "../../types/enums.js";
|
|
9
|
+
/**
|
|
10
|
+
* Granularity identifier
|
|
11
|
+
*/
|
|
12
|
+
export const GranularityName = {
|
|
13
|
+
Minute: "minute",
|
|
14
|
+
Hour: "hour",
|
|
15
|
+
Day: "day",
|
|
16
|
+
Week: "week",
|
|
17
|
+
Month: "month",
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* How this metric value should be formatted for display (e.g. percent → multiply by 100 and append %, currency → prefix with $)
|
|
21
|
+
*/
|
|
22
|
+
export const DisplayFormat = {
|
|
23
|
+
Number: "number",
|
|
24
|
+
Currency: "currency",
|
|
25
|
+
Percent: "percent",
|
|
26
|
+
Latency: "latency",
|
|
27
|
+
Throughput: "throughput",
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Operator identifier used in filter definitions
|
|
31
|
+
*/
|
|
32
|
+
export const OperatorName = {
|
|
33
|
+
Eq: "eq",
|
|
34
|
+
Neq: "neq",
|
|
35
|
+
In: "in",
|
|
36
|
+
NotIn: "not_in",
|
|
37
|
+
Gt: "gt",
|
|
38
|
+
Gte: "gte",
|
|
39
|
+
Lt: "lt",
|
|
40
|
+
Lte: "lte",
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Whether the operator expects a single value or an array
|
|
44
|
+
*/
|
|
45
|
+
export const ValueType = {
|
|
46
|
+
Scalar: "scalar",
|
|
47
|
+
Array: "array",
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const GetAnalyticsMetaRequest$outboundSchema = z.object({
|
|
51
|
+
httpReferer: z.string().optional(),
|
|
52
|
+
appTitle: z.string().optional(),
|
|
53
|
+
appCategories: z.string().optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
httpReferer: "HTTP-Referer",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
export function getAnalyticsMetaRequestToJSON(getAnalyticsMetaRequest) {
|
|
60
|
+
return JSON.stringify(GetAnalyticsMetaRequest$outboundSchema.parse(getAnalyticsMetaRequest));
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const Dimension$inboundSchema = z.object({
|
|
64
|
+
display_label: z.string(),
|
|
65
|
+
name: z.string(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
"display_label": "displayLabel",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
export function dimensionFromJSON(jsonString) {
|
|
72
|
+
return safeParse(jsonString, (x) => Dimension$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Dimension' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const GranularityName$inboundSchema = openEnums.inboundSchema(GranularityName);
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const Granularity$inboundSchema = z
|
|
78
|
+
.object({
|
|
79
|
+
display_label: z.string(),
|
|
80
|
+
name: GranularityName$inboundSchema,
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
"display_label": "displayLabel",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
export function granularityFromJSON(jsonString) {
|
|
87
|
+
return safeParse(jsonString, (x) => Granularity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Granularity' from JSON`);
|
|
88
|
+
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const DisplayFormat$inboundSchema = openEnums.inboundSchema(DisplayFormat);
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const Metric$inboundSchema = z.object({
|
|
93
|
+
display_format: DisplayFormat$inboundSchema,
|
|
94
|
+
display_label: z.string(),
|
|
95
|
+
is_rate: z.boolean(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
"display_format": "displayFormat",
|
|
100
|
+
"display_label": "displayLabel",
|
|
101
|
+
"is_rate": "isRate",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
export function metricFromJSON(jsonString) {
|
|
105
|
+
return safeParse(jsonString, (x) => Metric$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metric' from JSON`);
|
|
106
|
+
}
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const OperatorName$inboundSchema = openEnums.inboundSchema(OperatorName);
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ValueType$inboundSchema = openEnums
|
|
111
|
+
.inboundSchema(ValueType);
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const Operator$inboundSchema = z.object({
|
|
114
|
+
name: OperatorName$inboundSchema,
|
|
115
|
+
value_type: ValueType$inboundSchema,
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
"value_type": "valueType",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
export function operatorFromJSON(jsonString) {
|
|
122
|
+
return safeParse(jsonString, (x) => Operator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Operator' from JSON`);
|
|
123
|
+
}
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const GetAnalyticsMetaData$inboundSchema = z.object({
|
|
126
|
+
dimensions: z.array(z.lazy(() => Dimension$inboundSchema)),
|
|
127
|
+
granularities: z.array(z.lazy(() => Granularity$inboundSchema)),
|
|
128
|
+
metrics: z.array(z.lazy(() => Metric$inboundSchema)),
|
|
129
|
+
operators: z.array(z.lazy(() => Operator$inboundSchema)),
|
|
130
|
+
});
|
|
131
|
+
export function getAnalyticsMetaDataFromJSON(jsonString) {
|
|
132
|
+
return safeParse(jsonString, (x) => GetAnalyticsMetaData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAnalyticsMetaData' from JSON`);
|
|
133
|
+
}
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const GetAnalyticsMetaResponse$inboundSchema = z.object({
|
|
136
|
+
data: z.lazy(() => GetAnalyticsMetaData$inboundSchema),
|
|
137
|
+
});
|
|
138
|
+
export function getAnalyticsMetaResponseFromJSON(jsonString) {
|
|
139
|
+
return safeParse(jsonString, (x) => GetAnalyticsMetaResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAnalyticsMetaResponse' from JSON`);
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=getanalyticsmeta.js.map
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import * as models from "../index.js";
|
|
6
|
+
export type GetAppRankingsGlobals = {
|
|
7
|
+
/**
|
|
8
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This is used to track API usage per application.
|
|
12
|
+
*/
|
|
13
|
+
httpReferer?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*/
|
|
19
|
+
appTitle?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
*/
|
|
25
|
+
appCategories?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.
|
|
29
|
+
*/
|
|
30
|
+
export declare const GetAppRankingsCategory: {
|
|
31
|
+
readonly Coding: "coding";
|
|
32
|
+
readonly Creative: "creative";
|
|
33
|
+
readonly Productivity: "productivity";
|
|
34
|
+
readonly Entertainment: "entertainment";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.
|
|
38
|
+
*/
|
|
39
|
+
export type GetAppRankingsCategory = OpenEnum<typeof GetAppRankingsCategory>;
|
|
40
|
+
/**
|
|
41
|
+
* Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.
|
|
42
|
+
*/
|
|
43
|
+
export declare const Subcategory: {
|
|
44
|
+
readonly CliAgent: "cli-agent";
|
|
45
|
+
readonly IdeExtension: "ide-extension";
|
|
46
|
+
readonly CloudAgent: "cloud-agent";
|
|
47
|
+
readonly ProgrammingApp: "programming-app";
|
|
48
|
+
readonly NativeAppBuilder: "native-app-builder";
|
|
49
|
+
readonly CreativeWriting: "creative-writing";
|
|
50
|
+
readonly VideoGen: "video-gen";
|
|
51
|
+
readonly ImageGen: "image-gen";
|
|
52
|
+
readonly AudioGen: "audio-gen";
|
|
53
|
+
readonly Roleplay: "roleplay";
|
|
54
|
+
readonly Game: "game";
|
|
55
|
+
readonly WritingAssistant: "writing-assistant";
|
|
56
|
+
readonly GeneralChat: "general-chat";
|
|
57
|
+
readonly PersonalAgent: "personal-agent";
|
|
58
|
+
readonly Legal: "legal";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.
|
|
62
|
+
*/
|
|
63
|
+
export type Subcategory = OpenEnum<typeof Subcategory>;
|
|
64
|
+
/**
|
|
65
|
+
* `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
|
|
66
|
+
*/
|
|
67
|
+
export declare const GetAppRankingsSort: {
|
|
68
|
+
readonly Popular: "popular";
|
|
69
|
+
readonly Trending: "trending";
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
|
|
73
|
+
*/
|
|
74
|
+
export type GetAppRankingsSort = OpenEnum<typeof GetAppRankingsSort>;
|
|
75
|
+
export type GetAppRankingsRequest = {
|
|
76
|
+
/**
|
|
77
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* This is used to track API usage per application.
|
|
81
|
+
*/
|
|
82
|
+
httpReferer?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
*/
|
|
88
|
+
appTitle?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
*/
|
|
94
|
+
appCategories?: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.
|
|
97
|
+
*/
|
|
98
|
+
category?: GetAppRankingsCategory | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.
|
|
101
|
+
*/
|
|
102
|
+
subcategory?: Subcategory | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
|
|
105
|
+
*/
|
|
106
|
+
sort?: GetAppRankingsSort | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Start of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to 30 days before `end_date`. The dataset begins at 2025-01-01; earlier values are clamped forward to that floor and the resolved value is echoed in `meta.start_date`.
|
|
109
|
+
*/
|
|
110
|
+
startDate?: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* End of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to the most recent completed UTC day. Must be on or after 2025-01-01; earlier values are rejected with a 400.
|
|
113
|
+
*/
|
|
114
|
+
endDate?: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Maximum number of apps to return (1-100). Defaults to 50.
|
|
117
|
+
*/
|
|
118
|
+
limit?: number | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Number of ranked apps to skip before the first returned row (0-100). Defaults to 0. `rank` stays absolute, so the first row of `offset=50` is `rank: 51`.
|
|
121
|
+
*/
|
|
122
|
+
offset?: number | null | undefined;
|
|
123
|
+
};
|
|
124
|
+
export type GetAppRankingsResponse = {
|
|
125
|
+
result: models.AppRankingsResponse;
|
|
126
|
+
};
|
|
127
|
+
/** @internal */
|
|
128
|
+
export declare const GetAppRankingsCategory$outboundSchema: z.ZodType<string, GetAppRankingsCategory>;
|
|
129
|
+
/** @internal */
|
|
130
|
+
export declare const Subcategory$outboundSchema: z.ZodType<string, Subcategory>;
|
|
131
|
+
/** @internal */
|
|
132
|
+
export declare const GetAppRankingsSort$outboundSchema: z.ZodType<string, GetAppRankingsSort>;
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type GetAppRankingsRequest$Outbound = {
|
|
135
|
+
"HTTP-Referer"?: string | undefined;
|
|
136
|
+
appTitle?: string | undefined;
|
|
137
|
+
appCategories?: string | undefined;
|
|
138
|
+
category?: string | undefined;
|
|
139
|
+
subcategory?: string | undefined;
|
|
140
|
+
sort: string;
|
|
141
|
+
start_date?: string | undefined;
|
|
142
|
+
end_date?: string | undefined;
|
|
143
|
+
limit: number;
|
|
144
|
+
offset: number | null;
|
|
145
|
+
};
|
|
146
|
+
/** @internal */
|
|
147
|
+
export declare const GetAppRankingsRequest$outboundSchema: z.ZodType<GetAppRankingsRequest$Outbound, GetAppRankingsRequest>;
|
|
148
|
+
export declare function getAppRankingsRequestToJSON(getAppRankingsRequest: GetAppRankingsRequest): string;
|
|
149
|
+
/** @internal */
|
|
150
|
+
export declare const GetAppRankingsResponse$inboundSchema: z.ZodType<GetAppRankingsResponse, unknown>;
|
|
151
|
+
export declare function getAppRankingsResponseFromJSON(jsonString: string): SafeParseResult<GetAppRankingsResponse, SDKValidationError>;
|
|
152
|
+
//# sourceMappingURL=getapprankings.d.ts.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: edd3364e84c1
|
|
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 * as openEnums from "../../types/enums.js";
|
|
9
|
+
import * as models from "../index.js";
|
|
10
|
+
/**
|
|
11
|
+
* Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` — when both are supplied the `subcategory` must belong to the `category` group.
|
|
12
|
+
*/
|
|
13
|
+
export const GetAppRankingsCategory = {
|
|
14
|
+
Coding: "coding",
|
|
15
|
+
Creative: "creative",
|
|
16
|
+
Productivity: "productivity",
|
|
17
|
+
Entertainment: "entertainment",
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Marketplace subcategory to filter by (e.g. `cli-agent`). Takes precedence over `category` for the actual filter; when `category` is also supplied the pair must be consistent.
|
|
21
|
+
*/
|
|
22
|
+
export const Subcategory = {
|
|
23
|
+
CliAgent: "cli-agent",
|
|
24
|
+
IdeExtension: "ide-extension",
|
|
25
|
+
CloudAgent: "cloud-agent",
|
|
26
|
+
ProgrammingApp: "programming-app",
|
|
27
|
+
NativeAppBuilder: "native-app-builder",
|
|
28
|
+
CreativeWriting: "creative-writing",
|
|
29
|
+
VideoGen: "video-gen",
|
|
30
|
+
ImageGen: "image-gen",
|
|
31
|
+
AudioGen: "audio-gen",
|
|
32
|
+
Roleplay: "roleplay",
|
|
33
|
+
Game: "game",
|
|
34
|
+
WritingAssistant: "writing-assistant",
|
|
35
|
+
GeneralChat: "general-chat",
|
|
36
|
+
PersonalAgent: "personal-agent",
|
|
37
|
+
Legal: "legal",
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* `popular` ranks apps by total token volume inside the date window. `trending` ranks apps by absolute excess token growth: window volume minus the average volume of the three equal-length periods immediately preceding the window. Apps with no excess growth are omitted from `trending` results.
|
|
41
|
+
*/
|
|
42
|
+
export const GetAppRankingsSort = {
|
|
43
|
+
Popular: "popular",
|
|
44
|
+
Trending: "trending",
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const GetAppRankingsCategory$outboundSchema = openEnums.outboundSchema(GetAppRankingsCategory);
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const Subcategory$outboundSchema = openEnums.outboundSchema(Subcategory);
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const GetAppRankingsSort$outboundSchema = openEnums.outboundSchema(GetAppRankingsSort);
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const GetAppRankingsRequest$outboundSchema = z.object({
|
|
54
|
+
httpReferer: z.string().optional(),
|
|
55
|
+
appTitle: z.string().optional(),
|
|
56
|
+
appCategories: z.string().optional(),
|
|
57
|
+
category: GetAppRankingsCategory$outboundSchema.optional(),
|
|
58
|
+
subcategory: Subcategory$outboundSchema.optional(),
|
|
59
|
+
sort: GetAppRankingsSort$outboundSchema.default("popular"),
|
|
60
|
+
startDate: z.string().optional(),
|
|
61
|
+
endDate: z.string().optional(),
|
|
62
|
+
limit: z.int().default(50),
|
|
63
|
+
offset: z.nullable(z.int().default(0)),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
httpReferer: "HTTP-Referer",
|
|
67
|
+
startDate: "start_date",
|
|
68
|
+
endDate: "end_date",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
export function getAppRankingsRequestToJSON(getAppRankingsRequest) {
|
|
72
|
+
return JSON.stringify(GetAppRankingsRequest$outboundSchema.parse(getAppRankingsRequest));
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const GetAppRankingsResponse$inboundSchema = z.object({
|
|
76
|
+
Result: models.AppRankingsResponse$inboundSchema,
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"Result": "result",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
export function getAppRankingsResponseFromJSON(jsonString) {
|
|
83
|
+
return safeParse(jsonString, (x) => GetAppRankingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAppRankingsResponse' from JSON`);
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=getapprankings.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetBenchmarksArtificialAnalysisGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type GetBenchmarksArtificialAnalysisRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Max results to return (1–100, default 50).
|
|
45
|
+
*/
|
|
46
|
+
maxResults?: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type GetBenchmarksArtificialAnalysisRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
max_results: number;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const GetBenchmarksArtificialAnalysisRequest$outboundSchema: z.ZodType<GetBenchmarksArtificialAnalysisRequest$Outbound, GetBenchmarksArtificialAnalysisRequest>;
|
|
57
|
+
export declare function getBenchmarksArtificialAnalysisRequestToJSON(getBenchmarksArtificialAnalysisRequest: GetBenchmarksArtificialAnalysisRequest): string;
|
|
58
|
+
//# sourceMappingURL=getbenchmarksartificialanalysis.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1b7863e0088a
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetBenchmarksArtificialAnalysisRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
maxResults: z.int().default(50),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
maxResults: "max_results",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function getBenchmarksArtificialAnalysisRequestToJSON(getBenchmarksArtificialAnalysisRequest) {
|
|
20
|
+
return JSON.stringify(GetBenchmarksArtificialAnalysisRequest$outboundSchema.parse(getBenchmarksArtificialAnalysisRequest));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=getbenchmarksartificialanalysis.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
export type GetBenchmarksDesignArenaGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Arena to query. Defaults to `models`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const Arena: {
|
|
28
|
+
readonly Models: "models";
|
|
29
|
+
readonly Builders: "builders";
|
|
30
|
+
readonly Agents: "agents";
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Arena to query. Defaults to `models`.
|
|
34
|
+
*/
|
|
35
|
+
export type Arena = OpenEnum<typeof Arena>;
|
|
36
|
+
export type GetBenchmarksDesignArenaRequest = {
|
|
37
|
+
/**
|
|
38
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* This is used to track API usage per application.
|
|
42
|
+
*/
|
|
43
|
+
httpReferer?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
*/
|
|
49
|
+
appTitle?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
*/
|
|
55
|
+
appCategories?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Arena to query. Defaults to `models`.
|
|
58
|
+
*/
|
|
59
|
+
arena?: Arena | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Category within the arena (e.g. `codecategories`, `uicomponent`, `gamedev`, `3d`, `dataviz`, `image`, `video`, `svg`). When omitted, returns all categories.
|
|
62
|
+
*/
|
|
63
|
+
category?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Max results to return: per category when no category filter is applied (1–100, default 50).
|
|
66
|
+
*/
|
|
67
|
+
maxResults?: number | undefined;
|
|
68
|
+
};
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const Arena$outboundSchema: z.ZodType<string, Arena>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type GetBenchmarksDesignArenaRequest$Outbound = {
|
|
73
|
+
"HTTP-Referer"?: string | undefined;
|
|
74
|
+
appTitle?: string | undefined;
|
|
75
|
+
appCategories?: string | undefined;
|
|
76
|
+
arena: string;
|
|
77
|
+
category?: string | undefined;
|
|
78
|
+
max_results: number;
|
|
79
|
+
};
|
|
80
|
+
/** @internal */
|
|
81
|
+
export declare const GetBenchmarksDesignArenaRequest$outboundSchema: z.ZodType<GetBenchmarksDesignArenaRequest$Outbound, GetBenchmarksDesignArenaRequest>;
|
|
82
|
+
export declare function getBenchmarksDesignArenaRequestToJSON(getBenchmarksDesignArenaRequest: GetBenchmarksDesignArenaRequest): string;
|
|
83
|
+
//# sourceMappingURL=getbenchmarksdesignarena.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 86e27de57b33
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* Arena to query. Defaults to `models`.
|
|
10
|
+
*/
|
|
11
|
+
export const Arena = {
|
|
12
|
+
Models: "models",
|
|
13
|
+
Builders: "builders",
|
|
14
|
+
Agents: "agents",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Arena$outboundSchema = openEnums
|
|
18
|
+
.outboundSchema(Arena);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetBenchmarksDesignArenaRequest$outboundSchema = z.object({
|
|
21
|
+
httpReferer: z.string().optional(),
|
|
22
|
+
appTitle: z.string().optional(),
|
|
23
|
+
appCategories: z.string().optional(),
|
|
24
|
+
arena: Arena$outboundSchema.default("models"),
|
|
25
|
+
category: z.string().optional(),
|
|
26
|
+
maxResults: z.int().default(50),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
httpReferer: "HTTP-Referer",
|
|
30
|
+
maxResults: "max_results",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
export function getBenchmarksDesignArenaRequestToJSON(getBenchmarksDesignArenaRequest) {
|
|
34
|
+
return JSON.stringify(GetBenchmarksDesignArenaRequest$outboundSchema.parse(getBenchmarksDesignArenaRequest));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=getbenchmarksdesignarena.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetFileMetadataGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type GetFileMetadataRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
fileId: string;
|
|
44
|
+
/**
|
|
45
|
+
* Workspace to scope the request to. Defaults to the caller’s default workspace.
|
|
46
|
+
*/
|
|
47
|
+
workspaceId?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type GetFileMetadataRequest$Outbound = {
|
|
51
|
+
"HTTP-Referer"?: string | undefined;
|
|
52
|
+
appTitle?: string | undefined;
|
|
53
|
+
appCategories?: string | undefined;
|
|
54
|
+
file_id: string;
|
|
55
|
+
workspace_id?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const GetFileMetadataRequest$outboundSchema: z.ZodType<GetFileMetadataRequest$Outbound, GetFileMetadataRequest>;
|
|
59
|
+
export declare function getFileMetadataRequestToJSON(getFileMetadataRequest: GetFileMetadataRequest): string;
|
|
60
|
+
//# sourceMappingURL=getfilemetadata.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: accbd0757579
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetFileMetadataRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
fileId: z.string(),
|
|
13
|
+
workspaceId: z.string().optional(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
fileId: "file_id",
|
|
18
|
+
workspaceId: "workspace_id",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function getFileMetadataRequestToJSON(getFileMetadataRequest) {
|
|
22
|
+
return JSON.stringify(GetFileMetadataRequest$outboundSchema.parse(getFileMetadataRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=getfilemetadata.js.map
|