@openrouter/sdk 0.13.7 → 0.13.13

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.
Files changed (216) hide show
  1. package/README.md +3 -9
  2. package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
  3. package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
  4. package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
  5. package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
  6. package/esm/funcs/imagesGenerate.d.ts +30 -0
  7. package/esm/funcs/imagesGenerate.js +95 -0
  8. package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
  9. package/esm/funcs/imagesListModelEndpoints.js +107 -0
  10. package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
  11. package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
  12. package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
  13. package/esm/funcs/workspacesDeleteBudget.js +107 -0
  14. package/esm/funcs/workspacesListBudgets.d.ts +19 -0
  15. package/esm/funcs/workspacesListBudgets.js +103 -0
  16. package/esm/funcs/workspacesSetBudget.d.ts +19 -0
  17. package/esm/funcs/workspacesSetBudget.js +110 -0
  18. package/esm/lib/config.d.ts +2 -2
  19. package/esm/lib/config.js +2 -2
  20. package/esm/models/advisorreasoning.d.ts +1 -0
  21. package/esm/models/advisorreasoning.js +1 -0
  22. package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
  23. package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
  24. package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
  25. package/esm/models/anthropiccompactionusageiteration.js +35 -0
  26. package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
  27. package/esm/models/anthropicdocumentblockparam.js +3 -0
  28. package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
  29. package/esm/models/anthropicfiledocumentsource.js +19 -0
  30. package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
  31. package/esm/models/anthropiciterationcachecreation.js +21 -0
  32. package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
  33. package/esm/models/anthropicmessageusageiteration.js +36 -0
  34. package/esm/models/anthropicspeed.d.ts +10 -0
  35. package/esm/models/anthropicspeed.js +12 -0
  36. package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
  37. package/esm/models/anthropicunknownusageiteration.js +30 -0
  38. package/esm/models/anthropicusageiteration.d.ts +12 -0
  39. package/esm/models/anthropicusageiteration.js +21 -0
  40. package/esm/models/apierrortype.d.ts +41 -0
  41. package/esm/models/apierrortype.js +40 -0
  42. package/esm/models/booleancapability.d.ts +13 -0
  43. package/esm/models/booleancapability.js +14 -0
  44. package/esm/models/byokproviderslug.d.ts +3 -0
  45. package/esm/models/byokproviderslug.js +3 -0
  46. package/esm/models/capabilitydescriptor.d.ts +15 -0
  47. package/esm/models/capabilitydescriptor.js +19 -0
  48. package/esm/models/chatrequest.d.ts +2 -0
  49. package/esm/models/chatrequest.js +2 -0
  50. package/esm/models/chatstreamchunk.d.ts +25 -4
  51. package/esm/models/chatstreamchunk.js +19 -4
  52. package/esm/models/chatusage.d.ts +32 -8
  53. package/esm/models/chatusage.js +25 -8
  54. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  55. package/esm/models/contentpartimage.d.ts +9 -2
  56. package/esm/models/contentpartimage.js +6 -1
  57. package/esm/models/debugevent.d.ts +42 -0
  58. package/esm/models/debugevent.js +58 -0
  59. package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
  60. package/esm/models/deleteworkspacebudgetresponse.js +14 -0
  61. package/esm/models/enumcapability.d.ts +14 -0
  62. package/esm/models/enumcapability.js +15 -0
  63. package/esm/models/fusionplugin.d.ts +1 -0
  64. package/esm/models/fusionplugin.js +1 -0
  65. package/esm/models/fusionservertoolconfig.d.ts +8 -1
  66. package/esm/models/fusionservertoolconfig.js +4 -0
  67. package/esm/models/imageendpoint.d.ts +41 -0
  68. package/esm/models/imageendpoint.js +33 -0
  69. package/esm/models/imagegencompletedevent.d.ts +29 -0
  70. package/esm/models/imagegencompletedevent.js +23 -0
  71. package/esm/models/imagegenerationrequest.d.ts +908 -0
  72. package/esm/models/imagegenerationrequest.js +266 -0
  73. package/esm/models/imagegenerationresponse.d.ts +34 -0
  74. package/esm/models/imagegenerationresponse.js +29 -0
  75. package/esm/models/imagegenerationservertool.d.ts +15 -15
  76. package/esm/models/imagegenerationservertool.js +15 -17
  77. package/esm/models/imagegenerationusage.d.ts +119 -0
  78. package/esm/models/imagegenerationusage.js +93 -0
  79. package/esm/models/imagegenpartialimageevent.d.ts +24 -0
  80. package/esm/models/imagegenpartialimageevent.js +22 -0
  81. package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
  82. package/esm/models/imagegenstreamerrorevent.js +25 -0
  83. package/esm/models/imagemodelarchitecture.d.ts +19 -0
  84. package/esm/models/imagemodelarchitecture.js +23 -0
  85. package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
  86. package/esm/models/imagemodelendpointsresponse.js +16 -0
  87. package/esm/models/imagemodellistitem.d.ts +42 -0
  88. package/esm/models/imagemodellistitem.js +29 -0
  89. package/esm/models/imagemodelslistresponse.d.ts +14 -0
  90. package/esm/models/imagemodelslistresponse.js +15 -0
  91. package/esm/models/imageoutputmodality.d.ts +16 -0
  92. package/esm/models/imageoutputmodality.js +18 -0
  93. package/esm/models/imagepricingentry.d.ts +35 -0
  94. package/esm/models/imagepricingentry.js +41 -0
  95. package/esm/models/imagestreamingresponse.d.ts +18 -0
  96. package/esm/models/imagestreamingresponse.js +43 -0
  97. package/esm/models/index.d.ts +44 -7
  98. package/esm/models/index.js +44 -7
  99. package/esm/models/inputreference.d.ts +6 -2
  100. package/esm/models/inputreference.js +1 -1
  101. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  102. package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
  103. package/esm/models/listworkspacebudgetsresponse.js +15 -0
  104. package/esm/models/messagesrequest.d.ts +6 -6
  105. package/esm/models/messagesrequest.js +4 -5
  106. package/esm/models/model.d.ts +5 -0
  107. package/esm/models/model.js +2 -0
  108. package/esm/models/modelreasoning.d.ts +49 -0
  109. package/esm/models/modelreasoning.js +42 -0
  110. package/esm/models/observabilityarizedestination.d.ts +3 -0
  111. package/esm/models/openresponsesresult.d.ts +5 -0
  112. package/esm/models/openresponsesresult.js +3 -0
  113. package/esm/models/operations/createembeddings.d.ts +19 -0
  114. package/esm/models/operations/createembeddings.js +20 -0
  115. package/esm/models/operations/createimages.d.ts +63 -0
  116. package/esm/models/operations/createimages.js +44 -0
  117. package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
  118. package/esm/models/operations/deleteworkspacebudget.js +23 -0
  119. package/esm/models/operations/getbenchmarks.d.ts +120 -0
  120. package/esm/models/operations/getbenchmarks.js +60 -0
  121. package/esm/models/operations/getmodels.d.ts +5 -3
  122. package/esm/models/operations/getmodels.js +3 -1
  123. package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
  124. package/esm/models/operations/gettaskclassifications.js +29 -0
  125. package/esm/models/operations/index.d.ts +8 -2
  126. package/esm/models/operations/index.js +8 -2
  127. package/esm/models/operations/listbyokkeys.d.ts +3 -0
  128. package/esm/models/operations/listbyokkeys.js +3 -0
  129. package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
  130. package/esm/models/operations/listimagemodelendpoints.js +22 -0
  131. package/esm/models/operations/listimagemodels.d.ts +53 -0
  132. package/esm/models/operations/listimagemodels.js +20 -0
  133. package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
  134. package/esm/models/operations/listworkspacebudgets.js +21 -0
  135. package/esm/models/operations/queryanalytics.d.ts +7 -3
  136. package/esm/models/operations/queryanalytics.js +1 -0
  137. package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
  138. package/esm/models/operations/upsertworkspacebudget.js +25 -0
  139. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  140. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  141. package/esm/models/providername.d.ts +3 -0
  142. package/esm/models/providername.js +3 -0
  143. package/esm/models/provideroptions.d.ts +19 -1
  144. package/esm/models/provideroptions.js +5 -0
  145. package/esm/models/providerresponse.d.ts +3 -0
  146. package/esm/models/providerresponse.js +3 -0
  147. package/esm/models/rangecapability.d.ts +15 -0
  148. package/esm/models/rangecapability.js +16 -0
  149. package/esm/models/reasoningeffort.d.ts +1 -0
  150. package/esm/models/reasoningeffort.js +1 -0
  151. package/esm/models/responsesrequest.d.ts +6 -0
  152. package/esm/models/responsesrequest.js +2 -0
  153. package/esm/models/speechrequest.d.ts +1 -1
  154. package/esm/models/streamevents.d.ts +2 -1
  155. package/esm/models/streamevents.js +2 -0
  156. package/esm/models/sttrequest.d.ts +1 -1
  157. package/esm/models/subagentreasoning.d.ts +1 -0
  158. package/esm/models/subagentreasoning.js +1 -0
  159. package/esm/models/taskclassificationitem.d.ts +42 -0
  160. package/esm/models/taskclassificationitem.js +32 -0
  161. package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
  162. package/esm/models/taskclassificationmacrocategory.js +23 -0
  163. package/esm/models/taskclassificationmodel.d.ts +21 -0
  164. package/esm/models/taskclassificationmodel.js +22 -0
  165. package/esm/models/taskclassificationresponse.d.ts +33 -0
  166. package/esm/models/taskclassificationresponse.js +33 -0
  167. package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
  168. package/esm/models/unifiedbenchmarkpricing.js +15 -0
  169. package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
  170. package/esm/models/unifiedbenchmarksaaitem.js +30 -0
  171. package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
  172. package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
  173. package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
  174. package/esm/models/unifiedbenchmarksmeta.js +46 -0
  175. package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
  176. package/esm/models/unifiedbenchmarksresponse.js +30 -0
  177. package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
  178. package/esm/models/upsertworkspacebudgetrequest.js +18 -0
  179. package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
  180. package/esm/models/upsertworkspacebudgetresponse.js +15 -0
  181. package/esm/models/videogenerationrequest.d.ts +33 -15
  182. package/esm/models/videogenerationrequest.js +16 -11
  183. package/esm/models/websearchconfig.d.ts +1 -1
  184. package/esm/models/websearchservertool.d.ts +1 -1
  185. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  186. package/esm/models/workspacebudget.d.ts +48 -0
  187. package/esm/models/workspacebudget.js +39 -0
  188. package/esm/models/workspacebudgetinterval.d.ts +18 -0
  189. package/esm/models/workspacebudgetinterval.js +17 -0
  190. package/esm/sdk/benchmarks.d.ts +13 -0
  191. package/esm/sdk/benchmarks.js +19 -0
  192. package/esm/sdk/classifications.d.ts +31 -0
  193. package/esm/sdk/classifications.js +37 -0
  194. package/esm/sdk/datasets.d.ts +0 -14
  195. package/esm/sdk/datasets.js +0 -20
  196. package/esm/sdk/images.d.ts +38 -0
  197. package/esm/sdk/images.js +33 -0
  198. package/esm/sdk/sdk.d.ts +9 -0
  199. package/esm/sdk/sdk.js +12 -0
  200. package/esm/sdk/workspaces.d.ts +21 -0
  201. package/esm/sdk/workspaces.js +30 -0
  202. package/jsr.json +1 -1
  203. package/package.json +5 -5
  204. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
  205. package/esm/models/benchmarkpricing.js +0 -15
  206. package/esm/models/benchmarksaaitem.js +0 -29
  207. package/esm/models/benchmarksaameta.d.ts +0 -70
  208. package/esm/models/benchmarksaameta.js +0 -50
  209. package/esm/models/benchmarksaaresponse.d.ts +0 -13
  210. package/esm/models/benchmarksaaresponse.js +0 -17
  211. package/esm/models/benchmarksdameta.d.ts +0 -98
  212. package/esm/models/benchmarksdameta.js +0 -62
  213. package/esm/models/benchmarksdaresponse.d.ts +0 -13
  214. package/esm/models/benchmarksdaresponse.js +0 -17
  215. package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
  216. package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
