@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.
Files changed (303) hide show
  1. package/README.md +40 -0
  2. package/esm/funcs/betaAnalyticsGetAnalyticsMeta.d.ts +18 -0
  3. package/esm/funcs/betaAnalyticsGetAnalyticsMeta.js +96 -0
  4. package/esm/funcs/betaAnalyticsQueryAnalytics.d.ts +18 -0
  5. package/esm/funcs/betaAnalyticsQueryAnalytics.js +97 -0
  6. package/esm/funcs/betaResponsesSend.js +1 -1
  7. package/esm/funcs/chatSend.js +1 -1
  8. package/esm/funcs/datasetsGetAppRankings.d.ts +43 -0
  9. package/esm/funcs/datasetsGetAppRankings.js +161 -0
  10. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +19 -0
  11. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.js +102 -0
  12. package/esm/funcs/datasetsGetBenchmarksDesignArena.d.ts +19 -0
  13. package/esm/funcs/datasetsGetBenchmarksDesignArena.js +104 -0
  14. package/esm/funcs/filesDelete.d.ts +19 -0
  15. package/esm/funcs/filesDelete.js +107 -0
  16. package/esm/funcs/filesDownload.d.ts +18 -0
  17. package/esm/funcs/filesDownload.js +107 -0
  18. package/esm/funcs/filesList.d.ts +21 -0
  19. package/esm/funcs/filesList.js +131 -0
  20. package/esm/funcs/filesRetrieve.d.ts +19 -0
  21. package/esm/funcs/filesRetrieve.js +107 -0
  22. package/esm/funcs/filesUpload.d.ts +19 -0
  23. package/esm/funcs/filesUpload.js +121 -0
  24. package/esm/funcs/modelsGet.d.ts +19 -0
  25. package/esm/funcs/modelsGet.js +107 -0
  26. package/esm/funcs/modelsList.js +12 -0
  27. package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
  28. package/esm/funcs/oAuthCreateAuthCode.js +1 -1
  29. package/esm/funcs/presetsGet.d.ts +21 -0
  30. package/esm/funcs/presetsGet.js +105 -0
  31. package/esm/funcs/presetsGetVersion.d.ts +21 -0
  32. package/esm/funcs/presetsGetVersion.js +109 -0
  33. package/esm/funcs/presetsList.d.ts +23 -0
  34. package/esm/funcs/presetsList.js +136 -0
  35. package/esm/funcs/presetsListVersions.d.ts +23 -0
  36. package/esm/funcs/presetsListVersions.js +142 -0
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/models/aabenchmarkentry.d.ts +24 -0
  40. package/esm/models/aabenchmarkentry.js +23 -0
  41. package/esm/models/advisornestedtool.d.ts +25 -0
  42. package/esm/models/advisornestedtool.js +23 -0
  43. package/esm/models/advisorreasoning.d.ts +41 -0
  44. package/esm/models/advisorreasoning.js +33 -0
  45. package/esm/models/advisorservertoolconfig.d.ts +65 -0
  46. package/esm/models/advisorservertoolconfig.js +31 -0
  47. package/esm/models/advisorservertoolopenrouter.d.ts +28 -0
  48. package/esm/models/advisorservertoolopenrouter.js +20 -0
  49. package/esm/models/apprankingsitem.d.ts +29 -0
  50. package/esm/models/apprankingsitem.js +26 -0
  51. package/esm/models/apprankingsresponse.d.ts +16 -0
  52. package/esm/models/apprankingsresponse.js +17 -0
  53. package/esm/models/bashservertool.d.ts +28 -0
  54. package/esm/models/bashservertool.js +20 -0
  55. package/esm/models/bashservertoolconfig.d.ts +30 -0
  56. package/esm/models/bashservertoolconfig.js +22 -0
  57. package/esm/models/bashservertoolengine.d.ts +17 -0
  58. package/esm/models/bashservertoolengine.js +16 -0
  59. package/esm/models/bashservertoolenvironment.d.ts +13 -0
  60. package/esm/models/bashservertoolenvironment.js +16 -0
  61. package/esm/models/benchmarkpricing.d.ts +20 -0
  62. package/esm/models/benchmarkpricing.js +15 -0
  63. package/esm/models/benchmarksaaitem.d.ts +34 -0
  64. package/esm/models/benchmarksaaitem.js +29 -0
  65. package/esm/models/benchmarksaameta.d.ts +70 -0
  66. package/esm/models/benchmarksaameta.js +50 -0
  67. package/esm/models/benchmarksaaresponse.d.ts +13 -0
  68. package/esm/models/benchmarksaaresponse.js +17 -0
  69. package/esm/models/benchmarksdaitem.d.ts +59 -0
  70. package/esm/models/benchmarksdaitem.js +50 -0
  71. package/esm/models/benchmarksdameta.d.ts +98 -0
  72. package/esm/models/benchmarksdameta.js +62 -0
  73. package/esm/models/benchmarksdaresponse.d.ts +13 -0
  74. package/esm/models/benchmarksdaresponse.js +17 -0
  75. package/esm/models/byokproviderslug.d.ts +2 -1
  76. package/esm/models/byokproviderslug.js +2 -1
  77. package/esm/models/chatfunctiontool.d.ts +5 -2
  78. package/esm/models/chatfunctiontool.js +6 -0
  79. package/esm/models/chatrequest.d.ts +42 -0
  80. package/esm/models/chatrequest.js +24 -0
  81. package/esm/models/chatwebsearchshorthand.d.ts +10 -5
  82. package/esm/models/chatwebsearchshorthand.js +2 -0
  83. package/esm/models/containerautoenvironment.d.ts +15 -0
  84. package/esm/models/containerautoenvironment.js +13 -0
  85. package/esm/models/containerreferenceenvironment.d.ts +20 -0
  86. package/esm/models/containerreferenceenvironment.js +19 -0
  87. package/esm/models/contentfilterbuiltinentry.d.ts +5 -0
  88. package/esm/models/contentfilterbuiltinentry.js +7 -0
  89. package/esm/models/contentfilterbuiltinentryinput.d.ts +6 -0
  90. package/esm/models/contentfilterbuiltinentryinput.js +7 -0
  91. package/esm/models/contentpartaudio.d.ts +24 -0
  92. package/esm/models/contentpartaudio.js +27 -0
  93. package/esm/models/contentpartimage.d.ts +2 -9
  94. package/esm/models/contentpartimage.js +1 -6
  95. package/esm/models/contentpartvideo.d.ts +24 -0
  96. package/esm/models/contentpartvideo.js +27 -0
  97. package/esm/models/createobservabilitydestinationrequest.d.ts +1 -1
  98. package/esm/models/dabenchmarkentry.d.ts +32 -0
  99. package/esm/models/dabenchmarkentry.js +23 -0
  100. package/esm/models/filedeleteresponse.d.ts +21 -0
  101. package/esm/models/filedeleteresponse.js +20 -0
  102. package/esm/models/filelistresponse.d.ts +21 -0
  103. package/esm/models/filelistresponse.js +26 -0
  104. package/esm/models/filemetadata.d.ts +26 -0
  105. package/esm/models/filemetadata.js +33 -0
  106. package/esm/models/fusionanalysisresult.d.ts +88 -0
  107. package/esm/models/fusionanalysisresult.js +109 -0
  108. package/esm/models/fusioncallanalysiscompletedevent.d.ts +21 -0
  109. package/esm/models/fusioncallanalysiscompletedevent.js +26 -0
  110. package/esm/models/fusioncallanalysisinprogressevent.d.ts +17 -0
  111. package/esm/models/fusioncallanalysisinprogressevent.js +26 -0
  112. package/esm/models/fusioncallcompletedevent.d.ts +16 -0
  113. package/esm/models/fusioncallcompletedevent.js +24 -0
  114. package/esm/models/fusioncallinprogressevent.d.ts +16 -0
  115. package/esm/models/fusioncallinprogressevent.js +24 -0
  116. package/esm/models/fusioncallpaneladdedevent.d.ts +17 -0
  117. package/esm/models/fusioncallpaneladdedevent.js +25 -0
  118. package/esm/models/fusioncallpanelcompletedevent.d.ts +18 -0
  119. package/esm/models/fusioncallpanelcompletedevent.js +26 -0
  120. package/esm/models/fusioncallpaneldeltaevent.d.ts +18 -0
  121. package/esm/models/fusioncallpaneldeltaevent.js +26 -0
  122. package/esm/models/fusioncallpanelfailedevent.d.ts +19 -0
  123. package/esm/models/fusioncallpanelfailedevent.js +28 -0
  124. package/esm/models/fusioncallpanelreasoningdeltaevent.d.ts +18 -0
  125. package/esm/models/fusioncallpanelreasoningdeltaevent.js +26 -0
  126. package/esm/models/fusionplugin.d.ts +46 -0
  127. package/esm/models/fusionplugin.js +20 -0
  128. package/esm/models/fusionservertoolconfig.d.ts +27 -0
  129. package/esm/models/fusionservertoolconfig.js +10 -0
  130. package/esm/models/generationresponse.d.ts +22 -0
  131. package/esm/models/generationresponse.js +14 -0
  132. package/esm/models/getpresetresponse.d.ts +17 -0
  133. package/esm/models/getpresetresponse.js +15 -0
  134. package/esm/models/getpresetversionresponse.d.ts +17 -0
  135. package/esm/models/getpresetversionresponse.js +15 -0
  136. package/esm/models/index.d.ts +60 -0
  137. package/esm/models/index.js +60 -0
  138. package/esm/models/inputreference.d.ts +14 -0
  139. package/esm/models/inputreference.js +18 -0
  140. package/esm/models/inputsunion.d.ts +7 -4
  141. package/esm/models/inputsunion.js +11 -2
  142. package/esm/models/legacywebsearchservertool.d.ts +2 -2
  143. package/esm/models/listpresetsresponse.d.ts +15 -0
  144. package/esm/models/listpresetsresponse.js +21 -0
  145. package/esm/models/listpresetversionsresponse.d.ts +15 -0
  146. package/esm/models/listpresetversionsresponse.js +21 -0
  147. package/esm/models/messagesfallbackparam.d.ts +19 -0
  148. package/esm/models/messagesfallbackparam.js +22 -0
  149. package/esm/models/messagesrequest.d.ts +11 -4
  150. package/esm/models/messagesrequest.js +6 -0
  151. package/esm/models/model.d.ts +5 -0
  152. package/esm/models/model.js +2 -0
  153. package/esm/models/modelbenchmarks.d.ts +22 -0
  154. package/esm/models/modelbenchmarks.js +23 -0
  155. package/esm/models/modelresponse.d.ts +17 -0
  156. package/esm/models/modelresponse.js +16 -0
  157. package/esm/models/observabilityarizedestination.d.ts +1 -1
  158. package/esm/models/observabilitybraintrustdestination.d.ts +1 -1
  159. package/esm/models/observabilityclickhousedestination.d.ts +1 -1
  160. package/esm/models/observabilitydatadogdestination.d.ts +1 -1
  161. package/esm/models/observabilitygrafanadestination.d.ts +1 -1
  162. package/esm/models/observabilitylangfusedestination.d.ts +1 -1
  163. package/esm/models/observabilitylangsmithdestination.d.ts +1 -1
  164. package/esm/models/observabilitynewrelicdestination.d.ts +1 -1
  165. package/esm/models/observabilityopikdestination.d.ts +1 -1
  166. package/esm/models/observabilityotelcollectordestination.d.ts +1 -1
  167. package/esm/models/observabilityposthogdestination.d.ts +1 -1
  168. package/esm/models/observabilityrampdestination.d.ts +1 -1
  169. package/esm/models/observabilitys3destination.d.ts +1 -1
  170. package/esm/models/observabilitysentrydestination.d.ts +1 -1
  171. package/esm/models/observabilitysnowflakedestination.d.ts +1 -1
  172. package/esm/models/observabilityweavedestination.d.ts +1 -1
  173. package/esm/models/observabilitywebhookdestination.d.ts +1 -1
  174. package/esm/models/operations/createauthkeyscode.d.ts +6 -1
  175. package/esm/models/operations/createauthkeyscode.js +2 -0
  176. package/esm/models/operations/creatererank.d.ts +44 -10
  177. package/esm/models/operations/creatererank.js +21 -6
  178. package/esm/models/operations/createresponses.d.ts +3 -3
  179. package/esm/models/operations/createresponses.js +2 -3
  180. package/esm/models/operations/deletefile.d.ts +60 -0
  181. package/esm/models/operations/deletefile.js +24 -0
  182. package/esm/models/operations/downloadfilecontent.d.ts +60 -0
  183. package/esm/models/operations/downloadfilecontent.js +24 -0
  184. package/esm/models/operations/getanalyticsmeta.d.ts +198 -0
  185. package/esm/models/operations/getanalyticsmeta.js +141 -0
  186. package/esm/models/operations/getapprankings.d.ts +152 -0
  187. package/esm/models/operations/getapprankings.js +85 -0
  188. package/esm/models/operations/getbenchmarksartificialanalysis.d.ts +58 -0
  189. package/esm/models/operations/getbenchmarksartificialanalysis.js +22 -0
  190. package/esm/models/operations/getbenchmarksdesignarena.d.ts +83 -0
  191. package/esm/models/operations/getbenchmarksdesignarena.js +36 -0
  192. package/esm/models/operations/getfilemetadata.d.ts +60 -0
  193. package/esm/models/operations/getfilemetadata.js +24 -0
  194. package/esm/models/operations/getmodel.d.ts +63 -0
  195. package/esm/models/operations/getmodel.js +22 -0
  196. package/esm/models/operations/getmodels.d.ts +121 -5
  197. package/esm/models/operations/getmodels.js +59 -4
  198. package/esm/models/operations/getpreset.d.ts +58 -0
  199. package/esm/models/operations/getpreset.js +21 -0
  200. package/esm/models/operations/getpresetversion.d.ts +63 -0
  201. package/esm/models/operations/getpresetversion.js +22 -0
  202. package/esm/models/operations/index.d.ts +15 -0
  203. package/esm/models/operations/index.js +15 -0
  204. package/esm/models/operations/listbyokkeys.d.ts +2 -1
  205. package/esm/models/operations/listbyokkeys.js +2 -1
  206. package/esm/models/operations/listfiles.d.ts +77 -0
  207. package/esm/models/operations/listfiles.js +37 -0
  208. package/esm/models/operations/listpresets.d.ts +72 -0
  209. package/esm/models/operations/listpresets.js +35 -0
  210. package/esm/models/operations/listpresetversions.d.ts +77 -0
  211. package/esm/models/operations/listpresetversions.js +36 -0
  212. package/esm/models/operations/queryanalytics.d.ts +195 -0
  213. package/esm/models/operations/queryanalytics.js +129 -0
  214. package/esm/models/operations/sendchatcompletionrequest.d.ts +3 -3
  215. package/esm/models/operations/sendchatcompletionrequest.js +2 -3
  216. package/esm/models/operations/uploadfile.d.ts +82 -0
  217. package/esm/models/operations/uploadfile.js +45 -0
  218. package/esm/models/outputadvisorservertoolitem.d.ts +59 -0
  219. package/esm/models/outputadvisorservertoolitem.js +52 -0
  220. package/esm/models/outputfusionservertoolitem.d.ts +44 -43
  221. package/esm/models/outputfusionservertoolitem.js +49 -51
  222. package/esm/models/outputitems.d.ts +13 -3
  223. package/esm/models/outputitems.js +9 -1
  224. package/esm/models/outputshellcallitem.d.ts +29 -0
  225. package/esm/models/outputshellcallitem.js +38 -0
  226. package/esm/models/outputshellcalloutputitem.d.ts +48 -0
  227. package/esm/models/outputshellcalloutputitem.js +67 -0
  228. package/esm/models/outputsubagentservertoolitem.d.ts +59 -0
  229. package/esm/models/outputsubagentservertoolitem.js +54 -0
  230. package/esm/models/outputwebsearchcallitem.d.ts +2 -2
  231. package/esm/models/outputwebsearchcallitem.js +2 -2
  232. package/esm/models/preset.d.ts +27 -0
  233. package/esm/models/preset.js +35 -0
  234. package/esm/models/presetstatus.d.ts +17 -0
  235. package/esm/models/presetstatus.js +16 -0
  236. package/esm/models/presetwithdesignatedversion.d.ts +9 -14
  237. package/esm/models/presetwithdesignatedversion.js +4 -11
  238. package/esm/models/preview20250311websearchservertool.d.ts +2 -2
  239. package/esm/models/previewwebsearchservertool.d.ts +2 -2
  240. package/esm/models/promptinjectionscanscope.d.ts +18 -0
  241. package/esm/models/promptinjectionscanscope.js +17 -0
  242. package/esm/models/providername.d.ts +2 -1
  243. package/esm/models/providername.js +2 -1
  244. package/esm/models/provideroptions.d.ts +12 -0
  245. package/esm/models/provideroptions.js +2 -0
  246. package/esm/models/providerresponse.d.ts +3 -1
  247. package/esm/models/providerresponse.js +4 -2
  248. package/esm/models/rankingsdailymeta.d.ts +4 -4
  249. package/esm/models/rankingsdailymeta.js +3 -3
  250. package/esm/models/responsesrequest.d.ts +36 -8
  251. package/esm/models/responsesrequest.js +12 -0
  252. package/esm/models/searchqualitylevel.d.ts +2 -2
  253. package/esm/models/searchqualitylevel.js +1 -1
  254. package/esm/models/shellcallstatus.d.ts +17 -0
  255. package/esm/models/shellcallstatus.js +16 -0
  256. package/esm/models/shellservertoolconfig.d.ts +30 -0
  257. package/esm/models/shellservertoolconfig.js +22 -0
  258. package/esm/models/shellservertoolengine.d.ts +16 -0
  259. package/esm/models/shellservertoolengine.js +15 -0
  260. package/esm/models/shellservertoolenvironment.d.ts +13 -0
  261. package/esm/models/shellservertoolenvironment.js +16 -0
  262. package/esm/models/shellservertoolopenrouter.d.ts +21 -0
  263. package/esm/models/shellservertoolopenrouter.js +15 -0
  264. package/esm/models/streamevents.d.ts +10 -1
  265. package/esm/models/streamevents.js +18 -0
  266. package/esm/models/subagentnestedtool.d.ts +25 -0
  267. package/esm/models/subagentnestedtool.js +23 -0
  268. package/esm/models/subagentreasoning.d.ts +41 -0
  269. package/esm/models/subagentreasoning.js +33 -0
  270. package/esm/models/subagentservertoolconfig.d.ts +50 -0
  271. package/esm/models/subagentservertoolconfig.js +27 -0
  272. package/esm/models/subagentservertoolopenrouter.d.ts +28 -0
  273. package/esm/models/subagentservertoolopenrouter.js +20 -0
  274. package/esm/models/updateobservabilitydestinationrequest.d.ts +1 -1
  275. package/esm/models/urlcitation.d.ts +2 -0
  276. package/esm/models/urlcitation.js +2 -0
  277. package/esm/models/videogenerationrequest.d.ts +16 -4
  278. package/esm/models/videogenerationrequest.js +4 -2
  279. package/esm/models/websearchconfig.d.ts +10 -5
  280. package/esm/models/websearchconfig.js +2 -0
  281. package/esm/models/websearchengine.d.ts +1 -0
  282. package/esm/models/websearchengine.js +1 -0
  283. package/esm/models/websearchengineenum.d.ts +4 -3
  284. package/esm/models/websearchengineenum.js +3 -2
  285. package/esm/models/websearchservertool.d.ts +2 -2
  286. package/esm/models/websearchservertoolconfig.d.ts +10 -5
  287. package/esm/models/websearchservertoolconfig.js +2 -0
  288. package/esm/sdk/beta.d.ts +3 -0
  289. package/esm/sdk/beta.js +4 -0
  290. package/esm/sdk/betaanalytics.d.ts +19 -0
  291. package/esm/sdk/betaanalytics.js +29 -0
  292. package/esm/sdk/datasets.d.ts +46 -0
  293. package/esm/sdk/datasets.js +53 -0
  294. package/esm/sdk/files.d.ts +44 -0
  295. package/esm/sdk/files.js +60 -0
  296. package/esm/sdk/models.d.ts +7 -0
  297. package/esm/sdk/models.js +10 -0
  298. package/esm/sdk/presets.d.ts +33 -0
  299. package/esm/sdk/presets.js +41 -0
  300. package/esm/sdk/sdk.d.ts +5 -2
  301. package/esm/sdk/sdk.js +7 -3
  302. package/jsr.json +1 -1
  303. package/package.json +3 -3
