@openrouter/sdk 0.1.2 → 0.1.4

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 +6 -70
  20. package/esm/models/chatgenerationtokenusage.js +7 -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 +5 -356
  198. package/esm/models/openresponsesrequest.js +18 -530
  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 +5 -330
  220. package/esm/models/operations/createembeddings.js +4 -404
  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
@@ -4,7 +4,6 @@
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";
8
7
  /**
9
8
  * Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
10
9
  */
@@ -14,39 +13,10 @@ export const CreateKeysLimitReset = {
14
13
  Monthly: "monthly",
15
14
  };
16
15
  /** @internal */
17
- export const CreateKeysLimitReset$inboundSchema = z
18
- .union([
19
- z.enum(CreateKeysLimitReset),
20
- z.string().transform(catchUnrecognizedEnum),
21
- ]);
22
- /** @internal */
23
16
  export const CreateKeysLimitReset$outboundSchema = z.union([
24
17
  z.enum(CreateKeysLimitReset),
25
18
  z.string().and(z.custom()),
26
19
  ]);
27
- /**
28
- * @internal
29
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
- */
31
- export var CreateKeysLimitReset$;
32
- (function (CreateKeysLimitReset$) {
33
- /** @deprecated use `CreateKeysLimitReset$inboundSchema` instead. */
34
- CreateKeysLimitReset$.inboundSchema = CreateKeysLimitReset$inboundSchema;
35
- /** @deprecated use `CreateKeysLimitReset$outboundSchema` instead. */
36
- CreateKeysLimitReset$.outboundSchema = CreateKeysLimitReset$outboundSchema;
37
- })(CreateKeysLimitReset$ || (CreateKeysLimitReset$ = {}));
38
- /** @internal */
39
- export const CreateKeysRequest$inboundSchema = z.object({
40
- name: z.string(),
41
- limit: z.nullable(z.number()).optional(),
42
- limit_reset: z.nullable(CreateKeysLimitReset$inboundSchema).optional(),
43
- include_byok_in_limit: z.boolean().optional(),
44
- }).transform((v) => {
45
- return remap$(v, {
46
- "limit_reset": "limitReset",
47
- "include_byok_in_limit": "includeByokInLimit",
48
- });
49
- });
50
20
  /** @internal */
51
21
  export const CreateKeysRequest$outboundSchema = z.object({
52
22
  name: z.string(),
@@ -59,23 +29,9 @@ export const CreateKeysRequest$outboundSchema = z.object({
59
29
  includeByokInLimit: "include_byok_in_limit",
60
30
  });
61
31
  });
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export var CreateKeysRequest$;
67
- (function (CreateKeysRequest$) {
68
- /** @deprecated use `CreateKeysRequest$inboundSchema` instead. */
69
- CreateKeysRequest$.inboundSchema = CreateKeysRequest$inboundSchema;
70
- /** @deprecated use `CreateKeysRequest$outboundSchema` instead. */
71
- CreateKeysRequest$.outboundSchema = CreateKeysRequest$outboundSchema;
72
- })(CreateKeysRequest$ || (CreateKeysRequest$ = {}));
73
32
  export function createKeysRequestToJSON(createKeysRequest) {
74
33
  return JSON.stringify(CreateKeysRequest$outboundSchema.parse(createKeysRequest));
75
34
  }
