@openrouter/sdk 1.4.25 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/esm/funcs/apiKeysList.d.ts +1 -1
  2. package/esm/funcs/apiKeysList.js +3 -2
  3. package/esm/funcs/apiKeysUpdate.d.ts +4 -2
  4. package/esm/funcs/apiKeysUpdate.js +5 -3
  5. package/esm/funcs/chatSend.d.ts +4 -2
  6. package/esm/funcs/containersPromoteContainerFile.d.ts +1 -1
  7. package/esm/funcs/containersPromoteContainerFile.js +2 -2
  8. package/esm/funcs/embeddingsGenerate.d.ts +1 -1
  9. package/esm/funcs/embeddingsGenerate.js +2 -2
  10. package/esm/funcs/{endUsersCreate.d.ts → externalUsersCreate.d.ts} +3 -3
  11. package/esm/funcs/{endUsersCreate.js → externalUsersCreate.js} +11 -11
  12. package/esm/funcs/{endUsersDelete.d.ts → externalUsersDelete.d.ts} +3 -3
  13. package/esm/funcs/{endUsersDelete.js → externalUsersDelete.js} +8 -8
  14. package/esm/funcs/{endUsersGet.d.ts → externalUsersGet.d.ts} +3 -3
  15. package/esm/funcs/{endUsersGet.js → externalUsersGet.js} +10 -10
  16. package/esm/funcs/{endUsersList.d.ts → externalUsersList.d.ts} +3 -3
  17. package/esm/funcs/{endUsersList.js → externalUsersList.js} +10 -10
  18. package/esm/funcs/{endUsersUpdate.d.ts → externalUsersUpdate.d.ts} +3 -3
  19. package/esm/funcs/{endUsersUpdate.js → externalUsersUpdate.js} +11 -11
  20. package/esm/funcs/filesUpload.d.ts +1 -1
  21. package/esm/funcs/filesUpload.js +2 -2
  22. package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
  23. package/esm/funcs/guardrailsListKeyAssignments.js +2 -2
  24. package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
  25. package/esm/funcs/guardrailsListMemberAssignments.js +2 -2
  26. package/esm/funcs/imagesGenerate.d.ts +4 -2
  27. package/esm/funcs/internsGetInternConnections.d.ts +21 -0
  28. package/esm/funcs/internsGetInternConnections.js +105 -0
  29. package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
  30. package/esm/funcs/internsGetInternDaemon.js +1 -1
  31. package/esm/funcs/internsGetInternIcon.d.ts +20 -0
  32. package/esm/funcs/internsGetInternIcon.js +109 -0
  33. package/esm/funcs/internsSignInternDaemonAccessRequest.d.ts +22 -0
  34. package/esm/funcs/internsSignInternDaemonAccessRequest.js +109 -0
  35. package/esm/funcs/internsSignInternDaemonRequest.d.ts +20 -0
  36. package/esm/funcs/internsSignInternDaemonRequest.js +109 -0
  37. package/esm/funcs/modelsListForUser.js +1 -0
  38. package/esm/funcs/organizationGetSettings.d.ts +1 -1
  39. package/esm/funcs/organizationGetSettings.js +2 -2
  40. package/esm/funcs/organizationListMembers.d.ts +1 -1
  41. package/esm/funcs/organizationListMembers.js +2 -2
  42. package/esm/funcs/organizationUpdateSettings.d.ts +1 -1
  43. package/esm/funcs/organizationUpdateSettings.js +2 -2
  44. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +1 -1
  45. package/esm/funcs/privateEndpointsUpdatePricing.js +1 -1
  46. package/esm/funcs/responsesSend.d.ts +4 -2
  47. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
  48. package/esm/funcs/vaultDeleteInternVaultSecret.js +2 -2
  49. package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
  50. package/esm/funcs/vaultDeleteVaultSecret.js +2 -2
  51. package/esm/funcs/vaultListInternConnections.d.ts +20 -0
  52. package/esm/funcs/vaultListInternConnections.js +104 -0
  53. package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
  54. package/esm/funcs/vaultStoreVaultSecret.js +2 -2
  55. package/esm/funcs/videoGenerationGenerate.d.ts +1 -1
  56. package/esm/funcs/videoGenerationGenerate.js +2 -2
  57. package/esm/lib/config.d.ts +3 -3
  58. package/esm/lib/config.js +3 -3
  59. package/esm/lib/encodings.d.ts +10 -9
  60. package/esm/lib/encodings.js +29 -13
  61. package/esm/lib/http.d.ts +1 -1
  62. package/esm/lib/http.js +1 -1
  63. package/esm/lib/security.d.ts +5 -4
  64. package/esm/lib/security.js +4 -5
  65. package/esm/models/additionaltoolsitem.d.ts +16 -1
  66. package/esm/models/additionaltoolsitem.js +10 -0
  67. package/esm/models/alignment.d.ts +1 -1
  68. package/esm/models/alignmentplugin.d.ts +9 -8
  69. package/esm/models/alignmentplugin.js +3 -2
  70. package/esm/models/alignmentrule.d.ts +31 -0
  71. package/esm/models/alignmentrule.js +25 -0
  72. package/esm/models/alignmentrulerecord.d.ts +7 -3
  73. package/esm/models/alignmentrulerecord.js +2 -1
  74. package/esm/models/armorautomode.d.ts +44 -0
  75. package/esm/models/armorautomode.js +49 -0
  76. package/esm/models/armorcontext.d.ts +22 -0
  77. package/esm/models/armorcontext.js +25 -0
  78. package/esm/models/armorenvironmententry.d.ts +14 -0
  79. package/esm/models/armorenvironmententry.js +14 -0
  80. package/esm/models/armorplugin.d.ts +92 -0
  81. package/esm/models/armorplugin.js +60 -0
  82. package/esm/models/armorrule.d.ts +30 -0
  83. package/esm/models/armorrule.js +16 -0
  84. package/esm/models/armorsafeguardresult.d.ts +69 -0
  85. package/esm/models/armorsafeguardresult.js +83 -0
  86. package/esm/models/batchlistitem.d.ts +8 -0
  87. package/esm/models/batchlistitem.js +3 -0
  88. package/esm/models/batchobject.d.ts +13 -0
  89. package/esm/models/batchobject.js +6 -0
  90. package/esm/models/batchsubmitbody.d.ts +5 -0
  91. package/esm/models/batchsubmitbody.js +2 -0
  92. package/esm/models/byokkey.d.ts +3 -3
  93. package/esm/models/byokkey.js +1 -1
  94. package/esm/models/byokproviderslug.d.ts +2 -0
  95. package/esm/models/byokproviderslug.js +2 -0
  96. package/esm/models/chatcontenttext.d.ts +1 -1
  97. package/esm/models/chatfunctiontool.d.ts +4 -0
  98. package/esm/models/chatfunctiontool.js +7 -0
  99. package/esm/models/chatrequest.d.ts +16 -9
  100. package/esm/models/chatrequest.js +9 -6
  101. package/esm/models/chatresult.d.ts +10 -0
  102. package/esm/models/chatresult.js +5 -0
  103. package/esm/models/chatstreamchunk.d.ts +7 -0
  104. package/esm/models/chatstreamchunk.js +5 -0
  105. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  106. package/esm/models/clientclosedrequestresponseerrordata.d.ts +17 -0
  107. package/esm/models/clientclosedrequestresponseerrordata.js +16 -0
  108. package/esm/models/computeruseservertool.d.ts +5 -5
  109. package/esm/models/computeruseservertool.js +5 -5
  110. package/esm/models/createbyokkeyrequest.d.ts +3 -3
  111. package/esm/models/createbyokkeyrequest.js +1 -1
  112. package/esm/models/createexternaluserrequest.d.ts +15 -0
  113. package/esm/models/createexternaluserrequest.js +13 -0
  114. package/esm/models/createguardrailrequest.d.ts +10 -0
  115. package/esm/models/createguardrailrequest.js +4 -0
  116. package/esm/models/createobservabilitydestinationrequest.d.ts +5 -0
  117. package/esm/models/createobservabilitydestinationrequest.js +2 -0
  118. package/esm/models/customtool.d.ts +2 -0
  119. package/esm/models/customtool.js +11 -0
  120. package/esm/models/decisionsboxanswer.d.ts +21 -0
  121. package/esm/models/decisionsboxanswer.js +26 -0
  122. package/esm/models/decisionsboxquestion.d.ts +34 -0
  123. package/esm/models/decisionsboxquestion.js +23 -0
  124. package/esm/models/decisionsrequest.d.ts +6 -5
  125. package/esm/models/decisionsrequest.js +3 -0
  126. package/esm/models/decisionsresponse.d.ts +4 -3
  127. package/esm/models/decisionsresponse.js +3 -0
  128. package/esm/models/deferredbm25search.d.ts +17 -0
  129. package/esm/models/deferredbm25search.js +19 -0
  130. package/esm/models/deferredcustomsearch.d.ts +21 -0
  131. package/esm/models/deferredcustomsearch.js +23 -0
  132. package/esm/models/deferredregexsearch.d.ts +17 -0
  133. package/esm/models/deferredregexsearch.js +19 -0
  134. package/esm/models/deferredtoolscontrol.d.ts +62 -0
  135. package/esm/models/deferredtoolscontrol.js +38 -0
  136. package/esm/models/deferredtoolssearchstrategy.d.ts +14 -0
  137. package/esm/models/deferredtoolssearchstrategy.js +18 -0
  138. package/esm/models/errors/batchpaymentrequiredresponseerror.d.ts +16 -0
  139. package/esm/models/errors/batchpaymentrequiredresponseerror.js +5 -0
  140. package/esm/models/errors/clientclosedrequestresponseerror.d.ts +39 -0
  141. package/esm/models/errors/clientclosedrequestresponseerror.js +47 -0
  142. package/esm/models/errors/index.d.ts +1 -0
  143. package/esm/models/errors/index.js +1 -0
  144. package/esm/models/{enduser.d.ts → externaluser.d.ts} +5 -5
  145. package/esm/models/{enduser.js → externaluser.js} +6 -5
  146. package/esm/models/externaluserresponse.d.ts +11 -0
  147. package/esm/models/externaluserresponse.js +15 -0
  148. package/esm/models/guardrail.d.ts +8 -0
  149. package/esm/models/guardrail.js +4 -0
  150. package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
  151. package/esm/models/imagegenerationproviderpreferences.js +3 -0
  152. package/esm/models/index.d.ts +34 -6
  153. package/esm/models/index.js +34 -6
  154. package/esm/models/inputsunion.d.ts +7 -4
  155. package/esm/models/inputsunion.js +9 -0
  156. package/esm/models/inputtext.d.ts +1 -1
  157. package/esm/models/intern.d.ts +12 -0
  158. package/esm/models/intern.js +6 -0
  159. package/esm/models/internconnection.d.ts +118 -0
  160. package/esm/models/internconnection.js +105 -0
  161. package/esm/models/internconnectionlist.d.ts +11 -0
  162. package/esm/models/internconnectionlist.js +15 -0
  163. package/esm/models/interndaemonaccess.d.ts +11 -1
  164. package/esm/models/interndaemonaccess.js +8 -0
  165. package/esm/models/jevrouterplugin.d.ts +5 -0
  166. package/esm/models/jevrouterplugin.js +2 -0
  167. package/esm/models/keybudget.d.ts +80 -0
  168. package/esm/models/keybudget.js +58 -0
  169. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  170. package/esm/models/listexternalusersresponse.d.ts +15 -0
  171. package/esm/models/listexternalusersresponse.js +21 -0
  172. package/esm/models/messagesmessageparam.d.ts +7 -6
  173. package/esm/models/messagesmessageparam.js +4 -0
  174. package/esm/models/messagesrequest.d.ts +11 -4
  175. package/esm/models/messagesrequest.js +6 -0
  176. package/esm/models/namespacefunctiontool.d.ts +5 -5
  177. package/esm/models/namespacefunctiontool.js +5 -5
  178. package/esm/models/observabilityarizedestination.d.ts +4 -0
  179. package/esm/models/observabilityarizedestination.js +2 -0
  180. package/esm/models/observabilitybraintrustdestination.d.ts +4 -0
  181. package/esm/models/observabilitybraintrustdestination.js +2 -0
  182. package/esm/models/observabilityclickhousedestination.d.ts +4 -0
  183. package/esm/models/observabilityclickhousedestination.js +2 -0
  184. package/esm/models/observabilitydatadogdestination.d.ts +4 -0
  185. package/esm/models/observabilitydatadogdestination.js +2 -0
  186. package/esm/models/observabilitygrafanadestination.d.ts +4 -0
  187. package/esm/models/observabilitygrafanadestination.js +2 -0
  188. package/esm/models/observabilitylangfusedestination.d.ts +4 -0
  189. package/esm/models/observabilitylangfusedestination.js +2 -0
  190. package/esm/models/observabilitylangsmithdestination.d.ts +4 -0
  191. package/esm/models/observabilitylangsmithdestination.js +2 -0
  192. package/esm/models/observabilitynewrelicdestination.d.ts +4 -0
  193. package/esm/models/observabilitynewrelicdestination.js +2 -0
  194. package/esm/models/observabilityopikdestination.d.ts +4 -0
  195. package/esm/models/observabilityopikdestination.js +2 -0
  196. package/esm/models/observabilityotelcollectordestination.d.ts +4 -0
  197. package/esm/models/observabilityotelcollectordestination.js +2 -0
  198. package/esm/models/observabilityposthogdestination.d.ts +4 -0
  199. package/esm/models/observabilityposthogdestination.js +2 -0
  200. package/esm/models/observabilityrampdestination.d.ts +4 -0
  201. package/esm/models/observabilityrampdestination.js +2 -0
  202. package/esm/models/observabilitys3destination.d.ts +4 -0
  203. package/esm/models/observabilitys3destination.js +2 -0
  204. package/esm/models/observabilitysentrydestination.d.ts +4 -0
  205. package/esm/models/observabilitysentrydestination.js +2 -0
  206. package/esm/models/observabilitysnowflakedestination.d.ts +4 -0
  207. package/esm/models/observabilitysnowflakedestination.js +2 -0
  208. package/esm/models/observabilityweavedestination.d.ts +4 -0
  209. package/esm/models/observabilityweavedestination.js +2 -0
  210. package/esm/models/observabilitywebhookdestination.d.ts +8 -4
  211. package/esm/models/observabilitywebhookdestination.js +5 -4
  212. package/esm/models/openresponseserrorfield.d.ts +1 -0
  213. package/esm/models/openresponseserrorfield.js +1 -0
  214. package/esm/models/openresponseserrormetadata.d.ts +1 -1
  215. package/esm/models/openresponsesresult.d.ts +19 -3
  216. package/esm/models/openresponsesresult.js +14 -0
  217. package/esm/models/operations/{createenduser.d.ts → createexternaluser.d.ts} +8 -8
  218. package/esm/models/operations/createexternaluser.js +23 -0
  219. package/esm/models/operations/deleteexternaluser.d.ts +58 -0
  220. package/esm/models/operations/{deleteenduser.js → deleteexternaluser.js} +5 -5
  221. package/esm/models/operations/getcurrentkey.d.ts +5 -0
  222. package/esm/models/operations/getcurrentkey.js +4 -1
  223. package/esm/models/operations/{updateenduser.d.ts → getexternaluser.d.ts} +7 -10
  224. package/esm/models/operations/{getenduser.js → getexternaluser.js} +5 -5
  225. package/esm/models/operations/{deleteenduser.d.ts → getinternconnections.d.ts} +9 -9
  226. package/esm/models/operations/getinternconnections.js +21 -0
  227. package/esm/models/operations/{getenduser.d.ts → getinternicon.d.ts} +14 -9
  228. package/esm/models/operations/getinternicon.js +22 -0
  229. package/esm/models/operations/index.d.ts +10 -5
  230. package/esm/models/operations/index.js +10 -5
  231. package/esm/models/operations/list.d.ts +5 -0
  232. package/esm/models/operations/list.js +2 -0
  233. package/esm/models/operations/listbatches.d.ts +4 -4
  234. package/esm/models/operations/listbatches.js +3 -3
  235. package/esm/models/operations/listbyokkeys.d.ts +2 -0
  236. package/esm/models/operations/listbyokkeys.js +2 -0
  237. package/esm/models/operations/{listendusers.d.ts → listexternalusers.d.ts} +11 -11
  238. package/esm/models/operations/listexternalusers.js +38 -0
  239. package/esm/models/operations/listinternconnections.d.ts +75 -0
  240. package/esm/models/operations/listinternconnections.js +36 -0
  241. package/esm/models/operations/listmodelsuser.d.ts +29 -0
  242. package/esm/models/operations/listmodelsuser.js +21 -0
  243. package/esm/models/operations/signinterndaemonaccessrequest.d.ts +72 -0
  244. package/esm/models/operations/signinterndaemonaccessrequest.js +38 -0
  245. package/esm/models/operations/signinterndaemonrequest.d.ts +72 -0
  246. package/esm/models/operations/signinterndaemonrequest.js +38 -0
  247. package/esm/models/operations/updateexternaluser.d.ts +61 -0
  248. package/esm/models/operations/updateexternaluser.js +24 -0
  249. package/esm/models/operations/updatekeys.d.ts +5 -0
  250. package/esm/models/operations/updatekeys.js +2 -0
  251. package/esm/models/oranthropiccontentblock.d.ts +2 -1
  252. package/esm/models/oranthropiccontentblock.js +2 -0
  253. package/esm/models/oranthropictoolsearchresult.d.ts +17 -0
  254. package/esm/models/oranthropictoolsearchresult.js +21 -0
  255. package/esm/models/oranthropictoolsearchresultparam.d.ts +23 -0
  256. package/esm/models/oranthropictoolsearchresultparam.js +20 -0
  257. package/esm/models/outputapplypatchservertoolitem.d.ts +7 -2
  258. package/esm/models/outputapplypatchservertoolitem.js +5 -3
  259. package/esm/models/outputarmorblockeditem.d.ts +71 -0
  260. package/esm/models/outputarmorblockeditem.js +60 -0
  261. package/esm/models/outputdatetimeitem.d.ts +7 -2
  262. package/esm/models/outputdatetimeitem.js +5 -3
  263. package/esm/models/outputimagegenerationservertoolitem.d.ts +7 -2
  264. package/esm/models/outputimagegenerationservertoolitem.js +5 -3
  265. package/esm/models/outputitems.d.ts +5 -1
  266. package/esm/models/outputitems.js +4 -0
  267. package/esm/models/outputsearchmodelsservertoolitem.d.ts +7 -2
  268. package/esm/models/outputsearchmodelsservertoolitem.js +5 -3
  269. package/esm/models/outputtoolsearchcallitem.d.ts +26 -0
  270. package/esm/models/outputtoolsearchcallitem.js +30 -0
  271. package/esm/models/outputtoolsearchservertoolitem.d.ts +30 -2
  272. package/esm/models/outputtoolsearchservertoolitem.js +36 -3
  273. package/esm/models/outputwebsearchservertoolitem.d.ts +7 -2
  274. package/esm/models/outputwebsearchservertoolitem.js +5 -3
  275. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  276. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  277. package/esm/models/privateendpointpricing.d.ts +10 -0
  278. package/esm/models/privateendpointpricing.js +15 -0
  279. package/esm/models/promptcachebreakpoint.d.ts +3 -1
  280. package/esm/models/promptcachebreakpoint.js +2 -0
  281. package/esm/models/promptcacheoptions.d.ts +1 -1
  282. package/esm/models/providername.d.ts +2 -0
  283. package/esm/models/providername.js +2 -0
  284. package/esm/models/provideroptions.d.ts +12 -0
  285. package/esm/models/provideroptions.js +3 -0
  286. package/esm/models/providerresponse.d.ts +2 -0
  287. package/esm/models/providerresponse.js +2 -0
  288. package/esm/models/publicendpoint.d.ts +11 -2
  289. package/esm/models/publicendpoint.js +5 -0
  290. package/esm/models/publicservicetier.d.ts +17 -0
  291. package/esm/models/publicservicetier.js +16 -0
  292. package/esm/models/responsesrequest.d.ts +42 -6
  293. package/esm/models/responsesrequest.js +22 -0
  294. package/esm/models/signinterndaemonrequest.d.ts +54 -0
  295. package/esm/models/signinterndaemonrequest.js +30 -0
  296. package/esm/models/signinterndaemonresponse.d.ts +32 -0
  297. package/esm/models/signinterndaemonresponse.js +27 -0
  298. package/esm/models/speechinput.d.ts +12 -0
  299. package/esm/models/speechinput.js +12 -0
  300. package/esm/models/speechinputreferenceimage.d.ts +1 -1
  301. package/esm/models/speechrequest.d.ts +10 -4
  302. package/esm/models/speechrequest.js +3 -1
  303. package/esm/models/speechturn.d.ts +25 -0
  304. package/esm/models/speechturn.js +15 -0
  305. package/esm/models/switchyardrouterplugin.d.ts +1 -1
  306. package/esm/models/tokenexchangerequest.d.ts +7 -6
  307. package/esm/models/tokenexchangerequest.js +4 -2
  308. package/esm/models/tokenexchangeresponse.d.ts +3 -0
  309. package/esm/models/toolsearchcallitem.d.ts +47 -0
  310. package/esm/models/toolsearchcallitem.js +42 -0
  311. package/esm/models/toolsearchoutputitem.d.ts +150 -0
  312. package/esm/models/toolsearchoutputitem.js +181 -0
  313. package/esm/models/updatebyokkeyrequest.d.ts +3 -3
  314. package/esm/models/updatebyokkeyrequest.js +1 -1
  315. package/esm/models/updateexternaluserrequest.d.ts +15 -0
  316. package/esm/models/updateexternaluserrequest.js +18 -0
  317. package/esm/models/updateguardrailrequest.d.ts +10 -0
  318. package/esm/models/updateguardrailrequest.js +4 -0
  319. package/esm/models/updateobservabilitydestinationrequest.d.ts +5 -0
  320. package/esm/models/updateobservabilitydestinationrequest.js +2 -0
  321. package/esm/models/videogenerationrequest.d.ts +12 -0
  322. package/esm/models/videogenerationrequest.js +3 -0
  323. package/esm/models/videogenerationresponse.d.ts +11 -0
  324. package/esm/models/videogenerationresponse.js +3 -0
  325. package/esm/models/webfetchengineenum.d.ts +2 -2
  326. package/esm/models/webfetchengineenum.js +1 -1
  327. package/esm/models/webfetchservertoolconfig.d.ts +1 -1
  328. package/esm/models/websearchconfig.d.ts +1 -1
  329. package/esm/models/websearchengineenum.d.ts +2 -2
  330. package/esm/models/websearchengineenum.js +1 -1
  331. package/esm/models/websearchservertool.d.ts +1 -1
  332. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  333. package/esm/models/workspacebudget.d.ts +4 -4
  334. package/esm/models/workspacebudget.js +3 -3
  335. package/esm/sdk/apikeys.d.ts +3 -1
  336. package/esm/sdk/apikeys.js +3 -1
  337. package/esm/sdk/betaresponses.d.ts +4 -2
  338. package/esm/sdk/chat.d.ts +4 -2
  339. package/esm/sdk/endusers.d.ts +10 -10
  340. package/esm/sdk/endusers.js +15 -15
  341. package/esm/sdk/externalusers.d.ts +44 -0
  342. package/esm/sdk/externalusers.js +60 -0
  343. package/esm/sdk/images.d.ts +3 -2
  344. package/esm/sdk/interns.d.ts +31 -1
  345. package/esm/sdk/interns.js +43 -1
  346. package/esm/sdk/privateendpoints.d.ts +1 -1
  347. package/esm/sdk/privateendpoints.js +1 -1
  348. package/esm/sdk/responses.d.ts +4 -2
  349. package/esm/sdk/sdk.d.ts +5 -2
  350. package/esm/sdk/sdk.js +7 -3
  351. package/esm/sdk/vault.d.ts +7 -0
  352. package/esm/sdk/vault.js +10 -0
  353. package/jsr.json +1 -1
  354. package/package.json +8 -8
  355. package/esm/models/batchlisttimestamp.d.ts +0 -12
  356. package/esm/models/batchlisttimestamp.js +0 -15
  357. package/esm/models/createenduserrequest.d.ts +0 -15
  358. package/esm/models/createenduserrequest.js +0 -13
  359. package/esm/models/enduserresponse.d.ts +0 -11
  360. package/esm/models/enduserresponse.js +0 -15
  361. package/esm/models/listendusersresponse.d.ts +0 -15
  362. package/esm/models/listendusersresponse.js +0 -21
  363. package/esm/models/operations/createenduser.js +0 -23
  364. package/esm/models/operations/listendusers.js +0 -38
  365. package/esm/models/operations/updateenduser.js +0 -24
  366. package/esm/models/updateenduserrequest.d.ts +0 -15
  367. package/esm/models/updateenduserrequest.js +0 -18
