@openrouter/sdk 0.1.2 → 0.1.3

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 (370) hide show
  1. package/esm/funcs/modelsListEmbeddings.d.ts +18 -0
  2. package/esm/funcs/modelsListEmbeddings.js +72 -0
  3. package/esm/lib/config.d.ts +3 -3
  4. package/esm/lib/config.js +3 -3
  5. package/esm/models/activityitem.d.ts +0 -29
  6. package/esm/models/activityitem.js +0 -38
  7. package/esm/models/assistantmessage.d.ts +0 -24
  8. package/esm/models/assistantmessage.js +0 -22
  9. package/esm/models/badgatewayresponseerrordata.d.ts +0 -23
  10. package/esm/models/badgatewayresponseerrordata.js +0 -20
  11. package/esm/models/badrequestresponseerrordata.d.ts +0 -23
  12. package/esm/models/badrequestresponseerrordata.js +0 -20
  13. package/esm/models/chatcompletionfinishreason.d.ts +0 -12
  14. package/esm/models/chatcompletionfinishreason.js +1 -17
  15. package/esm/models/chaterror.d.ts +0 -39
  16. package/esm/models/chaterror.js +0 -40
  17. package/esm/models/chatgenerationparams.d.ts +3 -122
  18. package/esm/models/chatgenerationparams.js +7 -195
  19. package/esm/models/chatgenerationtokenusage.d.ts +5 -70
  20. package/esm/models/chatgenerationtokenusage.js +5 -89
  21. package/esm/models/chatmessagecontentitem.d.ts +5 -12
  22. package/esm/models/chatmessagecontentitem.js +7 -11
  23. package/esm/models/chatmessagecontentitemaudio.d.ts +0 -34
  24. package/esm/models/chatmessagecontentitemaudio.js +0 -33
  25. package/esm/models/chatmessagecontentitemimage.d.ts +0 -34
  26. package/esm/models/chatmessagecontentitemimage.js +0 -33
  27. package/esm/models/chatmessagecontentitemtext.d.ts +0 -12
  28. package/esm/models/chatmessagecontentitemtext.js +0 -11
  29. package/esm/models/chatmessagecontentitemvideo.d.ts +32 -0
  30. package/esm/models/chatmessagecontentitemvideo.js +46 -0
  31. package/esm/models/chatmessagetokenlogprob.d.ts +0 -43
  32. package/esm/models/chatmessagetokenlogprob.js +0 -45
  33. package/esm/models/chatmessagetokenlogprobs.d.ts +1 -21
  34. package/esm/models/chatmessagetokenlogprobs.js +1 -20
  35. package/esm/models/chatmessagetoolcall.d.ts +0 -24
  36. package/esm/models/chatmessagetoolcall.js +0 -22
  37. package/esm/models/chatresponse.d.ts +2 -27
  38. package/esm/models/chatresponse.js +2 -30
  39. package/esm/models/chatresponsechoice.d.ts +2 -24
  40. package/esm/models/chatresponsechoice.js +3 -28
  41. package/esm/models/chatstreamingchoice.d.ts +2 -24
  42. package/esm/models/chatstreamingchoice.js +3 -28
  43. package/esm/models/chatstreamingmessagechunk.d.ts +1 -40
  44. package/esm/models/chatstreamingmessagechunk.js +1 -40
  45. package/esm/models/chatstreamingmessagetoolcall.d.ts +0 -42
  46. package/esm/models/chatstreamingmessagetoolcall.js +0 -41
  47. package/esm/models/chatstreamingresponsechunk.d.ts +2 -67
  48. package/esm/models/chatstreamingresponsechunk.js +2 -69
  49. package/esm/models/chatstreamoptions.d.ts +0 -17
  50. package/esm/models/chatstreamoptions.js +0 -23
  51. package/esm/models/completionchoice.d.ts +1 -35
  52. package/esm/models/completionchoice.js +2 -43
  53. package/esm/models/completioncreateparams.d.ts +0 -122
  54. package/esm/models/completioncreateparams.js +2 -200
  55. package/esm/models/completionlogprobs.d.ts +0 -24
  56. package/esm/models/completionlogprobs.js +0 -27
  57. package/esm/models/completionresponse.d.ts +2 -27
  58. package/esm/models/completionresponse.js +2 -30
  59. package/esm/models/completionusage.d.ts +0 -21
  60. package/esm/models/completionusage.js +0 -26
  61. package/esm/models/createchargerequest.d.ts +0 -29
  62. package/esm/models/createchargerequest.js +0 -43
  63. package/esm/models/defaultparameters.d.ts +0 -21
  64. package/esm/models/defaultparameters.js +0 -25
  65. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +0 -23
  66. package/esm/models/edgenetworktimeoutresponseerrordata.js +0 -20
  67. package/esm/models/endpointstatus.d.ts +0 -12
  68. package/esm/models/endpointstatus.js +1 -17
  69. package/esm/models/errors/badgatewayresponseerror.d.ts +0 -19
  70. package/esm/models/errors/badgatewayresponseerror.js +0 -22
  71. package/esm/models/errors/badrequestresponseerror.d.ts +0 -19
  72. package/esm/models/errors/badrequestresponseerror.js +0 -22
  73. package/esm/models/errors/chaterror.d.ts +0 -18
  74. package/esm/models/errors/chaterror.js +0 -17
  75. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +0 -19
  76. package/esm/models/errors/edgenetworktimeoutresponseerror.js +0 -22
  77. package/esm/models/errors/forbiddenresponseerror.d.ts +0 -19
  78. package/esm/models/errors/forbiddenresponseerror.js +0 -22
  79. package/esm/models/errors/internalserverresponseerror.d.ts +0 -19
  80. package/esm/models/errors/internalserverresponseerror.js +0 -22
  81. package/esm/models/errors/notfoundresponseerror.d.ts +0 -19
  82. package/esm/models/errors/notfoundresponseerror.js +0 -22
  83. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +0 -19
  84. package/esm/models/errors/payloadtoolargeresponseerror.js +0 -22
  85. package/esm/models/errors/paymentrequiredresponseerror.d.ts +0 -19
  86. package/esm/models/errors/paymentrequiredresponseerror.js +0 -22
  87. package/esm/models/errors/provideroverloadedresponseerror.d.ts +0 -19
  88. package/esm/models/errors/provideroverloadedresponseerror.js +0 -22
  89. package/esm/models/errors/requesttimeoutresponseerror.d.ts +0 -19
  90. package/esm/models/errors/requesttimeoutresponseerror.js +0 -22
  91. package/esm/models/errors/serviceunavailableresponseerror.d.ts +0 -19
  92. package/esm/models/errors/serviceunavailableresponseerror.js +0 -22
  93. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +0 -19
  94. package/esm/models/errors/toomanyrequestsresponseerror.js +0 -22
  95. package/esm/models/errors/unauthorizedresponseerror.d.ts +0 -19
  96. package/esm/models/errors/unauthorizedresponseerror.js +0 -22
  97. package/esm/models/errors/unprocessableentityresponseerror.d.ts +0 -19
  98. package/esm/models/errors/unprocessableentityresponseerror.js +0 -22
  99. package/esm/models/filecitation.d.ts +0 -26
  100. package/esm/models/filecitation.js +0 -22
  101. package/esm/models/filepath.d.ts +0 -26
  102. package/esm/models/filepath.js +0 -22
  103. package/esm/models/forbiddenresponseerrordata.d.ts +0 -23
  104. package/esm/models/forbiddenresponseerrordata.js +0 -20
  105. package/esm/models/imagegenerationstatus.d.ts +0 -10
  106. package/esm/models/imagegenerationstatus.js +0 -11
  107. package/esm/models/index.d.ts +2 -1
  108. package/esm/models/index.js +2 -1
  109. package/esm/models/inputmodality.d.ts +0 -12
  110. package/esm/models/inputmodality.js +1 -17
  111. package/esm/models/instructtype.d.ts +0 -12
  112. package/esm/models/instructtype.js +1 -17
  113. package/esm/models/internalserverresponseerrordata.d.ts +0 -23
  114. package/esm/models/internalserverresponseerrordata.js +0 -20
  115. package/esm/models/jsonschemaconfig.d.ts +0 -17
  116. package/esm/models/jsonschemaconfig.js +0 -22
  117. package/esm/models/listendpointsresponse.d.ts +1 -60
  118. package/esm/models/listendpointsresponse.js +5 -73
  119. package/esm/models/message.d.ts +0 -47
  120. package/esm/models/message.js +5 -67
  121. package/esm/models/model.d.ts +5 -36
  122. package/esm/models/model.js +6 -46
  123. package/esm/models/modelarchitecture.d.ts +0 -35
  124. package/esm/models/modelarchitecture.js +4 -49
  125. package/esm/models/modelgroup.d.ts +0 -12
  126. package/esm/models/modelgroup.js +1 -18
  127. package/esm/models/modelscountresponse.d.ts +0 -38
  128. package/esm/models/modelscountresponse.js +0 -36
  129. package/esm/models/modelslistresponse.d.ts +1 -20
  130. package/esm/models/modelslistresponse.js +1 -19
  131. package/esm/models/namedtoolchoice.d.ts +0 -32
  132. package/esm/models/namedtoolchoice.js +0 -38
  133. package/esm/models/notfoundresponseerrordata.d.ts +0 -23
  134. package/esm/models/notfoundresponseerrordata.js +0 -20
  135. package/esm/models/openairesponsesannotation.d.ts +0 -12
  136. package/esm/models/openairesponsesannotation.js +0 -11
  137. package/esm/models/openairesponsesincludable.d.ts +0 -12
  138. package/esm/models/openairesponsesincludable.js +0 -18
  139. package/esm/models/openairesponsesincompletedetails.d.ts +0 -31
  140. package/esm/models/openairesponsesincompletedetails.js +1 -35
  141. package/esm/models/openairesponsesinputunion.d.ts +6 -431
  142. package/esm/models/openairesponsesinputunion.js +7 -463
  143. package/esm/models/openairesponsesprompt.d.ts +0 -24
  144. package/esm/models/openairesponsesprompt.js +0 -22
  145. package/esm/models/openairesponsesreasoningconfig.d.ts +0 -20
  146. package/esm/models/openairesponsesreasoningconfig.js +2 -21
  147. package/esm/models/openairesponsesreasoningeffort.d.ts +0 -10
  148. package/esm/models/openairesponsesreasoningeffort.js +0 -11
  149. package/esm/models/openairesponsesrefusalcontent.d.ts +0 -26
  150. package/esm/models/openairesponsesrefusalcontent.js +0 -22
  151. package/esm/models/openairesponsesresponsestatus.d.ts +0 -12
  152. package/esm/models/openairesponsesresponsestatus.js +1 -17
  153. package/esm/models/openairesponsesservicetier.d.ts +0 -12
  154. package/esm/models/openairesponsesservicetier.js +1 -17
  155. package/esm/models/openairesponsestoolchoiceunion.d.ts +0 -132
  156. package/esm/models/openairesponsestoolchoiceunion.js +0 -110
  157. package/esm/models/openairesponsestruncation.d.ts +0 -12
  158. package/esm/models/openairesponsestruncation.js +1 -17
  159. package/esm/models/openresponseseasyinputmessage.d.ts +0 -142
  160. package/esm/models/openresponseseasyinputmessage.js +9 -198
  161. package/esm/models/openresponseserrorevent.d.ts +0 -39
  162. package/esm/models/openresponseserrorevent.js +0 -39
  163. package/esm/models/openresponsesfunctioncalloutput.d.ts +0 -33
  164. package/esm/models/openresponsesfunctioncalloutput.js +2 -42
  165. package/esm/models/openresponsesfunctiontoolcall.d.ts +0 -33
  166. package/esm/models/openresponsesfunctiontoolcall.js +2 -43
  167. package/esm/models/openresponsesimagegencallcompleted.d.ts +0 -38
  168. package/esm/models/openresponsesimagegencallcompleted.js +0 -40
  169. package/esm/models/openresponsesimagegencallgenerating.d.ts +0 -38
  170. package/esm/models/openresponsesimagegencallgenerating.js +0 -40
  171. package/esm/models/openresponsesimagegencallinprogress.d.ts +0 -38
  172. package/esm/models/openresponsesimagegencallinprogress.js +0 -40
  173. package/esm/models/openresponsesimagegencallpartialimage.d.ts +0 -40
  174. package/esm/models/openresponsesimagegencallpartialimage.js +0 -44
  175. package/esm/models/openresponsesinput.d.ts +0 -32
  176. package/esm/models/openresponsesinput.js +11 -71
  177. package/esm/models/openresponsesinputmessageitem.d.ts +0 -111
  178. package/esm/models/openresponsesinputmessageitem.js +8 -148
  179. package/esm/models/openresponseslogprobs.d.ts +1 -22
  180. package/esm/models/openresponseslogprobs.js +1 -25
  181. package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -138
  182. package/esm/models/openresponsesnonstreamingresponse.js +16 -157
  183. package/esm/models/openresponsesreasoning.d.ts +0 -108
  184. package/esm/models/openresponsesreasoning.js +6 -130
  185. package/esm/models/openresponsesreasoningconfig.d.ts +0 -17
  186. package/esm/models/openresponsesreasoningconfig.js +2 -28
  187. package/esm/models/openresponsesreasoningdeltaevent.d.ts +0 -40
  188. package/esm/models/openresponsesreasoningdeltaevent.js +0 -43
  189. package/esm/models/openresponsesreasoningdoneevent.d.ts +0 -40
  190. package/esm/models/openresponsesreasoningdoneevent.js +0 -43
  191. package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +1 -41
  192. package/esm/models/openresponsesreasoningsummarypartaddedevent.js +1 -44
  193. package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +0 -40
  194. package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +0 -43
  195. package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +0 -40
  196. package/esm/models/openresponsesreasoningsummarytextdoneevent.js +0 -43
  197. package/esm/models/openresponsesrequest.d.ts +0 -348
  198. package/esm/models/openresponsesrequest.js +16 -523
  199. package/esm/models/openresponsesresponsetext.d.ts +0 -29
  200. package/esm/models/openresponsesresponsetext.js +1 -40
  201. package/esm/models/openresponsesstreamevent.d.ts +18 -732
  202. package/esm/models/openresponsesstreamevent.js +18 -808
  203. package/esm/models/openresponsestoplogprobs.d.ts +0 -20
  204. package/esm/models/openresponsestoplogprobs.js +0 -19
  205. package/esm/models/openresponsesusage.d.ts +0 -85
  206. package/esm/models/openresponsesusage.js +0 -105
  207. package/esm/models/openresponseswebsearch20250826tool.d.ts +0 -38
  208. package/esm/models/openresponseswebsearch20250826tool.js +0 -33
  209. package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +0 -26
  210. package/esm/models/openresponseswebsearchpreview20250311tool.js +0 -22
  211. package/esm/models/openresponseswebsearchpreviewtool.d.ts +0 -26
  212. package/esm/models/openresponseswebsearchpreviewtool.js +0 -22
  213. package/esm/models/openresponseswebsearchtool.d.ts +0 -38
  214. package/esm/models/openresponseswebsearchtool.js +0 -33
  215. package/esm/models/operations/createauthkeyscode.d.ts +0 -67
  216. package/esm/models/operations/createauthkeyscode.js +0 -89
  217. package/esm/models/operations/createcoinbasecharge.d.ts +0 -144
  218. package/esm/models/operations/createcoinbasecharge.js +0 -170
  219. package/esm/models/operations/createembeddings.d.ts +0 -322
  220. package/esm/models/operations/createembeddings.js +2 -397
  221. package/esm/models/operations/createkeys.d.ts +0 -83
  222. package/esm/models/operations/createkeys.js +0 -113
  223. package/esm/models/operations/createresponses.d.ts +0 -36
  224. package/esm/models/operations/createresponses.js +0 -37
  225. package/esm/models/operations/deletekeys.d.ts +0 -34
  226. package/esm/models/operations/deletekeys.js +0 -36
  227. package/esm/models/operations/exchangeauthcodeforapikey.d.ts +0 -47
  228. package/esm/models/operations/exchangeauthcodeforapikey.js +0 -66
  229. package/esm/models/operations/getcredits.d.ts +0 -17
  230. package/esm/models/operations/getcredits.js +0 -16
  231. package/esm/models/operations/getcurrentkey.d.ts +0 -74
  232. package/esm/models/operations/getcurrentkey.js +0 -87
  233. package/esm/models/operations/getgeneration.d.ts +0 -101
  234. package/esm/models/operations/getgeneration.js +1 -134
  235. package/esm/models/operations/getkey.d.ts +0 -70
  236. package/esm/models/operations/getkey.js +0 -87
  237. package/esm/models/operations/getmodels.d.ts +0 -17
  238. package/esm/models/operations/getmodels.js +0 -24
  239. package/esm/models/operations/getparameters.d.ts +0 -93
  240. package/esm/models/operations/getparameters.js +0 -112
  241. package/esm/models/operations/getuseractivity.d.ts +0 -34
  242. package/esm/models/operations/getuseractivity.js +0 -36
  243. package/esm/models/operations/list.d.ts +0 -70
  244. package/esm/models/operations/list.js +0 -93
  245. package/esm/models/operations/listendpoints.d.ts +0 -34
  246. package/esm/models/operations/listendpoints.js +0 -37
  247. package/esm/models/operations/listendpointszdr.d.ts +0 -19
  248. package/esm/models/operations/listendpointszdr.js +0 -18
  249. package/esm/models/operations/listmodelsuser.d.ts +0 -17
  250. package/esm/models/operations/listmodelsuser.js +0 -19
  251. package/esm/models/operations/listproviders.d.ts +0 -42
  252. package/esm/models/operations/listproviders.js +0 -46
  253. package/esm/models/operations/sendchatcompletionrequest.d.ts +0 -17
  254. package/esm/models/operations/sendchatcompletionrequest.js +0 -16
  255. package/esm/models/operations/updatekeys.d.ts +0 -97
  256. package/esm/models/operations/updatekeys.js +0 -136
  257. package/esm/models/outputitemimagegenerationcall.d.ts +0 -38
  258. package/esm/models/outputitemimagegenerationcall.js +1 -35
  259. package/esm/models/outputmessage.d.ts +2 -139
  260. package/esm/models/outputmessage.js +2 -135
  261. package/esm/models/outputmodality.d.ts +0 -12
  262. package/esm/models/outputmodality.js +1 -17
  263. package/esm/models/parameter.d.ts +0 -12
  264. package/esm/models/parameter.js +1 -18
  265. package/esm/models/payloadtoolargeresponseerrordata.d.ts +0 -23
  266. package/esm/models/payloadtoolargeresponseerrordata.js +0 -20
  267. package/esm/models/paymentrequiredresponseerrordata.d.ts +0 -23
  268. package/esm/models/paymentrequiredresponseerrordata.js +0 -20
  269. package/esm/models/perrequestlimits.d.ts +0 -20
  270. package/esm/models/perrequestlimits.js +0 -24
  271. package/esm/models/providername.d.ts +0 -10
  272. package/esm/models/providername.js +0 -11
  273. package/esm/models/provideroverloadedresponseerrordata.d.ts +0 -23
  274. package/esm/models/provideroverloadedresponseerrordata.js +0 -20
  275. package/esm/models/publicendpoint.d.ts +0 -73
  276. package/esm/models/publicendpoint.js +4 -100
  277. package/esm/models/publicpricing.d.ts +0 -30
  278. package/esm/models/publicpricing.js +0 -38
  279. package/esm/models/quantization.d.ts +0 -12
  280. package/esm/models/quantization.js +0 -18
  281. package/esm/models/reasoningsummarytext.d.ts +0 -26
  282. package/esm/models/reasoningsummarytext.js +0 -22
  283. package/esm/models/reasoningsummaryverbosity.d.ts +0 -10
  284. package/esm/models/reasoningsummaryverbosity.js +0 -11
  285. package/esm/models/reasoningtextcontent.d.ts +0 -26
  286. package/esm/models/reasoningtextcontent.js +0 -22
  287. package/esm/models/requesttimeoutresponseerrordata.d.ts +0 -23
  288. package/esm/models/requesttimeoutresponseerrordata.js +0 -20
  289. package/esm/models/responseformatjsonschema.d.ts +0 -17
  290. package/esm/models/responseformatjsonschema.js +1 -25
  291. package/esm/models/responseformattextconfig.d.ts +0 -12
  292. package/esm/models/responseformattextconfig.js +0 -11
  293. package/esm/models/responseformattextgrammar.d.ts +0 -17
  294. package/esm/models/responseformattextgrammar.js +0 -20
  295. package/esm/models/responseinputaudio.d.ts +0 -48
  296. package/esm/models/responseinputaudio.js +0 -44
  297. package/esm/models/responseinputfile.d.ts +0 -26
  298. package/esm/models/responseinputfile.js +0 -22
  299. package/esm/models/responseinputimage.d.ts +0 -36
  300. package/esm/models/responseinputimage.js +0 -33
  301. package/esm/models/responseinputtext.d.ts +0 -26
  302. package/esm/models/responseinputtext.js +0 -22
  303. package/esm/models/responseoutputtext.d.ts +0 -26
  304. package/esm/models/responseoutputtext.js +0 -22
  305. package/esm/models/responseserrorfield.d.ts +0 -32
  306. package/esm/models/responseserrorfield.js +1 -36
  307. package/esm/models/responsesformatjsonobject.d.ts +0 -26
  308. package/esm/models/responsesformatjsonobject.js +0 -22
  309. package/esm/models/responsesformattext.d.ts +0 -26
  310. package/esm/models/responsesformattext.js +0 -22
  311. package/esm/models/responsesformattextjsonschemaconfig.d.ts +0 -26
  312. package/esm/models/responsesformattextjsonschemaconfig.js +0 -22
  313. package/esm/models/responsesimagegenerationcall.d.ts +0 -26
  314. package/esm/models/responsesimagegenerationcall.js +0 -22
  315. package/esm/models/responsesoutputitem.d.ts +6 -23
  316. package/esm/models/responsesoutputitem.js +6 -29
  317. package/esm/models/responsesoutputitemfilesearchcall.d.ts +0 -26
  318. package/esm/models/responsesoutputitemfilesearchcall.js +0 -22
  319. package/esm/models/responsesoutputitemfunctioncall.d.ts +0 -80
  320. package/esm/models/responsesoutputitemfunctioncall.js +0 -66
  321. package/esm/models/responsesoutputitemreasoning.d.ts +0 -80
  322. package/esm/models/responsesoutputitemreasoning.js +0 -66
  323. package/esm/models/responsesoutputmessage.d.ts +0 -106
  324. package/esm/models/responsesoutputmessage.js +0 -88
  325. package/esm/models/responsessearchcontextsize.d.ts +0 -10
  326. package/esm/models/responsessearchcontextsize.js +0 -11
  327. package/esm/models/responseswebsearchcalloutput.d.ts +0 -26
  328. package/esm/models/responseswebsearchcalloutput.js +0 -22
  329. package/esm/models/responseswebsearchuserlocation.d.ts +0 -26
  330. package/esm/models/responseswebsearchuserlocation.js +0 -22
  331. package/esm/models/responsetextconfig.d.ts +1 -33
  332. package/esm/models/responsetextconfig.js +2 -37
  333. package/esm/models/security.d.ts +0 -17
  334. package/esm/models/security.js +0 -19
  335. package/esm/models/serviceunavailableresponseerrordata.d.ts +0 -23
  336. package/esm/models/serviceunavailableresponseerrordata.js +0 -20
  337. package/esm/models/systemmessage.d.ts +0 -32
  338. package/esm/models/systemmessage.js +1 -42
  339. package/esm/models/toolcallstatus.d.ts +0 -10
  340. package/esm/models/toolcallstatus.js +0 -11
  341. package/esm/models/tooldefinitionjson.d.ts +34 -0
  342. package/esm/models/tooldefinitionjson.js +23 -0
  343. package/esm/models/toolresponsemessage.d.ts +0 -32
  344. package/esm/models/toolresponsemessage.js +1 -42
  345. package/esm/models/toomanyrequestsresponseerrordata.d.ts +0 -23
  346. package/esm/models/toomanyrequestsresponseerrordata.js +0 -20
  347. package/esm/models/topproviderinfo.d.ts +0 -21
  348. package/esm/models/topproviderinfo.js +0 -26
  349. package/esm/models/unauthorizedresponseerrordata.d.ts +0 -23
  350. package/esm/models/unauthorizedresponseerrordata.js +0 -20
  351. package/esm/models/unprocessableentityresponseerrordata.d.ts +0 -23
  352. package/esm/models/unprocessableentityresponseerrordata.js +0 -20
  353. package/esm/models/urlcitation.d.ts +0 -26
  354. package/esm/models/urlcitation.js +0 -22
  355. package/esm/models/usermessage.d.ts +0 -32
  356. package/esm/models/usermessage.js +1 -42
  357. package/esm/models/websearchpreviewtooluserlocation.d.ts +0 -26
  358. package/esm/models/websearchpreviewtooluserlocation.js +0 -22
  359. package/esm/models/websearchstatus.d.ts +0 -10
  360. package/esm/models/websearchstatus.js +0 -11
  361. package/esm/react-query/index.d.ts +1 -0
  362. package/esm/react-query/index.js +1 -0
  363. package/esm/react-query/modelsListEmbeddings.d.ts +29 -0
  364. package/esm/react-query/modelsListEmbeddings.js +66 -0
  365. package/esm/sdk/models.d.ts +7 -0
  366. package/esm/sdk/models.js +10 -0
  367. package/jsr.json +1 -1
  368. package/package.json +1 -1
  369. package/esm/models/tool.d.ts +0 -66
  370. package/esm/models/tool.js +0 -65