76
- export function createKeysRequestFromJSON(jsonString) {
77
- return safeParse(jsonString, (x) => CreateKeysRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateKeysRequest' from JSON`);
78
- }
79
35
  /** @internal */
80
36
  export const CreateKeysData$inboundSchema = z.object({
81
37
  hash: z.string(),
@@ -112,56 +68,6 @@ export const CreateKeysData$inboundSchema = z.object({
112
68
  "updated_at": "updatedAt",
113
69
  });
114
70
  });
115
- /** @internal */
116
- export const CreateKeysData$outboundSchema = z.object({
117
- hash: z.string(),
118
- name: z.string(),
119
- label: z.string(),
120
- disabled: z.boolean(),
121
- limit: z.nullable(z.number()),
122
- limitRemaining: z.nullable(z.number()),
123
- limitReset: z.nullable(z.string()),
124
- includeByokInLimit: z.boolean(),
125
- usage: z.number(),
126
- usageDaily: z.number(),
127
- usageWeekly: z.number(),
128
- usageMonthly: z.number(),
129
- byokUsage: z.number(),
130
- byokUsageDaily: z.number(),
131
- byokUsageWeekly: z.number(),
132
- byokUsageMonthly: z.number(),
133
- createdAt: z.string(),
134
- updatedAt: z.nullable(z.string()),
135
- }).transform((v) => {
136
- return remap$(v, {
137
- limitRemaining: "limit_remaining",
138
- limitReset: "limit_reset",
139
- includeByokInLimit: "include_byok_in_limit",
140
- usageDaily: "usage_daily",
141
- usageWeekly: "usage_weekly",
142
- usageMonthly: "usage_monthly",
143
- byokUsage: "byok_usage",
144
- byokUsageDaily: "byok_usage_daily",
145
- byokUsageWeekly: "byok_usage_weekly",
146
- byokUsageMonthly: "byok_usage_monthly",
147
- createdAt: "created_at",
148
- updatedAt: "updated_at",
149
- });
150
- });
151
- /**
152
- * @internal
153
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
- */
155
- export var CreateKeysData$;
156
- (function (CreateKeysData$) {
157
- /** @deprecated use `CreateKeysData$inboundSchema` instead. */
158
- CreateKeysData$.inboundSchema = CreateKeysData$inboundSchema;
159
- /** @deprecated use `CreateKeysData$outboundSchema` instead. */
160
- CreateKeysData$.outboundSchema = CreateKeysData$outboundSchema;
161
- })(CreateKeysData$ || (CreateKeysData$ = {}));
162
- export function createKeysDataToJSON(createKeysData) {
163
- return JSON.stringify(CreateKeysData$outboundSchema.parse(createKeysData));
164
- }
165
71
  export function createKeysDataFromJSON(jsonString) {
166
72
  return safeParse(jsonString, (x) => CreateKeysData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateKeysData' from JSON`);
167
73
  }
@@ -170,25 +76,6 @@ export const CreateKeysResponse$inboundSchema = z.object({
170
76
  data: z.lazy(() => CreateKeysData$inboundSchema),
171
77
  key: z.string(),
172
78
  });
173
- /** @internal */
174
- export const CreateKeysResponse$outboundSchema = z.object({
175
- data: z.lazy(() => CreateKeysData$outboundSchema),
176
- key: z.string(),
177
- });
178
- /**
179
- * @internal
180
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
181
- */
182
- export var CreateKeysResponse$;
183
- (function (CreateKeysResponse$) {
184
- /** @deprecated use `CreateKeysResponse$inboundSchema` instead. */
185
- CreateKeysResponse$.inboundSchema = CreateKeysResponse$inboundSchema;
186
- /** @deprecated use `CreateKeysResponse$outboundSchema` instead. */
187
- CreateKeysResponse$.outboundSchema = CreateKeysResponse$outboundSchema;
188
- })(CreateKeysResponse$ || (CreateKeysResponse$ = {}));
189
- export function createKeysResponseToJSON(createKeysResponse) {
190
- return JSON.stringify(CreateKeysResponse$outboundSchema.parse(createKeysResponse));
191
- }
192
79
  export function createKeysResponseFromJSON(jsonString) {
193
80
  return safeParse(jsonString, (x) => CreateKeysResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateKeysResponse' from JSON`);
194
81
  }
@@ -15,44 +15,8 @@ export type CreateResponsesResponseBody = {
15
15
  export type CreateResponsesResponse = models.OpenResponsesNonStreamingResponse | EventStream<models.OpenResponsesStreamEvent>;
16
16
  /** @internal */
17
17
  export declare const CreateResponsesResponseBody$inboundSchema: z.ZodType<CreateResponsesResponseBody, unknown>;
18
- /** @internal */
19
- export type CreateResponsesResponseBody$Outbound = {
20
- data: models.OpenResponsesStreamEvent$Outbound;
21
- };
22
- /** @internal */
23
- export declare const CreateResponsesResponseBody$outboundSchema: z.ZodType<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody>;
24
- /**
25
- * @internal
26
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
- */
28
- export declare namespace CreateResponsesResponseBody$ {
29
- /** @deprecated use `CreateResponsesResponseBody$inboundSchema` instead. */
30
- const inboundSchema: z.ZodType<CreateResponsesResponseBody, unknown, z.core.$ZodTypeInternals<CreateResponsesResponseBody, unknown>>;
31
- /** @deprecated use `CreateResponsesResponseBody$outboundSchema` instead. */
32
- const outboundSchema: z.ZodType<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody, z.core.$ZodTypeInternals<CreateResponsesResponseBody$Outbound, CreateResponsesResponseBody>>;
33
- /** @deprecated use `CreateResponsesResponseBody$Outbound` instead. */
34
- type Outbound = CreateResponsesResponseBody$Outbound;
35
- }
36
- export declare function createResponsesResponseBodyToJSON(createResponsesResponseBody: CreateResponsesResponseBody): string;
37
18
  export declare function createResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateResponsesResponseBody, SDKValidationError>;
38
19
  /** @internal */
39
20
  export declare const CreateResponsesResponse$inboundSchema: z.ZodType<CreateResponsesResponse, unknown>;
40
- /** @internal */
41
- export type CreateResponsesResponse$Outbound = models.OpenResponsesNonStreamingResponse$Outbound | never;
42
- /** @internal */
43
- export declare const CreateResponsesResponse$outboundSchema: z.ZodType<CreateResponsesResponse$Outbound, CreateResponsesResponse>;
44
- /**
45
- * @internal
46
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
- */
48
- export declare namespace CreateResponsesResponse$ {
49
- /** @deprecated use `CreateResponsesResponse$inboundSchema` instead. */
50
- const inboundSchema: z.ZodType<CreateResponsesResponse, unknown, z.core.$ZodTypeInternals<CreateResponsesResponse, unknown>>;
51
- /** @deprecated use `CreateResponsesResponse$outboundSchema` instead. */
52
- const outboundSchema: z.ZodType<models.OpenResponsesNonStreamingResponse$Outbound, CreateResponsesResponse, z.core.$ZodTypeInternals<models.OpenResponsesNonStreamingResponse$Outbound, CreateResponsesResponse>>;
53
- /** @deprecated use `CreateResponsesResponse$Outbound` instead. */
54
- type Outbound = CreateResponsesResponse$Outbound;
55
- }
56
- export declare function createResponsesResponseToJSON(createResponsesResponse: CreateResponsesResponse): string;
57
21
  export declare function createResponsesResponseFromJSON(jsonString: string): SafeParseResult<CreateResponsesResponse, SDKValidationError>;
58
22
  //# sourceMappingURL=createresponses.d.ts.map
@@ -20,24 +20,6 @@ export const CreateResponsesResponseBody$inboundSchema = z.object({
20
20
  }
21
21
  }).pipe(models.OpenResponsesStreamEvent$inboundSchema),
22
22
  });
23
- /** @internal */
24
- export const CreateResponsesResponseBody$outboundSchema = z.object({
25
- data: models.OpenResponsesStreamEvent$outboundSchema,
26
- });
27
- /**
28
- * @internal
29
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
- */
31
- export var CreateResponsesResponseBody$;
32
- (function (CreateResponsesResponseBody$) {
33
- /** @deprecated use `CreateResponsesResponseBody$inboundSchema` instead. */
34
- CreateResponsesResponseBody$.inboundSchema = CreateResponsesResponseBody$inboundSchema;
35
- /** @deprecated use `CreateResponsesResponseBody$outboundSchema` instead. */
36
- CreateResponsesResponseBody$.outboundSchema = CreateResponsesResponseBody$outboundSchema;
37
- })(CreateResponsesResponseBody$ || (CreateResponsesResponseBody$ = {}));
38
- export function createResponsesResponseBodyToJSON(createResponsesResponseBody) {
39
- return JSON.stringify(CreateResponsesResponseBody$outboundSchema.parse(createResponsesResponseBody));
40
- }
41
23
  export function createResponsesResponseBodyFromJSON(jsonString) {
42
24
  return safeParse(jsonString, (x) => CreateResponsesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResponsesResponseBody' from JSON`);
43
25
  }
@@ -55,25 +37,6 @@ export const CreateResponsesResponse$inboundSchema = z.union([
55
37
  });
56
38
  }),
