@openrouter/sdk 1.4.25 → 1.5.0

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 (359) hide show
  1. package/esm/funcs/apiKeysList.d.ts +1 -1
  2. package/esm/funcs/apiKeysList.js +3 -2
  3. package/esm/funcs/apiKeysUpdate.d.ts +4 -2
  4. package/esm/funcs/apiKeysUpdate.js +5 -3
  5. package/esm/funcs/chatSend.d.ts +4 -2
  6. package/esm/funcs/containersPromoteContainerFile.d.ts +1 -1
  7. package/esm/funcs/containersPromoteContainerFile.js +2 -2
  8. package/esm/funcs/embeddingsGenerate.d.ts +1 -1
  9. package/esm/funcs/embeddingsGenerate.js +2 -2
  10. package/esm/funcs/{endUsersCreate.d.ts → externalUsersCreate.d.ts} +3 -3
  11. package/esm/funcs/{endUsersCreate.js → externalUsersCreate.js} +11 -11
  12. package/esm/funcs/{endUsersDelete.d.ts → externalUsersDelete.d.ts} +3 -3
  13. package/esm/funcs/{endUsersDelete.js → externalUsersDelete.js} +8 -8
  14. package/esm/funcs/{endUsersGet.d.ts → externalUsersGet.d.ts} +3 -3
  15. package/esm/funcs/{endUsersGet.js → externalUsersGet.js} +10 -10
  16. package/esm/funcs/{endUsersList.d.ts → externalUsersList.d.ts} +3 -3
  17. package/esm/funcs/{endUsersList.js → externalUsersList.js} +10 -10
  18. package/esm/funcs/{endUsersUpdate.d.ts → externalUsersUpdate.d.ts} +3 -3
  19. package/esm/funcs/{endUsersUpdate.js → externalUsersUpdate.js} +11 -11
  20. package/esm/funcs/filesUpload.d.ts +1 -1
  21. package/esm/funcs/filesUpload.js +2 -2
  22. package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
  23. package/esm/funcs/guardrailsListKeyAssignments.js +2 -2
  24. package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
  25. package/esm/funcs/guardrailsListMemberAssignments.js +2 -2
  26. package/esm/funcs/imagesGenerate.d.ts +4 -2
  27. package/esm/funcs/internsGetInternConnections.d.ts +21 -0
  28. package/esm/funcs/internsGetInternConnections.js +105 -0
  29. package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
  30. package/esm/funcs/internsGetInternDaemon.js +1 -1
  31. package/esm/funcs/internsGetInternIcon.d.ts +20 -0
  32. package/esm/funcs/internsGetInternIcon.js +109 -0
  33. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +22 -0
  34. package/esm/funcs/internsSignInternDaemonAccessRequest.js +109 -0
  35. package/esm/funcs/internsSignInternDaemonRequest.d.ts +20 -0
  36. package/esm/funcs/internsSignInternDaemonRequest.js +109 -0
  37. package/esm/funcs/modelsListForUser.js +1 -0
  38. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
  39. package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
  40. package/esm/funcs/responsesSend.d.ts +4 -2
  41. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
  42. package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
  43. package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
  44. package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
  45. package/esm/funcs/vaultListInternConnections.d.ts +20 -0
  46. package/esm/funcs/vaultListInternConnections.js +104 -0
  47. package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
  48. package/esm/funcs/vaultStoreVaultSecret.js +2 -2
  49. package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
  50. package/esm/funcs/videoGenerationGenerate.js +2 -2
  51. package/esm/lib/config.d.ts +3 -3
  52. package/esm/lib/config.js +3 -3
  53. package/esm/lib/encodings.d.ts +10 -9
  54. package/esm/lib/encodings.js +29 -13
  55. package/esm/lib/http.d.ts +1 -1
  56. package/esm/lib/http.js +1 -1
  57. package/esm/lib/security.d.ts +5 -4
  58. package/esm/lib/security.js +4 -5
  59. package/esm/models/additionaltoolsitem.d.ts +16 -1
  60. package/esm/models/additionaltoolsitem.js +10 -0
  61. package/esm/models/alignment.d.ts +1 -1
  62. package/esm/models/alignmentplugin.d.ts +9 -8
  63. package/esm/models/alignmentplugin.js +3 -2
  64. package/esm/models/alignmentrule.d.ts +31 -0
  65. package/esm/models/alignmentrule.js +25 -0
  66. package/esm/models/alignmentrulerecord.d.ts +7 -3
  67. package/esm/models/alignmentrulerecord.js +2 -1
  68. package/esm/models/armorautomode.d.ts +44 -0
  69. package/esm/models/armorautomode.js +49 -0
  70. package/esm/models/armorcontext.d.ts +22 -0
  71. package/esm/models/armorcontext.js +25 -0
  72. package/esm/models/armorenvironmententry.d.ts +14 -0
  73. package/esm/models/armorenvironmententry.js +14 -0
  74. package/esm/models/armorplugin.d.ts +92 -0
  75. package/esm/models/armorplugin.js +60 -0
  76. package/esm/models/armorrule.d.ts +30 -0
  77. package/esm/models/armorrule.js +16 -0
  78. package/esm/models/armorsafeguardresult.d.ts +69 -0
  79. package/esm/models/armorsafeguardresult.js +83 -0
  80. package/esm/models/batchlistitem.d.ts +8 -0
  81. package/esm/models/batchlistitem.js +3 -0
  82. package/esm/models/batchobject.d.ts +13 -0
  83. package/esm/models/batchobject.js +6 -0
  84. package/esm/models/batchsubmitbody.d.ts +5 -0
  85. package/esm/models/batchsubmitbody.js +2 -0
  86. package/esm/models/byokkey.d.ts +3 -3
  87. package/esm/models/byokkey.js +1 -1
  88. package/esm/models/byokproviderslug.d.ts +2 -0
  89. package/esm/models/byokproviderslug.js +2 -0
  90. package/esm/models/chatcontenttext.d.ts +1 -1
  91. package/esm/models/chatfunctiontool.d.ts +4 -0
  92. package/esm/models/chatfunctiontool.js +7 -0
  93. package/esm/models/chatrequest.d.ts +16 -9
  94. package/esm/models/chatrequest.js +9 -6
  95. package/esm/models/chatresult.d.ts +10 -0
  96. package/esm/models/chatresult.js +5 -0
  97. package/esm/models/chatstreamchunk.d.ts +7 -0
  98. package/esm/models/chatstreamchunk.js +5 -0
  99. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  100. package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
  101. package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
  102. package/esm/models/computeruseservertool.d.ts +5 -5
  103. package/esm/models/computeruseservertool.js +5 -5
  104. package/esm/models/createbyokkeyrequest.d.ts +3 -3
  105. package/esm/models/createbyokkeyrequest.js +1 -1
  106. package/esm/models/createexternaluserrequest.d.ts +15 -0
  107. package/esm/models/createexternaluserrequest.js +13 -0
  108. package/esm/models/createguardrailrequest.d.ts +10 -0
  109. package/esm/models/createguardrailrequest.js +4 -0
  110. package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
  111. package/esm/models/createobservabilitydestinationrequest.js +2 -0
  112. package/esm/models/customtool.d.ts +2 -0
  113. package/esm/models/customtool.js +11 -0
  114. package/esm/models/decisionsboxanswer.d.ts +21 -0
  115. package/esm/models/decisionsboxanswer.js +26 -0
  116. package/esm/models/decisionsboxquestion.d.ts +34 -0
  117. package/esm/models/decisionsboxquestion.js +23 -0
  118. package/esm/models/decisionsrequest.d.ts +6 -5
  119. package/esm/models/decisionsrequest.js +3 -0
  120. package/esm/models/decisionsresponse.d.ts +4 -3
  121. package/esm/models/decisionsresponse.js +3 -0
  122. package/esm/models/deferredbm25search.d.ts +17 -0
  123. package/esm/models/deferredbm25search.js +19 -0
  124. package/esm/models/deferredcustomsearch.d.ts +21 -0
  125. package/esm/models/deferredcustomsearch.js +23 -0
  126. package/esm/models/deferredregexsearch.d.ts +17 -0
  127. package/esm/models/deferredregexsearch.js +19 -0
  128. package/esm/models/deferredtoolscontrol.d.ts +62 -0
  129. package/esm/models/deferredtoolscontrol.js +38 -0
  130. package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
  131. package/esm/models/deferredtoolssearchstrategy.js +18 -0
  132. package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
  133. package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
  134. package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
  135. package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
  136. package/esm/models/errors/index.d.ts +1 -0
  137. package/esm/models/errors/index.js +1 -0
  138. package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
  139. package/esm/models/{enduser.js → externaluser.js} +6 -5
  140. package/esm/models/externaluserresponse.d.ts +11 -0
  141. package/esm/models/externaluserresponse.js +15 -0
  142. package/esm/models/guardrail.d.ts +8 -0
  143. package/esm/models/guardrail.js +4 -0
  144. package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
  145. package/esm/models/imagegenerationproviderpreferences.js +3 -0
  146. package/esm/models/index.d.ts +34 -6
  147. package/esm/models/index.js +34 -6
  148. package/esm/models/inputsunion.d.ts +7 -4
  149. package/esm/models/inputsunion.js +9 -0
  150. package/esm/models/inputtext.d.ts +1 -1
  151. package/esm/models/intern.d.ts +12 -0
  152. package/esm/models/intern.js +6 -0
  153. package/esm/models/internconnection.d.ts +118 -0
  154. package/esm/models/internconnection.js +105 -0
  155. package/esm/models/internconnectionlist.d.ts +11 -0
  156. package/esm/models/internconnectionlist.js +15 -0
  157. package/esm/models/jevrouterplugin.d.ts +5 -0
  158. package/esm/models/jevrouterplugin.js +2 -0
  159. package/esm/models/keybudget.d.ts +80 -0
  160. package/esm/models/keybudget.js +58 -0
  161. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  162. package/esm/models/listexternalusersresponse.d.ts +15 -0
  163. package/esm/models/listexternalusersresponse.js +21 -0
  164. package/esm/models/messagesmessageparam.d.ts +7 -6
  165. package/esm/models/messagesmessageparam.js +4 -0
  166. package/esm/models/messagesrequest.d.ts +11 -4
  167. package/esm/models/messagesrequest.js +6 -0
  168. package/esm/models/namespacefunctiontool.d.ts +5 -5
  169. package/esm/models/namespacefunctiontool.js +5 -5
  170. package/esm/models/observabilityarizedestination.d.ts +4 -0
  171. package/esm/models/observabilityarizedestination.js +2 -0
  172. package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
  173. package/esm/models/observabilitybraintrustdestination.js +2 -0
  174. package/esm/models/observabilityclickhousedestination.d.ts +4 -0
  175. package/esm/models/observabilityclickhousedestination.js +2 -0
  176. package/esm/models/observabilitydatadogdestination.d.ts +4 -0
  177. package/esm/models/observabilitydatadogdestination.js +2 -0
  178. package/esm/models/observabilitygrafanadestination.d.ts +4 -0
  179. package/esm/models/observabilitygrafanadestination.js +2 -0
  180. package/esm/models/observabilitylangfusedestination.d.ts +4 -0
  181. package/esm/models/observabilitylangfusedestination.js +2 -0
  182. package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
  183. package/esm/models/observabilitylangsmithdestination.js +2 -0
  184. package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
  185. package/esm/models/observabilitynewrelicdestination.js +2 -0
  186. package/esm/models/observabilityopikdestination.d.ts +4 -0
  187. package/esm/models/observabilityopikdestination.js +2 -0
  188. package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
  189. package/esm/models/observabilityotelcollectordestination.js +2 -0
  190. package/esm/models/observabilityposthogdestination.d.ts +4 -0
  191. package/esm/models/observabilityposthogdestination.js +2 -0
  192. package/esm/models/observabilityrampdestination.d.ts +4 -0
  193. package/esm/models/observabilityrampdestination.js +2 -0
  194. package/esm/models/observabilitys3destination.d.ts +4 -0
  195. package/esm/models/observabilitys3destination.js +2 -0
  196. package/esm/models/observabilitysentrydestination.d.ts +4 -0
  197. package/esm/models/observabilitysentrydestination.js +2 -0
  198. package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
  199. package/esm/models/observabilitysnowflakedestination.js +2 -0
  200. package/esm/models/observabilityweavedestination.d.ts +4 -0
  201. package/esm/models/observabilityweavedestination.js +2 -0
  202. package/esm/models/observabilitywebhookdestination.d.ts +8 -4
  203. package/esm/models/observabilitywebhookdestination.js +5 -4
  204. package/esm/models/openresponseserrorfield.d.ts +1 -0
  205. package/esm/models/openresponseserrorfield.js +1 -0
  206. package/esm/models/openresponseserrormetadata.d.ts +1 -1
  207. package/esm/models/openresponsesresult.d.ts +19 -3
  208. package/esm/models/openresponsesresult.js +14 -0
  209. package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
  210. package/esm/models/operations/createexternaluser.js +23 -0
  211. package/esm/models/operations/deleteexternaluser.d.ts +58 -0
  212. package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
  213. package/esm/models/operations/getcurrentkey.d.ts +5 -0
  214. package/esm/models/operations/getcurrentkey.js +4 -1
  215. package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
  216. package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
  217. package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
  218. package/esm/models/operations/getinternconnections.js +21 -0
  219. package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
  220. package/esm/models/operations/getinternicon.js +22 -0
  221. package/esm/models/operations/index.d.ts +10 -5
  222. package/esm/models/operations/index.js +10 -5
  223. package/esm/models/operations/list.d.ts +5 -0
  224. package/esm/models/operations/list.js +2 -0
  225. package/esm/models/operations/listbatches.d.ts +4 -4
  226. package/esm/models/operations/listbatches.js +3 -3
  227. package/esm/models/operations/listbyokkeys.d.ts +2 -0
  228. package/esm/models/operations/listbyokkeys.js +2 -0
  229. package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
  230. package/esm/models/operations/listexternalusers.js +38 -0
  231. package/esm/models/operations/listinternconnections.d.ts +75 -0
  232. package/esm/models/operations/listinternconnections.js +36 -0
  233. package/esm/models/operations/listmodelsuser.d.ts +29 -0
  234. package/esm/models/operations/listmodelsuser.js +21 -0
  235. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
  236. package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
  237. package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
  238. package/esm/models/operations/signinterndaemonrequest.js +38 -0
  239. package/esm/models/operations/updateexternaluser.d.ts +61 -0
  240. package/esm/models/operations/updateexternaluser.js +24 -0
  241. package/esm/models/operations/updatekeys.d.ts +5 -0
  242. package/esm/models/operations/updatekeys.js +2 -0
  243. package/esm/models/oranthropiccontentblock.d.ts +2 -1
  244. package/esm/models/oranthropiccontentblock.js +2 -0
  245. package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
  246. package/esm/models/oranthropictoolsearchresult.js +21 -0
  247. package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
  248. package/esm/models/oranthropictoolsearchresultparam.js +20 -0
  249. package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
  250. package/esm/models/outputapplypatchservertoolitem.js +5 -3
  251. package/esm/models/outputarmorblockeditem.d.ts +71 -0
  252. package/esm/models/outputarmorblockeditem.js +60 -0
  253. package/esm/models/outputdatetimeitem.d.ts +7 -2
  254. package/esm/models/outputdatetimeitem.js +5 -3
  255. package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
  256. package/esm/models/outputimagegenerationservertoolitem.js +5 -3
  257. package/esm/models/outputitems.d.ts +5 -1
  258. package/esm/models/outputitems.js +4 -0
  259. package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
  260. package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
  261. package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
  262. package/esm/models/outputtoolsearchcallitem.js +30 -0
  263. package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
  264. package/esm/models/outputtoolsearchservertoolitem.js +36 -3
  265. package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
  266. package/esm/models/outputwebsearchservertoolitem.js +5 -3
  267. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  268. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  269. package/esm/models/privateendpointpricing.d.ts +10 -0
  270. package/esm/models/privateendpointpricing.js +15 -0
  271. package/esm/models/promptcachebreakpoint.d.ts +3 -1
  272. package/esm/models/promptcachebreakpoint.js +2 -0
  273. package/esm/models/promptcacheoptions.d.ts +1 -1
  274. package/esm/models/providername.d.ts +2 -0
  275. package/esm/models/providername.js +2 -0
  276. package/esm/models/provideroptions.d.ts +12 -0
  277. package/esm/models/provideroptions.js +3 -0
  278. package/esm/models/providerresponse.d.ts +2 -0
  279. package/esm/models/providerresponse.js +2 -0
  280. package/esm/models/publicendpoint.d.ts +11 -2
  281. package/esm/models/publicendpoint.js +5 -0
  282. package/esm/models/publicservicetier.d.ts +17 -0
  283. package/esm/models/publicservicetier.js +16 -0
  284. package/esm/models/responsesrequest.d.ts +42 -6
  285. package/esm/models/responsesrequest.js +22 -0
  286. package/esm/models/signinterndaemonrequest.d.ts +54 -0
  287. package/esm/models/signinterndaemonrequest.js +30 -0
  288. package/esm/models/signinterndaemonresponse.d.ts +32 -0
  289. package/esm/models/signinterndaemonresponse.js +27 -0
  290. package/esm/models/speechinput.d.ts +12 -0
  291. package/esm/models/speechinput.js +12 -0
  292. package/esm/models/speechinputreferenceimage.d.ts +1 -1
  293. package/esm/models/speechrequest.d.ts +10 -4
  294. package/esm/models/speechrequest.js +3 -1
  295. package/esm/models/speechturn.d.ts +25 -0
  296. package/esm/models/speechturn.js +15 -0
  297. package/esm/models/switchyardrouterplugin.d.ts +1 -1
  298. package/esm/models/tokenexchangerequest.d.ts +7 -6
  299. package/esm/models/tokenexchangerequest.js +4 -2
  300. package/esm/models/tokenexchangeresponse.d.ts +3 -0
  301. package/esm/models/toolsearchcallitem.d.ts +47 -0
  302. package/esm/models/toolsearchcallitem.js +42 -0
  303. package/esm/models/toolsearchoutputitem.d.ts +150 -0
  304. package/esm/models/toolsearchoutputitem.js +181 -0
  305. package/esm/models/updatebyokkeyrequest.d.ts +3 -3
  306. package/esm/models/updatebyokkeyrequest.js +1 -1
  307. package/esm/models/updateexternaluserrequest.d.ts +15 -0
  308. package/esm/models/updateexternaluserrequest.js +18 -0
  309. package/esm/models/updateguardrailrequest.d.ts +10 -0
  310. package/esm/models/updateguardrailrequest.js +4 -0
  311. package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
  312. package/esm/models/updateobservabilitydestinationrequest.js +2 -0
  313. package/esm/models/videogenerationrequest.d.ts +12 -0
  314. package/esm/models/videogenerationrequest.js +3 -0
  315. package/esm/models/videogenerationresponse.d.ts +11 -0
  316. package/esm/models/videogenerationresponse.js +3 -0
  317. package/esm/models/webfetchengineenum.d.ts +2 -2
  318. package/esm/models/webfetchengineenum.js +1 -1
  319. package/esm/models/webfetchservertoolconfig.d.ts +1 -1
  320. package/esm/models/websearchconfig.d.ts +1 -1
  321. package/esm/models/websearchengineenum.d.ts +2 -2
  322. package/esm/models/websearchengineenum.js +1 -1
  323. package/esm/models/websearchservertool.d.ts +1 -1
  324. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  325. package/esm/models/workspacebudget.d.ts +4 -4
  326. package/esm/models/workspacebudget.js +3 -3
  327. package/esm/sdk/apikeys.d.ts +3 -1
  328. package/esm/sdk/apikeys.js +3 -1
  329. package/esm/sdk/betaresponses.d.ts +4 -2
  330. package/esm/sdk/chat.d.ts +4 -2
  331. package/esm/sdk/endusers.d.ts +10 -10
  332. package/esm/sdk/endusers.js +15 -15
  333. package/esm/sdk/externalusers.d.ts +44 -0
  334. package/esm/sdk/externalusers.js +60 -0
  335. package/esm/sdk/images.d.ts +3 -2
  336. package/esm/sdk/interns.d.ts +31 -1
  337. package/esm/sdk/interns.js +43 -1
  338. package/esm/sdk/privateendpoints.d.ts +1 -1
  339. package/esm/sdk/privateendpoints.js +1 -1
  340. package/esm/sdk/responses.d.ts +4 -2
  341. package/esm/sdk/sdk.d.ts +5 -2
  342. package/esm/sdk/sdk.js +7 -3
  343. package/esm/sdk/vault.d.ts +7 -0
  344. package/esm/sdk/vault.js +10 -0
  345. package/jsr.json +1 -1
  346. package/package.json +6 -6
  347. package/esm/models/batchlisttimestamp.d.ts +0 -12
  348. package/esm/models/batchlisttimestamp.js +0 -15
  349. package/esm/models/createenduserrequest.d.ts +0 -15
  350. package/esm/models/createenduserrequest.js +0 -13
  351. package/esm/models/enduserresponse.d.ts +0 -11
  352. package/esm/models/enduserresponse.js +0 -15
  353. package/esm/models/listendusersresponse.d.ts +0 -15
  354. package/esm/models/listendusersresponse.js +0 -21
  355. package/esm/models/operations/createenduser.js +0 -23
  356. package/esm/models/operations/listendusers.js +0 -38
  357. package/esm/models/operations/updateenduser.js +0 -24
  358. package/esm/models/updateenduserrequest.d.ts +0 -15
  359. package/esm/models/updateenduserrequest.js +0 -18
