@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
@@ -36,6 +36,7 @@ export const ProviderOptions$outboundSchema = z.object({
36
36
  crucible: z.record(z.string(), z.nullable(z.any())).optional(),
37
37
  crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
38
38
  darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
39
+ decart: z.record(z.string(), z.nullable(z.any())).optional(),
39
40
  deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
40
41
  deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
41
42
  dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -115,6 +116,7 @@ export const ProviderOptions$outboundSchema = z.object({
115
116
  ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
116
117
  upstage: z.record(z.string(), z.nullable(z.any())).optional(),
117
118
  venice: z.record(z.string(), z.nullable(z.any())).optional(),
119
+ wafer: z.record(z.string(), z.nullable(z.any())).optional(),
118
120
  wandb: z.record(z.string(), z.nullable(z.any())).optional(),
119
121
  xai: z.record(z.string(), z.nullable(z.any())).optional(),
120
122
  xiaomi: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -13,6 +13,7 @@ export declare const ProviderResponseProviderName: {
13
13
  readonly Enfer: "Enfer";
14
14
  readonly GoPomelo: "GoPomelo";
15
15
  readonly HuggingFace: "HuggingFace";
16
+ readonly Hyperbolic: "Hyperbolic";
16
17
  readonly Hyperbolic2: "Hyperbolic 2";
17
18
  readonly InoCloud: "InoCloud";
18
19
  readonly Kluster: "Kluster";
@@ -59,6 +60,7 @@ export declare const ProviderResponseProviderName: {
59
60
  readonly Crucible: "Crucible";
60
61
  readonly Crusoe: "Crusoe";
61
62
  readonly Darkbloom: "Darkbloom";
63
+ readonly Decart: "Decart";
62
64
  readonly DeepInfra: "DeepInfra";
63
65
  readonly DeepSeek: "DeepSeek";
64
66
  readonly DekaLLM: "DekaLLM";
@@ -70,7 +72,6 @@ export declare const ProviderResponseProviderName: {
70
72
  readonly Google: "Google";
71
73
  readonly GoogleAIStudio: "Google AI Studio";
72
74
  readonly Groq: "Groq";
73
- readonly Hyperbolic: "Hyperbolic";
74
75
  readonly Inception: "Inception";
75
76
  readonly Inceptron: "Inceptron";
76
77
  readonly InferenceNet: "InferenceNet";
@@ -114,6 +115,7 @@ export declare const ProviderResponseProviderName: {
114
115
  readonly Together: "Together";
115
116
  readonly Upstage: "Upstage";
116
117
  readonly Venice: "Venice";
118
+ readonly Wafer: "Wafer";
117
119
  readonly WandB: "WandB";
118
120
  readonly Xiaomi: "Xiaomi";
119
121
  readonly XAI: "xAI";
@@ -17,6 +17,7 @@ export const ProviderResponseProviderName = {
17
17
  Enfer: "Enfer",
18
18
  GoPomelo: "GoPomelo",
19
19
  HuggingFace: "HuggingFace",
20
+ Hyperbolic: "Hyperbolic",
20
21
  Hyperbolic2: "Hyperbolic 2",
21
22
  InoCloud: "InoCloud",
22
23
  Kluster: "Kluster",
@@ -63,6 +64,7 @@ export const ProviderResponseProviderName = {
63
64
  Crucible: "Crucible",
64
65
  Crusoe: "Crusoe",
65
66
  Darkbloom: "Darkbloom",
67
+ Decart: "Decart",
66
68
  DeepInfra: "DeepInfra",
67
69
  DeepSeek: "DeepSeek",
68
70
  DekaLLM: "DekaLLM",
@@ -74,7 +76,6 @@ export const ProviderResponseProviderName = {
74
76
  Google: "Google",
75
77
  GoogleAIStudio: "Google AI Studio",
76
78
  Groq: "Groq",
77
- Hyperbolic: "Hyperbolic",
78
79
  Inception: "Inception",
79
80
  Inceptron: "Inceptron",
80
81
  InferenceNet: "InferenceNet",
@@ -118,6 +119,7 @@ export const ProviderResponseProviderName = {
118
119
  Together: "Together",
119
120
  Upstage: "Upstage",
120
121
  Venice: "Venice",
122
+ Wafer: "Wafer",
121
123
  WandB: "WandB",
122
124
  Xiaomi: "Xiaomi",
123
125
  XAI: "xAI",
@@ -134,7 +136,7 @@ export const ProviderResponse$inboundSchema = z.object({
134
136
  latency: z.number().optional(),
135
137
  model_permaslug: z.string().optional(),
136
138
  provider_name: ProviderResponseProviderName$inboundSchema.optional(),
137
- status: z.nullable(z.number()),
139
+ status: z.nullable(z.int()),
138
140
  }).transform((v) => {
139
141
  return remap$(v, {
140
142
  "endpoint_id": "endpointId",
@@ -5,13 +5,13 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * Dataset version. Field names and grain are stable for the life of `v1`.
7
7
  */
8
- export declare const Version: {
8
+ export declare const RankingsDailyMetaVersion: {
9
9
  readonly V1: "v1";
10
10
  };
11
11
  /**
12
12
  * Dataset version. Field names and grain are stable for the life of `v1`.
13
13
  */
14
- export type Version = ClosedEnum<typeof Version>;
14
+ export type RankingsDailyMetaVersion = ClosedEnum<typeof RankingsDailyMetaVersion>;
15
15
  export type RankingsDailyMeta = {
16
16
  /**
17
17
  * ISO-8601 timestamp of when the response was generated. Reflects data-freshness because the underlying materialized view continuously ingests upstream events.
@@ -28,10 +28,10 @@ export type RankingsDailyMeta = {
28
28
  /**
29
29
  * Dataset version. Field names and grain are stable for the life of `v1`.
30
30
  */
31
- version: Version;
31
+ version: RankingsDailyMetaVersion;
32
32
  };
33
33
  /** @internal */
34
- export declare const Version$inboundSchema: z.ZodEnum<typeof Version>;
34
+ export declare const RankingsDailyMetaVersion$inboundSchema: z.ZodEnum<typeof RankingsDailyMetaVersion>;
35
35
  /** @internal */
36
36
  export declare const RankingsDailyMeta$inboundSchema: z.ZodType<RankingsDailyMeta, unknown>;
37
37
  export declare function rankingsDailyMetaFromJSON(jsonString: string): SafeParseResult<RankingsDailyMeta, SDKValidationError>;
@@ -8,17 +8,17 @@ import { safeParse } from "../lib/schemas.js";
8
8
  /**
9
9
  * Dataset version. Field names and grain are stable for the life of `v1`.
10
10
  */
11
- export const Version = {
11
+ export const RankingsDailyMetaVersion = {
12
12
  V1: "v1",
13
13
  };
14
14
  /** @internal */
15
- export const Version$inboundSchema = z.enum(Version);
15
+ export const RankingsDailyMetaVersion$inboundSchema = z.enum(RankingsDailyMetaVersion);
16
16
  /** @internal */
17
17
  export const RankingsDailyMeta$inboundSchema = z.object({
18
18
  as_of: z.string(),
19
19
  end_date: z.string(),
20
20
  start_date: z.string(),
21
- version: Version$inboundSchema,
21
+ version: RankingsDailyMetaVersion$inboundSchema,
22
22
  }).transform((v) => {
23
23
  return remap$(v, {
24
24
  "as_of": "asOf",
@@ -1,9 +1,11 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
+ import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js";
3
4
  import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js";
4
5
  import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
5
6
  import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
6
7
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
8
+ import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
7
9
  import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
8
10
  import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js";
9
11
  import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js";
@@ -33,8 +35,10 @@ import { ReasoningConfig, ReasoningConfig$Outbound } from "./reasoningconfig.js"
33
35
  import { ResponseHealingPlugin, ResponseHealingPlugin$Outbound } from "./responsehealingplugin.js";
34
36
  import { ResponseIncludesEnum } from "./responseincludesenum.js";
35
37
  import { ShellServerTool, ShellServerTool$Outbound } from "./shellservertool.js";
38
+ import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js";
36
39
  import { StopServerToolsWhenCondition, StopServerToolsWhenCondition$Outbound } from "./stopservertoolswhencondition.js";
37
40
  import { StoredPromptTemplate, StoredPromptTemplate$Outbound } from "./storedprompttemplate.js";
41
+ import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
38
42
  import { TextExtendedConfig, TextExtendedConfig$Outbound } from "./textextendedconfig.js";
39
43
  import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
40
44
  import { WebFetchPlugin, WebFetchPlugin$Outbound } from "./webfetchplugin.js";
@@ -63,7 +67,11 @@ export type ResponsesRequestToolFunction = {
63
67
  strict?: boolean | null | undefined;
64
68
  type: "function";
65
69
  };
66
- export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | FileSearchServerTool | ComputerUseServerTool | CodeInterpreterServerTool | McpServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | CustomTool | (DatetimeServerTool & {
70
+ export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | FileSearchServerTool | ComputerUseServerTool | CodeInterpreterServerTool | McpServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | CustomTool | (AdvisorServerToolOpenRouter & {
71
+ type: "openrouter:advisor";
72
+ }) | (SubagentServerToolOpenRouter & {
73
+ type: "openrouter:subagent";
74
+ }) | (DatetimeServerTool & {
67
75
  type: "openrouter:datetime";
68
76
  }) | FusionServerToolOpenRouter | (ImageGenerationServerToolOpenRouter & {
69
77
  type: "openrouter:image_generation";
@@ -71,7 +79,9 @@ export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | PreviewWe
71
79
  type: "openrouter:experimental__search_models";
72
80
  }) | (WebFetchServerTool & {
73
81
  type: "openrouter:web_fetch";
74
- }) | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter;
82
+ }) | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | (BashServerTool & {
83
+ type: "openrouter:bash";
84
+ }) | ShellServerToolOpenRouter;
75
85
  /**
76
86
  * Request schema for Responses endpoint
77
87
  */
@@ -143,7 +153,11 @@ export type ResponsesRequest = {
143
153
  */
144
154
  text?: TextExtendedConfig | undefined;
145
155
  toolChoice?: OpenAIResponsesToolChoiceUnion | undefined;
146
- tools?: Array<ResponsesRequestToolFunction | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | FileSearchServerTool | ComputerUseServerTool | CodeInterpreterServerTool | McpServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | CustomTool | (DatetimeServerTool & {
156
+ tools?: Array<ResponsesRequestToolFunction | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | FileSearchServerTool | ComputerUseServerTool | CodeInterpreterServerTool | McpServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | CustomTool | (AdvisorServerToolOpenRouter & {
157
+ type: "openrouter:advisor";
158
+ }) | (SubagentServerToolOpenRouter & {
159
+ type: "openrouter:subagent";
160
+ }) | (DatetimeServerTool & {
147
161
  type: "openrouter:datetime";
148
162
  }) | FusionServerToolOpenRouter | (ImageGenerationServerToolOpenRouter & {
149
163
  type: "openrouter:image_generation";
@@ -151,7 +165,9 @@ export type ResponsesRequest = {
151
165
  type: "openrouter:experimental__search_models";
152
166
  }) | (WebFetchServerTool & {
153
167
  type: "openrouter:web_fetch";
154
- }) | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter> | undefined;
168
+ }) | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | (BashServerTool & {
169
+ type: "openrouter:bash";
170
+ }) | ShellServerToolOpenRouter> | undefined;
155
171
  topK?: number | undefined;
156
172
  topLogprobs?: number | null | undefined;
157
173
  topP?: number | null | undefined;
@@ -186,7 +202,11 @@ export type ResponsesRequestToolFunction$Outbound = {
186
202
  export declare const ResponsesRequestToolFunction$outboundSchema: z.ZodType<ResponsesRequestToolFunction$Outbound, ResponsesRequestToolFunction>;
187
203
  export declare function responsesRequestToolFunctionToJSON(responsesRequestToolFunction: ResponsesRequestToolFunction): string;
188
204
  /** @internal */
189
- export type ResponsesRequestToolUnion$Outbound = ResponsesRequestToolFunction$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | FileSearchServerTool$Outbound | ComputerUseServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | CustomTool$Outbound | (DatetimeServerTool$Outbound & {
205
+ export type ResponsesRequestToolUnion$Outbound = ResponsesRequestToolFunction$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | FileSearchServerTool$Outbound | ComputerUseServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | CustomTool$Outbound | (AdvisorServerToolOpenRouter$Outbound & {
206
+ type: "openrouter:advisor";
207
+ }) | (SubagentServerToolOpenRouter$Outbound & {
208
+ type: "openrouter:subagent";
209
+ }) | (DatetimeServerTool$Outbound & {
190
210
  type: "openrouter:datetime";
191
211
  }) | FusionServerToolOpenRouter$Outbound | (ImageGenerationServerToolOpenRouter$Outbound & {
192
212
  type: "openrouter:image_generation";
@@ -194,7 +214,9 @@ export type ResponsesRequestToolUnion$Outbound = ResponsesRequestToolFunction$Ou
194
214
  type: "openrouter:experimental__search_models";
195
215
  }) | (WebFetchServerTool$Outbound & {
196
216
  type: "openrouter:web_fetch";
197
- }) | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound;
217
+ }) | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | (BashServerTool$Outbound & {
218
+ type: "openrouter:bash";
219
+ }) | ShellServerToolOpenRouter$Outbound;
198
220
  /** @internal */
199
221
  export declare const ResponsesRequestToolUnion$outboundSchema: z.ZodType<ResponsesRequestToolUnion$Outbound, ResponsesRequestToolUnion>;
200
222
  export declare function responsesRequestToolUnionToJSON(responsesRequestToolUnion: ResponsesRequestToolUnion): string;
@@ -234,7 +256,11 @@ export type ResponsesRequest$Outbound = {
234
256
  temperature?: number | null | undefined;
235
257
  text?: TextExtendedConfig$Outbound | undefined;
236
258
  tool_choice?: OpenAIResponsesToolChoiceUnion$Outbound | undefined;
237
- tools?: Array<ResponsesRequestToolFunction$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | FileSearchServerTool$Outbound | ComputerUseServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | CustomTool$Outbound | (DatetimeServerTool$Outbound & {
259
+ tools?: Array<ResponsesRequestToolFunction$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | FileSearchServerTool$Outbound | ComputerUseServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | CustomTool$Outbound | (AdvisorServerToolOpenRouter$Outbound & {
260
+ type: "openrouter:advisor";
261
+ }) | (SubagentServerToolOpenRouter$Outbound & {
262
+ type: "openrouter:subagent";
263
+ }) | (DatetimeServerTool$Outbound & {
238
264
  type: "openrouter:datetime";
239
265
  }) | FusionServerToolOpenRouter$Outbound | (ImageGenerationServerToolOpenRouter$Outbound & {
240
266
  type: "openrouter:image_generation";
@@ -242,7 +268,9 @@ export type ResponsesRequest$Outbound = {
242
268
  type: "openrouter:experimental__search_models";
243
269
  }) | (WebFetchServerTool$Outbound & {
244
270
  type: "openrouter:web_fetch";
245
- }) | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound> | undefined;
271
+ }) | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | (BashServerTool$Outbound & {
272
+ type: "openrouter:bash";
273
+ }) | ShellServerToolOpenRouter$Outbound> | undefined;
246
274
  top_k?: number | undefined;
247
275
  top_logprobs?: number | null | undefined;
248
276
  top_p?: number | null | undefined;
@@ -5,10 +5,12 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import * as openEnums from "../types/enums.js";
8
+ import { AdvisorServerToolOpenRouter$outboundSchema, } from "./advisorservertoolopenrouter.js";
8
9
  import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccachecontroldirective.js";
9
10
  import { ApplyPatchServerTool$outboundSchema, } from "./applypatchservertool.js";
10
11
  import { ApplyPatchServerToolOpenRouter$outboundSchema, } from "./applypatchservertoolopenrouter.js";
11
12
  import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
13
+ import { BashServerTool$outboundSchema, } from "./bashservertool.js";
12
14
  import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
13
15
  import { CodeInterpreterServerTool$outboundSchema, } from "./codeinterpreterservertool.js";
14
16
  import { CodexLocalShellTool$outboundSchema, } from "./codexlocalshelltool.js";
@@ -38,8 +40,10 @@ import { ReasoningConfig$outboundSchema, } from "./reasoningconfig.js";
38
40
  import { ResponseHealingPlugin$outboundSchema, } from "./responsehealingplugin.js";
39
41
  import { ResponseIncludesEnum$outboundSchema, } from "./responseincludesenum.js";
40
42
  import { ShellServerTool$outboundSchema, } from "./shellservertool.js";
43
+ import { ShellServerToolOpenRouter$outboundSchema, } from "./shellservertoolopenrouter.js";
41
44
  import { StopServerToolsWhenCondition$outboundSchema, } from "./stopservertoolswhencondition.js";
42
45
  import { StoredPromptTemplate$outboundSchema, } from "./storedprompttemplate.js";
46
+ import { SubagentServerToolOpenRouter$outboundSchema, } from "./subagentservertoolopenrouter.js";
43
47
  import { TextExtendedConfig$outboundSchema, } from "./textextendedconfig.js";
44
48
  import { TraceConfig$outboundSchema, } from "./traceconfig.js";
45
49
  import { WebFetchPlugin$outboundSchema, } from "./webfetchplugin.js";
@@ -98,6 +102,8 @@ export const ResponsesRequestToolUnion$outboundSchema = z.union([
98
102
  ShellServerTool$outboundSchema,
99
103
  ApplyPatchServerTool$outboundSchema,
100
104
  CustomTool$outboundSchema,
105
+ AdvisorServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:advisor") })),
106
+ SubagentServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:subagent") })),
101
107
  DatetimeServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:datetime") })),
102
108
  FusionServerToolOpenRouter$outboundSchema,
103
109
  ImageGenerationServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:image_generation") })),
@@ -105,6 +111,8 @@ export const ResponsesRequestToolUnion$outboundSchema = z.union([
105
111
  WebFetchServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:web_fetch") })),
106
112
  WebSearchServerToolOpenRouter$outboundSchema,
107
113
  ApplyPatchServerToolOpenRouter$outboundSchema,
114
+ BashServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:bash") })),
115
+ ShellServerToolOpenRouter$outboundSchema,
108
116
  ]);
109
117
  export function responsesRequestToolUnionToJSON(responsesRequestToolUnion) {
110
118
  return JSON.stringify(ResponsesRequestToolUnion$outboundSchema.parse(responsesRequestToolUnion));
@@ -167,6 +175,8 @@ export const ResponsesRequest$outboundSchema = z.object({
167
175
  ShellServerTool$outboundSchema,
168
176
  ApplyPatchServerTool$outboundSchema,
169
177
  CustomTool$outboundSchema,
178
+ AdvisorServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:advisor") })),
179
+ SubagentServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:subagent") })),
170
180
  DatetimeServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:datetime") })),
171
181
  FusionServerToolOpenRouter$outboundSchema,
172
182
  ImageGenerationServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:image_generation") })),
@@ -174,6 +184,8 @@ export const ResponsesRequest$outboundSchema = z.object({
174
184
  WebFetchServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:web_fetch") })),
175
185
  WebSearchServerToolOpenRouter$outboundSchema,
176
186
  ApplyPatchServerToolOpenRouter$outboundSchema,
187
+ BashServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:bash") })),
188
+ ShellServerToolOpenRouter$outboundSchema,
177
189
  ])).optional(),
178
190
  topK: z.int().optional(),
179
191
  topLogprobs: z.nullable(z.int()).optional(),
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  /**
4
- * How much context to retrieve per result. Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size.
4
+ * How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.
5
5
  */
6
6
  export declare const SearchQualityLevel: {
7
7
  readonly Low: "low";
@@ -9,7 +9,7 @@ export declare const SearchQualityLevel: {
9
9
  readonly High: "high";
10
10
  };
11
11
  /**
12
- * How much context to retrieve per result. Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size.
12
+ * How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.
13
13
  */
14
14
  export type SearchQualityLevel = OpenEnum<typeof SearchQualityLevel>;
15
15
  /** @internal */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as openEnums from "../types/enums.js";
6
6
  /**
7
- * How much context to retrieve per result. Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size.
7
+ * How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.
8
8
  */
9
9
  export const SearchQualityLevel = {
10
10
  Low: "low",
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Status of a shell call or its output.
5
+ */
6
+ export declare const ShellCallStatus: {
7
+ readonly InProgress: "in_progress";
8
+ readonly Completed: "completed";
9
+ readonly Incomplete: "incomplete";
10
+ };
11
+ /**
12
+ * Status of a shell call or its output.
13
+ */
14
+ export type ShellCallStatus = OpenEnum<typeof ShellCallStatus>;
15
+ /** @internal */
16
+ export declare const ShellCallStatus$inboundSchema: z.ZodType<ShellCallStatus, unknown>;
17
+ //# sourceMappingURL=shellcallstatus.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 26933f522ec6
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Status of a shell call or its output.
8
+ */
9
+ export const ShellCallStatus = {
10
+ InProgress: "in_progress",
11
+ Completed: "completed",
12
+ Incomplete: "incomplete",
13
+ };
14
+ /** @internal */
15
+ export const ShellCallStatus$inboundSchema = openEnums.inboundSchema(ShellCallStatus);
16
+ //# sourceMappingURL=shellcallstatus.js.map
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4";
2
+ import { ShellServerToolEngine } from "./shellservertoolengine.js";
3
+ import { ShellServerToolEnvironment, ShellServerToolEnvironment$Outbound } from "./shellservertoolenvironment.js";
4
+ /**
5
+ * Configuration for the openrouter:shell server tool
6
+ */
7
+ export type ShellServerToolConfig = {
8
+ /**
9
+ * Which shell engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.
10
+ */
11
+ engine?: ShellServerToolEngine | undefined;
12
+ /**
13
+ * Server-side execution environment for the shell tool. Only container-backed environments are supported; "local" shells are not.
14
+ */
15
+ environment?: ShellServerToolEnvironment | undefined;
16
+ /**
17
+ * How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days).
18
+ */
19
+ sleepAfterSeconds?: number | undefined;
20
+ };
21
+ /** @internal */
22
+ export type ShellServerToolConfig$Outbound = {
23
+ engine?: string | undefined;
24
+ environment?: ShellServerToolEnvironment$Outbound | undefined;
25
+ sleep_after_seconds?: number | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const ShellServerToolConfig$outboundSchema: z.ZodType<ShellServerToolConfig$Outbound, ShellServerToolConfig>;
29
+ export declare function shellServerToolConfigToJSON(shellServerToolConfig: ShellServerToolConfig): string;
30
+ //# sourceMappingURL=shellservertoolconfig.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c6c92c223699
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { ShellServerToolEngine$outboundSchema, } from "./shellservertoolengine.js";
8
+ import { ShellServerToolEnvironment$outboundSchema, } from "./shellservertoolenvironment.js";
9
+ /** @internal */
10
+ export const ShellServerToolConfig$outboundSchema = z.object({
11
+ engine: ShellServerToolEngine$outboundSchema.optional(),
12
+ environment: ShellServerToolEnvironment$outboundSchema.optional(),
13
+ sleepAfterSeconds: z.int().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ sleepAfterSeconds: "sleep_after_seconds",
17
+ });
18
+ });
19
+ export function shellServerToolConfigToJSON(shellServerToolConfig) {
20
+ return JSON.stringify(ShellServerToolConfig$outboundSchema.parse(shellServerToolConfig));
21
+ }
22
+ //# sourceMappingURL=shellservertoolconfig.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Which shell engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.
5
+ */
6
+ export declare const ShellServerToolEngine: {
7
+ readonly Auto: "auto";
8
+ readonly Openrouter: "openrouter";
9
+ };
10
+ /**
11
+ * Which shell engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.
12
+ */
13
+ export type ShellServerToolEngine = OpenEnum<typeof ShellServerToolEngine>;
14
+ /** @internal */
15
+ export declare const ShellServerToolEngine$outboundSchema: z.ZodType<string, ShellServerToolEngine>;
16
+ //# sourceMappingURL=shellservertoolengine.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 65e8f719b40b
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Which shell engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.
8
+ */
9
+ export const ShellServerToolEngine = {
10
+ Auto: "auto",
11
+ Openrouter: "openrouter",
12
+ };
13
+ /** @internal */
14
+ export const ShellServerToolEngine$outboundSchema = openEnums.outboundSchema(ShellServerToolEngine);
15
+ //# sourceMappingURL=shellservertoolengine.js.map
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { ContainerAutoEnvironment, ContainerAutoEnvironment$Outbound } from "./containerautoenvironment.js";
3
+ import { ContainerReferenceEnvironment, ContainerReferenceEnvironment$Outbound } from "./containerreferenceenvironment.js";
4
+ /**
5
+ * Server-side execution environment for the shell tool. Only container-backed environments are supported; "local" shells are not.
6
+ */
7
+ export type ShellServerToolEnvironment = ContainerAutoEnvironment | ContainerReferenceEnvironment;
8
+ /** @internal */
9
+ export type ShellServerToolEnvironment$Outbound = ContainerAutoEnvironment$Outbound | ContainerReferenceEnvironment$Outbound;
10
+ /** @internal */
11
+ export declare const ShellServerToolEnvironment$outboundSchema: z.ZodType<ShellServerToolEnvironment$Outbound, ShellServerToolEnvironment>;
12
+ export declare function shellServerToolEnvironmentToJSON(shellServerToolEnvironment: ShellServerToolEnvironment): string;
13
+ //# sourceMappingURL=shellservertoolenvironment.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b1655b283806
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ContainerAutoEnvironment$outboundSchema, } from "./containerautoenvironment.js";
7
+ import { ContainerReferenceEnvironment$outboundSchema, } from "./containerreferenceenvironment.js";
8
+ /** @internal */
9
+ export const ShellServerToolEnvironment$outboundSchema = z.union([
10
+ ContainerAutoEnvironment$outboundSchema,
11
+ ContainerReferenceEnvironment$outboundSchema,
12
+ ]);
13
+ export function shellServerToolEnvironmentToJSON(shellServerToolEnvironment) {
14
+ return JSON.stringify(ShellServerToolEnvironment$outboundSchema.parse(shellServerToolEnvironment));
15
+ }
16
+ //# sourceMappingURL=shellservertoolenvironment.js.map
@@ -0,0 +1,21 @@
1
+ import * as z from "zod/v4";
2
+ import { ShellServerToolConfig, ShellServerToolConfig$Outbound } from "./shellservertoolconfig.js";
3
+ /**
4
+ * OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)
5
+ */
6
+ export type ShellServerToolOpenRouter = {
7
+ /**
8
+ * Configuration for the openrouter:shell server tool
9
+ */
10
+ parameters?: ShellServerToolConfig | undefined;
11
+ type: "openrouter:shell";
12
+ };
13
+ /** @internal */
14
+ export type ShellServerToolOpenRouter$Outbound = {
15
+ parameters?: ShellServerToolConfig$Outbound | undefined;
16
+ type: "openrouter:shell";
17
+ };
18
+ /** @internal */
19
+ export declare const ShellServerToolOpenRouter$outboundSchema: z.ZodType<ShellServerToolOpenRouter$Outbound, ShellServerToolOpenRouter>;
20
+ export declare function shellServerToolOpenRouterToJSON(shellServerToolOpenRouter: ShellServerToolOpenRouter): string;
21
+ //# sourceMappingURL=shellservertoolopenrouter.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6619f9fcf764
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ShellServerToolConfig$outboundSchema, } from "./shellservertoolconfig.js";
7
+ /** @internal */
8
+ export const ShellServerToolOpenRouter$outboundSchema = z.object({
9
+ parameters: ShellServerToolConfig$outboundSchema.optional(),
10
+ type: z.literal("openrouter:shell"),
11
+ });
12
+ export function shellServerToolOpenRouterToJSON(shellServerToolOpenRouter) {
13
+ return JSON.stringify(ShellServerToolOpenRouter$outboundSchema.parse(shellServerToolOpenRouter));
14
+ }
15
+ //# sourceMappingURL=shellservertoolopenrouter.js.map
@@ -12,6 +12,15 @@ import { ErrorEvent } from "./errorevent.js";
12
12
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
13
13
  import { FunctionCallArgsDeltaEvent } from "./functioncallargsdeltaevent.js";
14
14
  import { FunctionCallArgsDoneEvent } from "./functioncallargsdoneevent.js";
15
+ import { FusionCallAnalysisCompletedEvent } from "./fusioncallanalysiscompletedevent.js";
16
+ import { FusionCallAnalysisInProgressEvent } from "./fusioncallanalysisinprogressevent.js";
17
+ import { FusionCallCompletedEvent } from "./fusioncallcompletedevent.js";
18
+ import { FusionCallInProgressEvent } from "./fusioncallinprogressevent.js";
19
+ import { FusionCallPanelAddedEvent } from "./fusioncallpaneladdedevent.js";
20
+ import { FusionCallPanelCompletedEvent } from "./fusioncallpanelcompletedevent.js";
21
+ import { FusionCallPanelDeltaEvent } from "./fusioncallpaneldeltaevent.js";
22
+ import { FusionCallPanelFailedEvent } from "./fusioncallpanelfailedevent.js";
23
+ import { FusionCallPanelReasoningDeltaEvent } from "./fusioncallpanelreasoningdeltaevent.js";
15
24
  import { ImageGenCallCompletedEvent } from "./imagegencallcompletedevent.js";
16
25
  import { ImageGenCallGeneratingEvent } from "./imagegencallgeneratingevent.js";
17
26
  import { ImageGenCallInProgressEvent } from "./imagegencallinprogressevent.js";
@@ -39,7 +48,7 @@ import { WebSearchCallSearchingEvent } from "./websearchcallsearchingevent.js";
39
48
  /**
40
49
  * Union of all possible event types emitted during response streaming
41
50
  */
42
- export type StreamEvents = ErrorEvent | ApplyPatchCallOperationDiffDeltaEvent | ApplyPatchCallOperationDiffDoneEvent | StreamEventsResponseCompleted | ContentPartAddedEvent | ContentPartDoneEvent | OpenResponsesCreatedEvent | CustomToolCallInputDeltaEvent | CustomToolCallInputDoneEvent | StreamEventsResponseFailed | FunctionCallArgsDeltaEvent | FunctionCallArgsDoneEvent | 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">;
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">;
43
52
  /** @internal */
44
53
  export declare const StreamEvents$inboundSchema: z.ZodType<StreamEvents, unknown>;
45
54
  export declare function streamEventsFromJSON(jsonString: string): SafeParseResult<StreamEvents, SDKValidationError>;
@@ -14,6 +14,15 @@ import { CustomToolCallInputDoneEvent$inboundSchema, } from "./customtoolcallinp
14
14
  import { ErrorEvent$inboundSchema } from "./errorevent.js";
15
15
  import { FunctionCallArgsDeltaEvent$inboundSchema, } from "./functioncallargsdeltaevent.js";
16
16
  import { FunctionCallArgsDoneEvent$inboundSchema, } from "./functioncallargsdoneevent.js";
17
+ import { FusionCallAnalysisCompletedEvent$inboundSchema, } from "./fusioncallanalysiscompletedevent.js";
18
+ import { FusionCallAnalysisInProgressEvent$inboundSchema, } from "./fusioncallanalysisinprogressevent.js";
19
+ import { FusionCallCompletedEvent$inboundSchema, } from "./fusioncallcompletedevent.js";
20
+ import { FusionCallInProgressEvent$inboundSchema, } from "./fusioncallinprogressevent.js";
21
+ import { FusionCallPanelAddedEvent$inboundSchema, } from "./fusioncallpaneladdedevent.js";
22
+ import { FusionCallPanelCompletedEvent$inboundSchema, } from "./fusioncallpanelcompletedevent.js";
23
+ import { FusionCallPanelDeltaEvent$inboundSchema, } from "./fusioncallpaneldeltaevent.js";
24
+ import { FusionCallPanelFailedEvent$inboundSchema, } from "./fusioncallpanelfailedevent.js";
25
+ import { FusionCallPanelReasoningDeltaEvent$inboundSchema, } from "./fusioncallpanelreasoningdeltaevent.js";
17
26
  import { ImageGenCallCompletedEvent$inboundSchema, } from "./imagegencallcompletedevent.js";
18
27
  import { ImageGenCallGeneratingEvent$inboundSchema, } from "./imagegencallgeneratingevent.js";
19
28
  import { ImageGenCallInProgressEvent$inboundSchema, } from "./imagegencallinprogressevent.js";
@@ -52,6 +61,15 @@ export const StreamEvents$inboundSchema = discriminatedUnion("type", {
52
61
  ["response.failed"]: StreamEventsResponseFailed$inboundSchema,
53
62
  ["response.function_call_arguments.delta"]: FunctionCallArgsDeltaEvent$inboundSchema,
54
63
  ["response.function_call_arguments.done"]: FunctionCallArgsDoneEvent$inboundSchema,
64
+ ["response.fusion_call.analysis.completed"]: FusionCallAnalysisCompletedEvent$inboundSchema,
65
+ ["response.fusion_call.analysis.in_progress"]: FusionCallAnalysisInProgressEvent$inboundSchema,
66
+ ["response.fusion_call.completed"]: FusionCallCompletedEvent$inboundSchema,
67
+ ["response.fusion_call.in_progress"]: FusionCallInProgressEvent$inboundSchema,
68
+ ["response.fusion_call.panel.added"]: FusionCallPanelAddedEvent$inboundSchema,
69
+ ["response.fusion_call.panel.completed"]: FusionCallPanelCompletedEvent$inboundSchema,
70
+ ["response.fusion_call.panel.delta"]: FusionCallPanelDeltaEvent$inboundSchema,
71
+ ["response.fusion_call.panel.failed"]: FusionCallPanelFailedEvent$inboundSchema,
72
+ ["response.fusion_call.panel.reasoning.delta"]: FusionCallPanelReasoningDeltaEvent$inboundSchema,
55
73
  ["response.image_generation_call.completed"]: ImageGenCallCompletedEvent$inboundSchema,
56
74
  ["response.image_generation_call.generating"]: ImageGenCallGeneratingEvent$inboundSchema,
57
75
  ["response.image_generation_call.in_progress"]: ImageGenCallInProgressEvent$inboundSchema,