@@ -21,6 +21,7 @@ import { McpApprovalResponseItem$outboundSchema, } from "./mcpapprovalresponseit
21
21
  import { McpCallItem$outboundSchema, } from "./mcpcallitem.js";
22
22
  import { McpListToolsItem$outboundSchema, } from "./mcplisttoolsitem.js";
23
23
  import { OpenAIResponsesRefusalContent$outboundSchema, } from "./openairesponsesrefusalcontent.js";
24
+ import { OutputAdvisorServerToolItem$outboundSchema, } from "./outputadvisorservertoolitem.js";
24
25
  import { OutputApplyPatchServerToolItem$outboundSchema, } from "./outputapplypatchservertoolitem.js";
25
26
  import { OutputBashServerToolItem$outboundSchema, } from "./outputbashservertoolitem.js";
26
27
  import { OutputBrowserUseServerToolItem$outboundSchema, } from "./outputbrowseruseservertoolitem.js";
@@ -32,11 +33,13 @@ import { OutputDatetimeItem$outboundSchema, } from "./outputdatetimeitem.js";
32
33
  import { OutputFileSearchCallItem$outboundSchema, } from "./outputfilesearchcallitem.js";
33
34
  import { OutputFileSearchServerToolItem$outboundSchema, } from "./outputfilesearchservertoolitem.js";
