@openrouter/sdk 1.4.25 → 1.5.1

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 (367) 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/organizationGetSettings.d.ts +1 -1
  39. package/esm/funcs/organizationGetSettings.js +2 -2
  40. package/esm/funcs/organizationListMembers.d.ts +1 -1
  41. package/esm/funcs/organizationListMembers.js +2 -2
  42. package/esm/funcs/organizationUpdateSettings.d.ts +1 -1
  43. package/esm/funcs/organizationUpdateSettings.js +2 -2
  44. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
  45. package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
  46. package/esm/funcs/responsesSend.d.ts +4 -2
  47. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
  48. package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
  49. package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
  50. package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
  51. package/esm/funcs/vaultListInternConnections.d.ts +20 -0
  52. package/esm/funcs/vaultListInternConnections.js +104 -0
  53. package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
  54. package/esm/funcs/vaultStoreVaultSecret.js +2 -2
  55. package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
  56. package/esm/funcs/videoGenerationGenerate.js +2 -2
  57. package/esm/lib/config.d.ts +3 -3
  58. package/esm/lib/config.js +3 -3
  59. package/esm/lib/encodings.d.ts +10 -9
  60. package/esm/lib/encodings.js +29 -13
  61. package/esm/lib/http.d.ts +1 -1
  62. package/esm/lib/http.js +1 -1
  63. package/esm/lib/security.d.ts +5 -4
  64. package/esm/lib/security.js +4 -5
  65. package/esm/models/additionaltoolsitem.d.ts +16 -1
  66. package/esm/models/additionaltoolsitem.js +10 -0
  67. package/esm/models/alignment.d.ts +1 -1
  68. package/esm/models/alignmentplugin.d.ts +9 -8
  69. package/esm/models/alignmentplugin.js +3 -2
  70. package/esm/models/alignmentrule.d.ts +31 -0
  71. package/esm/models/alignmentrule.js +25 -0
  72. package/esm/models/alignmentrulerecord.d.ts +7 -3
  73. package/esm/models/alignmentrulerecord.js +2 -1
  74. package/esm/models/armorautomode.d.ts +44 -0
  75. package/esm/models/armorautomode.js +49 -0
  76. package/esm/models/armorcontext.d.ts +22 -0
  77. package/esm/models/armorcontext.js +25 -0
  78. package/esm/models/armorenvironmententry.d.ts +14 -0
  79. package/esm/models/armorenvironmententry.js +14 -0
  80. package/esm/models/armorplugin.d.ts +92 -0
  81. package/esm/models/armorplugin.js +60 -0
  82. package/esm/models/armorrule.d.ts +30 -0
  83. package/esm/models/armorrule.js +16 -0
  84. package/esm/models/armorsafeguardresult.d.ts +69 -0
  85. package/esm/models/armorsafeguardresult.js +83 -0
  86. package/esm/models/batchlistitem.d.ts +8 -0
  87. package/esm/models/batchlistitem.js +3 -0
  88. package/esm/models/batchobject.d.ts +13 -0
  89. package/esm/models/batchobject.js +6 -0
  90. package/esm/models/batchsubmitbody.d.ts +5 -0
  91. package/esm/models/batchsubmitbody.js +2 -0
  92. package/esm/models/byokkey.d.ts +3 -3
  93. package/esm/models/byokkey.js +1 -1
  94. package/esm/models/byokproviderslug.d.ts +2 -0
  95. package/esm/models/byokproviderslug.js +2 -0
  96. package/esm/models/chatcontenttext.d.ts +1 -1
  97. package/esm/models/chatfunctiontool.d.ts +4 -0
  98. package/esm/models/chatfunctiontool.js +7 -0
  99. package/esm/models/chatrequest.d.ts +16 -9
  100. package/esm/models/chatrequest.js +9 -6
  101. package/esm/models/chatresult.d.ts +10 -0
  102. package/esm/models/chatresult.js +5 -0
  103. package/esm/models/chatstreamchunk.d.ts +7 -0
  104. package/esm/models/chatstreamchunk.js +5 -0
  105. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  106. package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
  107. package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
  108. package/esm/models/computeruseservertool.d.ts +5 -5
  109. package/esm/models/computeruseservertool.js +5 -5
  110. package/esm/models/createbyokkeyrequest.d.ts +3 -3
  111. package/esm/models/createbyokkeyrequest.js +1 -1
  112. package/esm/models/createexternaluserrequest.d.ts +15 -0
  113. package/esm/models/createexternaluserrequest.js +13 -0
  114. package/esm/models/createguardrailrequest.d.ts +10 -0
  115. package/esm/models/createguardrailrequest.js +4 -0
  116. package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
  117. package/esm/models/createobservabilitydestinationrequest.js +2 -0
  118. package/esm/models/customtool.d.ts +2 -0
  119. package/esm/models/customtool.js +11 -0
  120. package/esm/models/decisionsboxanswer.d.ts +21 -0
  121. package/esm/models/decisionsboxanswer.js +26 -0
  122. package/esm/models/decisionsboxquestion.d.ts +34 -0
  123. package/esm/models/decisionsboxquestion.js +23 -0
  124. package/esm/models/decisionsrequest.d.ts +6 -5
  125. package/esm/models/decisionsrequest.js +3 -0
  126. package/esm/models/decisionsresponse.d.ts +4 -3
  127. package/esm/models/decisionsresponse.js +3 -0
  128. package/esm/models/deferredbm25search.d.ts +17 -0
  129. package/esm/models/deferredbm25search.js +19 -0
  130. package/esm/models/deferredcustomsearch.d.ts +21 -0
  131. package/esm/models/deferredcustomsearch.js +23 -0
  132. package/esm/models/deferredregexsearch.d.ts +17 -0
  133. package/esm/models/deferredregexsearch.js +19 -0
  134. package/esm/models/deferredtoolscontrol.d.ts +62 -0
  135. package/esm/models/deferredtoolscontrol.js +38 -0
  136. package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
  137. package/esm/models/deferredtoolssearchstrategy.js +18 -0
  138. package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
  139. package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
  140. package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
  141. package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
  142. package/esm/models/errors/index.d.ts +1 -0
  143. package/esm/models/errors/index.js +1 -0
  144. package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
  145. package/esm/models/{enduser.js → externaluser.js} +6 -5
  146. package/esm/models/externaluserresponse.d.ts +11 -0
  147. package/esm/models/externaluserresponse.js +15 -0
  148. package/esm/models/guardrail.d.ts +8 -0
  149. package/esm/models/guardrail.js +4 -0
  150. package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
  151. package/esm/models/imagegenerationproviderpreferences.js +3 -0
  152. package/esm/models/index.d.ts +34 -6
  153. package/esm/models/index.js +34 -6
  154. package/esm/models/inputsunion.d.ts +7 -4
  155. package/esm/models/inputsunion.js +9 -0
  156. package/esm/models/inputtext.d.ts +1 -1
  157. package/esm/models/intern.d.ts +12 -0
  158. package/esm/models/intern.js +6 -0
  159. package/esm/models/internconnection.d.ts +118 -0
  160. package/esm/models/internconnection.js +105 -0
  161. package/esm/models/internconnectionlist.d.ts +11 -0
  162. package/esm/models/internconnectionlist.js +15 -0
  163. package/esm/models/interndaemonaccess.d.ts +11 -1
  164. package/esm/models/interndaemonaccess.js +8 -0
  165. package/esm/models/jevrouterplugin.d.ts +5 -0
  166. package/esm/models/jevrouterplugin.js +2 -0
  167. package/esm/models/keybudget.d.ts +80 -0
  168. package/esm/models/keybudget.js +58 -0
  169. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  170. package/esm/models/listexternalusersresponse.d.ts +15 -0
  171. package/esm/models/listexternalusersresponse.js +21 -0
  172. package/esm/models/messagesmessageparam.d.ts +7 -6
  173. package/esm/models/messagesmessageparam.js +4 -0
  174. package/esm/models/messagesrequest.d.ts +11 -4
  175. package/esm/models/messagesrequest.js +6 -0
  176. package/esm/models/namespacefunctiontool.d.ts +5 -5
  177. package/esm/models/namespacefunctiontool.js +5 -5
  178. package/esm/models/observabilityarizedestination.d.ts +4 -0
  179. package/esm/models/observabilityarizedestination.js +2 -0
  180. package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
  181. package/esm/models/observabilitybraintrustdestination.js +2 -0
  182. package/esm/models/observabilityclickhousedestination.d.ts +4 -0
  183. package/esm/models/observabilityclickhousedestination.js +2 -0
  184. package/esm/models/observabilitydatadogdestination.d.ts +4 -0
  185. package/esm/models/observabilitydatadogdestination.js +2 -0
  186. package/esm/models/observabilitygrafanadestination.d.ts +4 -0
  187. package/esm/models/observabilitygrafanadestination.js +2 -0
  188. package/esm/models/observabilitylangfusedestination.d.ts +4 -0
  189. package/esm/models/observabilitylangfusedestination.js +2 -0
  190. package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
  191. package/esm/models/observabilitylangsmithdestination.js +2 -0
  192. package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
  193. package/esm/models/observabilitynewrelicdestination.js +2 -0
  194. package/esm/models/observabilityopikdestination.d.ts +4 -0
  195. package/esm/models/observabilityopikdestination.js +2 -0
  196. package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
  197. package/esm/models/observabilityotelcollectordestination.js +2 -0
  198. package/esm/models/observabilityposthogdestination.d.ts +4 -0
  199. package/esm/models/observabilityposthogdestination.js +2 -0
  200. package/esm/models/observabilityrampdestination.d.ts +4 -0
  201. package/esm/models/observabilityrampdestination.js +2 -0
  202. package/esm/models/observabilitys3destination.d.ts +4 -0
  203. package/esm/models/observabilitys3destination.js +2 -0
  204. package/esm/models/observabilitysentrydestination.d.ts +4 -0
  205. package/esm/models/observabilitysentrydestination.js +2 -0
  206. package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
  207. package/esm/models/observabilitysnowflakedestination.js +2 -0
  208. package/esm/models/observabilityweavedestination.d.ts +4 -0
  209. package/esm/models/observabilityweavedestination.js +2 -0
  210. package/esm/models/observabilitywebhookdestination.d.ts +8 -4
  211. package/esm/models/observabilitywebhookdestination.js +5 -4
  212. package/esm/models/openresponseserrorfield.d.ts +1 -0
  213. package/esm/models/openresponseserrorfield.js +1 -0
  214. package/esm/models/openresponseserrormetadata.d.ts +1 -1
  215. package/esm/models/openresponsesresult.d.ts +19 -3
  216. package/esm/models/openresponsesresult.js +14 -0
  217. package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
  218. package/esm/models/operations/createexternaluser.js +23 -0
  219. package/esm/models/operations/deleteexternaluser.d.ts +58 -0
  220. package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
  221. package/esm/models/operations/getcurrentkey.d.ts +5 -0
  222. package/esm/models/operations/getcurrentkey.js +4 -1
  223. package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
  224. package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
  225. package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
  226. package/esm/models/operations/getinternconnections.js +21 -0
  227. package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
  228. package/esm/models/operations/getinternicon.js +22 -0
  229. package/esm/models/operations/index.d.ts +10 -5
  230. package/esm/models/operations/index.js +10 -5
  231. package/esm/models/operations/list.d.ts +5 -0
  232. package/esm/models/operations/list.js +2 -0
  233. package/esm/models/operations/listbatches.d.ts +4 -4
  234. package/esm/models/operations/listbatches.js +3 -3
  235. package/esm/models/operations/listbyokkeys.d.ts +2 -0
  236. package/esm/models/operations/listbyokkeys.js +2 -0
  237. package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
  238. package/esm/models/operations/listexternalusers.js +38 -0
  239. package/esm/models/operations/listinternconnections.d.ts +75 -0
  240. package/esm/models/operations/listinternconnections.js +36 -0
  241. package/esm/models/operations/listmodelsuser.d.ts +29 -0
  242. package/esm/models/operations/listmodelsuser.js +21 -0
  243. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
  244. package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
  245. package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
  246. package/esm/models/operations/signinterndaemonrequest.js +38 -0
  247. package/esm/models/operations/updateexternaluser.d.ts +61 -0
  248. package/esm/models/operations/updateexternaluser.js +24 -0
  249. package/esm/models/operations/updatekeys.d.ts +5 -0
  250. package/esm/models/operations/updatekeys.js +2 -0
  251. package/esm/models/oranthropiccontentblock.d.ts +2 -1
  252. package/esm/models/oranthropiccontentblock.js +2 -0
  253. package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
  254. package/esm/models/oranthropictoolsearchresult.js +21 -0
  255. package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
  256. package/esm/models/oranthropictoolsearchresultparam.js +20 -0
  257. package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
  258. package/esm/models/outputapplypatchservertoolitem.js +5 -3
  259. package/esm/models/outputarmorblockeditem.d.ts +71 -0
  260. package/esm/models/outputarmorblockeditem.js +60 -0
  261. package/esm/models/outputdatetimeitem.d.ts +7 -2
  262. package/esm/models/outputdatetimeitem.js +5 -3
  263. package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
  264. package/esm/models/outputimagegenerationservertoolitem.js +5 -3
  265. package/esm/models/outputitems.d.ts +5 -1
  266. package/esm/models/outputitems.js +4 -0
  267. package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
  268. package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
  269. package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
  270. package/esm/models/outputtoolsearchcallitem.js +30 -0
  271. package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
  272. package/esm/models/outputtoolsearchservertoolitem.js +36 -3
  273. package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
  274. package/esm/models/outputwebsearchservertoolitem.js +5 -3
  275. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  276. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  277. package/esm/models/privateendpointpricing.d.ts +10 -0
  278. package/esm/models/privateendpointpricing.js +15 -0
  279. package/esm/models/promptcachebreakpoint.d.ts +3 -1
  280. package/esm/models/promptcachebreakpoint.js +2 -0
  281. package/esm/models/promptcacheoptions.d.ts +1 -1
  282. package/esm/models/providername.d.ts +2 -0
  283. package/esm/models/providername.js +2 -0
  284. package/esm/models/provideroptions.d.ts +12 -0
  285. package/esm/models/provideroptions.js +3 -0
  286. package/esm/models/providerresponse.d.ts +2 -0
  287. package/esm/models/providerresponse.js +2 -0
  288. package/esm/models/publicendpoint.d.ts +11 -2
  289. package/esm/models/publicendpoint.js +5 -0
  290. package/esm/models/publicservicetier.d.ts +17 -0
  291. package/esm/models/publicservicetier.js +16 -0
  292. package/esm/models/responsesrequest.d.ts +42 -6
  293. package/esm/models/responsesrequest.js +22 -0
  294. package/esm/models/signinterndaemonrequest.d.ts +54 -0
  295. package/esm/models/signinterndaemonrequest.js +30 -0
  296. package/esm/models/signinterndaemonresponse.d.ts +32 -0
  297. package/esm/models/signinterndaemonresponse.js +27 -0
  298. package/esm/models/speechinput.d.ts +12 -0
  299. package/esm/models/speechinput.js +12 -0
  300. package/esm/models/speechinputreferenceimage.d.ts +1 -1
  301. package/esm/models/speechrequest.d.ts +10 -4
  302. package/esm/models/speechrequest.js +3 -1
  303. package/esm/models/speechturn.d.ts +25 -0
  304. package/esm/models/speechturn.js +15 -0
  305. package/esm/models/switchyardrouterplugin.d.ts +1 -1
  306. package/esm/models/tokenexchangerequest.d.ts +7 -6
  307. package/esm/models/tokenexchangerequest.js +4 -2
  308. package/esm/models/tokenexchangeresponse.d.ts +3 -0
  309. package/esm/models/toolsearchcallitem.d.ts +47 -0
  310. package/esm/models/toolsearchcallitem.js +42 -0
  311. package/esm/models/toolsearchoutputitem.d.ts +150 -0
  312. package/esm/models/toolsearchoutputitem.js +181 -0
  313. package/esm/models/updatebyokkeyrequest.d.ts +3 -3
  314. package/esm/models/updatebyokkeyrequest.js +1 -1
  315. package/esm/models/updateexternaluserrequest.d.ts +15 -0
  316. package/esm/models/updateexternaluserrequest.js +18 -0
  317. package/esm/models/updateguardrailrequest.d.ts +10 -0
  318. package/esm/models/updateguardrailrequest.js +4 -0
  319. package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
  320. package/esm/models/updateobservabilitydestinationrequest.js +2 -0
  321. package/esm/models/videogenerationrequest.d.ts +12 -0
  322. package/esm/models/videogenerationrequest.js +3 -0
  323. package/esm/models/videogenerationresponse.d.ts +11 -0
  324. package/esm/models/videogenerationresponse.js +3 -0
  325. package/esm/models/webfetchengineenum.d.ts +2 -2
  326. package/esm/models/webfetchengineenum.js +1 -1
  327. package/esm/models/webfetchservertoolconfig.d.ts +1 -1
  328. package/esm/models/websearchconfig.d.ts +1 -1
  329. package/esm/models/websearchengineenum.d.ts +2 -2
  330. package/esm/models/websearchengineenum.js +1 -1
  331. package/esm/models/websearchservertool.d.ts +1 -1
  332. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  333. package/esm/models/workspacebudget.d.ts +4 -4
  334. package/esm/models/workspacebudget.js +3 -3
  335. package/esm/sdk/apikeys.d.ts +3 -1
  336. package/esm/sdk/apikeys.js +3 -1
  337. package/esm/sdk/betaresponses.d.ts +4 -2
  338. package/esm/sdk/chat.d.ts +4 -2
  339. package/esm/sdk/endusers.d.ts +10 -10
  340. package/esm/sdk/endusers.js +15 -15
  341. package/esm/sdk/externalusers.d.ts +44 -0
  342. package/esm/sdk/externalusers.js +60 -0
  343. package/esm/sdk/images.d.ts +3 -2
  344. package/esm/sdk/interns.d.ts +31 -1
  345. package/esm/sdk/interns.js +43 -1
  346. package/esm/sdk/privateendpoints.d.ts +1 -1
  347. package/esm/sdk/privateendpoints.js +1 -1
  348. package/esm/sdk/responses.d.ts +4 -2
  349. package/esm/sdk/sdk.d.ts +5 -2
  350. package/esm/sdk/sdk.js +7 -3
  351. package/esm/sdk/vault.d.ts +7 -0
  352. package/esm/sdk/vault.js +10 -0
  353. package/jsr.json +1 -1
  354. package/package.json +8 -8
  355. package/esm/models/batchlisttimestamp.d.ts +0 -12
  356. package/esm/models/batchlisttimestamp.js +0 -15
  357. package/esm/models/createenduserrequest.d.ts +0 -15
  358. package/esm/models/createenduserrequest.js +0 -13
  359. package/esm/models/enduserresponse.d.ts +0 -11
  360. package/esm/models/enduserresponse.js +0 -15
  361. package/esm/models/listendusersresponse.d.ts +0 -15
  362. package/esm/models/listendusersresponse.js +0 -21
  363. package/esm/models/operations/createenduser.js +0 -23
  364. package/esm/models/operations/listendusers.js +0 -38
  365. package/esm/models/operations/updateenduser.js +0 -24
  366. package/esm/models/updateenduserrequest.d.ts +0 -15
  367. package/esm/models/updateenduserrequest.js +0 -18
