@openrouter/sdk 1.4.25 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/esm/funcs/apiKeysList.d.ts +1 -1
  2. package/esm/funcs/apiKeysList.js +3 -2
  3. package/esm/funcs/apiKeysUpdate.d.ts +4 -2
  4. package/esm/funcs/apiKeysUpdate.js +5 -3
  5. package/esm/funcs/chatSend.d.ts +4 -2
  6. package/esm/funcs/containersPromoteContainerFile.d.ts +1 -1
  7. package/esm/funcs/containersPromoteContainerFile.js +2 -2
  8. package/esm/funcs/embeddingsGenerate.d.ts +1 -1
  9. package/esm/funcs/embeddingsGenerate.js +2 -2
  10. package/esm/funcs/{endUsersCreate.d.ts → externalUsersCreate.d.ts} +3 -3
  11. package/esm/funcs/{endUsersCreate.js → externalUsersCreate.js} +11 -11
  12. package/esm/funcs/{endUsersDelete.d.ts → externalUsersDelete.d.ts} +3 -3
  13. package/esm/funcs/{endUsersDelete.js → externalUsersDelete.js} +8 -8
  14. package/esm/funcs/{endUsersGet.d.ts → externalUsersGet.d.ts} +3 -3
  15. package/esm/funcs/{endUsersGet.js → externalUsersGet.js} +10 -10
  16. package/esm/funcs/{endUsersList.d.ts → externalUsersList.d.ts} +3 -3
  17. package/esm/funcs/{endUsersList.js → externalUsersList.js} +10 -10
  18. package/esm/funcs/{endUsersUpdate.d.ts → externalUsersUpdate.d.ts} +3 -3
  19. package/esm/funcs/{endUsersUpdate.js → externalUsersUpdate.js} +11 -11
  20. package/esm/funcs/filesUpload.d.ts +1 -1
  21. package/esm/funcs/filesUpload.js +2 -2
  22. package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
  23. package/esm/funcs/guardrailsListKeyAssignments.js +2 -2
  24. package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
  25. package/esm/funcs/guardrailsListMemberAssignments.js +2 -2
  26. package/esm/funcs/imagesGenerate.d.ts +4 -2
  27. package/esm/funcs/internsGetInternConnections.d.ts +21 -0
  28. package/esm/funcs/internsGetInternConnections.js +105 -0
  29. package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
  30. package/esm/funcs/internsGetInternDaemon.js +1 -1
  31. package/esm/funcs/internsGetInternIcon.d.ts +20 -0
  32. package/esm/funcs/internsGetInternIcon.js +109 -0
  33. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +22 -0
  34. package/esm/funcs/internsSignInternDaemonAccessRequest.js +109 -0
  35. package/esm/funcs/internsSignInternDaemonRequest.d.ts +20 -0
  36. package/esm/funcs/internsSignInternDaemonRequest.js +109 -0
  37. package/esm/funcs/modelsListForUser.js +1 -0
  38. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
  39. package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
  40. package/esm/funcs/responsesSend.d.ts +4 -2
  41. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
  42. package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
  43. package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
  44. package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
  45. package/esm/funcs/vaultListInternConnections.d.ts +20 -0
  46. package/esm/funcs/vaultListInternConnections.js +104 -0
  47. package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
  48. package/esm/funcs/vaultStoreVaultSecret.js +2 -2
  49. package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
  50. package/esm/funcs/videoGenerationGenerate.js +2 -2
  51. package/esm/lib/config.d.ts +3 -3
  52. package/esm/lib/config.js +3 -3
  53. package/esm/lib/encodings.d.ts +10 -9
  54. package/esm/lib/encodings.js +29 -13
  55. package/esm/lib/http.d.ts +1 -1
  56. package/esm/lib/http.js +1 -1
  57. package/esm/lib/security.d.ts +5 -4
  58. package/esm/lib/security.js +4 -5
  59. package/esm/models/additionaltoolsitem.d.ts +16 -1
  60. package/esm/models/additionaltoolsitem.js +10 -0
  61. package/esm/models/alignment.d.ts +1 -1
  62. package/esm/models/alignmentplugin.d.ts +9 -8
  63. package/esm/models/alignmentplugin.js +3 -2
  64. package/esm/models/alignmentrule.d.ts +31 -0
  65. package/esm/models/alignmentrule.js +25 -0
  66. package/esm/models/alignmentrulerecord.d.ts +7 -3
  67. package/esm/models/alignmentrulerecord.js +2 -1
  68. package/esm/models/armorautomode.d.ts +44 -0
  69. package/esm/models/armorautomode.js +49 -0
  70. package/esm/models/armorcontext.d.ts +22 -0
  71. package/esm/models/armorcontext.js +25 -0
  72. package/esm/models/armorenvironmententry.d.ts +14 -0
  73. package/esm/models/armorenvironmententry.js +14 -0
  74. package/esm/models/armorplugin.d.ts +92 -0
  75. package/esm/models/armorplugin.js +60 -0
  76. package/esm/models/armorrule.d.ts +30 -0
  77. package/esm/models/armorrule.js +16 -0
  78. package/esm/models/armorsafeguardresult.d.ts +69 -0
  79. package/esm/models/armorsafeguardresult.js +83 -0
  80. package/esm/models/batchlistitem.d.ts +8 -0
  81. package/esm/models/batchlistitem.js +3 -0
  82. package/esm/models/batchobject.d.ts +13 -0
  83. package/esm/models/batchobject.js +6 -0
  84. package/esm/models/batchsubmitbody.d.ts +5 -0
  85. package/esm/models/batchsubmitbody.js +2 -0
  86. package/esm/models/byokkey.d.ts +3 -3
  87. package/esm/models/byokkey.js +1 -1
  88. package/esm/models/byokproviderslug.d.ts +2 -0
  89. package/esm/models/byokproviderslug.js +2 -0
  90. package/esm/models/chatcontenttext.d.ts +1 -1
  91. package/esm/models/chatfunctiontool.d.ts +4 -0
  92. package/esm/models/chatfunctiontool.js +7 -0
  93. package/esm/models/chatrequest.d.ts +16 -9
  94. package/esm/models/chatrequest.js +9 -6
  95. package/esm/models/chatresult.d.ts +10 -0
  96. package/esm/models/chatresult.js +5 -0
  97. package/esm/models/chatstreamchunk.d.ts +7 -0
  98. package/esm/models/chatstreamchunk.js +5 -0
  99. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  100. package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
  101. package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
  102. package/esm/models/computeruseservertool.d.ts +5 -5
  103. package/esm/models/computeruseservertool.js +5 -5
  104. package/esm/models/createbyokkeyrequest.d.ts +3 -3
  105. package/esm/models/createbyokkeyrequest.js +1 -1
  106. package/esm/models/createexternaluserrequest.d.ts +15 -0
  107. package/esm/models/createexternaluserrequest.js +13 -0
  108. package/esm/models/createguardrailrequest.d.ts +10 -0
  109. package/esm/models/createguardrailrequest.js +4 -0
  110. package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
  111. package/esm/models/createobservabilitydestinationrequest.js +2 -0
  112. package/esm/models/customtool.d.ts +2 -0
  113. package/esm/models/customtool.js +11 -0
  114. package/esm/models/decisionsboxanswer.d.ts +21 -0
  115. package/esm/models/decisionsboxanswer.js +26 -0
  116. package/esm/models/decisionsboxquestion.d.ts +34 -0
  117. package/esm/models/decisionsboxquestion.js +23 -0
  118. package/esm/models/decisionsrequest.d.ts +6 -5
  119. package/esm/models/decisionsrequest.js +3 -0
  120. package/esm/models/decisionsresponse.d.ts +4 -3
  121. package/esm/models/decisionsresponse.js +3 -0
  122. package/esm/models/deferredbm25search.d.ts +17 -0
  123. package/esm/models/deferredbm25search.js +19 -0
  124. package/esm/models/deferredcustomsearch.d.ts +21 -0
  125. package/esm/models/deferredcustomsearch.js +23 -0
  126. package/esm/models/deferredregexsearch.d.ts +17 -0
  127. package/esm/models/deferredregexsearch.js +19 -0
  128. package/esm/models/deferredtoolscontrol.d.ts +62 -0
  129. package/esm/models/deferredtoolscontrol.js +38 -0
  130. package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
  131. package/esm/models/deferredtoolssearchstrategy.js +18 -0
  132. package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
  133. package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
  134. package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
  135. package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
  136. package/esm/models/errors/index.d.ts +1 -0
  137. package/esm/models/errors/index.js +1 -0
  138. package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
  139. package/esm/models/{enduser.js → externaluser.js} +6 -5
  140. package/esm/models/externaluserresponse.d.ts +11 -0
  141. package/esm/models/externaluserresponse.js +15 -0
  142. package/esm/models/guardrail.d.ts +8 -0
  143. package/esm/models/guardrail.js +4 -0
  144. package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
  145. package/esm/models/imagegenerationproviderpreferences.js +3 -0
  146. package/esm/models/index.d.ts +34 -6
  147. package/esm/models/index.js +34 -6
  148. package/esm/models/inputsunion.d.ts +7 -4
  149. package/esm/models/inputsunion.js +9 -0
  150. package/esm/models/inputtext.d.ts +1 -1
  151. package/esm/models/intern.d.ts +12 -0
  152. package/esm/models/intern.js +6 -0
  153. package/esm/models/internconnection.d.ts +118 -0
  154. package/esm/models/internconnection.js +105 -0
  155. package/esm/models/internconnectionlist.d.ts +11 -0
  156. package/esm/models/internconnectionlist.js +15 -0
  157. package/esm/models/jevrouterplugin.d.ts +5 -0
  158. package/esm/models/jevrouterplugin.js +2 -0
  159. package/esm/models/keybudget.d.ts +80 -0
  160. package/esm/models/keybudget.js +58 -0
  161. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  162. package/esm/models/listexternalusersresponse.d.ts +15 -0
  163. package/esm/models/listexternalusersresponse.js +21 -0
  164. package/esm/models/messagesmessageparam.d.ts +7 -6
  165. package/esm/models/messagesmessageparam.js +4 -0
  166. package/esm/models/messagesrequest.d.ts +11 -4
  167. package/esm/models/messagesrequest.js +6 -0
  168. package/esm/models/namespacefunctiontool.d.ts +5 -5
  169. package/esm/models/namespacefunctiontool.js +5 -5
  170. package/esm/models/observabilityarizedestination.d.ts +4 -0
  171. package/esm/models/observabilityarizedestination.js +2 -0
  172. package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
  173. package/esm/models/observabilitybraintrustdestination.js +2 -0
  174. package/esm/models/observabilityclickhousedestination.d.ts +4 -0
  175. package/esm/models/observabilityclickhousedestination.js +2 -0
  176. package/esm/models/observabilitydatadogdestination.d.ts +4 -0
  177. package/esm/models/observabilitydatadogdestination.js +2 -0
  178. package/esm/models/observabilitygrafanadestination.d.ts +4 -0
  179. package/esm/models/observabilitygrafanadestination.js +2 -0
  180. package/esm/models/observabilitylangfusedestination.d.ts +4 -0
  181. package/esm/models/observabilitylangfusedestination.js +2 -0
  182. package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
  183. package/esm/models/observabilitylangsmithdestination.js +2 -0
  184. package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
  185. package/esm/models/observabilitynewrelicdestination.js +2 -0
  186. package/esm/models/observabilityopikdestination.d.ts +4 -0
  187. package/esm/models/observabilityopikdestination.js +2 -0
  188. package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
  189. package/esm/models/observabilityotelcollectordestination.js +2 -0
  190. package/esm/models/observabilityposthogdestination.d.ts +4 -0
  191. package/esm/models/observabilityposthogdestination.js +2 -0
  192. package/esm/models/observabilityrampdestination.d.ts +4 -0
  193. package/esm/models/observabilityrampdestination.js +2 -0
  194. package/esm/models/observabilitys3destination.d.ts +4 -0
  195. package/esm/models/observabilitys3destination.js +2 -0
  196. package/esm/models/observabilitysentrydestination.d.ts +4 -0
  197. package/esm/models/observabilitysentrydestination.js +2 -0
  198. package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
  199. package/esm/models/observabilitysnowflakedestination.js +2 -0
  200. package/esm/models/observabilityweavedestination.d.ts +4 -0
  201. package/esm/models/observabilityweavedestination.js +2 -0
  202. package/esm/models/observabilitywebhookdestination.d.ts +8 -4
  203. package/esm/models/observabilitywebhookdestination.js +5 -4
  204. package/esm/models/openresponseserrorfield.d.ts +1 -0
  205. package/esm/models/openresponseserrorfield.js +1 -0
  206. package/esm/models/openresponseserrormetadata.d.ts +1 -1
  207. package/esm/models/openresponsesresult.d.ts +19 -3
  208. package/esm/models/openresponsesresult.js +14 -0
  209. package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
  210. package/esm/models/operations/createexternaluser.js +23 -0
  211. package/esm/models/operations/deleteexternaluser.d.ts +58 -0
  212. package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
  213. package/esm/models/operations/getcurrentkey.d.ts +5 -0
  214. package/esm/models/operations/getcurrentkey.js +4 -1
  215. package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
  216. package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
  217. package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
  218. package/esm/models/operations/getinternconnections.js +21 -0
  219. package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
  220. package/esm/models/operations/getinternicon.js +22 -0
  221. package/esm/models/operations/index.d.ts +10 -5
  222. package/esm/models/operations/index.js +10 -5
  223. package/esm/models/operations/list.d.ts +5 -0
  224. package/esm/models/operations/list.js +2 -0
  225. package/esm/models/operations/listbatches.d.ts +4 -4
  226. package/esm/models/operations/listbatches.js +3 -3
  227. package/esm/models/operations/listbyokkeys.d.ts +2 -0
  228. package/esm/models/operations/listbyokkeys.js +2 -0
  229. package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
  230. package/esm/models/operations/listexternalusers.js +38 -0
  231. package/esm/models/operations/listinternconnections.d.ts +75 -0
  232. package/esm/models/operations/listinternconnections.js +36 -0
  233. package/esm/models/operations/listmodelsuser.d.ts +29 -0
  234. package/esm/models/operations/listmodelsuser.js +21 -0
  235. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
  236. package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
  237. package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
  238. package/esm/models/operations/signinterndaemonrequest.js +38 -0
  239. package/esm/models/operations/updateexternaluser.d.ts +61 -0
  240. package/esm/models/operations/updateexternaluser.js +24 -0
  241. package/esm/models/operations/updatekeys.d.ts +5 -0
  242. package/esm/models/operations/updatekeys.js +2 -0
  243. package/esm/models/oranthropiccontentblock.d.ts +2 -1
  244. package/esm/models/oranthropiccontentblock.js +2 -0
  245. package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
  246. package/esm/models/oranthropictoolsearchresult.js +21 -0
  247. package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
  248. package/esm/models/oranthropictoolsearchresultparam.js +20 -0
  249. package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
  250. package/esm/models/outputapplypatchservertoolitem.js +5 -3
  251. package/esm/models/outputarmorblockeditem.d.ts +71 -0
  252. package/esm/models/outputarmorblockeditem.js +60 -0
  253. package/esm/models/outputdatetimeitem.d.ts +7 -2
  254. package/esm/models/outputdatetimeitem.js +5 -3
  255. package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
  256. package/esm/models/outputimagegenerationservertoolitem.js +5 -3
  257. package/esm/models/outputitems.d.ts +5 -1
  258. package/esm/models/outputitems.js +4 -0
  259. package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
  260. package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
  261. package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
  262. package/esm/models/outputtoolsearchcallitem.js +30 -0
  263. package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
  264. package/esm/models/outputtoolsearchservertoolitem.js +36 -3
  265. package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
  266. package/esm/models/outputwebsearchservertoolitem.js +5 -3
  267. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  268. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  269. package/esm/models/privateendpointpricing.d.ts +10 -0
  270. package/esm/models/privateendpointpricing.js +15 -0
  271. package/esm/models/promptcachebreakpoint.d.ts +3 -1
  272. package/esm/models/promptcachebreakpoint.js +2 -0
  273. package/esm/models/promptcacheoptions.d.ts +1 -1
  274. package/esm/models/providername.d.ts +2 -0
  275. package/esm/models/providername.js +2 -0
  276. package/esm/models/provideroptions.d.ts +12 -0
  277. package/esm/models/provideroptions.js +3 -0
  278. package/esm/models/providerresponse.d.ts +2 -0
  279. package/esm/models/providerresponse.js +2 -0
  280. package/esm/models/publicendpoint.d.ts +11 -2
  281. package/esm/models/publicendpoint.js +5 -0
  282. package/esm/models/publicservicetier.d.ts +17 -0
  283. package/esm/models/publicservicetier.js +16 -0
  284. package/esm/models/responsesrequest.d.ts +42 -6
  285. package/esm/models/responsesrequest.js +22 -0
  286. package/esm/models/signinterndaemonrequest.d.ts +54 -0
  287. package/esm/models/signinterndaemonrequest.js +30 -0
  288. package/esm/models/signinterndaemonresponse.d.ts +32 -0
  289. package/esm/models/signinterndaemonresponse.js +27 -0
  290. package/esm/models/speechinput.d.ts +12 -0
  291. package/esm/models/speechinput.js +12 -0
  292. package/esm/models/speechinputreferenceimage.d.ts +1 -1
  293. package/esm/models/speechrequest.d.ts +10 -4
  294. package/esm/models/speechrequest.js +3 -1
  295. package/esm/models/speechturn.d.ts +25 -0
  296. package/esm/models/speechturn.js +15 -0
  297. package/esm/models/switchyardrouterplugin.d.ts +1 -1
  298. package/esm/models/tokenexchangerequest.d.ts +7 -6
  299. package/esm/models/tokenexchangerequest.js +4 -2
  300. package/esm/models/tokenexchangeresponse.d.ts +3 -0
  301. package/esm/models/toolsearchcallitem.d.ts +47 -0
  302. package/esm/models/toolsearchcallitem.js +42 -0
  303. package/esm/models/toolsearchoutputitem.d.ts +150 -0
  304. package/esm/models/toolsearchoutputitem.js +181 -0
  305. package/esm/models/updatebyokkeyrequest.d.ts +3 -3
  306. package/esm/models/updatebyokkeyrequest.js +1 -1
  307. package/esm/models/updateexternaluserrequest.d.ts +15 -0
  308. package/esm/models/updateexternaluserrequest.js +18 -0
  309. package/esm/models/updateguardrailrequest.d.ts +10 -0
  310. package/esm/models/updateguardrailrequest.js +4 -0
  311. package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
  312. package/esm/models/updateobservabilitydestinationrequest.js +2 -0
  313. package/esm/models/videogenerationrequest.d.ts +12 -0
  314. package/esm/models/videogenerationrequest.js +3 -0
  315. package/esm/models/videogenerationresponse.d.ts +11 -0
  316. package/esm/models/videogenerationresponse.js +3 -0
  317. package/esm/models/webfetchengineenum.d.ts +2 -2
  318. package/esm/models/webfetchengineenum.js +1 -1
  319. package/esm/models/webfetchservertoolconfig.d.ts +1 -1
  320. package/esm/models/websearchconfig.d.ts +1 -1
  321. package/esm/models/websearchengineenum.d.ts +2 -2
  322. package/esm/models/websearchengineenum.js +1 -1
  323. package/esm/models/websearchservertool.d.ts +1 -1
  324. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  325. package/esm/models/workspacebudget.d.ts +4 -4
  326. package/esm/models/workspacebudget.js +3 -3
  327. package/esm/sdk/apikeys.d.ts +3 -1
  328. package/esm/sdk/apikeys.js +3 -1
  329. package/esm/sdk/betaresponses.d.ts +4 -2
  330. package/esm/sdk/chat.d.ts +4 -2
  331. package/esm/sdk/endusers.d.ts +10 -10
  332. package/esm/sdk/endusers.js +15 -15
  333. package/esm/sdk/externalusers.d.ts +44 -0
  334. package/esm/sdk/externalusers.js +60 -0
  335. package/esm/sdk/images.d.ts +3 -2
  336. package/esm/sdk/interns.d.ts +31 -1
  337. package/esm/sdk/interns.js +43 -1
  338. package/esm/sdk/privateendpoints.d.ts +1 -1
  339. package/esm/sdk/privateendpoints.js +1 -1
  340. package/esm/sdk/responses.d.ts +4 -2
  341. package/esm/sdk/sdk.d.ts +5 -2
  342. package/esm/sdk/sdk.js +7 -3
  343. package/esm/sdk/vault.d.ts +7 -0
  344. package/esm/sdk/vault.js +10 -0
  345. package/jsr.json +1 -1
  346. package/package.json +6 -6
  347. package/esm/models/batchlisttimestamp.d.ts +0 -12
  348. package/esm/models/batchlisttimestamp.js +0 -15
  349. package/esm/models/createenduserrequest.d.ts +0 -15
  350. package/esm/models/createenduserrequest.js +0 -13
  351. package/esm/models/enduserresponse.d.ts +0 -11
  352. package/esm/models/enduserresponse.js +0 -15
  353. package/esm/models/listendusersresponse.d.ts +0 -15
  354. package/esm/models/listendusersresponse.js +0 -21
  355. package/esm/models/operations/createenduser.js +0 -23
  356. package/esm/models/operations/listendusers.js +0 -38
  357. package/esm/models/operations/updateenduser.js +0 -24
  358. package/esm/models/updateenduserrequest.d.ts +0 -15
  359. package/esm/models/updateenduserrequest.js +0 -18
