@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
@@ -0,0 +1,150 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js";
4
+ import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
5
+ import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
6
+ import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
7
+ import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js";
8
+ import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js";
9
+ import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./computeruseservertool.js";
10
+ import { CustomTool, CustomTool$Outbound } from "./customtool.js";
11
+ import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
12
+ import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js";
13
+ import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js";
14
+ import { FusionServerToolOpenRouter, FusionServerToolOpenRouter$Outbound } from "./fusionservertoolopenrouter.js";
15
+ import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from "./imagegenerationservertool.js";
16
+ import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
17
+ import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js";
18
+ import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js";
19
+ import { NamespaceTool, NamespaceTool$Outbound } from "./namespacetool.js";
20
+ import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$Outbound } from "./preview20250311websearchservertool.js";
21
+ import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js";
22
+ import { SearchModelsServerToolOpenRouter, SearchModelsServerToolOpenRouter$Outbound } from "./searchmodelsservertoolopenrouter.js";
23
+ import { ShellServerTool, ShellServerTool$Outbound } from "./shellservertool.js";
24
+ import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js";
25
+ import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
26
+ import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js";
27
+ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
28
+ import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
29
+ import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
30
+ export declare const ToolSearchOutputItemExecution: {
31
+ readonly Server: "server";
32
+ readonly Client: "client";
33
+ };
34
+ export type ToolSearchOutputItemExecution = OpenEnum<typeof ToolSearchOutputItemExecution>;
35
+ export declare const ToolSearchOutputItemStatus: {
36
+ readonly InProgress: "in_progress";
37
+ readonly Completed: "completed";
38
+ readonly Incomplete: "incomplete";
39
+ };
40
+ export type ToolSearchOutputItemStatus = OpenEnum<typeof ToolSearchOutputItemStatus>;
41
+ export type ToolSearchOutputItemTool = {
42
+ type: string;
43
+ additionalProperties?: {
44
+ [k: string]: any;
45
+ } | undefined;
46
+ };
47
+ export declare const ToolSearchOutputItemTypeFunction: {
48
+ readonly Function: "function";
49
+ };
50
+ export type ToolSearchOutputItemTypeFunction = ClosedEnum<typeof ToolSearchOutputItemTypeFunction>;
51
+ export declare const ToolSearchOutputItemAllowedCaller: {
52
+ readonly Direct: "direct";
53
+ readonly Programmatic: "programmatic";
54
+ };
55
+ export type ToolSearchOutputItemAllowedCaller = OpenEnum<typeof ToolSearchOutputItemAllowedCaller>;
56
+ /**
57
+ * Function tool definition
58
+ */
59
+ export type ToolSearchOutputItemToolFunction = {
60
+ description?: string | null | undefined;
61
+ name: string;
62
+ parameters: {
63
+ [k: string]: any;
64
+ } | null;
65
+ strict?: boolean | null | undefined;
66
+ type: ToolSearchOutputItemTypeFunction;
67
+ allowedCallers?: Array<ToolSearchOutputItemAllowedCaller> | null | undefined;
68
+ /**
69
+ * 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.
70
+ */
71
+ async?: boolean | undefined;
72
+ /**
73
+ * 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.
74
+ */
75
+ deferLoading?: boolean | undefined;
76
+ outputSchema?: {
77
+ [k: string]: any;
78
+ } | null | undefined;
79
+ };
80
+ export type ToolSearchOutputItemToolUnion = ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool;
81
+ export declare const TypeToolSearchOutput: {
82
+ readonly ToolSearchOutput: "tool_search_output";
83
+ };
84
+ export type TypeToolSearchOutput = ClosedEnum<typeof TypeToolSearchOutput>;
85
+ /**
86
+ * The tools a client-executed tool search loaded
87
+ */
88
+ export type ToolSearchOutputItem = {
89
+ callId: string;
90
+ execution: ToolSearchOutputItemExecution;
91
+ id?: string | null | undefined;
92
+ status?: ToolSearchOutputItemStatus | null | undefined;
93
+ tools: Array<ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool>;
94
+ type: TypeToolSearchOutput;
95
+ };
96
+ /** @internal */
97
+ export declare const ToolSearchOutputItemExecution$outboundSchema: z.ZodType<string, ToolSearchOutputItemExecution>;
98
+ /** @internal */
99
+ export declare const ToolSearchOutputItemStatus$outboundSchema: z.ZodType<string, ToolSearchOutputItemStatus>;
100
+ /** @internal */
101
+ export type ToolSearchOutputItemTool$Outbound = {
102
+ type: string;
103
+ [additionalProperties: string]: unknown;
104
+ };
105
+ /** @internal */
106
+ export declare const ToolSearchOutputItemTool$outboundSchema: z.ZodType<ToolSearchOutputItemTool$Outbound, ToolSearchOutputItemTool>;
107
+ export declare function toolSearchOutputItemToolToJSON(toolSearchOutputItemTool: ToolSearchOutputItemTool): string;
108
+ /** @internal */
109
+ export declare const ToolSearchOutputItemTypeFunction$outboundSchema: z.ZodEnum<typeof ToolSearchOutputItemTypeFunction>;
110
+ /** @internal */
111
+ export declare const ToolSearchOutputItemAllowedCaller$outboundSchema: z.ZodType<string, ToolSearchOutputItemAllowedCaller>;
112
+ /** @internal */
113
+ export type ToolSearchOutputItemToolFunction$Outbound = {
114
+ description?: string | null | undefined;
115
+ name: string;
116
+ parameters: {
117
+ [k: string]: any;
118
+ } | null;
119
+ strict?: boolean | null | undefined;
120
+ type: string;
121
+ allowed_callers?: Array<string> | null | undefined;
122
+ async?: boolean | undefined;
123
+ defer_loading?: boolean | undefined;
124
+ output_schema?: {
125
+ [k: string]: any;
126
+ } | null | undefined;
127
+ };
128
+ /** @internal */
129
+ export declare const ToolSearchOutputItemToolFunction$outboundSchema: z.ZodType<ToolSearchOutputItemToolFunction$Outbound, ToolSearchOutputItemToolFunction>;
130
+ export declare function toolSearchOutputItemToolFunctionToJSON(toolSearchOutputItemToolFunction: ToolSearchOutputItemToolFunction): string;
131
+ /** @internal */
132
+ export type ToolSearchOutputItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound;
133
+ /** @internal */
134
+ export declare const ToolSearchOutputItemToolUnion$outboundSchema: z.ZodType<ToolSearchOutputItemToolUnion$Outbound, ToolSearchOutputItemToolUnion>;
135
+ export declare function toolSearchOutputItemToolUnionToJSON(toolSearchOutputItemToolUnion: ToolSearchOutputItemToolUnion): string;
136
+ /** @internal */
137
+ export declare const TypeToolSearchOutput$outboundSchema: z.ZodEnum<typeof TypeToolSearchOutput>;
138
+ /** @internal */
139
+ export type ToolSearchOutputItem$Outbound = {
140
+ call_id: string;
141
+ execution: string;
142
+ id?: string | null | undefined;
143
+ status?: string | null | undefined;
144
+ tools: Array<ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound>;
145
+ type: string;
146
+ };
147
+ /** @internal */
148
+ export declare const ToolSearchOutputItem$outboundSchema: z.ZodType<ToolSearchOutputItem$Outbound, ToolSearchOutputItem>;
149
+ export declare function toolSearchOutputItemToJSON(toolSearchOutputItem: ToolSearchOutputItem): string;
150
+ //# sourceMappingURL=toolsearchoutputitem.d.ts.map
@@ -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",