@@ -0,0 +1,54 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ /**
4
+ * The HTTP method of the daemon request.
5
+ */
6
+ export declare const SignInternDaemonRequestMethod: {
7
+ readonly Post: "POST";
8
+ };
9
+ /**
10
+ * The HTTP method of the daemon request.
11
+ */
12
+ export type SignInternDaemonRequestMethod = ClosedEnum<typeof SignInternDaemonRequestMethod>;
13
+ /**
14
+ * The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
15
+ */
16
+ export type Route = {
17
+ /**
18
+ * The HTTP method of the daemon request.
19
+ */
20
+ method: SignInternDaemonRequestMethod;
21
+ /**
22
+ * The daemon request path, percent-encoded as sent, without origin or query. The route-bound proof admits only this path.
23
+ */
24
+ path: string;
25
+ };
26
+ export type SignInternDaemonRequest = {
27
+ /**
28
+ * Lower-case hex SHA-256 of the exact bytes the CLI will send as the daemon request body.
29
+ */
30
+ bodySha256: string;
31
+ /**
32
+ * The daemon request the proof is for. When present the response also carries the single-use, route-bound proof (`x-ori-invoke-signature-v2`, `x-ori-invoke-nonce`).
33
+ */
34
+ route?: Route | undefined;
35
+ };
36
+ /** @internal */
37
+ export declare const SignInternDaemonRequestMethod$outboundSchema: z.ZodEnum<typeof SignInternDaemonRequestMethod>;
38
+ /** @internal */
39
+ export type Route$Outbound = {
40
+ method: string;
41
+ path: string;
42
+ };
43
+ /** @internal */
44
+ export declare const Route$outboundSchema: z.ZodType<Route$Outbound, Route>;
45
+ export declare function routeToJSON(route: Route): string;
46
+ /** @internal */
47
+ export type SignInternDaemonRequest$Outbound = {
48
+ bodySha256: string;
49
+ route?: Route$Outbound | undefined;
50
+ };
51
+ /** @internal */
52
+ export declare const SignInternDaemonRequest$outboundSchema: z.ZodType<SignInternDaemonRequest$Outbound, SignInternDaemonRequest>;
53
+ export declare function signInternDaemonRequestToJSON(signInternDaemonRequest: SignInternDaemonRequest): string;
54
+ //# sourceMappingURL=signinterndaemonrequest.d.ts.map
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2a823896a299
4
+ */
5
+ import * as z from "zod/v4";
6
+ /**
7
+ * The HTTP method of the daemon request.
8
+ */
9
+ export const SignInternDaemonRequestMethod = {
10
+ Post: "POST",
11
+ };
12
+ /** @internal */
13
+ export const SignInternDaemonRequestMethod$outboundSchema = z.enum(SignInternDaemonRequestMethod);
14
+ /** @internal */
15
+ export const Route$outboundSchema = z.object({
16
+ method: SignInternDaemonRequestMethod$outboundSchema,
17
+ path: z.string(),
18
+ });
19
+ export function routeToJSON(route) {
20
+ return JSON.stringify(Route$outboundSchema.parse(route));
21
+ }
22
+ /** @internal */
23
+ export const SignInternDaemonRequest$outboundSchema = z.object({
24
+ bodySha256: z.string(),
25
+ route: z.lazy(() => Route$outboundSchema).optional(),
26
+ });
27
+ export function signInternDaemonRequestToJSON(signInternDaemonRequest) {
28
+ return JSON.stringify(SignInternDaemonRequest$outboundSchema.parse(signInternDaemonRequest));
29
+ }
30
+ //# sourceMappingURL=signinterndaemonrequest.js.map
@@ -0,0 +1,32 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Headers the CLI copies onto the daemon request so the sidecar can verify who is asking.
6
+ */
7
+ export type SignInternDaemonResponse = {
8
+ /**
9
+ * Present with `x-ori-invoke-signature-v2`: the single-use id that proof is bound to.
10
+ */
11
+ xOriInvokeNonce?: string | undefined;
12
+ /**
13
+ * Base64 Ed25519 signature over the intern id, timestamp, user and body digest.
14
+ */
15
+ xOriInvokeSignature: string;
16
+ /**
17
+ * Present when the request named a `route`: Base64 Ed25519 signature over the intern id, timestamp, nonce, user, method, path and body digest. The intern accepts it once.
18
+ */
19
+ xOriInvokeSignatureV2?: string | undefined;
20
+ /**
21
+ * Unix seconds at signing; the daemon refuses proofs older than its window.
22
+ */
23
+ xOriInvokeTimestamp: string;
24
+ /**
25
+ * The verified OAuth subject the proof names. Never taken from the request.
26
+ */
27
+ xOriInvokeUser: string;
28
+ };
29
+ /** @internal */
30
+ export declare const SignInternDaemonResponse$inboundSchema: z.ZodType<SignInternDaemonResponse, unknown>;
31
+ export declare function signInternDaemonResponseFromJSON(jsonString: string): SafeParseResult<SignInternDaemonResponse, SDKValidationError>;
32
+ //# sourceMappingURL=signinterndaemonresponse.d.ts.map
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 255ec3cd7651
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
+ /** @internal */
9
+ export const SignInternDaemonResponse$inboundSchema = z.object({
10
+ "x-ori-invoke-nonce": z.string().optional(),
11
+ "x-ori-invoke-signature": z.string(),
12
+ "x-ori-invoke-signature-v2": z.string().optional(),
13
+ "x-ori-invoke-timestamp": z.string(),
14
+ "x-ori-invoke-user": z.string(),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ "x-ori-invoke-nonce": "xOriInvokeNonce",
18
+ "x-ori-invoke-signature": "xOriInvokeSignature",
19
+ "x-ori-invoke-signature-v2": "xOriInvokeSignatureV2",
20
+ "x-ori-invoke-timestamp": "xOriInvokeTimestamp",
21
+ "x-ori-invoke-user": "xOriInvokeUser",
22
+ });
23
+ });
24
+ export function signInternDaemonResponseFromJSON(jsonString) {
25
+ return safeParse(jsonString, (x) => SignInternDaemonResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignInternDaemonResponse' from JSON`);
26
+ }
27
+ //# sourceMappingURL=signinterndaemonresponse.js.map
@@ -0,0 +1,12 @@
1
+ import * as z from "zod/v4";
2
+ import { SpeechTurn, SpeechTurn$Outbound } from "./speechturn.js";
3
+ /**
4
+ * Text to synthesize, or a list of turns for multi-speaker input. Each turn has its own text, voice, and instructions. Multi-speaker input is supported by Gemini TTS models and by Fish Audio models other than S1.
5
+ */
6
+ export type SpeechInput = string | Array<SpeechTurn>;
7
+ /** @internal */
8
+ export type SpeechInput$Outbound = string | Array<SpeechTurn$Outbound>;
9
+ /** @internal */
10
+ export declare const SpeechInput$outboundSchema: z.ZodType<SpeechInput$Outbound, SpeechInput>;
11
+ export declare function speechInputToJSON(speechInput: SpeechInput): string;
12
+ //# sourceMappingURL=speechinput.d.ts.map
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 40afc7088e49
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { SpeechTurn$outboundSchema, } from "./speechturn.js";
7
+ /** @internal */
8
+ export const SpeechInput$outboundSchema = z.union([z.string(), z.array(SpeechTurn$outboundSchema)]);
9
+ export function speechInputToJSON(speechInput) {
10
+ return JSON.stringify(SpeechInput$outboundSchema.parse(speechInput));
11
+ }
12
+ //# sourceMappingURL=speechinput.js.map
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { SpeechInputReferenceImageInput, SpeechInputReferenceImageInput$Outbound } from "./speechinputreferenceimageinput.js";
3
3
  /**
4
- * Reference image describing the desired voice. Cannot be combined with `input_audio` parts. Only routed to endpoints that support image references.
4
+ * Reference image. On its own it describes the desired voice (voice design); alongside an `input_audio` part it is a scene image describing the setting the cloned voice speaks in. At most one per request. Only routed to endpoints that support image references.
5
5
  */
6
6
  export type SpeechInputReferenceImage = {
7
7
  /**
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  import { ProviderOptions, ProviderOptions$Outbound } from "./provideroptions.js";
4
+ import { SpeechInput, SpeechInput$Outbound } from "./speechinput.js";
4
5
  import { SpeechInputReference, SpeechInputReference$Outbound } from "./speechinputreference.js";
5
6
  import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
6
7
  /**
@@ -62,13 +63,17 @@ export type SpeechRequestResponseFormat = OpenEnum<typeof SpeechRequestResponseF
62
63
  */
63
64
  export type SpeechRequest = {
64
65
  /**
65
- * Text to synthesize
66
+ * Text to synthesize, or a list of turns for multi-speaker input. Each turn has its own text, voice, and instructions. Multi-speaker input is supported by Gemini TTS models and by Fish Audio models other than S1.
66
67
  */
67
- input: string;
68
+ input: SpeechInput;
68
69
  /**
69
- * Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip); only routed to endpoints that support voice cloning (and multiple references when more than one part is sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. The two modes cannot be mixed. An empty array is treated as no reference.
70
+ * Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip), plus at most one `image_url` part as a scene image on providers that condition the cloned voice on its setting; only routed to endpoints that support voice cloning (and multiple references or image references when those parts are sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. An empty array is treated as no reference.
70
71
  */
71
72
  inputReferences?: Array<SpeechInputReference> | undefined;
73
+ /**
74
+ * Delivery instructions for the whole request, such as tone, pacing, or emotion. Supported by OpenAI gpt-4o-mini-tts, Gemini TTS, and Fish Audio models. Ignored by other providers.
75
+ */
76
+ instructions?: string | undefined;
72
77
  /**
73
78
  * TTS model identifier
74
79
  */
@@ -117,8 +122,9 @@ export declare function speechRequestProviderToJSON(speechRequestProvider: Speec
117
122
  export declare const SpeechRequestResponseFormat$outboundSchema: z.ZodType<string, SpeechRequestResponseFormat>;
118
123
  /** @internal */
119
124
  export type SpeechRequest$Outbound = {
120
- input: string;
125
+ input: SpeechInput$Outbound;
121
126
  input_references?: Array<SpeechInputReference$Outbound> | undefined;
127
+ instructions?: string | undefined;
122
128
  model: string;
123
129
  provider?: SpeechRequestProvider$Outbound | undefined;
124
130
  response_format: string;
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  import { ProviderOptions$outboundSchema, } from "./provideroptions.js";
9
+ import { SpeechInput$outboundSchema, } from "./speechinput.js";
9
10
  import { SpeechInputReference$outboundSchema, } from "./speechinputreference.js";
10
11
  import { TraceConfig$outboundSchema, } from "./traceconfig.js";
11
12
  /**
@@ -47,8 +48,9 @@ export function speechRequestProviderToJSON(speechRequestProvider) {
47
48
  export const SpeechRequestResponseFormat$outboundSchema = openEnums.outboundSchema(SpeechRequestResponseFormat);
48
49
  /** @internal */
49
50
  export const SpeechRequest$outboundSchema = z.object({
50
- input: z.string(),
51
+ input: SpeechInput$outboundSchema,
51
52
  inputReferences: z.array(SpeechInputReference$outboundSchema).optional(),
53
+ instructions: z.string().optional(),
52
54
  model: z.string(),
53
55
  provider: z.lazy(() => SpeechRequestProvider$outboundSchema).optional(),
54
56
  responseFormat: SpeechRequestResponseFormat$outboundSchema.default("pcm"),
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v4";
2
+ export type SpeechTurn = {
3
+ /**
4
+ * Delivery instructions for this turn, such as tone, pacing, or emotion. Overrides the top-level `instructions`.
5
+ */
6
+ instructions?: string | undefined;
7
+ /**
8
+ * Text to synthesize
9
+ */
10
+ text: string;
11
+ /**
12
+ * Voice for this turn. Defaults to the top-level `voice`.
13
+ */
14
+ voice?: string | undefined;
15
+ };
16
+ /** @internal */
17
+ export type SpeechTurn$Outbound = {
18
+ instructions?: string | undefined;
19
+ text: string;
20
+ voice?: string | undefined;
21
+ };
22
+ /** @internal */
23
+ export declare const SpeechTurn$outboundSchema: z.ZodType<SpeechTurn$Outbound, SpeechTurn>;
24
+ export declare function speechTurnToJSON(speechTurn: SpeechTurn): string;
25
+ //# sourceMappingURL=speechturn.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 78beaa9d8388
4
+ */
5
+ import * as z from "zod/v4";
6
+ /** @internal */
7
+ export const SpeechTurn$outboundSchema = z.object({
8
+ instructions: z.string().optional(),
9
+ text: z.string(),
10
+ voice: z.string().optional(),
11
+ });
12
+ export function speechTurnToJSON(speechTurn) {
13
+ return JSON.stringify(SpeechTurn$outboundSchema.parse(speechTurn));
14
+ }
15
+ //# sourceMappingURL=speechturn.js.map
@@ -22,7 +22,7 @@ export type SwitchyardRouterPlugin = {
22
22
  algorithm?: Algorithm | undefined;
23
23
  id: "switchyard-router";
24
24
  /**
25
- * The model that runs the judge call for the judge-backed algorithms ("capability", "stage", and "composite"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-2.5-flash-lite, and reports the reason in the routing metadata. The judge call is billed to you like any other request.
25
+ * The model that runs the judge call for the judge-backed algorithms ("capability", "stage", and "composite"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-3.5-flash-lite, or openai/gpt-4o-mini when the default does not fit either, and reports the reason in the routing metadata. The judge call is billed to you like any other request.
26
26
  */
27
27
  judgeModel?: string | undefined;
28
28
  };
@@ -1,5 +1,5 @@
1
1
  import * as z from "zod/v4";
2
- import { ClosedEnum } from "../types/enums.js";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
3
  /**
4
4
  * Must be `urn:ietf:params:oauth:grant-type:token-exchange`.
5
5
  */
@@ -21,15 +21,16 @@ export declare const RequestedTokenType: {
21
21
  */
22
22
  export type RequestedTokenType = ClosedEnum<typeof RequestedTokenType>;
23
23
  /**
24
- * Optional; only `inference` is available.
24
+ * Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
25
25
  */
26
26
  export declare const TokenExchangeRequestScope: {
27
27
  readonly Inference: "inference";
28
+ readonly Management: "management";
28
29
  };
29
30
  /**
30
- * Optional; only `inference` is available.
31
+ * Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
31
32
  */
32
- export type TokenExchangeRequestScope = ClosedEnum<typeof TokenExchangeRequestScope>;
33
+ export type TokenExchangeRequestScope = OpenEnum<typeof TokenExchangeRequestScope>;
33
34
  /**
34
35
  * Must be `urn:ietf:params:oauth:token-type:jwt`.
35
36
  */
@@ -57,7 +58,7 @@ export type TokenExchangeRequest = {
57
58
  */
58
59
  requestedTokenType?: RequestedTokenType | undefined;
59
60
  /**
60
- * Optional; only `inference` is available.
61
+ * Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
61
62
  */
62
63
  scope?: TokenExchangeRequestScope | undefined;
63
64
  /**
@@ -74,7 +75,7 @@ export declare const GrantType$outboundSchema: z.ZodEnum<typeof GrantType>;
74
75
  /** @internal */
75
76
  export declare const RequestedTokenType$outboundSchema: z.ZodEnum<typeof RequestedTokenType>;
76
77
  /** @internal */
77
- export declare const TokenExchangeRequestScope$outboundSchema: z.ZodEnum<typeof TokenExchangeRequestScope>;
78
+ export declare const TokenExchangeRequestScope$outboundSchema: z.ZodType<string, TokenExchangeRequestScope>;
78
79
  /** @internal */
79
80
  export declare const SubjectTokenType$outboundSchema: z.ZodEnum<typeof SubjectTokenType>;
80
81
  /** @internal */
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
+ import * as openEnums from "../types/enums.js";
7
8
  /**
8
9
  * Must be `urn:ietf:params:oauth:grant-type:token-exchange`.
9
10
  */
@@ -17,10 +18,11 @@ export const RequestedTokenType = {
17
18
  UrnIetfParamsOauthTokenTypeAccessToken: "urn:ietf:params:oauth:token-type:access_token",
18
19
  };
19
20
  /**
20
- * Optional; only `inference` is available.
21
+ * Optional; when present must match the policy's key: `management` for a management key, `inference` otherwise.
21
22
  */
22
23
  export const TokenExchangeRequestScope = {
23
24
  Inference: "inference",
25
+ Management: "management",
24
26
  };
25
27
  /**
26
28
  * Must be `urn:ietf:params:oauth:token-type:jwt`.
@@ -33,7 +35,7 @@ export const GrantType$outboundSchema = z.enum(GrantType);
33
35
  /** @internal */
34
36
  export const RequestedTokenType$outboundSchema = z.enum(RequestedTokenType);
35
37
  /** @internal */
36
- export const TokenExchangeRequestScope$outboundSchema = z.enum(TokenExchangeRequestScope);
38
+ export const TokenExchangeRequestScope$outboundSchema = openEnums.outboundSchema(TokenExchangeRequestScope);
37
39
  /** @internal */
38
40
  export const SubjectTokenType$outboundSchema = z.enum(SubjectTokenType);
39
41
  /** @internal */
@@ -23,6 +23,9 @@ export type TokenExchangeResponse = {
23
23
  */
24
24
  expiresIn: number;
25
25
  issuedTokenType: IssuedTokenType;
26
+ /**
27
+ * The one capability the token grants, fixed by the kind of key the policy acts as: `inference` or `management`.
28
+ */
26
29
  scope: string;
27
30
  tokenType: TokenType;
28
31
  };
@@ -0,0 +1,47 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ export declare const ToolSearchCallItemExecution: {
4
+ readonly Server: "server";
5
+ readonly Client: "client";
6
+ };
7
+ export type ToolSearchCallItemExecution = OpenEnum<typeof ToolSearchCallItemExecution>;
8
+ export declare const ToolSearchCallItemStatus: {
9
+ readonly InProgress: "in_progress";
10
+ readonly Completed: "completed";
11
+ readonly Incomplete: "incomplete";
12
+ };
13
+ export type ToolSearchCallItemStatus = OpenEnum<typeof ToolSearchCallItemStatus>;
14
+ export declare const ToolSearchCallItemType: {
15
+ readonly ToolSearchCall: "tool_search_call";
16
+ };
17
+ export type ToolSearchCallItemType = ClosedEnum<typeof ToolSearchCallItemType>;
18
+ /**
19
+ * A tool search call the client executed
20
+ */
21
+ export type ToolSearchCallItem = {
22
+ arguments?: any | undefined;
23
+ callId: string;
24
+ execution: ToolSearchCallItemExecution;
25
+ id?: string | null | undefined;
26
+ status?: ToolSearchCallItemStatus | null | undefined;
27
+ type: ToolSearchCallItemType;
28
+ };
29
+ /** @internal */
30
+ export declare const ToolSearchCallItemExecution$outboundSchema: z.ZodType<string, ToolSearchCallItemExecution>;
31
+ /** @internal */
32
+ export declare const ToolSearchCallItemStatus$outboundSchema: z.ZodType<string, ToolSearchCallItemStatus>;
33
+ /** @internal */
34
+ export declare const ToolSearchCallItemType$outboundSchema: z.ZodEnum<typeof ToolSearchCallItemType>;
35
+ /** @internal */
36
+ export type ToolSearchCallItem$Outbound = {
37
+ arguments?: any | undefined;
38
+ call_id: string;
39
+ execution: string;
40
+ id?: string | null | undefined;
41
+ status?: string | null | undefined;
42
+ type: string;
43
+ };
44
+ /** @internal */
45
+ export declare const ToolSearchCallItem$outboundSchema: z.ZodType<ToolSearchCallItem$Outbound, ToolSearchCallItem>;
46
+ export declare function toolSearchCallItemToJSON(toolSearchCallItem: ToolSearchCallItem): string;
47
+ //# sourceMappingURL=toolsearchcallitem.d.ts.map
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9df1be472c40
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ export const ToolSearchCallItemExecution = {
9
+ Server: "server",
10
+ Client: "client",
11
+ };
12
+ export const ToolSearchCallItemStatus = {
13
+ InProgress: "in_progress",
14
+ Completed: "completed",
15
+ Incomplete: "incomplete",
16
+ };
17
+ export const ToolSearchCallItemType = {
18
+ ToolSearchCall: "tool_search_call",
19
+ };
20
+ /** @internal */
21
+ export const ToolSearchCallItemExecution$outboundSchema = openEnums.outboundSchema(ToolSearchCallItemExecution);
22
+ /** @internal */
23
+ export const ToolSearchCallItemStatus$outboundSchema = openEnums.outboundSchema(ToolSearchCallItemStatus);
24
+ /** @internal */
25
+ export const ToolSearchCallItemType$outboundSchema = z.enum(ToolSearchCallItemType);
26
+ /** @internal */
27
+ export const ToolSearchCallItem$outboundSchema = z.object({
28
+ arguments: z.any().optional(),
29
+ callId: z.string(),
30
+ execution: ToolSearchCallItemExecution$outboundSchema,
31
+ id: z.nullable(z.string()).optional(),
32
+ status: z.nullable(ToolSearchCallItemStatus$outboundSchema).optional(),
33
+ type: ToolSearchCallItemType$outboundSchema,
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ callId: "call_id",
37
+ });
38
+ });
39
+ export function toolSearchCallItemToJSON(toolSearchCallItem) {
40
+ return JSON.stringify(ToolSearchCallItem$outboundSchema.parse(toolSearchCallItem));
41
+ }
42
+ //# sourceMappingURL=toolsearchcallitem.js.map
@@ -0,0 +1,150 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ import { AdvisorServerToolOpenRouter, AdvisorServerToolOpenRouter$Outbound } from "./advisorservertoolopenrouter.js";
4
+ import { ApplyPatchServerTool, ApplyPatchServerTool$Outbound } from "./applypatchservertool.js";
5
+ import { ApplyPatchServerToolOpenRouter, ApplyPatchServerToolOpenRouter$Outbound } from "./applypatchservertoolopenrouter.js";
6
+ import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
7
+ import { CodeInterpreterServerTool, CodeInterpreterServerTool$Outbound } from "./codeinterpreterservertool.js";
8
+ import { CodexLocalShellTool, CodexLocalShellTool$Outbound } from "./codexlocalshelltool.js";
9
+ import { ComputerUseServerTool, ComputerUseServerTool$Outbound } from "./computeruseservertool.js";
10
+ import { CustomTool, CustomTool$Outbound } from "./customtool.js";
11
+ import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
12
+ import { FileSearchServerTool, FileSearchServerTool$Outbound } from "./filesearchservertool.js";
13
+ import { FilesServerTool, FilesServerTool$Outbound } from "./filesservertool.js";
14
+ import { FusionServerToolOpenRouter, FusionServerToolOpenRouter$Outbound } from "./fusionservertoolopenrouter.js";
15
+ import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from "./imagegenerationservertool.js";
16
+ import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
17
+ import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js";
18
+ import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js";
19
+ import { NamespaceTool, NamespaceTool$Outbound } from "./namespacetool.js";
20
+ import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$Outbound } from "./preview20250311websearchservertool.js";
21
+ import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js";
22
+ import { SearchModelsServerToolOpenRouter, SearchModelsServerToolOpenRouter$Outbound } from "./searchmodelsservertoolopenrouter.js";
23
+ import { ShellServerTool, ShellServerTool$Outbound } from "./shellservertool.js";
24
+ import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js";
25
+ import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
26
+ import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js";
27
+ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
28
+ import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
29
+ import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
30
+ export declare const ToolSearchOutputItemExecution: {
31
+ readonly Server: "server";
32
+ readonly Client: "client";
33
+ };
34
+ export type ToolSearchOutputItemExecution = OpenEnum<typeof ToolSearchOutputItemExecution>;
35
+ export declare const ToolSearchOutputItemStatus: {
36
+ readonly InProgress: "in_progress";
37
+ readonly Completed: "completed";
38
+ readonly Incomplete: "incomplete";
39
+ };
40
+ export type ToolSearchOutputItemStatus = OpenEnum<typeof ToolSearchOutputItemStatus>;
41
+ export type ToolSearchOutputItemTool = {
42
+ type: string;
43
+ additionalProperties?: {
44
+ [k: string]: any;
45
+ } | undefined;
46
+ };
47
+ export declare const ToolSearchOutputItemTypeFunction: {
48
+ readonly Function: "function";
49
+ };
50
+ export type ToolSearchOutputItemTypeFunction = ClosedEnum<typeof ToolSearchOutputItemTypeFunction>;
51
+ export declare const ToolSearchOutputItemAllowedCaller: {
52
+ readonly Direct: "direct";
53
+ readonly Programmatic: "programmatic";
54
+ };
55
+ export type ToolSearchOutputItemAllowedCaller = OpenEnum<typeof ToolSearchOutputItemAllowedCaller>;
56
+ /**
57
+ * Function tool definition
58
+ */
59
+ export type ToolSearchOutputItemToolFunction = {
60
+ description?: string | null | undefined;
61
+ name: string;
62
+ parameters: {
63
+ [k: string]: any;
64
+ } | null;
65
+ strict?: boolean | null | undefined;
66
+ type: ToolSearchOutputItemTypeFunction;
67
+ allowedCallers?: Array<ToolSearchOutputItemAllowedCaller> | null | undefined;
68
+ /**
69
+ * Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere.
70
+ */
71
+ async?: boolean | undefined;
72
+ /**
73
+ * Withhold this tool from the model until `openrouter:tool_search` finds it. Where the request declares no search tool, OpenRouter may add `openrouter:tool_search` to serve the flag, and otherwise sends the tool in full. A request that declares the search tool itself must keep at least one tool non-deferred.
74
+ */
75
+ deferLoading?: boolean | undefined;
76
+ outputSchema?: {
77
+ [k: string]: any;
78
+ } | null | undefined;
79
+ };
80
+ export type ToolSearchOutputItemToolUnion = ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool;
81
+ export declare const TypeToolSearchOutput: {
82
+ readonly ToolSearchOutput: "tool_search_output";
83
+ };
84
+ export type TypeToolSearchOutput = ClosedEnum<typeof TypeToolSearchOutput>;
85
+ /**
86
+ * The tools a client-executed tool search loaded
87
+ */
88
+ export type ToolSearchOutputItem = {
89
+ callId: string;
90
+ execution: ToolSearchOutputItemExecution;
91
+ id?: string | null | undefined;
92
+ status?: ToolSearchOutputItemStatus | null | undefined;
93
+ tools: Array<ComputerUseServerTool | NamespaceTool | ToolSearchOutputItemToolFunction | FileSearchServerTool | CodeInterpreterServerTool | McpServerTool | CustomTool | PreviewWebSearchServerTool | Preview20250311WebSearchServerTool | LegacyWebSearchServerTool | WebSearchServerTool | ImageGenerationServerTool | CodexLocalShellTool | ShellServerTool | ApplyPatchServerTool | AdvisorServerToolOpenRouter | SubagentServerToolOpenRouter | DatetimeServerTool | FilesServerTool | FusionServerToolOpenRouter | ImageGenerationServerToolOpenRouter | SearchModelsServerToolOpenRouter | WebFetchServerTool | WebSearchServerToolOpenRouter | ApplyPatchServerToolOpenRouter | BashServerTool | ShellServerToolOpenRouter | ToolSearchServerTool | ToolSearchOutputItemTool>;
94
+ type: TypeToolSearchOutput;
95
+ };
96
+ /** @internal */
97
+ export declare const ToolSearchOutputItemExecution$outboundSchema: z.ZodType<string, ToolSearchOutputItemExecution>;
98
+ /** @internal */
99
+ export declare const ToolSearchOutputItemStatus$outboundSchema: z.ZodType<string, ToolSearchOutputItemStatus>;
100
+ /** @internal */
101
+ export type ToolSearchOutputItemTool$Outbound = {
102
+ type: string;
103
+ [additionalProperties: string]: unknown;
104
+ };
105
+ /** @internal */
106
+ export declare const ToolSearchOutputItemTool$outboundSchema: z.ZodType<ToolSearchOutputItemTool$Outbound, ToolSearchOutputItemTool>;
107
+ export declare function toolSearchOutputItemToolToJSON(toolSearchOutputItemTool: ToolSearchOutputItemTool): string;
108
+ /** @internal */
109
+ export declare const ToolSearchOutputItemTypeFunction$outboundSchema: z.ZodEnum<typeof ToolSearchOutputItemTypeFunction>;
110
+ /** @internal */
111
+ export declare const ToolSearchOutputItemAllowedCaller$outboundSchema: z.ZodType<string, ToolSearchOutputItemAllowedCaller>;
112
+ /** @internal */
113
+ export type ToolSearchOutputItemToolFunction$Outbound = {
114
+ description?: string | null | undefined;
115
+ name: string;
116
+ parameters: {
117
+ [k: string]: any;
118
+ } | null;
119
+ strict?: boolean | null | undefined;
120
+ type: string;
121
+ allowed_callers?: Array<string> | null | undefined;
122
+ async?: boolean | undefined;
123
+ defer_loading?: boolean | undefined;
124
+ output_schema?: {
125
+ [k: string]: any;
126
+ } | null | undefined;
127
+ };
128
+ /** @internal */
129
+ export declare const ToolSearchOutputItemToolFunction$outboundSchema: z.ZodType<ToolSearchOutputItemToolFunction$Outbound, ToolSearchOutputItemToolFunction>;
130
+ export declare function toolSearchOutputItemToolFunctionToJSON(toolSearchOutputItemToolFunction: ToolSearchOutputItemToolFunction): string;
131
+ /** @internal */
132
+ export type ToolSearchOutputItemToolUnion$Outbound = ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound;
133
+ /** @internal */
134
+ export declare const ToolSearchOutputItemToolUnion$outboundSchema: z.ZodType<ToolSearchOutputItemToolUnion$Outbound, ToolSearchOutputItemToolUnion>;
135
+ export declare function toolSearchOutputItemToolUnionToJSON(toolSearchOutputItemToolUnion: ToolSearchOutputItemToolUnion): string;
136
+ /** @internal */
137
+ export declare const TypeToolSearchOutput$outboundSchema: z.ZodEnum<typeof TypeToolSearchOutput>;
138
+ /** @internal */
139
+ export type ToolSearchOutputItem$Outbound = {
140
+ call_id: string;
141
+ execution: string;
142
+ id?: string | null | undefined;
143
+ status?: string | null | undefined;
144
+ tools: Array<ComputerUseServerTool$Outbound | NamespaceTool$Outbound | ToolSearchOutputItemToolFunction$Outbound | FileSearchServerTool$Outbound | CodeInterpreterServerTool$Outbound | McpServerTool$Outbound | CustomTool$Outbound | PreviewWebSearchServerTool$Outbound | Preview20250311WebSearchServerTool$Outbound | LegacyWebSearchServerTool$Outbound | WebSearchServerTool$Outbound | ImageGenerationServerTool$Outbound | CodexLocalShellTool$Outbound | ShellServerTool$Outbound | ApplyPatchServerTool$Outbound | AdvisorServerToolOpenRouter$Outbound | SubagentServerToolOpenRouter$Outbound | DatetimeServerTool$Outbound | FilesServerTool$Outbound | FusionServerToolOpenRouter$Outbound | ImageGenerationServerToolOpenRouter$Outbound | SearchModelsServerToolOpenRouter$Outbound | WebFetchServerTool$Outbound | WebSearchServerToolOpenRouter$Outbound | ApplyPatchServerToolOpenRouter$Outbound | BashServerTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound | ToolSearchOutputItemTool$Outbound>;
145
+ type: string;
146
+ };
147
+ /** @internal */
148
+ export declare const ToolSearchOutputItem$outboundSchema: z.ZodType<ToolSearchOutputItem$Outbound, ToolSearchOutputItem>;
149
+ export declare function toolSearchOutputItemToJSON(toolSearchOutputItem: ToolSearchOutputItem): string;
150
+ //# sourceMappingURL=toolsearchoutputitem.d.ts.map