@@ -10,26 +10,6 @@ export const RateLimit$inboundSchema = z.object({
10
10
  interval: z.string(),
11
11
  note: z.string(),
12
12
  });
13
- /** @internal */
14
- export const RateLimit$outboundSchema = z.object({
15
- requests: z.number(),
16
- interval: z.string(),
17
- note: z.string(),
18
- });
19
- /**
20
- * @internal
21
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
- */
23
- export var RateLimit$;
24
- (function (RateLimit$) {
25
- /** @deprecated use `RateLimit$inboundSchema` instead. */
26
- RateLimit$.inboundSchema = RateLimit$inboundSchema;
27
- /** @deprecated use `RateLimit$outboundSchema` instead. */
28
- RateLimit$.outboundSchema = RateLimit$outboundSchema;
29
- })(RateLimit$ || (RateLimit$ = {}));
30
- export function rateLimitToJSON(rateLimit) {
31
- return JSON.stringify(RateLimit$outboundSchema.parse(rateLimit));
32
- }
33
13
  export function rateLimitFromJSON(jsonString) {
34
14
  return safeParse(jsonString, (x) => RateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RateLimit' from JSON`);
35
15
  }
@@ -68,55 +48,6 @@ export const GetCurrentKeyData$inboundSchema = z.object({
68
48
  "rate_limit": "rateLimit",
69
49
  });
70
50
  });