@@ -56,6 +56,7 @@ export const ProviderOptions$outboundSchema = z.object({
56
56
  hyperbolicQuantized: z.record(z.string(), z.nullable(z.any())).optional(),
57
57
  inception: z.record(z.string(), z.nullable(z.any())).optional(),
58
58
  inceptron: z.record(z.string(), z.nullable(z.any())).optional(),
59
+ inferactVllm: z.record(z.string(), z.nullable(z.any())).optional(),
59
60
  inferenceNet: z.record(z.string(), z.nullable(z.any())).optional(),
60
61
  infermatic: z.record(z.string(), z.nullable(z.any())).optional(),
61
62
  inflection: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -100,6 +101,7 @@ export const ProviderOptions$outboundSchema = z.object({
100
101
  reka: z.record(z.string(), z.nullable(z.any())).optional(),
101
102
  relace: z.record(z.string(), z.nullable(z.any())).optional(),
102
103
  replicate: z.record(z.string(), z.nullable(z.any())).optional(),
104
+ sakanaAi: z.record(z.string(), z.nullable(z.any())).optional(),
103
105
  sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
104
106
  sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
105
107
  seed: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -111,6 +113,7 @@ export const ProviderOptions$outboundSchema = z.object({
111
113
  streamlake: z.record(z.string(), z.nullable(z.any())).optional(),
112
114
  switchpoint: z.record(z.string(), z.nullable(z.any())).optional(),
113
115
  targon: z.record(z.string(), z.nullable(z.any())).optional(),
116
+ tenstorrent: z.record(z.string(), z.nullable(z.any())).optional(),
114
117
  together: z.record(z.string(), z.nullable(z.any())).optional(),
115
118
  togetherLite: z.record(z.string(), z.nullable(z.any())).optional(),
116
119
  ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -134,12 +137,14 @@ export const ProviderOptions$outboundSchema = z.object({
134
137
  googleAiStudio: "google-ai-studio",
135
138
  googleVertex: "google-vertex",
136
139
  hyperbolicQuantized: "hyperbolic-quantized",
140
+ inferactVllm: "inferact-vllm",
137
141
  inferenceNet: "inference-net",
138
142
  ioNet: "io-net",
139
143
  lynnPrivate: "lynn-private",
140
144
  mancerOld: "mancer-old",
141
145
  nexAgi: "nex-agi",
142
146
  openInference: "open-inference",
147
+ sakanaAi: "sakana-ai",
143
148
  sambanovaCloaked: "sambanova-cloaked",
144
149
  sfCompute: "sf-compute",
145
150
  togetherLite: "together-lite",
@@ -78,6 +78,7 @@ export declare const ProviderResponseProviderName: {
78
78
  readonly Ionstream: "Ionstream";
79
79
  readonly Infermatic: "Infermatic";
80
80
  readonly IoNet: "Io Net";
81
+ readonly InferactVLLM: "Inferact vLLM";
81
82
  readonly Inflection: "Inflection";
82
83
  readonly Liquid: "Liquid";
83
84
  readonly Mara: "Mara";
@@ -104,6 +105,7 @@ export declare const ProviderResponseProviderName: {
104
105
  readonly Recraft: "Recraft";
105
106
  readonly Reka: "Reka";
106
107
  readonly Relace: "Relace";
108
+ readonly SakanaAI: "Sakana AI";
107
109
  readonly SambaNova: "SambaNova";
108
110
  readonly Seed: "Seed";
109
111
  readonly SiliconFlow: "SiliconFlow";
@@ -112,6 +114,7 @@ export declare const ProviderResponseProviderName: {
112
114
  readonly Stealth: "Stealth";
113
115
  readonly StreamLake: "StreamLake";
114
116
  readonly Switchpoint: "Switchpoint";
117
+ readonly Tenstorrent: "Tenstorrent";
115
118
  readonly Together: "Together";
116
119
  readonly Upstage: "Upstage";
117
120
  readonly Venice: "Venice";
@@ -82,6 +82,7 @@ export const ProviderResponseProviderName = {
82
82
  Ionstream: "Ionstream",
83
83
  Infermatic: "Infermatic",
84
84
  IoNet: "Io Net",
85
+ InferactVLLM: "Inferact vLLM",
85
86
  Inflection: "Inflection",
86
87
  Liquid: "Liquid",
87
88
  Mara: "Mara",
@@ -108,6 +109,7 @@ export const ProviderResponseProviderName = {
108
109
  Recraft: "Recraft",
109
110
  Reka: "Reka",
110
111
  Relace: "Relace",
112
+ SakanaAI: "Sakana AI",
111
113
  SambaNova: "SambaNova",
112
114
  Seed: "Seed",
113
115
  SiliconFlow: "SiliconFlow",
@@ -116,6 +118,7 @@ export const ProviderResponseProviderName = {
116
118
  Stealth: "Stealth",
117
119
  StreamLake: "StreamLake",
118
120
  Switchpoint: "Switchpoint",
121
+ Tenstorrent: "Tenstorrent",
119
122
  Together: "Together",
120
123
  Upstage: "Upstage",
121
124
  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
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  export declare const ReasoningEffort: {
4
+ readonly Max: "max";
4
5
  readonly Xhigh: "xhigh";
5
6
  readonly High: "high";
6
7
  readonly Medium: "medium";
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import * as openEnums from "../types/enums.js";
6
6
  export const ReasoningEffort = {
7
+ Max: "max",
7
8
  Xhigh: "xhigh",
8
9
  High: "high",
9
10
  Medium: "medium",
@@ -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. The options for the matched provider are spread into the upstream request body.
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. The options for the matched provider are spread into the upstream request body.
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
  };
@@ -4,6 +4,7 @@ import { OpenEnum } from "../types/enums.js";
4
4
  * Reasoning effort level for the subagent call.
5
5
  */
6
6
  export declare const SubagentReasoningEffort: {
7
+ readonly Max: "max";
7
8
  readonly Xhigh: "xhigh";
8
9
  readonly High: "high";
9
10
  readonly Medium: "medium";
@@ -9,6 +9,7 @@ import * as openEnums from "../types/enums.js";
9
9
  * Reasoning effort level for the subagent call.
10
10
  */
11
11
  export const SubagentReasoningEffort = {
12
+ Max: "max",
12
13
  Xhigh: "xhigh",
13
14
  High: "high",
14
15
  Medium: "medium",
@@ -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 BenchmarkPricing = {
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 BenchmarkPricing$inboundSchema: z.ZodType<BenchmarkPricing, unknown>;
19
- export declare function benchmarkPricingFromJSON(jsonString: string): SafeParseResult<BenchmarkPricing, SDKValidationError>;
20
- //# sourceMappingURL=benchmarkpricing.d.ts.map
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
@@ -1,12 +1,8 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { BenchmarkPricing } from "./benchmarkpricing.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- export type BenchmarksAAItem = {
6
- /**
7
- * Model name as listed on Artificial Analysis.
8
- */
9
- aaName: string;
4
+ import { UnifiedBenchmarkPricing } from "./unifiedbenchmarkpricing.js";
5
+ export type UnifiedBenchmarksAAItem = {
10
6
  /**
11
7
  * Artificial Analysis Agentic Index composite score. Higher is better.
12
8
  */
@@ -15,6 +11,10 @@ export type BenchmarksAAItem = {
15
11
  * Artificial Analysis Coding Index composite score. Higher is better.
16
12
  */
17
13
  codingIndex: number | null;
14
+ /**
15
+ * Model name as listed on Artificial Analysis.
16
+ */
17
+ displayName: string;
18
18
  /**
19
19
  * Artificial Analysis Intelligence Index composite score. Higher is better.
20
20
  */
@@ -26,9 +26,13 @@ export type BenchmarksAAItem = {
26
26
  /**
27
27
  * OpenRouter pricing per token for this model. Null if pricing is unavailable.
28
28
  */
29
- pricing: BenchmarkPricing | null;
29
+ pricing: UnifiedBenchmarkPricing | null;
30
+ /**
31
+ * Benchmark source discriminator.
32
+ */
33
+ source: "artificial-analysis";
30
34
  };
31
35
  /** @internal */
32
- export declare const BenchmarksAAItem$inboundSchema: z.ZodType<BenchmarksAAItem, unknown>;
33
- export declare function benchmarksAAItemFromJSON(jsonString: string): SafeParseResult<BenchmarksAAItem, SDKValidationError>;
34
- //# sourceMappingURL=benchmarksaaitem.d.ts.map
36
+ export declare const UnifiedBenchmarksAAItem$inboundSchema: z.ZodType<UnifiedBenchmarksAAItem, unknown>;
37
+ export declare function unifiedBenchmarksAAItemFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksAAItem, SDKValidationError>;
38
+ //# sourceMappingURL=unifiedbenchmarksaaitem.d.ts.map
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 436660899947
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 { UnifiedBenchmarkPricing$inboundSchema, } from "./unifiedbenchmarkpricing.js";
9
+ /** @internal */
10
+ export const UnifiedBenchmarksAAItem$inboundSchema = z.object({
11
+ agentic_index: z.nullable(z.number()),
12
+ coding_index: z.nullable(z.number()),
13
+ display_name: z.string(),
14
+ intelligence_index: z.nullable(z.number()),
15
+ model_permaslug: z.string(),
16
+ pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
17
+ source: z.literal("artificial-analysis"),
18
+ }).transform((v) => {
19
+ return remap$(v, {
20
+ "agentic_index": "agenticIndex",
21
+ "coding_index": "codingIndex",
22
+ "display_name": "displayName",
23
+ "intelligence_index": "intelligenceIndex",
24
+ "model_permaslug": "modelPermaslug",
25
+ });
26
+ });
27
+ export function unifiedBenchmarksAAItemFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => UnifiedBenchmarksAAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksAAItem' from JSON`);
29
+ }
30
+ //# sourceMappingURL=unifiedbenchmarksaaitem.js.map