@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
@@ -13,7 +13,7 @@ export type WebFetchServerToolConfig = {
13
13
  */
14
14
  blockedDomains?: Array<string> | undefined;
15
15
  /**
16
- * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape (requires BYOK). "parallel" uses the Parallel extract API.
16
+ * Which fetch engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in fetch. "exa" uses Exa Contents API. "openrouter" uses direct HTTP fetch. "firecrawl" uses Firecrawl scrape. "parallel" uses the Parallel extract API.
17
17
  */
18
18
  engine?: WebFetchEngineEnum | undefined;
19
19
  /**
@@ -10,7 +10,7 @@ export type WebSearchConfig = {
10
10
  */
11
11
  allowedDomains?: Array<string> | undefined;
12
12
  /**
13
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
13
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
14
14
  */
15
15
  engine?: WebSearchEngineEnum | undefined;
16
16
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  /**
4
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
4
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
5
5
  */
6
6
  export declare const WebSearchEngineEnum: {
7
7
  readonly Native: "native";
@@ -12,7 +12,7 @@ export declare const WebSearchEngineEnum: {
12
12
  readonly Auto: "auto";
13
13
  };
14
14
  /**
15
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
15
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
16
16
  */
17
17
  export type WebSearchEngineEnum = OpenEnum<typeof WebSearchEngineEnum>;
18
18
  /** @internal */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import * as openEnums from "../types/enums.js";
6
6
  /**
7
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
7
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
8
8
  */
9
9
  export const WebSearchEngineEnum = {
10
10
  Native: "native",
@@ -17,7 +17,7 @@ export type WebSearchServerToolType = ClosedEnum<typeof WebSearchServerToolType>
17
17
  */
18
18
  export type WebSearchServerTool = {
19
19
  /**
20
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
20
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
21
21
  */
22
22
  engine?: WebSearchEngineEnum | undefined;
23
23
  filters?: WebSearchDomainFilter | null | undefined;
@@ -13,7 +13,7 @@ export type WebSearchServerToolConfig = {
13
13
  */
14
14
  allowedDomains?: Array<string> | undefined;
15
15
  /**
16
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
16
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
17
17
  */
18
18
  engine?: WebSearchEngineEnum | undefined;
19
19
  /**
@@ -5,7 +5,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
7
7
  */
8
- export declare const ResetInterval: {
8
+ export declare const WorkspaceBudgetResetInterval: {
9
9
  readonly Daily: "daily";
10
10
  readonly Weekly: "weekly";
11
11
  readonly Monthly: "monthly";
@@ -13,7 +13,7 @@ export declare const ResetInterval: {
13
13
  /**
14
14
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
15
15
  */
16
- export type ResetInterval = OpenEnum<typeof ResetInterval>;
16
+ export type WorkspaceBudgetResetInterval = OpenEnum<typeof WorkspaceBudgetResetInterval>;
17
17
  export type WorkspaceBudget = {
18
18
  /**
19
19
  * ISO 8601 timestamp of when the budget was created
@@ -30,7 +30,7 @@ export type WorkspaceBudget = {
30
30
  /**
31
31
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
32
32
  */
33
- resetInterval: ResetInterval | null;
33
+ resetInterval: WorkspaceBudgetResetInterval | null;
34
34
  /**
35
35
  * ISO 8601 timestamp of when the budget was last updated
36
36
  */
@@ -41,7 +41,7 @@ export type WorkspaceBudget = {
41
41
  workspaceId: string;
42
42
  };
43
43
  /** @internal */
44
- export declare const ResetInterval$inboundSchema: z.ZodType<ResetInterval, unknown>;
44
+ export declare const WorkspaceBudgetResetInterval$inboundSchema: z.ZodType<WorkspaceBudgetResetInterval, unknown>;
45
45
  /** @internal */
46
46
  export declare const WorkspaceBudget$inboundSchema: z.ZodType<WorkspaceBudget, unknown>;
47
47
  export declare function workspaceBudgetFromJSON(jsonString: string): SafeParseResult<WorkspaceBudget, SDKValidationError>;
@@ -9,19 +9,19 @@ import * as openEnums from "../types/enums.js";
9
9
  /**
10
10
  * Interval at which spend resets. Null means a lifetime (one-time) budget.
11
11
  */
12
- export const ResetInterval = {
12
+ export const WorkspaceBudgetResetInterval = {
13
13
  Daily: "daily",
14
14
  Weekly: "weekly",
15
15
  Monthly: "monthly",
16
16
  };
17
17
  /** @internal */
18
- export const ResetInterval$inboundSchema = openEnums.inboundSchema(ResetInterval);
18
+ export const WorkspaceBudgetResetInterval$inboundSchema = openEnums.inboundSchema(WorkspaceBudgetResetInterval);
19
19
  /** @internal */
20
20
  export const WorkspaceBudget$inboundSchema = z.object({
21
21
  created_at: z.string(),
22
22
  id: z.string(),
23
23
  limit_usd: z.number(),
24
- reset_interval: z.nullable(ResetInterval$inboundSchema),
24
+ reset_interval: z.nullable(WorkspaceBudgetResetInterval$inboundSchema),
25
25
  updated_at: z.string(),
26
26
  workspace_id: z.string(),
27
27
  }).transform((v) => {
@@ -42,8 +42,10 @@ export declare class APIKeys extends ClientSDK {
42
42
  * @remarks
43
43
  * Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
44
44
  *
45
+ * Set `workspace_id` to move the key to another workspace.
46
+ *
45
47
  * <Warning>
46
- * You can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
48
+ * The request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
47
49
  * </Warning>
48
50
  */
49
51
  update(request: operations.UpdateKeysRequest, options?: RequestOptions): Promise<operations.UpdateKeysResponse>;
@@ -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));