34
35
  import { OutputFunctionCallItem$outboundSchema, } from "./outputfunctioncallitem.js";
36
+ import { OutputFusionServerToolItem$outboundSchema, } from "./outputfusionservertoolitem.js";
35
37
  import { OutputImageGenerationCallItem$outboundSchema, } from "./outputimagegenerationcallitem.js";
36
38
  import { OutputImageGenerationServerToolItem$outboundSchema, } from "./outputimagegenerationservertoolitem.js";
37
39
  import { OutputMcpServerToolItem$outboundSchema, } from "./outputmcpservertoolitem.js";
38
40
  import { OutputMemoryServerToolItem$outboundSchema, } from "./outputmemoryservertoolitem.js";
39
41
  import { OutputSearchModelsServerToolItem$outboundSchema, } from "./outputsearchmodelsservertoolitem.js";
42
+ import { OutputSubagentServerToolItem$outboundSchema, } from "./outputsubagentservertoolitem.js";
40
43
  import { OutputTextEditorServerToolItem$outboundSchema, } from "./outputtexteditorservertoolitem.js";
41
44
  import { OutputToolSearchServerToolItem$outboundSchema, } from "./outputtoolsearchservertoolitem.js";
42
45
  import { OutputWebFetchServerToolItem$outboundSchema, } from "./outputwebfetchservertoolitem.js";
