@openrouter/sdk 1.4.24 → 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 (363) 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/createkeys.d.ts +4 -0
  212. package/esm/models/operations/createkeys.js +2 -0
  213. package/esm/models/operations/deleteexternaluser.d.ts +58 -0
  214. package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
  215. package/esm/models/operations/getcurrentkey.d.ts +5 -0
  216. package/esm/models/operations/getcurrentkey.js +4 -1
  217. package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
  218. package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
  219. package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
  220. package/esm/models/operations/getinternconnections.js +21 -0
  221. package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
  222. package/esm/models/operations/getinternicon.js +22 -0
  223. package/esm/models/operations/getkey.d.ts +4 -0
  224. package/esm/models/operations/getkey.js +2 -0
  225. package/esm/models/operations/index.d.ts +10 -5
  226. package/esm/models/operations/index.js +10 -5
  227. package/esm/models/operations/list.d.ts +9 -0
  228. package/esm/models/operations/list.js +4 -0
  229. package/esm/models/operations/listbatches.d.ts +4 -4
  230. package/esm/models/operations/listbatches.js +3 -3
  231. package/esm/models/operations/listbyokkeys.d.ts +2 -0
  232. package/esm/models/operations/listbyokkeys.js +2 -0
  233. package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
  234. package/esm/models/operations/listexternalusers.js +38 -0
  235. package/esm/models/operations/listinternconnections.d.ts +75 -0
  236. package/esm/models/operations/listinternconnections.js +36 -0
  237. package/esm/models/operations/listmodelsuser.d.ts +29 -0
  238. package/esm/models/operations/listmodelsuser.js +21 -0
  239. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
  240. package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
  241. package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
  242. package/esm/models/operations/signinterndaemonrequest.js +38 -0
  243. package/esm/models/operations/updateexternaluser.d.ts +61 -0
  244. package/esm/models/operations/updateexternaluser.js +24 -0
  245. package/esm/models/operations/updatekeys.d.ts +9 -0
  246. package/esm/models/operations/updatekeys.js +4 -0
  247. package/esm/models/oranthropiccontentblock.d.ts +2 -1
  248. package/esm/models/oranthropiccontentblock.js +2 -0
  249. package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
  250. package/esm/models/oranthropictoolsearchresult.js +21 -0
  251. package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
  252. package/esm/models/oranthropictoolsearchresultparam.js +20 -0
  253. package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
  254. package/esm/models/outputapplypatchservertoolitem.js +5 -3
  255. package/esm/models/outputarmorblockeditem.d.ts +71 -0
  256. package/esm/models/outputarmorblockeditem.js +60 -0
  257. package/esm/models/outputdatetimeitem.d.ts +7 -2
  258. package/esm/models/outputdatetimeitem.js +5 -3
  259. package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
  260. package/esm/models/outputimagegenerationservertoolitem.js +5 -3
  261. package/esm/models/outputitems.d.ts +5 -1
  262. package/esm/models/outputitems.js +4 -0
  263. package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
  264. package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
  265. package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
  266. package/esm/models/outputtoolsearchcallitem.js +30 -0
  267. package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
  268. package/esm/models/outputtoolsearchservertoolitem.js +36 -3
  269. package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
  270. package/esm/models/outputwebsearchservertoolitem.js +5 -3
  271. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  272. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  273. package/esm/models/privateendpointpricing.d.ts +10 -0
  274. package/esm/models/privateendpointpricing.js +15 -0
  275. package/esm/models/promptcachebreakpoint.d.ts +3 -1
  276. package/esm/models/promptcachebreakpoint.js +2 -0
  277. package/esm/models/promptcacheoptions.d.ts +1 -1
  278. package/esm/models/providername.d.ts +2 -0
  279. package/esm/models/providername.js +2 -0
  280. package/esm/models/provideroptions.d.ts +12 -0
  281. package/esm/models/provideroptions.js +3 -0
  282. package/esm/models/providerresponse.d.ts +2 -0
  283. package/esm/models/providerresponse.js +2 -0
  284. package/esm/models/publicendpoint.d.ts +11 -2
  285. package/esm/models/publicendpoint.js +5 -0
  286. package/esm/models/publicservicetier.d.ts +17 -0
  287. package/esm/models/publicservicetier.js +16 -0
  288. package/esm/models/responsesrequest.d.ts +42 -6
  289. package/esm/models/responsesrequest.js +22 -0
  290. package/esm/models/signinterndaemonrequest.d.ts +54 -0
  291. package/esm/models/signinterndaemonrequest.js +30 -0
  292. package/esm/models/signinterndaemonresponse.d.ts +32 -0
  293. package/esm/models/signinterndaemonresponse.js +27 -0
  294. package/esm/models/speechinput.d.ts +12 -0
  295. package/esm/models/speechinput.js +12 -0
  296. package/esm/models/speechinputreferenceimage.d.ts +1 -1
  297. package/esm/models/speechrequest.d.ts +10 -4
  298. package/esm/models/speechrequest.js +3 -1
  299. package/esm/models/speechturn.d.ts +25 -0
  300. package/esm/models/speechturn.js +15 -0
  301. package/esm/models/switchyardrouterplugin.d.ts +1 -1
  302. package/esm/models/tokenexchangerequest.d.ts +7 -6
  303. package/esm/models/tokenexchangerequest.js +4 -2
  304. package/esm/models/tokenexchangeresponse.d.ts +3 -0
  305. package/esm/models/toolsearchcallitem.d.ts +47 -0
  306. package/esm/models/toolsearchcallitem.js +42 -0
  307. package/esm/models/toolsearchoutputitem.d.ts +150 -0
  308. package/esm/models/toolsearchoutputitem.js +181 -0
  309. package/esm/models/updatebyokkeyrequest.d.ts +3 -3
  310. package/esm/models/updatebyokkeyrequest.js +1 -1
  311. package/esm/models/updateexternaluserrequest.d.ts +15 -0
  312. package/esm/models/updateexternaluserrequest.js +18 -0
  313. package/esm/models/updateguardrailrequest.d.ts +10 -0
  314. package/esm/models/updateguardrailrequest.js +4 -0
  315. package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
  316. package/esm/models/updateobservabilitydestinationrequest.js +2 -0
  317. package/esm/models/videogenerationrequest.d.ts +12 -0
  318. package/esm/models/videogenerationrequest.js +3 -0
  319. package/esm/models/videogenerationresponse.d.ts +11 -0
  320. package/esm/models/videogenerationresponse.js +3 -0
  321. package/esm/models/webfetchengineenum.d.ts +2 -2
  322. package/esm/models/webfetchengineenum.js +1 -1
  323. package/esm/models/webfetchservertoolconfig.d.ts +1 -1
  324. package/esm/models/websearchconfig.d.ts +1 -1
  325. package/esm/models/websearchengineenum.d.ts +2 -2
  326. package/esm/models/websearchengineenum.js +1 -1
  327. package/esm/models/websearchservertool.d.ts +1 -1
  328. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  329. package/esm/models/workspacebudget.d.ts +4 -4
  330. package/esm/models/workspacebudget.js +3 -3
  331. package/esm/sdk/apikeys.d.ts +3 -1
  332. package/esm/sdk/apikeys.js +3 -1
  333. package/esm/sdk/betaresponses.d.ts +4 -2
  334. package/esm/sdk/chat.d.ts +4 -2
  335. package/esm/sdk/endusers.d.ts +10 -10
  336. package/esm/sdk/endusers.js +15 -15
  337. package/esm/sdk/externalusers.d.ts +44 -0
  338. package/esm/sdk/externalusers.js +60 -0
  339. package/esm/sdk/images.d.ts +3 -2
  340. package/esm/sdk/interns.d.ts +31 -1
  341. package/esm/sdk/interns.js +43 -1
  342. package/esm/sdk/privateendpoints.d.ts +1 -1
  343. package/esm/sdk/privateendpoints.js +1 -1
  344. package/esm/sdk/responses.d.ts +4 -2
  345. package/esm/sdk/sdk.d.ts +5 -2
  346. package/esm/sdk/sdk.js +7 -3
  347. package/esm/sdk/vault.d.ts +7 -0
  348. package/esm/sdk/vault.js +10 -0
  349. package/jsr.json +1 -1
  350. package/package.json +5 -5
  351. package/esm/models/batchlisttimestamp.d.ts +0 -12
  352. package/esm/models/batchlisttimestamp.js +0 -15
  353. package/esm/models/createenduserrequest.d.ts +0 -15
  354. package/esm/models/createenduserrequest.js +0 -13
  355. package/esm/models/enduserresponse.d.ts +0 -11
  356. package/esm/models/enduserresponse.js +0 -15
  357. package/esm/models/listendusersresponse.d.ts +0 -15
  358. package/esm/models/listendusersresponse.js +0 -21
  359. package/esm/models/operations/createenduser.js +0 -23
  360. package/esm/models/operations/listendusers.js +0 -38
  361. package/esm/models/operations/updateenduser.js +0 -24
  362. package/esm/models/updateenduserrequest.d.ts +0 -15
  363. package/esm/models/updateenduserrequest.js +0 -18
