@openrouter/sdk 0.13.7 → 0.13.14
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 +3 -9
- package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
- package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
- package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
- package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
- package/esm/funcs/imagesGenerate.d.ts +30 -0
- package/esm/funcs/imagesGenerate.js +95 -0
- package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
- package/esm/funcs/imagesListModelEndpoints.js +107 -0
- package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
- package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
- package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
- package/esm/funcs/workspacesDeleteBudget.js +107 -0
- package/esm/funcs/workspacesListBudgets.d.ts +19 -0
- package/esm/funcs/workspacesListBudgets.js +103 -0
- package/esm/funcs/workspacesSetBudget.d.ts +19 -0
- package/esm/funcs/workspacesSetBudget.js +110 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/advisorreasoning.d.ts +1 -0
- package/esm/models/advisorreasoning.js +1 -0
- package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
- package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
- package/esm/models/anthropiccompactionusageiteration.js +35 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
- package/esm/models/anthropicdocumentblockparam.js +3 -0
- package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
- package/esm/models/anthropicfiledocumentsource.js +19 -0
- package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
- package/esm/models/anthropiciterationcachecreation.js +21 -0
- package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicmessageusageiteration.js +36 -0
- package/esm/models/anthropicspeed.d.ts +10 -0
- package/esm/models/anthropicspeed.js +12 -0
- package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
- package/esm/models/anthropicunknownusageiteration.js +30 -0
- package/esm/models/anthropicusageiteration.d.ts +12 -0
- package/esm/models/anthropicusageiteration.js +21 -0
- package/esm/models/apierrortype.d.ts +41 -0
- package/esm/models/apierrortype.js +40 -0
- package/esm/models/booleancapability.d.ts +13 -0
- package/esm/models/booleancapability.js +14 -0
- package/esm/models/byokproviderslug.d.ts +4 -0
- package/esm/models/byokproviderslug.js +4 -0
- package/esm/models/capabilitydescriptor.d.ts +15 -0
- package/esm/models/capabilitydescriptor.js +19 -0
- package/esm/models/chatrequest.d.ts +2 -0
- package/esm/models/chatrequest.js +2 -0
- package/esm/models/chatstreamchunk.d.ts +25 -4
- package/esm/models/chatstreamchunk.js +19 -4
- package/esm/models/chatusage.d.ts +32 -8
- package/esm/models/chatusage.js +25 -8
- package/esm/models/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/contentpartimage.d.ts +9 -2
- package/esm/models/contentpartimage.js +6 -1
- package/esm/models/debugevent.d.ts +42 -0
- package/esm/models/debugevent.js +58 -0
- package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
- package/esm/models/deleteworkspacebudgetresponse.js +14 -0
- package/esm/models/enumcapability.d.ts +14 -0
- package/esm/models/enumcapability.js +15 -0
- package/esm/models/fusionplugin.d.ts +1 -0
- package/esm/models/fusionplugin.js +1 -0
- package/esm/models/fusionservertoolconfig.d.ts +8 -1
- package/esm/models/fusionservertoolconfig.js +4 -0
- package/esm/models/imageendpoint.d.ts +41 -0
- package/esm/models/imageendpoint.js +33 -0
- package/esm/models/imagegencompletedevent.d.ts +29 -0
- package/esm/models/imagegencompletedevent.js +23 -0
- package/esm/models/imagegenerationrequest.d.ts +914 -0
- package/esm/models/imagegenerationrequest.js +267 -0
- package/esm/models/imagegenerationresponse.d.ts +34 -0
- package/esm/models/imagegenerationresponse.js +29 -0
- package/esm/models/imagegenerationservertool.d.ts +15 -15
- package/esm/models/imagegenerationservertool.js +15 -17
- package/esm/models/imagegenerationusage.d.ts +119 -0
- package/esm/models/imagegenerationusage.js +93 -0
- package/esm/models/imagegenpartialimageevent.d.ts +24 -0
- package/esm/models/imagegenpartialimageevent.js +22 -0
- package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
- package/esm/models/imagegenstreamerrorevent.js +25 -0
- package/esm/models/imagemodelarchitecture.d.ts +19 -0
- package/esm/models/imagemodelarchitecture.js +23 -0
- package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
- package/esm/models/imagemodelendpointsresponse.js +16 -0
- package/esm/models/imagemodellistitem.d.ts +42 -0
- package/esm/models/imagemodellistitem.js +29 -0
- package/esm/models/imagemodelslistresponse.d.ts +14 -0
- package/esm/models/imagemodelslistresponse.js +15 -0
- package/esm/models/imageoutputmodality.d.ts +16 -0
- package/esm/models/imageoutputmodality.js +18 -0
- package/esm/models/imagepricingentry.d.ts +35 -0
- package/esm/models/imagepricingentry.js +41 -0
- package/esm/models/imagestreamingresponse.d.ts +18 -0
- package/esm/models/imagestreamingresponse.js +43 -0
- package/esm/models/index.d.ts +44 -7
- package/esm/models/index.js +44 -7
- package/esm/models/inputreference.d.ts +6 -2
- package/esm/models/inputreference.js +1 -1
- package/esm/models/legacywebsearchservertool.d.ts +1 -1
- package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
- package/esm/models/listworkspacebudgetsresponse.js +15 -0
- package/esm/models/messagesrequest.d.ts +6 -6
- package/esm/models/messagesrequest.js +4 -5
- package/esm/models/model.d.ts +5 -0
- package/esm/models/model.js +2 -0
- package/esm/models/modelreasoning.d.ts +49 -0
- package/esm/models/modelreasoning.js +42 -0
- package/esm/models/observabilityarizedestination.d.ts +3 -0
- package/esm/models/openresponsesresult.d.ts +5 -0
- package/esm/models/openresponsesresult.js +3 -0
- package/esm/models/operations/createembeddings.d.ts +19 -0
- package/esm/models/operations/createembeddings.js +20 -0
- package/esm/models/operations/createimages.d.ts +63 -0
- package/esm/models/operations/createimages.js +44 -0
- package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
- package/esm/models/operations/deleteworkspacebudget.js +23 -0
- package/esm/models/operations/getbenchmarks.d.ts +120 -0
- package/esm/models/operations/getbenchmarks.js +60 -0
- package/esm/models/operations/getmodels.d.ts +5 -3
- package/esm/models/operations/getmodels.js +3 -1
- package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
- package/esm/models/operations/gettaskclassifications.js +29 -0
- package/esm/models/operations/index.d.ts +8 -2
- package/esm/models/operations/index.js +8 -2
- package/esm/models/operations/listbyokkeys.d.ts +4 -0
- package/esm/models/operations/listbyokkeys.js +4 -0
- package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
- package/esm/models/operations/listimagemodelendpoints.js +22 -0
- package/esm/models/operations/listimagemodels.d.ts +53 -0
- package/esm/models/operations/listimagemodels.js +20 -0
- package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
- package/esm/models/operations/listworkspacebudgets.js +21 -0
- package/esm/models/operations/queryanalytics.d.ts +7 -3
- package/esm/models/operations/queryanalytics.js +1 -0
- package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
- package/esm/models/operations/upsertworkspacebudget.js +25 -0
- package/esm/models/preview20250311websearchservertool.d.ts +1 -1
- package/esm/models/previewwebsearchservertool.d.ts +1 -1
- package/esm/models/providername.d.ts +4 -0
- package/esm/models/providername.js +4 -0
- package/esm/models/provideroptions.d.ts +25 -1
- package/esm/models/provideroptions.js +6 -0
- package/esm/models/providerresponse.d.ts +4 -0
- package/esm/models/providerresponse.js +4 -0
- package/esm/models/rangecapability.d.ts +15 -0
- package/esm/models/rangecapability.js +16 -0
- package/esm/models/reasoningeffort.d.ts +1 -0
- package/esm/models/reasoningeffort.js +1 -0
- package/esm/models/responsesrequest.d.ts +6 -0
- package/esm/models/responsesrequest.js +2 -0
- package/esm/models/speechrequest.d.ts +1 -1
- package/esm/models/streamevents.d.ts +2 -1
- package/esm/models/streamevents.js +2 -0
- package/esm/models/sttrequest.d.ts +1 -1
- package/esm/models/subagentreasoning.d.ts +1 -0
- package/esm/models/subagentreasoning.js +1 -0
- package/esm/models/taskclassificationitem.d.ts +42 -0
- package/esm/models/taskclassificationitem.js +32 -0
- package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
- package/esm/models/taskclassificationmacrocategory.js +23 -0
- package/esm/models/taskclassificationmodel.d.ts +21 -0
- package/esm/models/taskclassificationmodel.js +22 -0
- package/esm/models/taskclassificationresponse.d.ts +33 -0
- package/esm/models/taskclassificationresponse.js +33 -0
- package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
- package/esm/models/unifiedbenchmarkpricing.js +15 -0
- package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
- package/esm/models/unifiedbenchmarksaaitem.js +30 -0
- package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
- package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
- package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
- package/esm/models/unifiedbenchmarksmeta.js +46 -0
- package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
- package/esm/models/unifiedbenchmarksresponse.js +30 -0
- package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
- package/esm/models/upsertworkspacebudgetrequest.js +18 -0
- package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
- package/esm/models/upsertworkspacebudgetresponse.js +15 -0
- package/esm/models/videogenerationrequest.d.ts +39 -15
- package/esm/models/videogenerationrequest.js +17 -11
- package/esm/models/websearchconfig.d.ts +1 -1
- package/esm/models/websearchservertool.d.ts +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +1 -1
- package/esm/models/workspacebudget.d.ts +48 -0
- package/esm/models/workspacebudget.js +39 -0
- package/esm/models/workspacebudgetinterval.d.ts +18 -0
- package/esm/models/workspacebudgetinterval.js +17 -0
- package/esm/sdk/benchmarks.d.ts +13 -0
- package/esm/sdk/benchmarks.js +19 -0
- package/esm/sdk/classifications.d.ts +31 -0
- package/esm/sdk/classifications.js +37 -0
- package/esm/sdk/datasets.d.ts +0 -14
- package/esm/sdk/datasets.js +0 -20
- package/esm/sdk/images.d.ts +38 -0
- package/esm/sdk/images.js +33 -0
- package/esm/sdk/sdk.d.ts +9 -0
- package/esm/sdk/sdk.js +12 -0
- package/esm/sdk/workspaces.d.ts +21 -0
- package/esm/sdk/workspaces.js +30 -0
- package/jsr.json +1 -1
- package/package.json +7 -7
- package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
- package/esm/models/benchmarkpricing.js +0 -15
- package/esm/models/benchmarksaaitem.js +0 -29
- package/esm/models/benchmarksaameta.d.ts +0 -70
- package/esm/models/benchmarksaameta.js +0 -50
- package/esm/models/benchmarksaaresponse.d.ts +0 -13
- package/esm/models/benchmarksaaresponse.js +0 -17
- package/esm/models/benchmarksdameta.d.ts +0 -98
- package/esm/models/benchmarksdameta.js +0 -62
- package/esm/models/benchmarksdaresponse.d.ts +0 -13
- package/esm/models/benchmarksdaresponse.js +0 -17
- package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
- package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* Provider-specific options keyed by provider slug.
|
|
3
|
+
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
4
4
|
*/
|
|
5
5
|
export type ProviderOptions = {
|
|
6
6
|
oneai?: {
|
|
@@ -138,6 +138,9 @@ export type ProviderOptions = {
|
|
|
138
138
|
groq?: {
|
|
139
139
|
[k: string]: any | null;
|
|
140
140
|
} | undefined;
|
|
141
|
+
heygen?: {
|
|
142
|
+
[k: string]: any | null;
|
|
143
|
+
} | undefined;
|
|
141
144
|
huggingface?: {
|
|
142
145
|
[k: string]: any | null;
|
|
143
146
|
} | undefined;
|
|
@@ -153,6 +156,9 @@ export type ProviderOptions = {
|
|
|
153
156
|
inceptron?: {
|
|
154
157
|
[k: string]: any | null;
|
|
155
158
|
} | undefined;
|
|
159
|
+
inferactVllm?: {
|
|
160
|
+
[k: string]: any | null;
|
|
161
|
+
} | undefined;
|
|
156
162
|
inferenceNet?: {
|
|
157
163
|
[k: string]: any | null;
|
|
158
164
|
} | undefined;
|
|
@@ -285,6 +291,9 @@ export type ProviderOptions = {
|
|
|
285
291
|
replicate?: {
|
|
286
292
|
[k: string]: any | null;
|
|
287
293
|
} | undefined;
|
|
294
|
+
sakanaAi?: {
|
|
295
|
+
[k: string]: any | null;
|
|
296
|
+
} | undefined;
|
|
288
297
|
sambanova?: {
|
|
289
298
|
[k: string]: any | null;
|
|
290
299
|
} | undefined;
|
|
@@ -318,6 +327,9 @@ export type ProviderOptions = {
|
|
|
318
327
|
targon?: {
|
|
319
328
|
[k: string]: any | null;
|
|
320
329
|
} | undefined;
|
|
330
|
+
tenstorrent?: {
|
|
331
|
+
[k: string]: any | null;
|
|
332
|
+
} | undefined;
|
|
321
333
|
together?: {
|
|
322
334
|
[k: string]: any | null;
|
|
323
335
|
} | undefined;
|
|
@@ -486,6 +498,9 @@ export type ProviderOptions$Outbound = {
|
|
|
486
498
|
groq?: {
|
|
487
499
|
[k: string]: any | null;
|
|
488
500
|
} | undefined;
|
|
501
|
+
heygen?: {
|
|
502
|
+
[k: string]: any | null;
|
|
503
|
+
} | undefined;
|
|
489
504
|
huggingface?: {
|
|
490
505
|
[k: string]: any | null;
|
|
491
506
|
} | undefined;
|
|
@@ -501,6 +516,9 @@ export type ProviderOptions$Outbound = {
|
|
|
501
516
|
inceptron?: {
|
|
502
517
|
[k: string]: any | null;
|
|
503
518
|
} | undefined;
|
|
519
|
+
"inferact-vllm"?: {
|
|
520
|
+
[k: string]: any | null;
|
|
521
|
+
} | undefined;
|
|
504
522
|
"inference-net"?: {
|
|
505
523
|
[k: string]: any | null;
|
|
506
524
|
} | undefined;
|
|
@@ -633,6 +651,9 @@ export type ProviderOptions$Outbound = {
|
|
|
633
651
|
replicate?: {
|
|
634
652
|
[k: string]: any | null;
|
|
635
653
|
} | undefined;
|
|
654
|
+
"sakana-ai"?: {
|
|
655
|
+
[k: string]: any | null;
|
|
656
|
+
} | undefined;
|
|
636
657
|
sambanova?: {
|
|
637
658
|
[k: string]: any | null;
|
|
638
659
|
} | undefined;
|
|
@@ -666,6 +687,9 @@ export type ProviderOptions$Outbound = {
|
|
|
666
687
|
targon?: {
|
|
667
688
|
[k: string]: any | null;
|
|
668
689
|
} | undefined;
|
|
690
|
+
tenstorrent?: {
|
|
691
|
+
[k: string]: any | null;
|
|
692
|
+
} | undefined;
|
|
669
693
|
together?: {
|
|
670
694
|
[k: string]: any | null;
|
|
671
695
|
} | undefined;
|
|
@@ -51,11 +51,13 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
51
51
|
googleVertex: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
52
52
|
gopomelo: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
53
53
|
groq: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
54
|
+
heygen: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
54
55
|
huggingface: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
55
56
|
hyperbolic: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
56
57
|
hyperbolicQuantized: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
57
58
|
inception: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
58
59
|
inceptron: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
60
|
+
inferactVllm: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
59
61
|
inferenceNet: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
60
62
|
infermatic: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
61
63
|
inflection: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -100,6 +102,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
100
102
|
reka: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
101
103
|
relace: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
102
104
|
replicate: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
105
|
+
sakanaAi: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
103
106
|
sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
104
107
|
sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
105
108
|
seed: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -111,6 +114,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
111
114
|
streamlake: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
112
115
|
switchpoint: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
113
116
|
targon: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
117
|
+
tenstorrent: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
114
118
|
together: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
115
119
|
togetherLite: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
116
120
|
ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -134,12 +138,14 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
134
138
|
googleAiStudio: "google-ai-studio",
|
|
135
139
|
googleVertex: "google-vertex",
|
|
136
140
|
hyperbolicQuantized: "hyperbolic-quantized",
|
|
141
|
+
inferactVllm: "inferact-vllm",
|
|
137
142
|
inferenceNet: "inference-net",
|
|
138
143
|
ioNet: "io-net",
|
|
139
144
|
lynnPrivate: "lynn-private",
|
|
140
145
|
mancerOld: "mancer-old",
|
|
141
146
|
nexAgi: "nex-agi",
|
|
142
147
|
openInference: "open-inference",
|
|
148
|
+
sakanaAi: "sakana-ai",
|
|
143
149
|
sambanovaCloaked: "sambanova-cloaked",
|
|
144
150
|
sfCompute: "sf-compute",
|
|
145
151
|
togetherLite: "together-lite",
|
|
@@ -72,12 +72,14 @@ export declare const ProviderResponseProviderName: {
|
|
|
72
72
|
readonly Google: "Google";
|
|
73
73
|
readonly GoogleAIStudio: "Google AI Studio";
|
|
74
74
|
readonly Groq: "Groq";
|
|
75
|
+
readonly HeyGen: "HeyGen";
|
|
75
76
|
readonly Inception: "Inception";
|
|
76
77
|
readonly Inceptron: "Inceptron";
|
|
77
78
|
readonly InferenceNet: "InferenceNet";
|
|
78
79
|
readonly Ionstream: "Ionstream";
|
|
79
80
|
readonly Infermatic: "Infermatic";
|
|
80
81
|
readonly IoNet: "Io Net";
|
|
82
|
+
readonly InferactVLLM: "Inferact vLLM";
|
|
81
83
|
readonly Inflection: "Inflection";
|
|
82
84
|
readonly Liquid: "Liquid";
|
|
83
85
|
readonly Mara: "Mara";
|
|
@@ -104,6 +106,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
104
106
|
readonly Recraft: "Recraft";
|
|
105
107
|
readonly Reka: "Reka";
|
|
106
108
|
readonly Relace: "Relace";
|
|
109
|
+
readonly SakanaAI: "Sakana AI";
|
|
107
110
|
readonly SambaNova: "SambaNova";
|
|
108
111
|
readonly Seed: "Seed";
|
|
109
112
|
readonly SiliconFlow: "SiliconFlow";
|
|
@@ -112,6 +115,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
112
115
|
readonly Stealth: "Stealth";
|
|
113
116
|
readonly StreamLake: "StreamLake";
|
|
114
117
|
readonly Switchpoint: "Switchpoint";
|
|
118
|
+
readonly Tenstorrent: "Tenstorrent";
|
|
115
119
|
readonly Together: "Together";
|
|
116
120
|
readonly Upstage: "Upstage";
|
|
117
121
|
readonly Venice: "Venice";
|
|
@@ -76,12 +76,14 @@ export const ProviderResponseProviderName = {
|
|
|
76
76
|
Google: "Google",
|
|
77
77
|
GoogleAIStudio: "Google AI Studio",
|
|
78
78
|
Groq: "Groq",
|
|
79
|
+
HeyGen: "HeyGen",
|
|
79
80
|
Inception: "Inception",
|
|
80
81
|
Inceptron: "Inceptron",
|
|
81
82
|
InferenceNet: "InferenceNet",
|
|
82
83
|
Ionstream: "Ionstream",
|
|
83
84
|
Infermatic: "Infermatic",
|
|
84
85
|
IoNet: "Io Net",
|
|
86
|
+
InferactVLLM: "Inferact vLLM",
|
|
85
87
|
Inflection: "Inflection",
|
|
86
88
|
Liquid: "Liquid",
|
|
87
89
|
Mara: "Mara",
|
|
@@ -108,6 +110,7 @@ export const ProviderResponseProviderName = {
|
|
|
108
110
|
Recraft: "Recraft",
|
|
109
111
|
Reka: "Reka",
|
|
110
112
|
Relace: "Relace",
|
|
113
|
+
SakanaAI: "Sakana AI",
|
|
111
114
|
SambaNova: "SambaNova",
|
|
112
115
|
Seed: "Seed",
|
|
113
116
|
SiliconFlow: "SiliconFlow",
|
|
@@ -116,6 +119,7 @@ export const ProviderResponseProviderName = {
|
|
|
116
119
|
Stealth: "Stealth",
|
|
117
120
|
StreamLake: "StreamLake",
|
|
118
121
|
Switchpoint: "Switchpoint",
|
|
122
|
+
Tenstorrent: "Tenstorrent",
|
|
119
123
|
Together: "Together",
|
|
120
124
|
Upstage: "Upstage",
|
|
121
125
|
Venice: "Venice",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* A parameter that accepts any value within an inclusive numeric range.
|
|
6
|
+
*/
|
|
7
|
+
export type RangeCapability = {
|
|
8
|
+
max: number;
|
|
9
|
+
min: number;
|
|
10
|
+
type: "range";
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const RangeCapability$inboundSchema: z.ZodType<RangeCapability, unknown>;
|
|
14
|
+
export declare function rangeCapabilityFromJSON(jsonString: string): SafeParseResult<RangeCapability, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=rangecapability.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2a301274c1ac
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const RangeCapability$inboundSchema = z.object({
|
|
9
|
+
max: z.number(),
|
|
10
|
+
min: z.number(),
|
|
11
|
+
type: z.literal("range"),
|
|
12
|
+
});
|
|
13
|
+
export function rangeCapabilityFromJSON(jsonString) {
|
|
14
|
+
return safeParse(jsonString, (x) => RangeCapability$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RangeCapability' from JSON`);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=rangecapability.js.map
|
|
@@ -6,6 +6,7 @@ import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatc
|
|
|
6
6
|
import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
|
|
7
7
|
import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
|
|
8
8
|
import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
|
|
9
|
+
import { ChatDebugOptions, ChatDebugOptions$Outbound } from "./chatdebugoptions.js";
|
|
9
10
|
import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
|
|
10
11
|
import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js";
|
|
11
12
|
import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js";
|
|
@@ -91,6 +92,10 @@ export type ResponsesRequest = {
|
|
|
91
92
|
* Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.
|
|
92
93
|
*/
|
|
93
94
|
cacheControl?: AnthropicCacheControlDirective | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Debug options for inspecting request transformations (streaming only)
|
|
97
|
+
*/
|
|
98
|
+
debug?: ChatDebugOptions | undefined;
|
|
94
99
|
frequencyPenalty?: number | null | undefined;
|
|
95
100
|
/**
|
|
96
101
|
* Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details.
|
|
@@ -224,6 +229,7 @@ export declare function responsesRequestToolUnionToJSON(responsesRequestToolUnio
|
|
|
224
229
|
export type ResponsesRequest$Outbound = {
|
|
225
230
|
background?: boolean | null | undefined;
|
|
226
231
|
cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
|
|
232
|
+
debug?: ChatDebugOptions$Outbound | undefined;
|
|
227
233
|
frequency_penalty?: number | null | undefined;
|
|
228
234
|
image_config?: {
|
|
229
235
|
[k: string]: ImageConfig$Outbound;
|
|
@@ -11,6 +11,7 @@ import { ApplyPatchServerTool$outboundSchema, } from "./applypatchservertool.js"
|
|
|
11
11
|
import { ApplyPatchServerToolOpenRouter$outboundSchema, } from "./applypatchservertoolopenrouter.js";
|
|
12
12
|
import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
|
|
13
13
|
import { BashServerTool$outboundSchema, } from "./bashservertool.js";
|
|
14
|
+
import { ChatDebugOptions$outboundSchema, } from "./chatdebugoptions.js";
|
|
14
15
|
import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
|
|
15
16
|
import { CodeInterpreterServerTool$outboundSchema, } from "./codeinterpreterservertool.js";
|
|
16
17
|
import { CodexLocalShellTool$outboundSchema, } from "./codexlocalshelltool.js";
|
|
@@ -121,6 +122,7 @@ export function responsesRequestToolUnionToJSON(responsesRequestToolUnion) {
|
|
|
121
122
|
export const ResponsesRequest$outboundSchema = z.object({
|
|
122
123
|
background: z.nullable(z.boolean()).optional(),
|
|
123
124
|
cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
|
|
125
|
+
debug: ChatDebugOptions$outboundSchema.optional(),
|
|
124
126
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
125
127
|
imageConfig: z.record(z.string(), ImageConfig$outboundSchema).optional(),
|
|
126
128
|
include: z.nullable(z.array(ResponseIncludesEnum$outboundSchema)).optional(),
|
|
@@ -6,7 +6,7 @@ import { ProviderOptions, ProviderOptions$Outbound } from "./provideroptions.js"
|
|
|
6
6
|
*/
|
|
7
7
|
export type SpeechRequestProvider = {
|
|
8
8
|
/**
|
|
9
|
-
* Provider-specific options keyed by provider slug.
|
|
9
|
+
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
10
10
|
*/
|
|
11
11
|
options?: ProviderOptions | undefined;
|
|
12
12
|
};
|
|
@@ -8,6 +8,7 @@ import { ContentPartAddedEvent } from "./contentpartaddedevent.js";
|
|
|
8
8
|
import { ContentPartDoneEvent } from "./contentpartdoneevent.js";
|
|
9
9
|
import { CustomToolCallInputDeltaEvent } from "./customtoolcallinputdeltaevent.js";
|
|
10
10
|
import { CustomToolCallInputDoneEvent } from "./customtoolcallinputdoneevent.js";
|
|
11
|
+
import { DebugEvent } from "./debugevent.js";
|
|
11
12
|
import { ErrorEvent } from "./errorevent.js";
|
|
12
13
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
14
|
import { FunctionCallArgsDeltaEvent } from "./functioncallargsdeltaevent.js";
|
|
@@ -48,7 +49,7 @@ import { WebSearchCallSearchingEvent } from "./websearchcallsearchingevent.js";
|
|
|
48
49
|
/**
|
|
49
50
|
* Union of all possible event types emitted during response streaming
|
|
50
51
|
*/
|
|
51
|
-
export type StreamEvents = ErrorEvent | ApplyPatchCallOperationDiffDeltaEvent | ApplyPatchCallOperationDiffDoneEvent | StreamEventsResponseCompleted | ContentPartAddedEvent | ContentPartDoneEvent | OpenResponsesCreatedEvent | CustomToolCallInputDeltaEvent | CustomToolCallInputDoneEvent | StreamEventsResponseFailed | FunctionCallArgsDeltaEvent | FunctionCallArgsDoneEvent | FusionCallAnalysisCompletedEvent | FusionCallAnalysisInProgressEvent | FusionCallCompletedEvent | FusionCallInProgressEvent | FusionCallPanelAddedEvent | FusionCallPanelCompletedEvent | FusionCallPanelDeltaEvent | FusionCallPanelFailedEvent | FusionCallPanelReasoningDeltaEvent | ImageGenCallCompletedEvent | ImageGenCallGeneratingEvent | ImageGenCallInProgressEvent | ImageGenCallPartialImageEvent | OpenResponsesInProgressEvent | StreamEventsResponseIncomplete | StreamEventsResponseOutputItemAdded | StreamEventsResponseOutputItemDone | AnnotationAddedEvent | TextDeltaEvent | TextDoneEvent | ReasoningSummaryPartAddedEvent | ReasoningSummaryPartDoneEvent | ReasoningSummaryTextDeltaEvent | ReasoningSummaryTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | RefusalDeltaEvent | RefusalDoneEvent | WebSearchCallCompletedEvent | WebSearchCallInProgressEvent | WebSearchCallSearchingEvent | discriminatedUnionTypes.Unknown<"type">;
|
|
52
|
+
export type StreamEvents = ErrorEvent | ApplyPatchCallOperationDiffDeltaEvent | ApplyPatchCallOperationDiffDoneEvent | StreamEventsResponseCompleted | ContentPartAddedEvent | ContentPartDoneEvent | OpenResponsesCreatedEvent | CustomToolCallInputDeltaEvent | CustomToolCallInputDoneEvent | DebugEvent | StreamEventsResponseFailed | FunctionCallArgsDeltaEvent | FunctionCallArgsDoneEvent | FusionCallAnalysisCompletedEvent | FusionCallAnalysisInProgressEvent | FusionCallCompletedEvent | FusionCallInProgressEvent | FusionCallPanelAddedEvent | FusionCallPanelCompletedEvent | FusionCallPanelDeltaEvent | FusionCallPanelFailedEvent | FusionCallPanelReasoningDeltaEvent | ImageGenCallCompletedEvent | ImageGenCallGeneratingEvent | ImageGenCallInProgressEvent | ImageGenCallPartialImageEvent | OpenResponsesInProgressEvent | StreamEventsResponseIncomplete | StreamEventsResponseOutputItemAdded | StreamEventsResponseOutputItemDone | AnnotationAddedEvent | TextDeltaEvent | TextDoneEvent | ReasoningSummaryPartAddedEvent | ReasoningSummaryPartDoneEvent | ReasoningSummaryTextDeltaEvent | ReasoningSummaryTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | RefusalDeltaEvent | RefusalDoneEvent | WebSearchCallCompletedEvent | WebSearchCallInProgressEvent | WebSearchCallSearchingEvent | discriminatedUnionTypes.Unknown<"type">;
|
|
52
53
|
/** @internal */
|
|
53
54
|
export declare const StreamEvents$inboundSchema: z.ZodType<StreamEvents, unknown>;
|
|
54
55
|
export declare function streamEventsFromJSON(jsonString: string): SafeParseResult<StreamEvents, SDKValidationError>;
|
|
@@ -11,6 +11,7 @@ import { ContentPartAddedEvent$inboundSchema, } from "./contentpartaddedevent.js
|
|
|
11
11
|
import { ContentPartDoneEvent$inboundSchema, } from "./contentpartdoneevent.js";
|
|
12
12
|
import { CustomToolCallInputDeltaEvent$inboundSchema, } from "./customtoolcallinputdeltaevent.js";
|
|
13
13
|
import { CustomToolCallInputDoneEvent$inboundSchema, } from "./customtoolcallinputdoneevent.js";
|
|
14
|
+
import { DebugEvent$inboundSchema } from "./debugevent.js";
|
|
14
15
|
import { ErrorEvent$inboundSchema } from "./errorevent.js";
|
|
15
16
|
import { FunctionCallArgsDeltaEvent$inboundSchema, } from "./functioncallargsdeltaevent.js";
|
|
16
17
|
import { FunctionCallArgsDoneEvent$inboundSchema, } from "./functioncallargsdoneevent.js";
|
|
@@ -58,6 +59,7 @@ export const StreamEvents$inboundSchema = discriminatedUnion("type", {
|
|
|
58
59
|
["response.created"]: OpenResponsesCreatedEvent$inboundSchema,
|
|
59
60
|
["response.custom_tool_call_input.delta"]: CustomToolCallInputDeltaEvent$inboundSchema,
|
|
60
61
|
["response.custom_tool_call_input.done"]: CustomToolCallInputDoneEvent$inboundSchema,
|
|
62
|
+
["response.debug"]: DebugEvent$inboundSchema,
|
|
61
63
|
["response.failed"]: StreamEventsResponseFailed$inboundSchema,
|
|
62
64
|
["response.function_call_arguments.delta"]: FunctionCallArgsDeltaEvent$inboundSchema,
|
|
63
65
|
["response.function_call_arguments.done"]: FunctionCallArgsDoneEvent$inboundSchema,
|
|
@@ -6,7 +6,7 @@ import { STTInputAudio, STTInputAudio$Outbound } from "./sttinputaudio.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type STTRequestProvider = {
|
|
8
8
|
/**
|
|
9
|
-
* Provider-specific options keyed by provider slug.
|
|
9
|
+
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
10
10
|
*/
|
|
11
11
|
options?: ProviderOptions | undefined;
|
|
12
12
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { TaskClassificationModel } from "./taskclassificationmodel.js";
|
|
5
|
+
export type TaskClassificationItem = {
|
|
6
|
+
/**
|
|
7
|
+
* Fraction of this classification's token volume within its macro-category (0–1). Sums to 1 across all classifications sharing the same `macro_category`.
|
|
8
|
+
*/
|
|
9
|
+
categoryTokenShare: number;
|
|
10
|
+
/**
|
|
11
|
+
* Fraction of this classification's usage within its macro-category (0–1). Sums to 1 across all classifications sharing the same `macro_category`.
|
|
12
|
+
*/
|
|
13
|
+
categoryUsageShare: number;
|
|
14
|
+
/**
|
|
15
|
+
* Human-readable label for the classification.
|
|
16
|
+
*/
|
|
17
|
+
displayName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Coarse grouping derived from the tag prefix: `code`, `data`, `agent`, or `general`.
|
|
20
|
+
*/
|
|
21
|
+
macroCategory: string;
|
|
22
|
+
/**
|
|
23
|
+
* Top models for this classification by request volume, sorted descending. Each entry reports the model's share of this classification's requests and tokens.
|
|
24
|
+
*/
|
|
25
|
+
models: Array<TaskClassificationModel>;
|
|
26
|
+
/**
|
|
27
|
+
* Classification tag identifier (e.g. `code:general_impl`, `agent:web_search`).
|
|
28
|
+
*/
|
|
29
|
+
tag: string;
|
|
30
|
+
/**
|
|
31
|
+
* Fraction of classified sampled token volume (prompt + completion) attributed to this classification (0–1). The unclassified `other` bucket is excluded from the denominator.
|
|
32
|
+
*/
|
|
33
|
+
tokenShare: number;
|
|
34
|
+
/**
|
|
35
|
+
* Fraction of classified sampled requests attributed to this classification (0–1). The unclassified `other` bucket is excluded from the denominator.
|
|
36
|
+
*/
|
|
37
|
+
usageShare: number;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const TaskClassificationItem$inboundSchema: z.ZodType<TaskClassificationItem, unknown>;
|
|
41
|
+
export declare function taskClassificationItemFromJSON(jsonString: string): SafeParseResult<TaskClassificationItem, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=taskclassificationitem.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 58896645e490
|
|
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 { TaskClassificationModel$inboundSchema, } from "./taskclassificationmodel.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const TaskClassificationItem$inboundSchema = z.object({
|
|
11
|
+
category_token_share: z.number(),
|
|
12
|
+
category_usage_share: z.number(),
|
|
13
|
+
display_name: z.string(),
|
|
14
|
+
macro_category: z.string(),
|
|
15
|
+
models: z.array(TaskClassificationModel$inboundSchema),
|
|
16
|
+
tag: z.string(),
|
|
17
|
+
token_share: z.number(),
|
|
18
|
+
usage_share: z.number(),
|
|
19
|
+
}).transform((v) => {
|
|
20
|
+
return remap$(v, {
|
|
21
|
+
"category_token_share": "categoryTokenShare",
|
|
22
|
+
"category_usage_share": "categoryUsageShare",
|
|
23
|
+
"display_name": "displayName",
|
|
24
|
+
"macro_category": "macroCategory",
|
|
25
|
+
"token_share": "tokenShare",
|
|
26
|
+
"usage_share": "usageShare",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
export function taskClassificationItemFromJSON(jsonString) {
|
|
30
|
+
return safeParse(jsonString, (x) => TaskClassificationItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationItem' from JSON`);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=taskclassificationitem.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type TaskClassificationMacroCategory = {
|
|
5
|
+
/**
|
|
6
|
+
* Macro-category identifier.
|
|
7
|
+
*/
|
|
8
|
+
key: string;
|
|
9
|
+
/**
|
|
10
|
+
* Human-readable label for the macro-category.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Combined token share of all classifications in this macro-category (0–1).
|
|
15
|
+
*/
|
|
16
|
+
tokenShare: number;
|
|
17
|
+
/**
|
|
18
|
+
* Combined usage share of all classifications in this macro-category (0–1).
|
|
19
|
+
*/
|
|
20
|
+
usageShare: number;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const TaskClassificationMacroCategory$inboundSchema: z.ZodType<TaskClassificationMacroCategory, unknown>;
|
|
24
|
+
export declare function taskClassificationMacroCategoryFromJSON(jsonString: string): SafeParseResult<TaskClassificationMacroCategory, SDKValidationError>;
|
|
25
|
+
//# sourceMappingURL=taskclassificationmacrocategory.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 72bec2c5ebbb
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const TaskClassificationMacroCategory$inboundSchema = z.object({
|
|
10
|
+
key: z.string(),
|
|
11
|
+
label: z.string(),
|
|
12
|
+
token_share: z.number(),
|
|
13
|
+
usage_share: z.number(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"token_share": "tokenShare",
|
|
17
|
+
"usage_share": "usageShare",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function taskClassificationMacroCategoryFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => TaskClassificationMacroCategory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationMacroCategory' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=taskclassificationmacrocategory.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type TaskClassificationModel = {
|
|
5
|
+
/**
|
|
6
|
+
* Model identifier (permaslug).
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Fraction of this classification's sampled token volume attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).
|
|
11
|
+
*/
|
|
12
|
+
tagTokenShare: number;
|
|
13
|
+
/**
|
|
14
|
+
* Fraction of this classification's sampled requests attributed to this model (0–1). Sums to ≤1 across the returned models (only top-N are included and unattributed requests are excluded).
|
|
15
|
+
*/
|
|
16
|
+
tagUsageShare: number;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const TaskClassificationModel$inboundSchema: z.ZodType<TaskClassificationModel, unknown>;
|
|
20
|
+
export declare function taskClassificationModelFromJSON(jsonString: string): SafeParseResult<TaskClassificationModel, SDKValidationError>;
|
|
21
|
+
//# sourceMappingURL=taskclassificationmodel.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5cf061d8d849
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const TaskClassificationModel$inboundSchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
tag_token_share: z.number(),
|
|
12
|
+
tag_usage_share: z.number(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"tag_token_share": "tagTokenShare",
|
|
16
|
+
"tag_usage_share": "tagUsageShare",
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
export function taskClassificationModelFromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => TaskClassificationModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationModel' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=taskclassificationmodel.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { TaskClassificationItem } from "./taskclassificationitem.js";
|
|
5
|
+
import { TaskClassificationMacroCategory } from "./taskclassificationmacrocategory.js";
|
|
6
|
+
export type TaskClassificationResponseData = {
|
|
7
|
+
/**
|
|
8
|
+
* UTC date (YYYY-MM-DD) of the window upper bound (yesterday). Data is exclusive of the current incomplete UTC day. This is the expected latest date in the snapshot; it does not confirm data presence for that date.
|
|
9
|
+
*/
|
|
10
|
+
asOf: string;
|
|
11
|
+
/**
|
|
12
|
+
* Per-task classification market-share data, sorted by usage_share descending.
|
|
13
|
+
*/
|
|
14
|
+
classifications: Array<TaskClassificationItem>;
|
|
15
|
+
/**
|
|
16
|
+
* Aggregate market-share data per macro-category (code, data, agent, general).
|
|
17
|
+
*/
|
|
18
|
+
macroCategories: Array<TaskClassificationMacroCategory>;
|
|
19
|
+
/**
|
|
20
|
+
* Number of trailing days covered by this snapshot.
|
|
21
|
+
*/
|
|
22
|
+
windowDays: number;
|
|
23
|
+
};
|
|
24
|
+
export type TaskClassificationResponse = {
|
|
25
|
+
data: TaskClassificationResponseData;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const TaskClassificationResponseData$inboundSchema: z.ZodType<TaskClassificationResponseData, unknown>;
|
|
29
|
+
export declare function taskClassificationResponseDataFromJSON(jsonString: string): SafeParseResult<TaskClassificationResponseData, SDKValidationError>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const TaskClassificationResponse$inboundSchema: z.ZodType<TaskClassificationResponse, unknown>;
|
|
32
|
+
export declare function taskClassificationResponseFromJSON(jsonString: string): SafeParseResult<TaskClassificationResponse, SDKValidationError>;
|
|
33
|
+
//# sourceMappingURL=taskclassificationresponse.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e618eb0802a7
|
|
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 { TaskClassificationItem$inboundSchema, } from "./taskclassificationitem.js";
|
|
9
|
+
import { TaskClassificationMacroCategory$inboundSchema, } from "./taskclassificationmacrocategory.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const TaskClassificationResponseData$inboundSchema = z.object({
|
|
12
|
+
as_of: z.string(),
|
|
13
|
+
classifications: z.array(TaskClassificationItem$inboundSchema),
|
|
14
|
+
macro_categories: z.array(TaskClassificationMacroCategory$inboundSchema),
|
|
15
|
+
window_days: z.int(),
|
|
16
|
+
}).transform((v) => {
|
|
17
|
+
return remap$(v, {
|
|
18
|
+
"as_of": "asOf",
|
|
19
|
+
"macro_categories": "macroCategories",
|
|
20
|
+
"window_days": "windowDays",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function taskClassificationResponseDataFromJSON(jsonString) {
|
|
24
|
+
return safeParse(jsonString, (x) => TaskClassificationResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationResponseData' from JSON`);
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TaskClassificationResponse$inboundSchema = z.object({
|
|
28
|
+
data: z.lazy(() => TaskClassificationResponseData$inboundSchema),
|
|
29
|
+
});
|
|
30
|
+
export function taskClassificationResponseFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => TaskClassificationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TaskClassificationResponse' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=taskclassificationresponse.js.map
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* OpenRouter pricing per token for this model. Null if pricing is unavailable.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type UnifiedBenchmarkPricing = {
|
|
8
8
|
/**
|
|
9
9
|
* Cost per output token (USD, decimal string).
|
|
10
10
|
*/
|
|
@@ -15,6 +15,6 @@ export type BenchmarkPricing = {
|
|
|
15
15
|
prompt: string;
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
|
-
export declare const
|
|
19
|
-
export declare function
|
|
20
|
-
//# sourceMappingURL=
|
|
18
|
+
export declare const UnifiedBenchmarkPricing$inboundSchema: z.ZodType<UnifiedBenchmarkPricing, unknown>;
|
|
19
|
+
export declare function unifiedBenchmarkPricingFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarkPricing, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=unifiedbenchmarkpricing.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c6862b5223a1
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UnifiedBenchmarkPricing$inboundSchema = z.object({
|
|
9
|
+
completion: z.string(),
|
|
10
|
+
prompt: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function unifiedBenchmarkPricingFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => UnifiedBenchmarkPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarkPricing' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=unifiedbenchmarkpricing.js.map
|