@@ -5,7 +5,25 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
8
9
  import { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
10
+ /**
11
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
12
+ */
13
+ export const ListModelsUserSort = {
14
+ MostPopular: "most-popular",
15
+ Newest: "newest",
16
+ TopWeekly: "top-weekly",
17
+ PricingLowToHigh: "pricing-low-to-high",
18
+ PricingHighToLow: "pricing-high-to-low",
19
+ ContextHighToLow: "context-high-to-low",
20
+ ThroughputHighToLow: "throughput-high-to-low",
21
+ LatencyLowToHigh: "latency-low-to-high",
22
+ IntelligenceHighToLow: "intelligence-high-to-low",
23
+ CodingHighToLow: "coding-high-to-low",
24
+ AgenticHighToLow: "agentic-high-to-low",
25
+ DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
26
+ };
9
27
  /** @internal */
10
28
  export const ListModelsUserSecurity$outboundSchema = z.object({
11
29
  bearer: z.string(),
@@ -14,6 +32,8 @@ export function listModelsUserSecurityToJSON(listModelsUserSecurity) {
14
32
  return JSON.stringify(ListModelsUserSecurity$outboundSchema.parse(listModelsUserSecurity));
15
33
  }
16
34
  /** @internal */
35
+ export const ListModelsUserSort$outboundSchema = openEnums.outboundSchema(ListModelsUserSort);
36
+ /** @internal */
17
37
  export const ListModelsUserRequest$outboundSchema = z.object({
18
38
  httpReferer: z.string().optional(),
19
39
  appTitle: z.string().optional(),
@@ -21,6 +41,7 @@ export const ListModelsUserRequest$outboundSchema = z.object({
21
41
  offset: z.nullable(z.int().default(0)),
22
42
  limit: z.int().default(500),
23
43
  outputModalities: z.string().optional(),
44
+ sort: ListModelsUserSort$outboundSchema.optional(),
24
45
  }).transform((v) => {
25
46
  return remap$(v, {
26
47
  httpReferer: "HTTP-Referer",
@@ -0,0 +1,72 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
+ export type SignInternDaemonAccessRequestGlobals = {
6
+ /**
7
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
+ *
9
+ * @remarks
10
+ * This is used to track API usage per application.
11
+ */
12
+ httpReferer?: string | undefined;
13
+ /**
14
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
+ *
16
+ * @remarks
17
+ */
18
+ appTitle?: string | undefined;
19
+ /**
20
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
+ *
22
+ * @remarks
23
+ */
24
+ appCategories?: string | undefined;
25
+ };
26
+ export type SignInternDaemonAccessRequestRequest = {
27
+ /**
28
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
+ *
30
+ * @remarks
31
+ * This is used to track API usage per application.
32
+ */
33
+ httpReferer?: string | undefined;
34
+ /**
35
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
+ *
37
+ * @remarks
38
+ */
39
+ appTitle?: string | undefined;
40
+ /**
41
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
+ *
43
+ * @remarks
44
+ */
45
+ appCategories?: string | undefined;
46
+ /**
47
+ * ID of an intern visible to the authenticated API key.
48
+ */
49
+ internId: string;
50
+ signInternDaemonRequest: models.SignInternDaemonRequest;
51
+ };
52
+ export type SignInternDaemonAccessRequestResponse = {
53
+ headers: {
54
+ [k: string]: Array<string>;
55
+ };
56
+ result: models.SignInternDaemonResponse;
57
+ };
58
+ /** @internal */
59
+ export type SignInternDaemonAccessRequestRequest$Outbound = {
60
+ "HTTP-Referer"?: string | undefined;
61
+ appTitle?: string | undefined;
62
+ appCategories?: string | undefined;
63
+ internId: string;
64
+ SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
65
+ };
66
+ /** @internal */
67
+ export declare const SignInternDaemonAccessRequestRequest$outboundSchema: z.ZodType<SignInternDaemonAccessRequestRequest$Outbound, SignInternDaemonAccessRequestRequest>;
68
+ export declare function signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest: SignInternDaemonAccessRequestRequest): string;
69
+ /** @internal */
70
+ export declare const SignInternDaemonAccessRequestResponse$inboundSchema: z.ZodType<SignInternDaemonAccessRequestResponse, unknown>;
71
+ export declare function signInternDaemonAccessRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonAccessRequestResponse, SDKValidationError>;
72
+ //# sourceMappingURL=signinterndaemonaccessrequest.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5b44549b1bcd
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { SignInternDaemonRequest$outboundSchema as models_SignInternDaemonRequest$outboundSchema } from "../signinterndaemonrequest.js"; import { SignInternDaemonResponse$inboundSchema as models_SignInternDaemonResponse$inboundSchema } from "../signinterndaemonresponse.js";
9
+ /** @internal */
10
+ export const SignInternDaemonAccessRequestRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ internId: z.string(),
15
+ signInternDaemonRequest: models_SignInternDaemonRequest$outboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ httpReferer: "HTTP-Referer",
19
+ signInternDaemonRequest: "SignInternDaemonRequest",
20
+ });
21
+ });
22
+ export function signInternDaemonAccessRequestRequestToJSON(signInternDaemonAccessRequestRequest) {
23
+ return JSON.stringify(SignInternDaemonAccessRequestRequest$outboundSchema.parse(signInternDaemonAccessRequestRequest));
24
+ }
25
+ /** @internal */
26
+ export const SignInternDaemonAccessRequestResponse$inboundSchema = z.object({
27
+ Headers: z.record(z.string(), z.array(z.string())).default({}),
28
+ Result: models_SignInternDaemonResponse$inboundSchema,
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "Headers": "headers",
32
+ "Result": "result",
33
+ });
34
+ });
35
+ export function signInternDaemonAccessRequestResponseFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => SignInternDaemonAccessRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonAccessRequestResponse' from JSON`);
37
+ }
38
+ //# sourceMappingURL=signinterndaemonaccessrequest.js.map
@@ -0,0 +1,72 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
+ export type SignInternDaemonRequestGlobals = {
6
+ /**
7
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
+ *
9
+ * @remarks
10
+ * This is used to track API usage per application.
11
+ */
12
+ httpReferer?: string | undefined;
13
+ /**
14
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
15
+ *
16
+ * @remarks
17
+ */
18
+ appTitle?: string | undefined;
19
+ /**
20
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
21
+ *
22
+ * @remarks
23
+ */
24
+ appCategories?: string | undefined;
25
+ };
26
+ export type SignInternDaemonRequestRequest = {
27
+ /**
28
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
+ *
30
+ * @remarks
31
+ * This is used to track API usage per application.
32
+ */
33
+ httpReferer?: string | undefined;
34
+ /**
35
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
36
+ *
37
+ * @remarks
38
+ */
39
+ appTitle?: string | undefined;
40
+ /**
41
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
42
+ *
43
+ * @remarks
44
+ */
45
+ appCategories?: string | undefined;
46
+ /**
47
+ * ID of an intern visible to the authenticated API key.
48
+ */
49
+ internId: string;
50
+ signInternDaemonRequest: models.SignInternDaemonRequest;
51
+ };
52
+ export type SignInternDaemonRequestResponse = {
53
+ headers: {
54
+ [k: string]: Array<string>;
55
+ };
56
+ result: models.SignInternDaemonResponse;
57
+ };
58
+ /** @internal */
59
+ export type SignInternDaemonRequestRequest$Outbound = {
60
+ "HTTP-Referer"?: string | undefined;
61
+ appTitle?: string | undefined;
62
+ appCategories?: string | undefined;
63
+ internId: string;
64
+ SignInternDaemonRequest: models.SignInternDaemonRequest$Outbound;
65
+ };
66
+ /** @internal */
67
+ export declare const SignInternDaemonRequestRequest$outboundSchema: z.ZodType<SignInternDaemonRequestRequest$Outbound, SignInternDaemonRequestRequest>;
68
+ export declare function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest: SignInternDaemonRequestRequest): string;
69
+ /** @internal */
70
+ export declare const SignInternDaemonRequestResponse$inboundSchema: z.ZodType<SignInternDaemonRequestResponse, unknown>;
71
+ export declare function signInternDaemonRequestResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonRequestResponse, SDKValidationError>;
72
+ //# sourceMappingURL=signinterndaemonrequest.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fa6bfb2ce12b
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { SignInternDaemonRequest$outboundSchema as models_SignInternDaemonRequest$outboundSchema } from "../signinterndaemonrequest.js"; import { SignInternDaemonResponse$inboundSchema as models_SignInternDaemonResponse$inboundSchema } from "../signinterndaemonresponse.js";
9
+ /** @internal */
10
+ export const SignInternDaemonRequestRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ internId: z.string(),
15
+ signInternDaemonRequest: models_SignInternDaemonRequest$outboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ httpReferer: "HTTP-Referer",
19
+ signInternDaemonRequest: "SignInternDaemonRequest",
20
+ });
21
+ });
22
+ export function signInternDaemonRequestRequestToJSON(signInternDaemonRequestRequest) {
23
+ return JSON.stringify(SignInternDaemonRequestRequest$outboundSchema.parse(signInternDaemonRequestRequest));
24
+ }
25
+ /** @internal */
26
+ export const SignInternDaemonRequestResponse$inboundSchema = z.object({
27
+ Headers: z.record(z.string(), z.array(z.string())).default({}),
28
+ Result: models_SignInternDaemonResponse$inboundSchema,
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "Headers": "headers",
32
+ "Result": "result",
33
+ });
34
+ });
35
+ export function signInternDaemonRequestResponseFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => SignInternDaemonRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonRequestResponse' from JSON`);
37
+ }
38
+ //# sourceMappingURL=signinterndaemonrequest.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type UpdateExternalUserGlobals = {
4
+ /**
5
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
6
+ *
7
+ * @remarks
8
+ * This is used to track API usage per application.
9
+ */
10
+ httpReferer?: string | undefined;
11
+ /**
12
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
13
+ *
14
+ * @remarks
15
+ */
16
+ appTitle?: string | undefined;
17
+ /**
18
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
19
+ *
20
+ * @remarks
21
+ */
22
+ appCategories?: string | undefined;
23
+ };
24
+ export type UpdateExternalUserRequest = {
25
+ /**
26
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
27
+ *
28
+ * @remarks
29
+ * This is used to track API usage per application.
30
+ */
31
+ httpReferer?: string | undefined;
32
+ /**
33
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
34
+ *
35
+ * @remarks
36
+ */
37
+ appTitle?: string | undefined;
38
+ /**
39
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
40
+ *
41
+ * @remarks
42
+ */
43
+ appCategories?: string | undefined;
44
+ /**
45
+ * Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of `.` or `..` cannot be addressed by path, so look it up with the list filter.
46
+ */
47
+ user: string;
48
+ updateExternalUserRequest: models.UpdateExternalUserRequest;
49
+ };
50
+ /** @internal */
51
+ export type UpdateExternalUserRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ user: string;
56
+ UpdateExternalUserRequest: models.UpdateExternalUserRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const UpdateExternalUserRequest$outboundSchema: z.ZodType<UpdateExternalUserRequest$Outbound, UpdateExternalUserRequest>;
60
+ export declare function updateExternalUserRequestToJSON(updateExternalUserRequest: UpdateExternalUserRequest): string;
61
+ //# sourceMappingURL=updateexternaluser.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 89e743bb6fb7
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { UpdateExternalUserRequest$outboundSchema as models_UpdateExternalUserRequest$outboundSchema } from "../updateexternaluserrequest.js";
8
+ /** @internal */
9
+ export const UpdateExternalUserRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ user: z.string(),
14
+ updateExternalUserRequest: models_UpdateExternalUserRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ updateExternalUserRequest: "UpdateExternalUserRequest",
19
+ });
20
+ });
21
+ export function updateExternalUserRequestToJSON(updateExternalUserRequest) {
22
+ return JSON.stringify(UpdateExternalUserRequest$outboundSchema.parse(updateExternalUserRequest));
23
+ }
24
+ //# sourceMappingURL=updateexternaluser.js.map
@@ -56,6 +56,10 @@ export type UpdateKeysRequestBody = {
56
56
  * New name for the API key
57
57
  */
58
58
  name?: string | undefined;
59
+ /**
60
+ * Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key's current workspace is a no-op.
61
+ */
62
+ workspaceId?: string | undefined;
59
63
  };