@@ -2,7 +2,7 @@ import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- import { ToolCallStatus } from "./toolcallstatus.js";
5
+ import { FailableToolCallStatus } from "./failabletoolcallstatus.js";
6
6
  export declare const OutputWebSearchServerToolItemTypeURL: {
7
7
  readonly Url: "url";
8
8
  };
@@ -35,8 +35,12 @@ export type OutputWebSearchServerToolItem = {
35
35
  * The search action performed, matching OpenAI web_search_call.action shape. Includes the query the model issued and optional source URLs returned by the search provider.
36
36
  */
37
37
  action?: OutputWebSearchServerToolItemAction | undefined;
38
+ /**
39
+ * The error message when the tool call failed before producing a result. Set together with `status: 'failed'`; absent on a successful call.
40
+ */
41
+ error?: string | undefined;
38
42
  id?: string | undefined;
39
- status: ToolCallStatus;
43
+ status: FailableToolCallStatus;
40
44
  type: OutputWebSearchServerToolItemTypeOpenrouterWebSearch;
41
45
  };
42
46
  /** @internal */
@@ -79,6 +83,7 @@ export declare const OutputWebSearchServerToolItem$inboundSchema: z.ZodType<Outp
79
83
  /** @internal */
80
84
  export type OutputWebSearchServerToolItem$Outbound = {
81
85
  action?: OutputWebSearchServerToolItemAction$Outbound | undefined;
86
+ error?: string | undefined;
82
87
  id?: string | undefined;
83
88
  status: string;
84
89
  type: string;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { safeParse } from "../lib/schemas.js";
7
- import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
7
+ import { FailableToolCallStatus$inboundSchema, FailableToolCallStatus$outboundSchema, } from "./failabletoolcallstatus.js";
8
8
  export const OutputWebSearchServerToolItemTypeURL = {
9
9
  Url: "url",
10
10
  };
@@ -65,16 +65,18 @@ export const OutputWebSearchServerToolItemTypeOpenrouterWebSearch$outboundSchema
65
65
  export const OutputWebSearchServerToolItem$inboundSchema = z.object({
66
66
  action: z.lazy(() => OutputWebSearchServerToolItemAction$inboundSchema)
67
67
  .optional(),
68
+ error: z.string().optional(),
68
69
  id: z.string().optional(),
69
- status: ToolCallStatus$inboundSchema,
70
+ status: FailableToolCallStatus$inboundSchema,
70
71
  type: OutputWebSearchServerToolItemTypeOpenrouterWebSearch$inboundSchema,
71
72
  });
72
73
  /** @internal */
73
74
  export const OutputWebSearchServerToolItem$outboundSchema = z.object({
74
75
  action: z.lazy(() => OutputWebSearchServerToolItemAction$outboundSchema)
75
76
  .optional(),
77
+ error: z.string().optional(),
76
78
  id: z.string().optional(),
77
- status: ToolCallStatus$outboundSchema,
79
+ status: FailableToolCallStatus$outboundSchema,
78
80
  type: OutputWebSearchServerToolItemTypeOpenrouterWebSearch$outboundSchema,
79
81
  });
80
82
  export function outputWebSearchServerToolItemToJSON(outputWebSearchServerToolItem) {
@@ -17,7 +17,7 @@ export type Preview20250311WebSearchServerToolType = ClosedEnum<typeof Preview20
17
17
  */
18
18
  export type Preview20250311WebSearchServerTool = {
19
19
  /**
20
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
20
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
21
21
  */
22
22
  engine?: WebSearchEngineEnum | undefined;
23
23
  filters?: WebSearchDomainFilter | null | undefined;
@@ -17,7 +17,7 @@ export type PreviewWebSearchServerToolType = ClosedEnum<typeof PreviewWebSearchS
17
17
  */
18
18
  export type PreviewWebSearchServerTool = {
19
19
  /**
20
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
20
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
21
21
  */
22
22
  engine?: WebSearchEngineEnum | undefined;
23
23
  filters?: WebSearchDomainFilter | null | undefined;
@@ -5,6 +5,14 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  * Negotiated per-token rates reported for requests routed to this endpoint.
6
6
  */
7
7
  export type PrivateEndpointPricing = {
8
+ /**
9
+ * USD per cache-read prompt token, as a decimal string. Omit it to bill cache reads at the provider pricing strategy's default, which for most strategies is the prompt rate.
10
+ */
11
+ cacheRead?: string | undefined;
12
+ /**
13
+ * USD per cache-write prompt token, as a decimal string. Omit it to bill cache writes at the provider pricing strategy's default.
14
+ */
15
+ cacheWrite?: string | undefined;
8
16
  /**
9
17
  * USD per completion token, as a decimal string.
10
18
  */
@@ -18,6 +26,8 @@ export type PrivateEndpointPricing = {
18
26
  export declare const PrivateEndpointPricing$inboundSchema: z.ZodType<PrivateEndpointPricing, unknown>;
19
27
  /** @internal */
20
28
  export type PrivateEndpointPricing$Outbound = {
29
+ cache_read?: string | undefined;
30
+ cache_write?: string | undefined;
21
31
  completion: string;
22
32
  prompt: string;
23
33
  };
@@ -3,16 +3,31 @@
3
3
  * @generated-id: c780fa3f1dc9
4
4
  */
5
5
  import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
7
8
  /** @internal */
8
9
  export const PrivateEndpointPricing$inboundSchema = z.object({
10
+ cache_read: z.string().optional(),
11
+ cache_write: z.string().optional(),
9
12
  completion: z.string(),
10
13
  prompt: z.string(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ "cache_read": "cacheRead",
17
+ "cache_write": "cacheWrite",
18
+ });
11
19
  });
12
20
  /** @internal */
13
21
  export const PrivateEndpointPricing$outboundSchema = z.object({
22
+ cacheRead: z.string().optional(),
23
+ cacheWrite: z.string().optional(),
14
24
  completion: z.string(),
15
25
  prompt: z.string(),
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ cacheRead: "cache_read",
29
+ cacheWrite: "cache_write",
30
+ });
16
31
  });
17
32
  export function privateEndpointPricingToJSON(privateEndpointPricing) {
18
33
  return JSON.stringify(PrivateEndpointPricing$outboundSchema.parse(privateEndpointPricing));
@@ -7,10 +7,11 @@ export declare const PromptCacheBreakpointMode: {
7
7
  };
8
8
  export type PromptCacheBreakpointMode = ClosedEnum<typeof PromptCacheBreakpointMode>;
9
9
  /**
10
- * Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically.
10
+ * Marks an explicit prompt-cache boundary on this content block (OpenAI-style). Everything through the block carrying this marker is part of the candidate cached prefix. Supported natively by OpenAI GPT-5.6 and newer; on providers that use Anthropic-style `cache_control`, OpenRouter converts the marker to that format automatically. `ttl` ("30m" or "12h") overrides the request-level `prompt_cache_options.ttl` for this boundary; 12h writes bill at the higher cache-write rate.
11
11
  */
12
12
  export type PromptCacheBreakpoint = {
13
13
  mode: PromptCacheBreakpointMode;
14
+ ttl?: string | null | undefined;
14
15
  };
15
16
  /** @internal */
16
17
  export declare const PromptCacheBreakpointMode$inboundSchema: z.ZodEnum<typeof PromptCacheBreakpointMode>;
@@ -21,6 +22,7 @@ export declare const PromptCacheBreakpoint$inboundSchema: z.ZodType<PromptCacheB
21
22
  /** @internal */
22
23
  export type PromptCacheBreakpoint$Outbound = {
23
24
  mode: string;
25
+ ttl?: string | null | undefined;
24
26
  };
25
27
  /** @internal */
26
28
  export declare const PromptCacheBreakpoint$outboundSchema: z.ZodType<PromptCacheBreakpoint$Outbound, PromptCacheBreakpoint>;
@@ -14,10 +14,12 @@ export const PromptCacheBreakpointMode$outboundSchema = PromptCacheBreakpointMod
14
14
  /** @internal */
15
15
  export const PromptCacheBreakpoint$inboundSchema = z.object({
16
16
  mode: PromptCacheBreakpointMode$inboundSchema,
17
+ ttl: z.nullable(z.string()).optional(),
17
18
  });
18
19
  /** @internal */
19
20
  export const PromptCacheBreakpoint$outboundSchema = z.object({
20
21
  mode: PromptCacheBreakpointMode$outboundSchema,
22
+ ttl: z.nullable(z.string()).optional(),
21
23
  });
22
24
  export function promptCacheBreakpointToJSON(promptCacheBreakpoint) {
23
25
  return JSON.stringify(PromptCacheBreakpoint$outboundSchema.parse(promptCacheBreakpoint));
@@ -7,7 +7,7 @@ export declare const PromptCacheOptionsMode: {
7
7
  };
8
8
  export type PromptCacheOptionsMode = ClosedEnum<typeof PromptCacheOptionsMode>;
9
9
  /**
10
- * Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
10
+ * Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. `ttl` sets the minimum cache lifetime for every breakpoint the request writes: "30m" (default) or "12h" (billed at the higher 12h cache-write rate). Only supported by OpenAI GPT-5.6 and newer.
11
11
  */
12
12
  export type PromptCacheOptions = {
13
13
  mode: PromptCacheOptionsMode;
@@ -79,12 +79,14 @@ export declare const ProviderName: {
79
79
  readonly OpenAI: "OpenAI";
80
80
  readonly OpenInference: "OpenInference";
81
81
  readonly Parasail: "Parasail";
82
+ readonly ParetoAlpha: "ParetoAlpha";
82
83
  readonly Poolside: "Poolside";
83
84
  readonly PrimeIntellect: "PrimeIntellect";
84
85
  readonly Perceptron: "Perceptron";
85
86
  readonly Perplexity: "Perplexity";
86
87
  readonly Phala: "Phala";
87
88
  readonly Recraft: "Recraft";
89
+ readonly Recursive: "Recursive";
88
90
  readonly Reka: "Reka";
89
91
  readonly Relace: "Relace";
90
92
  readonly Respan: "Respan";
@@ -82,12 +82,14 @@ export const ProviderName = {
82
82
  OpenAI: "OpenAI",
83
83
  OpenInference: "OpenInference",
84
84
  Parasail: "Parasail",
85
+ ParetoAlpha: "ParetoAlpha",
85
86
  Poolside: "Poolside",
86
87
  PrimeIntellect: "PrimeIntellect",
87
88
  Perceptron: "Perceptron",
88
89
  Perplexity: "Perplexity",
89
90
  Phala: "Phala",
90
91
  Recraft: "Recraft",
92
+ Recursive: "Recursive",
91
93
  Reka: "Reka",
92
94
  Relace: "Relace",
93
95
  Respan: "Respan",
@@ -303,6 +303,9 @@ export type ProviderOptions = {
303
303
  parasail?: {
304
304
  [k: string]: any;
305
305
  } | undefined;
306
+ paretoAlpha?: {
307
+ [k: string]: any;
308
+ } | undefined;
306
309
  perceptron?: {
307
310
  [k: string]: any;
308
311
  } | undefined;
@@ -327,6 +330,9 @@ export type ProviderOptions = {
327
330
  recursal?: {
328
331
  [k: string]: any;
329
332
  } | undefined;
333
+ recursive?: {
334
+ [k: string]: any;
335
+ } | undefined;
330
336
  reflection?: {
331
337
  [k: string]: any;
332
338
  } | undefined;
@@ -744,6 +750,9 @@ export type ProviderOptions$Outbound = {
744
750
  parasail?: {
745
751
  [k: string]: any;
746
752
  } | undefined;
753
+ "pareto-alpha"?: {
754
+ [k: string]: any;
755
+ } | undefined;
747
756
  perceptron?: {
748
757
  [k: string]: any;
749
758
  } | undefined;
@@ -768,6 +777,9 @@ export type ProviderOptions$Outbound = {
768
777
  recursal?: {
769
778
  [k: string]: any;
770
779
  } | undefined;
780
+ recursive?: {
781
+ [k: string]: any;
782
+ } | undefined;
771
783
  reflection?: {
772
784
  [k: string]: any;
773
785
  } | undefined;
@@ -106,6 +106,7 @@ export const ProviderOptions$outboundSchema = z.object({
106
106
  openInference: z.record(z.string(), z.any()).optional(),
107
107
  openai: z.record(z.string(), z.any()).optional(),
108
108
  parasail: z.record(z.string(), z.any()).optional(),
109
+ paretoAlpha: z.record(z.string(), z.any()).optional(),
109
110
  perceptron: z.record(z.string(), z.any()).optional(),
110
111
  perplexity: z.record(z.string(), z.any()).optional(),
111
112
  phala: z.record(z.string(), z.any()).optional(),
@@ -114,6 +115,7 @@ export const ProviderOptions$outboundSchema = z.object({
114
115
  quiver: z.record(z.string(), z.any()).optional(),
115
116
  recraft: z.record(z.string(), z.any()).optional(),
116
117
  recursal: z.record(z.string(), z.any()).optional(),
118
+ recursive: z.record(z.string(), z.any()).optional(),
117
119
  reflection: z.record(z.string(), z.any()).optional(),
118
120
  reka: z.record(z.string(), z.any()).optional(),
119
121
  relace: z.record(z.string(), z.any()).optional(),
@@ -177,6 +179,7 @@ export const ProviderOptions$outboundSchema = z.object({
177
179
  nearAi: "near-ai",
178
180
  nexAgi: "nex-agi",
179
181
  openInference: "open-inference",
182
+ paretoAlpha: "pareto-alpha",
180
183
  sailResearch: "sail-research",
181
184
  sakanaAi: "sakana-ai",
182
185
  sambanovaCloaked: "sambanova-cloaked",
@@ -112,12 +112,14 @@ export declare const ProviderResponseProviderName: {
112
112
  readonly OpenAI: "OpenAI";
113
113
  readonly OpenInference: "OpenInference";
114
114
  readonly Parasail: "Parasail";
115
+ readonly ParetoAlpha: "ParetoAlpha";
115
116
  readonly Poolside: "Poolside";
116
117
  readonly PrimeIntellect: "PrimeIntellect";
117
118
  readonly Perceptron: "Perceptron";
118
119
  readonly Perplexity: "Perplexity";
119
120
  readonly Phala: "Phala";
120
121
  readonly Recraft: "Recraft";
122
+ readonly Recursive: "Recursive";
121
123
  readonly Reka: "Reka";
122
124
  readonly Relace: "Relace";
123
125
  readonly Respan: "Respan";
@@ -116,12 +116,14 @@ export const ProviderResponseProviderName = {
116
116
  OpenAI: "OpenAI",
117
117
  OpenInference: "OpenInference",
118
118
  Parasail: "Parasail",
119
+ ParetoAlpha: "ParetoAlpha",
119
120
  Poolside: "Poolside",
120
121
  PrimeIntellect: "PrimeIntellect",
121
122
  Perceptron: "Perceptron",
122
123
  Perplexity: "Perplexity",
123
124
  Phala: "Phala",
124
125
  Recraft: "Recraft",
126
+ Recursive: "Recursive",
125
127
  Reka: "Reka",
126
128
  Relace: "Relace",
127
129
  Respan: "Respan",
@@ -6,6 +6,7 @@ import { Parameter } from "./parameter.js";
6
6
  import { PercentileStats } from "./percentilestats.js";
7
7
  import { PricingOverride } from "./pricingoverride.js";
8
8
  import { ProviderName } from "./providername.js";
9
+ import { PublicServiceTier } from "./publicservicetier.js";
9
10
  import { Quantization } from "./quantization.js";
10
11
  import { ToolChoiceSupport } from "./toolchoicesupport.js";
11
12
  export type NativeTools = {
@@ -199,8 +200,16 @@ export type PublicEndpoint = {
199
200
  pricing: Pricing;
200
201
  providerName: ProviderName;
201
202
  quantization: Quantization | null;
203
+ /**
204
+ * The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
205
+ */
206
+ serviceTier: PublicServiceTier | null;
202
207
  status?: EndpointStatus | undefined;
203
208
  supportedParameters: Array<Parameter>;
209
+ /**
210
+ * Whether this STT endpoint can label each transcript segment with a speaker (speaker diarization). False when the endpoint has not declared support.
211
+ */
212
+ supportsDiarization: boolean;
204
213
  /**
205
214
  * Whether this TTS endpoint accepts an `image_url` reference describing the desired voice. Requests carrying an image reference are only routed to endpoints where this is true.
206
215
  */
@@ -221,12 +230,12 @@ export type PublicEndpoint = {
221
230
  tag: string;
222
231
  throughputLast30m: PercentileStats | null;
223
232
  /**
224
- * Uptime percentage over the last 1 day, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data.
233
+ * Uptime percentage over the last day: the share of minutes in which at least 80% of provider attempts succeeded, counting only minutes with 10 or more attempts. Rate-limited and caller-caused failures are excluded. Null when no minute had enough traffic.
225
234
  */
226
235
  uptimeLast1d: number | null;
227
236
  uptimeLast30m: number | null;
228
237
  /**
229
- * Uptime percentage over the last 5 minutes, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data.
238
+ * Uptime percentage over the last 5 minutes: the share of minutes in which at least 80% of provider attempts succeeded, counting only minutes with 10 or more attempts. Rate-limited and caller-caused failures are excluded. Null when no minute had enough traffic.
230
239
  */
231
240
  uptimeLast5m: number | null;
232
241
  };
@@ -10,6 +10,7 @@ import { Parameter$inboundSchema } from "./parameter.js";
10
10
  import { PercentileStats$inboundSchema, } from "./percentilestats.js";
11
11
  import { PricingOverride$inboundSchema, } from "./pricingoverride.js";
12
12
  import { ProviderName$inboundSchema } from "./providername.js";
13
+ import { PublicServiceTier$inboundSchema, } from "./publicservicetier.js";
13
14
  import { Quantization$inboundSchema } from "./quantization.js";
14
15
  import { ToolChoiceSupport$inboundSchema, } from "./toolchoicesupport.js";
15
16
  /** @internal */
@@ -208,8 +209,10 @@ export const PublicEndpoint$inboundSchema = z.object({
208
209
  pricing: z.lazy(() => Pricing$inboundSchema),
209
210
  provider_name: ProviderName$inboundSchema,
210
211
  quantization: z.nullable(Quantization$inboundSchema),
212
+ service_tier: z.nullable(PublicServiceTier$inboundSchema),
211
213
  status: EndpointStatus$inboundSchema.optional(),
212
214
  supported_parameters: z.array(Parameter$inboundSchema),
215
+ supports_diarization: z.boolean(),
213
216
  supports_image_reference: z.boolean().default(false),
214
217
  supports_implicit_caching: z.boolean(),
215
218
  supports_multiple_audio_references: z.boolean().default(false),
@@ -231,7 +234,9 @@ export const PublicEndpoint$inboundSchema = z.object({
231
234
  "native_tools": "nativeTools",
232
235
  "perf_last_30m_by_workload": "perfLast30mByWorkload",
233
236
  "provider_name": "providerName",
237
+ "service_tier": "serviceTier",
234
238
  "supported_parameters": "supportedParameters",
239
+ "supports_diarization": "supportsDiarization",
235
240
  "supports_image_reference": "supportsImageReference",
236
241
  "supports_implicit_caching": "supportsImplicitCaching",
237
242
  "supports_multiple_audio_references": "supportsMultipleAudioReferences",
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
5
+ */
6
+ export declare const PublicServiceTier: {
7
+ readonly Flex: "flex";
8
+ readonly Priority: "priority";
9
+ readonly Ultrafast: "ultrafast";
10
+ };
11
+ /**
12
+ * The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
13
+ */
14
+ export type PublicServiceTier = OpenEnum<typeof PublicServiceTier>;
15
+ /** @internal */
16
+ export declare const PublicServiceTier$inboundSchema: z.ZodType<PublicServiceTier, unknown>;
17
+ //# sourceMappingURL=publicservicetier.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b2568abb5c38
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * The service tier this endpoint sells, or null for a standard endpoint. The same value whether the provider selects the tier with a request parameter or with a dedicated model id. Always the canonical tier: priority covers the fast request alias and the turbo, highspeed, and prime provider model-id spellings, none of which this field reports.
8
+ */
9
+ export const PublicServiceTier = {
10
+ Flex: "flex",
11
+ Priority: "priority",
12
+ Ultrafast: "ultrafast",
13
+ };
14
+ /** @internal */
15
+ export const PublicServiceTier$inboundSchema = openEnums.inboundSchema(PublicServiceTier);
16
+ //# sourceMappingURL=publicservicetier.js.map
@@ -5,6 +5,7 @@ import { AlignmentPlugin, AlignmentPlugin$Outbound } from "./alignmentplugin.js"
5
5
  import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js";
6
6
  import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
7
7
  import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
8
+ import { ArmorPlugin, ArmorPlugin$Outbound } from "./armorplugin.js";
8
9
  import { AutoBetaRouterPlugin, AutoBetaRouterPlugin$Outbound } from "./autobetarouterplugin.js";
9
10
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
10
11
  import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
@@ -15,6 +16,7 @@ import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./compute
15
16
  import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
16
17
  import { CustomTool, CustomTool$Outbound } from "./customtool.js";
17
18
  import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
19
+ import { DeferredToolsControl, DeferredToolsControl$Outbound } from "./deferredtoolscontrol.js";
18
20
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
19
21
  import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js";
20
22
  import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js";
@@ -58,7 +60,7 @@ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchserve
58
60
  import { WebSearchPlugin, WebSearchPlugin$Outbound } from "./websearchplugin.js";
59
61
  import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
60
62
  import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
61
- export type ResponsesRequestPlugin = AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
63
+ export type ResponsesRequestPlugin = AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
62
64
  export type ReasoningConfig = {
63
65
  /**
64
66
  * Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.
@@ -89,6 +91,15 @@ export declare const ResponsesRequestServiceTier: {
89
91
  * The service tier to use for processing this request. `fast` is accepted as an alias for `priority`. `ultrafast` prefers ultrafast endpoints and falls back to `priority`, then default endpoints.
90
92
  */
91
93
  export type ResponsesRequestServiceTier = OpenEnum<typeof ResponsesRequestServiceTier>;
94
+ /**
95
+ * Stop sequences (up to 4)
96
+ */
97
+ export type ResponsesRequestStop = string | Array<string>;
98
+ export declare const ResponsesRequestAllowedCaller: {
99
+ readonly Direct: "direct";
100
+ readonly Programmatic: "programmatic";
101
+ };
102
+ export type ResponsesRequestAllowedCaller = OpenEnum<typeof ResponsesRequestAllowedCaller>;
92
103
  /**
93
104
  * Function tool definition
94
105
  */
@@ -100,14 +111,18 @@ export type ResponsesRequestToolFunction = {
100
111
  } | null;
101
112
  strict?: boolean | null | undefined;
102
113
  type: "function";
114
+ allowedCallers?: Array<ResponsesRequestAllowedCaller> | null | undefined;
103
115
  /**
104
116
  * Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere.
105
117
  */
106
118
  async?: boolean | undefined;
107
119
  /**
108
- * Withhold this tool from the model until `openrouter:tool_search` finds it. Requires the tool search server tool; at least one tool must remain non-deferred.
120
+ * Withhold this tool from the model until `openrouter:tool_search` finds it. Where the request declares no search tool, OpenRouter may add `openrouter:tool_search` to serve the flag, and otherwise sends the tool in full. A request that declares the search tool itself must keep at least one tool non-deferred.
109
121
  */
110
122
  deferLoading?: boolean | undefined;
123
+ outputSchema?: {
124
+ [k: string]: any;
125
+ } | null | undefined;
111
126
  };
112
127
  export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | (PreviewWebSearchServerTool & {
113
128
  type: "web_search_preview";
@@ -177,6 +192,10 @@ export type ResponsesRequest = {
177
192
  * Debug options for inspecting request transformations (streaming only)
178
193
  */
179
194
  debug?: ChatDebugOptions | undefined;
195
+ /**
196
+ * Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.
197
+ */
198
+ deferredTools?: DeferredToolsControl | undefined;
180
199
  frequencyPenalty?: number | null | undefined;
181
200
  /**
182
201
  * Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details.
@@ -211,7 +230,7 @@ export type ResponsesRequest = {
211
230
  /**
212
231
  * Plugins you want to enable for this request, including their settings.
213
232
  */
214
- plugins?: Array<AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
233
+ plugins?: Array<AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
215
234
  presencePenalty?: number | null | undefined;
216
235
  /**
217
236
  * Not supported on this proxy. Each response request is independent: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead.
@@ -220,7 +239,7 @@ export type ResponsesRequest = {
220
239
  prompt?: StoredPromptTemplate | null | undefined;
221
240
  promptCacheKey?: string | null | undefined;
222
241
  /**
223
- * Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
242
+ * Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. `ttl` sets the minimum cache lifetime for every breakpoint the request writes: "30m" (default) or "12h" (billed at the higher 12h cache-write rate). Only supported by OpenAI GPT-5.6 and newer.
224
243
  */
225
244
  promptCacheOptions?: PromptCacheOptions | null | undefined;
226
245
  /**
@@ -243,6 +262,10 @@ export type ResponsesRequest = {
243
262
  * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
244
263
  */
245
264
  sessionId?: string | undefined;
265
+ /**
266
+ * Stop sequences (up to 4)
267
+ */
268
+ stop?: string | Array<string> | null | undefined;
246
269
  /**
247
270
  * Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.
248
271
  */
@@ -324,7 +347,7 @@ export type ResponsesRequest = {
324
347
  user?: string | undefined;
325
348
  };
326
349
  /** @internal */
327
- export type ResponsesRequestPlugin$Outbound = AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
350
+ export type ResponsesRequestPlugin$Outbound = AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
328
351
  /** @internal */
329
352
  export declare const ResponsesRequestPlugin$outboundSchema: z.ZodType<ResponsesRequestPlugin$Outbound, ResponsesRequestPlugin>;
330
353
  export declare function responsesRequestPluginToJSON(responsesRequestPlugin: ResponsesRequestPlugin): string;
@@ -343,6 +366,13 @@ export declare function reasoningConfigToJSON(reasoningConfig: ReasoningConfig):
343
366
  /** @internal */
344
367
  export declare const ResponsesRequestServiceTier$outboundSchema: z.ZodType<string, ResponsesRequestServiceTier>;
345
368
  /** @internal */
369
+ export type ResponsesRequestStop$Outbound = string | Array<string>;
370
+ /** @internal */
371
+ export declare const ResponsesRequestStop$outboundSchema: z.ZodType<ResponsesRequestStop$Outbound, ResponsesRequestStop>;
372
+ export declare function responsesRequestStopToJSON(responsesRequestStop: ResponsesRequestStop): string;
373
+ /** @internal */
374
+ export declare const ResponsesRequestAllowedCaller$outboundSchema: z.ZodType<string, ResponsesRequestAllowedCaller>;
375
+ /** @internal */
346
376
  export type ResponsesRequestToolFunction$Outbound = {
347
377
  description?: string | null | undefined;
348
378
  name: string;
@@ -351,8 +381,12 @@ export type ResponsesRequestToolFunction$Outbound = {
351
381
  } | null;
352
382
  strict?: boolean | null | undefined;
353
383
  type: "function";
384
+ allowed_callers?: Array<string> | null | undefined;
354
385
  async?: boolean | undefined;
355
386
  defer_loading?: boolean | undefined;
387
+ output_schema?: {
388
+ [k: string]: any;
389
+ } | null | undefined;
356
390
  };
357
391
  /** @internal */
358
392
  export declare const ResponsesRequestToolFunction$outboundSchema: z.ZodType<ResponsesRequestToolFunction$Outbound, ResponsesRequestToolFunction>;
@@ -421,6 +455,7 @@ export type ResponsesRequest$Outbound = {
421
455
  background?: boolean | null | undefined;
422
456
  cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
423
457
  debug?: ChatDebugOptions$Outbound | undefined;
458
+ deferred_tools?: DeferredToolsControl$Outbound | undefined;
424
459
  frequency_penalty?: number | null | undefined;
425
460
  image_config?: {
426
461
  [k: string]: ImageConfig$Outbound;
@@ -437,7 +472,7 @@ export type ResponsesRequest$Outbound = {
437
472
  model?: string | undefined;
438
473
  models?: Array<string> | undefined;
439
474
  parallel_tool_calls?: boolean | null | undefined;
440
- plugins?: Array<AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
475
+ plugins?: Array<AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
441
476
  presence_penalty?: number | null | undefined;
442
477
  previous_response_id?: any | undefined;
443
478
  prompt?: StoredPromptTemplate$Outbound | null | undefined;
@@ -448,6 +483,7 @@ export type ResponsesRequest$Outbound = {
448
483
  safety_identifier?: string | null | undefined;
449
484
  service_tier: string | null;
450
485
  session_id?: string | undefined;
486
+ stop?: string | Array<string> | null | undefined;
451
487
  stop_server_tools_when?: Array<StopServerToolsWhenCondition$Outbound> | undefined;
452
488
  store: false;
453
489
  stream: boolean;