@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
@@ -37,6 +37,10 @@ export type CreateObservabilityDestinationRequest = {
37
37
  * When true, include cost and billing generation metadata.
38
38
  */
39
39
  broadcastGenerationCost?: boolean | undefined;
40
+ /**
41
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
42
+ */
43
+ broadcastGenerationCostAllocation?: boolean | undefined;
40
44
  /**
41
45
  * When true, include identity generation metadata.
42
46
  */
@@ -90,6 +94,7 @@ export declare const CreateObservabilityDestinationRequestType$outboundSchema: z
90
94
  export type CreateObservabilityDestinationRequest$Outbound = {
91
95
  api_key_hashes?: Array<string> | null | undefined;
92
96
  broadcast_generation_cost: boolean;
97
+ broadcast_generation_cost_allocation: boolean;
93
98
  broadcast_generation_identity: boolean;
94
99
  broadcast_generation_request_context: boolean;
95
100
  config: {
@@ -36,6 +36,7 @@ export const CreateObservabilityDestinationRequestType$outboundSchema = openEnum
36
36
  export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
37
37
  apiKeyHashes: z.nullable(z.array(z.string())).optional(),
38
38
  broadcastGenerationCost: z.boolean().default(false),
39
+ broadcastGenerationCostAllocation: z.boolean().default(false),
39
40
  broadcastGenerationIdentity: z.boolean().default(false),
40
41
  broadcastGenerationRequestContext: z.boolean().default(false),
41
42
  config: z.record(z.string(), z.any()),
@@ -52,6 +53,7 @@ export const CreateObservabilityDestinationRequest$outboundSchema = z.object({
52
53
  return remap$(v, {
53
54
  apiKeyHashes: "api_key_hashes",
54
55
  broadcastGenerationCost: "broadcast_generation_cost",
56
+ broadcastGenerationCostAllocation: "broadcast_generation_cost_allocation",
55
57
  broadcastGenerationIdentity: "broadcast_generation_identity",
56
58
  broadcastGenerationRequestContext: "broadcast_generation_request_context",
57
59
  filterRules: "filter_rules",
@@ -29,6 +29,7 @@ export type CustomTool = {
29
29
  * 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.
30
30
  */
31
31
  async?: boolean | undefined;
32
+ deferLoading?: boolean | undefined;
32
33
  description?: string | undefined;
33
34
  format?: FormatText | FormatGrammar | discriminatedUnionTypes.Unknown<"type"> | undefined;
34
35
  name: string;
@@ -77,6 +78,7 @@ export declare const CustomTool$inboundSchema: z.ZodType<CustomTool, unknown>;
77
78
  /** @internal */
78
79
  export type CustomTool$Outbound = {
79
80
  async?: boolean | undefined;
81
+ defer_loading?: boolean | undefined;
80
82
  description?: string | undefined;
81
83
  format?: FormatText$Outbound | FormatGrammar$Outbound | undefined;
82
84
  name: string;
@@ -3,6 +3,7 @@
3
3
  * @generated-id: b293ddf87321
4
4
  */
5
5
  import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
7
8
  import { discriminatedUnion } from "../types/discriminatedUnion.js";
8
9
  import * as openEnums from "../types/enums.js";
@@ -78,6 +79,7 @@ export const CustomToolTypeCustom$outboundSchema = CustomToolTypeCustom$inboundS
78
79
  export const CustomTool$inboundSchema = z
79
80
  .object({
80
81
  async: z.boolean().optional(),
82
+ defer_loading: z.boolean().optional(),
81
83
  description: z.string().optional(),
82
84
  format: discriminatedUnion("type", {
83
85
  text: z.lazy(() => FormatText$inboundSchema),
@@ -85,10 +87,15 @@ export const CustomTool$inboundSchema = z
85
87
  }).optional(),
86
88
  name: z.string(),
87
89
  type: CustomToolTypeCustom$inboundSchema,
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ "defer_loading": "deferLoading",
93
+ });
88
94
  });
89
95
  /** @internal */
90
96
  export const CustomTool$outboundSchema = z.object({
91
97
  async: z.boolean().optional(),
98
+ deferLoading: z.boolean().optional(),
92
99
  description: z.string().optional(),
93
100
  format: z.union([
94
101
  z.lazy(() => FormatText$outboundSchema),
@@ -96,6 +103,10 @@ export const CustomTool$outboundSchema = z.object({
96
103
  ]).optional(),
97
104
  name: z.string(),
98
105
  type: CustomToolTypeCustom$outboundSchema,
106
+ }).transform((v) => {
107
+ return remap$(v, {
108
+ deferLoading: "defer_loading",
109
+ });
99
110
  });
100
111
  export function customToolToJSON(customTool) {
101
112
  return JSON.stringify(CustomTool$outboundSchema.parse(customTool));
@@ -0,0 +1,21 @@
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 Box = {
5
+ bottom: number;
6
+ left: number;
7
+ right: number;
8
+ top: number;
9
+ };
10
+ export type DecisionsBoxAnswer = {
11
+ box: Box;
12
+ confidence?: number | undefined;
13
+ type: "box";
14
+ };
15
+ /** @internal */
16
+ export declare const Box$inboundSchema: z.ZodType<Box, unknown>;
17
+ export declare function boxFromJSON(jsonString: string): SafeParseResult<Box, SDKValidationError>;
18
+ /** @internal */
19
+ export declare const DecisionsBoxAnswer$inboundSchema: z.ZodType<DecisionsBoxAnswer, unknown>;
20
+ export declare function decisionsBoxAnswerFromJSON(jsonString: string): SafeParseResult<DecisionsBoxAnswer, SDKValidationError>;
21
+ //# sourceMappingURL=decisionsboxanswer.d.ts.map
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3c99e6f4aecb
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const Box$inboundSchema = z.object({
9
+ bottom: z.number(),
10
+ left: z.number(),
11
+ right: z.number(),
12
+ top: z.number(),
13
+ });
14
+ export function boxFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => Box$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Box' from JSON`);
16
+ }
17
+ /** @internal */
18
+ export const DecisionsBoxAnswer$inboundSchema = z.object({
19
+ box: z.lazy(() => Box$inboundSchema),
20
+ confidence: z.number().optional(),
21
+ type: z.literal("box"),
22
+ });
23
+ export function decisionsBoxAnswerFromJSON(jsonString) {
24
+ return safeParse(jsonString, (x) => DecisionsBoxAnswer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DecisionsBoxAnswer' from JSON`);
25
+ }
26
+ //# sourceMappingURL=decisionsboxanswer.js.map
@@ -0,0 +1,34 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * A plain string, or a JSON object or array of structured guidance.
4
+ */
5
+ export type DecisionsBoxQuestionInstructions = string | {
6
+ [k: string]: any;
7
+ } | Array<any>;
8
+ export type DecisionsBoxQuestion = {
9
+ /**
10
+ * A plain string, or a JSON object or array of structured guidance.
11
+ */
12
+ instructions: string | {
13
+ [k: string]: any;
14
+ } | Array<any>;
15
+ type: "box";
16
+ };
17
+ /** @internal */
18
+ export type DecisionsBoxQuestionInstructions$Outbound = string | {
19
+ [k: string]: any;
20
+ } | Array<any>;
21
+ /** @internal */
22
+ export declare const DecisionsBoxQuestionInstructions$outboundSchema: z.ZodType<DecisionsBoxQuestionInstructions$Outbound, DecisionsBoxQuestionInstructions>;
23
+ export declare function decisionsBoxQuestionInstructionsToJSON(decisionsBoxQuestionInstructions: DecisionsBoxQuestionInstructions): string;
24
+ /** @internal */
25
+ export type DecisionsBoxQuestion$Outbound = {
26
+ instructions: string | {
27
+ [k: string]: any;
28
+ } | Array<any>;
29
+ type: "box";
30
+ };
31
+ /** @internal */
32
+ export declare const DecisionsBoxQuestion$outboundSchema: z.ZodType<DecisionsBoxQuestion$Outbound, DecisionsBoxQuestion>;
33
+ export declare function decisionsBoxQuestionToJSON(decisionsBoxQuestion: DecisionsBoxQuestion): string;
34
+ //# sourceMappingURL=decisionsboxquestion.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6eacc9460742
4
+ */
5
+ import * as z from "zod/v4";
6
+ /** @internal */
7
+ export const DecisionsBoxQuestionInstructions$outboundSchema = z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
8
+ export function decisionsBoxQuestionInstructionsToJSON(decisionsBoxQuestionInstructions) {
9
+ return JSON.stringify(DecisionsBoxQuestionInstructions$outboundSchema.parse(decisionsBoxQuestionInstructions));
10
+ }
11
+ /** @internal */
12
+ export const DecisionsBoxQuestion$outboundSchema = z.object({
13
+ instructions: z.union([
14
+ z.string(),
15
+ z.record(z.string(), z.any()),
16
+ z.array(z.any()),
17
+ ]),
18
+ type: z.literal("box"),
19
+ });
20
+ export function decisionsBoxQuestionToJSON(decisionsBoxQuestion) {
21
+ return JSON.stringify(DecisionsBoxQuestion$outboundSchema.parse(decisionsBoxQuestion));
22
+ }
23
+ //# sourceMappingURL=decisionsboxquestion.js.map
@@ -1,13 +1,14 @@
1
1
  import * as z from "zod/v4";
2
+ import { DecisionsBoxQuestion, DecisionsBoxQuestion$Outbound } from "./decisionsboxquestion.js";
2
3
  import { DecisionsChoiceQuestion, DecisionsChoiceQuestion$Outbound } from "./decisionschoicequestion.js";
3
4
  import { DecisionsNoulQuestion, DecisionsNoulQuestion$Outbound } from "./decisionsnoulquestion.js";
4
5
  import { DecisionsScoreQuestion, DecisionsScoreQuestion$Outbound } from "./decisionsscorequestion.js";
5
6
  import { ProviderPreferences, ProviderPreferences$Outbound } from "./providerpreferences.js";
6
7
  import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
7
8
  /**
8
- * A Decisions question using a boolean, choice, or ordered score evaluation.
9
+ * A Decisions question using a boolean, choice, ordered score, or image bounding-box evaluation.
9
10
  */
10
- export type Questions = DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion;
11
+ export type Questions = DecisionsBoxQuestion | DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion;
11
12
  /**
12
13
  * The content to evaluate: a plain string, or a JSON object or array of related context.
13
14
  */
@@ -18,7 +19,7 @@ export type DecisionsRequest = {
18
19
  model: string;
19
20
  provider?: ProviderPreferences | null | undefined;
20
21
  questions: {
21
- [k: string]: DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion;
22
+ [k: string]: DecisionsBoxQuestion | DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion;
22
23
  };
23
24
  /**
24
25
  * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
@@ -37,7 +38,7 @@ export type DecisionsRequest = {
37
38
  user?: string | undefined;
38
39
  };
39
40
  /** @internal */
40
- export type Questions$Outbound = DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound;
41
+ export type Questions$Outbound = DecisionsBoxQuestion$Outbound | DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound;
41
42
  /** @internal */
42
43
  export declare const Questions$outboundSchema: z.ZodType<Questions$Outbound, Questions>;
43
44
  export declare function questionsToJSON(questions: Questions): string;
@@ -53,7 +54,7 @@ export type DecisionsRequest$Outbound = {
53
54
  model: string;
54
55
  provider?: ProviderPreferences$Outbound | null | undefined;
55
56
  questions: {
56
- [k: string]: DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound;
57
+ [k: string]: DecisionsBoxQuestion$Outbound | DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound;
57
58
  };
58
59
  session_id?: string | undefined;
59
60
  state: string | {
@@ -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 { DecisionsBoxQuestion$outboundSchema, } from "./decisionsboxquestion.js";
7
8
  import { DecisionsChoiceQuestion$outboundSchema, } from "./decisionschoicequestion.js";
8
9
  import { DecisionsNoulQuestion$outboundSchema, } from "./decisionsnoulquestion.js";
9
10
  import { DecisionsScoreQuestion$outboundSchema, } from "./decisionsscorequestion.js";
@@ -11,6 +12,7 @@ import { ProviderPreferences$outboundSchema, } from "./providerpreferences.js";
11
12
  import { TraceConfig$outboundSchema, } from "./traceconfig.js";
12
13
  /** @internal */
13
14
  export const Questions$outboundSchema = z.union([
15
+ DecisionsBoxQuestion$outboundSchema,
14
16
  DecisionsChoiceQuestion$outboundSchema,
15
17
  DecisionsNoulQuestion$outboundSchema,
16
18
  DecisionsScoreQuestion$outboundSchema,
@@ -32,6 +34,7 @@ export const DecisionsRequest$outboundSchema = z.object({
32
34
  model: z.string(),
33
35
  provider: z.nullable(ProviderPreferences$outboundSchema).optional(),
34
36
  questions: z.record(z.string(), z.union([
37
+ DecisionsBoxQuestion$outboundSchema,
35
38
  DecisionsChoiceQuestion$outboundSchema,
36
39
  DecisionsNoulQuestion$outboundSchema,
37
40
  DecisionsScoreQuestion$outboundSchema,
@@ -1,14 +1,15 @@
1
1
  import * as z from "zod/v4";
2
2
  import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { DecisionsBoxAnswer } from "./decisionsboxanswer.js";
4
5
  import { DecisionsChoiceAnswer } from "./decisionschoiceanswer.js";
5
6
  import { DecisionsNoulAnswer } from "./decisionsnoulanswer.js";
6
7
  import { DecisionsScoreAnswer } from "./decisionsscoreanswer.js";
7
8
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
8
9
  /**
9
- * A Decisions answer using a boolean, choice, or score evaluation.
10
+ * A Decisions answer using a boolean, choice, score, or image bounding-box evaluation.
10
11
  */
11
- export type Answers = DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">;
12
+ export type Answers = DecisionsBoxAnswer | DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">;
12
13
  export type DecisionsResponseUsage = {
13
14
  cost?: number | undefined;
14
15
  inputTokens: number;
@@ -16,7 +17,7 @@ export type DecisionsResponseUsage = {
16
17
  };
17
18
  export type DecisionsResponse = {
18
19
  answers: {
19
- [k: string]: DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">;
20
+ [k: string]: DecisionsBoxAnswer | DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">;
20
21
  };
21
22
  id?: string | undefined;
22
23
  model: string;
@@ -6,11 +6,13 @@ 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
8
  import { discriminatedUnion } from "../types/discriminatedUnion.js";
9
+ import { DecisionsBoxAnswer$inboundSchema, } from "./decisionsboxanswer.js";
9
10
  import { DecisionsChoiceAnswer$inboundSchema, } from "./decisionschoiceanswer.js";
10
11
  import { DecisionsNoulAnswer$inboundSchema, } from "./decisionsnoulanswer.js";
11
12
  import { DecisionsScoreAnswer$inboundSchema, } from "./decisionsscoreanswer.js";
12
13
  /** @internal */
13
14
  export const Answers$inboundSchema = discriminatedUnion("type", {
15
+ box: DecisionsBoxAnswer$inboundSchema,
14
16
  choice: DecisionsChoiceAnswer$inboundSchema,
15
17
  noul: DecisionsNoulAnswer$inboundSchema,
16
18
  score: DecisionsScoreAnswer$inboundSchema,
@@ -35,6 +37,7 @@ export function decisionsResponseUsageFromJSON(jsonString) {
35
37
  /** @internal */
36
38
  export const DecisionsResponse$inboundSchema = z.object({
37
39
  answers: z.record(z.string(), discriminatedUnion("type", {
40
+ box: DecisionsBoxAnswer$inboundSchema,
38
41
  choice: DecisionsChoiceAnswer$inboundSchema,
39
42
  noul: DecisionsNoulAnswer$inboundSchema,
40
43
  score: DecisionsScoreAnswer$inboundSchema,
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Deterministic BM25 retrieval over supplied tool definitions.
4
+ */
5
+ export type DeferredBm25Search = {
6
+ maxResults?: number | undefined;
7
+ type: "bm25";
8
+ };
9
+ /** @internal */
10
+ export type DeferredBm25Search$Outbound = {
11
+ max_results?: number | undefined;
12
+ type: "bm25";
13
+ };
14
+ /** @internal */
15
+ export declare const DeferredBm25Search$outboundSchema: z.ZodType<DeferredBm25Search$Outbound, DeferredBm25Search>;
16
+ export declare function deferredBm25SearchToJSON(deferredBm25Search: DeferredBm25Search): string;
17
+ //# sourceMappingURL=deferredbm25search.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e5f784d4b792
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeferredBm25Search$outboundSchema = z.object({
9
+ maxResults: z.int().optional(),
10
+ type: z.literal("bm25"),
11
+ }).transform((v) => {
12
+ return remap$(v, {
13
+ maxResults: "max_results",
14
+ });
15
+ });
16
+ export function deferredBm25SearchToJSON(deferredBm25Search) {
17
+ return JSON.stringify(DeferredBm25Search$outboundSchema.parse(deferredBm25Search));
18
+ }
19
+ //# sourceMappingURL=deferredbm25search.js.map
@@ -0,0 +1,21 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Caller-executed search returning existing tool identities under result_key.
4
+ */
5
+ export type DeferredCustomSearch = {
6
+ maxResults?: number | undefined;
7
+ resultKey: string;
8
+ toolId: string;
9
+ type: "custom";
10
+ };
11
+ /** @internal */
12
+ export type DeferredCustomSearch$Outbound = {
13
+ max_results?: number | undefined;
14
+ result_key: string;
15
+ tool_id: string;
16
+ type: "custom";
17
+ };
18
+ /** @internal */
19
+ export declare const DeferredCustomSearch$outboundSchema: z.ZodType<DeferredCustomSearch$Outbound, DeferredCustomSearch>;
20
+ export declare function deferredCustomSearchToJSON(deferredCustomSearch: DeferredCustomSearch): string;
21
+ //# sourceMappingURL=deferredcustomsearch.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: dc25441f118f
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeferredCustomSearch$outboundSchema = z.object({
9
+ maxResults: z.int().optional(),
10
+ resultKey: z.string(),
11
+ toolId: z.string(),
12
+ type: z.literal("custom"),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ maxResults: "max_results",
16
+ resultKey: "result_key",
17
+ toolId: "tool_id",
18
+ });
19
+ });
20
+ export function deferredCustomSearchToJSON(deferredCustomSearch) {
21
+ return JSON.stringify(DeferredCustomSearch$outboundSchema.parse(deferredCustomSearch));
22
+ }
23
+ //# sourceMappingURL=deferredcustomsearch.js.map
@@ -0,0 +1,17 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Versioned safe-regex retrieval over supplied tool definitions.
4
+ */
5
+ export type DeferredRegexSearch = {
6
+ maxResults?: number | undefined;
7
+ type: "regex";
8
+ };
9
+ /** @internal */
10
+ export type DeferredRegexSearch$Outbound = {
11
+ max_results?: number | undefined;
12
+ type: "regex";
13
+ };
14
+ /** @internal */
15
+ export declare const DeferredRegexSearch$outboundSchema: z.ZodType<DeferredRegexSearch$Outbound, DeferredRegexSearch>;
16
+ export declare function deferredRegexSearchToJSON(deferredRegexSearch: DeferredRegexSearch): string;
17
+ //# sourceMappingURL=deferredregexsearch.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5304a4a58a5d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeferredRegexSearch$outboundSchema = z.object({
9
+ maxResults: z.int().optional(),
10
+ type: z.literal("regex"),
11
+ }).transform((v) => {
12
+ return remap$(v, {
13
+ maxResults: "max_results",
14
+ });
15
+ });
16
+ export function deferredRegexSearchToJSON(deferredRegexSearch) {
17
+ return JSON.stringify(DeferredRegexSearch$outboundSchema.parse(deferredRegexSearch));
18
+ }
19
+ //# sourceMappingURL=deferredregexsearch.js.map
@@ -0,0 +1,62 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { DeferredToolsSearchStrategy, DeferredToolsSearchStrategy$Outbound } from "./deferredtoolssearchstrategy.js";
4
+ /**
5
+ * Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.
6
+ */
7
+ export declare const Profile: {
8
+ readonly Portable: "portable";
9
+ };
10
+ /**
11
+ * Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.
12
+ */
13
+ export type Profile = ClosedEnum<typeof Profile>;
14
+ export declare const Protocol: {
15
+ readonly V1: "v1";
16
+ };
17
+ export type Protocol = ClosedEnum<typeof Protocol>;
18
+ /**
19
+ * Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.
20
+ */
21
+ export declare const Validation: {
22
+ readonly Runtime: "runtime";
23
+ };
24
+ /**
25
+ * Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.
26
+ */
27
+ export type Validation = ClosedEnum<typeof Validation>;
28
+ /**
29
+ * Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.
30
+ */
31
+ export type DeferredToolsControl = {
32
+ /**
33
+ * Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.
34
+ */
35
+ profile: Profile;
36
+ protocol: Protocol;
37
+ /**
38
+ * Router-local regex/BM25 or caller-owned custom search.
39
+ */
40
+ search: DeferredToolsSearchStrategy;
41
+ /**
42
+ * Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.
43
+ */
44
+ validation: Validation;
45
+ };
46
+ /** @internal */
47
+ export declare const Profile$outboundSchema: z.ZodEnum<typeof Profile>;
48
+ /** @internal */
49
+ export declare const Protocol$outboundSchema: z.ZodEnum<typeof Protocol>;
50
+ /** @internal */
51
+ export declare const Validation$outboundSchema: z.ZodEnum<typeof Validation>;
52
+ /** @internal */
53
+ export type DeferredToolsControl$Outbound = {
54
+ profile: string;
55
+ protocol: string;
56
+ search: DeferredToolsSearchStrategy$Outbound;
57
+ validation: string;
58
+ };
59
+ /** @internal */
60
+ export declare const DeferredToolsControl$outboundSchema: z.ZodType<DeferredToolsControl$Outbound, DeferredToolsControl>;
61
+ export declare function deferredToolsControlToJSON(deferredToolsControl: DeferredToolsControl): string;
62
+ //# sourceMappingURL=deferredtoolscontrol.d.ts.map
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 117738d3058e
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { DeferredToolsSearchStrategy$outboundSchema, } from "./deferredtoolssearchstrategy.js";
7
+ /**
8
+ * Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.
9
+ */
10
+ export const Profile = {
11
+ Portable: "portable",
12
+ };
13
+ export const Protocol = {
14
+ V1: "v1",
15
+ };
16
+ /**
17
+ * Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.
18
+ */
19
+ export const Validation = {
20
+ Runtime: "runtime",
21
+ };
22
+ /** @internal */
23
+ export const Profile$outboundSchema = z.enum(Profile);
24
+ /** @internal */
25
+ export const Protocol$outboundSchema = z.enum(Protocol);
26
+ /** @internal */
27
+ export const Validation$outboundSchema = z.enum(Validation);
28
+ /** @internal */
29
+ export const DeferredToolsControl$outboundSchema = z.object({
30
+ profile: Profile$outboundSchema,
31
+ protocol: Protocol$outboundSchema,
32
+ search: DeferredToolsSearchStrategy$outboundSchema,
33
+ validation: Validation$outboundSchema,
34
+ });
35
+ export function deferredToolsControlToJSON(deferredToolsControl) {
36
+ return JSON.stringify(DeferredToolsControl$outboundSchema.parse(deferredToolsControl));
37
+ }
38
+ //# sourceMappingURL=deferredtoolscontrol.js.map
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4";
2
+ import { DeferredBm25Search, DeferredBm25Search$Outbound } from "./deferredbm25search.js";
3
+ import { DeferredCustomSearch, DeferredCustomSearch$Outbound } from "./deferredcustomsearch.js";
4
+ import { DeferredRegexSearch, DeferredRegexSearch$Outbound } from "./deferredregexsearch.js";
5
+ /**
6
+ * Router-local regex/BM25 or caller-owned custom search.
7
+ */
8
+ export type DeferredToolsSearchStrategy = DeferredBm25Search | DeferredCustomSearch | DeferredRegexSearch;
9
+ /** @internal */
10
+ export type DeferredToolsSearchStrategy$Outbound = DeferredBm25Search$Outbound | DeferredCustomSearch$Outbound | DeferredRegexSearch$Outbound;
11
+ /** @internal */
12
+ export declare const DeferredToolsSearchStrategy$outboundSchema: z.ZodType<DeferredToolsSearchStrategy$Outbound, DeferredToolsSearchStrategy>;
13
+ export declare function deferredToolsSearchStrategyToJSON(deferredToolsSearchStrategy: DeferredToolsSearchStrategy): string;
14
+ //# sourceMappingURL=deferredtoolssearchstrategy.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 13c3e936a219
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { DeferredBm25Search$outboundSchema, } from "./deferredbm25search.js";
7
+ import { DeferredCustomSearch$outboundSchema, } from "./deferredcustomsearch.js";
8
+ import { DeferredRegexSearch$outboundSchema, } from "./deferredregexsearch.js";
9
+ /** @internal */
10
+ export const DeferredToolsSearchStrategy$outboundSchema = z.union([
11
+ DeferredBm25Search$outboundSchema,
12
+ DeferredCustomSearch$outboundSchema,
13
+ DeferredRegexSearch$outboundSchema,
14
+ ]);
15
+ export function deferredToolsSearchStrategyToJSON(deferredToolsSearchStrategy) {
16
+ return JSON.stringify(DeferredToolsSearchStrategy$outboundSchema.parse(deferredToolsSearchStrategy));
17
+ }
18
+ //# sourceMappingURL=deferredtoolssearchstrategy.js.map
@@ -9,10 +9,18 @@ export type BatchPaymentRequiredResponseErrorData = {
9
9
  createdAt: number;
10
10
  endpoint: string;
11
11
  error: models.BatchPaymentRequiredResponseError;
12
+ /**
13
+ * Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry.
14
+ */
15
+ expiresAt: number | null;
12
16
  finalizedAt: number | null;
13
17
  id: string;
14
18
  model: string;
15
19
  object: models.BatchPaymentRequiredResponseObject;
20
+ /**
21
+ * Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.
22
+ */
23
+ provider: string | null;
16
24
  requestCounts: models.BatchPaymentRequiredResponseRequestCounts;
17
25
  /**
18
26
  * Always null: results are withheld until the batch charge is covered.
@@ -29,10 +37,18 @@ export declare class BatchPaymentRequiredResponseError extends OpenRouterError {
29
37
  createdAt: number;
30
38
  endpoint: string;
31
39
  error: models.BatchPaymentRequiredResponseError;
40
+ /**
41
+ * Unix timestamp after which the assigned provider no longer completes unfinished requests. Derived from the provider's documented batch window, so it can exceed `created_at` plus `completion_window` (Google Vertex can take up to 96 hours). `null` when the provider documents no hard expiry.
42
+ */
43
+ expiresAt: number | null;
32
44
  finalizedAt: number | null;
33
45
  id: string;
34
46
  model: string;
35
47
  object: models.BatchPaymentRequiredResponseObject;
48
+ /**
49
+ * Provider OpenRouter assigned to run the batch, using the same name as the `provider` field of sync responses.
50
+ */
51
+ provider: string | null;
36
52
  requestCounts: models.BatchPaymentRequiredResponseRequestCounts;
37
53
  /**
38
54
  * Always null: results are withheld until the batch charge is covered.
@@ -19,10 +19,12 @@ export class BatchPaymentRequiredResponseError extends OpenRouterError {
19
19
  this.createdAt = err.createdAt;
20
20
  this.endpoint = err.endpoint;
21
21
  this.error = err.error;
22
+ this.expiresAt = err.expiresAt;
22
23
  this.finalizedAt = err.finalizedAt;
23
24
  this.id = err.id;
24
25
  this.model = err.model;
25
26
  this.object = err.object;
27
+ this.provider = err.provider;
26
28
  this.requestCounts = err.requestCounts;
27
29
  this.results = err.results;
28
30
  this.status = err.status;
@@ -36,10 +38,12 @@ export const BatchPaymentRequiredResponseError$inboundSchema = z.object({
36
38
  created_at: z.int(),
37
39
  endpoint: z.string(),
38
40
  error: z.lazy(() => models_BatchPaymentRequiredResponseError$inboundSchema),
41
+ expires_at: z.nullable(z.int()),
39
42
  finalized_at: z.nullable(z.int()),
40
43
  id: z.string(),
41
44
  model: z.string(),
42
45
  object: models_BatchPaymentRequiredResponseObject$inboundSchema,
46
+ provider: z.nullable(z.string()),
43
47
  request_counts: z.lazy(() => models_BatchPaymentRequiredResponseRequestCounts$inboundSchema),
44
48
  results: z.nullable(z.any()),
45
49
  status: models_BatchPaymentRequiredResponseStatus$inboundSchema,
@@ -52,6 +56,7 @@ export const BatchPaymentRequiredResponseError$inboundSchema = z.object({
52
56
  const remapped = remap$(v, {
53
57
  "completion_window": "completionWindow",
54
58
  "created_at": "createdAt",
59
+ "expires_at": "expiresAt",
55
60
  "finalized_at": "finalizedAt",
56
61
  "request_counts": "requestCounts",
57
62
  });