60
64
  export type UpdateKeysRequest = {
61
65
  /**
@@ -198,6 +202,7 @@ export type UpdateKeysRequestBody$Outbound = {
198
202
  limit?: number | null | undefined;
199
203
  limit_reset?: string | null | undefined;
200
204
  name?: string | undefined;
205
+ workspace_id?: string | undefined;
201
206
  };
202
207
  /** @internal */
203
208
  export declare const UpdateKeysRequestBody$outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, UpdateKeysRequestBody>;
@@ -23,10 +23,12 @@ export const UpdateKeysRequestBody$outboundSchema = z.object({
23
23
  limit: z.nullable(z.number()).optional(),
24
24
  limitReset: z.nullable(UpdateKeysLimitReset$outboundSchema).optional(),
25
25
  name: z.string().optional(),
26
+ workspaceId: z.string().optional(),
26
27
  }).transform((v) => {
27
28
  return remap$(v, {
28
29
  includeByokInLimit: "include_byok_in_limit",
29
30
  limitReset: "limit_reset",
31
+ workspaceId: "workspace_id",
30
32
  });
31
33
  });
32
34
  export function updateKeysRequestBodyToJSON(updateKeysRequestBody) {
@@ -18,7 +18,8 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
18
18
  import { ORAnthropicBashToolResult } from "./oranthropicbashtoolresult.js";
19
19
  import { ORAnthropicServerToolUseBlock } from "./oranthropicservertooluseblock.js";
20
20
  import { ORAnthropicShellToolResult } from "./oranthropicshelltoolresult.js";
21
- export type ORAnthropicContentBlock = AnthropicAdvisorToolResult | AnthropicBashCodeExecutionToolResult | AnthropicCodeExecutionToolResult | AnthropicCompactionBlock | AnthropicContainerUpload | ORAnthropicBashToolResult | ORAnthropicShellToolResult | AnthropicRedactedThinkingBlock | ORAnthropicServerToolUseBlock | AnthropicTextBlock | AnthropicTextEditorCodeExecutionToolResult | AnthropicThinkingBlock | AnthropicToolSearchToolResult | AnthropicToolUseBlock | AnthropicWebFetchToolResult | AnthropicWebSearchToolResult | discriminatedUnionTypes.Unknown<"type">;
21
+ import { ORAnthropicToolSearchResult } from "./oranthropictoolsearchresult.js";
22
+ export type ORAnthropicContentBlock = AnthropicAdvisorToolResult | AnthropicBashCodeExecutionToolResult | AnthropicCodeExecutionToolResult | AnthropicCompactionBlock | AnthropicContainerUpload | ORAnthropicBashToolResult | ORAnthropicShellToolResult | ORAnthropicToolSearchResult | AnthropicRedactedThinkingBlock | ORAnthropicServerToolUseBlock | AnthropicTextBlock | AnthropicTextEditorCodeExecutionToolResult | AnthropicThinkingBlock | AnthropicToolSearchToolResult | AnthropicToolUseBlock | AnthropicWebFetchToolResult | AnthropicWebSearchToolResult | discriminatedUnionTypes.Unknown<"type">;
22
23
  /** @internal */
23
24
  export declare const ORAnthropicContentBlock$inboundSchema: z.ZodType<ORAnthropicContentBlock, unknown>;
24
25
  export declare function orAnthropicContentBlockFromJSON(jsonString: string): SafeParseResult<ORAnthropicContentBlock, SDKValidationError>;
@@ -20,6 +20,7 @@ import { AnthropicWebSearchToolResult$inboundSchema, } from "./anthropicwebsearc
20
20
  import { ORAnthropicBashToolResult$inboundSchema, } from "./oranthropicbashtoolresult.js";
21
21
  import { ORAnthropicServerToolUseBlock$inboundSchema, } from "./oranthropicservertooluseblock.js";
22
22
  import { ORAnthropicShellToolResult$inboundSchema, } from "./oranthropicshelltoolresult.js";
23
+ import { ORAnthropicToolSearchResult$inboundSchema, } from "./oranthropictoolsearchresult.js";
23
24
  /** @internal */
24
25
  export const ORAnthropicContentBlock$inboundSchema = discriminatedUnion("type", {
25
26
  advisor_tool_result: AnthropicAdvisorToolResult$inboundSchema,
@@ -29,6 +30,7 @@ export const ORAnthropicContentBlock$inboundSchema = discriminatedUnion("type",
29
30
  container_upload: AnthropicContainerUpload$inboundSchema,
30
31
  openrouter_bash_tool_result: ORAnthropicBashToolResult$inboundSchema,
31
32
  openrouter_shell_tool_result: ORAnthropicShellToolResult$inboundSchema,
33
+ openrouter_tool_search_result: ORAnthropicToolSearchResult$inboundSchema,
32
34
  redacted_thinking: AnthropicRedactedThinkingBlock$inboundSchema,
33
35
  server_tool_use: ORAnthropicServerToolUseBlock$inboundSchema,
34
36
  text: AnthropicTextBlock$inboundSchema,
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Router-owned deferred discovery result containing original selected tool definitions.
6
+ */
7
+ export type ORAnthropicToolSearchResult = {
8
+ content: {
9
+ [k: string]: any;
10
+ };
11
+ toolUseId: string;
12
+ type: "openrouter_tool_search_result";
13
+ };
14
+ /** @internal */
15
+ export declare const ORAnthropicToolSearchResult$inboundSchema: z.ZodType<ORAnthropicToolSearchResult, unknown>;
16
+ export declare function orAnthropicToolSearchResultFromJSON(jsonString: string): SafeParseResult<ORAnthropicToolSearchResult, SDKValidationError>;
17
+ //# sourceMappingURL=oranthropictoolsearchresult.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7754e7b9c2d1
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 ORAnthropicToolSearchResult$inboundSchema = z.object({
10
+ content: z.record(z.string(), z.any()),
11
+ tool_use_id: z.string(),
12
+ type: z.literal("openrouter_tool_search_result"),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "tool_use_id": "toolUseId",
16
+ });
17
+ });
18
+ export function orAnthropicToolSearchResultFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => ORAnthropicToolSearchResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ORAnthropicToolSearchResult' from JSON`);
20
+ }
21
+ //# sourceMappingURL=oranthropictoolsearchresult.js.map
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Router-owned deferred discovery result for continuation.
4
+ */
5
+ export type ORAnthropicToolSearchResultParam = {
6
+ content: {
7
+ [k: string]: any;
8
+ };
9
+ toolUseId: string;
10
+ type: "openrouter_tool_search_result";
11
+ };
12
+ /** @internal */
13
+ export type ORAnthropicToolSearchResultParam$Outbound = {
14
+ content: {
15
+ [k: string]: any;
16
+ };
17
+ tool_use_id: string;
18
+ type: "openrouter_tool_search_result";
19
+ };
20
+ /** @internal */
21
+ export declare const ORAnthropicToolSearchResultParam$outboundSchema: z.ZodType<ORAnthropicToolSearchResultParam$Outbound, ORAnthropicToolSearchResultParam>;
22
+ export declare function orAnthropicToolSearchResultParamToJSON(orAnthropicToolSearchResultParam: ORAnthropicToolSearchResultParam): string;
23
+ //# sourceMappingURL=oranthropictoolsearchresultparam.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e122900306e5
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const ORAnthropicToolSearchResultParam$outboundSchema = z.object({
9
+ content: z.record(z.string(), z.any()),
10
+ toolUseId: z.string(),
11
+ type: z.literal("openrouter_tool_search_result"),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ toolUseId: "tool_use_id",
15
+ });
16
+ });
17
+ export function orAnthropicToolSearchResultParamToJSON(orAnthropicToolSearchResultParam) {
18
+ return JSON.stringify(ORAnthropicToolSearchResultParam$outboundSchema.parse(orAnthropicToolSearchResultParam));
19
+ }
20
+ //# sourceMappingURL=oranthropictoolsearchresultparam.js.map
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { ApplyPatchCallOperation, ApplyPatchCallOperation$Outbound } from "./applypatchcalloperation.js";
5
5
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
- import { ToolCallStatus } from "./toolcallstatus.js";
6
+ import { FailableToolCallStatus } from "./failabletoolcallstatus.js";
7
7
  export declare const OutputApplyPatchServerToolItemType: {
8
8
  readonly OpenrouterApplyPatch: "openrouter:apply_patch";
9
9
  };