@@ -0,0 +1,181 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cce8243d36bb
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import { AdvisorServerToolOpenRouter$outboundSchema, } from "./advisorservertoolopenrouter.js";
9
+ import { ApplyPatchServerTool$outboundSchema, } from "./applypatchservertool.js";
10
+ import { ApplyPatchServerToolOpenRouter$outboundSchema, } from "./applypatchservertoolopenrouter.js";
11
+ import { BashServerTool$outboundSchema, } from "./bashservertool.js";
12
+ import { CodeInterpreterServerTool$outboundSchema, } from "./codeinterpreterservertool.js";
13
+ import { CodexLocalShellTool$outboundSchema, } from "./codexlocalshelltool.js";
14
+ import { ComputerUseServerTool$outboundSchema, } from "./computeruseservertool.js";
15
+ import { CustomTool$outboundSchema, } from "./customtool.js";
16
+ import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
17
+ import { FileSearchServerTool$outboundSchema, } from "./filesearchservertool.js";
18
+ import { FilesServerTool$outboundSchema, } from "./filesservertool.js";
19
+ import { FusionServerToolOpenRouter$outboundSchema, } from "./fusionservertoolopenrouter.js";
20
+ import { ImageGenerationServerTool$outboundSchema, } from "./imagegenerationservertool.js";
21
+ import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
22
+ import { LegacyWebSearchServerTool$outboundSchema, } from "./legacywebsearchservertool.js";
23
+ import { McpServerTool$outboundSchema, } from "./mcpservertool.js";
24
+ import { NamespaceTool$outboundSchema, } from "./namespacetool.js";
25
+ import { Preview20250311WebSearchServerTool$outboundSchema, } from "./preview20250311websearchservertool.js";
26
+ import { PreviewWebSearchServerTool$outboundSchema, } from "./previewwebsearchservertool.js";
27
+ import { SearchModelsServerToolOpenRouter$outboundSchema, } from "./searchmodelsservertoolopenrouter.js";
28
+ import { ShellServerTool$outboundSchema, } from "./shellservertool.js";
29
+ import { ShellServerToolOpenRouter$outboundSchema, } from "./shellservertoolopenrouter.js";
30
+ import { SubagentServerToolOpenRouter$outboundSchema, } from "./subagentservertoolopenrouter.js";
31
+ import { ToolSearchServerTool$outboundSchema, } from "./toolsearchservertool.js";
32
+ import { WebFetchServerTool$outboundSchema, } from "./webfetchservertool.js";
33
+ import { WebSearchServerTool$outboundSchema, } from "./websearchservertool.js";
34
+ import { WebSearchServerToolOpenRouter$outboundSchema, } from "./websearchservertoolopenrouter.js";
35
+ export const ToolSearchOutputItemExecution = {
36
+ Server: "server",
37
+ Client: "client",
38
+ };
39
+ export const ToolSearchOutputItemStatus = {
40
+ InProgress: "in_progress",
41
+ Completed: "completed",
42
+ Incomplete: "incomplete",
43
+ };
44
+ export const ToolSearchOutputItemTypeFunction = {
45
+ Function: "function",
46
+ };
47
+ export const ToolSearchOutputItemAllowedCaller = {
48
+ Direct: "direct",
49
+ Programmatic: "programmatic",
50
+ };
51
+ export const TypeToolSearchOutput = {
52
+ ToolSearchOutput: "tool_search_output",
53
+ };
54
+ /** @internal */
55
+ export const ToolSearchOutputItemExecution$outboundSchema = openEnums.outboundSchema(ToolSearchOutputItemExecution);
56
+ /** @internal */
57
+ export const ToolSearchOutputItemStatus$outboundSchema = openEnums.outboundSchema(ToolSearchOutputItemStatus);
58
+ /** @internal */
59
+ export const ToolSearchOutputItemTool$outboundSchema = z.object({
60
+ type: z.string(),
61
+ additionalProperties: z.record(z.string(), z.any()).optional(),
62
+ }).transform((v) => {
63
+ return {
64
+ ...v.additionalProperties,
65
+ ...remap$(v, {
66
+ additionalProperties: null,
67
+ }),
68
+ };
69
+ });
70
+ export function toolSearchOutputItemToolToJSON(toolSearchOutputItemTool) {
71
+ return JSON.stringify(ToolSearchOutputItemTool$outboundSchema.parse(toolSearchOutputItemTool));
72
+ }
73
+ /** @internal */
74
+ export const ToolSearchOutputItemTypeFunction$outboundSchema = z.enum(ToolSearchOutputItemTypeFunction);
75
+ /** @internal */
76
+ export const ToolSearchOutputItemAllowedCaller$outboundSchema = openEnums.outboundSchema(ToolSearchOutputItemAllowedCaller);
77
+ /** @internal */
78
+ export const ToolSearchOutputItemToolFunction$outboundSchema = z.object({
79
+ description: z.nullable(z.string()).optional(),
80
+ name: z.string(),
81
+ parameters: z.nullable(z.record(z.string(), z.any())),
82
+ strict: z.nullable(z.boolean()).optional(),
83
+ type: ToolSearchOutputItemTypeFunction$outboundSchema,
84
+ allowedCallers: z.nullable(z.array(ToolSearchOutputItemAllowedCaller$outboundSchema)).optional(),
85
+ async: z.boolean().optional(),
86
+ deferLoading: z.boolean().optional(),
87
+ outputSchema: z.nullable(z.record(z.string(), z.any())).optional(),
88
+ }).transform((v) => {
89
+ return remap$(v, {
90
+ allowedCallers: "allowed_callers",
91
+ deferLoading: "defer_loading",
92
+ outputSchema: "output_schema",
93
+ });
94
+ });
95
+ export function toolSearchOutputItemToolFunctionToJSON(toolSearchOutputItemToolFunction) {
96
+ return JSON.stringify(ToolSearchOutputItemToolFunction$outboundSchema.parse(toolSearchOutputItemToolFunction));
97
+ }
98
+ /** @internal */
99
+ export const ToolSearchOutputItemToolUnion$outboundSchema = z.union([
100
+ ComputerUseServerTool$outboundSchema,
101
+ NamespaceTool$outboundSchema,
102
+ z.lazy(() => ToolSearchOutputItemToolFunction$outboundSchema),
103
+ FileSearchServerTool$outboundSchema,
104
+ CodeInterpreterServerTool$outboundSchema,
105
+ McpServerTool$outboundSchema,
106
+ CustomTool$outboundSchema,
107
+ PreviewWebSearchServerTool$outboundSchema,
108
+ Preview20250311WebSearchServerTool$outboundSchema,
109
+ LegacyWebSearchServerTool$outboundSchema,
110
+ WebSearchServerTool$outboundSchema,
111
+ ImageGenerationServerTool$outboundSchema,
112
+ CodexLocalShellTool$outboundSchema,
113
+ ShellServerTool$outboundSchema,
114
+ ApplyPatchServerTool$outboundSchema,
115
+ AdvisorServerToolOpenRouter$outboundSchema,
116
+ SubagentServerToolOpenRouter$outboundSchema,
117
+ DatetimeServerTool$outboundSchema,
118
+ FilesServerTool$outboundSchema,
119
+ FusionServerToolOpenRouter$outboundSchema,
120
+ ImageGenerationServerToolOpenRouter$outboundSchema,
121
+ SearchModelsServerToolOpenRouter$outboundSchema,
122
+ WebFetchServerTool$outboundSchema,
123
+ WebSearchServerToolOpenRouter$outboundSchema,
124
+ ApplyPatchServerToolOpenRouter$outboundSchema,
125
+ BashServerTool$outboundSchema,
126
+ ShellServerToolOpenRouter$outboundSchema,
127
+ ToolSearchServerTool$outboundSchema,
128
+ z.lazy(() => ToolSearchOutputItemTool$outboundSchema),
129
+ ]);
130
+ export function toolSearchOutputItemToolUnionToJSON(toolSearchOutputItemToolUnion) {
131
+ return JSON.stringify(ToolSearchOutputItemToolUnion$outboundSchema.parse(toolSearchOutputItemToolUnion));
132
+ }
133
+ /** @internal */
134
+ export const TypeToolSearchOutput$outboundSchema = z.enum(TypeToolSearchOutput);
135
+ /** @internal */
136
+ export const ToolSearchOutputItem$outboundSchema = z.object({
137
+ callId: z.string(),
138
+ execution: ToolSearchOutputItemExecution$outboundSchema,
139
+ id: z.nullable(z.string()).optional(),
140
+ status: z.nullable(ToolSearchOutputItemStatus$outboundSchema).optional(),
141
+ tools: z.array(z.union([
142
+ ComputerUseServerTool$outboundSchema,
143
+ NamespaceTool$outboundSchema,
144
+ z.lazy(() => ToolSearchOutputItemToolFunction$outboundSchema),
145
+ FileSearchServerTool$outboundSchema,
146
+ CodeInterpreterServerTool$outboundSchema,
147
+ McpServerTool$outboundSchema,
148
+ CustomTool$outboundSchema,
149
+ PreviewWebSearchServerTool$outboundSchema,
150
+ Preview20250311WebSearchServerTool$outboundSchema,
151
+ LegacyWebSearchServerTool$outboundSchema,
152
+ WebSearchServerTool$outboundSchema,
153
+ ImageGenerationServerTool$outboundSchema,
154
+ CodexLocalShellTool$outboundSchema,
155
+ ShellServerTool$outboundSchema,
156
+ ApplyPatchServerTool$outboundSchema,
157
+ AdvisorServerToolOpenRouter$outboundSchema,
158
+ SubagentServerToolOpenRouter$outboundSchema,
159
+ DatetimeServerTool$outboundSchema,
160
+ FilesServerTool$outboundSchema,
161
+ FusionServerToolOpenRouter$outboundSchema,
162
+ ImageGenerationServerToolOpenRouter$outboundSchema,
163
+ SearchModelsServerToolOpenRouter$outboundSchema,
164
+ WebFetchServerTool$outboundSchema,
165
+ WebSearchServerToolOpenRouter$outboundSchema,
166
+ ApplyPatchServerToolOpenRouter$outboundSchema,
167
+ BashServerTool$outboundSchema,
168
+ ShellServerToolOpenRouter$outboundSchema,
169
+ ToolSearchServerTool$outboundSchema,
170
+ z.lazy(() => ToolSearchOutputItemTool$outboundSchema),
171
+ ])),
172
+ type: TypeToolSearchOutput$outboundSchema,
173
+ }).transform((v) => {
174
+ return remap$(v, {
175
+ callId: "call_id",
176
+ });
177
+ });
178
+ export function toolSearchOutputItemToJSON(toolSearchOutputItem) {
179
+ return JSON.stringify(ToolSearchOutputItem$outboundSchema.parse(toolSearchOutputItem));
180
+ }
181
+ //# sourceMappingURL=toolsearchoutputitem.js.map
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  /**
4
- * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
4
+ * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
5
5
  */