@@ -62,8 +62,10 @@ export class APIKeys extends ClientSDK {
62
62
  * @remarks
63
63
  * Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
64
64
  *
65
+ * Set `workspace_id` to move the key to another workspace.
66
+ *
65
67
  * <Warning>
66
- * 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`.
68
+ * 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`.
67
69
  * </Warning>
68
70
  */
69
71
  async update(request, options) {
@@ -1,4 +1,6 @@
1
+ import { EventStream } from "../lib/event-streams.js";
1
2
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
3
+ import * as models from "../models/index.js";
2
4
  import * as operations from "../models/operations/index.js";
3
5
  export declare class BetaResponses extends ClientSDK {
4
6
  /**
@@ -11,12 +13,12 @@ export declare class BetaResponses extends ClientSDK {
11
13
  responsesRequest: {
12
14
  stream?: false | undefined;
13
15
  };
14
- }, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
16
+ }, options?: RequestOptions): Promise<models.OpenResponsesResult>;
15
17
  send(request: operations.CreateResponsesRequest & {
16
18
  responsesRequest: {
17
19
  stream: true;
18
20
  };
19
- }, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
21
+ }, options?: RequestOptions): Promise<EventStream<models.StreamEvents>>;
20
22
  send(request: operations.CreateResponsesRequest, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
21
23
  }
22
24
  //# sourceMappingURL=betaresponses.d.ts.map
package/esm/sdk/chat.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import { EventStream } from "../lib/event-streams.js";
1
2
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
3
+ import * as models from "../models/index.js";
2
4
  import * as operations from "../models/operations/index.js";
3
5
  export declare class Chat extends ClientSDK {
4
6
  /**
@@ -11,12 +13,12 @@ export declare class Chat extends ClientSDK {
11
13
  chatRequest: {
12
14
  stream?: false | undefined;
13
15
  };
14
- }, options?: RequestOptions): Promise<operations.SendChatCompletionRequestResponse>;
16
+ }, options?: RequestOptions): Promise<models.ChatResult>;
15
17
  send(request: operations.SendChatCompletionRequestRequest & {
16
18
  chatRequest: {
17
19
  stream: true;
18
20
  };
19
- }, options?: RequestOptions): Promise<operations.SendChatCompletionRequestResponse>;
21
+ }, options?: RequestOptions): Promise<EventStream<models.ChatStreamChunk>>;
20
22
  send(request: operations.SendChatCompletionRequestRequest, options?: RequestOptions): Promise<operations.SendChatCompletionRequestResponse>;
21
23
  }
22
24
  //# sourceMappingURL=chat.d.ts.map
@@ -4,41 +4,41 @@ import * as operations from "../models/operations/index.js";
4
4
  import { PageIterator } from "../types/operations.js";
5
5
  export declare class EndUsers extends ClientSDK {
6
6
  /**
7
- * List registered end users
7
+ * List registered external users
8
8
  *
9
9
  * @remarks
10
10
  * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
11
11
  */
12
- list(request?: operations.ListEndUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListEndUsersResponse, {
12
+ list(request?: operations.ListExternalUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListExternalUsersResponse, {
13
13
  offset: number;
14
14
  }>>;
15
15
  /**
16
- * Register an end user
16
+ * Register an external user
17
17
  *
18
18
  * @remarks
19
19
  * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
20
  */
21
- create(request: operations.CreateEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
21
+ create(request: operations.CreateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
22
22
  /**
23
- * Deactivate a registered end user
23
+ * Deactivate a registered external user
24
24
  *
25
25
  * @remarks
26
26
  * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
27
27
  */
28
- delete(request: operations.DeleteEndUserRequest, options?: RequestOptions): Promise<void>;
28
+ delete(request: operations.DeleteExternalUserRequest, options?: RequestOptions): Promise<void>;
29
29
  /**
30
- * Get a registered end user
30
+ * Get a registered external user
31
31
  *
32
32
  * @remarks
33
33
  * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
34
34
  */
35
- get(request: operations.GetEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
35
+ get(request: operations.GetExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
36
36
  /**
37
- * Update a registered end user
37
+ * Update a registered external user
38
38
  *
39
39
  * @remarks
40
40
  * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
41
41
  */
42
- update(request: operations.UpdateEndUserRequest, options?: RequestOptions): Promise<models.EndUserResponse>;
42
+ update(request: operations.UpdateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
43
43
  }
44
44
  //# sourceMappingURL=endusers.d.ts.map
@@ -2,59 +2,59 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: 8e12697ee658
4
4
  */
5
- import { endUsersCreate } from "../funcs/endUsersCreate.js";
6
- import { endUsersDelete } from "../funcs/endUsersDelete.js";
7
- import { endUsersGet } from "../funcs/endUsersGet.js";
8
- import { endUsersList } from "../funcs/endUsersList.js";
9
- import { endUsersUpdate } from "../funcs/endUsersUpdate.js";
5
+ import { externalUsersCreate } from "../funcs/externalUsersCreate.js";
6
+ import { externalUsersDelete } from "../funcs/externalUsersDelete.js";
7
+ import { externalUsersGet } from "../funcs/externalUsersGet.js";
8
+ import { externalUsersList } from "../funcs/externalUsersList.js";
9
+ import { externalUsersUpdate } from "../funcs/externalUsersUpdate.js";
10
10
  import { ClientSDK } from "../lib/sdks.js";
11
11
  import { unwrapAsync } from "../types/fp.js";
12
12
  import { unwrapResultIterator } from "../types/operations.js";
13
13
  export class EndUsers extends ClientSDK {
14
14
  /**
15
- * List registered end users
15
+ * List registered external users
16
16
  *
17
17
  * @remarks
18
18
  * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
19
  */
20
20
  async list(request, options) {
21
- return unwrapResultIterator(endUsersList(this, request, options));
21
+ return unwrapResultIterator(externalUsersList(this, request, options));
22
22
  }
23
23
  /**
24
- * Register an end user
24
+ * Register an external user
25
25
  *
26
26
  * @remarks
27
27
  * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
28
28
  */
29
29
  async create(request, options) {
30
- return unwrapAsync(endUsersCreate(this, request, options));
30
+ return unwrapAsync(externalUsersCreate(this, request, options));
31
31
  }
32
32
  /**
33
- * Deactivate a registered end user
33
+ * Deactivate a registered external user
34
34
  *
35
35
  * @remarks
36
36
  * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
37
37
  */
38
38
  async delete(request, options) {
39
- return unwrapAsync(endUsersDelete(this, request, options));
39
+ return unwrapAsync(externalUsersDelete(this, request, options));
40
40
  }
41
41
  /**
42
- * Get a registered end user
42
+ * Get a registered external user
43
43
  *
44
44
  * @remarks
45
45
  * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
46
46
  */
47
47
  async get(request, options) {
48
- return unwrapAsync(endUsersGet(this, request, options));
48
+ return unwrapAsync(externalUsersGet(this, request, options));
49
49
  }
50
50
  /**
51
- * Update a registered end user
51
+ * Update a registered external user
52
52
  *
53
53
  * @remarks
54
54
  * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
55
55
  */
56
56
  async update(request, options) {
57
- return unwrapAsync(endUsersUpdate(this, request, options));
57
+ return unwrapAsync(externalUsersUpdate(this, request, options));
58
58
  }
59
59
  }
60
60
  //# sourceMappingURL=endusers.js.map
@@ -0,0 +1,44 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ import { PageIterator } from "../types/operations.js";
5
+ export declare class ExternalUsers extends ClientSDK {
6
+ /**
7
+ * List registered external users
8
+ *
9
+ * @remarks
10
+ * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
11
+ */
12
+ list(request?: operations.ListExternalUsersRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListExternalUsersResponse, {
13
+ offset: number;
14
+ }>>;
15
+ /**
16
+ * Register an external user
17
+ *
18
+ * @remarks
19
+ * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
+ */
21
+ create(request: operations.CreateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
22
+ /**
23
+ * Deactivate a registered external user
24
+ *
25
+ * @remarks
26
+ * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
27
+ */
28
+ delete(request: operations.DeleteExternalUserRequest, options?: RequestOptions): Promise<void>;
29
+ /**
30
+ * Get a registered external user
31
+ *
32
+ * @remarks
33
+ * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
34
+ */
35
+ get(request: operations.GetExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
36
+ /**
37
+ * Update a registered external user
38
+ *
39
+ * @remarks
40
+ * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
41
+ */
42
+ update(request: operations.UpdateExternalUserRequest, options?: RequestOptions): Promise<models.ExternalUserResponse>;
43
+ }
44
+ //# sourceMappingURL=externalusers.d.ts.map
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8b2b4b6306c5
4
+ */
5
+ import { externalUsersCreate } from "../funcs/externalUsersCreate.js";
6
+ import { externalUsersDelete } from "../funcs/externalUsersDelete.js";
7
+ import { externalUsersGet } from "../funcs/externalUsersGet.js";
8
+ import { externalUsersList } from "../funcs/externalUsersList.js";
9
+ import { externalUsersUpdate } from "../funcs/externalUsersUpdate.js";
10
+ import { ClientSDK } from "../lib/sdks.js";
11
+ import { unwrapAsync } from "../types/fp.js";
12
+ import { unwrapResultIterator } from "../types/operations.js";
13
+ export class ExternalUsers extends ClientSDK {
14
+ /**
15
+ * List registered external users
16
+ *
17
+ * @remarks
18
+ * List registrations belonging to the authenticated organization. Inactive registrations are excluded by default. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
+ */
20
+ async list(request, options) {
21
+ return unwrapResultIterator(externalUsersList(this, request, options));
22
+ }
23
+ /**
24
+ * Register an external user
25
+ *
26
+ * @remarks
27
+ * Register a caller-supplied tracking ID under the authenticated organization. No login account, policy, or credentials are created. [Management key](/docs/guides/overview/auth/management-api-keys) required.
28
+ */
29
+ async create(request, options) {
30
+ return unwrapAsync(externalUsersCreate(this, request, options));
31
+ }
32
+ /**
33
+ * Deactivate a registered external user
34
+ *
35
+ * @remarks
36
+ * Soft-deactivate a registration while retaining its tracking ID. Repeat deactivation succeeds. This does not block inference; reactivate through PATCH. [Management key](/docs/guides/overview/auth/management-api-keys) required.
37
+ */
38
+ async delete(request, options) {
39
+ return unwrapAsync(externalUsersDelete(this, request, options));
40
+ }
41
+ /**
42
+ * Get a registered external user
43
+ *
44
+ * @remarks
45
+ * Retrieve an active or inactive registration by its URL-encoded, caller-supplied tracking ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
46
+ */
47
+ async get(request, options) {
48
+ return unwrapAsync(externalUsersGet(this, request, options));
49
+ }
50
+ /**
51
+ * Update a registered external user
52
+ *
53
+ * @remarks
54
+ * Update registration state without changing identity. State changes do not enforce inference access. [Management key](/docs/guides/overview/auth/management-api-keys) required.
55
+ */
56
+ async update(request, options) {
57
+ return unwrapAsync(externalUsersUpdate(this, request, options));
58
+ }
59
+ }
60
+ //# sourceMappingURL=externalusers.js.map
@@ -1,3 +1,4 @@
1
+ import { EventStream } from "../lib/event-streams.js";
1
2
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
3
  import * as models from "../models/index.js";
3
4
  import * as operations from "../models/operations/index.js";
@@ -12,12 +13,12 @@ export declare class Images extends ClientSDK {
12
13
  imageGenerationRequest: {
13
14
  stream?: false | undefined;
14
15
  };
15
- }, options?: RequestOptions): Promise<operations.CreateImagesResponse>;
16
+ }, options?: RequestOptions): Promise<models.ImageGenerationResponse>;
16
17
  generate(request: operations.CreateImagesRequest & {
17
18
  imageGenerationRequest: {
18
19
  stream: true;
19
20
  };
20
- }, options?: RequestOptions): Promise<operations.CreateImagesResponse>;
21
+ }, options?: RequestOptions): Promise<EventStream<models.ImageStreamingResponseData>>;
21
22
  generate(request: operations.CreateImagesRequest, options?: RequestOptions): Promise<operations.CreateImagesResponse>;
22
23
  /**
23
24
  * List image generation models
@@ -37,11 +37,18 @@ export declare class Interns extends ClientSDK {
37
37
  * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
38
38
  */
39
39
  updateIntern(request: operations.UpdateInternRequest, options?: RequestOptions): Promise<models.Intern>;
40
+ /**
41
+ * List an intern's connections
42
+ *
43
+ * @remarks
44
+ * Returns the Slack, GitHub, Google Workspace and MCP connections one visible intern can reach, and the shared ones switched off for it or disabled for the workspace. An OAuth grant needs `vault:read`, because the list names members' personal accounts; without it the route answers 403 `insufficient_scope`. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
45
+ */
46
+ getInternConnections(request: operations.GetInternConnectionsRequest, options?: RequestOptions): Promise<models.InternConnectionList>;
40
47
  /**
41
48
  * Get an intern's daemon access
42
49
  *
43
50
  * @remarks
44
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
51
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: only an OAuth-token caller (`ori login --oidc`) may read it, the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. API keys get 403 `personal_identity_required`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
45
52
  */
46
53
  getInternDaemon(request: operations.GetInternDaemonRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
47
54
  /**
@@ -53,6 +60,29 @@ export declare class Interns extends ClientSDK {
53
60
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
54
61
  */
55
62
  getInternDaemonAccess(request: operations.GetInternDaemonAccessRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
63
+ /**
64
+ * Sign a daemon request with the caller's identity (deprecated alias)
65
+ *
66
+ * @remarks
67
+ * Deprecated alias of `POST /interns/{internId}/daemon/sign` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
68
+ *
69
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
70
+ */
71
+ signInternDaemonAccessRequest(request: operations.SignInternDaemonAccessRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonAccessRequestResponse>;
72
+ /**
73
+ * Sign a daemon request with the caller's identity
74
+ *
75
+ * @remarks
76
+ * Signs the SHA-256 digest of one request the CLI is about to send to the intern daemon, binding it to the intern and to the signed-in member so personal connections resolve. Only an OAuth session from `ori login --oidc` whose grant carries `vault:read` can sign: an API key is refused with 403 because it names no person, and an `interns`-only grant is refused with 403 because a proof releases that user's personal connections. The route is behind the same gate as chat and counts against the chat turn limiter. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
77
+ */
78
+ signInternDaemonRequest(request: operations.SignInternDaemonRequestRequest, options?: RequestOptions): Promise<operations.SignInternDaemonRequestResponse>;
79
+ /**
80
+ * Get an intern's icon
81
+ *
82
+ * @remarks
83
+ * Returns the icon image of one visible intern. Pass the intern's `icon_sha256` as `v` to receive a response that can be cached indefinitely. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
84
+ */
85
+ getInternIcon(request: operations.GetInternIconRequest, options?: RequestOptions): Promise<ReadableStream<Uint8Array>>;
56
86
  /**
57
87
  * Provision an intern
58
88
  *
@@ -6,11 +6,15 @@ import { internsChat } from "../funcs/internsChat.js";
6
6
  import { internsCreateIntern } from "../funcs/internsCreateIntern.js";
7
7
  import { internsDeleteIntern } from "../funcs/internsDeleteIntern.js";
8
8
  import { internsGetIntern } from "../funcs/internsGetIntern.js";
9
+ import { internsGetInternConnections } from "../funcs/internsGetInternConnections.js";
9
10
  import { internsGetInternDaemon } from "../funcs/internsGetInternDaemon.js";
10
11
  import { internsGetInternDaemonAccess } from "../funcs/internsGetInternDaemonAccess.js";
12
+ import { internsGetInternIcon } from "../funcs/internsGetInternIcon.js";
11
13
  import { internsInvoke } from "../funcs/internsInvoke.js";
12
14
  import { internsListInterns } from "../funcs/internsListInterns.js";
13
15
  import { internsProvisionIntern } from "../funcs/internsProvisionIntern.js";
16
+ import { internsSignInternDaemonAccessRequest } from "../funcs/internsSignInternDaemonAccessRequest.js";
17
+ import { internsSignInternDaemonRequest } from "../funcs/internsSignInternDaemonRequest.js";
14
18
  import { internsSuspendIntern } from "../funcs/internsSuspendIntern.js";
15
19
  import { internsUpdateIntern } from "../funcs/internsUpdateIntern.js";
16
20
  import { ClientSDK } from "../lib/sdks.js";
@@ -61,11 +65,20 @@ export class Interns extends ClientSDK {
61
65
  async updateIntern(request, options) {
62
66
  return unwrapAsync(internsUpdateIntern(this, request, options));
63
67
  }
68
+ /**
69
+ * List an intern's connections
70
+ *
71
+ * @remarks
72
+ * Returns the Slack, GitHub, Google Workspace and MCP connections one visible intern can reach, and the shared ones switched off for it or disabled for the workspace. An OAuth grant needs `vault:read`, because the list names members' personal accounts; without it the route answers 403 `insufficient_scope`. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
73
+ */
74
+ async getInternConnections(request, options) {
75
+ return unwrapAsync(internsGetInternConnections(this, request, options));
76
+ }
64
77
  /**
65
78
  * Get an intern's daemon access
66
79
  *
67
80
  * @remarks
68
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
81
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: only an OAuth-token caller (`ori login --oidc`) may read it, the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. API keys get 403 `personal_identity_required`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
69
82
  */
70
83
  async getInternDaemon(request, options) {
71
84
  return unwrapAsync(internsGetInternDaemon(this, request, options));
@@ -81,6 +94,35 @@ export class Interns extends ClientSDK {
81
94
  async getInternDaemonAccess(request, options) {
82
95
  return unwrapAsync(internsGetInternDaemonAccess(this, request, options));
83
96
  }
97
+ /**
98
+ * Sign a daemon request with the caller's identity (deprecated alias)
99
+ *
100
+ * @remarks
101
+ * Deprecated alias of `POST /interns/{internId}/daemon/sign` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
102
+ *
103
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
104
+ */
105
+ async signInternDaemonAccessRequest(request, options) {
106
+ return unwrapAsync(internsSignInternDaemonAccessRequest(this, request, options));
107
+ }
108
+ /**
109
+ * Sign a daemon request with the caller's identity
110
+ *
111
+ * @remarks
112
+ * Signs the SHA-256 digest of one request the CLI is about to send to the intern daemon, binding it to the intern and to the signed-in member so personal connections resolve. Only an OAuth session from `ori login --oidc` whose grant carries `vault:read` can sign: an API key is refused with 403 because it names no person, and an `interns`-only grant is refused with 403 because a proof releases that user's personal connections. The route is behind the same gate as chat and counts against the chat turn limiter. The response is sent with `Cache-Control: no-store`. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
113
+ */
114
+ async signInternDaemonRequest(request, options) {
115
+ return unwrapAsync(internsSignInternDaemonRequest(this, request, options));
116
+ }
117
+ /**
118
+ * Get an intern's icon
119
+ *
120
+ * @remarks
121
+ * Returns the icon image of one visible intern. Pass the intern's `icon_sha256` as `v` to receive a response that can be cached indefinitely. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
122
+ */
123
+ async getInternIcon(request, options) {
124
+ return unwrapAsync(internsGetInternIcon(this, request, options));
125
+ }
84
126
  /**
85
127
  * Provision an intern
86
128
  *
@@ -62,7 +62,7 @@ export declare class PrivateEndpoints extends ClientSDK {
62
62
  * Set private endpoint pricing
63
63
  *
64
64
  * @remarks
65
- * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
65
+ * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy's default, even if it was set before. [Management key](/docs/guides/overview/auth/management-api-keys) required.
66
66
  */
67
67
  updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
68
68
  /**
@@ -91,7 +91,7 @@ export class PrivateEndpoints extends ClientSDK {
91
91
  * Set private endpoint pricing
92
92
  *
93
93
  * @remarks
94
- * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
94
+ * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. The body replaces the whole pricing object: omitting `cache_read` or `cache_write` reverts that rate to the provider pricing strategy's default, even if it was set before. [Management key](/docs/guides/overview/auth/management-api-keys) required.
95
95
  */
96
96
  async updatePricing(request, options) {
97
97
  return unwrapAsync(privateEndpointsUpdatePricing(this, request, options));
@@ -1,4 +1,6 @@
1
+ import { EventStream } from "../lib/event-streams.js";
1
2
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
3
+ import * as models from "../models/index.js";
2
4
  import * as operations from "../models/operations/index.js";
3
5
  export declare class Responses extends ClientSDK {
4
6
  /**
@@ -11,12 +13,12 @@ export declare class Responses extends ClientSDK {
11
13
  responsesRequest: {
12
14
  stream?: false | undefined;
13
15
  };
14
- }, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
16
+ }, options?: RequestOptions): Promise<models.OpenResponsesResult>;
15
17
  send(request: operations.CreateResponsesRequest & {
16
18
  responsesRequest: {
17
19
  stream: true;
18
20
  };
19
- }, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
21
+ }, options?: RequestOptions): Promise<EventStream<models.StreamEvents>>;
20
22
  send(request: operations.CreateResponsesRequest, options?: RequestOptions): Promise<operations.CreateResponsesResponse>;
21
23
  }
22
24
  //# sourceMappingURL=responses.d.ts.map
package/esm/sdk/sdk.d.ts CHANGED
@@ -14,6 +14,7 @@ import { Datasets } from "./datasets.js";
14
14
  import { Embeddings } from "./embeddings.js";
15
15
  import { Endpoints } from "./endpoints.js";
16
16
  import { EndUsers } from "./endusers.js";
17
+ import { ExternalUsers } from "./externalusers.js";
17
18
  import { Files } from "./files.js";
18
19
  import { Generations } from "./generations.js";
19
20
  import { Guardrails } from "./guardrails.js";
@@ -71,10 +72,12 @@ export declare class OpenRouter extends ClientSDK {
71
72
  get datasets(): Datasets;
72
73
  private _embeddings?;
73
74
  get embeddings(): Embeddings;
74
- private _endUsers?;
75
- get endUsers(): EndUsers;
76
75
  private _endpoints?;
77
76
  get endpoints(): Endpoints;
77
+ private _externalUsers?;
78
+ get externalUsers(): ExternalUsers;
79
+ private _endUsers?;
80
+ get endUsers(): EndUsers;
78
81
  private _files?;
79
82
  get files(): Files;
80
83
  private _generations?;
package/esm/sdk/sdk.js CHANGED
@@ -18,6 +18,7 @@ import { Datasets } from "./datasets.js";
18
18
  import { Embeddings } from "./embeddings.js";
19
19
  import { Endpoints } from "./endpoints.js";
20
20
  import { EndUsers } from "./endusers.js";
21
+ import { ExternalUsers } from "./externalusers.js";
21
22
  import { Files } from "./files.js";
22
23
  import { Generations } from "./generations.js";
23
24
  import { Guardrails } from "./guardrails.js";
@@ -87,12 +88,15 @@ export class OpenRouter extends ClientSDK {
87
88
  get embeddings() {
88
89
  return (this._embeddings ?? (this._embeddings = new Embeddings(this._options)));
89
90
  }
90
- get endUsers() {
91
- return (this._endUsers ?? (this._endUsers = new EndUsers(this._options)));
92
- }
93
91
  get endpoints() {
94
92
  return (this._endpoints ?? (this._endpoints = new Endpoints(this._options)));
95
93
  }
94
+ get externalUsers() {
95
+ return (this._externalUsers ?? (this._externalUsers = new ExternalUsers(this._options)));
96
+ }
97
+ get endUsers() {
98
+ return (this._endUsers ?? (this._endUsers = new EndUsers(this._options)));
99
+ }
96
100
  get files() {
97
101
  return (this._files ?? (this._files = new Files(this._options)));
98
102
  }
@@ -2,6 +2,13 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as models from "../models/index.js";
3
3
  import * as operations from "../models/operations/index.js";
4
4
  export declare class Vault extends ClientSDK {
5
+ /**
6
+ * List the connections an intern can use
7
+ *
8
+ * @remarks
9
+ * Lists the connections in scope for the intern, by the key of their card on the dashboard's Connections tab: `github`, `slack`, `google`, a catalog MCP server such as `linear` or `notion`, or `mcp:<host>` for a custom MCP server. A connection is listed when it is stored, enabled, and not turned off or hidden for this intern, as the Connections tab lists it; whether its last test passed is not part of the rule. `ori features add` checks a feature's `ori.requires.connections` against this list. Keys only, never credentials. Returns 404 for an intern the key cannot see. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
10
+ */
11
+ listInternConnections(request: operations.ListInternConnectionsRequest, options?: RequestOptions): Promise<operations.ListInternConnectionsResponse>;
5
12
  /**
6
13
  * List the secrets an intern receives
7
14
  *
package/esm/sdk/vault.js CHANGED
@@ -5,6 +5,7 @@
5
5
  import { vaultCopyVaultSecretsToIntern } from "../funcs/vaultCopyVaultSecretsToIntern.js";
6
6
  import { vaultDeleteInternVaultSecret } from "../funcs/vaultDeleteInternVaultSecret.js";
7
7
  import { vaultDeleteVaultSecret } from "../funcs/vaultDeleteVaultSecret.js";
8
+ import { vaultListInternConnections } from "../funcs/vaultListInternConnections.js";
8
9
  import { vaultListInternEffectiveVaultSecrets } from "../funcs/vaultListInternEffectiveVaultSecrets.js";
9
10
  import { vaultListInternVaultSecrets } from "../funcs/vaultListInternVaultSecrets.js";
10
11
  import { vaultListVaultSecrets } from "../funcs/vaultListVaultSecrets.js";
@@ -13,6 +14,15 @@ import { vaultStoreVaultSecret } from "../funcs/vaultStoreVaultSecret.js";
13
14
  import { ClientSDK } from "../lib/sdks.js";
14
15
  import { unwrapAsync } from "../types/fp.js";
15
16
  export class Vault extends ClientSDK {
17
+ /**
18
+ * List the connections an intern can use
19
+ *
20
+ * @remarks
21
+ * Lists the connections in scope for the intern, by the key of their card on the dashboard's Connections tab: `github`, `slack`, `google`, a catalog MCP server such as `linear` or `notion`, or `mcp:<host>` for a custom MCP server. A connection is listed when it is stored, enabled, and not turned off or hidden for this intern, as the Connections tab lists it; whether its last test passed is not part of the rule. `ori features add` checks a feature's `ori.requires.connections` against this list. Keys only, never credentials. Returns 404 for an intern the key cannot see. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
22
+ */
23
+ async listInternConnections(request, options) {
24
+ return unwrapAsync(vaultListInternConnections(this, request, options));
25
+ }
16
26
  /**
17
27
  * List the secrets an intern receives
18
28
  *
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.4.25",
5
+ "version": "1.5.0",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.4.25",
3
+ "version": "1.5.0",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "compile": "tsc && node scripts/unbarrel-imports.js",
77
- "test": "vitest --run --project unit",
78
- "test:watch": "vitest --watch --project unit",
79
76
  "typecheck": "tsc --noEmit",
80
77
  "typecheck:transit": "exit 0",
81
- "postinstall": "node scripts/check-types.js || true",
82
78
  "prepare": "npm run build",
79
+ "test": "vitest --run --project unit",
83
80
  "test:e2e": "vitest --run --project e2e",
84
- "test:transit": "exit 0"
81
+ "test:transit": "exit 0",
82
+ "test:watch": "vitest --watch --project unit",
83
+ "compile": "tsc && node scripts/unbarrel-imports.js",
84
+ "postinstall": "node scripts/check-types.js || true"
85
85
  },
86
86
  "peerDependencies": {
87
87