71
- /** @internal */
72
- export const GetCurrentKeyData$outboundSchema = z.object({
73
- label: z.string(),
74
- limit: z.nullable(z.number()),
75
- usage: z.number(),
76
- usageDaily: z.number(),
77
- usageWeekly: z.number(),
78
- usageMonthly: z.number(),
79
- byokUsage: z.number(),
80
- byokUsageDaily: z.number(),
81
- byokUsageWeekly: z.number(),
82
- byokUsageMonthly: z.number(),
83
- isFreeTier: z.boolean(),
84
- isProvisioningKey: z.boolean(),
85
- limitRemaining: z.nullable(z.number()),
86
- limitReset: z.nullable(z.string()),
87
- includeByokInLimit: z.boolean(),
88
- rateLimit: z.lazy(() => RateLimit$outboundSchema),
89
- }).transform((v) => {
90
- return remap$(v, {
91
- usageDaily: "usage_daily",
92
- usageWeekly: "usage_weekly",
93
- usageMonthly: "usage_monthly",
94
- byokUsage: "byok_usage",
95
- byokUsageDaily: "byok_usage_daily",
96
- byokUsageWeekly: "byok_usage_weekly",
97
- byokUsageMonthly: "byok_usage_monthly",
98
- isFreeTier: "is_free_tier",
99
- isProvisioningKey: "is_provisioning_key",
100
- limitRemaining: "limit_remaining",
101
- limitReset: "limit_reset",
102
- includeByokInLimit: "include_byok_in_limit",
103
- rateLimit: "rate_limit",
104
- });
105
- });
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export var GetCurrentKeyData$;
111
- (function (GetCurrentKeyData$) {
112
- /** @deprecated use `GetCurrentKeyData$inboundSchema` instead. */
113
- GetCurrentKeyData$.inboundSchema = GetCurrentKeyData$inboundSchema;
114
- /** @deprecated use `GetCurrentKeyData$outboundSchema` instead. */
115
- GetCurrentKeyData$.outboundSchema = GetCurrentKeyData$outboundSchema;
116
- })(GetCurrentKeyData$ || (GetCurrentKeyData$ = {}));
117
- export function getCurrentKeyDataToJSON(getCurrentKeyData) {
118
- return JSON.stringify(GetCurrentKeyData$outboundSchema.parse(getCurrentKeyData));
119
- }
120
51
  export function getCurrentKeyDataFromJSON(jsonString) {
121
52
  return safeParse(jsonString, (x) => GetCurrentKeyData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentKeyData' from JSON`);
122
53
  }
@@ -124,24 +55,6 @@ export function getCurrentKeyDataFromJSON(jsonString) {
124
55
  export const GetCurrentKeyResponse$inboundSchema = z.object({
125
56
  data: z.lazy(() => GetCurrentKeyData$inboundSchema),
126
57
  });
127
- /** @internal */
128
- export const GetCurrentKeyResponse$outboundSchema = z.object({
129
- data: z.lazy(() => GetCurrentKeyData$outboundSchema),
130
- });
131
- /**
132
- * @internal
133
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
- */
135
- export var GetCurrentKeyResponse$;
136
- (function (GetCurrentKeyResponse$) {
137
- /** @deprecated use `GetCurrentKeyResponse$inboundSchema` instead. */
138
- GetCurrentKeyResponse$.inboundSchema = GetCurrentKeyResponse$inboundSchema;
139
- /** @deprecated use `GetCurrentKeyResponse$outboundSchema` instead. */
140
- GetCurrentKeyResponse$.outboundSchema = GetCurrentKeyResponse$outboundSchema;
141
- })(GetCurrentKeyResponse$ || (GetCurrentKeyResponse$ = {}));
142
- export function getCurrentKeyResponseToJSON(getCurrentKeyResponse) {
143
- return JSON.stringify(GetCurrentKeyResponse$outboundSchema.parse(getCurrentKeyResponse));
144
- }
145
58
  export function getCurrentKeyResponseFromJSON(jsonString) {
146
59
  return safeParse(jsonString, (x) => GetCurrentKeyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentKeyResponse' from JSON`);
147
60
  }
@@ -116,10 +116,6 @@ export type GetGenerationData = {
116
116
  * Number of audio inputs in the prompt
117
117
  */
118
118
  numInputAudioPrompt: number | null;
119
- /**
120
- * Number of video inputs in the prompt
121
- */
122
- numVideoPrompt: number | null;
123
119
  /**
124
120
  * Number of media items in the completion
125
121
  */
@@ -163,115 +159,18 @@ export type GetGenerationResponse = {
163
159
  data: GetGenerationData;
164
160
  };
165
161
  /** @internal */
166
- export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest, unknown>;
167
- /** @internal */
168
162
  export type GetGenerationRequest$Outbound = {
169
163
  id: string;
170
164
  };
171
165
  /** @internal */
172
166
  export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest>;
173
- /**
174
- * @internal
175
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
- */
177
- export declare namespace GetGenerationRequest$ {
178
- /** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
179
- const inboundSchema: z.ZodType<GetGenerationRequest, unknown, z.core.$ZodTypeInternals<GetGenerationRequest, unknown>>;
180
- /** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
181
- const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest, z.core.$ZodTypeInternals<GetGenerationRequest$Outbound, GetGenerationRequest>>;
182
- /** @deprecated use `GetGenerationRequest$Outbound` instead. */
183
- type Outbound = GetGenerationRequest$Outbound;
184
- }
185
167
  export declare function getGenerationRequestToJSON(getGenerationRequest: GetGenerationRequest): string;
186
- export declare function getGenerationRequestFromJSON(jsonString: string): SafeParseResult<GetGenerationRequest, SDKValidationError>;
187
168
  /** @internal */
188
169
  export declare const ApiType$inboundSchema: z.ZodType<ApiType, unknown>;
189
170
  /** @internal */
190
- export declare const ApiType$outboundSchema: z.ZodType<ApiType, ApiType>;
191
- /**
192
- * @internal
193
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
194
- */
195
- export declare namespace ApiType$ {
196
- /** @deprecated use `ApiType$inboundSchema` instead. */
197
- const inboundSchema: z.ZodType<ApiType, unknown, z.core.$ZodTypeInternals<ApiType, unknown>>;
198
- /** @deprecated use `ApiType$outboundSchema` instead. */
199
- const outboundSchema: z.ZodType<ApiType, ApiType, z.core.$ZodTypeInternals<ApiType, ApiType>>;
200
- }
201
- /** @internal */
202
171
  export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData, unknown>;
203
- /** @internal */
204
- export type GetGenerationData$Outbound = {
205
- id: string;
206
- upstream_id: string | null;
207
- total_cost: number;
208
- cache_discount: number | null;
209
- upstream_inference_cost: number | null;
210
- created_at: string;
211
- model: string;
212
- app_id: number | null;
213
- streamed: boolean | null;
214
- cancelled: boolean | null;
215
- provider_name: string | null;
216
- latency: number | null;
217
- moderation_latency: number | null;
218
- generation_time: number | null;
219
- finish_reason: string | null;
220
- tokens_prompt: number | null;
221
- tokens_completion: number | null;
222
- native_tokens_prompt: number | null;
223
- native_tokens_completion: number | null;
224
- native_tokens_completion_images: number | null;
225
- native_tokens_reasoning: number | null;
226
- native_tokens_cached: number | null;
227
- num_media_prompt: number | null;
228
- num_input_audio_prompt: number | null;
229
- num_video_prompt: number | null;
230
- num_media_completion: number | null;
231
- num_search_results: number | null;
232
- origin: string;
233
- usage: number;
234
- is_byok: boolean;
235
- native_finish_reason: string | null;
236
- external_user: string | null;
237
- api_type: string | null;
238
- };
239
- /** @internal */
240
- export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData>;
241
- /**
242
- * @internal
243
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
244
- */
245
- export declare namespace GetGenerationData$ {
246
- /** @deprecated use `GetGenerationData$inboundSchema` instead. */
247
- const inboundSchema: z.ZodType<GetGenerationData, unknown, z.core.$ZodTypeInternals<GetGenerationData, unknown>>;
248
- /** @deprecated use `GetGenerationData$outboundSchema` instead. */
249
- const outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData, z.core.$ZodTypeInternals<GetGenerationData$Outbound, GetGenerationData>>;
250
- /** @deprecated use `GetGenerationData$Outbound` instead. */
251
- type Outbound = GetGenerationData$Outbound;
252
- }
253
- export declare function getGenerationDataToJSON(getGenerationData: GetGenerationData): string;
254
172
  export declare function getGenerationDataFromJSON(jsonString: string): SafeParseResult<GetGenerationData, SDKValidationError>;
255
173
  /** @internal */
256
174
  export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse, unknown>;
257
- /** @internal */
258
- export type GetGenerationResponse$Outbound = {
259
- data: GetGenerationData$Outbound;
260
- };
261
- /** @internal */
262
- export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse>;
263
- /**
264
- * @internal
265
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
266
- */
267
- export declare namespace GetGenerationResponse$ {
268
- /** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
269
- const inboundSchema: z.ZodType<GetGenerationResponse, unknown, z.core.$ZodTypeInternals<GetGenerationResponse, unknown>>;
270
- /** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
271
- const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse, z.core.$ZodTypeInternals<GetGenerationResponse$Outbound, GetGenerationResponse>>;
272
- /** @deprecated use `GetGenerationResponse$Outbound` instead. */
273
- type Outbound = GetGenerationResponse$Outbound;
274
- }
275
- export declare function getGenerationResponseToJSON(getGenerationResponse: GetGenerationResponse): string;
276
175
  export declare function getGenerationResponseFromJSON(jsonString: string): SafeParseResult<GetGenerationResponse, SDKValidationError>;
277
176
  //# sourceMappingURL=getgeneration.d.ts.map
@@ -4,7 +4,7 @@
4
4
  import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { catchUnrecognizedEnum, } from "../../types/enums.js";
7
+ import { catchUnrecognizedEnum } from "../../types/enums.js";
8
8
  /**
9
9
  * Type of API used for the generation
10
10
  */
@@ -13,30 +13,12 @@ export const ApiType = {
13
13
  Embeddings: "embeddings",
14
14
  };
15
15
  /** @internal */
16
- export const GetGenerationRequest$inboundSchema = z.object({
17
- id: z.string(),
18
- });
19
- /** @internal */
20
16
  export const GetGenerationRequest$outboundSchema = z.object({
21
17
  id: z.string(),
22
18
  });
23
- /**
24
- * @internal
25
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
- */
27
- export var GetGenerationRequest$;
28
- (function (GetGenerationRequest$) {
29
- /** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
30
- GetGenerationRequest$.inboundSchema = GetGenerationRequest$inboundSchema;
31
- /** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
32
- GetGenerationRequest$.outboundSchema = GetGenerationRequest$outboundSchema;
33
- })(GetGenerationRequest$ || (GetGenerationRequest$ = {}));
34
19
  export function getGenerationRequestToJSON(getGenerationRequest) {
35
20
  return JSON.stringify(GetGenerationRequest$outboundSchema.parse(getGenerationRequest));
36
21
  }
37
- export function getGenerationRequestFromJSON(jsonString) {
38
- return safeParse(jsonString, (x) => GetGenerationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationRequest' from JSON`);
39
- }
40
22
  /** @internal */
41
23
  export const ApiType$inboundSchema = z
42
24
  .union([
@@ -44,22 +26,6 @@ export const ApiType$inboundSchema = z
44
26
  z.string().transform(catchUnrecognizedEnum),
45
27
  ]);
46
28
  /** @internal */
47
- export const ApiType$outboundSchema = z.union([
48
- z.enum(ApiType),
49
- z.string().and(z.custom()),
50
- ]);
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- export var ApiType$;
56
- (function (ApiType$) {
57
- /** @deprecated use `ApiType$inboundSchema` instead. */
58
- ApiType$.inboundSchema = ApiType$inboundSchema;
59
- /** @deprecated use `ApiType$outboundSchema` instead. */
60
- ApiType$.outboundSchema = ApiType$outboundSchema;
61
- })(ApiType$ || (ApiType$ = {}));
62
- /** @internal */
63
29
  export const GetGenerationData$inboundSchema = z.object({
64
30
  id: z.string(),
65
31
  upstream_id: z.nullable(z.string()),
@@ -85,7 +51,6 @@ export const GetGenerationData$inboundSchema = z.object({
85
51
  native_tokens_cached: z.nullable(z.number()),
86
52
  num_media_prompt: z.nullable(z.number()),
87
53
  num_input_audio_prompt: z.nullable(z.number()),
88
- num_video_prompt: z.nullable(z.number()),
89
54
  num_media_completion: z.nullable(z.number()),
90
55
  num_search_results: z.nullable(z.number()),
91
56
  origin: z.string(),
@@ -115,7 +80,6 @@ export const GetGenerationData$inboundSchema = z.object({
115
80
  "native_tokens_cached": "nativeTokensCached",
116
81
  "num_media_prompt": "numMediaPrompt",
117
82
  "num_input_audio_prompt": "numInputAudioPrompt",
118
- "num_video_prompt": "numVideoPrompt",
119
83
  "num_media_completion": "numMediaCompletion",
120
84
  "num_search_results": "numSearchResults",
121
85
  "is_byok": "isByok",
@@ -124,85 +88,6 @@ export const GetGenerationData$inboundSchema = z.object({
124
88
  "api_type": "apiType",
125
89
  });
126
90
  });
127
- /** @internal */
128
- export const GetGenerationData$outboundSchema = z.object({
129
- id: z.string(),
130
- upstreamId: z.nullable(z.string()),
131
- totalCost: z.number(),
132
- cacheDiscount: z.nullable(z.number()),
133
- upstreamInferenceCost: z.nullable(z.number()),
134
- createdAt: z.string(),
135
- model: z.string(),
136
- appId: z.nullable(z.number()),
137
- streamed: z.nullable(z.boolean()),
138
- cancelled: z.nullable(z.boolean()),
139
- providerName: z.nullable(z.string()),
140
- latency: z.nullable(z.number()),
141
- moderationLatency: z.nullable(z.number()),
142
- generationTime: z.nullable(z.number()),
143
- finishReason: z.nullable(z.string()),
144
- tokensPrompt: z.nullable(z.number()),
145
- tokensCompletion: z.nullable(z.number()),
146
- nativeTokensPrompt: z.nullable(z.number()),
147
- nativeTokensCompletion: z.nullable(z.number()),
148
- nativeTokensCompletionImages: z.nullable(z.number()),
149
- nativeTokensReasoning: z.nullable(z.number()),
150
- nativeTokensCached: z.nullable(z.number()),
151
- numMediaPrompt: z.nullable(z.number()),
152
- numInputAudioPrompt: z.nullable(z.number()),
153
- numVideoPrompt: z.nullable(z.number()),
154
- numMediaCompletion: z.nullable(z.number()),
155
- numSearchResults: z.nullable(z.number()),
156
- origin: z.string(),
157
- usage: z.number(),
158
- isByok: z.boolean(),
159
- nativeFinishReason: z.nullable(z.string()),
160
- externalUser: z.nullable(z.string()),
161
- apiType: z.nullable(ApiType$outboundSchema),
162
- }).transform((v) => {
163
- return remap$(v, {
164
- upstreamId: "upstream_id",
165
- totalCost: "total_cost",
166
- cacheDiscount: "cache_discount",
167
- upstreamInferenceCost: "upstream_inference_cost",
168
- createdAt: "created_at",
169
- appId: "app_id",
170
- providerName: "provider_name",
171
- moderationLatency: "moderation_latency",
172
- generationTime: "generation_time",
173
- finishReason: "finish_reason",
174
- tokensPrompt: "tokens_prompt",
175
- tokensCompletion: "tokens_completion",
176
- nativeTokensPrompt: "native_tokens_prompt",
177
- nativeTokensCompletion: "native_tokens_completion",
178
- nativeTokensCompletionImages: "native_tokens_completion_images",
179
- nativeTokensReasoning: "native_tokens_reasoning",
180
- nativeTokensCached: "native_tokens_cached",
181
- numMediaPrompt: "num_media_prompt",
182
- numInputAudioPrompt: "num_input_audio_prompt",
183
- numVideoPrompt: "num_video_prompt",
184
- numMediaCompletion: "num_media_completion",
185
- numSearchResults: "num_search_results",
186
- isByok: "is_byok",
187
- nativeFinishReason: "native_finish_reason",
188
- externalUser: "external_user",
189
- apiType: "api_type",
190
- });
191
- });
192
- /**
193
- * @internal
194
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
195
- */
196
- export var GetGenerationData$;
197
- (function (GetGenerationData$) {
198
- /** @deprecated use `GetGenerationData$inboundSchema` instead. */
199
- GetGenerationData$.inboundSchema = GetGenerationData$inboundSchema;
200
- /** @deprecated use `GetGenerationData$outboundSchema` instead. */
201
- GetGenerationData$.outboundSchema = GetGenerationData$outboundSchema;
202
- })(GetGenerationData$ || (GetGenerationData$ = {}));
203
- export function getGenerationDataToJSON(getGenerationData) {
204
- return JSON.stringify(GetGenerationData$outboundSchema.parse(getGenerationData));
205
- }
206
91
  export function getGenerationDataFromJSON(jsonString) {
207
92
  return safeParse(jsonString, (x) => GetGenerationData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationData' from JSON`);
208
93
  }
@@ -210,24 +95,6 @@ export function getGenerationDataFromJSON(jsonString) {
210
95
  export const GetGenerationResponse$inboundSchema = z.object({
211
96
  data: z.lazy(() => GetGenerationData$inboundSchema),
212
97
  });
213
- /** @internal */
214
- export const GetGenerationResponse$outboundSchema = z.object({
215
- data: z.lazy(() => GetGenerationData$outboundSchema),
216
- });
217
- /**
218
- * @internal
219
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
220
- */
221
- export var GetGenerationResponse$;
222
- (function (GetGenerationResponse$) {
223
- /** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
224
- GetGenerationResponse$.inboundSchema = GetGenerationResponse$inboundSchema;
225
- /** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
226
- GetGenerationResponse$.outboundSchema = GetGenerationResponse$outboundSchema;
227
- })(GetGenerationResponse$ || (GetGenerationResponse$ = {}));
228
- export function getGenerationResponseToJSON(getGenerationResponse) {
229
- return JSON.stringify(GetGenerationResponse$outboundSchema.parse(getGenerationResponse));
230
- }
231
98
  export function getGenerationResponseFromJSON(jsonString) {
232
99
  return safeParse(jsonString, (x) => GetGenerationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationResponse' from JSON`);
233
100
  }
@@ -94,86 +94,16 @@ export type GetKeyResponse = {
94
94
  data: GetKeyData;
95
95
  };
96
96
  /** @internal */
97
- export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest, unknown>;
98
- /** @internal */
99
97
  export type GetKeyRequest$Outbound = {
100
98
  hash: string;
101
99
  };
102
100
  /** @internal */
103
101
  export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest>;
104
- /**
105
- * @internal
106
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
- */
108
- export declare namespace GetKeyRequest$ {
109
- /** @deprecated use `GetKeyRequest$inboundSchema` instead. */
110
- const inboundSchema: z.ZodType<GetKeyRequest, unknown, z.core.$ZodTypeInternals<GetKeyRequest, unknown>>;
111
- /** @deprecated use `GetKeyRequest$outboundSchema` instead. */
112
- const outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest, z.core.$ZodTypeInternals<GetKeyRequest$Outbound, GetKeyRequest>>;
113
- /** @deprecated use `GetKeyRequest$Outbound` instead. */
114
- type Outbound = GetKeyRequest$Outbound;
115
- }
116
102
  export declare function getKeyRequestToJSON(getKeyRequest: GetKeyRequest): string;
117
- export declare function getKeyRequestFromJSON(jsonString: string): SafeParseResult<GetKeyRequest, SDKValidationError>;
118
103
  /** @internal */
119
104
  export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData, unknown>;
120
- /** @internal */
121
- export type GetKeyData$Outbound = {
122
- hash: string;
123
- name: string;
124
- label: string;
125
- disabled: boolean;
126
- limit: number | null;
127
- limit_remaining: number | null;
128
- limit_reset: string | null;
129
- include_byok_in_limit: boolean;
130
- usage: number;
131
- usage_daily: number;
132
- usage_weekly: number;
133
- usage_monthly: number;
134
- byok_usage: number;
135
- byok_usage_daily: number;
136
- byok_usage_weekly: number;
137
- byok_usage_monthly: number;
138
- created_at: string;
139
- updated_at: string | null;
140
- };
141
- /** @internal */
142
- export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData>;
143
- /**
144
- * @internal
145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
- */
147
- export declare namespace GetKeyData$ {
148
- /** @deprecated use `GetKeyData$inboundSchema` instead. */
149
- const inboundSchema: z.ZodType<GetKeyData, unknown, z.core.$ZodTypeInternals<GetKeyData, unknown>>;
150
- /** @deprecated use `GetKeyData$outboundSchema` instead. */
151
- const outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData, z.core.$ZodTypeInternals<GetKeyData$Outbound, GetKeyData>>;
152
- /** @deprecated use `GetKeyData$Outbound` instead. */
153
- type Outbound = GetKeyData$Outbound;
154
- }
155
- export declare function getKeyDataToJSON(getKeyData: GetKeyData): string;
156
105
  export declare function getKeyDataFromJSON(jsonString: string): SafeParseResult<GetKeyData, SDKValidationError>;
157
106
  /** @internal */
158
107
  export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse, unknown>;
159
- /** @internal */
160
- export type GetKeyResponse$Outbound = {
161
- data: GetKeyData$Outbound;
162
- };
163
- /** @internal */
164
- export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse>;
165
- /**
166
- * @internal
167
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
168
- */
169
- export declare namespace GetKeyResponse$ {
170
- /** @deprecated use `GetKeyResponse$inboundSchema` instead. */
171
- const inboundSchema: z.ZodType<GetKeyResponse, unknown, z.core.$ZodTypeInternals<GetKeyResponse, unknown>>;
172
- /** @deprecated use `GetKeyResponse$outboundSchema` instead. */
173
- const outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse, z.core.$ZodTypeInternals<GetKeyResponse$Outbound, GetKeyResponse>>;
174
- /** @deprecated use `GetKeyResponse$Outbound` instead. */
175
- type Outbound = GetKeyResponse$Outbound;
176
- }
177
- export declare function getKeyResponseToJSON(getKeyResponse: GetKeyResponse): string;
178
108
  export declare function getKeyResponseFromJSON(jsonString: string): SafeParseResult<GetKeyResponse, SDKValidationError>;
179
109
  //# sourceMappingURL=getkey.d.ts.map
@@ -5,31 +5,12 @@ import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  /** @internal */
8
- export const GetKeyRequest$inboundSchema = z
9
- .object({
10
- hash: z.string(),
11
- });
12
- /** @internal */
13
8
  export const GetKeyRequest$outboundSchema = z.object({
14
9
  hash: z.string(),
15
10
  });
16
- /**
17
- * @internal
18
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
19
- */
20
- export var GetKeyRequest$;
21
- (function (GetKeyRequest$) {
22
- /** @deprecated use `GetKeyRequest$inboundSchema` instead. */
23
- GetKeyRequest$.inboundSchema = GetKeyRequest$inboundSchema;
24
- /** @deprecated use `GetKeyRequest$outboundSchema` instead. */
25
- GetKeyRequest$.outboundSchema = GetKeyRequest$outboundSchema;
26
- })(GetKeyRequest$ || (GetKeyRequest$ = {}));
27
11
  export function getKeyRequestToJSON(getKeyRequest) {
28
12
  return JSON.stringify(GetKeyRequest$outboundSchema.parse(getKeyRequest));
29
13
  }
30
- export function getKeyRequestFromJSON(jsonString) {
31
- return safeParse(jsonString, (x) => GetKeyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyRequest' from JSON`);
32
- }
33
14
  /** @internal */
34
15
  export const GetKeyData$inboundSchema = z
35
16
  .object({
@@ -67,56 +48,6 @@ export const GetKeyData$inboundSchema = z
67
48
  "updated_at": "updatedAt",
68
49
  });
69
50
  });
70
- /** @internal */
71
- export const GetKeyData$outboundSchema = z.object({
72
- hash: z.string(),
73
- name: z.string(),
74
- label: z.string(),
75
- disabled: z.boolean(),
76
- limit: z.nullable(z.number()),
77
- limitRemaining: z.nullable(z.number()),
78
- limitReset: z.nullable(z.string()),
79
- includeByokInLimit: z.boolean(),
80
- usage: z.number(),
81
- usageDaily: z.number(),
82
- usageWeekly: z.number(),
83
- usageMonthly: z.number(),
84
- byokUsage: z.number(),
85
- byokUsageDaily: z.number(),
86
- byokUsageWeekly: z.number(),
87
- byokUsageMonthly: z.number(),
88
- createdAt: z.string(),
89
- updatedAt: z.nullable(z.string()),
90
- }).transform((v) => {
91
- return remap$(v, {
92
- limitRemaining: "limit_remaining",
93
- limitReset: "limit_reset",
94
- includeByokInLimit: "include_byok_in_limit",
95
- usageDaily: "usage_daily",
96
- usageWeekly: "usage_weekly",
97
- usageMonthly: "usage_monthly",
98
- byokUsage: "byok_usage",
99
- byokUsageDaily: "byok_usage_daily",
100
- byokUsageWeekly: "byok_usage_weekly",
101
- byokUsageMonthly: "byok_usage_monthly",
102
- createdAt: "created_at",
103
- updatedAt: "updated_at",
104
- });
105
- });
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export var GetKeyData$;
111
- (function (GetKeyData$) {
112
- /** @deprecated use `GetKeyData$inboundSchema` instead. */
113
- GetKeyData$.inboundSchema = GetKeyData$inboundSchema;
114
- /** @deprecated use `GetKeyData$outboundSchema` instead. */
115
- GetKeyData$.outboundSchema = GetKeyData$outboundSchema;
116
- })(GetKeyData$ || (GetKeyData$ = {}));
117
- export function getKeyDataToJSON(getKeyData) {
118
- return JSON.stringify(GetKeyData$outboundSchema.parse(getKeyData));
119
- }
120
51
  export function getKeyDataFromJSON(jsonString) {
121
52
  return safeParse(jsonString, (x) => GetKeyData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyData' from JSON`);
122
53
  }
@@ -124,24 +55,6 @@ export function getKeyDataFromJSON(jsonString) {
124
55
  export const GetKeyResponse$inboundSchema = z.object({
125
56
  data: z.lazy(() => GetKeyData$inboundSchema),
126
57
  });
127
- /** @internal */
128
- export const GetKeyResponse$outboundSchema = z.object({
129
- data: z.lazy(() => GetKeyData$outboundSchema),
130
- });
131
- /**
132
- * @internal
133
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
- */
135
- export var GetKeyResponse$;
136
- (function (GetKeyResponse$) {
137
- /** @deprecated use `GetKeyResponse$inboundSchema` instead. */
138
- GetKeyResponse$.inboundSchema = GetKeyResponse$inboundSchema;
139
- /** @deprecated use `GetKeyResponse$outboundSchema` instead. */
140
- GetKeyResponse$.outboundSchema = GetKeyResponse$outboundSchema;
141
- })(GetKeyResponse$ || (GetKeyResponse$ = {}));
142
- export function getKeyResponseToJSON(getKeyResponse) {
143
- return JSON.stringify(GetKeyResponse$outboundSchema.parse(getKeyResponse));
144
- }
145
58
  export function getKeyResponseFromJSON(jsonString) {
146
59
  return safeParse(jsonString, (x) => GetKeyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyResponse' from JSON`);
147
60
  }
@@ -1,31 +1,14 @@
1
1
  import * as z from "zod/v4";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
2
  export type GetModelsRequest = {
5
3
  category?: string | undefined;
6
4
  supportedParameters?: string | undefined;
7
5
  };
8
6
  /** @internal */
9
- export declare const GetModelsRequest$inboundSchema: z.ZodType<GetModelsRequest, unknown>;
10
- /** @internal */
11
7
  export type GetModelsRequest$Outbound = {
12
8
  category?: string | undefined;
13
9
  supported_parameters?: string | undefined;
14
10
  };
15
11
  /** @internal */
16
12
  export declare const GetModelsRequest$outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest>;
17
- /**
18
- * @internal
19
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
20
- */
21
- export declare namespace GetModelsRequest$ {
22
- /** @deprecated use `GetModelsRequest$inboundSchema` instead. */
23
- const inboundSchema: z.ZodType<GetModelsRequest, unknown, z.core.$ZodTypeInternals<GetModelsRequest, unknown>>;
24
- /** @deprecated use `GetModelsRequest$outboundSchema` instead. */
25
- const outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest, z.core.$ZodTypeInternals<GetModelsRequest$Outbound, GetModelsRequest>>;
26
- /** @deprecated use `GetModelsRequest$Outbound` instead. */
27
- type Outbound = GetModelsRequest$Outbound;
28
- }
29
13
  export declare function getModelsRequestToJSON(getModelsRequest: GetModelsRequest): string;
30
- export declare function getModelsRequestFromJSON(jsonString: string): SafeParseResult<GetModelsRequest, SDKValidationError>;
31
14
  //# sourceMappingURL=getmodels.d.ts.map