@@ -13,12 +13,16 @@ export type OutputApplyPatchServerToolItemType = ClosedEnum<typeof OutputApplyPa
13
13
  */
14
14
  export type OutputApplyPatchServerToolItem = {
15
15
  callId?: string | undefined;
16
+ /**
17
+ * The error message when the tool call failed before producing a result. Set together with `status: 'failed'`; absent on a successful call.
18
+ */
19
+ error?: string | undefined;
16
20
  id?: string | undefined;
17
21
  /**
18
22
  * The patch operation requested by an `apply_patch_call`. `create_file` and `update_file` carry a V4A diff; `delete_file` omits it.
19
23
  */
20
24
  operation?: ApplyPatchCallOperation | undefined;
21
- status: ToolCallStatus;
25
+ status: FailableToolCallStatus;
22
26
  type: OutputApplyPatchServerToolItemType;
23
27
  };
24
28
  /** @internal */
@@ -30,6 +34,7 @@ export declare const OutputApplyPatchServerToolItem$inboundSchema: z.ZodType<Out
30
34
  /** @internal */
31
35
  export type OutputApplyPatchServerToolItem$Outbound = {
32
36
  call_id?: string | undefined;
37
+ error?: string | undefined;
33
38
  id?: string | undefined;
34
39
  operation?: ApplyPatchCallOperation$Outbound | undefined;
35
40
  status: string;
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
8
  import { ApplyPatchCallOperation$inboundSchema, ApplyPatchCallOperation$outboundSchema, } from "./applypatchcalloperation.js";
9
- import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
9
+ import { FailableToolCallStatus$inboundSchema, FailableToolCallStatus$outboundSchema, } from "./failabletoolcallstatus.js";
10
10
  export const OutputApplyPatchServerToolItemType = {
11
11
  OpenrouterApplyPatch: "openrouter:apply_patch",
12
12
  };
@@ -17,9 +17,10 @@ export const OutputApplyPatchServerToolItemType$outboundSchema = OutputApplyPatc
17
17
  /** @internal */
18
18
  export const OutputApplyPatchServerToolItem$inboundSchema = z.object({
19
19
  call_id: z.string().optional(),
20
+ error: z.string().optional(),
20
21
  id: z.string().optional(),
21
22
  operation: ApplyPatchCallOperation$inboundSchema.optional(),
22
- status: ToolCallStatus$inboundSchema,
23
+ status: FailableToolCallStatus$inboundSchema,
23
24
  type: OutputApplyPatchServerToolItemType$inboundSchema,
24
25
  }).transform((v) => {
25
26
  return remap$(v, {
@@ -29,9 +30,10 @@ export const OutputApplyPatchServerToolItem$inboundSchema = z.object({
29
30
  /** @internal */
30
31
  export const OutputApplyPatchServerToolItem$outboundSchema = z.object({
31
32
  callId: z.string().optional(),
33
+ error: z.string().optional(),
32
34
  id: z.string().optional(),
33
35
  operation: ApplyPatchCallOperation$outboundSchema.optional(),
34
- status: ToolCallStatus$outboundSchema,
36
+ status: FailableToolCallStatus$outboundSchema,
35
37
  type: OutputApplyPatchServerToolItemType$outboundSchema,
36
38
  }).transform((v) => {
37
39
  return remap$(v, {
@@ -0,0 +1,71 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const OutputArmorBlockedItemStatus: {
6
+ readonly Completed: "completed";
7
+ };
8
+ export type OutputArmorBlockedItemStatus = ClosedEnum<typeof OutputArmorBlockedItemStatus>;
9
+ export declare const OutputArmorBlockedItemType: {
10
+ readonly OpenrouterArmorBlocked: "openrouter:armor_blocked";
11
+ };
12
+ export type OutputArmorBlockedItemType = ClosedEnum<typeof OutputArmorBlockedItemType>;
13
+ /**
14
+ * A client tool call that OpenRouter Armor blocked. Emitted in place of the call when `plugins[armor].output_mode` is `custom_item`.
15
+ */
16
+ export type OutputArmorBlockedItem = {
17
+ /**
18
+ * The arguments exactly as the model wrote them.
19
+ */
20
+ arguments: string;
21
+ /**
22
+ * The call id the model chose. Use it to find this call in `safeguard_results`.
23
+ */
24
+ callId: string;
25
+ /**
26
+ * The rule that blocked the call, in the same `[Rule Name]` form as `safeguard_results`.
27
+ */
28
+ explanation: string;
29
+ id: string;
30
+ /**
31
+ * The name of the tool the model called.
32
+ */
33
+ name: string;
34
+ /**
35
+ * The namespace the tool belongs to, for namespaced tools such as MCP. Absent for a plain function tool.
36
+ */
37
+ namespace?: string | undefined;
38
+ /**
39
+ * The error text the model received as the result of this call. Sending this item back replays that text to the model.
40
+ */
41
+ reason: string;
42
+ status: OutputArmorBlockedItemStatus;
43
+ type: OutputArmorBlockedItemType;
44
+ };
45
+ /** @internal */
46
+ export declare const OutputArmorBlockedItemStatus$inboundSchema: z.ZodEnum<typeof OutputArmorBlockedItemStatus>;
47
+ /** @internal */
48
+ export declare const OutputArmorBlockedItemStatus$outboundSchema: z.ZodEnum<typeof OutputArmorBlockedItemStatus>;
49
+ /** @internal */
50
+ export declare const OutputArmorBlockedItemType$inboundSchema: z.ZodEnum<typeof OutputArmorBlockedItemType>;
51
+ /** @internal */
52
+ export declare const OutputArmorBlockedItemType$outboundSchema: z.ZodEnum<typeof OutputArmorBlockedItemType>;
53
+ /** @internal */
54
+ export declare const OutputArmorBlockedItem$inboundSchema: z.ZodType<OutputArmorBlockedItem, unknown>;
55
+ /** @internal */
56
+ export type OutputArmorBlockedItem$Outbound = {
57
+ arguments: string;
58
+ call_id: string;
59
+ explanation: string;
60
+ id: string;
61
+ name: string;
62
+ namespace?: string | undefined;
63
+ reason: string;
64
+ status: string;
65
+ type: string;
66
+ };
67
+ /** @internal */
68
+ export declare const OutputArmorBlockedItem$outboundSchema: z.ZodType<OutputArmorBlockedItem$Outbound, OutputArmorBlockedItem>;
69
+ export declare function outputArmorBlockedItemToJSON(outputArmorBlockedItem: OutputArmorBlockedItem): string;
70
+ export declare function outputArmorBlockedItemFromJSON(jsonString: string): SafeParseResult<OutputArmorBlockedItem, SDKValidationError>;
71
+ //# sourceMappingURL=outputarmorblockeditem.d.ts.map