@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
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: a59cb5362b77
3
+ * @generated-id: 47129d1d67c4
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  /** @internal */
8
- export const GetEndUserRequest$outboundSchema = z.object({
8
+ export const GetExternalUserRequest$outboundSchema = z.object({
9
9
  httpReferer: z.string().optional(),
10
10
  appTitle: z.string().optional(),
11
11
  appCategories: z.string().optional(),
@@ -15,7 +15,7 @@ export const GetEndUserRequest$outboundSchema = z.object({
15
15
  httpReferer: "HTTP-Referer",
16
16
  });
17
17
  });
18
- export function getEndUserRequestToJSON(getEndUserRequest) {
19
- return JSON.stringify(GetEndUserRequest$outboundSchema.parse(getEndUserRequest));
18
+ export function getExternalUserRequestToJSON(getExternalUserRequest) {
19
+ return JSON.stringify(GetExternalUserRequest$outboundSchema.parse(getExternalUserRequest));
20
20
  }
21
- //# sourceMappingURL=getenduser.js.map
21
+ //# sourceMappingURL=getexternaluser.js.map
@@ -1,5 +1,5 @@
1
1
  import * as z from "zod/v4";
2
- export type DeleteEndUserGlobals = {
2
+ export type GetInternConnectionsGlobals = {
3
3
  /**
4
4
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
5
  *
@@ -20,7 +20,7 @@ export type DeleteEndUserGlobals = {
20
20
  */
21
21
  appCategories?: string | undefined;
22
22
  };
23
- export type DeleteEndUserRequest = {
23
+ export type GetInternConnectionsRequest = {
24
24
  /**
25
25
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
26
  *
@@ -41,18 +41,18 @@ export type DeleteEndUserRequest = {
41
41
  */
42
42
  appCategories?: string | undefined;
43
43
  /**
44
- * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
44
+ * ID of an intern visible to the authenticated API key.
45
45
  */
46
- user: string;
46
+ internId: string;
47
47
  };
48
48
  /** @internal */
49
- export type DeleteEndUserRequest$Outbound = {
49
+ export type GetInternConnectionsRequest$Outbound = {
50
50
  "HTTP-Referer"?: string | undefined;
51
51
  appTitle?: string | undefined;
52
52
  appCategories?: string | undefined;
53
- user: string;
53
+ internId: string;
54
54
  };
55
55
  /** @internal */
56
- export declare const DeleteEndUserRequest$outboundSchema: z.ZodType<DeleteEndUserRequest$Outbound, DeleteEndUserRequest>;
57
- export declare function deleteEndUserRequestToJSON(deleteEndUserRequest: DeleteEndUserRequest): string;
58
- //# sourceMappingURL=deleteenduser.d.ts.map
56
+ export declare const GetInternConnectionsRequest$outboundSchema: z.ZodType<GetInternConnectionsRequest$Outbound, GetInternConnectionsRequest>;
57
+ export declare function getInternConnectionsRequestToJSON(getInternConnectionsRequest: GetInternConnectionsRequest): string;
58
+ //# sourceMappingURL=getinternconnections.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e3ab1398423c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetInternConnectionsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ internId: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function getInternConnectionsRequestToJSON(getInternConnectionsRequest) {
19
+ return JSON.stringify(GetInternConnectionsRequest$outboundSchema.parse(getInternConnectionsRequest));
20
+ }
21
+ //# sourceMappingURL=getinternconnections.js.map
@@ -1,5 +1,5 @@
1
1
  import * as z from "zod/v4";
2
- export type GetEndUserGlobals = {
2
+ export type GetInternIconGlobals = {
3
3
  /**
4
4
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
5
  *
@@ -20,7 +20,7 @@ export type GetEndUserGlobals = {
20
20
  */
21
21
  appCategories?: string | undefined;
22
22
  };
23
- export type GetEndUserRequest = {
23
+ export type GetInternIconRequest = {
24
24
  /**
25
25
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
26
  *
@@ -41,18 +41,23 @@ export type GetEndUserRequest = {
41
41
  */
42
42
  appCategories?: string | undefined;
43
43
  /**
44
- * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
44
+ * ID of an intern visible to the authenticated API key.
45
45
  */
46
- user: string;
46
+ internId: string;
47
+ /**
48
+ * The `icon_sha256` the caller expects.
49
+ */
50
+ v?: string | undefined;
47
51
  };
48
52
  /** @internal */
49
- export type GetEndUserRequest$Outbound = {
53
+ export type GetInternIconRequest$Outbound = {
50
54
  "HTTP-Referer"?: string | undefined;
51
55
  appTitle?: string | undefined;
52
56
  appCategories?: string | undefined;
53
- user: string;
57
+ internId: string;
58
+ v?: string | undefined;
54
59
  };
55
60
  /** @internal */
56
- export declare const GetEndUserRequest$outboundSchema: z.ZodType<GetEndUserRequest$Outbound, GetEndUserRequest>;
57
- export declare function getEndUserRequestToJSON(getEndUserRequest: GetEndUserRequest): string;
58
- //# sourceMappingURL=getenduser.d.ts.map
61
+ export declare const GetInternIconRequest$outboundSchema: z.ZodType<GetInternIconRequest$Outbound, GetInternIconRequest>;
62
+ export declare function getInternIconRequestToJSON(getInternIconRequest: GetInternIconRequest): string;
63
+ //# sourceMappingURL=getinternicon.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a41b9b092844
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const GetInternIconRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ internId: z.string(),
13
+ v: z.string().optional(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function getInternIconRequestToJSON(getInternIconRequest) {
20
+ return JSON.stringify(GetInternIconRequest$outboundSchema.parse(getInternIconRequest));
21
+ }
22
+ //# sourceMappingURL=getinternicon.js.map
@@ -99,6 +99,10 @@ export type GetKeyData = {
99
99
  * Human-readable label for the API key
100
100
  */
101
101
  label: string;
102
+ /**
103
+ * ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025
104
+ */
105
+ lastUsedAt: Date | null;
102
106
  /**
103
107
  * Spending limit for the API key in USD
104
108
  */
@@ -34,6 +34,7 @@ export const GetKeyData$inboundSchema = z
34
34
  hash: z.string(),
35
35
  include_byok_in_limit: z.boolean(),
36
36
  label: z.string(),
37
+ last_used_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))),
37
38
  limit: z.nullable(z.number()),
38
39
  limit_remaining: z.nullable(z.number()),
39
40
  limit_reset: z.nullable(z.string()),
@@ -55,6 +56,7 @@ export const GetKeyData$inboundSchema = z
55
56
  "expires_at": "expiresAt",
56
57
  "external_user": "externalUser",
57
58
  "include_byok_in_limit": "includeByokInLimit",
59
+ "last_used_at": "lastUsedAt",
58
60
  "limit_remaining": "limitRemaining",
59
61
  "limit_reset": "limitReset",
60
62
  "updated_at": "updatedAt",
@@ -14,7 +14,7 @@ export * from "./createauthkeyscode.js";
14
14
  export * from "./createbatches.js";
15
15
  export * from "./createbyokkey.js";
16
16
  export * from "./createembeddings.js";
17
- export * from "./createenduser.js";
17
+ export * from "./createexternaluser.js";
18
18
  export * from "./createguardrail.js";
19
19
  export * from "./createimages.js";
20
20
  export * from "./createintern.js";
@@ -35,7 +35,7 @@ export * from "./createvideos.js";
35
35
  export * from "./createworkspace.js";
36
36
  export * from "./deletebatch.js";
37
37
  export * from "./deletebyokkey.js";
38
- export * from "./deleteenduser.js";
38
+ export * from "./deleteexternaluser.js";
39
39
  export * from "./deletefile.js";
40
40
  export * from "./deleteguardrail.js";
41
41
  export * from "./deleteintern.js";
@@ -60,13 +60,15 @@ export * from "./getbyokkey.js";
60
60
  export * from "./getcontainerfile.js";
61
61
  export * from "./getcredits.js";
62
62
  export * from "./getcurrentkey.js";
63
- export * from "./getenduser.js";
63
+ export * from "./getexternaluser.js";
64
64
  export * from "./getfilemetadata.js";
65
65
  export * from "./getgeneration.js";
66
66
  export * from "./getguardrail.js";
67
67
  export * from "./getintern.js";
68
+ export * from "./getinternconnections.js";
68
69
  export * from "./getinterndaemon.js";
69
70
  export * from "./getinterndaemonaccess.js";
71
+ export * from "./getinternicon.js";
70
72
  export * from "./getkey.js";
71
73
  export * from "./getmodel.js";
72
74
  export * from "./getmodels.js";
@@ -93,7 +95,7 @@ export * from "./listcontainerfiles.js";
93
95
  export * from "./listembeddingsmodels.js";
94
96
  export * from "./listendpoints.js";
95
97
  export * from "./listendpointszdr.js";
96
- export * from "./listendusers.js";
98
+ export * from "./listexternalusers.js";
97
99
  export * from "./listfiles.js";
98
100
  export * from "./listgenerationcontent.js";
99
101
  export * from "./listguardrailkeyassignments.js";
@@ -101,6 +103,7 @@ export * from "./listguardrailmemberassignments.js";
101
103
  export * from "./listguardrails.js";
102
104
  export * from "./listimagemodelendpoints.js";
103
105
  export * from "./listimagemodels.js";
106
+ export * from "./listinternconnections.js";
104
107
  export * from "./listinterneffectivevaultsecrets.js";
105
108
  export * from "./listinterns.js";
106
109
  export * from "./listinternvaultsecrets.js";
@@ -128,12 +131,14 @@ export * from "./promotecontainerfile.js";
128
131
  export * from "./provisionintern.js";
129
132
  export * from "./queryanalytics.js";
130
133
  export * from "./sendchatcompletionrequest.js";
134
+ export * from "./signinterndaemonaccessrequest.js";
135
+ export * from "./signinterndaemonrequest.js";
131
136
  export * from "./storeinternvaultsecret.js";
132
137
  export * from "./storevaultsecret.js";
133
138
  export * from "./submitgenerationfeedback.js";
134
139
  export * from "./suspendintern.js";
135
140
  export * from "./updatebyokkey.js";
136
- export * from "./updateenduser.js";
141
+ export * from "./updateexternaluser.js";
137
142
  export * from "./updateguardrail.js";
138
143
  export * from "./updateintern.js";
139
144
  export * from "./updatekeys.js";
@@ -18,7 +18,7 @@ export * from "./createauthkeyscode.js";
18
18
  export * from "./createbatches.js";
19
19
  export * from "./createbyokkey.js";
20
20
  export * from "./createembeddings.js";
21
- export * from "./createenduser.js";
21
+ export * from "./createexternaluser.js";
22
22
  export * from "./createguardrail.js";
23
23
  export * from "./createimages.js";
24
24
  export * from "./createintern.js";
@@ -39,7 +39,7 @@ export * from "./createvideos.js";
39
39
  export * from "./createworkspace.js";
40
40
  export * from "./deletebatch.js";
41
41
  export * from "./deletebyokkey.js";
42
- export * from "./deleteenduser.js";
42
+ export * from "./deleteexternaluser.js";
43
43
  export * from "./deletefile.js";
44
44
  export * from "./deleteguardrail.js";
45
45
  export * from "./deleteintern.js";
@@ -64,13 +64,15 @@ export * from "./getbyokkey.js";
64
64
  export * from "./getcontainerfile.js";
65
65
  export * from "./getcredits.js";
66
66
  export * from "./getcurrentkey.js";
67
- export * from "./getenduser.js";
67
+ export * from "./getexternaluser.js";
68
68
  export * from "./getfilemetadata.js";
69
69
  export * from "./getgeneration.js";
70
70
  export * from "./getguardrail.js";
71
71
  export * from "./getintern.js";
72
+ export * from "./getinternconnections.js";
72
73
  export * from "./getinterndaemon.js";
73
74
  export * from "./getinterndaemonaccess.js";
75
+ export * from "./getinternicon.js";
74
76
  export * from "./getkey.js";
75
77
  export * from "./getmodel.js";
76
78
  export * from "./getmodels.js";
@@ -97,7 +99,7 @@ export * from "./listcontainerfiles.js";
97
99
  export * from "./listembeddingsmodels.js";
98
100
  export * from "./listendpoints.js";
99
101
  export * from "./listendpointszdr.js";
100
- export * from "./listendusers.js";
102
+ export * from "./listexternalusers.js";
101
103
  export * from "./listfiles.js";
102
104
  export * from "./listgenerationcontent.js";
103
105
  export * from "./listguardrailkeyassignments.js";
@@ -105,6 +107,7 @@ export * from "./listguardrailmemberassignments.js";
105
107
  export * from "./listguardrails.js";
106
108
  export * from "./listimagemodelendpoints.js";
107
109
  export * from "./listimagemodels.js";
110
+ export * from "./listinternconnections.js";
108
111
  export * from "./listinterneffectivevaultsecrets.js";
109
112
  export * from "./listinterns.js";
110
113
  export * from "./listinternvaultsecrets.js";
@@ -132,12 +135,14 @@ export * from "./promotecontainerfile.js";
132
135
  export * from "./provisionintern.js";
133
136
  export * from "./queryanalytics.js";
134
137
  export * from "./sendchatcompletionrequest.js";
138
+ export * from "./signinterndaemonaccessrequest.js";
139
+ export * from "./signinterndaemonrequest.js";
135
140
  export * from "./storeinternvaultsecret.js";
136
141
  export * from "./storevaultsecret.js";
137
142
  export * from "./submitgenerationfeedback.js";
138
143
  export * from "./suspendintern.js";
139
144
  export * from "./updatebyokkey.js";
140
- export * from "./updateenduser.js";
145
+ export * from "./updateexternaluser.js";
141
146
  export * from "./updateguardrail.js";
142
147
  export * from "./updateintern.js";
143
148
  export * from "./updatekeys.js";
@@ -46,6 +46,10 @@ export type ListRequest = {
46
46
  * Whether to include disabled API keys in the response
47
47
  */
48
48
  includeDisabled?: boolean | undefined;
49
+ /**
50
+ * Whether to include expired API keys in the response. Expired keys are excluded by default and returned only when this is true.
51
+ */
52
+ includeExpired?: boolean | undefined;
49
53
  /**
50
54
  * Number of API keys to skip for pagination
51
55
  */
@@ -104,6 +108,10 @@ export type ListData = {
104
108
  * Human-readable label for the API key
105
109
  */
106
110
  label: string;
111
+ /**
112
+ * ISO 8601 UTC timestamp of the most recent usage recorded for the API key, or null if no usage has been recorded since the end of 2025
113
+ */
114
+ lastUsedAt: Date | null;
107
115
  /**
108
116
  * Spending limit for the API key in USD
109
117
  */
@@ -160,6 +168,7 @@ export type ListRequest$Outbound = {
160
168
  appTitle?: string | undefined;
161
169
  appCategories?: string | undefined;
162
170
  include_disabled?: boolean | undefined;
171
+ include_expired?: boolean | undefined;
163
172
  offset?: number | null | undefined;
164
173
  workspace_id?: string | undefined;
165
174
  };
@@ -11,12 +11,14 @@ export const ListRequest$outboundSchema = z.object({
11
11
  appTitle: z.string().optional(),
12
12
  appCategories: z.string().optional(),
13
13
  includeDisabled: z.boolean().optional(),
14
+ includeExpired: z.boolean().optional(),
14
15
  offset: z.nullable(z.int()).optional(),
15
16
  workspaceId: z.string().optional(),
16
17
  }).transform((v) => {
17
18
  return remap$(v, {
18
19
  httpReferer: "HTTP-Referer",
19
20
  includeDisabled: "include_disabled",
21
+ includeExpired: "include_expired",
20
22
  workspaceId: "workspace_id",
21
23
  });
22
24
  });
@@ -37,6 +39,7 @@ export const ListData$inboundSchema = z.object({
37
39
  hash: z.string(),
38
40
  include_byok_in_limit: z.boolean(),
39
41
  label: z.string(),
42
+ last_used_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))),
40
43
  limit: z.nullable(z.number()),
41
44
  limit_remaining: z.nullable(z.number()),
42
45
  limit_reset: z.nullable(z.string()),
@@ -58,6 +61,7 @@ export const ListData$inboundSchema = z.object({
58
61
  "expires_at": "expiresAt",
59
62
  "external_user": "externalUser",
60
63
  "include_byok_in_limit": "includeByokInLimit",
64
+ "last_used_at": "lastUsedAt",
61
65
  "limit_remaining": "limitRemaining",
62
66
  "limit_reset": "limitReset",
63
67
  "updated_at": "updatedAt",
@@ -58,11 +58,11 @@ export type ListBatchesRequest = {
58
58
  /**
59
59
  * Only include batches created strictly after this timestamp.
60
60
  */
61
- createdAfter?: models.BatchListTimestamp | undefined;
61
+ createdAfter?: any | undefined;
62
62
  /**
63
63
  * Only include batches created strictly before this timestamp.
64
64
  */
65
- createdBefore?: models.BatchListTimestamp | undefined;
65
+ createdBefore?: any | undefined;
66
66
  };
67
67
  export type ListBatchesResponse = {
68
68
  result: models.BatchListResponse;
@@ -75,8 +75,8 @@ export type ListBatchesRequest$Outbound = {
75
75
  limit?: number | undefined;
76
76
  after?: string | undefined;
77
77
  status?: Array<string> | undefined;
78
- created_after?: models.BatchListTimestamp$Outbound | undefined;
79
- created_before?: models.BatchListTimestamp$Outbound | undefined;
78
+ created_after?: any | undefined;
79
+ created_before?: any | undefined;
80
80
  };
81
81
  /** @internal */
82
82
  export declare const ListBatchesRequest$outboundSchema: z.ZodType<ListBatchesRequest$Outbound, ListBatchesRequest>;
@@ -5,7 +5,7 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { BatchListResponse$inboundSchema as models_BatchListResponse$inboundSchema } from "../batchlistresponse.js"; import { BatchListStatus$outboundSchema as models_BatchListStatus$outboundSchema } from "../batchliststatus.js"; import { BatchListTimestamp$outboundSchema as models_BatchListTimestamp$outboundSchema } from "../batchlisttimestamp.js";
8
+ import { BatchListResponse$inboundSchema as models_BatchListResponse$inboundSchema } from "../batchlistresponse.js"; import { BatchListStatus$outboundSchema as models_BatchListStatus$outboundSchema } from "../batchliststatus.js";
9
9
  /** @internal */
10
10
  export const ListBatchesRequest$outboundSchema = z.object({
11
11
  httpReferer: z.string().optional(),
@@ -14,8 +14,8 @@ export const ListBatchesRequest$outboundSchema = z.object({
14
14
  limit: z.int().optional(),
15
15
  after: z.string().optional(),
16
16
  status: z.array(models_BatchListStatus$outboundSchema).optional(),
17
- createdAfter: models_BatchListTimestamp$outboundSchema.optional(),
18
- createdBefore: models_BatchListTimestamp$outboundSchema.optional(),
17
+ createdAfter: z.any().optional(),
18
+ createdBefore: z.any().optional(),
19
19
  }).transform((v) => {
20
20
  return remap$(v, {
21
21
  httpReferer: "HTTP-Referer",
@@ -106,6 +106,7 @@ export declare const Provider: {
106
106
  readonly OpenInference: "open-inference";
107
107
  readonly Openai: "openai";
108
108
  readonly Parasail: "parasail";
109
+ readonly ParetoAlpha: "pareto-alpha";
109
110
  readonly Perceptron: "perceptron";
110
111
  readonly Perplexity: "perplexity";
111
112
  readonly Phala: "phala";
@@ -113,6 +114,7 @@ export declare const Provider: {
113
114
  readonly Primeintellect: "primeintellect";
114
115
  readonly Quiver: "quiver";
115
116
  readonly Recraft: "recraft";
117
+ readonly Recursive: "recursive";
116
118
  readonly Reka: "reka";
117
119
  readonly Relace: "relace";
118
120
  readonly Respan: "respan";
@@ -89,6 +89,7 @@ export const Provider = {
89
89
  OpenInference: "open-inference",
90
90
  Openai: "openai",
91
91
  Parasail: "parasail",
92
+ ParetoAlpha: "pareto-alpha",
92
93
  Perceptron: "perceptron",
93
94
  Perplexity: "perplexity",
94
95
  Phala: "phala",
@@ -96,6 +97,7 @@ export const Provider = {
96
97
  Primeintellect: "primeintellect",
97
98
  Quiver: "quiver",
98
99
  Recraft: "recraft",
100
+ Recursive: "recursive",
99
101
  Reka: "reka",
100
102
  Relace: "relace",
101
103
  Respan: "respan",
@@ -2,7 +2,7 @@ import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import * as models from "../index.js";
5
- export type ListEndUsersGlobals = {
5
+ export type ListExternalUsersGlobals = {
6
6
  /**
7
7
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
8
8
  *
@@ -23,7 +23,7 @@ export type ListEndUsersGlobals = {
23
23
  */
24
24
  appCategories?: string | undefined;
25
25
  };
26
- export type ListEndUsersRequest = {
26
+ export type ListExternalUsersRequest = {
27
27
  /**
28
28
  * The app identifier should be your app's URL and is used as the primary identifier for rankings.
29
29
  *
@@ -52,7 +52,7 @@ export type ListEndUsersRequest = {
52
52
  */
53
53
  limit?: number | undefined;
54
54
  /**
55
- * Immutable case-sensitive tracking string supplied as user on inference requests. URL-encode it in resource paths.
55
+ * Immutable case-sensitive tracking string supplied as user on inference requests or as external.user on API keys: 1 to 512 characters, well-formed Unicode, no NUL, no surrounding whitespace. URL-encode it in resource paths; an ID of `.` or `..` cannot be addressed by path, so look it up with the list filter.
56
56
  */
57
57
  user?: string | undefined;
58
58
  /**
@@ -60,11 +60,11 @@ export type ListEndUsersRequest = {
60
60
  */
61
61
  includeInactive?: boolean | undefined;
62
62
  };
63
- export type ListEndUsersResponse = {
64
- result: models.ListEndUsersResponse;
63
+ export type ListExternalUsersResponse = {
64
+ result: models.ListExternalUsersResponse;
65
65
  };
66
66
  /** @internal */
67
- export type ListEndUsersRequest$Outbound = {
67
+ export type ListExternalUsersRequest$Outbound = {
68
68
  "HTTP-Referer"?: string | undefined;
69
69
  appTitle?: string | undefined;
70
70
  appCategories?: string | undefined;
@@ -74,9 +74,9 @@ export type ListEndUsersRequest$Outbound = {
74
74
  include_inactive: boolean;
75
75
  };
76
76
  /** @internal */
77
- export declare const ListEndUsersRequest$outboundSchema: z.ZodType<ListEndUsersRequest$Outbound, ListEndUsersRequest>;
78
- export declare function listEndUsersRequestToJSON(listEndUsersRequest: ListEndUsersRequest): string;
77
+ export declare const ListExternalUsersRequest$outboundSchema: z.ZodType<ListExternalUsersRequest$Outbound, ListExternalUsersRequest>;
78
+ export declare function listExternalUsersRequestToJSON(listExternalUsersRequest: ListExternalUsersRequest): string;
79
79
  /** @internal */
80
- export declare const ListEndUsersResponse$inboundSchema: z.ZodType<ListEndUsersResponse, unknown>;
81
- export declare function listEndUsersResponseFromJSON(jsonString: string): SafeParseResult<ListEndUsersResponse, SDKValidationError>;
82
- //# sourceMappingURL=listendusers.d.ts.map
80
+ export declare const ListExternalUsersResponse$inboundSchema: z.ZodType<ListExternalUsersResponse, unknown>;
81
+ export declare function listExternalUsersResponseFromJSON(jsonString: string): SafeParseResult<ListExternalUsersResponse, SDKValidationError>;
82
+ //# sourceMappingURL=listexternalusers.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 54fe31dd43b6
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ListExternalUsersResponse$inboundSchema as models_ListExternalUsersResponse$inboundSchema } from "../listexternalusersresponse.js";
9
+ /** @internal */
10
+ export const ListExternalUsersRequest$outboundSchema = z.object({
11
+ httpReferer: z.string().optional(),
12
+ appTitle: z.string().optional(),
13
+ appCategories: z.string().optional(),
14
+ offset: z.nullable(z.int().default(0)),
15
+ limit: z.int().default(50),
16
+ user: z.string().optional(),
17
+ includeInactive: z.boolean().default(false),
18
+ }).transform((v) => {
19
+ return remap$(v, {
20
+ httpReferer: "HTTP-Referer",
21
+ includeInactive: "include_inactive",
22
+ });
23
+ });
24
+ export function listExternalUsersRequestToJSON(listExternalUsersRequest) {
25
+ return JSON.stringify(ListExternalUsersRequest$outboundSchema.parse(listExternalUsersRequest));
26
+ }
27
+ /** @internal */
28
+ export const ListExternalUsersResponse$inboundSchema = z.object({
29
+ Result: models_ListExternalUsersResponse$inboundSchema,
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "Result": "result",
33
+ });
34
+ });
35
+ export function listExternalUsersResponseFromJSON(jsonString) {
36
+ return safeParse(jsonString, (x) => ListExternalUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListExternalUsersResponse' from JSON`);
37
+ }
38
+ //# sourceMappingURL=listexternalusers.js.map
@@ -0,0 +1,75 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type ListInternConnectionsGlobals = {
5
+ /**
6
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
7
+ *
8
+ * @remarks
9
+ * This is used to track API usage per application.
10
+ */
11
+ httpReferer?: string | undefined;
12
+ /**
13
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
14
+ *
15
+ * @remarks
16
+ */
17
+ appTitle?: string | undefined;
18
+ /**
19
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
20
+ *
21
+ * @remarks
22
+ */
23
+ appCategories?: string | undefined;
24
+ };
25
+ export type ListInternConnectionsRequest = {
26
+ /**
27
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
28
+ *
29
+ * @remarks
30
+ * This is used to track API usage per application.
31
+ */
32
+ httpReferer?: string | undefined;
33
+ /**
34
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
35
+ *
36
+ * @remarks
37
+ */
38
+ appTitle?: string | undefined;
39
+ /**
40
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
41
+ *
42
+ * @remarks
43
+ */
44
+ appCategories?: string | undefined;
45
+ /**
46
+ * UUID of an intern in the workspace selected by the API key.
47
+ */
48
+ internId: string;
49
+ };
50
+ export type ListInternConnectionsData = {
51
+ key: string;
52
+ };
53
+ /**
54
+ * The connections the intern can use.
55
+ */
56
+ export type ListInternConnectionsResponse = {
57
+ data: Array<ListInternConnectionsData>;
58
+ };
59
+ /** @internal */
60
+ export type ListInternConnectionsRequest$Outbound = {
61
+ "HTTP-Referer"?: string | undefined;
62
+ appTitle?: string | undefined;
63
+ appCategories?: string | undefined;
64
+ internId: string;
65
+ };
66
+ /** @internal */
67
+ export declare const ListInternConnectionsRequest$outboundSchema: z.ZodType<ListInternConnectionsRequest$Outbound, ListInternConnectionsRequest>;
68
+ export declare function listInternConnectionsRequestToJSON(listInternConnectionsRequest: ListInternConnectionsRequest): string;
69
+ /** @internal */
70
+ export declare const ListInternConnectionsData$inboundSchema: z.ZodType<ListInternConnectionsData, unknown>;
71
+ export declare function listInternConnectionsDataFromJSON(jsonString: string): SafeParseResult<ListInternConnectionsData, SDKValidationError>;
72
+ /** @internal */
73
+ export declare const ListInternConnectionsResponse$inboundSchema: z.ZodType<ListInternConnectionsResponse, unknown>;
74
+ export declare function listInternConnectionsResponseFromJSON(jsonString: string): SafeParseResult<ListInternConnectionsResponse, SDKValidationError>;
75
+ //# sourceMappingURL=listinternconnections.d.ts.map