6
6
  export declare const UpdateBYOKKeyRequestDeclaredRegion: {
7
7
  readonly Global: "global";
@@ -9,7 +9,7 @@ export declare const UpdateBYOKKeyRequestDeclaredRegion: {
9
9
  readonly Us: "us";
10
10
  };
11
11
  /**
12
- * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
12
+ * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
13
13
  */
14
14
  export type UpdateBYOKKeyRequestDeclaredRegion = OpenEnum<typeof UpdateBYOKKeyRequestDeclaredRegion>;
15
15
  export type UpdateBYOKKeyRequest = {
@@ -26,7 +26,7 @@ export type UpdateBYOKKeyRequest = {
26
26
  */
27
27
  allowedUserIds?: Array<string> | null | undefined;
28
28
  /**
29
- * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
29
+ * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
30
30
  */
31
31
  declaredRegion?: UpdateBYOKKeyRequestDeclaredRegion | null | undefined;
32
32
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  /**
9
- * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, only Azure accepts `europe` or `us`. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
9
+ * Your declaration of the data region in which the upstream provider account behind this credential processes requests, used for routing eligibility on OpenRouter's regional hosts. `null` means undeclared and `global` is behaviorally identical: the credential follows the region OpenRouter records for the endpoint. `europe` or `us` lets requests to `eu.openrouter.ai` or `us.openrouter.ai` use this credential for that provider (private endpoints, endpoints pinned to another cloud region, cross-region inference profiles and video models are excluded). Self-declared and not verified by OpenRouter. For OpenAI and Fireworks the region comes from the key material (a `{"api_key": ..., "region": ...}` key), so the value must match the key's region. Among other providers, Azure accepts `europe` or `us` and Anthropic accepts `us` only. Omit to leave the stored value unchanged (rotating an OpenAI or Fireworks `key` re-derives it from the new key); `null` clears the declaration.
10
10
  */
11
11
  export const UpdateBYOKKeyRequestDeclaredRegion = {
12
12
  Global: "global",
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ export type UpdateExternalUserRequest = {
3
+ /**
4
+ * Registration state only; does not enforce inference access.
5
+ */
6
+ isActive: boolean;
7
+ };
8
+ /** @internal */
9
+ export type UpdateExternalUserRequest$Outbound = {
10
+ is_active: boolean;
11
+ };
12
+ /** @internal */
13
+ export declare const UpdateExternalUserRequest$outboundSchema: z.ZodType<UpdateExternalUserRequest$Outbound, UpdateExternalUserRequest>;
14
+ export declare function updateExternalUserRequestToJSON(updateExternalUserRequest: UpdateExternalUserRequest): string;
15
+ //# sourceMappingURL=updateexternaluserrequest.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 61f141e8739a
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const UpdateExternalUserRequest$outboundSchema = z.object({
9
+ isActive: z.boolean(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ isActive: "is_active",
13
+ });
14
+ });
15
+ export function updateExternalUserRequestToJSON(updateExternalUserRequest) {
16
+ return JSON.stringify(UpdateExternalUserRequest$outboundSchema.parse(updateExternalUserRequest));
17
+ }
18
+ //# sourceMappingURL=updateexternaluserrequest.js.map
@@ -4,6 +4,14 @@ import { ContentFilterEntry, ContentFilterEntry$Outbound } from "./contentfilter
4
4
  import { GuardrailDataRegion } from "./guardraildataregion.js";
5
5
  import { GuardrailInterval } from "./guardrailinterval.js";
6
6
  export type UpdateGuardrailRequest = {
7
+ /**
8
+ * Whether ZDR-only requests to google/* models may use endpoints that may retain prompts for safety monitoring. false allows only zero-retention endpoints. A guardrail can only be more restrictive than the account setting. Inherits the account setting when not provided.
9
+ */
10
+ allowSafetyRetentionGoogle?: boolean | null | undefined;
11
+ /**
12
+ * Whether ZDR-only requests to models outside the named providers (for example open-weight models on Vertex) may use endpoints that may retain prompts for safety monitoring. false allows only zero-retention endpoints. A guardrail can only be more restrictive than the account setting. Inherits the account setting when not provided.
13
+ */
14
+ allowSafetyRetentionOther?: boolean | null | undefined;
7
15
  /**
8
16
  * Data regions through which requests governed by this guardrail must arrive. `global` is https://openrouter.ai, `europe` is https://eu.openrouter.ai, and `us` is https://us.openrouter.ai. Requests arriving through any other region are rejected. `null` leaves the ingress region unrestricted. When several guardrails apply (workspace default, member, API key), the effective regions are the intersection of every non-null value. An empty array is rejected.
9
17
  */
@@ -93,6 +101,8 @@ export type UpdateGuardrailRequest = {
93
101
  };
94
102
  /** @internal */
95
103
  export type UpdateGuardrailRequest$Outbound = {
104
+ allow_safety_retention_google?: boolean | null | undefined;
105
+ allow_safety_retention_other?: boolean | null | undefined;
96
106
  allowed_data_regions?: Array<string> | null | undefined;
97
107
  allowed_models?: Array<string> | null | undefined;
98
108
  allowed_providers?: Array<string> | null | undefined;
@@ -10,6 +10,8 @@ import { GuardrailDataRegion$outboundSchema, } from "./guardraildataregion.js";
10
10
  import { GuardrailInterval$outboundSchema, } from "./guardrailinterval.js";
11
11
  /** @internal */
12
12
  export const UpdateGuardrailRequest$outboundSchema = z.object({
13
+ allowSafetyRetentionGoogle: z.nullable(z.boolean()).optional(),
14
+ allowSafetyRetentionOther: z.nullable(z.boolean()).optional(),
13
15
  allowedDataRegions: z.nullable(z.array(GuardrailDataRegion$outboundSchema))
14
16
  .optional(),
15
17
  allowedModels: z.nullable(z.array(z.string())).optional(),
@@ -35,6 +37,8 @@ export const UpdateGuardrailRequest$outboundSchema = z.object({
35
37
  resetInterval: z.nullable(GuardrailInterval$outboundSchema).optional(),
36
38
  }).transform((v) => {
37
39
  return remap$(v, {
40
+ allowSafetyRetentionGoogle: "allow_safety_retention_google",
41
+ allowSafetyRetentionOther: "allow_safety_retention_other",
38
42
  allowedDataRegions: "allowed_data_regions",
39
43
  allowedModels: "allowed_models",
40
44
  allowedProviders: "allowed_providers",
@@ -10,6 +10,10 @@ export type UpdateObservabilityDestinationRequest = {
10
10
  * Whether to include cost and billing generation metadata.
11
11
  */
12
12
  broadcastGenerationCost?: boolean | undefined;
13
+ /**
14
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
15
+ */
16
+ broadcastGenerationCostAllocation?: boolean | undefined;
13
17
  /**
14
18
  * Whether to include identity generation metadata.
15
19
  */
@@ -50,6 +54,7 @@ export type UpdateObservabilityDestinationRequest = {
50
54
  export type UpdateObservabilityDestinationRequest$Outbound = {
51
55
  api_key_hashes?: Array<string> | null | undefined;
52
56
  broadcast_generation_cost?: boolean | undefined;
57
+ broadcast_generation_cost_allocation?: boolean | undefined;
53
58
  broadcast_generation_identity?: boolean | undefined;
54
59
  broadcast_generation_request_context?: boolean | undefined;
55
60
  config?: {
@@ -10,6 +10,7 @@ import { ObservabilityFilterRulesConfigNullable$outboundSchema, } from "./observ
10
10
  export const UpdateObservabilityDestinationRequest$outboundSchema = z.object({
11
11
  apiKeyHashes: z.nullable(z.array(z.string())).optional(),
12
12
  broadcastGenerationCost: z.boolean().optional(),
13
+ broadcastGenerationCostAllocation: z.boolean().optional(),
13
14
  broadcastGenerationIdentity: z.boolean().optional(),
14
15
  broadcastGenerationRequestContext: z.boolean().optional(),
15
16
  config: z.record(z.string(), z.any()).optional(),
@@ -24,6 +25,7 @@ export const UpdateObservabilityDestinationRequest$outboundSchema = z.object({
24
25
  return remap$(v, {
25
26
  apiKeyHashes: "api_key_hashes",
26
27
  broadcastGenerationCost: "broadcast_generation_cost",
28
+ broadcastGenerationCostAllocation: "broadcast_generation_cost_allocation",
27
29
  broadcastGenerationIdentity: "broadcast_generation_identity",
28
30
  broadcastGenerationRequestContext: "broadcast_generation_request_context",
29
31
  filterRules: "filter_rules",
@@ -325,6 +325,9 @@ export type VideoGenerationRequestOptions = {
325
325
  parasail?: {
326
326
  [k: string]: any;
327
327
  } | undefined;
328
+ paretoAlpha?: {
329
+ [k: string]: any;
330
+ } | undefined;
328
331
  perceptron?: {
329
332
  [k: string]: any;
330
333
  } | undefined;
@@ -349,6 +352,9 @@ export type VideoGenerationRequestOptions = {
349
352
  recursal?: {
350
353
  [k: string]: any;
351
354
  } | undefined;
355
+ recursive?: {
356
+ [k: string]: any;
357
+ } | undefined;
352
358
  reflection?: {
353
359
  [k: string]: any;
354
360
  } | undefined;
@@ -862,6 +868,9 @@ export type VideoGenerationRequestOptions$Outbound = {
862
868
  parasail?: {
863
869
  [k: string]: any;
864
870
  } | undefined;
871
+ "pareto-alpha"?: {
872
+ [k: string]: any;
873
+ } | undefined;
865
874
  perceptron?: {
866
875
  [k: string]: any;
867
876
  } | undefined;
@@ -886,6 +895,9 @@ export type VideoGenerationRequestOptions$Outbound = {
886
895
  recursal?: {
887
896
  [k: string]: any;
888
897
  } | undefined;
898
+ recursive?: {
899
+ [k: string]: any;
900
+ } | undefined;
889
901
  reflection?: {
890
902
  [k: string]: any;
891
903
  } | undefined;
@@ -139,6 +139,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
139
139
  openInference: z.record(z.string(), z.any()).optional(),
140
140
  openai: z.record(z.string(), z.any()).optional(),
141
141
  parasail: z.record(z.string(), z.any()).optional(),
142
+ paretoAlpha: z.record(z.string(), z.any()).optional(),
142
143
  perceptron: z.record(z.string(), z.any()).optional(),
143
144
  perplexity: z.record(z.string(), z.any()).optional(),
144
145
  phala: z.record(z.string(), z.any()).optional(),
@@ -147,6 +148,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
147
148
  quiver: z.record(z.string(), z.any()).optional(),
148
149
  recraft: z.record(z.string(), z.any()).optional(),
149
150
  recursal: z.record(z.string(), z.any()).optional(),
151
+ recursive: z.record(z.string(), z.any()).optional(),
150
152
  reflection: z.record(z.string(), z.any()).optional(),
151
153
  reka: z.record(z.string(), z.any()).optional(),
152
154
  relace: z.record(z.string(), z.any()).optional(),
@@ -210,6 +212,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
210
212
  nearAi: "near-ai",
211
213
  nexAgi: "nex-agi",
212
214
  openInference: "open-inference",
215
+ paretoAlpha: "pareto-alpha",
213
216
  sailResearch: "sail-research",
214
217
  sakanaAi: "sakana-ai",
215
218
  sambanovaCloaked: "sambanova-cloaked",
@@ -14,6 +14,10 @@ export declare const VideoGenerationResponseStatus: {
14
14
  export type VideoGenerationResponseStatus = OpenEnum<typeof VideoGenerationResponseStatus>;
15
15
  export type VideoGenerationResponse = {
16
16
  error?: string | undefined;
17
+ /**
18
+ * Unix timestamp in seconds when OpenRouter's stored copy of the outputs stops being available. Present only when that copy exists.
19
+ */
20
+ expiresAt?: number | undefined;
17
21
  /**
18
22
  * The generation ID associated with this video generation job. Available once the job has been processed.
19
23
  */
@@ -24,7 +28,14 @@ export type VideoGenerationResponse = {
24
28
  id: string;
25
29
  pollingUrl: string;
26
30
  status: VideoGenerationResponseStatus;
31
+ /**
32
+ * OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available.
33
+ */
27
34
  unsignedUrls?: Array<string> | undefined;
35
+ /**
36
+ * Signed download URLs for OpenRouter's stored copy of each output, usable without an API key until `expires_at`. Anyone holding a URL can download that output until it expires, so treat it like a secret. Present only when the stored copy exists.
37
+ */
38
+ urls?: Array<string> | undefined;
28
39
  /**
29
40
  * Usage and cost information for the video generation. Available once the job has completed.
30
41
  */
@@ -20,14 +20,17 @@ export const VideoGenerationResponseStatus$inboundSchema = openEnums.inboundSche
20
20
  /** @internal */
21
21
  export const VideoGenerationResponse$inboundSchema = z.object({
22
22
  error: z.string().optional(),
23
+ expires_at: z.int().optional(),
23
24
  generation_id: z.string().optional(),
24
25
  id: z.string(),
25
26
  polling_url: z.string(),
26
27
  status: VideoGenerationResponseStatus$inboundSchema,
27
28
  unsigned_urls: z.array(z.string()).optional(),
29
+ urls: z.array(z.string()).optional(),
28
30
  usage: VideoGenerationUsage$inboundSchema.optional(),
29
31
  }).transform((v) => {
30
32
  return remap$(v, {
33
+ "expires_at": "expiresAt",
31
34
  "generation_id": "generationId",
32
35
  "polling_url": "pollingUrl",
33
36
  "unsigned_urls": "unsignedUrls",
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  /**
4
- * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
4
+ * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
5
5
  */
6
6
  export declare const WebFetchEngineEnum: {
7
7
  readonly Auto: "auto";
@@ -12,7 +12,7 @@ export declare const WebFetchEngineEnum: {
12
12
  readonly Firecrawl: "firecrawl";
13
13
  };
14
14
  /**
15
- * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
15
+ * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
16
16
  */
17
17
  export type WebFetchEngineEnum = OpenEnum<typeof WebFetchEngineEnum>;
18
18
  /** @internal */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as openEnums from "../types/enums.js";
6
6
  /**
7
- * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
7
+ * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
8
8
  */
9
9
  export const WebFetchEngineEnum = {
10
10
  Auto: "auto",
@@ -13,7 +13,7 @@ export type WebFetchServerToolConfig = {
13
13
  */
14
14
  blockedDomains?: Array<string> | undefined;
15
15
  /**
16
- * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
16
+ * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
17
17
  */
18
18
  engine?: WebFetchEngineEnum | undefined;
19
19
  /**
@@ -10,7 +10,7 @@ export type WebSearchConfig = {
10
10
  */
11
11
  allowedDomains?: Array<string> | undefined;
12
12
  /**
13
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
13
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
14
14
  */
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  /**
4
- * 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).
4
+ * 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).
5
5
  */
6
6
  export declare const WebSearchEngineEnum: {
7
7
  readonly Native: "native";
@@ -12,7 +12,7 @@ export declare const WebSearchEngineEnum: {
12
12
  readonly Auto: "auto";
13
13
  };
14
14
  /**
15
- * 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).
15
+ * 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).
16
16
  */
17
17
  export type WebSearchEngineEnum = OpenEnum<typeof WebSearchEngineEnum>;
18
18
  /** @internal */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as openEnums from "../types/enums.js";
6
6
  /**
7
- * 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).
7
+ * 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).
8
8
  */
9
9
  export const WebSearchEngineEnum = {
10
10
  Native: "native",
@@ -17,7 +17,7 @@ export type WebSearchServerToolType = ClosedEnum<typeof WebSearchServerToolType>
17
17
  */
18
18
  export type WebSearchServerTool = {
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;
@@ -13,7 +13,7 @@ export type WebSearchServerToolConfig = {
13
13
  */
14
14
  allowedDomains?: Array<string> | undefined;
15
15
  /**
16
- * 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).
16
+ * 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).
17
17
  */
18
18
  engine?: WebSearchEngineEnum | undefined;
19
19
  /**
@@ -5,7 +5,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
7
7
  */
8
- export declare const ResetInterval: {
8
+ export declare const WorkspaceBudgetResetInterval: {
9
9
  readonly Daily: "daily";
10
10
  readonly Weekly: "weekly";
11
11
  readonly Monthly: "monthly";
@@ -13,7 +13,7 @@ export declare const ResetInterval: {
13
13
  /**
14
14
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
15
15
  */
16
- export type ResetInterval = OpenEnum<typeof ResetInterval>;
16
+ export type WorkspaceBudgetResetInterval = OpenEnum<typeof WorkspaceBudgetResetInterval>;
17
17
  export type WorkspaceBudget = {
18
18
  /**
19
19
  * ISO 8601 timestamp of when the budget was created
@@ -30,7 +30,7 @@ export type WorkspaceBudget = {
30
30
  /**
31
31
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
32
32
  */
33
- resetInterval: ResetInterval | null;
33
+ resetInterval: WorkspaceBudgetResetInterval | null;
34
34
  /**
35
35
  * ISO 8601 timestamp of when the budget was last updated
36
36
  */
@@ -41,7 +41,7 @@ export type WorkspaceBudget = {
41
41
  workspaceId: string;
42
42
  };
43
43
  /** @internal */
44
- export declare const ResetInterval$inboundSchema: z.ZodType<ResetInterval, unknown>;
44
+ export declare const WorkspaceBudgetResetInterval$inboundSchema: z.ZodType<WorkspaceBudgetResetInterval, unknown>;
45
45
  /** @internal */
46
46
  export declare const WorkspaceBudget$inboundSchema: z.ZodType<WorkspaceBudget, unknown>;
47
47
  export declare function workspaceBudgetFromJSON(jsonString: string): SafeParseResult<WorkspaceBudget, SDKValidationError>;
@@ -9,19 +9,19 @@ import * as openEnums from "../types/enums.js";
9
9
  /**
10
10
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
11
11
  */
12
- export const ResetInterval = {
12
+ export const WorkspaceBudgetResetInterval = {
13
13
  Daily: "daily",
14
14
  Weekly: "weekly",
15
15
  Monthly: "monthly",
16
16
  };
17
17
  /** @internal */
18
- export const ResetInterval$inboundSchema = openEnums.inboundSchema(ResetInterval);
18
+ export const WorkspaceBudgetResetInterval$inboundSchema = openEnums.inboundSchema(WorkspaceBudgetResetInterval);
19
19
  /** @internal */
20
20
  export const WorkspaceBudget$inboundSchema = z.object({
21
21
  created_at: z.string(),
22
22
  id: z.string(),
23
23
  limit_usd: z.number(),
24
- reset_interval: z.nullable(ResetInterval$inboundSchema),
24
+ reset_interval: z.nullable(WorkspaceBudgetResetInterval$inboundSchema),
25
25
  updated_at: z.string(),
26
26
  workspace_id: z.string(),
27
27
  }).transform((v) => {
@@ -42,8 +42,10 @@ export declare class APIKeys extends ClientSDK {
42
42
  * @remarks
43
43
  * Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
44
44
  *
45
+ * Set `workspace_id` to move the key to another workspace.
46
+ *
45
47
  * <Warning>
46
- * You can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
48
+ * The request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
47
49
  * </Warning>
48
50
  */
49
51
  update(request: operations.UpdateKeysRequest, options?: RequestOptions): Promise<operations.UpdateKeysResponse>;