@openrouter/sdk 0.0.1-beta.7 → 0.0.1-beta.8

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 (867) hide show
  1. package/esm/core.d.ts +10 -0
  2. package/esm/core.js +13 -0
  3. package/esm/funcs/analyticsGetUserActivity.d.ts +18 -0
  4. package/esm/funcs/analyticsGetUserActivity.js +85 -0
  5. package/esm/funcs/apiKeysCreate.d.ts +15 -0
  6. package/esm/funcs/apiKeysCreate.js +79 -0
  7. package/esm/funcs/apiKeysDelete.d.ts +15 -0
  8. package/esm/funcs/apiKeysDelete.js +84 -0
  9. package/esm/funcs/apiKeysGet.d.ts +15 -0
  10. package/esm/funcs/apiKeysGet.js +84 -0
  11. package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +18 -0
  12. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +72 -0
  13. package/esm/funcs/apiKeysList.d.ts +15 -0
  14. package/esm/funcs/apiKeysList.js +83 -0
  15. package/esm/funcs/apiKeysUpdate.d.ts +15 -0
  16. package/esm/funcs/apiKeysUpdate.js +85 -0
  17. package/esm/funcs/betaResponsesSend.d.ts +18 -0
  18. package/esm/funcs/betaResponsesSend.js +69 -0
  19. package/esm/funcs/chatSend.d.ts +19 -0
  20. package/esm/funcs/chatSend.js +83 -0
  21. package/esm/funcs/completionsGenerate.d.ts +18 -0
  22. package/esm/funcs/completionsGenerate.js +82 -0
  23. package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +19 -0
  24. package/esm/funcs/creditsCreateCoinbaseCharge.js +77 -0
  25. package/esm/funcs/creditsGetCredits.d.ts +18 -0
  26. package/esm/funcs/creditsGetCredits.js +72 -0
  27. package/esm/funcs/endpointsList.d.ts +15 -0
  28. package/esm/funcs/endpointsList.js +88 -0
  29. package/esm/funcs/endpointsListZdrEndpoints.d.ts +14 -0
  30. package/esm/funcs/endpointsListZdrEndpoints.js +65 -0
  31. package/esm/funcs/generationsGetGeneration.d.ts +15 -0
  32. package/esm/funcs/generationsGetGeneration.js +82 -0
  33. package/esm/funcs/modelsCount.d.ts +14 -0
  34. package/esm/funcs/modelsCount.js +65 -0
  35. package/esm/funcs/modelsList.d.ts +14 -0
  36. package/esm/funcs/modelsList.js +83 -0
  37. package/esm/funcs/modelsListForUser.d.ts +14 -0
  38. package/esm/funcs/modelsListForUser.js +69 -0
  39. package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +43 -0
  40. package/esm/funcs/oAuthCreateAuthorizationUrl.js +44 -0
  41. package/esm/funcs/oAuthCreateSHA256CodeChallenge.d.ts +35 -0
  42. package/esm/funcs/oAuthCreateSHA256CodeChallenge.js +69 -0
  43. package/esm/funcs/parametersGetParameters.d.ts +15 -0
  44. package/esm/funcs/parametersGetParameters.js +96 -0
  45. package/esm/funcs/providersList.d.ts +15 -0
  46. package/esm/funcs/providersList.js +69 -0
  47. package/esm/hooks/hooks.d.ts +25 -0
  48. package/esm/hooks/hooks.js +82 -0
  49. package/esm/hooks/index.d.ts +3 -0
  50. package/esm/hooks/index.js +6 -0
  51. package/esm/hooks/registration.d.ts +3 -0
  52. package/esm/hooks/registration.js +12 -0
  53. package/esm/hooks/types.d.ts +76 -0
  54. package/esm/hooks/types.js +5 -0
  55. package/esm/index.d.ts +6 -0
  56. package/esm/index.js +8 -0
  57. package/esm/lib/base64.d.ts +10 -0
  58. package/esm/lib/base64.js +29 -0
  59. package/esm/lib/config.d.ts +44 -0
  60. package/esm/lib/config.js +32 -0
  61. package/esm/lib/dlv.d.ts +14 -0
  62. package/esm/lib/dlv.js +46 -0
  63. package/esm/lib/encodings.d.ts +52 -0
  64. package/esm/lib/encodings.js +354 -0
  65. package/esm/lib/env.d.ts +15 -0
  66. package/esm/lib/env.js +44 -0
  67. package/esm/lib/event-streams.d.ts +11 -0
  68. package/esm/lib/event-streams.js +125 -0
  69. package/esm/lib/files.d.ts +13 -0
  70. package/esm/lib/files.js +73 -0
  71. package/esm/lib/http.d.ts +67 -0
  72. package/esm/lib/http.js +207 -0
  73. package/esm/lib/is-plain-object.d.ts +2 -0
  74. package/esm/lib/is-plain-object.js +38 -0
  75. package/esm/lib/logger.d.ts +6 -0
  76. package/esm/lib/logger.js +5 -0
  77. package/esm/lib/matchers.d.ts +59 -0
  78. package/esm/lib/matchers.js +203 -0
  79. package/esm/lib/primitives.d.ts +26 -0
  80. package/esm/lib/primitives.js +103 -0
  81. package/esm/lib/retries.d.ts +38 -0
  82. package/esm/lib/retries.js +147 -0
  83. package/esm/lib/schemas.d.ts +21 -0
  84. package/esm/lib/schemas.js +57 -0
  85. package/esm/lib/sdks.d.ts +63 -0
  86. package/esm/lib/sdks.js +269 -0
  87. package/esm/lib/security.d.ts +83 -0
  88. package/esm/lib/security.js +137 -0
  89. package/esm/lib/url.d.ts +5 -0
  90. package/esm/lib/url.js +22 -0
  91. package/esm/models/activityitem.d.ts +82 -0
  92. package/esm/models/activityitem.js +73 -0
  93. package/esm/models/assistantmessage.d.ts +62 -0
  94. package/esm/models/assistantmessage.js +73 -0
  95. package/esm/models/chatcompletionfinishreason.d.ts +25 -0
  96. package/esm/models/chatcompletionfinishreason.js +35 -0
  97. package/esm/models/chaterror.d.ts +56 -0
  98. package/esm/models/chaterror.js +64 -0
  99. package/esm/models/chatgenerationparams.d.ts +249 -0
  100. package/esm/models/chatgenerationparams.js +301 -0
  101. package/esm/models/chatgenerationtokenusage.d.ts +95 -0
  102. package/esm/models/chatgenerationtokenusage.js +142 -0
  103. package/esm/models/chatmessagecontentitem.d.ts +40 -0
  104. package/esm/models/chatmessagecontentitem.js +46 -0
  105. package/esm/models/chatmessagecontentitemaudio.d.ts +83 -0
  106. package/esm/models/chatmessagecontentitemaudio.js +102 -0
  107. package/esm/models/chatmessagecontentitemimage.d.ts +79 -0
  108. package/esm/models/chatmessagecontentitemimage.js +98 -0
  109. package/esm/models/chatmessagecontentitemtext.d.ts +31 -0
  110. package/esm/models/chatmessagecontentitemtext.js +33 -0
  111. package/esm/models/chatmessagetokenlogprob.d.ts +64 -0
  112. package/esm/models/chatmessagetokenlogprob.js +75 -0
  113. package/esm/models/chatmessagetokenlogprobs.d.ts +32 -0
  114. package/esm/models/chatmessagetokenlogprobs.js +34 -0
  115. package/esm/models/chatmessagetoolcall.d.ts +60 -0
  116. package/esm/models/chatmessagetoolcall.js +62 -0
  117. package/esm/models/chatresponse.d.ts +43 -0
  118. package/esm/models/chatresponse.js +55 -0
  119. package/esm/models/chatresponsechoice.d.ts +38 -0
  120. package/esm/models/chatresponsechoice.js +49 -0
  121. package/esm/models/chatstreamingchoice.d.ts +38 -0
  122. package/esm/models/chatstreamingchoice.js +49 -0
  123. package/esm/models/chatstreamingmessagechunk.d.ts +61 -0
  124. package/esm/models/chatstreamingmessagechunk.js +67 -0
  125. package/esm/models/chatstreamingmessagetoolcall.d.ts +62 -0
  126. package/esm/models/chatstreamingmessagetoolcall.js +66 -0
  127. package/esm/models/chatstreamingresponsechunk.d.ts +97 -0
  128. package/esm/models/chatstreamingresponsechunk.js +120 -0
  129. package/esm/models/chatstreamoptions.d.ts +29 -0
  130. package/esm/models/chatstreamoptions.js +40 -0
  131. package/esm/models/completionchoice.d.ts +57 -0
  132. package/esm/models/completionchoice.js +75 -0
  133. package/esm/models/completioncreateparams.d.ts +240 -0
  134. package/esm/models/completioncreateparams.js +313 -0
  135. package/esm/models/completionlogprobs.d.ts +39 -0
  136. package/esm/models/completionlogprobs.js +50 -0
  137. package/esm/models/completionresponse.d.ts +43 -0
  138. package/esm/models/completionresponse.js +54 -0
  139. package/esm/models/completionusage.d.ts +33 -0
  140. package/esm/models/completionusage.js +48 -0
  141. package/esm/models/createchargerequest.d.ts +28 -0
  142. package/esm/models/createchargerequest.js +27 -0
  143. package/esm/models/errorresponse.d.ts +155 -0
  144. package/esm/models/errorresponse.js +167 -0
  145. package/esm/models/errors/chaterror.d.ts +37 -0
  146. package/esm/models/errors/chaterror.js +48 -0
  147. package/esm/models/errors/errorresponse.d.ts +46 -0
  148. package/esm/models/errors/errorresponse.js +64 -0
  149. package/esm/models/errors/httpclienterrors.d.ts +44 -0
  150. package/esm/models/errors/httpclienterrors.js +69 -0
  151. package/esm/models/errors/index.d.ts +9 -0
  152. package/esm/models/errors/index.js +12 -0
  153. package/esm/models/errors/listproviders.d.ts +49 -0
  154. package/esm/models/errors/listproviders.js +51 -0
  155. package/esm/models/errors/openrouterdefaulterror.d.ts +10 -0
  156. package/esm/models/errors/openrouterdefaulterror.js +30 -0
  157. package/esm/models/errors/openroutererror.d.ts +19 -0
  158. package/esm/models/errors/openroutererror.js +16 -0
  159. package/esm/models/errors/responsevalidationerror.d.ts +26 -0
  160. package/esm/models/errors/responsevalidationerror.js +29 -0
  161. package/esm/models/errors/sdkvalidationerror.d.ts +21 -0
  162. package/esm/models/errors/sdkvalidationerror.js +44 -0
  163. package/esm/models/filecitationannotation.d.ts +58 -0
  164. package/esm/models/filecitationannotation.js +64 -0
  165. package/esm/models/filepathannotation.d.ts +56 -0
  166. package/esm/models/filepathannotation.js +62 -0
  167. package/esm/models/imagegenerationstatus.d.ts +24 -0
  168. package/esm/models/imagegenerationstatus.js +34 -0
  169. package/esm/models/index.d.ts +96 -0
  170. package/esm/models/index.js +99 -0
  171. package/esm/models/jsonschemaconfig.d.ts +39 -0
  172. package/esm/models/jsonschemaconfig.js +37 -0
  173. package/esm/models/listendpointsresponse.d.ts +28 -0
  174. package/esm/models/listendpointsresponse.js +27 -0
  175. package/esm/models/message.d.ts +80 -0
  176. package/esm/models/message.js +101 -0
  177. package/esm/models/modelscountresponse.d.ts +28 -0
  178. package/esm/models/modelscountresponse.js +27 -0
  179. package/esm/models/modelslistresponse.d.ts +28 -0
  180. package/esm/models/modelslistresponse.js +27 -0
  181. package/esm/models/namedtoolchoice.d.ts +56 -0
  182. package/esm/models/namedtoolchoice.js +58 -0
  183. package/esm/models/openresponseseasyinputmessage.d.ts +190 -0
  184. package/esm/models/openresponseseasyinputmessage.js +194 -0
  185. package/esm/models/openresponsesformatjsonobject.d.ts +55 -0
  186. package/esm/models/openresponsesformatjsonobject.js +49 -0
  187. package/esm/models/openresponsesformatjsonschema.d.ts +67 -0
  188. package/esm/models/openresponsesformatjsonschema.js +57 -0
  189. package/esm/models/openresponsesformattext.d.ts +55 -0
  190. package/esm/models/openresponsesformattext.js +49 -0
  191. package/esm/models/openresponsesformattextconfig.d.ts +31 -0
  192. package/esm/models/openresponsesformattextconfig.js +38 -0
  193. package/esm/models/openresponsesfunctioncalloutput.d.ts +64 -0
  194. package/esm/models/openresponsesfunctioncalloutput.js +67 -0
  195. package/esm/models/openresponsesfunctiontoolcall.d.ts +66 -0
  196. package/esm/models/openresponsesfunctiontoolcall.js +69 -0
  197. package/esm/models/openresponsesinput.d.ts +29 -0
  198. package/esm/models/openresponsesinput.js +36 -0
  199. package/esm/models/openresponsesinputcontent.d.ts +43 -0
  200. package/esm/models/openresponsesinputcontent.js +50 -0
  201. package/esm/models/openresponsesinputfile.d.ts +63 -0
  202. package/esm/models/openresponsesinputfile.js +70 -0
  203. package/esm/models/openresponsesinputimage.d.ts +79 -0
  204. package/esm/models/openresponsesinputimage.js +90 -0
  205. package/esm/models/openresponsesinputitem.d.ts +39 -0
  206. package/esm/models/openresponsesinputitem.js +62 -0
  207. package/esm/models/openresponsesinputmessageitem.d.ts +149 -0
  208. package/esm/models/openresponsesinputmessageitem.js +147 -0
  209. package/esm/models/openresponsesinputtext.d.ts +57 -0
  210. package/esm/models/openresponsesinputtext.js +51 -0
  211. package/esm/models/openresponseslogprobs.d.ts +66 -0
  212. package/esm/models/openresponseslogprobs.js +71 -0
  213. package/esm/models/openresponsesnonstreamingresponse.d.ts +260 -0
  214. package/esm/models/openresponsesnonstreamingresponse.js +290 -0
  215. package/esm/models/openresponsesoutputtext.d.ts +80 -0
  216. package/esm/models/openresponsesoutputtext.js +93 -0
  217. package/esm/models/openresponsesprompt.d.ts +39 -0
  218. package/esm/models/openresponsesprompt.js +34 -0
  219. package/esm/models/openresponsesreasoning.d.ts +90 -0
  220. package/esm/models/openresponsesreasoning.js +101 -0
  221. package/esm/models/openresponsesreasoningconfig.d.ts +61 -0
  222. package/esm/models/openresponsesreasoningconfig.js +78 -0
  223. package/esm/models/openresponsesrefusalcontent.d.ts +54 -0
  224. package/esm/models/openresponsesrefusalcontent.js +51 -0
  225. package/esm/models/openresponsesrequest.d.ts +28 -0
  226. package/esm/models/openresponsesrequest.js +27 -0
  227. package/esm/models/openresponsesstreamevent.d.ts +1683 -0
  228. package/esm/models/openresponsesstreamevent.js +1944 -0
  229. package/esm/models/openresponsestextconfig.d.ts +59 -0
  230. package/esm/models/openresponsestextconfig.js +63 -0
  231. package/esm/models/openresponsestoolchoice.d.ts +148 -0
  232. package/esm/models/openresponsestoolchoice.js +139 -0
  233. package/esm/models/openresponsestoolunion.d.ts +95 -0
  234. package/esm/models/openresponsestoolunion.js +94 -0
  235. package/esm/models/openresponseswebsearch20250826tool.d.ts +94 -0
  236. package/esm/models/openresponseswebsearch20250826tool.js +103 -0
  237. package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +64 -0
  238. package/esm/models/openresponseswebsearchpreview20250311tool.js +68 -0
  239. package/esm/models/openresponseswebsearchpreviewtool.d.ts +64 -0
  240. package/esm/models/openresponseswebsearchpreviewtool.js +68 -0
  241. package/esm/models/openresponseswebsearchtool.d.ts +94 -0
  242. package/esm/models/openresponseswebsearchtool.js +103 -0
  243. package/esm/models/operations/createapialpharesponses.d.ts +58 -0
  244. package/esm/models/operations/createapialpharesponses.js +83 -0
  245. package/esm/models/operations/createcoinbasecharge.d.ts +212 -0
  246. package/esm/models/operations/createcoinbasecharge.js +267 -0
  247. package/esm/models/operations/createkeys.d.ts +226 -0
  248. package/esm/models/operations/createkeys.js +195 -0
  249. package/esm/models/operations/deletekeys.d.ts +63 -0
  250. package/esm/models/operations/deletekeys.js +56 -0
  251. package/esm/models/operations/getcredits.d.ts +28 -0
  252. package/esm/models/operations/getcredits.js +27 -0
  253. package/esm/models/operations/getcurrentkey.d.ts +186 -0
  254. package/esm/models/operations/getcurrentkey.js +148 -0
  255. package/esm/models/operations/getgeneration.d.ts +272 -0
  256. package/esm/models/operations/getgeneration.js +230 -0
  257. package/esm/models/operations/getkey.d.ts +179 -0
  258. package/esm/models/operations/getkey.js +148 -0
  259. package/esm/models/operations/getmodels.d.ts +57 -0
  260. package/esm/models/operations/getmodels.js +80 -0
  261. package/esm/models/operations/getparameters.d.ts +250 -0
  262. package/esm/models/operations/getparameters.js +260 -0
  263. package/esm/models/operations/getuseractivity.d.ts +64 -0
  264. package/esm/models/operations/getuseractivity.js +57 -0
  265. package/esm/models/operations/index.d.ts +20 -0
  266. package/esm/models/operations/index.js +23 -0
  267. package/esm/models/operations/list.d.ts +181 -0
  268. package/esm/models/operations/list.js +159 -0
  269. package/esm/models/operations/listendpoints.d.ts +63 -0
  270. package/esm/models/operations/listendpoints.js +59 -0
  271. package/esm/models/operations/listendpointszdr.d.ts +54 -0
  272. package/esm/models/operations/listendpointszdr.js +59 -0
  273. package/esm/models/operations/listmodelscount.d.ts +26 -0
  274. package/esm/models/operations/listmodelscount.js +34 -0
  275. package/esm/models/operations/listmodelsuser.d.ts +51 -0
  276. package/esm/models/operations/listmodelsuser.js +59 -0
  277. package/esm/models/operations/listproviders.d.ts +116 -0
  278. package/esm/models/operations/listproviders.js +105 -0
  279. package/esm/models/operations/sendchatcompletionrequest.d.ts +27 -0
  280. package/esm/models/operations/sendchatcompletionrequest.js +41 -0
  281. package/esm/models/operations/updatekeys.d.ts +256 -0
  282. package/esm/models/operations/updatekeys.js +230 -0
  283. package/esm/models/outputtextcontent.d.ts +80 -0
  284. package/esm/models/outputtextcontent.js +93 -0
  285. package/esm/models/publicendpoint.d.ts +28 -0
  286. package/esm/models/publicendpoint.js +27 -0
  287. package/esm/models/reasoningsummarytext.d.ts +54 -0
  288. package/esm/models/reasoningsummarytext.js +51 -0
  289. package/esm/models/reasoningsummaryverbosity.d.ts +23 -0
  290. package/esm/models/reasoningsummaryverbosity.js +33 -0
  291. package/esm/models/reasoningtextcontent.d.ts +54 -0
  292. package/esm/models/reasoningtextcontent.js +51 -0
  293. package/esm/models/refusalcontent.d.ts +54 -0
  294. package/esm/models/refusalcontent.js +51 -0
  295. package/esm/models/responseformatjsonschema.d.ts +32 -0
  296. package/esm/models/responseformatjsonschema.js +43 -0
  297. package/esm/models/responseformattextgrammar.d.ts +31 -0
  298. package/esm/models/responseformattextgrammar.js +33 -0
  299. package/esm/models/responseserrorfield.d.ts +55 -0
  300. package/esm/models/responseserrorfield.js +61 -0
  301. package/esm/models/responsesimagegenerationcall.d.ts +59 -0
  302. package/esm/models/responsesimagegenerationcall.js +56 -0
  303. package/esm/models/responsesoutputitem.d.ts +34 -0
  304. package/esm/models/responsesoutputitem.js +47 -0
  305. package/esm/models/responsesoutputitemfilesearchcall.d.ts +59 -0
  306. package/esm/models/responsesoutputitemfilesearchcall.js +56 -0
  307. package/esm/models/responsesoutputitemfunctioncall.d.ts +60 -0
  308. package/esm/models/responsesoutputitemfunctioncall.js +66 -0
  309. package/esm/models/responsesoutputitemreasoning.d.ts +62 -0
  310. package/esm/models/responsesoutputitemreasoning.js +68 -0
  311. package/esm/models/responsesoutputmessage.d.ts +192 -0
  312. package/esm/models/responsesoutputmessage.js +190 -0
  313. package/esm/models/responsessearchcontextsize.d.ts +29 -0
  314. package/esm/models/responsessearchcontextsize.js +36 -0
  315. package/esm/models/responsesusage.d.ts +131 -0
  316. package/esm/models/responsesusage.js +174 -0
  317. package/esm/models/responseswebsearchcalloutput.d.ts +57 -0
  318. package/esm/models/responseswebsearchcalloutput.js +54 -0
  319. package/esm/models/responseswebsearchuserlocation.d.ts +63 -0
  320. package/esm/models/responseswebsearchuserlocation.js +57 -0
  321. package/esm/models/security.d.ts +29 -0
  322. package/esm/models/security.js +32 -0
  323. package/esm/models/systemmessage.d.ts +55 -0
  324. package/esm/models/systemmessage.js +64 -0
  325. package/esm/models/tool.d.ts +66 -0
  326. package/esm/models/tool.js +65 -0
  327. package/esm/models/toolcallstatus.d.ts +23 -0
  328. package/esm/models/toolcallstatus.js +33 -0
  329. package/esm/models/toolchoicetypes.d.ts +164 -0
  330. package/esm/models/toolchoicetypes.js +167 -0
  331. package/esm/models/toolresponsemessage.d.ts +55 -0
  332. package/esm/models/toolresponsemessage.js +69 -0
  333. package/esm/models/urlcitationannotation.d.ts +60 -0
  334. package/esm/models/urlcitationannotation.js +68 -0
  335. package/esm/models/usermessage.d.ts +55 -0
  336. package/esm/models/usermessage.js +64 -0
  337. package/esm/models/websearchpreviewtooluserlocation.d.ts +60 -0
  338. package/esm/models/websearchpreviewtooluserlocation.js +57 -0
  339. package/esm/models/websearchstatus.d.ts +24 -0
  340. package/esm/models/websearchstatus.js +34 -0
  341. package/esm/react-query/_context.d.ts +8 -0
  342. package/esm/react-query/_context.js +14 -0
  343. package/esm/react-query/_types.d.ts +27 -0
  344. package/esm/react-query/_types.js +5 -0
  345. package/esm/react-query/analyticsGetUserActivity.d.ts +36 -0
  346. package/esm/react-query/analyticsGetUserActivity.js +77 -0
  347. package/esm/react-query/apiKeysCreate.d.ts +20 -0
  348. package/esm/react-query/apiKeysCreate.js +39 -0
  349. package/esm/react-query/apiKeysDelete.d.ts +20 -0
  350. package/esm/react-query/apiKeysDelete.js +39 -0
  351. package/esm/react-query/apiKeysGet.d.ts +24 -0
  352. package/esm/react-query/apiKeysGet.js +66 -0
  353. package/esm/react-query/apiKeysGetCurrentKeyMetadata.d.ts +29 -0
  354. package/esm/react-query/apiKeysGetCurrentKeyMetadata.js +66 -0
  355. package/esm/react-query/apiKeysList.d.ts +37 -0
  356. package/esm/react-query/apiKeysList.js +69 -0
  357. package/esm/react-query/apiKeysUpdate.d.ts +20 -0
  358. package/esm/react-query/apiKeysUpdate.js +39 -0
  359. package/esm/react-query/betaResponsesSend.d.ts +24 -0
  360. package/esm/react-query/betaResponsesSend.js +42 -0
  361. package/esm/react-query/chatSend.d.ts +24 -0
  362. package/esm/react-query/chatSend.js +42 -0
  363. package/esm/react-query/completionsGenerate.d.ts +23 -0
  364. package/esm/react-query/completionsGenerate.js +42 -0
  365. package/esm/react-query/creditsCreateCoinbaseCharge.d.ts +25 -0
  366. package/esm/react-query/creditsCreateCoinbaseCharge.js +42 -0
  367. package/esm/react-query/creditsGetCredits.d.ts +29 -0
  368. package/esm/react-query/creditsGetCredits.js +66 -0
  369. package/esm/react-query/endpointsList.d.ts +24 -0
  370. package/esm/react-query/endpointsList.js +66 -0
  371. package/esm/react-query/endpointsListZdrEndpoints.d.ts +23 -0
  372. package/esm/react-query/endpointsListZdrEndpoints.js +60 -0
  373. package/esm/react-query/generationsGetGeneration.d.ts +30 -0
  374. package/esm/react-query/generationsGetGeneration.js +71 -0
  375. package/esm/react-query/index.d.ts +23 -0
  376. package/esm/react-query/index.js +26 -0
  377. package/esm/react-query/modelsCount.d.ts +23 -0
  378. package/esm/react-query/modelsCount.js +60 -0
  379. package/esm/react-query/modelsList.d.ts +43 -0
  380. package/esm/react-query/modelsList.js +71 -0
  381. package/esm/react-query/modelsListForUser.d.ts +23 -0
  382. package/esm/react-query/modelsListForUser.js +60 -0
  383. package/esm/react-query/parametersGetParameters.d.ts +38 -0
  384. package/esm/react-query/parametersGetParameters.js +80 -0
  385. package/esm/react-query/providersList.d.ts +23 -0
  386. package/esm/react-query/providersList.js +60 -0
  387. package/esm/sdk/analytics.d.ts +12 -0
  388. package/esm/sdk/analytics.js +18 -0
  389. package/esm/sdk/apikeys.d.ts +32 -0
  390. package/esm/sdk/apikeys.js +53 -0
  391. package/esm/sdk/beta.d.ts +7 -0
  392. package/esm/sdk/beta.js +11 -0
  393. package/esm/sdk/chat.d.ts +13 -0
  394. package/esm/sdk/chat.js +18 -0
  395. package/esm/sdk/completions.d.ts +12 -0
  396. package/esm/sdk/completions.js +18 -0
  397. package/esm/sdk/credits.d.ts +20 -0
  398. package/esm/sdk/credits.js +28 -0
  399. package/esm/sdk/endpoints.d.ts +13 -0
  400. package/esm/sdk/endpoints.js +22 -0
  401. package/esm/sdk/generations.d.ts +9 -0
  402. package/esm/sdk/generations.js +15 -0
  403. package/esm/sdk/index.d.ts +2 -0
  404. package/esm/sdk/index.js +5 -0
  405. package/esm/sdk/models.d.ts +17 -0
  406. package/esm/sdk/models.js +29 -0
  407. package/esm/sdk/parameters.d.ts +9 -0
  408. package/esm/sdk/parameters.js +15 -0
  409. package/esm/sdk/providers.d.ts +9 -0
  410. package/esm/sdk/providers.js +15 -0
  411. package/esm/sdk/responses.d.ts +13 -0
  412. package/esm/sdk/responses.js +18 -0
  413. package/esm/sdk/sdk.d.ts +37 -0
  414. package/esm/sdk/sdk.js +51 -0
  415. package/esm/types/async.d.ts +23 -0
  416. package/esm/types/async.js +40 -0
  417. package/esm/types/blobs.d.ts +4 -0
  418. package/esm/types/blobs.js +25 -0
  419. package/esm/types/constdatetime.d.ts +3 -0
  420. package/esm/types/constdatetime.js +10 -0
  421. package/esm/types/enums.d.ts +12 -0
  422. package/esm/types/enums.js +7 -0
  423. package/esm/types/fp.d.ts +31 -0
  424. package/esm/types/fp.js +31 -0
  425. package/esm/types/index.d.ts +8 -0
  426. package/esm/types/index.js +8 -0
  427. package/esm/types/operations.d.ts +27 -0
  428. package/esm/types/operations.js +77 -0
  429. package/esm/types/rfcdate.d.ts +21 -0
  430. package/esm/types/rfcdate.js +42 -0
  431. package/esm/types/streams.d.ts +2 -0
  432. package/esm/types/streams.js +15 -0
  433. package/jsr.json +1 -1
  434. package/package.json +1 -1
  435. package/tsconfig.json +3 -3
  436. package/core.d.ts +0 -9
  437. package/core.js +0 -12
  438. package/funcs/analyticsGetUserActivity.d.ts +0 -17
  439. package/funcs/analyticsGetUserActivity.js +0 -84
  440. package/funcs/apiKeysCreate.d.ts +0 -14
  441. package/funcs/apiKeysCreate.js +0 -78
  442. package/funcs/apiKeysDelete.d.ts +0 -14
  443. package/funcs/apiKeysDelete.js +0 -83
  444. package/funcs/apiKeysGet.d.ts +0 -14
  445. package/funcs/apiKeysGet.js +0 -83
  446. package/funcs/apiKeysGetCurrentKeyMetadata.d.ts +0 -17
  447. package/funcs/apiKeysGetCurrentKeyMetadata.js +0 -71
  448. package/funcs/apiKeysList.d.ts +0 -14
  449. package/funcs/apiKeysList.js +0 -82
  450. package/funcs/apiKeysUpdate.d.ts +0 -14
  451. package/funcs/apiKeysUpdate.js +0 -84
  452. package/funcs/betaResponsesSend.d.ts +0 -17
  453. package/funcs/betaResponsesSend.js +0 -68
  454. package/funcs/chatSend.d.ts +0 -18
  455. package/funcs/chatSend.js +0 -82
  456. package/funcs/completionsGenerate.d.ts +0 -17
  457. package/funcs/completionsGenerate.js +0 -81
  458. package/funcs/creditsCreateCoinbaseCharge.d.ts +0 -18
  459. package/funcs/creditsCreateCoinbaseCharge.js +0 -76
  460. package/funcs/creditsGetCredits.d.ts +0 -17
  461. package/funcs/creditsGetCredits.js +0 -71
  462. package/funcs/endpointsList.d.ts +0 -14
  463. package/funcs/endpointsList.js +0 -87
  464. package/funcs/endpointsListZdrEndpoints.d.ts +0 -13
  465. package/funcs/endpointsListZdrEndpoints.js +0 -64
  466. package/funcs/generationsGetGeneration.d.ts +0 -14
  467. package/funcs/generationsGetGeneration.js +0 -81
  468. package/funcs/modelsCount.d.ts +0 -13
  469. package/funcs/modelsCount.js +0 -64
  470. package/funcs/modelsList.d.ts +0 -13
  471. package/funcs/modelsList.js +0 -82
  472. package/funcs/modelsListForUser.d.ts +0 -13
  473. package/funcs/modelsListForUser.js +0 -68
  474. package/funcs/oAuthCreateAuthorizationUrl.d.ts +0 -42
  475. package/funcs/oAuthCreateAuthorizationUrl.js +0 -43
  476. package/funcs/oAuthCreateSHA256CodeChallenge.d.ts +0 -34
  477. package/funcs/oAuthCreateSHA256CodeChallenge.js +0 -68
  478. package/funcs/parametersGetParameters.d.ts +0 -14
  479. package/funcs/parametersGetParameters.js +0 -95
  480. package/funcs/providersList.d.ts +0 -14
  481. package/funcs/providersList.js +0 -68
  482. package/hooks/hooks.d.ts +0 -24
  483. package/hooks/hooks.js +0 -81
  484. package/hooks/index.d.ts +0 -2
  485. package/hooks/index.js +0 -5
  486. package/hooks/registration.d.ts +0 -2
  487. package/hooks/registration.js +0 -11
  488. package/hooks/types.d.ts +0 -75
  489. package/hooks/types.js +0 -4
  490. package/index.d.ts +0 -5
  491. package/index.js +0 -7
  492. package/lib/base64.d.ts +0 -9
  493. package/lib/base64.js +0 -28
  494. package/lib/config.d.ts +0 -43
  495. package/lib/config.js +0 -31
  496. package/lib/dlv.d.ts +0 -13
  497. package/lib/dlv.js +0 -45
  498. package/lib/encodings.d.ts +0 -51
  499. package/lib/encodings.js +0 -353
  500. package/lib/env.d.ts +0 -14
  501. package/lib/env.js +0 -43
  502. package/lib/event-streams.d.ts +0 -10
  503. package/lib/event-streams.js +0 -124
  504. package/lib/files.d.ts +0 -12
  505. package/lib/files.js +0 -72
  506. package/lib/http.d.ts +0 -66
  507. package/lib/http.js +0 -206
  508. package/lib/is-plain-object.d.ts +0 -1
  509. package/lib/is-plain-object.js +0 -37
  510. package/lib/logger.d.ts +0 -5
  511. package/lib/logger.js +0 -4
  512. package/lib/matchers.d.ts +0 -58
  513. package/lib/matchers.js +0 -202
  514. package/lib/primitives.d.ts +0 -25
  515. package/lib/primitives.js +0 -102
  516. package/lib/retries.d.ts +0 -37
  517. package/lib/retries.js +0 -146
  518. package/lib/schemas.d.ts +0 -20
  519. package/lib/schemas.js +0 -56
  520. package/lib/sdks.d.ts +0 -62
  521. package/lib/sdks.js +0 -268
  522. package/lib/security.d.ts +0 -82
  523. package/lib/security.js +0 -136
  524. package/lib/url.d.ts +0 -4
  525. package/lib/url.js +0 -21
  526. package/models/activityitem.d.ts +0 -81
  527. package/models/activityitem.js +0 -72
  528. package/models/assistantmessage.d.ts +0 -61
  529. package/models/assistantmessage.js +0 -72
  530. package/models/chatcompletionfinishreason.d.ts +0 -24
  531. package/models/chatcompletionfinishreason.js +0 -34
  532. package/models/chaterror.d.ts +0 -55
  533. package/models/chaterror.js +0 -63
  534. package/models/chatgenerationparams.d.ts +0 -248
  535. package/models/chatgenerationparams.js +0 -300
  536. package/models/chatgenerationtokenusage.d.ts +0 -94
  537. package/models/chatgenerationtokenusage.js +0 -141
  538. package/models/chatmessagecontentitem.d.ts +0 -39
  539. package/models/chatmessagecontentitem.js +0 -45
  540. package/models/chatmessagecontentitemaudio.d.ts +0 -82
  541. package/models/chatmessagecontentitemaudio.js +0 -101
  542. package/models/chatmessagecontentitemimage.d.ts +0 -78
  543. package/models/chatmessagecontentitemimage.js +0 -97
  544. package/models/chatmessagecontentitemtext.d.ts +0 -30
  545. package/models/chatmessagecontentitemtext.js +0 -32
  546. package/models/chatmessagetokenlogprob.d.ts +0 -63
  547. package/models/chatmessagetokenlogprob.js +0 -74
  548. package/models/chatmessagetokenlogprobs.d.ts +0 -31
  549. package/models/chatmessagetokenlogprobs.js +0 -33
  550. package/models/chatmessagetoolcall.d.ts +0 -59
  551. package/models/chatmessagetoolcall.js +0 -61
  552. package/models/chatresponse.d.ts +0 -42
  553. package/models/chatresponse.js +0 -54
  554. package/models/chatresponsechoice.d.ts +0 -37
  555. package/models/chatresponsechoice.js +0 -48
  556. package/models/chatstreamingchoice.d.ts +0 -37
  557. package/models/chatstreamingchoice.js +0 -48
  558. package/models/chatstreamingmessagechunk.d.ts +0 -60
  559. package/models/chatstreamingmessagechunk.js +0 -66
  560. package/models/chatstreamingmessagetoolcall.d.ts +0 -61
  561. package/models/chatstreamingmessagetoolcall.js +0 -65
  562. package/models/chatstreamingresponsechunk.d.ts +0 -96
  563. package/models/chatstreamingresponsechunk.js +0 -119
  564. package/models/chatstreamoptions.d.ts +0 -28
  565. package/models/chatstreamoptions.js +0 -39
  566. package/models/completionchoice.d.ts +0 -56
  567. package/models/completionchoice.js +0 -74
  568. package/models/completioncreateparams.d.ts +0 -239
  569. package/models/completioncreateparams.js +0 -312
  570. package/models/completionlogprobs.d.ts +0 -38
  571. package/models/completionlogprobs.js +0 -49
  572. package/models/completionresponse.d.ts +0 -42
  573. package/models/completionresponse.js +0 -53
  574. package/models/completionusage.d.ts +0 -32
  575. package/models/completionusage.js +0 -47
  576. package/models/createchargerequest.d.ts +0 -27
  577. package/models/createchargerequest.js +0 -26
  578. package/models/errorresponse.d.ts +0 -154
  579. package/models/errorresponse.js +0 -166
  580. package/models/errors/chaterror.d.ts +0 -36
  581. package/models/errors/chaterror.js +0 -47
  582. package/models/errors/errorresponse.d.ts +0 -45
  583. package/models/errors/errorresponse.js +0 -63
  584. package/models/errors/httpclienterrors.d.ts +0 -43
  585. package/models/errors/httpclienterrors.js +0 -68
  586. package/models/errors/index.d.ts +0 -8
  587. package/models/errors/index.js +0 -11
  588. package/models/errors/listproviders.d.ts +0 -48
  589. package/models/errors/listproviders.js +0 -50
  590. package/models/errors/openrouterdefaulterror.d.ts +0 -9
  591. package/models/errors/openrouterdefaulterror.js +0 -29
  592. package/models/errors/openroutererror.d.ts +0 -18
  593. package/models/errors/openroutererror.js +0 -15
  594. package/models/errors/responsevalidationerror.d.ts +0 -25
  595. package/models/errors/responsevalidationerror.js +0 -28
  596. package/models/errors/sdkvalidationerror.d.ts +0 -20
  597. package/models/errors/sdkvalidationerror.js +0 -43
  598. package/models/filecitationannotation.d.ts +0 -57
  599. package/models/filecitationannotation.js +0 -63
  600. package/models/filepathannotation.d.ts +0 -55
  601. package/models/filepathannotation.js +0 -61
  602. package/models/imagegenerationstatus.d.ts +0 -23
  603. package/models/imagegenerationstatus.js +0 -33
  604. package/models/index.d.ts +0 -95
  605. package/models/index.js +0 -98
  606. package/models/jsonschemaconfig.d.ts +0 -38
  607. package/models/jsonschemaconfig.js +0 -36
  608. package/models/listendpointsresponse.d.ts +0 -27
  609. package/models/listendpointsresponse.js +0 -26
  610. package/models/message.d.ts +0 -79
  611. package/models/message.js +0 -100
  612. package/models/modelscountresponse.d.ts +0 -27
  613. package/models/modelscountresponse.js +0 -26
  614. package/models/modelslistresponse.d.ts +0 -27
  615. package/models/modelslistresponse.js +0 -26
  616. package/models/namedtoolchoice.d.ts +0 -55
  617. package/models/namedtoolchoice.js +0 -57
  618. package/models/openresponseseasyinputmessage.d.ts +0 -189
  619. package/models/openresponseseasyinputmessage.js +0 -193
  620. package/models/openresponsesformatjsonobject.d.ts +0 -54
  621. package/models/openresponsesformatjsonobject.js +0 -48
  622. package/models/openresponsesformatjsonschema.d.ts +0 -66
  623. package/models/openresponsesformatjsonschema.js +0 -56
  624. package/models/openresponsesformattext.d.ts +0 -54
  625. package/models/openresponsesformattext.js +0 -48
  626. package/models/openresponsesformattextconfig.d.ts +0 -30
  627. package/models/openresponsesformattextconfig.js +0 -37
  628. package/models/openresponsesfunctioncalloutput.d.ts +0 -63
  629. package/models/openresponsesfunctioncalloutput.js +0 -66
  630. package/models/openresponsesfunctiontoolcall.d.ts +0 -65
  631. package/models/openresponsesfunctiontoolcall.js +0 -68
  632. package/models/openresponsesinput.d.ts +0 -28
  633. package/models/openresponsesinput.js +0 -35
  634. package/models/openresponsesinputcontent.d.ts +0 -42
  635. package/models/openresponsesinputcontent.js +0 -49
  636. package/models/openresponsesinputfile.d.ts +0 -62
  637. package/models/openresponsesinputfile.js +0 -69
  638. package/models/openresponsesinputimage.d.ts +0 -78
  639. package/models/openresponsesinputimage.js +0 -89
  640. package/models/openresponsesinputitem.d.ts +0 -38
  641. package/models/openresponsesinputitem.js +0 -61
  642. package/models/openresponsesinputmessageitem.d.ts +0 -148
  643. package/models/openresponsesinputmessageitem.js +0 -146
  644. package/models/openresponsesinputtext.d.ts +0 -56
  645. package/models/openresponsesinputtext.js +0 -50
  646. package/models/openresponseslogprobs.d.ts +0 -65
  647. package/models/openresponseslogprobs.js +0 -70
  648. package/models/openresponsesnonstreamingresponse.d.ts +0 -259
  649. package/models/openresponsesnonstreamingresponse.js +0 -289
  650. package/models/openresponsesoutputtext.d.ts +0 -79
  651. package/models/openresponsesoutputtext.js +0 -92
  652. package/models/openresponsesprompt.d.ts +0 -38
  653. package/models/openresponsesprompt.js +0 -33
  654. package/models/openresponsesreasoning.d.ts +0 -89
  655. package/models/openresponsesreasoning.js +0 -100
  656. package/models/openresponsesreasoningconfig.d.ts +0 -60
  657. package/models/openresponsesreasoningconfig.js +0 -77
  658. package/models/openresponsesrefusalcontent.d.ts +0 -53
  659. package/models/openresponsesrefusalcontent.js +0 -50
  660. package/models/openresponsesrequest.d.ts +0 -27
  661. package/models/openresponsesrequest.js +0 -26
  662. package/models/openresponsesstreamevent.d.ts +0 -1682
  663. package/models/openresponsesstreamevent.js +0 -1943
  664. package/models/openresponsestextconfig.d.ts +0 -58
  665. package/models/openresponsestextconfig.js +0 -62
  666. package/models/openresponsestoolchoice.d.ts +0 -147
  667. package/models/openresponsestoolchoice.js +0 -138
  668. package/models/openresponsestoolunion.d.ts +0 -94
  669. package/models/openresponsestoolunion.js +0 -93
  670. package/models/openresponseswebsearch20250826tool.d.ts +0 -93
  671. package/models/openresponseswebsearch20250826tool.js +0 -102
  672. package/models/openresponseswebsearchpreview20250311tool.d.ts +0 -63
  673. package/models/openresponseswebsearchpreview20250311tool.js +0 -67
  674. package/models/openresponseswebsearchpreviewtool.d.ts +0 -63
  675. package/models/openresponseswebsearchpreviewtool.js +0 -67
  676. package/models/openresponseswebsearchtool.d.ts +0 -93
  677. package/models/openresponseswebsearchtool.js +0 -102
  678. package/models/operations/createapialpharesponses.d.ts +0 -57
  679. package/models/operations/createapialpharesponses.js +0 -82
  680. package/models/operations/createcoinbasecharge.d.ts +0 -211
  681. package/models/operations/createcoinbasecharge.js +0 -266
  682. package/models/operations/createkeys.d.ts +0 -225
  683. package/models/operations/createkeys.js +0 -194
  684. package/models/operations/deletekeys.d.ts +0 -62
  685. package/models/operations/deletekeys.js +0 -55
  686. package/models/operations/getcredits.d.ts +0 -27
  687. package/models/operations/getcredits.js +0 -26
  688. package/models/operations/getcurrentkey.d.ts +0 -185
  689. package/models/operations/getcurrentkey.js +0 -147
  690. package/models/operations/getgeneration.d.ts +0 -271
  691. package/models/operations/getgeneration.js +0 -229
  692. package/models/operations/getkey.d.ts +0 -178
  693. package/models/operations/getkey.js +0 -147
  694. package/models/operations/getmodels.d.ts +0 -56
  695. package/models/operations/getmodels.js +0 -79
  696. package/models/operations/getparameters.d.ts +0 -249
  697. package/models/operations/getparameters.js +0 -259
  698. package/models/operations/getuseractivity.d.ts +0 -63
  699. package/models/operations/getuseractivity.js +0 -56
  700. package/models/operations/index.d.ts +0 -19
  701. package/models/operations/index.js +0 -22
  702. package/models/operations/list.d.ts +0 -180
  703. package/models/operations/list.js +0 -158
  704. package/models/operations/listendpoints.d.ts +0 -62
  705. package/models/operations/listendpoints.js +0 -58
  706. package/models/operations/listendpointszdr.d.ts +0 -53
  707. package/models/operations/listendpointszdr.js +0 -58
  708. package/models/operations/listmodelscount.d.ts +0 -25
  709. package/models/operations/listmodelscount.js +0 -33
  710. package/models/operations/listmodelsuser.d.ts +0 -50
  711. package/models/operations/listmodelsuser.js +0 -58
  712. package/models/operations/listproviders.d.ts +0 -115
  713. package/models/operations/listproviders.js +0 -104
  714. package/models/operations/sendchatcompletionrequest.d.ts +0 -26
  715. package/models/operations/sendchatcompletionrequest.js +0 -40
  716. package/models/operations/updatekeys.d.ts +0 -255
  717. package/models/operations/updatekeys.js +0 -229
  718. package/models/outputtextcontent.d.ts +0 -79
  719. package/models/outputtextcontent.js +0 -92
  720. package/models/publicendpoint.d.ts +0 -27
  721. package/models/publicendpoint.js +0 -26
  722. package/models/reasoningsummarytext.d.ts +0 -53
  723. package/models/reasoningsummarytext.js +0 -50
  724. package/models/reasoningsummaryverbosity.d.ts +0 -22
  725. package/models/reasoningsummaryverbosity.js +0 -32
  726. package/models/reasoningtextcontent.d.ts +0 -53
  727. package/models/reasoningtextcontent.js +0 -50
  728. package/models/refusalcontent.d.ts +0 -53
  729. package/models/refusalcontent.js +0 -50
  730. package/models/responseformatjsonschema.d.ts +0 -31
  731. package/models/responseformatjsonschema.js +0 -42
  732. package/models/responseformattextgrammar.d.ts +0 -30
  733. package/models/responseformattextgrammar.js +0 -32
  734. package/models/responseserrorfield.d.ts +0 -54
  735. package/models/responseserrorfield.js +0 -60
  736. package/models/responsesimagegenerationcall.d.ts +0 -58
  737. package/models/responsesimagegenerationcall.js +0 -55
  738. package/models/responsesoutputitem.d.ts +0 -33
  739. package/models/responsesoutputitem.js +0 -46
  740. package/models/responsesoutputitemfilesearchcall.d.ts +0 -58
  741. package/models/responsesoutputitemfilesearchcall.js +0 -55
  742. package/models/responsesoutputitemfunctioncall.d.ts +0 -59
  743. package/models/responsesoutputitemfunctioncall.js +0 -65
  744. package/models/responsesoutputitemreasoning.d.ts +0 -61
  745. package/models/responsesoutputitemreasoning.js +0 -67
  746. package/models/responsesoutputmessage.d.ts +0 -191
  747. package/models/responsesoutputmessage.js +0 -189
  748. package/models/responsessearchcontextsize.d.ts +0 -28
  749. package/models/responsessearchcontextsize.js +0 -35
  750. package/models/responsesusage.d.ts +0 -130
  751. package/models/responsesusage.js +0 -173
  752. package/models/responseswebsearchcalloutput.d.ts +0 -56
  753. package/models/responseswebsearchcalloutput.js +0 -53
  754. package/models/responseswebsearchuserlocation.d.ts +0 -62
  755. package/models/responseswebsearchuserlocation.js +0 -56
  756. package/models/security.d.ts +0 -28
  757. package/models/security.js +0 -31
  758. package/models/systemmessage.d.ts +0 -54
  759. package/models/systemmessage.js +0 -63
  760. package/models/tool.d.ts +0 -65
  761. package/models/tool.js +0 -64
  762. package/models/toolcallstatus.d.ts +0 -22
  763. package/models/toolcallstatus.js +0 -32
  764. package/models/toolchoicetypes.d.ts +0 -163
  765. package/models/toolchoicetypes.js +0 -166
  766. package/models/toolresponsemessage.d.ts +0 -54
  767. package/models/toolresponsemessage.js +0 -68
  768. package/models/urlcitationannotation.d.ts +0 -59
  769. package/models/urlcitationannotation.js +0 -67
  770. package/models/usermessage.d.ts +0 -54
  771. package/models/usermessage.js +0 -63
  772. package/models/websearchpreviewtooluserlocation.d.ts +0 -59
  773. package/models/websearchpreviewtooluserlocation.js +0 -56
  774. package/models/websearchstatus.d.ts +0 -23
  775. package/models/websearchstatus.js +0 -33
  776. package/react-query/_context.d.ts +0 -7
  777. package/react-query/_context.js +0 -13
  778. package/react-query/_types.d.ts +0 -26
  779. package/react-query/_types.js +0 -4
  780. package/react-query/analyticsGetUserActivity.d.ts +0 -35
  781. package/react-query/analyticsGetUserActivity.js +0 -76
  782. package/react-query/apiKeysCreate.d.ts +0 -19
  783. package/react-query/apiKeysCreate.js +0 -38
  784. package/react-query/apiKeysDelete.d.ts +0 -19
  785. package/react-query/apiKeysDelete.js +0 -38
  786. package/react-query/apiKeysGet.d.ts +0 -23
  787. package/react-query/apiKeysGet.js +0 -65
  788. package/react-query/apiKeysGetCurrentKeyMetadata.d.ts +0 -28
  789. package/react-query/apiKeysGetCurrentKeyMetadata.js +0 -65
  790. package/react-query/apiKeysList.d.ts +0 -36
  791. package/react-query/apiKeysList.js +0 -68
  792. package/react-query/apiKeysUpdate.d.ts +0 -19
  793. package/react-query/apiKeysUpdate.js +0 -38
  794. package/react-query/betaResponsesSend.d.ts +0 -23
  795. package/react-query/betaResponsesSend.js +0 -41
  796. package/react-query/chatSend.d.ts +0 -23
  797. package/react-query/chatSend.js +0 -41
  798. package/react-query/completionsGenerate.d.ts +0 -22
  799. package/react-query/completionsGenerate.js +0 -41
  800. package/react-query/creditsCreateCoinbaseCharge.d.ts +0 -24
  801. package/react-query/creditsCreateCoinbaseCharge.js +0 -41
  802. package/react-query/creditsGetCredits.d.ts +0 -28
  803. package/react-query/creditsGetCredits.js +0 -65
  804. package/react-query/endpointsList.d.ts +0 -23
  805. package/react-query/endpointsList.js +0 -65
  806. package/react-query/endpointsListZdrEndpoints.d.ts +0 -22
  807. package/react-query/endpointsListZdrEndpoints.js +0 -59
  808. package/react-query/generationsGetGeneration.d.ts +0 -29
  809. package/react-query/generationsGetGeneration.js +0 -70
  810. package/react-query/index.d.ts +0 -22
  811. package/react-query/index.js +0 -25
  812. package/react-query/modelsCount.d.ts +0 -22
  813. package/react-query/modelsCount.js +0 -59
  814. package/react-query/modelsList.d.ts +0 -42
  815. package/react-query/modelsList.js +0 -70
  816. package/react-query/modelsListForUser.d.ts +0 -22
  817. package/react-query/modelsListForUser.js +0 -59
  818. package/react-query/parametersGetParameters.d.ts +0 -37
  819. package/react-query/parametersGetParameters.js +0 -79
  820. package/react-query/providersList.d.ts +0 -22
  821. package/react-query/providersList.js +0 -59
  822. package/sdk/analytics.d.ts +0 -11
  823. package/sdk/analytics.js +0 -17
  824. package/sdk/apikeys.d.ts +0 -31
  825. package/sdk/apikeys.js +0 -52
  826. package/sdk/beta.d.ts +0 -6
  827. package/sdk/beta.js +0 -10
  828. package/sdk/chat.d.ts +0 -12
  829. package/sdk/chat.js +0 -17
  830. package/sdk/completions.d.ts +0 -11
  831. package/sdk/completions.js +0 -17
  832. package/sdk/credits.d.ts +0 -19
  833. package/sdk/credits.js +0 -27
  834. package/sdk/endpoints.d.ts +0 -12
  835. package/sdk/endpoints.js +0 -21
  836. package/sdk/generations.d.ts +0 -8
  837. package/sdk/generations.js +0 -14
  838. package/sdk/index.d.ts +0 -1
  839. package/sdk/index.js +0 -4
  840. package/sdk/models.d.ts +0 -16
  841. package/sdk/models.js +0 -28
  842. package/sdk/parameters.d.ts +0 -8
  843. package/sdk/parameters.js +0 -14
  844. package/sdk/providers.d.ts +0 -8
  845. package/sdk/providers.js +0 -14
  846. package/sdk/responses.d.ts +0 -12
  847. package/sdk/responses.js +0 -17
  848. package/sdk/sdk.d.ts +0 -36
  849. package/sdk/sdk.js +0 -50
  850. package/types/async.d.ts +0 -22
  851. package/types/async.js +0 -39
  852. package/types/blobs.d.ts +0 -3
  853. package/types/blobs.js +0 -24
  854. package/types/constdatetime.d.ts +0 -2
  855. package/types/constdatetime.js +0 -9
  856. package/types/enums.d.ts +0 -11
  857. package/types/enums.js +0 -6
  858. package/types/fp.d.ts +0 -30
  859. package/types/fp.js +0 -30
  860. package/types/index.d.ts +0 -7
  861. package/types/index.js +0 -7
  862. package/types/operations.d.ts +0 -26
  863. package/types/operations.js +0 -76
  864. package/types/rfcdate.d.ts +0 -20
  865. package/types/rfcdate.js +0 -41
  866. package/types/streams.d.ts +0 -1
  867. package/types/streams.js +0 -14
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ export const FileCitationAnnotationType = {
8
+ FileCitation: "file_citation",
9
+ };
10
+ /** @internal */
11
+ export const FileCitationAnnotationType$inboundSchema = z.enum(FileCitationAnnotationType);
12
+ /** @internal */
13
+ export const FileCitationAnnotationType$outboundSchema = FileCitationAnnotationType$inboundSchema;
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 FileCitationAnnotationType$;
19
+ (function (FileCitationAnnotationType$) {
20
+ /** @deprecated use `FileCitationAnnotationType$inboundSchema` instead. */
21
+ FileCitationAnnotationType$.inboundSchema = FileCitationAnnotationType$inboundSchema;
22
+ /** @deprecated use `FileCitationAnnotationType$outboundSchema` instead. */
23
+ FileCitationAnnotationType$.outboundSchema = FileCitationAnnotationType$outboundSchema;
24
+ })(FileCitationAnnotationType$ || (FileCitationAnnotationType$ = {}));
25
+ /** @internal */
26
+ export const FileCitationAnnotation$inboundSchema = z.object({
27
+ type: FileCitationAnnotationType$inboundSchema,
28
+ file_id: z.string(),
29
+ filename: z.string(),
30
+ index: z.number(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "file_id": "fileId",
34
+ });
35
+ });
36
+ /** @internal */
37
+ export const FileCitationAnnotation$outboundSchema = z.object({
38
+ type: FileCitationAnnotationType$outboundSchema,
39
+ fileId: z.string(),
40
+ filename: z.string(),
41
+ index: z.number(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ fileId: "file_id",
45
+ });
46
+ });
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 var FileCitationAnnotation$;
52
+ (function (FileCitationAnnotation$) {
53
+ /** @deprecated use `FileCitationAnnotation$inboundSchema` instead. */
54
+ FileCitationAnnotation$.inboundSchema = FileCitationAnnotation$inboundSchema;
55
+ /** @deprecated use `FileCitationAnnotation$outboundSchema` instead. */
56
+ FileCitationAnnotation$.outboundSchema = FileCitationAnnotation$outboundSchema;
57
+ })(FileCitationAnnotation$ || (FileCitationAnnotation$ = {}));
58
+ export function fileCitationAnnotationToJSON(fileCitationAnnotation) {
59
+ return JSON.stringify(FileCitationAnnotation$outboundSchema.parse(fileCitationAnnotation));
60
+ }
61
+ export function fileCitationAnnotationFromJSON(jsonString) {
62
+ return safeParse(jsonString, (x) => FileCitationAnnotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileCitationAnnotation' from JSON`);
63
+ }
64
+ //# sourceMappingURL=filecitationannotation.js.map
@@ -0,0 +1,56 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const FilePathAnnotationType: {
6
+ readonly FilePath: "file_path";
7
+ };
8
+ export type FilePathAnnotationType = ClosedEnum<typeof FilePathAnnotationType>;
9
+ export type FilePathAnnotation = {
10
+ type: FilePathAnnotationType;
11
+ fileId: string;
12
+ index: number;
13
+ };
14
+ /** @internal */
15
+ export declare const FilePathAnnotationType$inboundSchema: z.ZodEnum<typeof FilePathAnnotationType>;
16
+ /** @internal */
17
+ export declare const FilePathAnnotationType$outboundSchema: z.ZodEnum<typeof FilePathAnnotationType>;
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export declare namespace FilePathAnnotationType$ {
23
+ /** @deprecated use `FilePathAnnotationType$inboundSchema` instead. */
24
+ const inboundSchema: z.ZodEnum<{
25
+ readonly FilePath: "file_path";
26
+ }>;
27
+ /** @deprecated use `FilePathAnnotationType$outboundSchema` instead. */
28
+ const outboundSchema: z.ZodEnum<{
29
+ readonly FilePath: "file_path";
30
+ }>;
31
+ }
32
+ /** @internal */
33
+ export declare const FilePathAnnotation$inboundSchema: z.ZodType<FilePathAnnotation, unknown>;
34
+ /** @internal */
35
+ export type FilePathAnnotation$Outbound = {
36
+ type: string;
37
+ file_id: string;
38
+ index: number;
39
+ };
40
+ /** @internal */
41
+ export declare const FilePathAnnotation$outboundSchema: z.ZodType<FilePathAnnotation$Outbound, FilePathAnnotation>;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ export declare namespace FilePathAnnotation$ {
47
+ /** @deprecated use `FilePathAnnotation$inboundSchema` instead. */
48
+ const inboundSchema: z.ZodType<FilePathAnnotation, unknown, z.core.$ZodTypeInternals<FilePathAnnotation, unknown>>;
49
+ /** @deprecated use `FilePathAnnotation$outboundSchema` instead. */
50
+ const outboundSchema: z.ZodType<FilePathAnnotation$Outbound, FilePathAnnotation, z.core.$ZodTypeInternals<FilePathAnnotation$Outbound, FilePathAnnotation>>;
51
+ /** @deprecated use `FilePathAnnotation$Outbound` instead. */
52
+ type Outbound = FilePathAnnotation$Outbound;
53
+ }
54
+ export declare function filePathAnnotationToJSON(filePathAnnotation: FilePathAnnotation): string;
55
+ export declare function filePathAnnotationFromJSON(jsonString: string): SafeParseResult<FilePathAnnotation, SDKValidationError>;
56
+ //# sourceMappingURL=filepathannotation.d.ts.map
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ export const FilePathAnnotationType = {
8
+ FilePath: "file_path",
9
+ };
10
+ /** @internal */
11
+ export const FilePathAnnotationType$inboundSchema = z.enum(FilePathAnnotationType);
12
+ /** @internal */
13
+ export const FilePathAnnotationType$outboundSchema = FilePathAnnotationType$inboundSchema;
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 FilePathAnnotationType$;
19
+ (function (FilePathAnnotationType$) {
20
+ /** @deprecated use `FilePathAnnotationType$inboundSchema` instead. */
21
+ FilePathAnnotationType$.inboundSchema = FilePathAnnotationType$inboundSchema;
22
+ /** @deprecated use `FilePathAnnotationType$outboundSchema` instead. */
23
+ FilePathAnnotationType$.outboundSchema = FilePathAnnotationType$outboundSchema;
24
+ })(FilePathAnnotationType$ || (FilePathAnnotationType$ = {}));
25
+ /** @internal */
26
+ export const FilePathAnnotation$inboundSchema = z.object({
27
+ type: FilePathAnnotationType$inboundSchema,
28
+ file_id: z.string(),
29
+ index: z.number(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "file_id": "fileId",
33
+ });
34
+ });
35
+ /** @internal */
36
+ export const FilePathAnnotation$outboundSchema = z.object({
37
+ type: FilePathAnnotationType$outboundSchema,
38
+ fileId: z.string(),
39
+ index: z.number(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ fileId: "file_id",
43
+ });
44
+ });
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export var FilePathAnnotation$;
50
+ (function (FilePathAnnotation$) {
51
+ /** @deprecated use `FilePathAnnotation$inboundSchema` instead. */
52
+ FilePathAnnotation$.inboundSchema = FilePathAnnotation$inboundSchema;
53
+ /** @deprecated use `FilePathAnnotation$outboundSchema` instead. */
54
+ FilePathAnnotation$.outboundSchema = FilePathAnnotation$outboundSchema;
55
+ })(FilePathAnnotation$ || (FilePathAnnotation$ = {}));
56
+ export function filePathAnnotationToJSON(filePathAnnotation) {
57
+ return JSON.stringify(FilePathAnnotation$outboundSchema.parse(filePathAnnotation));
58
+ }
59
+ export function filePathAnnotationFromJSON(jsonString) {
60
+ return safeParse(jsonString, (x) => FilePathAnnotation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilePathAnnotation' from JSON`);
61
+ }
62
+ //# sourceMappingURL=filepathannotation.js.map
@@ -0,0 +1,24 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const ImageGenerationStatus: {
4
+ readonly InProgress: "in_progress";
5
+ readonly Completed: "completed";
6
+ readonly Generating: "generating";
7
+ readonly Failed: "failed";
8
+ };
9
+ export type ImageGenerationStatus = OpenEnum<typeof ImageGenerationStatus>;
10
+ /** @internal */
11
+ export declare const ImageGenerationStatus$inboundSchema: z.ZodType<ImageGenerationStatus, unknown>;
12
+ /** @internal */
13
+ export declare const ImageGenerationStatus$outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus>;
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 ImageGenerationStatus$ {
19
+ /** @deprecated use `ImageGenerationStatus$inboundSchema` instead. */
20
+ const inboundSchema: z.ZodType<ImageGenerationStatus, unknown, z.core.$ZodTypeInternals<ImageGenerationStatus, unknown>>;
21
+ /** @deprecated use `ImageGenerationStatus$outboundSchema` instead. */
22
+ const outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus, z.core.$ZodTypeInternals<ImageGenerationStatus, ImageGenerationStatus>>;
23
+ }
24
+ //# sourceMappingURL=imagegenerationstatus.d.ts.map
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { catchUnrecognizedEnum, } from "../types/enums.js";
6
+ export const ImageGenerationStatus = {
7
+ InProgress: "in_progress",
8
+ Completed: "completed",
9
+ Generating: "generating",
10
+ Failed: "failed",
11
+ };
12
+ /** @internal */
13
+ export const ImageGenerationStatus$inboundSchema = z
14
+ .union([
15
+ z.enum(ImageGenerationStatus),
16
+ z.string().transform(catchUnrecognizedEnum),
17
+ ]);
18
+ /** @internal */
19
+ export const ImageGenerationStatus$outboundSchema = z.union([
20
+ z.enum(ImageGenerationStatus),
21
+ z.string().and(z.custom()),
22
+ ]);
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 ImageGenerationStatus$;
28
+ (function (ImageGenerationStatus$) {
29
+ /** @deprecated use `ImageGenerationStatus$inboundSchema` instead. */
30
+ ImageGenerationStatus$.inboundSchema = ImageGenerationStatus$inboundSchema;
31
+ /** @deprecated use `ImageGenerationStatus$outboundSchema` instead. */
32
+ ImageGenerationStatus$.outboundSchema = ImageGenerationStatus$outboundSchema;
33
+ })(ImageGenerationStatus$ || (ImageGenerationStatus$ = {}));
34
+ //# sourceMappingURL=imagegenerationstatus.js.map
@@ -0,0 +1,96 @@
1
+ export * from "./activityitem.js";
2
+ export * from "./assistantmessage.js";
3
+ export * from "./chatcompletionfinishreason.js";
4
+ export * from "./chaterror.js";
5
+ export * from "./chatgenerationparams.js";
6
+ export * from "./chatgenerationtokenusage.js";
7
+ export * from "./chatmessagecontentitem.js";
8
+ export * from "./chatmessagecontentitemaudio.js";
9
+ export * from "./chatmessagecontentitemimage.js";
10
+ export * from "./chatmessagecontentitemtext.js";
11
+ export * from "./chatmessagetokenlogprob.js";
12
+ export * from "./chatmessagetokenlogprobs.js";
13
+ export * from "./chatmessagetoolcall.js";
14
+ export * from "./chatresponse.js";
15
+ export * from "./chatresponsechoice.js";
16
+ export * from "./chatstreamingchoice.js";
17
+ export * from "./chatstreamingmessagechunk.js";
18
+ export * from "./chatstreamingmessagetoolcall.js";
19
+ export * from "./chatstreamingresponsechunk.js";
20
+ export * from "./chatstreamoptions.js";
21
+ export * from "./completionchoice.js";
22
+ export * from "./completioncreateparams.js";
23
+ export * from "./completionlogprobs.js";
24
+ export * from "./completionresponse.js";
25
+ export * from "./completionusage.js";
26
+ export * from "./createchargerequest.js";
27
+ export * from "./errorresponse.js";
28
+ export * from "./filecitationannotation.js";
29
+ export * from "./filepathannotation.js";
30
+ export * from "./imagegenerationstatus.js";
31
+ export * from "./jsonschemaconfig.js";
32
+ export * from "./listendpointsresponse.js";
33
+ export * from "./message.js";
34
+ export * from "./modelscountresponse.js";
35
+ export * from "./modelslistresponse.js";
36
+ export * from "./namedtoolchoice.js";
37
+ export * from "./openresponseseasyinputmessage.js";
38
+ export * from "./openresponsesformatjsonobject.js";
39
+ export * from "./openresponsesformatjsonschema.js";
40
+ export * from "./openresponsesformattext.js";
41
+ export * from "./openresponsesformattextconfig.js";
42
+ export * from "./openresponsesfunctioncalloutput.js";
43
+ export * from "./openresponsesfunctiontoolcall.js";
44
+ export * from "./openresponsesinput.js";
45
+ export * from "./openresponsesinputcontent.js";
46
+ export * from "./openresponsesinputfile.js";
47
+ export * from "./openresponsesinputimage.js";
48
+ export * from "./openresponsesinputitem.js";
49
+ export * from "./openresponsesinputmessageitem.js";
50
+ export * from "./openresponsesinputtext.js";
51
+ export * from "./openresponseslogprobs.js";
52
+ export * from "./openresponsesnonstreamingresponse.js";
53
+ export * from "./openresponsesoutputtext.js";
54
+ export * from "./openresponsesprompt.js";
55
+ export * from "./openresponsesreasoning.js";
56
+ export * from "./openresponsesreasoningconfig.js";
57
+ export * from "./openresponsesrefusalcontent.js";
58
+ export * from "./openresponsesrequest.js";
59
+ export * from "./openresponsesstreamevent.js";
60
+ export * from "./openresponsestextconfig.js";
61
+ export * from "./openresponsestoolchoice.js";
62
+ export * from "./openresponsestoolunion.js";
63
+ export * from "./openresponseswebsearch20250826tool.js";
64
+ export * from "./openresponseswebsearchpreview20250311tool.js";
65
+ export * from "./openresponseswebsearchpreviewtool.js";
66
+ export * from "./openresponseswebsearchtool.js";
67
+ export * from "./outputtextcontent.js";
68
+ export * from "./publicendpoint.js";
69
+ export * from "./reasoningsummarytext.js";
70
+ export * from "./reasoningsummaryverbosity.js";
71
+ export * from "./reasoningtextcontent.js";
72
+ export * from "./refusalcontent.js";
73
+ export * from "./responseformatjsonschema.js";
74
+ export * from "./responseformattextgrammar.js";
75
+ export * from "./responseserrorfield.js";
76
+ export * from "./responsesimagegenerationcall.js";
77
+ export * from "./responsesoutputitem.js";
78
+ export * from "./responsesoutputitemfilesearchcall.js";
79
+ export * from "./responsesoutputitemfunctioncall.js";
80
+ export * from "./responsesoutputitemreasoning.js";
81
+ export * from "./responsesoutputmessage.js";
82
+ export * from "./responsessearchcontextsize.js";
83
+ export * from "./responsesusage.js";
84
+ export * from "./responseswebsearchcalloutput.js";
85
+ export * from "./responseswebsearchuserlocation.js";
86
+ export * from "./security.js";
87
+ export * from "./systemmessage.js";
88
+ export * from "./tool.js";
89
+ export * from "./toolcallstatus.js";
90
+ export * from "./toolchoicetypes.js";
91
+ export * from "./toolresponsemessage.js";
92
+ export * from "./urlcitationannotation.js";
93
+ export * from "./usermessage.js";
94
+ export * from "./websearchpreviewtooluserlocation.js";
95
+ export * from "./websearchstatus.js";
96
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ export * from "./activityitem.js";
5
+ export * from "./assistantmessage.js";
6
+ export * from "./chatcompletionfinishreason.js";
7
+ export * from "./chaterror.js";
8
+ export * from "./chatgenerationparams.js";
9
+ export * from "./chatgenerationtokenusage.js";
10
+ export * from "./chatmessagecontentitem.js";
11
+ export * from "./chatmessagecontentitemaudio.js";
12
+ export * from "./chatmessagecontentitemimage.js";
13
+ export * from "./chatmessagecontentitemtext.js";
14
+ export * from "./chatmessagetokenlogprob.js";
15
+ export * from "./chatmessagetokenlogprobs.js";
16
+ export * from "./chatmessagetoolcall.js";
17
+ export * from "./chatresponse.js";
18
+ export * from "./chatresponsechoice.js";
19
+ export * from "./chatstreamingchoice.js";
20
+ export * from "./chatstreamingmessagechunk.js";
21
+ export * from "./chatstreamingmessagetoolcall.js";
22
+ export * from "./chatstreamingresponsechunk.js";
23
+ export * from "./chatstreamoptions.js";
24
+ export * from "./completionchoice.js";
25
+ export * from "./completioncreateparams.js";
26
+ export * from "./completionlogprobs.js";
27
+ export * from "./completionresponse.js";
28
+ export * from "./completionusage.js";
29
+ export * from "./createchargerequest.js";
30
+ export * from "./errorresponse.js";
31
+ export * from "./filecitationannotation.js";
32
+ export * from "./filepathannotation.js";
33
+ export * from "./imagegenerationstatus.js";
34
+ export * from "./jsonschemaconfig.js";
35
+ export * from "./listendpointsresponse.js";
36
+ export * from "./message.js";
37
+ export * from "./modelscountresponse.js";
38
+ export * from "./modelslistresponse.js";
39
+ export * from "./namedtoolchoice.js";
40
+ export * from "./openresponseseasyinputmessage.js";
41
+ export * from "./openresponsesformatjsonobject.js";
42
+ export * from "./openresponsesformatjsonschema.js";
43
+ export * from "./openresponsesformattext.js";
44
+ export * from "./openresponsesformattextconfig.js";
45
+ export * from "./openresponsesfunctioncalloutput.js";
46
+ export * from "./openresponsesfunctiontoolcall.js";
47
+ export * from "./openresponsesinput.js";
48
+ export * from "./openresponsesinputcontent.js";
49
+ export * from "./openresponsesinputfile.js";
50
+ export * from "./openresponsesinputimage.js";
51
+ export * from "./openresponsesinputitem.js";
52
+ export * from "./openresponsesinputmessageitem.js";
53
+ export * from "./openresponsesinputtext.js";
54
+ export * from "./openresponseslogprobs.js";
55
+ export * from "./openresponsesnonstreamingresponse.js";
56
+ export * from "./openresponsesoutputtext.js";
57
+ export * from "./openresponsesprompt.js";
58
+ export * from "./openresponsesreasoning.js";
59
+ export * from "./openresponsesreasoningconfig.js";
60
+ export * from "./openresponsesrefusalcontent.js";
61
+ export * from "./openresponsesrequest.js";
62
+ export * from "./openresponsesstreamevent.js";
63
+ export * from "./openresponsestextconfig.js";
64
+ export * from "./openresponsestoolchoice.js";
65
+ export * from "./openresponsestoolunion.js";
66
+ export * from "./openresponseswebsearch20250826tool.js";
67
+ export * from "./openresponseswebsearchpreview20250311tool.js";
68
+ export * from "./openresponseswebsearchpreviewtool.js";
69
+ export * from "./openresponseswebsearchtool.js";
70
+ export * from "./outputtextcontent.js";
71
+ export * from "./publicendpoint.js";
72
+ export * from "./reasoningsummarytext.js";
73
+ export * from "./reasoningsummaryverbosity.js";
74
+ export * from "./reasoningtextcontent.js";
75
+ export * from "./refusalcontent.js";
76
+ export * from "./responseformatjsonschema.js";
77
+ export * from "./responseformattextgrammar.js";
78
+ export * from "./responseserrorfield.js";
79
+ export * from "./responsesimagegenerationcall.js";
80
+ export * from "./responsesoutputitem.js";
81
+ export * from "./responsesoutputitemfilesearchcall.js";
82
+ export * from "./responsesoutputitemfunctioncall.js";
83
+ export * from "./responsesoutputitemreasoning.js";
84
+ export * from "./responsesoutputmessage.js";
85
+ export * from "./responsessearchcontextsize.js";
86
+ export * from "./responsesusage.js";
87
+ export * from "./responseswebsearchcalloutput.js";
88
+ export * from "./responseswebsearchuserlocation.js";
89
+ export * from "./security.js";
90
+ export * from "./systemmessage.js";
91
+ export * from "./tool.js";
92
+ export * from "./toolcallstatus.js";
93
+ export * from "./toolchoicetypes.js";
94
+ export * from "./toolresponsemessage.js";
95
+ export * from "./urlcitationannotation.js";
96
+ export * from "./usermessage.js";
97
+ export * from "./websearchpreviewtooluserlocation.js";
98
+ export * from "./websearchstatus.js";
99
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,39 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type JSONSchemaConfig = {
5
+ name: string;
6
+ description?: string | undefined;
7
+ schema?: {
8
+ [k: string]: any;
9
+ } | undefined;
10
+ strict?: boolean | null | undefined;
11
+ };
12
+ /** @internal */
13
+ export declare const JSONSchemaConfig$inboundSchema: z.ZodType<JSONSchemaConfig, unknown>;
14
+ /** @internal */
15
+ export type JSONSchemaConfig$Outbound = {
16
+ name: string;
17
+ description?: string | undefined;
18
+ schema?: {
19
+ [k: string]: any;
20
+ } | undefined;
21
+ strict?: boolean | null | undefined;
22
+ };
23
+ /** @internal */
24
+ export declare const JSONSchemaConfig$outboundSchema: z.ZodType<JSONSchemaConfig$Outbound, JSONSchemaConfig>;
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export declare namespace JSONSchemaConfig$ {
30
+ /** @deprecated use `JSONSchemaConfig$inboundSchema` instead. */
31
+ const inboundSchema: z.ZodType<JSONSchemaConfig, unknown, z.core.$ZodTypeInternals<JSONSchemaConfig, unknown>>;
32
+ /** @deprecated use `JSONSchemaConfig$outboundSchema` instead. */
33
+ const outboundSchema: z.ZodType<JSONSchemaConfig$Outbound, JSONSchemaConfig, z.core.$ZodTypeInternals<JSONSchemaConfig$Outbound, JSONSchemaConfig>>;
34
+ /** @deprecated use `JSONSchemaConfig$Outbound` instead. */
35
+ type Outbound = JSONSchemaConfig$Outbound;
36
+ }
37
+ export declare function jsonSchemaConfigToJSON(jsonSchemaConfig: JSONSchemaConfig): string;
38
+ export declare function jsonSchemaConfigFromJSON(jsonString: string): SafeParseResult<JSONSchemaConfig, SDKValidationError>;
39
+ //# sourceMappingURL=jsonschemaconfig.d.ts.map
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const JSONSchemaConfig$inboundSchema = z.object({
8
+ name: z.string(),
9
+ description: z.string().optional(),
10
+ schema: z.record(z.string(), z.any()).optional(),
11
+ strict: z.nullable(z.boolean()).optional(),
12
+ });
13
+ /** @internal */
14
+ export const JSONSchemaConfig$outboundSchema = z.object({
15
+ name: z.string(),
16
+ description: z.string().optional(),
17
+ schema: z.record(z.string(), z.any()).optional(),
18
+ strict: z.nullable(z.boolean()).optional(),
19
+ });
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export var JSONSchemaConfig$;
25
+ (function (JSONSchemaConfig$) {
26
+ /** @deprecated use `JSONSchemaConfig$inboundSchema` instead. */
27
+ JSONSchemaConfig$.inboundSchema = JSONSchemaConfig$inboundSchema;
28
+ /** @deprecated use `JSONSchemaConfig$outboundSchema` instead. */
29
+ JSONSchemaConfig$.outboundSchema = JSONSchemaConfig$outboundSchema;
30
+ })(JSONSchemaConfig$ || (JSONSchemaConfig$ = {}));
31
+ export function jsonSchemaConfigToJSON(jsonSchemaConfig) {
32
+ return JSON.stringify(JSONSchemaConfig$outboundSchema.parse(jsonSchemaConfig));
33
+ }
34
+ export function jsonSchemaConfigFromJSON(jsonString) {
35
+ return safeParse(jsonString, (x) => JSONSchemaConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JSONSchemaConfig' from JSON`);
36
+ }
37
+ //# sourceMappingURL=jsonschemaconfig.js.map
@@ -0,0 +1,28 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * List of available endpoints for a model
6
+ */
7
+ export type ListEndpointsResponse = {};
8
+ /** @internal */
9
+ export declare const ListEndpointsResponse$inboundSchema: z.ZodType<ListEndpointsResponse, unknown>;
10
+ /** @internal */
11
+ export type ListEndpointsResponse$Outbound = {};
12
+ /** @internal */
13
+ export declare const ListEndpointsResponse$outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse>;
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 ListEndpointsResponse$ {
19
+ /** @deprecated use `ListEndpointsResponse$inboundSchema` instead. */
20
+ const inboundSchema: z.ZodType<ListEndpointsResponse, unknown, z.core.$ZodTypeInternals<ListEndpointsResponse, unknown>>;
21
+ /** @deprecated use `ListEndpointsResponse$outboundSchema` instead. */
22
+ const outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse, z.core.$ZodTypeInternals<ListEndpointsResponse$Outbound, ListEndpointsResponse>>;
23
+ /** @deprecated use `ListEndpointsResponse$Outbound` instead. */
24
+ type Outbound = ListEndpointsResponse$Outbound;
25
+ }
26
+ export declare function listEndpointsResponseToJSON(listEndpointsResponse: ListEndpointsResponse): string;
27
+ export declare function listEndpointsResponseFromJSON(jsonString: string): SafeParseResult<ListEndpointsResponse, SDKValidationError>;
28
+ //# sourceMappingURL=listendpointsresponse.d.ts.map
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const ListEndpointsResponse$inboundSchema = z.object({});
8
+ /** @internal */
9
+ export const ListEndpointsResponse$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 ListEndpointsResponse$;
15
+ (function (ListEndpointsResponse$) {
16
+ /** @deprecated use `ListEndpointsResponse$inboundSchema` instead. */
17
+ ListEndpointsResponse$.inboundSchema = ListEndpointsResponse$inboundSchema;
18
+ /** @deprecated use `ListEndpointsResponse$outboundSchema` instead. */
19
+ ListEndpointsResponse$.outboundSchema = ListEndpointsResponse$outboundSchema;
20
+ })(ListEndpointsResponse$ || (ListEndpointsResponse$ = {}));
21
+ export function listEndpointsResponseToJSON(listEndpointsResponse) {
22
+ return JSON.stringify(ListEndpointsResponse$outboundSchema.parse(listEndpointsResponse));
23
+ }
24
+ export function listEndpointsResponseFromJSON(jsonString) {
25
+ return safeParse(jsonString, (x) => ListEndpointsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEndpointsResponse' from JSON`);
26
+ }
27
+ //# sourceMappingURL=listendpointsresponse.js.map
@@ -0,0 +1,80 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AssistantMessage, AssistantMessage$Outbound } from "./assistantmessage.js";
4
+ import { ChatMessageContentItemText, ChatMessageContentItemText$Outbound } from "./chatmessagecontentitemtext.js";
5
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
+ import { SystemMessage, SystemMessage$Outbound } from "./systemmessage.js";
7
+ import { ToolResponseMessage, ToolResponseMessage$Outbound } from "./toolresponsemessage.js";
8
+ import { UserMessage, UserMessage$Outbound } from "./usermessage.js";
9
+ export type MessageContent = string | Array<ChatMessageContentItemText>;
10
+ export type MessageDeveloper = {
11
+ role: "developer";
12
+ content: string | Array<ChatMessageContentItemText>;
13
+ name?: string | undefined;
14
+ };
15
+ export type Message = ToolResponseMessage | SystemMessage | UserMessage | MessageDeveloper | AssistantMessage;
16
+ /** @internal */
17
+ export declare const MessageContent$inboundSchema: z.ZodType<MessageContent, unknown>;
18
+ /** @internal */
19
+ export type MessageContent$Outbound = string | Array<ChatMessageContentItemText$Outbound>;
20
+ /** @internal */
21
+ export declare const MessageContent$outboundSchema: z.ZodType<MessageContent$Outbound, MessageContent>;
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export declare namespace MessageContent$ {
27
+ /** @deprecated use `MessageContent$inboundSchema` instead. */
28
+ const inboundSchema: z.ZodType<MessageContent, unknown, z.core.$ZodTypeInternals<MessageContent, unknown>>;
29
+ /** @deprecated use `MessageContent$outboundSchema` instead. */
30
+ const outboundSchema: z.ZodType<MessageContent$Outbound, MessageContent, z.core.$ZodTypeInternals<MessageContent$Outbound, MessageContent>>;
31
+ /** @deprecated use `MessageContent$Outbound` instead. */
32
+ type Outbound = MessageContent$Outbound;
33
+ }
34
+ export declare function messageContentToJSON(messageContent: MessageContent): string;
35
+ export declare function messageContentFromJSON(jsonString: string): SafeParseResult<MessageContent, SDKValidationError>;
36
+ /** @internal */
37
+ export declare const MessageDeveloper$inboundSchema: z.ZodType<MessageDeveloper, unknown>;
38
+ /** @internal */
39
+ export type MessageDeveloper$Outbound = {
40
+ role: "developer";
41
+ content: string | Array<ChatMessageContentItemText$Outbound>;
42
+ name?: string | undefined;
43
+ };
44
+ /** @internal */
45
+ export declare const MessageDeveloper$outboundSchema: z.ZodType<MessageDeveloper$Outbound, MessageDeveloper>;
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export declare namespace MessageDeveloper$ {
51
+ /** @deprecated use `MessageDeveloper$inboundSchema` instead. */
52
+ const inboundSchema: z.ZodType<MessageDeveloper, unknown, z.core.$ZodTypeInternals<MessageDeveloper, unknown>>;
53
+ /** @deprecated use `MessageDeveloper$outboundSchema` instead. */
54
+ const outboundSchema: z.ZodType<MessageDeveloper$Outbound, MessageDeveloper, z.core.$ZodTypeInternals<MessageDeveloper$Outbound, MessageDeveloper>>;
55
+ /** @deprecated use `MessageDeveloper$Outbound` instead. */
56
+ type Outbound = MessageDeveloper$Outbound;
57
+ }
58
+ export declare function messageDeveloperToJSON(messageDeveloper: MessageDeveloper): string;
59
+ export declare function messageDeveloperFromJSON(jsonString: string): SafeParseResult<MessageDeveloper, SDKValidationError>;
60
+ /** @internal */
61
+ export declare const Message$inboundSchema: z.ZodType<Message, unknown>;
62
+ /** @internal */
63
+ export type Message$Outbound = ToolResponseMessage$Outbound | SystemMessage$Outbound | UserMessage$Outbound | MessageDeveloper$Outbound | AssistantMessage$Outbound;
64
+ /** @internal */
65
+ export declare const Message$outboundSchema: z.ZodType<Message$Outbound, Message>;
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export declare namespace Message$ {
71
+ /** @deprecated use `Message$inboundSchema` instead. */
72
+ const inboundSchema: z.ZodType<Message, unknown, z.core.$ZodTypeInternals<Message, unknown>>;
73
+ /** @deprecated use `Message$outboundSchema` instead. */
74
+ const outboundSchema: z.ZodType<Message$Outbound, Message, z.core.$ZodTypeInternals<Message$Outbound, Message>>;
75
+ /** @deprecated use `Message$Outbound` instead. */
76
+ type Outbound = Message$Outbound;
77
+ }
78
+ export declare function messageToJSON(message: Message): string;
79
+ export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
80
+ //# sourceMappingURL=message.d.ts.map