@openrouter/sdk 0.12.79 → 0.13.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/README.md +43 -9
  2. package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
  3. package/esm/funcs/benchmarksGetBenchmarks.js +105 -0
  4. package/esm/funcs/betaAnalyticsGetAnalyticsMeta.d.ts +18 -0
  5. package/esm/funcs/betaAnalyticsGetAnalyticsMeta.js +96 -0
  6. package/esm/funcs/betaAnalyticsQueryAnalytics.d.ts +18 -0
  7. package/esm/funcs/betaAnalyticsQueryAnalytics.js +97 -0
  8. package/esm/funcs/betaResponsesSend.js +1 -1
  9. package/esm/funcs/chatSend.js +1 -1
  10. package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
  11. package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
  12. package/esm/funcs/datasetsGetAppRankings.d.ts +43 -0
  13. package/esm/funcs/datasetsGetAppRankings.js +161 -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/imagesGenerate.d.ts +30 -0
  25. package/esm/funcs/imagesGenerate.js +95 -0
  26. package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
  27. package/esm/funcs/imagesListModelEndpoints.js +107 -0
  28. package/esm/funcs/imagesListModels.d.ts +19 -0
  29. package/esm/funcs/imagesListModels.js +97 -0
  30. package/esm/funcs/modelsGet.d.ts +19 -0
  31. package/esm/funcs/modelsGet.js +107 -0
  32. package/esm/funcs/modelsList.js +12 -0
  33. package/esm/funcs/oAuthCreateAuthCode.d.ts +1 -1
  34. package/esm/funcs/oAuthCreateAuthCode.js +1 -1
  35. package/esm/funcs/presetsGet.d.ts +21 -0
  36. package/esm/funcs/presetsGet.js +105 -0
  37. package/esm/funcs/presetsGetVersion.d.ts +21 -0
  38. package/esm/funcs/presetsGetVersion.js +109 -0
  39. package/esm/funcs/presetsList.d.ts +23 -0
  40. package/esm/funcs/presetsList.js +136 -0
  41. package/esm/funcs/presetsListVersions.d.ts +23 -0
  42. package/esm/funcs/presetsListVersions.js +142 -0
  43. package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
  44. package/esm/funcs/workspacesDeleteBudget.js +107 -0
  45. package/esm/funcs/workspacesListBudgets.d.ts +19 -0
  46. package/esm/funcs/workspacesListBudgets.js +103 -0
  47. package/esm/funcs/workspacesSetBudget.d.ts +19 -0
  48. package/esm/funcs/workspacesSetBudget.js +110 -0
  49. package/esm/lib/config.d.ts +2 -2
  50. package/esm/lib/config.js +2 -2
  51. package/esm/models/aabenchmarkentry.d.ts +24 -0
  52. package/esm/models/aabenchmarkentry.js +23 -0
  53. package/esm/models/advisornestedtool.d.ts +25 -0
  54. package/esm/models/advisornestedtool.js +23 -0
  55. package/esm/models/advisorreasoning.d.ts +42 -0
  56. package/esm/models/advisorreasoning.js +34 -0
  57. package/esm/models/advisorservertoolconfig.d.ts +65 -0
  58. package/esm/models/advisorservertoolconfig.js +31 -0
  59. package/esm/models/advisorservertoolopenrouter.d.ts +28 -0
  60. package/esm/models/advisorservertoolopenrouter.js +20 -0
  61. package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
  62. package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
  63. package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
  64. package/esm/models/anthropiccompactionusageiteration.js +35 -0
  65. package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
  66. package/esm/models/anthropicdocumentblockparam.js +3 -0
  67. package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
  68. package/esm/models/anthropicfiledocumentsource.js +19 -0
  69. package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
  70. package/esm/models/anthropiciterationcachecreation.js +21 -0
  71. package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
  72. package/esm/models/anthropicmessageusageiteration.js +36 -0
  73. package/esm/models/anthropicspeed.d.ts +10 -0
  74. package/esm/models/anthropicspeed.js +12 -0
  75. package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
  76. package/esm/models/anthropicunknownusageiteration.js +30 -0
  77. package/esm/models/anthropicusageiteration.d.ts +12 -0
  78. package/esm/models/anthropicusageiteration.js +21 -0
  79. package/esm/models/apierrortype.d.ts +41 -0
  80. package/esm/models/apierrortype.js +40 -0
  81. package/esm/models/apprankingsitem.d.ts +29 -0
  82. package/esm/models/apprankingsitem.js +26 -0
  83. package/esm/models/apprankingsresponse.d.ts +16 -0
  84. package/esm/models/apprankingsresponse.js +17 -0
  85. package/esm/models/bashservertool.d.ts +28 -0
  86. package/esm/models/bashservertool.js +20 -0
  87. package/esm/models/bashservertoolconfig.d.ts +30 -0
  88. package/esm/models/bashservertoolconfig.js +22 -0
  89. package/esm/models/bashservertoolengine.d.ts +17 -0
  90. package/esm/models/bashservertoolengine.js +16 -0
  91. package/esm/models/bashservertoolenvironment.d.ts +13 -0
  92. package/esm/models/bashservertoolenvironment.js +16 -0
  93. package/esm/models/booleancapability.d.ts +13 -0
  94. package/esm/models/booleancapability.js +14 -0
  95. package/esm/models/byokproviderslug.d.ts +5 -1
  96. package/esm/models/byokproviderslug.js +5 -1
  97. package/esm/models/capabilitydescriptor.d.ts +15 -0
  98. package/esm/models/capabilitydescriptor.js +19 -0
  99. package/esm/models/chatfunctiontool.d.ts +5 -2
  100. package/esm/models/chatfunctiontool.js +6 -0
  101. package/esm/models/chatrequest.d.ts +44 -0
  102. package/esm/models/chatrequest.js +26 -0
  103. package/esm/models/chatstreamchunk.d.ts +25 -4
  104. package/esm/models/chatstreamchunk.js +19 -4
  105. package/esm/models/chatusage.d.ts +32 -8
  106. package/esm/models/chatusage.js +25 -8
  107. package/esm/models/chatwebsearchshorthand.d.ts +10 -5
  108. package/esm/models/chatwebsearchshorthand.js +2 -0
  109. package/esm/models/containerautoenvironment.d.ts +15 -0
  110. package/esm/models/containerautoenvironment.js +13 -0
  111. package/esm/models/containerreferenceenvironment.d.ts +20 -0
  112. package/esm/models/containerreferenceenvironment.js +19 -0
  113. package/esm/models/contentfilterbuiltinentry.d.ts +5 -0
  114. package/esm/models/contentfilterbuiltinentry.js +7 -0
  115. package/esm/models/contentfilterbuiltinentryinput.d.ts +6 -0
  116. package/esm/models/contentfilterbuiltinentryinput.js +7 -0
  117. package/esm/models/contentpartaudio.d.ts +24 -0
  118. package/esm/models/contentpartaudio.js +27 -0
  119. package/esm/models/contentpartvideo.d.ts +24 -0
  120. package/esm/models/contentpartvideo.js +27 -0
  121. package/esm/models/createobservabilitydestinationrequest.d.ts +1 -1
  122. package/esm/models/dabenchmarkentry.d.ts +32 -0
  123. package/esm/models/dabenchmarkentry.js +23 -0
  124. package/esm/models/debugevent.d.ts +42 -0
  125. package/esm/models/debugevent.js +58 -0
  126. package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
  127. package/esm/models/deleteworkspacebudgetresponse.js +14 -0
  128. package/esm/models/enumcapability.d.ts +14 -0
  129. package/esm/models/enumcapability.js +15 -0
  130. package/esm/models/filedeleteresponse.d.ts +21 -0
  131. package/esm/models/filedeleteresponse.js +20 -0
  132. package/esm/models/filelistresponse.d.ts +21 -0
  133. package/esm/models/filelistresponse.js +26 -0
  134. package/esm/models/filemetadata.d.ts +26 -0
  135. package/esm/models/filemetadata.js +33 -0
  136. package/esm/models/fusionanalysisresult.d.ts +88 -0
  137. package/esm/models/fusionanalysisresult.js +109 -0
  138. package/esm/models/fusioncallanalysiscompletedevent.d.ts +21 -0
  139. package/esm/models/fusioncallanalysiscompletedevent.js +26 -0
  140. package/esm/models/fusioncallanalysisinprogressevent.d.ts +17 -0
  141. package/esm/models/fusioncallanalysisinprogressevent.js +26 -0
  142. package/esm/models/fusioncallcompletedevent.d.ts +16 -0
  143. package/esm/models/fusioncallcompletedevent.js +24 -0
  144. package/esm/models/fusioncallinprogressevent.d.ts +16 -0
  145. package/esm/models/fusioncallinprogressevent.js +24 -0
  146. package/esm/models/fusioncallpaneladdedevent.d.ts +17 -0
  147. package/esm/models/fusioncallpaneladdedevent.js +25 -0
  148. package/esm/models/fusioncallpanelcompletedevent.d.ts +18 -0
  149. package/esm/models/fusioncallpanelcompletedevent.js +26 -0
  150. package/esm/models/fusioncallpaneldeltaevent.d.ts +18 -0
  151. package/esm/models/fusioncallpaneldeltaevent.js +26 -0
  152. package/esm/models/fusioncallpanelfailedevent.d.ts +19 -0
  153. package/esm/models/fusioncallpanelfailedevent.js +28 -0
  154. package/esm/models/fusioncallpanelreasoningdeltaevent.d.ts +18 -0
  155. package/esm/models/fusioncallpanelreasoningdeltaevent.js +26 -0
  156. package/esm/models/fusionplugin.d.ts +47 -0
  157. package/esm/models/fusionplugin.js +21 -0
  158. package/esm/models/fusionservertoolconfig.d.ts +35 -1
  159. package/esm/models/fusionservertoolconfig.js +14 -0
  160. package/esm/models/generationresponse.d.ts +22 -0
  161. package/esm/models/generationresponse.js +14 -0
  162. package/esm/models/getpresetresponse.d.ts +17 -0
  163. package/esm/models/getpresetresponse.js +15 -0
  164. package/esm/models/getpresetversionresponse.d.ts +17 -0
  165. package/esm/models/getpresetversionresponse.js +15 -0
  166. package/esm/models/imageendpoint.d.ts +41 -0
  167. package/esm/models/imageendpoint.js +33 -0
  168. package/esm/models/imagegencompletedevent.d.ts +29 -0
  169. package/esm/models/imagegencompletedevent.js +23 -0
  170. package/esm/models/imagegenerationrequest.d.ts +908 -0
  171. package/esm/models/imagegenerationrequest.js +266 -0
  172. package/esm/models/imagegenerationresponse.d.ts +34 -0
  173. package/esm/models/imagegenerationresponse.js +29 -0
  174. package/esm/models/imagegenerationservertool.d.ts +15 -15
  175. package/esm/models/imagegenerationservertool.js +15 -17
  176. package/esm/models/imagegenerationusage.d.ts +119 -0
  177. package/esm/models/imagegenerationusage.js +93 -0
  178. package/esm/models/imagegenpartialimageevent.d.ts +24 -0
  179. package/esm/models/imagegenpartialimageevent.js +22 -0
  180. package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
  181. package/esm/models/imagegenstreamerrorevent.js +25 -0
  182. package/esm/models/imagemodelarchitecture.d.ts +19 -0
  183. package/esm/models/imagemodelarchitecture.js +23 -0
  184. package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
  185. package/esm/models/imagemodelendpointsresponse.js +16 -0
  186. package/esm/models/imagemodellistitem.d.ts +42 -0
  187. package/esm/models/imagemodellistitem.js +29 -0
  188. package/esm/models/imagemodelslistresponse.d.ts +14 -0
  189. package/esm/models/imagemodelslistresponse.js +15 -0
  190. package/esm/models/imageoutputmodality.d.ts +16 -0
  191. package/esm/models/imageoutputmodality.js +18 -0
  192. package/esm/models/imagepricingentry.d.ts +35 -0
  193. package/esm/models/imagepricingentry.js +41 -0
  194. package/esm/models/imagestreamingresponse.d.ts +18 -0
  195. package/esm/models/imagestreamingresponse.js +43 -0
  196. package/esm/models/index.d.ts +97 -0
  197. package/esm/models/index.js +97 -0
  198. package/esm/models/inputreference.d.ts +18 -0
  199. package/esm/models/inputreference.js +18 -0
  200. package/esm/models/inputsunion.d.ts +7 -4
  201. package/esm/models/inputsunion.js +11 -2
  202. package/esm/models/legacywebsearchservertool.d.ts +2 -2
  203. package/esm/models/listpresetsresponse.d.ts +15 -0
  204. package/esm/models/listpresetsresponse.js +21 -0
  205. package/esm/models/listpresetversionsresponse.d.ts +15 -0
  206. package/esm/models/listpresetversionsresponse.js +21 -0
  207. package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
  208. package/esm/models/listworkspacebudgetsresponse.js +15 -0
  209. package/esm/models/messagesfallbackparam.d.ts +19 -0
  210. package/esm/models/messagesfallbackparam.js +22 -0
  211. package/esm/models/messagesrequest.d.ts +17 -10
  212. package/esm/models/messagesrequest.js +10 -5
  213. package/esm/models/model.d.ts +10 -0
  214. package/esm/models/model.js +4 -0
  215. package/esm/models/modelbenchmarks.d.ts +22 -0
  216. package/esm/models/modelbenchmarks.js +23 -0
  217. package/esm/models/modelreasoning.d.ts +49 -0
  218. package/esm/models/modelreasoning.js +42 -0
  219. package/esm/models/modelresponse.d.ts +17 -0
  220. package/esm/models/modelresponse.js +16 -0
  221. package/esm/models/observabilityarizedestination.d.ts +4 -1
  222. package/esm/models/observabilitybraintrustdestination.d.ts +1 -1
  223. package/esm/models/observabilityclickhousedestination.d.ts +1 -1
  224. package/esm/models/observabilitydatadogdestination.d.ts +1 -1
  225. package/esm/models/observabilitygrafanadestination.d.ts +1 -1
  226. package/esm/models/observabilitylangfusedestination.d.ts +1 -1
  227. package/esm/models/observabilitylangsmithdestination.d.ts +1 -1
  228. package/esm/models/observabilitynewrelicdestination.d.ts +1 -1
  229. package/esm/models/observabilityopikdestination.d.ts +1 -1
  230. package/esm/models/observabilityotelcollectordestination.d.ts +1 -1
  231. package/esm/models/observabilityposthogdestination.d.ts +1 -1
  232. package/esm/models/observabilityrampdestination.d.ts +1 -1
  233. package/esm/models/observabilitys3destination.d.ts +1 -1
  234. package/esm/models/observabilitysentrydestination.d.ts +1 -1
  235. package/esm/models/observabilitysnowflakedestination.d.ts +1 -1
  236. package/esm/models/observabilityweavedestination.d.ts +1 -1
  237. package/esm/models/observabilitywebhookdestination.d.ts +1 -1
  238. package/esm/models/openresponsesresult.d.ts +5 -0
  239. package/esm/models/openresponsesresult.js +3 -0
  240. package/esm/models/operations/createauthkeyscode.d.ts +6 -1
  241. package/esm/models/operations/createauthkeyscode.js +2 -0
  242. package/esm/models/operations/createembeddings.d.ts +19 -0
  243. package/esm/models/operations/createembeddings.js +20 -0
  244. package/esm/models/operations/createimages.d.ts +63 -0
  245. package/esm/models/operations/createimages.js +44 -0
  246. package/esm/models/operations/creatererank.d.ts +44 -10
  247. package/esm/models/operations/creatererank.js +21 -6
  248. package/esm/models/operations/createresponses.d.ts +3 -3
  249. package/esm/models/operations/createresponses.js +2 -3
  250. package/esm/models/operations/deletefile.d.ts +60 -0
  251. package/esm/models/operations/deletefile.js +24 -0
  252. package/esm/models/operations/deleteworkspacebudget.d.ts +64 -0
  253. package/esm/models/operations/deleteworkspacebudget.js +23 -0
  254. package/esm/models/operations/downloadfilecontent.d.ts +60 -0
  255. package/esm/models/operations/downloadfilecontent.js +24 -0
  256. package/esm/models/operations/getanalyticsmeta.d.ts +198 -0
  257. package/esm/models/operations/getanalyticsmeta.js +141 -0
  258. package/esm/models/operations/getapprankings.d.ts +152 -0
  259. package/esm/models/operations/getapprankings.js +85 -0
  260. package/esm/models/operations/getbenchmarks.d.ts +120 -0
  261. package/esm/models/operations/getbenchmarks.js +60 -0
  262. package/esm/models/operations/getfilemetadata.d.ts +60 -0
  263. package/esm/models/operations/getfilemetadata.js +24 -0
  264. package/esm/models/operations/getmodel.d.ts +63 -0
  265. package/esm/models/operations/getmodel.js +22 -0
  266. package/esm/models/operations/getmodels.d.ts +123 -5
  267. package/esm/models/operations/getmodels.js +61 -4
  268. package/esm/models/operations/getpreset.d.ts +58 -0
  269. package/esm/models/operations/getpreset.js +21 -0
  270. package/esm/models/operations/getpresetversion.d.ts +63 -0
  271. package/esm/models/operations/getpresetversion.js +22 -0
  272. package/esm/models/operations/gettaskclassifications.d.ts +71 -0
  273. package/esm/models/operations/gettaskclassifications.js +29 -0
  274. package/esm/models/operations/index.d.ts +21 -0
  275. package/esm/models/operations/index.js +21 -0
  276. package/esm/models/operations/listbyokkeys.d.ts +5 -1
  277. package/esm/models/operations/listbyokkeys.js +5 -1
  278. package/esm/models/operations/listfiles.d.ts +77 -0
  279. package/esm/models/operations/listfiles.js +37 -0
  280. package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
  281. package/esm/models/operations/listimagemodelendpoints.js +22 -0
  282. package/esm/models/operations/listimagemodels.d.ts +53 -0
  283. package/esm/models/operations/listimagemodels.js +20 -0
  284. package/esm/models/operations/listpresets.d.ts +72 -0
  285. package/esm/models/operations/listpresets.js +35 -0
  286. package/esm/models/operations/listpresetversions.d.ts +77 -0
  287. package/esm/models/operations/listpresetversions.js +36 -0
  288. package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
  289. package/esm/models/operations/listworkspacebudgets.js +21 -0
  290. package/esm/models/operations/queryanalytics.d.ts +199 -0
  291. package/esm/models/operations/queryanalytics.js +130 -0
  292. package/esm/models/operations/sendchatcompletionrequest.d.ts +3 -3
  293. package/esm/models/operations/sendchatcompletionrequest.js +2 -3
  294. package/esm/models/operations/uploadfile.d.ts +82 -0
  295. package/esm/models/operations/uploadfile.js +45 -0
  296. package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
  297. package/esm/models/operations/upsertworkspacebudget.js +25 -0
  298. package/esm/models/outputadvisorservertoolitem.d.ts +59 -0
  299. package/esm/models/outputadvisorservertoolitem.js +52 -0
  300. package/esm/models/outputfusionservertoolitem.d.ts +44 -43
  301. package/esm/models/outputfusionservertoolitem.js +49 -51
  302. package/esm/models/outputitems.d.ts +13 -3
  303. package/esm/models/outputitems.js +9 -1
  304. package/esm/models/outputshellcallitem.d.ts +29 -0
  305. package/esm/models/outputshellcallitem.js +38 -0
  306. package/esm/models/outputshellcalloutputitem.d.ts +48 -0
  307. package/esm/models/outputshellcalloutputitem.js +67 -0
  308. package/esm/models/outputsubagentservertoolitem.d.ts +59 -0
  309. package/esm/models/outputsubagentservertoolitem.js +54 -0
  310. package/esm/models/outputwebsearchcallitem.d.ts +2 -2
  311. package/esm/models/outputwebsearchcallitem.js +2 -2
  312. package/esm/models/preset.d.ts +27 -0
  313. package/esm/models/preset.js +35 -0
  314. package/esm/models/presetstatus.d.ts +17 -0
  315. package/esm/models/presetstatus.js +16 -0
  316. package/esm/models/presetwithdesignatedversion.d.ts +9 -14
  317. package/esm/models/presetwithdesignatedversion.js +4 -11
  318. package/esm/models/preview20250311websearchservertool.d.ts +2 -2
  319. package/esm/models/previewwebsearchservertool.d.ts +2 -2
  320. package/esm/models/promptinjectionscanscope.d.ts +18 -0
  321. package/esm/models/promptinjectionscanscope.js +17 -0
  322. package/esm/models/providername.d.ts +5 -1
  323. package/esm/models/providername.js +5 -1
  324. package/esm/models/provideroptions.d.ts +31 -1
  325. package/esm/models/provideroptions.js +7 -0
  326. package/esm/models/providerresponse.d.ts +6 -1
  327. package/esm/models/providerresponse.js +7 -2
  328. package/esm/models/rangecapability.d.ts +15 -0
  329. package/esm/models/rangecapability.js +16 -0
  330. package/esm/models/rankingsdailymeta.d.ts +4 -4
  331. package/esm/models/rankingsdailymeta.js +3 -3
  332. package/esm/models/reasoningeffort.d.ts +1 -0
  333. package/esm/models/reasoningeffort.js +1 -0
  334. package/esm/models/responsesrequest.d.ts +42 -8
  335. package/esm/models/responsesrequest.js +14 -0
  336. package/esm/models/searchqualitylevel.d.ts +2 -2
  337. package/esm/models/searchqualitylevel.js +1 -1
  338. package/esm/models/shellcallstatus.d.ts +17 -0
  339. package/esm/models/shellcallstatus.js +16 -0
  340. package/esm/models/shellservertoolconfig.d.ts +30 -0
  341. package/esm/models/shellservertoolconfig.js +22 -0
  342. package/esm/models/shellservertoolengine.d.ts +16 -0
  343. package/esm/models/shellservertoolengine.js +15 -0
  344. package/esm/models/shellservertoolenvironment.d.ts +13 -0
  345. package/esm/models/shellservertoolenvironment.js +16 -0
  346. package/esm/models/shellservertoolopenrouter.d.ts +21 -0
  347. package/esm/models/shellservertoolopenrouter.js +15 -0
  348. package/esm/models/speechrequest.d.ts +1 -1
  349. package/esm/models/streamevents.d.ts +11 -1
  350. package/esm/models/streamevents.js +20 -0
  351. package/esm/models/sttrequest.d.ts +1 -1
  352. package/esm/models/subagentnestedtool.d.ts +25 -0
  353. package/esm/models/subagentnestedtool.js +23 -0
  354. package/esm/models/subagentreasoning.d.ts +42 -0
  355. package/esm/models/subagentreasoning.js +34 -0
  356. package/esm/models/subagentservertoolconfig.d.ts +50 -0
  357. package/esm/models/subagentservertoolconfig.js +27 -0
  358. package/esm/models/subagentservertoolopenrouter.d.ts +28 -0
  359. package/esm/models/subagentservertoolopenrouter.js +20 -0
  360. package/esm/models/taskclassificationitem.d.ts +42 -0
  361. package/esm/models/taskclassificationitem.js +32 -0
  362. package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
  363. package/esm/models/taskclassificationmacrocategory.js +23 -0
  364. package/esm/models/taskclassificationmodel.d.ts +21 -0
  365. package/esm/models/taskclassificationmodel.js +22 -0
  366. package/esm/models/taskclassificationresponse.d.ts +33 -0
  367. package/esm/models/taskclassificationresponse.js +33 -0
  368. package/esm/models/unifiedbenchmarkpricing.d.ts +20 -0
  369. package/esm/models/unifiedbenchmarkpricing.js +15 -0
  370. package/esm/models/unifiedbenchmarksaaitem.d.ts +38 -0
  371. package/esm/models/unifiedbenchmarksaaitem.js +30 -0
  372. package/esm/models/unifiedbenchmarksdaitem.d.ts +63 -0
  373. package/esm/models/unifiedbenchmarksdaitem.js +51 -0
  374. package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
  375. package/esm/models/unifiedbenchmarksmeta.js +46 -0
  376. package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
  377. package/esm/models/unifiedbenchmarksresponse.js +30 -0
  378. package/esm/models/updateobservabilitydestinationrequest.d.ts +1 -1
  379. package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
  380. package/esm/models/upsertworkspacebudgetrequest.js +18 -0
  381. package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
  382. package/esm/models/upsertworkspacebudgetresponse.js +15 -0
  383. package/esm/models/urlcitation.d.ts +2 -0
  384. package/esm/models/urlcitation.js +2 -0
  385. package/esm/models/videogenerationrequest.d.ts +49 -19
  386. package/esm/models/videogenerationrequest.js +20 -13
  387. package/esm/models/websearchconfig.d.ts +10 -5
  388. package/esm/models/websearchconfig.js +2 -0
  389. package/esm/models/websearchengine.d.ts +1 -0
  390. package/esm/models/websearchengine.js +1 -0
  391. package/esm/models/websearchengineenum.d.ts +4 -3
  392. package/esm/models/websearchengineenum.js +3 -2
  393. package/esm/models/websearchservertool.d.ts +2 -2
  394. package/esm/models/websearchservertoolconfig.d.ts +10 -5
  395. package/esm/models/websearchservertoolconfig.js +2 -0
  396. package/esm/models/workspacebudget.d.ts +48 -0
  397. package/esm/models/workspacebudget.js +39 -0
  398. package/esm/models/workspacebudgetinterval.d.ts +18 -0
  399. package/esm/models/workspacebudgetinterval.js +17 -0
  400. package/esm/sdk/benchmarks.d.ts +13 -0
  401. package/esm/sdk/benchmarks.js +19 -0
  402. package/esm/sdk/beta.d.ts +3 -0
  403. package/esm/sdk/beta.js +4 -0
  404. package/esm/sdk/betaanalytics.d.ts +19 -0
  405. package/esm/sdk/betaanalytics.js +29 -0
  406. package/esm/sdk/classifications.d.ts +31 -0
  407. package/esm/sdk/classifications.js +37 -0
  408. package/esm/sdk/datasets.d.ts +32 -0
  409. package/esm/sdk/datasets.js +33 -0
  410. package/esm/sdk/files.d.ts +44 -0
  411. package/esm/sdk/files.js +60 -0
  412. package/esm/sdk/images.d.ts +38 -0
  413. package/esm/sdk/images.js +33 -0
  414. package/esm/sdk/models.d.ts +7 -0
  415. package/esm/sdk/models.js +10 -0
  416. package/esm/sdk/presets.d.ts +33 -0
  417. package/esm/sdk/presets.js +41 -0
  418. package/esm/sdk/sdk.d.ts +14 -2
  419. package/esm/sdk/sdk.js +19 -3
  420. package/esm/sdk/workspaces.d.ts +21 -0
  421. package/esm/sdk/workspaces.js +30 -0
  422. package/jsr.json +1 -1
  423. package/package.json +6 -6
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8daa16a72772
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { AnthropicAdvisorMessageUsageIteration$inboundSchema, } from "./anthropicadvisormessageusageiteration.js";
8
+ import { AnthropicCompactionUsageIteration$inboundSchema, } from "./anthropiccompactionusageiteration.js";
9
+ import { AnthropicMessageUsageIteration$inboundSchema, } from "./anthropicmessageusageiteration.js";
10
+ import { AnthropicUnknownUsageIteration$inboundSchema, } from "./anthropicunknownusageiteration.js";
11
+ /** @internal */
12
+ export const AnthropicUsageIteration$inboundSchema = z.union([
13
+ AnthropicAdvisorMessageUsageIteration$inboundSchema,
14
+ AnthropicCompactionUsageIteration$inboundSchema,
15
+ AnthropicMessageUsageIteration$inboundSchema,
16
+ AnthropicUnknownUsageIteration$inboundSchema,
17
+ ]);
18
+ export function anthropicUsageIterationFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => AnthropicUsageIteration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnthropicUsageIteration' from JSON`);
20
+ }
21
+ //# sourceMappingURL=anthropicusageiteration.js.map
@@ -0,0 +1,41 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Canonical OpenRouter error type, stable across all API formats
5
+ */
6
+ export declare const ApiErrorType: {
7
+ readonly ContextLengthExceeded: "context_length_exceeded";
8
+ readonly MaxTokensExceeded: "max_tokens_exceeded";
9
+ readonly TokenLimitExceeded: "token_limit_exceeded";
10
+ readonly StringTooLong: "string_too_long";
11
+ readonly Authentication: "authentication";
12
+ readonly PermissionDenied: "permission_denied";
13
+ readonly PaymentRequired: "payment_required";
14
+ readonly RateLimitExceeded: "rate_limit_exceeded";
15
+ readonly ProviderOverloaded: "provider_overloaded";
16
+ readonly ProviderUnavailable: "provider_unavailable";
17
+ readonly InvalidRequest: "invalid_request";
18
+ readonly InvalidPrompt: "invalid_prompt";
19
+ readonly NotFound: "not_found";
20
+ readonly PreconditionFailed: "precondition_failed";
21
+ readonly PayloadTooLarge: "payload_too_large";
22
+ readonly Unprocessable: "unprocessable";
23
+ readonly ContentPolicyViolation: "content_policy_violation";
24
+ readonly Refusal: "refusal";
25
+ readonly InvalidImage: "invalid_image";
26
+ readonly ImageTooLarge: "image_too_large";
27
+ readonly ImageTooSmall: "image_too_small";
28
+ readonly UnsupportedImageFormat: "unsupported_image_format";
29
+ readonly ImageNotFound: "image_not_found";
30
+ readonly ImageDownloadFailed: "image_download_failed";
31
+ readonly Server: "server";
32
+ readonly Timeout: "timeout";
33
+ readonly Unmapped: "unmapped";
34
+ };
35
+ /**
36
+ * Canonical OpenRouter error type, stable across all API formats
37
+ */
38
+ export type ApiErrorType = OpenEnum<typeof ApiErrorType>;
39
+ /** @internal */
40
+ export declare const ApiErrorType$inboundSchema: z.ZodType<ApiErrorType, unknown>;
41
+ //# sourceMappingURL=apierrortype.d.ts.map
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 240e785ddd59
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Canonical OpenRouter error type, stable across all API formats
8
+ */
9
+ export const ApiErrorType = {
10
+ ContextLengthExceeded: "context_length_exceeded",
11
+ MaxTokensExceeded: "max_tokens_exceeded",
12
+ TokenLimitExceeded: "token_limit_exceeded",
13
+ StringTooLong: "string_too_long",
14
+ Authentication: "authentication",
15
+ PermissionDenied: "permission_denied",
16
+ PaymentRequired: "payment_required",
17
+ RateLimitExceeded: "rate_limit_exceeded",
18
+ ProviderOverloaded: "provider_overloaded",
19
+ ProviderUnavailable: "provider_unavailable",
20
+ InvalidRequest: "invalid_request",
21
+ InvalidPrompt: "invalid_prompt",
22
+ NotFound: "not_found",
23
+ PreconditionFailed: "precondition_failed",
24
+ PayloadTooLarge: "payload_too_large",
25
+ Unprocessable: "unprocessable",
26
+ ContentPolicyViolation: "content_policy_violation",
27
+ Refusal: "refusal",
28
+ InvalidImage: "invalid_image",
29
+ ImageTooLarge: "image_too_large",
30
+ ImageTooSmall: "image_too_small",
31
+ UnsupportedImageFormat: "unsupported_image_format",
32
+ ImageNotFound: "image_not_found",
33
+ ImageDownloadFailed: "image_download_failed",
34
+ Server: "server",
35
+ Timeout: "timeout",
36
+ Unmapped: "unmapped",
37
+ };
38
+ /** @internal */
39
+ export const ApiErrorType$inboundSchema = openEnums.inboundSchema(ApiErrorType);
40
+ //# sourceMappingURL=apierrortype.js.map
@@ -0,0 +1,29 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type AppRankingsItem = {
5
+ /**
6
+ * Stable numeric identifier of the app on OpenRouter.
7
+ */
8
+ appId: number;
9
+ /**
10
+ * Public display name of the app.
11
+ */
12
+ appName: string;
13
+ /**
14
+ * 1-based position of the app within this response, per the requested `sort`.
15
+ */
16
+ rank: number;
17
+ /**
18
+ * Number of requests attributed to the app inside the date window.
19
+ */
20
+ totalRequests: number;
21
+ /**
22
+ * Sum of `prompt_tokens + completion_tokens` attributed to the app inside the date window, returned as a decimal string so 64-bit values are not truncated.
23
+ */
24
+ totalTokens: string;
25
+ };
26
+ /** @internal */
27
+ export declare const AppRankingsItem$inboundSchema: z.ZodType<AppRankingsItem, unknown>;
28
+ export declare function appRankingsItemFromJSON(jsonString: string): SafeParseResult<AppRankingsItem, SDKValidationError>;
29
+ //# sourceMappingURL=apprankingsitem.d.ts.map
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 94a6b307dab3
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ /** @internal */
9
+ export const AppRankingsItem$inboundSchema = z.object({
10
+ app_id: z.int(),
11
+ app_name: z.string(),
12
+ rank: z.int(),
13
+ total_requests: z.int(),
14
+ total_tokens: z.string(),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ "app_id": "appId",
18
+ "app_name": "appName",
19
+ "total_requests": "totalRequests",
20
+ "total_tokens": "totalTokens",
21
+ });
22
+ });
23
+ export function appRankingsItemFromJSON(jsonString) {
24
+ return safeParse(jsonString, (x) => AppRankingsItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AppRankingsItem' from JSON`);
25
+ }
26
+ //# sourceMappingURL=apprankingsitem.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AppRankingsItem } from "./apprankingsitem.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { RankingsDailyMeta } from "./rankingsdailymeta.js";
6
+ export type AppRankingsResponse = {
7
+ /**
8
+ * Apps ranked per the requested `sort`, re-numbered 1..N after category filtering. `popular` sorts by `total_tokens` descending; `trending` sorts by absolute excess token growth descending and may return fewer than `limit` rows when few apps are growing.
9
+ */
10
+ data: Array<AppRankingsItem>;
11
+ meta: RankingsDailyMeta;
12
+ };
13
+ /** @internal */
14
+ export declare const AppRankingsResponse$inboundSchema: z.ZodType<AppRankingsResponse, unknown>;
15
+ export declare function appRankingsResponseFromJSON(jsonString: string): SafeParseResult<AppRankingsResponse, SDKValidationError>;
16
+ //# sourceMappingURL=apprankingsresponse.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b6c27d448609
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { AppRankingsItem$inboundSchema, } from "./apprankingsitem.js";
8
+ import { RankingsDailyMeta$inboundSchema, } from "./rankingsdailymeta.js";
9
+ /** @internal */
10
+ export const AppRankingsResponse$inboundSchema = z.object({
11
+ data: z.array(AppRankingsItem$inboundSchema),
12
+ meta: RankingsDailyMeta$inboundSchema,
13
+ });
14
+ export function appRankingsResponseFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => AppRankingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AppRankingsResponse' from JSON`);
16
+ }
17
+ //# sourceMappingURL=apprankingsresponse.js.map
@@ -0,0 +1,28 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { BashServerToolConfig, BashServerToolConfig$Outbound } from "./bashservertoolconfig.js";
4
+ export declare const BashServerToolType: {
5
+ readonly OpenrouterBash: "openrouter:bash";
6
+ };
7
+ export type BashServerToolType = ClosedEnum<typeof BashServerToolType>;
8
+ /**
9
+ * OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container
10
+ */
11
+ export type BashServerTool = {
12
+ /**
13
+ * Configuration for the openrouter:bash server tool
14
+ */
15
+ parameters?: BashServerToolConfig | undefined;
16
+ type: BashServerToolType;
17
+ };
18
+ /** @internal */
19
+ export declare const BashServerToolType$outboundSchema: z.ZodEnum<typeof BashServerToolType>;
20
+ /** @internal */
21
+ export type BashServerTool$Outbound = {
22
+ parameters?: BashServerToolConfig$Outbound | undefined;
23
+ type: string;
24
+ };
25
+ /** @internal */
26
+ export declare const BashServerTool$outboundSchema: z.ZodType<BashServerTool$Outbound, BashServerTool>;
27
+ export declare function bashServerToolToJSON(bashServerTool: BashServerTool): string;
28
+ //# sourceMappingURL=bashservertool.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e8dbfc697dd0
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { BashServerToolConfig$outboundSchema, } from "./bashservertoolconfig.js";
7
+ export const BashServerToolType = {
8
+ OpenrouterBash: "openrouter:bash",
9
+ };
10
+ /** @internal */
11
+ export const BashServerToolType$outboundSchema = z.enum(BashServerToolType);
12
+ /** @internal */
13
+ export const BashServerTool$outboundSchema = z.object({
14
+ parameters: BashServerToolConfig$outboundSchema.optional(),
15
+ type: BashServerToolType$outboundSchema,
16
+ });
17
+ export function bashServerToolToJSON(bashServerTool) {
18
+ return JSON.stringify(BashServerTool$outboundSchema.parse(bashServerTool));
19
+ }
20
+ //# sourceMappingURL=bashservertool.js.map
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4";
2
+ import { BashServerToolEngine } from "./bashservertoolengine.js";
3
+ import { BashServerToolEnvironment, BashServerToolEnvironment$Outbound } from "./bashservertoolenvironment.js";
4
+ /**
5
+ * Configuration for the openrouter:bash server tool
6
+ */
7
+ export type BashServerToolConfig = {
8
+ /**
9
+ * Which bash engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) and "native" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.
10
+ */
11
+ engine?: BashServerToolEngine | undefined;
12
+ /**
13
+ * Execution environment for the bash server tool.
14
+ */
15
+ environment?: BashServerToolEnvironment | 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 BashServerToolConfig$Outbound = {
23
+ engine?: string | undefined;
24
+ environment?: BashServerToolEnvironment$Outbound | undefined;
25
+ sleep_after_seconds?: number | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const BashServerToolConfig$outboundSchema: z.ZodType<BashServerToolConfig$Outbound, BashServerToolConfig>;
29
+ export declare function bashServerToolConfigToJSON(bashServerToolConfig: BashServerToolConfig): string;
30
+ //# sourceMappingURL=bashservertoolconfig.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 77c2f874ae9c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { BashServerToolEngine$outboundSchema, } from "./bashservertoolengine.js";
8
+ import { BashServerToolEnvironment$outboundSchema, } from "./bashservertoolenvironment.js";
9
+ /** @internal */
10
+ export const BashServerToolConfig$outboundSchema = z.object({
11
+ engine: BashServerToolEngine$outboundSchema.optional(),
12
+ environment: BashServerToolEnvironment$outboundSchema.optional(),
13
+ sleepAfterSeconds: z.int().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ sleepAfterSeconds: "sleep_after_seconds",
17
+ });
18
+ });
19
+ export function bashServerToolConfigToJSON(bashServerToolConfig) {
20
+ return JSON.stringify(BashServerToolConfig$outboundSchema.parse(bashServerToolConfig));
21
+ }
22
+ //# sourceMappingURL=bashservertoolconfig.js.map
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Which bash engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) and "native" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.
5
+ */
6
+ export declare const BashServerToolEngine: {
7
+ readonly Auto: "auto";
8
+ readonly Native: "native";
9
+ readonly Openrouter: "openrouter";
10
+ };
11
+ /**
12
+ * Which bash engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) and "native" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.
13
+ */
14
+ export type BashServerToolEngine = OpenEnum<typeof BashServerToolEngine>;
15
+ /** @internal */
16
+ export declare const BashServerToolEngine$outboundSchema: z.ZodType<string, BashServerToolEngine>;
17
+ //# sourceMappingURL=bashservertoolengine.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a4d8929dda05
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Which bash engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) and "native" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.
8
+ */
9
+ export const BashServerToolEngine = {
10
+ Auto: "auto",
11
+ Native: "native",
12
+ Openrouter: "openrouter",
13
+ };
14
+ /** @internal */
15
+ export const BashServerToolEngine$outboundSchema = openEnums.outboundSchema(BashServerToolEngine);
16
+ //# sourceMappingURL=bashservertoolengine.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
+ * Execution environment for the bash server tool.
6
+ */
7
+ export type BashServerToolEnvironment = ContainerAutoEnvironment | ContainerReferenceEnvironment;
8
+ /** @internal */
9
+ export type BashServerToolEnvironment$Outbound = ContainerAutoEnvironment$Outbound | ContainerReferenceEnvironment$Outbound;
10
+ /** @internal */
11
+ export declare const BashServerToolEnvironment$outboundSchema: z.ZodType<BashServerToolEnvironment$Outbound, BashServerToolEnvironment>;
12
+ export declare function bashServerToolEnvironmentToJSON(bashServerToolEnvironment: BashServerToolEnvironment): string;
13
+ //# sourceMappingURL=bashservertoolenvironment.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 61289ac69d53
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 BashServerToolEnvironment$outboundSchema = z.union([
10
+ ContainerAutoEnvironment$outboundSchema,
11
+ ContainerReferenceEnvironment$outboundSchema,
12
+ ]);
13
+ export function bashServerToolEnvironmentToJSON(bashServerToolEnvironment) {
14
+ return JSON.stringify(BashServerToolEnvironment$outboundSchema.parse(bashServerToolEnvironment));
15
+ }
16
+ //# sourceMappingURL=bashservertoolenvironment.js.map
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * A supported-or-not flag. Present means the parameter is accepted.
6
+ */
7
+ export type BooleanCapability = {
8
+ type: "boolean";
9
+ };
10
+ /** @internal */
11
+ export declare const BooleanCapability$inboundSchema: z.ZodType<BooleanCapability, unknown>;
12
+ export declare function booleanCapabilityFromJSON(jsonString: string): SafeParseResult<BooleanCapability, SDKValidationError>;
13
+ //# sourceMappingURL=booleancapability.d.ts.map
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b920d99cecda
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const BooleanCapability$inboundSchema = z.object({
9
+ type: z.literal("boolean"),
10
+ });
11
+ export function booleanCapabilityFromJSON(jsonString) {
12
+ return safeParse(jsonString, (x) => BooleanCapability$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BooleanCapability' from JSON`);
13
+ }
14
+ //# sourceMappingURL=booleancapability.js.map
@@ -28,6 +28,7 @@ export declare const BYOKProviderSlug: {
28
28
  readonly Cohere: "cohere";
29
29
  readonly Crusoe: "crusoe";
30
30
  readonly Darkbloom: "darkbloom";
31
+ readonly Decart: "decart";
31
32
  readonly Deepinfra: "deepinfra";
32
33
  readonly Deepseek: "deepseek";
33
34
  readonly Dekallm: "dekallm";
@@ -39,9 +40,9 @@ export declare const BYOKProviderSlug: {
39
40
  readonly GoogleAiStudio: "google-ai-studio";
40
41
  readonly GoogleVertex: "google-vertex";
41
42
  readonly Groq: "groq";
42
- readonly Hyperbolic: "hyperbolic";
43
43
  readonly Inception: "inception";
44
44
  readonly Inceptron: "inceptron";
45
+ readonly InferactVllm: "inferact-vllm";
45
46
  readonly InferenceNet: "inference-net";
46
47
  readonly Infermatic: "infermatic";
47
48
  readonly Inflection: "inflection";
@@ -72,6 +73,7 @@ export declare const BYOKProviderSlug: {
72
73
  readonly Recraft: "recraft";
73
74
  readonly Reka: "reka";
74
75
  readonly Relace: "relace";
76
+ readonly SakanaAi: "sakana-ai";
75
77
  readonly Sambanova: "sambanova";
76
78
  readonly Seed: "seed";
77
79
  readonly Siliconflow: "siliconflow";
@@ -79,9 +81,11 @@ export declare const BYOKProviderSlug: {
79
81
  readonly Stepfun: "stepfun";
80
82
  readonly Streamlake: "streamlake";
81
83
  readonly Switchpoint: "switchpoint";
84
+ readonly Tenstorrent: "tenstorrent";
82
85
  readonly Together: "together";
83
86
  readonly Upstage: "upstage";
84
87
  readonly Venice: "venice";
88
+ readonly Wafer: "wafer";
85
89
  readonly Wandb: "wandb";
86
90
  readonly Xai: "xai";
87
91
  readonly Xiaomi: "xiaomi";
@@ -31,6 +31,7 @@ export const BYOKProviderSlug = {
31
31
  Cohere: "cohere",
32
32
  Crusoe: "crusoe",
33
33
  Darkbloom: "darkbloom",
34
+ Decart: "decart",
34
35
  Deepinfra: "deepinfra",
35
36
  Deepseek: "deepseek",
36
37
  Dekallm: "dekallm",
@@ -42,9 +43,9 @@ export const BYOKProviderSlug = {
42
43
  GoogleAiStudio: "google-ai-studio",
43
44
  GoogleVertex: "google-vertex",
44
45
  Groq: "groq",
45
- Hyperbolic: "hyperbolic",
46
46
  Inception: "inception",
47
47
  Inceptron: "inceptron",
48
+ InferactVllm: "inferact-vllm",
48
49
  InferenceNet: "inference-net",
49
50
  Infermatic: "infermatic",
50
51
  Inflection: "inflection",
@@ -75,6 +76,7 @@ export const BYOKProviderSlug = {
75
76
  Recraft: "recraft",
76
77
  Reka: "reka",
77
78
  Relace: "relace",
79
+ SakanaAi: "sakana-ai",
78
80
  Sambanova: "sambanova",
79
81
  Seed: "seed",
80
82
  Siliconflow: "siliconflow",
@@ -82,9 +84,11 @@ export const BYOKProviderSlug = {
82
84
  Stepfun: "stepfun",
83
85
  Streamlake: "streamlake",
84
86
  Switchpoint: "switchpoint",
87
+ Tenstorrent: "tenstorrent",
85
88
  Together: "together",
86
89
  Upstage: "upstage",
87
90
  Venice: "venice",
91
+ Wafer: "wafer",
88
92
  Wandb: "wandb",
89
93
  Xai: "xai",
90
94
  Xiaomi: "xiaomi",
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { BooleanCapability } from "./booleancapability.js";
5
+ import { EnumCapability } from "./enumcapability.js";
6
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
7
+ import { RangeCapability } from "./rangecapability.js";
8
+ /**
9
+ * A typed descriptor for one supported request parameter.
10
+ */
11
+ export type CapabilityDescriptor = EnumCapability | RangeCapability | BooleanCapability | discriminatedUnionTypes.Unknown<"type">;
12
+ /** @internal */
13
+ export declare const CapabilityDescriptor$inboundSchema: z.ZodType<CapabilityDescriptor, unknown>;
14
+ export declare function capabilityDescriptorFromJSON(jsonString: string): SafeParseResult<CapabilityDescriptor, SDKValidationError>;
15
+ //# sourceMappingURL=capabilitydescriptor.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 867d654ac8ab
4
+ */
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { discriminatedUnion } from "../types/discriminatedUnion.js";
7
+ import { BooleanCapability$inboundSchema, } from "./booleancapability.js";
8
+ import { EnumCapability$inboundSchema, } from "./enumcapability.js";
9
+ import { RangeCapability$inboundSchema, } from "./rangecapability.js";
10
+ /** @internal */
11
+ export const CapabilityDescriptor$inboundSchema = discriminatedUnion("type", {
12
+ enum: EnumCapability$inboundSchema,
13
+ range: RangeCapability$inboundSchema,
14
+ boolean: BooleanCapability$inboundSchema,
15
+ });
16
+ export function capabilityDescriptorFromJSON(jsonString) {
17
+ return safeParse(jsonString, (x) => CapabilityDescriptor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CapabilityDescriptor' from JSON`);
18
+ }
19
+ //# sourceMappingURL=capabilitydescriptor.js.map
@@ -1,11 +1,14 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
+ import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js";
4
+ import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
3
5
  import { ChatContentCacheControl, ChatContentCacheControl$Outbound } from "./chatcontentcachecontrol.js";
4
6
  import { ChatSearchModelsServerTool, ChatSearchModelsServerTool$Outbound } from "./chatsearchmodelsservertool.js";
5
7
  import { ChatWebSearchShorthand, ChatWebSearchShorthand$Outbound } from "./chatwebsearchshorthand.js";
6
8
  import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
7
9
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
8
10
  import { OpenRouterWebSearchServerTool, OpenRouterWebSearchServerTool$Outbound } from "./openrouterwebsearchservertool.js";
11
+ import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
9
12
  import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
10
13
  /**
11
14
  * Function definition for tool calling
@@ -48,7 +51,7 @@ export type ChatFunctionToolFunction = {
48
51
  /**
49
52
  * Tool definition for function calling (regular function or OpenRouter built-in server tool)
50
53
  */
51
- export type ChatFunctionTool = ChatFunctionToolFunction | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | ChatWebSearchShorthand;
54
+ export type ChatFunctionTool = ChatFunctionToolFunction | AdvisorServerToolOpenRouter | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | ChatSearchModelsServerTool | SubagentServerToolOpenRouter | WebFetchServerTool | OpenRouterWebSearchServerTool | ChatWebSearchShorthand;
52
55
  /** @internal */
53
56
  export type ChatFunctionToolFunctionFunction$Outbound = {
54
57
  description?: string | undefined;
@@ -73,7 +76,7 @@ export type ChatFunctionToolFunction$Outbound = {
73
76
  export declare const ChatFunctionToolFunction$outboundSchema: z.ZodType<ChatFunctionToolFunction$Outbound, ChatFunctionToolFunction>;
74
77
  export declare function chatFunctionToolFunctionToJSON(chatFunctionToolFunction: ChatFunctionToolFunction): string;
75
78
  /** @internal */
76
- export type ChatFunctionTool$Outbound = ChatFunctionToolFunction$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | ChatWebSearchShorthand$Outbound;
79
+ export type ChatFunctionTool$Outbound = ChatFunctionToolFunction$Outbound | AdvisorServerToolOpenRouter$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | ChatSearchModelsServerTool$Outbound | SubagentServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | ChatWebSearchShorthand$Outbound;
77
80
  /** @internal */
78
81
  export declare const ChatFunctionTool$outboundSchema: z.ZodType<ChatFunctionTool$Outbound, ChatFunctionTool>;
79
82
  export declare function chatFunctionToolToJSON(chatFunctionTool: ChatFunctionTool): string;
@@ -4,12 +4,15 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
+ import { AdvisorServerToolOpenRouter$outboundSchema, } from "./advisorservertoolopenrouter.js";
8
+ import { BashServerTool$outboundSchema, } from "./bashservertool.js";
7
9
  import { ChatContentCacheControl$outboundSchema, } from "./chatcontentcachecontrol.js";
8
10
  import { ChatSearchModelsServerTool$outboundSchema, } from "./chatsearchmodelsservertool.js";
9
11
  import { ChatWebSearchShorthand$outboundSchema, } from "./chatwebsearchshorthand.js";
10
12
  import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
11
13
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
12
14
  import { OpenRouterWebSearchServerTool$outboundSchema, } from "./openrouterwebsearchservertool.js";
15
+ import { SubagentServerToolOpenRouter$outboundSchema, } from "./subagentservertoolopenrouter.js";
13
16
  import { WebFetchServerTool$outboundSchema, } from "./webfetchservertool.js";
14
17
  export const ChatFunctionToolType = {
15
18
  Function: "function",
@@ -42,9 +45,12 @@ export function chatFunctionToolFunctionToJSON(chatFunctionToolFunction) {
42
45
  /** @internal */
43
46
  export const ChatFunctionTool$outboundSchema = z.union([
44
47
  z.lazy(() => ChatFunctionToolFunction$outboundSchema),
48
+ AdvisorServerToolOpenRouter$outboundSchema,
49
+ BashServerTool$outboundSchema,
45
50
  DatetimeServerTool$outboundSchema,
46
51
  ImageGenerationServerToolOpenRouter$outboundSchema,
47
52
  ChatSearchModelsServerTool$outboundSchema,
53
+ SubagentServerToolOpenRouter$outboundSchema,
48
54
  WebFetchServerTool$outboundSchema,
49
55
  OpenRouterWebSearchServerTool$outboundSchema,
50
56
  ChatWebSearchShorthand$outboundSchema,