@@ -211,7 +214,6 @@ export const InputsUnion1$outboundSchema = z.union([
211
214
  z.lazy(() => InputsMessage$outboundSchema),
212
215
  OutputFunctionCallItem$outboundSchema,
213
216
  OutputCustomToolCallItem$outboundSchema,
214
- OutputWebSearchCallItem$outboundSchema,
215
217
  OutputFileSearchCallItem$outboundSchema,
216
218
  OutputComputerCallItem$outboundSchema,
217
219
  OutputDatetimeItem$outboundSchema,
@@ -221,6 +223,7 @@ export const InputsUnion1$outboundSchema = z.union([
221
223
  FunctionCallOutputItem$outboundSchema,
222
224
  ApplyPatchCallOutputItem$outboundSchema,
223
225
  z.lazy(() => InputsReasoning$outboundSchema),
226
+ OutputWebSearchCallItem$outboundSchema,
224
227
  OutputImageGenerationCallItem$outboundSchema,
225
228
  LocalShellCallOutputItem$outboundSchema,
226
229
  ShellCallItem$outboundSchema,
@@ -240,6 +243,9 @@ export const InputsUnion1$outboundSchema = z.union([
240
243
  OutputMemoryServerToolItem$outboundSchema,
241
244
  OutputMcpServerToolItem$outboundSchema,
242
245
  OutputSearchModelsServerToolItem$outboundSchema,
246
+ OutputFusionServerToolItem$outboundSchema,
247
+ OutputAdvisorServerToolItem$outboundSchema,
248
+ OutputSubagentServerToolItem$outboundSchema,
243
249
  CompactionItem$outboundSchema,
244
250
  ItemReferenceItem$outboundSchema,
245
251
  EasyInputMessage$outboundSchema,
@@ -261,7 +267,6 @@ export const InputsUnion$outboundSchema = z.union([
261
267
  z.lazy(() => InputsMessage$outboundSchema),
262
268
  OutputFunctionCallItem$outboundSchema,
263
269
  OutputCustomToolCallItem$outboundSchema,
264
- OutputWebSearchCallItem$outboundSchema,
265
270
  OutputFileSearchCallItem$outboundSchema,
266
271
  OutputComputerCallItem$outboundSchema,
267
272
  OutputDatetimeItem$outboundSchema,
@@ -271,6 +276,7 @@ export const InputsUnion$outboundSchema = z.union([
271
276
  FunctionCallOutputItem$outboundSchema,
272
277
  ApplyPatchCallOutputItem$outboundSchema,
273
278
  z.lazy(() => InputsReasoning$outboundSchema),
279
+ OutputWebSearchCallItem$outboundSchema,
274
280
  OutputImageGenerationCallItem$outboundSchema,
275
281
  LocalShellCallOutputItem$outboundSchema,
276
282
  ShellCallItem$outboundSchema,
@@ -290,6 +296,9 @@ export const InputsUnion$outboundSchema = z.union([
290
296
  OutputMemoryServerToolItem$outboundSchema,
291
297
  OutputMcpServerToolItem$outboundSchema,
292
298
  OutputSearchModelsServerToolItem$outboundSchema,
299
+ OutputFusionServerToolItem$outboundSchema,
300
+ OutputAdvisorServerToolItem$outboundSchema,
301
+ OutputSubagentServerToolItem$outboundSchema,
293
302
  CompactionItem$outboundSchema,
294
303
  ItemReferenceItem$outboundSchema,
295
304
  EasyInputMessage$outboundSchema,
@@ -10,12 +10,12 @@ import { WebSearchUserLocation, WebSearchUserLocation$Outbound } from "./websear
10
10
  */
11
11
  export type LegacyWebSearchServerTool = {
12
12
  /**
13
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API.
13
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
14
14
  */
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  filters?: WebSearchDomainFilter | null | undefined;
17
17
  /**
18
- * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search.
18
+ * Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
19
19
  */
20
20
  maxResults?: number | undefined;
21
21
  /**
@@ -0,0 +1,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
+ import { Preset } from "./preset.js";
5
+ /**
6
+ * A paginated list of presets.
7
+ */
8
+ export type ListPresetsResponse = {
9
+ data: Array<Preset>;
10
+ totalCount: number;
11
+ };
12
+ /** @internal */
13
+ export declare const ListPresetsResponse$inboundSchema: z.ZodType<ListPresetsResponse, unknown>;
14
+ export declare function listPresetsResponseFromJSON(jsonString: string): SafeParseResult<ListPresetsResponse, SDKValidationError>;
15
+ //# sourceMappingURL=listpresetsresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fa1eada5cc46
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 { Preset$inboundSchema } from "./preset.js";
9
+ /** @internal */
10
+ export const ListPresetsResponse$inboundSchema = z.object({
11
+ data: z.array(Preset$inboundSchema),
12
+ total_count: z.int(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "total_count": "totalCount",
16
+ });
17
+ });
18
+ export function listPresetsResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => ListPresetsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPresetsResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=listpresetsresponse.js.map
@@ -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
+ import { PresetDesignatedVersion } from "./presetdesignatedversion.js";
5
+ /**
6
+ * A paginated list of preset versions.
7
+ */
8
+ export type ListPresetVersionsResponse = {
9
+ data: Array<PresetDesignatedVersion | null>;
10
+ totalCount: number;
11
+ };
12
+ /** @internal */
13
+ export declare const ListPresetVersionsResponse$inboundSchema: z.ZodType<ListPresetVersionsResponse, unknown>;
14
+ export declare function listPresetVersionsResponseFromJSON(jsonString: string): SafeParseResult<ListPresetVersionsResponse, SDKValidationError>;
15
+ //# sourceMappingURL=listpresetversionsresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 071060ed138f
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 { PresetDesignatedVersion$inboundSchema, } from "./presetdesignatedversion.js";
9
+ /** @internal */
10
+ export const ListPresetVersionsResponse$inboundSchema = z.object({
11
+ data: z.array(z.nullable(PresetDesignatedVersion$inboundSchema)),
12
+ total_count: z.int(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "total_count": "totalCount",
16
+ });
17
+ });
18
+ export function listPresetVersionsResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => ListPresetVersionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPresetVersionsResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=listpresetversionsresponse.js.map
@@ -0,0 +1,19 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.
4
+ */
5
+ export type MessagesFallbackParam = {
6
+ model: string;
7
+ additionalProperties?: {
8
+ [k: string]: any | null;
9
+ } | undefined;
10
+ };
11
+ /** @internal */
12
+ export type MessagesFallbackParam$Outbound = {
13
+ model: string;
14
+ [additionalProperties: string]: unknown;
15
+ };
16
+ /** @internal */
17
+ export declare const MessagesFallbackParam$outboundSchema: z.ZodType<MessagesFallbackParam$Outbound, MessagesFallbackParam>;
18
+ export declare function messagesFallbackParamToJSON(messagesFallbackParam: MessagesFallbackParam): string;
19
+ //# sourceMappingURL=messagesfallbackparam.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 990ce0f7bc03
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const MessagesFallbackParam$outboundSchema = z.object({
9
+ model: z.string(),
10
+ additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
11
+ }).transform((v) => {
12
+ return {
13
+ ...v.additionalProperties,
14
+ ...remap$(v, {
15
+ additionalProperties: null,
16
+ }),
17
+ };
18
+ });
19
+ export function messagesFallbackParamToJSON(messagesFallbackParam) {
20
+ return JSON.stringify(MessagesFallbackParam$outboundSchema.parse(messagesFallbackParam));
21
+ }
22
+ //# sourceMappingURL=messagesfallbackparam.js.map
@@ -12,12 +12,14 @@ import { AnthropicToolUsesKeep, AnthropicToolUsesKeep$Outbound } from "./anthrop
12
12
  import { AnthropicToolUsesTrigger, AnthropicToolUsesTrigger$Outbound } from "./anthropictoolusestrigger.js";
13
13
  import { AnthropicWebSearchToolUserLocation, AnthropicWebSearchToolUserLocation$Outbound } from "./anthropicwebsearchtooluserlocation.js";
14
14
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
15
+ import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
15
16
  import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
16
17
  import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
17
18
  import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
18
19
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
19
20
  import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
20
21
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
22
+ import { MessagesFallbackParam, MessagesFallbackParam$Outbound } from "./messagesfallbackparam.js";
21
23
  import { MessagesMessageParam, MessagesMessageParam$Outbound } from "./messagesmessageparam.js";
22
24
  import { MessagesOutputConfig, MessagesOutputConfig$Outbound } from "./messagesoutputconfig.js";
23
25
  import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
@@ -253,7 +255,7 @@ export type ToolCustom = {
253
255
  name: string;
254
256
  type?: ToolTypeCustom | undefined;
255
257
  };
256
- export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
258
+ export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool;
257
259
  /**
258
260
  * Request schema for Anthropic Messages API endpoint
259
261
  */
@@ -263,6 +265,10 @@ export type MessagesRequest = {
263
265
  */
264
266
  cacheControl?: AnthropicCacheControlDirective | undefined;
265
267
  contextManagement?: ContextManagement | null | undefined;
268
+ /**
269
+ * Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.
270
+ */
271
+ fallbacks?: Array<MessagesFallbackParam> | null | undefined;
266
272
  maxTokens?: number | undefined;
267
273
  messages: Array<MessagesMessageParam> | null;
268
274
  metadata?: Metadata | undefined;
@@ -296,7 +302,7 @@ export type MessagesRequest = {
296
302
  temperature?: number | undefined;
297
303
  thinking?: ThinkingEnabled | ThinkingDisabled | ThinkingAdaptive | undefined;
298
304
  toolChoice?: ToolChoiceAuto | ToolChoiceAny | ToolChoiceNone | ToolChoiceTool | undefined;
299
- tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
305
+ tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool> | undefined;
300
306
  topK?: number | undefined;
301
307
  topP?: number | undefined;
302
308
  /**
@@ -592,7 +598,7 @@ export type ToolCustom$Outbound = {
592
598
  export declare const ToolCustom$outboundSchema: z.ZodType<ToolCustom$Outbound, ToolCustom>;
593
599
  export declare function toolCustomToJSON(toolCustom: ToolCustom): string;
594
600
  /** @internal */
595
- export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
601
+ export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound;
596
602
  /** @internal */
597
603
  export declare const MessagesRequestToolUnion$outboundSchema: z.ZodType<MessagesRequestToolUnion$Outbound, MessagesRequestToolUnion>;
598
604
  export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion: MessagesRequestToolUnion): string;
@@ -600,6 +606,7 @@ export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion:
600
606
  export type MessagesRequest$Outbound = {
601
607
  cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
602
608
  context_management?: ContextManagement$Outbound | null | undefined;
609
+ fallbacks?: Array<MessagesFallbackParam$Outbound> | null | undefined;
603
610
  max_tokens?: number | undefined;
604
611
  messages: Array<MessagesMessageParam$Outbound> | null;
605
612
  metadata?: Metadata$Outbound | undefined;
@@ -618,7 +625,7 @@ export type MessagesRequest$Outbound = {
618
625
  temperature?: number | undefined;
619
626
  thinking?: ThinkingEnabled$Outbound | ThinkingDisabled$Outbound | ThinkingAdaptive$Outbound | undefined;
620
627
  tool_choice?: ToolChoiceAuto$Outbound | ToolChoiceAny$Outbound | ToolChoiceNone$Outbound | ToolChoiceTool$Outbound | undefined;
621
- tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
628
+ tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound> | undefined;
622
629
  top_k?: number | undefined;
623
630
  top_p?: number | undefined;
624
631
  trace?: TraceConfig$Outbound | undefined;
@@ -17,12 +17,14 @@ import { AnthropicToolUsesKeep$outboundSchema, } from "./anthropictooluseskeep.j
17
17
  import { AnthropicToolUsesTrigger$outboundSchema, } from "./anthropictoolusestrigger.js";
18
18
  import { AnthropicWebSearchToolUserLocation$outboundSchema, } from "./anthropicwebsearchtooluserlocation.js";
19
19
  import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
20
+ import { BashServerTool$outboundSchema, } from "./bashservertool.js";
20
21
  import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
21
22
  import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
22
23
  import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
23
24
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
24
25
  import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
25
26
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
27
+ import { MessagesFallbackParam$outboundSchema, } from "./messagesfallbackparam.js";
26
28
  import { MessagesMessageParam$outboundSchema, } from "./messagesmessageparam.js";
27
29
  import { MessagesOutputConfig$outboundSchema, } from "./messagesoutputconfig.js";
28
30
  import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
@@ -514,6 +516,7 @@ export const MessagesRequestToolUnion$outboundSchema = z.union([
514
516
  z.lazy(() => ToolTextEditor20250124$outboundSchema),
515
517
  z.lazy(() => ToolWebSearch20250305$outboundSchema),
516
518
  z.lazy(() => ToolWebSearch20260209$outboundSchema),
519
+ BashServerTool$outboundSchema,
517
520
  DatetimeServerTool$outboundSchema,
518
521
  ImageGenerationServerToolOpenRouter$outboundSchema,
519
522
  ChatSearchModelsServerTool$outboundSchema,
@@ -529,6 +532,8 @@ export const MessagesRequest$outboundSchema = z.object({
529
532
  cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
530
533
  contextManagement: z.nullable(z.lazy(() => ContextManagement$outboundSchema))
531
534
  .optional(),
535
+ fallbacks: z.nullable(z.array(MessagesFallbackParam$outboundSchema))
536
+ .optional(),
532
537
  maxTokens: z.int().optional(),
533
538
  messages: z.nullable(z.array(MessagesMessageParam$outboundSchema)),
534
539
  metadata: z.lazy(() => Metadata$outboundSchema).optional(),
@@ -575,6 +580,7 @@ export const MessagesRequest$outboundSchema = z.object({
575
580
  z.lazy(() => ToolTextEditor20250124$outboundSchema),
576
581
  z.lazy(() => ToolWebSearch20250305$outboundSchema),
577
582
  z.lazy(() => ToolWebSearch20260209$outboundSchema),
583
+ BashServerTool$outboundSchema,
578
584
  DatetimeServerTool$outboundSchema,
579
585
  ImageGenerationServerToolOpenRouter$outboundSchema,
580
586
  ChatSearchModelsServerTool$outboundSchema,
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { DefaultParameters } from "./defaultparameters.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  import { ModelArchitecture } from "./modelarchitecture.js";
6
+ import { ModelBenchmarks } from "./modelbenchmarks.js";
6
7
  import { ModelLinks } from "./modellinks.js";
7
8
  import { Parameter } from "./parameter.js";
8
9
  import { PerRequestLimits } from "./perrequestlimits.js";
@@ -16,6 +17,10 @@ export type Model = {
16
17
  * Model architecture information
17
18
  */
18
19
  architecture: ModelArchitecture;
20
+ /**
21
+ * Third-party benchmark rankings for this model. Omitted when no benchmark data is available.
22
+ */
23
+ benchmarks?: ModelBenchmarks | undefined;
19
24
  /**
20
25
  * Canonical slug for the model
21
26
  */
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
8
  import { DefaultParameters$inboundSchema, } from "./defaultparameters.js";
9
9
  import { ModelArchitecture$inboundSchema, } from "./modelarchitecture.js";
10
+ import { ModelBenchmarks$inboundSchema, } from "./modelbenchmarks.js";
10
11
  import { ModelLinks$inboundSchema } from "./modellinks.js";
11
12
  import { Parameter$inboundSchema } from "./parameter.js";
12
13
  import { PerRequestLimits$inboundSchema, } from "./perrequestlimits.js";
@@ -15,6 +16,7 @@ import { TopProviderInfo$inboundSchema, } from "./topproviderinfo.js";
15
16
  /** @internal */
16
17
  export const Model$inboundSchema = z.object({
17
18
  architecture: ModelArchitecture$inboundSchema,
19
+ benchmarks: ModelBenchmarks$inboundSchema.optional(),
18
20
  canonical_slug: z.string(),
19
21
  context_length: z.nullable(z.int()),
20
22
  created: z.int(),
@@ -0,0 +1,22 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AABenchmarkEntry } from "./aabenchmarkentry.js";
4
+ import { DABenchmarkEntry } from "./dabenchmarkentry.js";
5
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
+ /**
7
+ * Third-party benchmark rankings for this model. Omitted when no benchmark data is available.
8
+ */
9
+ export type ModelBenchmarks = {
10
+ /**
11
+ * Artificial Analysis benchmark index scores.
12
+ */
13
+ artificialAnalysis?: AABenchmarkEntry | undefined;
14
+ /**
15
+ * Design Arena ELO rankings across arena+category pairs.
16
+ */
17
+ designArena: Array<DABenchmarkEntry>;
18
+ };
19
+ /** @internal */
20
+ export declare const ModelBenchmarks$inboundSchema: z.ZodType<ModelBenchmarks, unknown>;
21
+ export declare function modelBenchmarksFromJSON(jsonString: string): SafeParseResult<ModelBenchmarks, SDKValidationError>;
22
+ //# sourceMappingURL=modelbenchmarks.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: dc71ead66ff6
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 { AABenchmarkEntry$inboundSchema, } from "./aabenchmarkentry.js";
9
+ import { DABenchmarkEntry$inboundSchema, } from "./dabenchmarkentry.js";
10
+ /** @internal */
11
+ export const ModelBenchmarks$inboundSchema = z.object({
12
+ artificial_analysis: AABenchmarkEntry$inboundSchema.optional(),
13
+ design_arena: z.array(DABenchmarkEntry$inboundSchema),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "artificial_analysis": "artificialAnalysis",
17
+ "design_arena": "designArena",
18
+ });
19
+ });
20
+ export function modelBenchmarksFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => ModelBenchmarks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelBenchmarks' from JSON`);
22
+ }
23
+ //# sourceMappingURL=modelbenchmarks.js.map
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { Model } from "./model.js";
5
+ /**
6
+ * Single model response
7
+ */
8
+ export type ModelResponse = {
9
+ /**
10
+ * Information about an AI model available on OpenRouter
11
+ */
12
+ data: Model;
13
+ };
14
+ /** @internal */
15
+ export declare const ModelResponse$inboundSchema: z.ZodType<ModelResponse, unknown>;
16
+ export declare function modelResponseFromJSON(jsonString: string): SafeParseResult<ModelResponse, SDKValidationError>;
17
+ //# sourceMappingURL=modelresponse.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fcc2bf8be188
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Model$inboundSchema } from "./model.js";
8
+ /** @internal */
9
+ export const ModelResponse$inboundSchema = z
10
+ .object({
11
+ data: Model$inboundSchema,
12
+ });
13
+ export function modelResponseFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => ModelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelResponse' from JSON`);
15
+ }
16
+ //# sourceMappingURL=modelresponse.js.map
@@ -45,7 +45,7 @@ export type ObservabilityArizeDestination = {
45
45
  */
46
46
  privacyMode: boolean;
47
47
  /**
48
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
48
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
49
49
  */
50
50
  samplingRate: number;
51
51
  type: "arize";
@@ -44,7 +44,7 @@ export type ObservabilityBraintrustDestination = {
44
44
  */
45
45
  privacyMode: boolean;
46
46
  /**
47
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
47
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
48
48
  */
49
49
  samplingRate: number;
50
50
  type: "braintrust";
@@ -49,7 +49,7 @@ export type ObservabilityClickhouseDestination = {
49
49
  */
50
50
  privacyMode: boolean;
51
51
  /**
52
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
52
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
53
53
  */
54
54
  samplingRate: number;
55
55
  type: "clickhouse";
@@ -53,7 +53,7 @@ export type ObservabilityDatadogDestination = {
53
53
  */
54
54
  privacyMode: boolean;
55
55
  /**
56
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
56
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
57
57
  */
58
58
  samplingRate: number;
59
59
  type: "datadog";
@@ -44,7 +44,7 @@ export type ObservabilityGrafanaDestination = {
44
44
  */
45
45
  privacyMode: boolean;
46
46
  /**
47
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
47
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
48
48
  */
49
49
  samplingRate: number;
50
50
  type: "grafana";
@@ -44,7 +44,7 @@ export type ObservabilityLangfuseDestination = {
44
44
  */
45
45
  privacyMode: boolean;
46
46
  /**
47
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
47
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
48
48
  */
49
49
  samplingRate: number;
50
50
  type: "langfuse";
@@ -51,7 +51,7 @@ export type ObservabilityLangsmithDestination = {
51
51
  */
52
52
  privacyMode: boolean;
53
53
  /**
54
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
54
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
55
55
  */
56
56
  samplingRate: number;
57
57
  type: "langsmith";
@@ -49,7 +49,7 @@ export type ObservabilityNewrelicDestination = {
49
49
  */
50
50
  privacyMode: boolean;
51
51
  /**
52
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
52
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
53
53
  */
54
54
  samplingRate: number;
55
55
  type: "newrelic";
@@ -44,7 +44,7 @@ export type ObservabilityOpikDestination = {
44
44
  */
45
45
  privacyMode: boolean;
46
46
  /**
47
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
47
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
48
48
  */
49
49
  samplingRate: number;
50
50
  type: "opik";
@@ -42,7 +42,7 @@ export type ObservabilityOtelCollectorDestination = {
42
42
  */
43
43
  privacyMode: boolean;
44
44
  /**
45
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
45
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
46
46
  */
47
47
  samplingRate: number;
48
48
  type: "otel-collector";
@@ -43,7 +43,7 @@ export type ObservabilityPosthogDestination = {
43
43
  */
44
44
  privacyMode: boolean;
45
45
  /**
46
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
46
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
47
47
  */
48
48
  samplingRate: number;
49
49
  type: "posthog";
@@ -46,7 +46,7 @@ export type ObservabilityRampDestination = {
46
46
  */
47
47
  privacyMode: boolean;
48
48
  /**
49
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
49
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
50
50
  */
51
51
  samplingRate: number;
52
52
  type: "ramp";
@@ -55,7 +55,7 @@ export type ObservabilityS3Destination = {
55
55
  */
56
56
  privacyMode: boolean;
57
57
  /**
58
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
58
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
59
59
  */
60
60
  samplingRate: number;
61
61
  type: "s3";
@@ -43,7 +43,7 @@ export type ObservabilitySentryDestination = {
43
43
  */
44
44
  privacyMode: boolean;
45
45
  /**
46
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
46
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
47
47
  */
48
48
  samplingRate: number;
49
49
  type: "sentry";
@@ -47,7 +47,7 @@ export type ObservabilitySnowflakeDestination = {
47
47
  */
48
48
  privacyMode: boolean;
49
49
  /**
50
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
50
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
51
51
  */
52
52
  samplingRate: number;
53
53
  type: "snowflake";
@@ -45,7 +45,7 @@ export type ObservabilityWeaveDestination = {
45
45
  */
46
46
  privacyMode: boolean;
47
47
  /**
48
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
48
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
49
49
  */
50
50
  samplingRate: number;
51
51
  type: "weave";
@@ -46,7 +46,7 @@ export type ObservabilityWebhookDestination = {
46
46
  */
47
47
  privacyMode: boolean;
48
48
  /**
49
- * Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%).
49
+ * Sampling rate for events sent to this destination, between 0.0001 and 1 (1 = 100%).
50
50
  */
51
51
  samplingRate: number;
52
52
  type: "webhook";