57
39
  ]);
58
- /** @internal */
59
- export const CreateResponsesResponse$outboundSchema = z.union([
60
- models.OpenResponsesNonStreamingResponse$outboundSchema,
61
- z.never(),
62
- ]);
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- export var CreateResponsesResponse$;
68
- (function (CreateResponsesResponse$) {
69
- /** @deprecated use `CreateResponsesResponse$inboundSchema` instead. */
70
- CreateResponsesResponse$.inboundSchema = CreateResponsesResponse$inboundSchema;
71
- /** @deprecated use `CreateResponsesResponse$outboundSchema` instead. */
72
- CreateResponsesResponse$.outboundSchema = CreateResponsesResponse$outboundSchema;
73
- })(CreateResponsesResponse$ || (CreateResponsesResponse$ = {}));
74
- export function createResponsesResponseToJSON(createResponsesResponse) {
75
- return JSON.stringify(CreateResponsesResponse$outboundSchema.parse(createResponsesResponse));
76
- }
77
40
  export function createResponsesResponseFromJSON(jsonString) {
78
41
  return safeParse(jsonString, (x) => CreateResponsesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResponsesResponse' from JSON`);
79
42
  }
@@ -17,47 +17,13 @@ export type DeleteKeysResponse = {
17
17
  deleted: true;
18
18
  };
19
19
  /** @internal */
20
- export declare const DeleteKeysRequest$inboundSchema: z.ZodType<DeleteKeysRequest, unknown>;
21
- /** @internal */
22
20
  export type DeleteKeysRequest$Outbound = {
23
21
  hash: string;
24
22
  };
25
23
  /** @internal */
26
24
  export declare const DeleteKeysRequest$outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, DeleteKeysRequest>;
27
- /**
28
- * @internal
29
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
- */
31
- export declare namespace DeleteKeysRequest$ {
32
- /** @deprecated use `DeleteKeysRequest$inboundSchema` instead. */
33
- const inboundSchema: z.ZodType<DeleteKeysRequest, unknown, z.core.$ZodTypeInternals<DeleteKeysRequest, unknown>>;
34
- /** @deprecated use `DeleteKeysRequest$outboundSchema` instead. */
35
- const outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, DeleteKeysRequest, z.core.$ZodTypeInternals<DeleteKeysRequest$Outbound, DeleteKeysRequest>>;
36
- /** @deprecated use `DeleteKeysRequest$Outbound` instead. */
37
- type Outbound = DeleteKeysRequest$Outbound;
38
- }
39
25
  export declare function deleteKeysRequestToJSON(deleteKeysRequest: DeleteKeysRequest): string;
40
- export declare function deleteKeysRequestFromJSON(jsonString: string): SafeParseResult<DeleteKeysRequest, SDKValidationError>;
41
26
  /** @internal */
42
27
  export declare const DeleteKeysResponse$inboundSchema: z.ZodType<DeleteKeysResponse, unknown>;
43
- /** @internal */
44
- export type DeleteKeysResponse$Outbound = {
45
- deleted: true;
46
- };
47
- /** @internal */
48
- export declare const DeleteKeysResponse$outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, DeleteKeysResponse>;
49
- /**
50
- * @internal
51
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
- */
53
- export declare namespace DeleteKeysResponse$ {
54
- /** @deprecated use `DeleteKeysResponse$inboundSchema` instead. */
55
- const inboundSchema: z.ZodType<DeleteKeysResponse, unknown, z.core.$ZodTypeInternals<DeleteKeysResponse, unknown>>;
56
- /** @deprecated use `DeleteKeysResponse$outboundSchema` instead. */
57
- const outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, DeleteKeysResponse, z.core.$ZodTypeInternals<DeleteKeysResponse$Outbound, DeleteKeysResponse>>;
58
- /** @deprecated use `DeleteKeysResponse$Outbound` instead. */
59
- type Outbound = DeleteKeysResponse$Outbound;
60
- }
61
- export declare function deleteKeysResponseToJSON(deleteKeysResponse: DeleteKeysResponse): string;
62
28
  export declare function deleteKeysResponseFromJSON(jsonString: string): SafeParseResult<DeleteKeysResponse, SDKValidationError>;
63
29
  //# sourceMappingURL=deletekeys.d.ts.map
@@ -4,52 +4,16 @@
4
4
  import * as z from "zod/v4";
5
5
  import { safeParse } from "../../lib/schemas.js";
6
6
  /** @internal */
7
- export const DeleteKeysRequest$inboundSchema = z.object({
8
- hash: z.string(),
9
- });
10
- /** @internal */
11
7
  export const DeleteKeysRequest$outboundSchema = z.object({
12
8
  hash: z.string(),
13
9
  });
14
- /**
15
- * @internal
16
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
- */
18
- export var DeleteKeysRequest$;
19
- (function (DeleteKeysRequest$) {
20
- /** @deprecated use `DeleteKeysRequest$inboundSchema` instead. */
21
- DeleteKeysRequest$.inboundSchema = DeleteKeysRequest$inboundSchema;
22
- /** @deprecated use `DeleteKeysRequest$outboundSchema` instead. */
23
- DeleteKeysRequest$.outboundSchema = DeleteKeysRequest$outboundSchema;
24
- })(DeleteKeysRequest$ || (DeleteKeysRequest$ = {}));
25
10
  export function deleteKeysRequestToJSON(deleteKeysRequest) {
26
11
  return JSON.stringify(DeleteKeysRequest$outboundSchema.parse(deleteKeysRequest));
27
12
  }
28
- export function deleteKeysRequestFromJSON(jsonString) {
29
- return safeParse(jsonString, (x) => DeleteKeysRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteKeysRequest' from JSON`);
30
- }
31
13
  /** @internal */
32
14
  export const DeleteKeysResponse$inboundSchema = z.object({
33
15
  deleted: z.literal(true),
34
16
  });
35
- /** @internal */
36
- export const DeleteKeysResponse$outboundSchema = z.object({
37
- deleted: z.literal(true),
38
- });
39
- /**
40
- * @internal
41
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
- */
43
- export var DeleteKeysResponse$;
44
- (function (DeleteKeysResponse$) {
45
- /** @deprecated use `DeleteKeysResponse$inboundSchema` instead. */
46
- DeleteKeysResponse$.inboundSchema = DeleteKeysResponse$inboundSchema;
47
- /** @deprecated use `DeleteKeysResponse$outboundSchema` instead. */
48
- DeleteKeysResponse$.outboundSchema = DeleteKeysResponse$outboundSchema;
49
- })(DeleteKeysResponse$ || (DeleteKeysResponse$ = {}));
50
- export function deleteKeysResponseToJSON(deleteKeysResponse) {
51
- return JSON.stringify(DeleteKeysResponse$outboundSchema.parse(deleteKeysResponse));
52
- }
53
17
  export function deleteKeysResponseFromJSON(jsonString) {
54
18
  return safeParse(jsonString, (x) => DeleteKeysResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteKeysResponse' from JSON`);
55
19
  }
@@ -41,21 +41,7 @@ export type ExchangeAuthCodeForAPIKeyResponse = {
41
41
  userId: string | null;
42
42
  };
43
43
  /** @internal */
44
- export declare const ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, unknown>;
45
- /** @internal */
46
44
  export declare const ExchangeAuthCodeForAPIKeyCodeChallengeMethod$outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, ExchangeAuthCodeForAPIKeyCodeChallengeMethod>;
47
- /**
48
- * @internal
49
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
- */
51
- export declare namespace ExchangeAuthCodeForAPIKeyCodeChallengeMethod$ {
52
- /** @deprecated use `ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema` instead. */
53
- const inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, unknown, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, unknown>>;
54
- /** @deprecated use `ExchangeAuthCodeForAPIKeyCodeChallengeMethod$outboundSchema` instead. */
55
- const outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, ExchangeAuthCodeForAPIKeyCodeChallengeMethod, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyCodeChallengeMethod, ExchangeAuthCodeForAPIKeyCodeChallengeMethod>>;
56
- }
57
- /** @internal */
58
- export declare const ExchangeAuthCodeForAPIKeyRequest$inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyRequest, unknown>;
59
45
  /** @internal */
60
46
  export type ExchangeAuthCodeForAPIKeyRequest$Outbound = {
61
47
  code: string;
@@ -64,41 +50,8 @@ export type ExchangeAuthCodeForAPIKeyRequest$Outbound = {
64
50
  };
65
51
  /** @internal */
66
52
  export declare const ExchangeAuthCodeForAPIKeyRequest$outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyRequest$Outbound, ExchangeAuthCodeForAPIKeyRequest>;
67
- /**
68
- * @internal
69
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
70
- */
71
- export declare namespace ExchangeAuthCodeForAPIKeyRequest$ {
72
- /** @deprecated use `ExchangeAuthCodeForAPIKeyRequest$inboundSchema` instead. */
73
- const inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyRequest, unknown, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyRequest, unknown>>;
74
- /** @deprecated use `ExchangeAuthCodeForAPIKeyRequest$outboundSchema` instead. */
75
- const outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyRequest$Outbound, ExchangeAuthCodeForAPIKeyRequest, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyRequest$Outbound, ExchangeAuthCodeForAPIKeyRequest>>;
76
- /** @deprecated use `ExchangeAuthCodeForAPIKeyRequest$Outbound` instead. */
77
- type Outbound = ExchangeAuthCodeForAPIKeyRequest$Outbound;
78
- }
79
53
  export declare function exchangeAuthCodeForAPIKeyRequestToJSON(exchangeAuthCodeForAPIKeyRequest: ExchangeAuthCodeForAPIKeyRequest): string;
80
- export declare function exchangeAuthCodeForAPIKeyRequestFromJSON(jsonString: string): SafeParseResult<ExchangeAuthCodeForAPIKeyRequest, SDKValidationError>;
81
54
  /** @internal */
82
55
  export declare const ExchangeAuthCodeForAPIKeyResponse$inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyResponse, unknown>;
83
- /** @internal */
84
- export type ExchangeAuthCodeForAPIKeyResponse$Outbound = {
85
- key: string;
86
- user_id: string | null;
87
- };
88
- /** @internal */
89
- export declare const ExchangeAuthCodeForAPIKeyResponse$outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyResponse$Outbound, ExchangeAuthCodeForAPIKeyResponse>;
90
- /**
91
- * @internal
92
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
- */
94
- export declare namespace ExchangeAuthCodeForAPIKeyResponse$ {
95
- /** @deprecated use `ExchangeAuthCodeForAPIKeyResponse$inboundSchema` instead. */
96
- const inboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyResponse, unknown, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyResponse, unknown>>;
97
- /** @deprecated use `ExchangeAuthCodeForAPIKeyResponse$outboundSchema` instead. */
98
- const outboundSchema: z.ZodType<ExchangeAuthCodeForAPIKeyResponse$Outbound, ExchangeAuthCodeForAPIKeyResponse, z.core.$ZodTypeInternals<ExchangeAuthCodeForAPIKeyResponse$Outbound, ExchangeAuthCodeForAPIKeyResponse>>;
99
- /** @deprecated use `ExchangeAuthCodeForAPIKeyResponse$Outbound` instead. */
100
- type Outbound = ExchangeAuthCodeForAPIKeyResponse$Outbound;
101
- }
102
- export declare function exchangeAuthCodeForAPIKeyResponseToJSON(exchangeAuthCodeForAPIKeyResponse: ExchangeAuthCodeForAPIKeyResponse): string;
103
56
  export declare function exchangeAuthCodeForAPIKeyResponseFromJSON(jsonString: string): SafeParseResult<ExchangeAuthCodeForAPIKeyResponse, SDKValidationError>;
104
57
  //# sourceMappingURL=exchangeauthcodeforapikey.d.ts.map
@@ -4,7 +4,6 @@
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";
8
7
  /**
9
8
  * The method used to generate the code challenge
10
9
  */
@@ -13,38 +12,10 @@ export const ExchangeAuthCodeForAPIKeyCodeChallengeMethod = {
13
12
  Plain: "plain",
14
13
  };
15
14
  /** @internal */
16
- export const ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema = z
17
- .union([
18
- z.enum(ExchangeAuthCodeForAPIKeyCodeChallengeMethod),
19
- z.string().transform(catchUnrecognizedEnum),
20
- ]);
21
- /** @internal */
22
15
  export const ExchangeAuthCodeForAPIKeyCodeChallengeMethod$outboundSchema = z.union([
23
16
  z.enum(ExchangeAuthCodeForAPIKeyCodeChallengeMethod),
24
17
  z.string().and(z.custom()),
25
18
  ]);
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export var ExchangeAuthCodeForAPIKeyCodeChallengeMethod$;
31
- (function (ExchangeAuthCodeForAPIKeyCodeChallengeMethod$) {
32
- /** @deprecated use `ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema` instead. */
33
- ExchangeAuthCodeForAPIKeyCodeChallengeMethod$.inboundSchema = ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema;
34
- /** @deprecated use `ExchangeAuthCodeForAPIKeyCodeChallengeMethod$outboundSchema` instead. */
35
- ExchangeAuthCodeForAPIKeyCodeChallengeMethod$.outboundSchema = ExchangeAuthCodeForAPIKeyCodeChallengeMethod$outboundSchema;
36
- })(ExchangeAuthCodeForAPIKeyCodeChallengeMethod$ || (ExchangeAuthCodeForAPIKeyCodeChallengeMethod$ = {}));
37
- /** @internal */
38
- export const ExchangeAuthCodeForAPIKeyRequest$inboundSchema = z.object({
39
- code: z.string(),
40
- code_verifier: z.string().optional(),
41
- code_challenge_method: z.nullable(ExchangeAuthCodeForAPIKeyCodeChallengeMethod$inboundSchema).optional(),
42
- }).transform((v) => {
43
- return remap$(v, {
44
- "code_verifier": "codeVerifier",
45
- "code_challenge_method": "codeChallengeMethod",
46
- });
47
- });
48
19
  /** @internal */
49
20
  export const ExchangeAuthCodeForAPIKeyRequest$outboundSchema = z.object({
50
21
  code: z.string(),
@@ -56,23 +27,9 @@ export const ExchangeAuthCodeForAPIKeyRequest$outboundSchema = z.object({
56
27
  codeChallengeMethod: "code_challenge_method",
57
28
  });
58
29
  });
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export var ExchangeAuthCodeForAPIKeyRequest$;
64
- (function (ExchangeAuthCodeForAPIKeyRequest$) {
65
- /** @deprecated use `ExchangeAuthCodeForAPIKeyRequest$inboundSchema` instead. */
66
- ExchangeAuthCodeForAPIKeyRequest$.inboundSchema = ExchangeAuthCodeForAPIKeyRequest$inboundSchema;
67
- /** @deprecated use `ExchangeAuthCodeForAPIKeyRequest$outboundSchema` instead. */
68
- ExchangeAuthCodeForAPIKeyRequest$.outboundSchema = ExchangeAuthCodeForAPIKeyRequest$outboundSchema;
69
- })(ExchangeAuthCodeForAPIKeyRequest$ || (ExchangeAuthCodeForAPIKeyRequest$ = {}));
70
30
  export function exchangeAuthCodeForAPIKeyRequestToJSON(exchangeAuthCodeForAPIKeyRequest) {
71
31
  return JSON.stringify(ExchangeAuthCodeForAPIKeyRequest$outboundSchema.parse(exchangeAuthCodeForAPIKeyRequest));
72
32
  }
73
- export function exchangeAuthCodeForAPIKeyRequestFromJSON(jsonString) {
74
- return safeParse(jsonString, (x) => ExchangeAuthCodeForAPIKeyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExchangeAuthCodeForAPIKeyRequest' from JSON`);
75
- }
76
33
  /** @internal */
77
34
  export const ExchangeAuthCodeForAPIKeyResponse$inboundSchema = z.object({
78
35
  key: z.string(),
@@ -82,29 +39,6 @@ export const ExchangeAuthCodeForAPIKeyResponse$inboundSchema = z.object({
82
39
  "user_id": "userId",
83
40
  });
84
41
  });
85
- /** @internal */
86
- export const ExchangeAuthCodeForAPIKeyResponse$outboundSchema = z.object({
87
- key: z.string(),
88
- userId: z.nullable(z.string()),
89
- }).transform((v) => {
90
- return remap$(v, {
91
- userId: "user_id",
92
- });
93
- });
94
- /**
95
- * @internal
96
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
- */
98
- export var ExchangeAuthCodeForAPIKeyResponse$;
99
- (function (ExchangeAuthCodeForAPIKeyResponse$) {
100
- /** @deprecated use `ExchangeAuthCodeForAPIKeyResponse$inboundSchema` instead. */
101
- ExchangeAuthCodeForAPIKeyResponse$.inboundSchema = ExchangeAuthCodeForAPIKeyResponse$inboundSchema;
102
- /** @deprecated use `ExchangeAuthCodeForAPIKeyResponse$outboundSchema` instead. */
103
- ExchangeAuthCodeForAPIKeyResponse$.outboundSchema = ExchangeAuthCodeForAPIKeyResponse$outboundSchema;
104
- })(ExchangeAuthCodeForAPIKeyResponse$ || (ExchangeAuthCodeForAPIKeyResponse$ = {}));
105
- export function exchangeAuthCodeForAPIKeyResponseToJSON(exchangeAuthCodeForAPIKeyResponse) {
106
- return JSON.stringify(ExchangeAuthCodeForAPIKeyResponse$outboundSchema.parse(exchangeAuthCodeForAPIKeyResponse));
107
- }
108
42
  export function exchangeAuthCodeForAPIKeyResponseFromJSON(jsonString) {
109
43
  return safeParse(jsonString, (x) => ExchangeAuthCodeForAPIKeyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExchangeAuthCodeForAPIKeyResponse' from JSON`);
110
44
  }
@@ -7,22 +7,5 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
7
7
  export type GetCreditsResponse = {};
8
8
  /** @internal */
9
9
  export declare const GetCreditsResponse$inboundSchema: z.ZodType<GetCreditsResponse, unknown>;
10
- /** @internal */
11
- export type GetCreditsResponse$Outbound = {};
12
- /** @internal */
13
- export declare const GetCreditsResponse$outboundSchema: z.ZodType<GetCreditsResponse$Outbound, GetCreditsResponse>;
14
- /**
15
- * @internal
16
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
- */
18
- export declare namespace GetCreditsResponse$ {
19
- /** @deprecated use `GetCreditsResponse$inboundSchema` instead. */
20
- const inboundSchema: z.ZodType<GetCreditsResponse, unknown, z.core.$ZodTypeInternals<GetCreditsResponse, unknown>>;
21
- /** @deprecated use `GetCreditsResponse$outboundSchema` instead. */
22
- const outboundSchema: z.ZodType<GetCreditsResponse$Outbound, GetCreditsResponse, z.core.$ZodTypeInternals<GetCreditsResponse$Outbound, GetCreditsResponse>>;
23
- /** @deprecated use `GetCreditsResponse$Outbound` instead. */
24
- type Outbound = GetCreditsResponse$Outbound;
25
- }
26
- export declare function getCreditsResponseToJSON(getCreditsResponse: GetCreditsResponse): string;
27
10
  export declare function getCreditsResponseFromJSON(jsonString: string): SafeParseResult<GetCreditsResponse, SDKValidationError>;
28
11
  //# sourceMappingURL=getcredits.d.ts.map
@@ -5,22 +5,6 @@ import * as z from "zod/v4";
5
5
  import { safeParse } from "../../lib/schemas.js";
6
6
  /** @internal */
7
7
  export const GetCreditsResponse$inboundSchema = z.object({});
8
- /** @internal */
9
- export const GetCreditsResponse$outboundSchema = z.object({});
10
- /**
11
- * @internal
12
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
13
- */
14
- export var GetCreditsResponse$;
15
- (function (GetCreditsResponse$) {
16
- /** @deprecated use `GetCreditsResponse$inboundSchema` instead. */
17
- GetCreditsResponse$.inboundSchema = GetCreditsResponse$inboundSchema;
18
- /** @deprecated use `GetCreditsResponse$outboundSchema` instead. */
19
- GetCreditsResponse$.outboundSchema = GetCreditsResponse$outboundSchema;
20
- })(GetCreditsResponse$ || (GetCreditsResponse$ = {}));
21
- export function getCreditsResponseToJSON(getCreditsResponse) {
22
- return JSON.stringify(GetCreditsResponse$outboundSchema.parse(getCreditsResponse));
23
- }
24
8
  export function getCreditsResponseFromJSON(jsonString) {
25
9
  return safeParse(jsonString, (x) => GetCreditsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCreditsResponse' from JSON`);
26
10
  }
@@ -102,85 +102,11 @@ export type GetCurrentKeyResponse = {
102
102
  };
103
103
  /** @internal */
104
104
  export declare const RateLimit$inboundSchema: z.ZodType<RateLimit, unknown>;
105
- /** @internal */
106
- export type RateLimit$Outbound = {
107
- requests: number;
108
- interval: string;
109
- note: string;
110
- };
111
- /** @internal */
112
- export declare const RateLimit$outboundSchema: z.ZodType<RateLimit$Outbound, RateLimit>;
113
- /**
114
- * @internal
115
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
- */
117
- export declare namespace RateLimit$ {
118
- /** @deprecated use `RateLimit$inboundSchema` instead. */
119
- const inboundSchema: z.ZodType<RateLimit, unknown, z.core.$ZodTypeInternals<RateLimit, unknown>>;
120
- /** @deprecated use `RateLimit$outboundSchema` instead. */
121
- const outboundSchema: z.ZodType<RateLimit$Outbound, RateLimit, z.core.$ZodTypeInternals<RateLimit$Outbound, RateLimit>>;
122
- /** @deprecated use `RateLimit$Outbound` instead. */
123
- type Outbound = RateLimit$Outbound;
124
- }
125
- export declare function rateLimitToJSON(rateLimit: RateLimit): string;
126
105
  export declare function rateLimitFromJSON(jsonString: string): SafeParseResult<RateLimit, SDKValidationError>;
127
106
  /** @internal */
128
107
  export declare const GetCurrentKeyData$inboundSchema: z.ZodType<GetCurrentKeyData, unknown>;
129
- /** @internal */
130
- export type GetCurrentKeyData$Outbound = {
131
- label: string;
132
- limit: number | null;
133
- usage: number;
134
- usage_daily: number;
135
- usage_weekly: number;
136
- usage_monthly: number;
137
- byok_usage: number;
138
- byok_usage_daily: number;
139
- byok_usage_weekly: number;
140
- byok_usage_monthly: number;
141
- is_free_tier: boolean;
142
- is_provisioning_key: boolean;
143
- limit_remaining: number | null;
144
- limit_reset: string | null;
145
- include_byok_in_limit: boolean;
146
- rate_limit: RateLimit$Outbound;
147
- };
148
- /** @internal */
149
- export declare const GetCurrentKeyData$outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, GetCurrentKeyData>;
150
- /**
151
- * @internal
152
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
153
- */
154
- export declare namespace GetCurrentKeyData$ {
155
- /** @deprecated use `GetCurrentKeyData$inboundSchema` instead. */
156
- const inboundSchema: z.ZodType<GetCurrentKeyData, unknown, z.core.$ZodTypeInternals<GetCurrentKeyData, unknown>>;
157
- /** @deprecated use `GetCurrentKeyData$outboundSchema` instead. */
158
- const outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, GetCurrentKeyData, z.core.$ZodTypeInternals<GetCurrentKeyData$Outbound, GetCurrentKeyData>>;
159
- /** @deprecated use `GetCurrentKeyData$Outbound` instead. */
160
- type Outbound = GetCurrentKeyData$Outbound;
161
- }
162
- export declare function getCurrentKeyDataToJSON(getCurrentKeyData: GetCurrentKeyData): string;
163
108
  export declare function getCurrentKeyDataFromJSON(jsonString: string): SafeParseResult<GetCurrentKeyData, SDKValidationError>;
164
109
  /** @internal */
165
110
  export declare const GetCurrentKeyResponse$inboundSchema: z.ZodType<GetCurrentKeyResponse, unknown>;
166
- /** @internal */
167
- export type GetCurrentKeyResponse$Outbound = {
168
- data: GetCurrentKeyData$Outbound;
169
- };
170
- /** @internal */
171
- export declare const GetCurrentKeyResponse$outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse>;
172
- /**
173
- * @internal
174
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
- */
176
- export declare namespace GetCurrentKeyResponse$ {
177
- /** @deprecated use `GetCurrentKeyResponse$inboundSchema` instead. */
178
- const inboundSchema: z.ZodType<GetCurrentKeyResponse, unknown, z.core.$ZodTypeInternals<GetCurrentKeyResponse, unknown>>;
179
- /** @deprecated use `GetCurrentKeyResponse$outboundSchema` instead. */
180
- const outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse, z.core.$ZodTypeInternals<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse>>;
181
- /** @deprecated use `GetCurrentKeyResponse$Outbound` instead. */
182
- type Outbound = GetCurrentKeyResponse$Outbound;
183
- }
184
- export declare function getCurrentKeyResponseToJSON(getCurrentKeyResponse: GetCurrentKeyResponse): string;
185
111
  export declare function getCurrentKeyResponseFromJSON(jsonString: string): SafeParseResult<GetCurrentKeyResponse, SDKValidationError>;
186
112
  //# sourceMappingURL=getcurrentkey.d.ts.map