@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,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7c62946c3191
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ /**
10
+ * UTC window the spend is counted over (weeks start Monday); null for a lifetime budget that never resets.
11
+ */
12
+ export const KeyBudgetResetInterval = {
13
+ Daily: "daily",
14
+ Weekly: "weekly",
15
+ Monthly: "monthly",
16
+ };
17
+ /**
18
+ * Which budget layer this is, in the order enforcement checks them: the workspace default guardrail against the member aggregate (`workspace_default_member`) and against this key (`workspace_default_key`), the member guardrail (`member`), the API key guardrail (`api_key`), a workspace budget (`workspace`), or the key's own limit (`key_limit`).
19
+ */
20
+ export const KeyBudgetScope = {
21
+ WorkspaceDefaultMember: "workspace_default_member",
22
+ WorkspaceDefaultKey: "workspace_default_key",
23
+ Member: "member",
24
+ ApiKey: "api_key",
25
+ Workspace: "workspace",
26
+ KeyLimit: "key_limit",
27
+ };
28
+ /** @internal */
29
+ export const KeyBudgetResetInterval$inboundSchema = openEnums.inboundSchema(KeyBudgetResetInterval);
30
+ /** @internal */
31
+ export const KeyBudgetScope$inboundSchema = openEnums.inboundSchema(KeyBudgetScope);
32
+ /** @internal */
33
+ export const KeyBudget$inboundSchema = z.object({
34
+ budget_id: z.nullable(z.string()),
35
+ guardrail_id: z.nullable(z.string()),
36
+ include_byok: z.boolean(),
37
+ limit_usd: z.number(),
38
+ remaining_usd: z.number(),
39
+ reset_interval: z.nullable(KeyBudgetResetInterval$inboundSchema),
40
+ resets_at: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))),
41
+ scope: KeyBudgetScope$inboundSchema,
42
+ spend_usd: z.number(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "budget_id": "budgetId",
46
+ "guardrail_id": "guardrailId",
47
+ "include_byok": "includeByok",
48
+ "limit_usd": "limitUsd",
49
+ "remaining_usd": "remainingUsd",
50
+ "reset_interval": "resetInterval",
51
+ "resets_at": "resetsAt",
52
+ "spend_usd": "spendUsd",
53
+ });
54
+ });
55
+ export function keyBudgetFromJSON(jsonString) {
56
+ return safeParse(jsonString, (x) => KeyBudget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'KeyBudget' from JSON`);
57
+ }
58
+ //# sourceMappingURL=keybudget.js.map
@@ -17,7 +17,7 @@ export type LegacyWebSearchServerToolType = ClosedEnum<typeof LegacyWebSearchSer
17
17
  */
18
18
  export type LegacyWebSearchServerTool = {
19
19
  /**
20
- * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses Firecrawl (requires BYOK). "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
20
+ * Which search engine to use. "auto" (default) uses native if the provider supports it, otherwise Exa. "native" forces the provider's built-in search. "exa" forces the Exa search API. "firecrawl" uses the Firecrawl search API. "parallel" uses the Parallel search API. "perplexity" uses the Perplexity Search API (raw ranked results).
21
21
  */
22
22
  engine?: WebSearchEngineEnum | undefined;
23
23
  filters?: WebSearchDomainFilter | null | undefined;
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { ExternalUser } from "./externaluser.js";
5
+ export type ListExternalUsersResponse = {
6
+ data: Array<ExternalUser>;
7
+ /**
8
+ * Number of registrations matching the filters before pagination.
9
+ */
10
+ totalCount: number;
11
+ };
12
+ /** @internal */
13
+ export declare const ListExternalUsersResponse$inboundSchema: z.ZodType<ListExternalUsersResponse, unknown>;
14
+ export declare function listExternalUsersResponseFromJSON(jsonString: string): SafeParseResult<ListExternalUsersResponse, SDKValidationError>;
15
+ //# sourceMappingURL=listexternalusersresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2722503dc8ac
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { ExternalUser$inboundSchema } from "./externaluser.js";
9
+ /** @internal */
10
+ export const ListExternalUsersResponse$inboundSchema = z.object({
11
+ data: z.array(ExternalUser$inboundSchema),
12
+ total_count: z.int(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "total_count": "totalCount",
16
+ });
17
+ });
18
+ export function listExternalUsersResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => ListExternalUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListExternalUsersResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=listexternalusersresponse.js.map
@@ -13,6 +13,7 @@ import { MessagesBashToolResultBlock, MessagesBashToolResultBlock$Outbound } fro
13
13
  import { MessagesShellToolResultBlock, MessagesShellToolResultBlock$Outbound } from "./messagesshelltoolresultblock.js";
14
14
  import { MessagesToolAdditionBlock, MessagesToolAdditionBlock$Outbound } from "./messagestooladditionblock.js";
15
15
  import { MessagesToolRemovalBlock, MessagesToolRemovalBlock$Outbound } from "./messagestoolremovalblock.js";
16
+ import { ORAnthropicToolSearchResultParam, ORAnthropicToolSearchResultParam$Outbound } from "./oranthropictoolsearchresultparam.js";
16
17
  export type ContentCompaction = {
17
18
  /**
18
19
  * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -94,8 +95,8 @@ export type ContentToolUse = {
94
95
  name: string;
95
96
  type: "tool_use";
96
97
  };
97
- export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock;
98
- export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock>;
98
+ export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam;
99
+ export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam>;
99
100
  export declare const MessagesMessageParamRole: {
100
101
  readonly User: "user";
101
102
  readonly Assistant: "assistant";
@@ -107,7 +108,7 @@ export type MessagesMessageParamRole = OpenEnum<typeof MessagesMessageParamRole>
107
108
  */
108
109
  export type MessagesMessageParam = {
109
110
  clearAt?: AnthropicSystemClearAt | null | undefined;
110
- content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock>;
111
+ content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam>;
111
112
  outputConfig?: AnthropicMessageOutputConfig | null | undefined;
112
113
  role: MessagesMessageParamRole;
113
114
  };
@@ -217,12 +218,12 @@ export type ContentToolUse$Outbound = {
217
218
  export declare const ContentToolUse$outboundSchema: z.ZodType<ContentToolUse$Outbound, ContentToolUse>;
218
219
  export declare function contentToolUseToJSON(contentToolUse: ContentToolUse): string;
219
220
  /** @internal */
220
- export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound;
221
+ export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound;
221
222
  /** @internal */
222
223
  export declare const MessagesMessageParamContentUnion4$outboundSchema: z.ZodType<MessagesMessageParamContentUnion4$Outbound, MessagesMessageParamContentUnion4>;
223
224
  export declare function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4: MessagesMessageParamContentUnion4): string;
224
225
  /** @internal */
225
- export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound>;
226
+ export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound>;
226
227
  /** @internal */
227
228
  export declare const MessagesMessageParamContentUnion5$outboundSchema: z.ZodType<MessagesMessageParamContentUnion5$Outbound, MessagesMessageParamContentUnion5>;
228
229
  export declare function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5: MessagesMessageParamContentUnion5): string;
@@ -231,7 +232,7 @@ export declare const MessagesMessageParamRole$outboundSchema: z.ZodType<string,
231
232
  /** @internal */
232
233
  export type MessagesMessageParam$Outbound = {
233
234
  clear_at?: string | null | undefined;
234
- content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound>;
235
+ content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound>;
235
236
  output_config?: AnthropicMessageOutputConfig$Outbound | null | undefined;
236
237
  role: string;
237
238
  };
@@ -18,6 +18,7 @@ import { MessagesBashToolResultBlock$outboundSchema, } from "./messagesbashtoolr
18
18
  import { MessagesShellToolResultBlock$outboundSchema, } from "./messagesshelltoolresultblock.js";
19
19
  import { MessagesToolAdditionBlock$outboundSchema, } from "./messagestooladditionblock.js";
20
20
  import { MessagesToolRemovalBlock$outboundSchema, } from "./messagestoolremovalblock.js";
21
+ import { ORAnthropicToolSearchResultParam$outboundSchema, } from "./oranthropictoolsearchresultparam.js";
21
22
  export const MessagesMessageParamErrorCode = {
22
23
  InvalidToolInput: "invalid_tool_input",
23
24
  Unavailable: "unavailable",
@@ -219,6 +220,7 @@ export const MessagesMessageParamContentUnion4$outboundSchema = z.union([
219
220
  MessagesToolRemovalBlock$outboundSchema,
220
221
  MessagesShellToolResultBlock$outboundSchema,
221
222
  MessagesBashToolResultBlock$outboundSchema,
223
+ ORAnthropicToolSearchResultParam$outboundSchema,
222
224
  ]);
223
225
  export function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4) {
224
226
  return JSON.stringify(MessagesMessageParamContentUnion4$outboundSchema.parse(messagesMessageParamContentUnion4));
@@ -243,6 +245,7 @@ export const MessagesMessageParamContentUnion5$outboundSchema = z.union([
243
245
  MessagesToolRemovalBlock$outboundSchema,
244
246
  MessagesShellToolResultBlock$outboundSchema,
245
247
  MessagesBashToolResultBlock$outboundSchema,
248
+ ORAnthropicToolSearchResultParam$outboundSchema,
246
249
  ])),
247
250
  ]);
248
251
  export function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5) {
@@ -272,6 +275,7 @@ export const MessagesMessageParam$outboundSchema = z.object({
272
275
  MessagesToolRemovalBlock$outboundSchema,
273
276
  MessagesShellToolResultBlock$outboundSchema,
274
277
  MessagesBashToolResultBlock$outboundSchema,
278
+ ORAnthropicToolSearchResultParam$outboundSchema,
275
279
  ])),
276
280
  ]),
277
281
  outputConfig: z.nullable(AnthropicMessageOutputConfig$outboundSchema)
@@ -15,11 +15,13 @@ import { AnthropicToolSearchToolRegex, AnthropicToolSearchToolRegex$Outbound } f
15
15
  import { AnthropicToolUsesKeep, AnthropicToolUsesKeep$Outbound } from "./anthropictooluseskeep.js";
16
16
  import { AnthropicToolUsesTrigger, AnthropicToolUsesTrigger$Outbound } from "./anthropictoolusestrigger.js";
17
17
  import { AnthropicWebSearchToolUserLocation, AnthropicWebSearchToolUserLocation$Outbound } from "./anthropicwebsearchtooluserlocation.js";
18
+ import { ArmorPlugin, ArmorPlugin$Outbound } from "./armorplugin.js";
18
19
  import { AutoBetaRouterPlugin, AutoBetaRouterPlugin$Outbound } from "./autobetarouterplugin.js";
19
20
  import { AutoRouterPlugin, AutoRouterPlugin$Outbound } from "./autorouterplugin.js";
20
21
  import { BashServerTool, BashServerTool$Outbound } from "./bashservertool.js";
21
22
  import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./contextcompressionplugin.js";
22
23
  import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeservertool.js";
24
+ import { DeferredToolsControl, DeferredToolsControl$Outbound } from "./deferredtoolscontrol.js";
23
25
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
24
26
  import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
25
27
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
@@ -88,7 +90,7 @@ export type ContextManagement = {
88
90
  export type MessagesRequestMetadata = {
89
91
  userId?: string | null | undefined;
90
92
  };
91
- export type MessagesRequestPlugin = AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
93
+ export type MessagesRequestPlugin = AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
92
94
  /**
93
95
  * Controls output generation speed. When set to `fast`, uses a higher-speed inference configuration at premium pricing. Defaults to `standard` when omitted.
94
96
  */
@@ -270,6 +272,10 @@ export type MessagesRequest = {
270
272
  */
271
273
  cacheControl?: AnthropicCacheControlDirective | undefined;
272
274
  contextManagement?: ContextManagement | null | undefined;
275
+ /**
276
+ * Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.
277
+ */
278
+ deferredTools?: DeferredToolsControl | undefined;
273
279
  /**
274
280
  * Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.
275
281
  */
@@ -286,7 +292,7 @@ export type MessagesRequest = {
286
292
  /**
287
293
  * Plugins you want to enable for this request, including their settings.
288
294
  */
289
- plugins?: Array<AlignmentPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
295
+ plugins?: Array<AlignmentPlugin | ArmorPlugin | AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
290
296
  /**
291
297
  * When multiple model providers are available, optionally indicate your routing preference.
292
298
  */
@@ -406,7 +412,7 @@ export type MessagesRequestMetadata$Outbound = {
406
412
  export declare const MessagesRequestMetadata$outboundSchema: z.ZodType<MessagesRequestMetadata$Outbound, MessagesRequestMetadata>;
407
413
  export declare function messagesRequestMetadataToJSON(messagesRequestMetadata: MessagesRequestMetadata): string;
408
414
  /** @internal */
409
- export type MessagesRequestPlugin$Outbound = AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
415
+ export type MessagesRequestPlugin$Outbound = AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
410
416
  /** @internal */
411
417
  export declare const MessagesRequestPlugin$outboundSchema: z.ZodType<MessagesRequestPlugin$Outbound, MessagesRequestPlugin>;
412
418
  export declare function messagesRequestPluginToJSON(messagesRequestPlugin: MessagesRequestPlugin): string;
@@ -613,6 +619,7 @@ export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion:
613
619
  export type MessagesRequest$Outbound = {
614
620
  cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
615
621
  context_management?: ContextManagement$Outbound | null | undefined;
622
+ deferred_tools?: DeferredToolsControl$Outbound | undefined;
616
623
  fallbacks?: Array<MessagesFallbackParam$Outbound> | null | undefined;
617
624
  max_tokens?: number | undefined;
618
625
  messages: Array<MessagesMessageParam$Outbound> | null;
@@ -620,7 +627,7 @@ export type MessagesRequest$Outbound = {
620
627
  model: string;
621
628
  models?: Array<string> | undefined;
622
629
  output_config?: MessagesOutputConfig$Outbound | undefined;
623
- plugins?: Array<AlignmentPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
630
+ plugins?: Array<AlignmentPlugin$Outbound | ArmorPlugin$Outbound | AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
624
631
  provider?: ProviderPreferences$Outbound | null | undefined;
625
632
  safeguards?: Array<AnthropicSafeguard$Outbound> | null | undefined;
626
633
  service_tier?: string | undefined;
@@ -20,11 +20,13 @@ import { AnthropicToolSearchToolRegex$outboundSchema, } from "./anthropictoolsea
20
20
  import { AnthropicToolUsesKeep$outboundSchema, } from "./anthropictooluseskeep.js";
21
21
  import { AnthropicToolUsesTrigger$outboundSchema, } from "./anthropictoolusestrigger.js";
22
22
  import { AnthropicWebSearchToolUserLocation$outboundSchema, } from "./anthropicwebsearchtooluserlocation.js";
23
+ import { ArmorPlugin$outboundSchema, } from "./armorplugin.js";
23
24
  import { AutoBetaRouterPlugin$outboundSchema, } from "./autobetarouterplugin.js";
24
25
  import { AutoRouterPlugin$outboundSchema, } from "./autorouterplugin.js";
25
26
  import { BashServerTool$outboundSchema, } from "./bashservertool.js";
26
27
  import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionplugin.js";
27
28
  import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
29
+ import { DeferredToolsControl$outboundSchema, } from "./deferredtoolscontrol.js";
28
30
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
29
31
  import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
30
32
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
@@ -224,6 +226,7 @@ export function messagesRequestMetadataToJSON(messagesRequestMetadata) {
224
226
  /** @internal */
225
227
  export const MessagesRequestPlugin$outboundSchema = z.union([
226
228
  AlignmentPlugin$outboundSchema,
229
+ ArmorPlugin$outboundSchema,
227
230
  AutoBetaRouterPlugin$outboundSchema,
228
231
  AutoRouterPlugin$outboundSchema,
229
232
  ContextCompressionPlugin$outboundSchema,
@@ -555,6 +558,7 @@ export const MessagesRequest$outboundSchema = z.object({
555
558
  cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
556
559
  contextManagement: z.nullable(z.lazy(() => ContextManagement$outboundSchema))
557
560
  .optional(),
561
+ deferredTools: DeferredToolsControl$outboundSchema.optional(),
558
562
  fallbacks: z.nullable(z.array(MessagesFallbackParam$outboundSchema))
559
563
  .optional(),
560
564
  maxTokens: z.int().optional(),
@@ -565,6 +569,7 @@ export const MessagesRequest$outboundSchema = z.object({
565
569
  outputConfig: MessagesOutputConfig$outboundSchema.optional(),
566
570
  plugins: z.array(z.union([
567
571
  AlignmentPlugin$outboundSchema,
572
+ ArmorPlugin$outboundSchema,
568
573
  AutoBetaRouterPlugin$outboundSchema,
569
574
  AutoRouterPlugin$outboundSchema,
570
575
  ContextCompressionPlugin$outboundSchema,
@@ -629,6 +634,7 @@ export const MessagesRequest$outboundSchema = z.object({
629
634
  return remap$(v, {
630
635
  cacheControl: "cache_control",
631
636
  contextManagement: "context_management",
637
+ deferredTools: "deferred_tools",
632
638
  maxTokens: "max_tokens",
633
639
  outputConfig: "output_config",
634
640
  serviceTier: "service_tier",
@@ -2,16 +2,16 @@ import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- export declare const AllowedCaller: {
5
+ export declare const NamespaceFunctionToolAllowedCaller: {
6
6
  readonly Direct: "direct";
7
7
  readonly Programmatic: "programmatic";
8
8
  };
9
- export type AllowedCaller = OpenEnum<typeof AllowedCaller>;
9
+ export type NamespaceFunctionToolAllowedCaller = OpenEnum<typeof NamespaceFunctionToolAllowedCaller>;
10
10
  /**
11
11
  * A function tool grouped inside a namespace tool
12
12
  */
13
13
  export type NamespaceFunctionTool = {
14
- allowedCallers?: Array<AllowedCaller> | null | undefined;
14
+ allowedCallers?: Array<NamespaceFunctionToolAllowedCaller> | null | undefined;
15
15
  /**
16
16
  * 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.
17
17
  */
@@ -29,9 +29,9 @@ export type NamespaceFunctionTool = {
29
29
  type: "function";
30
30
  };
31
31
  /** @internal */
32
- export declare const AllowedCaller$inboundSchema: z.ZodType<AllowedCaller, unknown>;
32
+ export declare const NamespaceFunctionToolAllowedCaller$inboundSchema: z.ZodType<NamespaceFunctionToolAllowedCaller, unknown>;
33
33
  /** @internal */
34
- export declare const AllowedCaller$outboundSchema: z.ZodType<string, AllowedCaller>;
34
+ export declare const NamespaceFunctionToolAllowedCaller$outboundSchema: z.ZodType<string, NamespaceFunctionToolAllowedCaller>;
35
35
  /** @internal */
36
36
  export declare const NamespaceFunctionTool$inboundSchema: z.ZodType<NamespaceFunctionTool, unknown>;
37
37
  /** @internal */
@@ -6,17 +6,17 @@ 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 * as openEnums from "../types/enums.js";
9
- export const AllowedCaller = {
9
+ export const NamespaceFunctionToolAllowedCaller = {
10
10
  Direct: "direct",
11
11
  Programmatic: "programmatic",
12
12
  };
13
13
  /** @internal */
14
- export const AllowedCaller$inboundSchema = openEnums.inboundSchema(AllowedCaller);
14
+ export const NamespaceFunctionToolAllowedCaller$inboundSchema = openEnums.inboundSchema(NamespaceFunctionToolAllowedCaller);
15
15
  /** @internal */
16
- export const AllowedCaller$outboundSchema = openEnums.outboundSchema(AllowedCaller);
16
+ export const NamespaceFunctionToolAllowedCaller$outboundSchema = openEnums.outboundSchema(NamespaceFunctionToolAllowedCaller);
17
17
  /** @internal */
18
18
  export const NamespaceFunctionTool$inboundSchema = z.object({
19
- allowed_callers: z.nullable(z.array(AllowedCaller$inboundSchema)).optional(),
19
+ allowed_callers: z.nullable(z.array(NamespaceFunctionToolAllowedCaller$inboundSchema)).optional(),
20
20
  async: z.boolean().optional(),
21
21
  defer_loading: z.boolean().optional(),
22
22
  description: z.nullable(z.string()).optional(),
@@ -34,7 +34,7 @@ export const NamespaceFunctionTool$inboundSchema = z.object({
34
34
  });
35
35
  /** @internal */
36
36
  export const NamespaceFunctionTool$outboundSchema = z.object({
37
- allowedCallers: z.nullable(z.array(AllowedCaller$outboundSchema)).optional(),
37
+ allowedCallers: z.nullable(z.array(NamespaceFunctionToolAllowedCaller$outboundSchema)).optional(),
38
38
  async: z.boolean().optional(),
39
39
  deferLoading: z.boolean().optional(),
40
40
  description: z.nullable(z.string()).optional(),
@@ -27,6 +27,10 @@ export type ObservabilityArizeDestination = {
27
27
  * When true, include cost and billing generation metadata.
28
28
  */
29
29
  broadcastGenerationCost: boolean;
30
+ /**
31
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
32
+ */
33
+ broadcastGenerationCostAllocation: boolean;
30
34
  /**
31
35
  * When true, include identity generation metadata.
32
36
  */
@@ -22,6 +22,7 @@ export function observabilityArizeDestinationConfigFromJSON(jsonString) {
22
22
  export const ObservabilityArizeDestination$inboundSchema = z.object({
23
23
  api_key_hashes: z.nullable(z.array(z.string())),
24
24
  broadcast_generation_cost: z.boolean(),
25
+ broadcast_generation_cost_allocation: z.boolean(),
25
26
  broadcast_generation_identity: z.boolean(),
26
27
  broadcast_generation_request_context: z.boolean(),
27
28
  config: z.lazy(() => ObservabilityArizeDestinationConfig$inboundSchema),
@@ -40,6 +41,7 @@ export const ObservabilityArizeDestination$inboundSchema = z.object({
40
41
  return remap$(v, {
41
42
  "api_key_hashes": "apiKeyHashes",
42
43
  "broadcast_generation_cost": "broadcastGenerationCost",
44
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
43
45
  "broadcast_generation_identity": "broadcastGenerationIdentity",
44
46
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
45
47
  "created_at": "createdAt",
@@ -23,6 +23,10 @@ export type ObservabilityBraintrustDestination = {
23
23
  * When true, include cost and billing generation metadata.
24
24
  */
25
25
  broadcastGenerationCost: boolean;
26
+ /**
27
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
28
+ */
29
+ broadcastGenerationCostAllocation: boolean;
26
30
  /**
27
31
  * When true, include identity generation metadata.
28
32
  */
@@ -21,6 +21,7 @@ export function observabilityBraintrustDestinationConfigFromJSON(jsonString) {
21
21
  export const ObservabilityBraintrustDestination$inboundSchema = z.object({
22
22
  api_key_hashes: z.nullable(z.array(z.string())),
23
23
  broadcast_generation_cost: z.boolean(),
24
+ broadcast_generation_cost_allocation: z.boolean(),
24
25
  broadcast_generation_identity: z.boolean(),
25
26
  broadcast_generation_request_context: z.boolean(),
26
27
  config: z.lazy(() => ObservabilityBraintrustDestinationConfig$inboundSchema),
@@ -39,6 +40,7 @@ export const ObservabilityBraintrustDestination$inboundSchema = z.object({
39
40
  return remap$(v, {
40
41
  "api_key_hashes": "apiKeyHashes",
41
42
  "broadcast_generation_cost": "broadcastGenerationCost",
43
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
42
44
  "broadcast_generation_identity": "broadcastGenerationIdentity",
43
45
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
44
46
  "created_at": "createdAt",
@@ -32,6 +32,10 @@ export type ObservabilityClickhouseDestination = {
32
32
  * When true, include cost and billing generation metadata.
33
33
  */
34
34
  broadcastGenerationCost: boolean;
35
+ /**
36
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
37
+ */
38
+ broadcastGenerationCostAllocation: boolean;
35
39
  /**
36
40
  * When true, include identity generation metadata.
37
41
  */
@@ -24,6 +24,7 @@ export function observabilityClickhouseDestinationConfigFromJSON(jsonString) {
24
24
  export const ObservabilityClickhouseDestination$inboundSchema = z.object({
25
25
  api_key_hashes: z.nullable(z.array(z.string())),
26
26
  broadcast_generation_cost: z.boolean(),
27
+ broadcast_generation_cost_allocation: z.boolean(),
27
28
  broadcast_generation_identity: z.boolean(),
28
29
  broadcast_generation_request_context: z.boolean(),
29
30
  config: z.lazy(() => ObservabilityClickhouseDestinationConfig$inboundSchema),
@@ -42,6 +43,7 @@ export const ObservabilityClickhouseDestination$inboundSchema = z.object({
42
43
  return remap$(v, {
43
44
  "api_key_hashes": "apiKeyHashes",
44
45
  "broadcast_generation_cost": "broadcastGenerationCost",
46
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
45
47
  "broadcast_generation_identity": "broadcastGenerationIdentity",
46
48
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
47
49
  "created_at": "createdAt",
@@ -32,6 +32,10 @@ export type ObservabilityDatadogDestination = {
32
32
  * When true, include cost and billing generation metadata.
33
33
  */
34
34
  broadcastGenerationCost: boolean;
35
+ /**
36
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
37
+ */
38
+ broadcastGenerationCostAllocation: boolean;
35
39
  /**
36
40
  * When true, include identity generation metadata.
37
41
  */
@@ -21,6 +21,7 @@ export function observabilityDatadogDestinationConfigFromJSON(jsonString) {
21
21
  export const ObservabilityDatadogDestination$inboundSchema = z.object({
22
22
  api_key_hashes: z.nullable(z.array(z.string())),
23
23
  broadcast_generation_cost: z.boolean(),
24
+ broadcast_generation_cost_allocation: z.boolean(),
24
25
  broadcast_generation_identity: z.boolean(),
25
26
  broadcast_generation_request_context: z.boolean(),
26
27
  config: z.lazy(() => ObservabilityDatadogDestinationConfig$inboundSchema),
@@ -39,6 +40,7 @@ export const ObservabilityDatadogDestination$inboundSchema = z.object({
39
40
  return remap$(v, {
40
41
  "api_key_hashes": "apiKeyHashes",
41
42
  "broadcast_generation_cost": "broadcastGenerationCost",
43
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
42
44
  "broadcast_generation_identity": "broadcastGenerationIdentity",
43
45
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
44
46
  "created_at": "createdAt",
@@ -23,6 +23,10 @@ export type ObservabilityGrafanaDestination = {
23
23
  * When true, include cost and billing generation metadata.
24
24
  */
25
25
  broadcastGenerationCost: boolean;
26
+ /**
27
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
28
+ */
29
+ broadcastGenerationCostAllocation: boolean;
26
30
  /**
27
31
  * When true, include identity generation metadata.
28
32
  */
@@ -21,6 +21,7 @@ export function observabilityGrafanaDestinationConfigFromJSON(jsonString) {
21
21
  export const ObservabilityGrafanaDestination$inboundSchema = z.object({
22
22
  api_key_hashes: z.nullable(z.array(z.string())),
23
23
  broadcast_generation_cost: z.boolean(),
24
+ broadcast_generation_cost_allocation: z.boolean(),
24
25
  broadcast_generation_identity: z.boolean(),
25
26
  broadcast_generation_request_context: z.boolean(),
26
27
  config: z.lazy(() => ObservabilityGrafanaDestinationConfig$inboundSchema),
@@ -39,6 +40,7 @@ export const ObservabilityGrafanaDestination$inboundSchema = z.object({
39
40
  return remap$(v, {
40
41
  "api_key_hashes": "apiKeyHashes",
41
42
  "broadcast_generation_cost": "broadcastGenerationCost",
43
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
42
44
  "broadcast_generation_identity": "broadcastGenerationIdentity",
43
45
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
44
46
  "created_at": "createdAt",
@@ -23,6 +23,10 @@ export type ObservabilityLangfuseDestination = {
23
23
  * When true, include cost and billing generation metadata.
24
24
  */
25
25
  broadcastGenerationCost: boolean;
26
+ /**
27
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
28
+ */
29
+ broadcastGenerationCostAllocation: boolean;
26
30
  /**
27
31
  * When true, include identity generation metadata.
28
32
  */
@@ -21,6 +21,7 @@ export function observabilityLangfuseDestinationConfigFromJSON(jsonString) {
21
21
  export const ObservabilityLangfuseDestination$inboundSchema = z.object({
22
22
  api_key_hashes: z.nullable(z.array(z.string())),
23
23
  broadcast_generation_cost: z.boolean(),
24
+ broadcast_generation_cost_allocation: z.boolean(),
24
25
  broadcast_generation_identity: z.boolean(),
25
26
  broadcast_generation_request_context: z.boolean(),
26
27
  config: z.lazy(() => ObservabilityLangfuseDestinationConfig$inboundSchema),
@@ -39,6 +40,7 @@ export const ObservabilityLangfuseDestination$inboundSchema = z.object({
39
40
  return remap$(v, {
40
41
  "api_key_hashes": "apiKeyHashes",
41
42
  "broadcast_generation_cost": "broadcastGenerationCost",
43
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
42
44
  "broadcast_generation_identity": "broadcastGenerationIdentity",
43
45
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
44
46
  "created_at": "createdAt",
@@ -30,6 +30,10 @@ export type ObservabilityLangsmithDestination = {
30
30
  * When true, include cost and billing generation metadata.
31
31
  */
32
32
  broadcastGenerationCost: boolean;
33
+ /**
34
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
35
+ */
36
+ broadcastGenerationCostAllocation: boolean;
33
37
  /**
34
38
  * When true, include identity generation metadata.
35
39
  */
@@ -22,6 +22,7 @@ export function observabilityLangsmithDestinationConfigFromJSON(jsonString) {
22
22
  export const ObservabilityLangsmithDestination$inboundSchema = z.object({
23
23
  api_key_hashes: z.nullable(z.array(z.string())),
24
24
  broadcast_generation_cost: z.boolean(),
25
+ broadcast_generation_cost_allocation: z.boolean(),
25
26
  broadcast_generation_identity: z.boolean(),
26
27
  broadcast_generation_request_context: z.boolean(),
27
28
  config: z.lazy(() => ObservabilityLangsmithDestinationConfig$inboundSchema),
@@ -40,6 +41,7 @@ export const ObservabilityLangsmithDestination$inboundSchema = z.object({
40
41
  return remap$(v, {
41
42
  "api_key_hashes": "apiKeyHashes",
42
43
  "broadcast_generation_cost": "broadcastGenerationCost",
44
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
43
45
  "broadcast_generation_identity": "broadcastGenerationIdentity",
44
46
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
45
47
  "created_at": "createdAt",
@@ -28,6 +28,10 @@ export type ObservabilityNewrelicDestination = {
28
28
  * When true, include cost and billing generation metadata.
29
29
  */
30
30
  broadcastGenerationCost: boolean;
31
+ /**
32
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
33
+ */
34
+ broadcastGenerationCostAllocation: boolean;
31
35
  /**
32
36
  * When true, include identity generation metadata.
33
37
  */
@@ -28,6 +28,7 @@ export function observabilityNewrelicDestinationConfigFromJSON(jsonString) {
28
28
  export const ObservabilityNewrelicDestination$inboundSchema = z.object({
29
29
  api_key_hashes: z.nullable(z.array(z.string())),
30
30
  broadcast_generation_cost: z.boolean(),
31
+ broadcast_generation_cost_allocation: z.boolean(),
31
32
  broadcast_generation_identity: z.boolean(),
32
33
  broadcast_generation_request_context: z.boolean(),
33
34
  config: z.lazy(() => ObservabilityNewrelicDestinationConfig$inboundSchema),
@@ -46,6 +47,7 @@ export const ObservabilityNewrelicDestination$inboundSchema = z.object({
46
47
  return remap$(v, {
47
48
  "api_key_hashes": "apiKeyHashes",
48
49
  "broadcast_generation_cost": "broadcastGenerationCost",
50
+ "broadcast_generation_cost_allocation": "broadcastGenerationCostAllocation",
49
51
  "broadcast_generation_identity": "broadcastGenerationIdentity",
50
52
  "broadcast_generation_request_context": "broadcastGenerationRequestContext",
51
53
  "created_at": "createdAt",
@@ -23,6 +23,10 @@ export type ObservabilityOpikDestination = {
23
23
  * When true, include cost and billing generation metadata.
24
24
  */
25
25
  broadcastGenerationCost: boolean;
26
+ /**
27
+ * Beta. When true, include openrouter_cost_allocation: per-token-kind usage and cost, sent only when they reconcile with the billed cost.
28
+ */
29
+ broadcastGenerationCostAllocation: boolean;
26
30
  /**
27
31
  * When true, include identity generation metadata.
28
32
  */