@openrouter/sdk 0.0.0-beta.0

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 (1303) hide show
  1. package/.devcontainer/README.md +30 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +89 -0
  4. package/REACT_QUERY.md +302 -0
  5. package/README.md +502 -0
  6. package/RUNTIMES.md +48 -0
  7. package/dist/commonjs/core.d.ts +10 -0
  8. package/dist/commonjs/core.d.ts.map +1 -0
  9. package/dist/commonjs/core.js +17 -0
  10. package/dist/commonjs/core.js.map +1 -0
  11. package/dist/commonjs/funcs/analyticsGetActivity.d.ts +17 -0
  12. package/dist/commonjs/funcs/analyticsGetActivity.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/analyticsGetActivity.js +116 -0
  14. package/dist/commonjs/funcs/analyticsGetActivity.js.map +1 -0
  15. package/dist/commonjs/funcs/apiKeysDeleteKeysHash.d.ts +14 -0
  16. package/dist/commonjs/funcs/apiKeysDeleteKeysHash.d.ts.map +1 -0
  17. package/dist/commonjs/funcs/apiKeysDeleteKeysHash.js +115 -0
  18. package/dist/commonjs/funcs/apiKeysDeleteKeysHash.js.map +1 -0
  19. package/dist/commonjs/funcs/apiKeysGetAuthKey.d.ts +17 -0
  20. package/dist/commonjs/funcs/apiKeysGetAuthKey.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/apiKeysGetAuthKey.js +103 -0
  22. package/dist/commonjs/funcs/apiKeysGetAuthKey.js.map +1 -0
  23. package/dist/commonjs/funcs/apiKeysGetKey.d.ts +17 -0
  24. package/dist/commonjs/funcs/apiKeysGetKey.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/apiKeysGetKey.js +103 -0
  26. package/dist/commonjs/funcs/apiKeysGetKey.js.map +1 -0
  27. package/dist/commonjs/funcs/apiKeysGetKeys.d.ts +14 -0
  28. package/dist/commonjs/funcs/apiKeysGetKeys.d.ts.map +1 -0
  29. package/dist/commonjs/funcs/apiKeysGetKeys.js +114 -0
  30. package/dist/commonjs/funcs/apiKeysGetKeys.js.map +1 -0
  31. package/dist/commonjs/funcs/apiKeysGetKeysHash.d.ts +14 -0
  32. package/dist/commonjs/funcs/apiKeysGetKeysHash.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/apiKeysGetKeysHash.js +115 -0
  34. package/dist/commonjs/funcs/apiKeysGetKeysHash.js.map +1 -0
  35. package/dist/commonjs/funcs/apiKeysPatchKeysHash.d.ts +14 -0
  36. package/dist/commonjs/funcs/apiKeysPatchKeysHash.d.ts.map +1 -0
  37. package/dist/commonjs/funcs/apiKeysPatchKeysHash.js +116 -0
  38. package/dist/commonjs/funcs/apiKeysPatchKeysHash.js.map +1 -0
  39. package/dist/commonjs/funcs/apiKeysPostKeys.d.ts +14 -0
  40. package/dist/commonjs/funcs/apiKeysPostKeys.d.ts.map +1 -0
  41. package/dist/commonjs/funcs/apiKeysPostKeys.js +112 -0
  42. package/dist/commonjs/funcs/apiKeysPostKeys.js.map +1 -0
  43. package/dist/commonjs/funcs/chatSend.d.ts +25 -0
  44. package/dist/commonjs/funcs/chatSend.d.ts.map +1 -0
  45. package/dist/commonjs/funcs/chatSend.js +127 -0
  46. package/dist/commonjs/funcs/chatSend.js.map +1 -0
  47. package/dist/commonjs/funcs/embeddingsPostEmbeddings.d.ts +17 -0
  48. package/dist/commonjs/funcs/embeddingsPostEmbeddings.d.ts.map +1 -0
  49. package/dist/commonjs/funcs/embeddingsPostEmbeddings.js +115 -0
  50. package/dist/commonjs/funcs/embeddingsPostEmbeddings.js.map +1 -0
  51. package/dist/commonjs/funcs/endpointsGetEndpointsZdr.d.ts +14 -0
  52. package/dist/commonjs/funcs/endpointsGetEndpointsZdr.d.ts.map +1 -0
  53. package/dist/commonjs/funcs/endpointsGetEndpointsZdr.js +100 -0
  54. package/dist/commonjs/funcs/endpointsGetEndpointsZdr.js.map +1 -0
  55. package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts +14 -0
  56. package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -0
  57. package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.js +120 -0
  58. package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -0
  59. package/dist/commonjs/funcs/generationsGetGeneration.d.ts +14 -0
  60. package/dist/commonjs/funcs/generationsGetGeneration.d.ts.map +1 -0
  61. package/dist/commonjs/funcs/generationsGetGeneration.js +113 -0
  62. package/dist/commonjs/funcs/generationsGetGeneration.js.map +1 -0
  63. package/dist/commonjs/funcs/getCredits.d.ts +14 -0
  64. package/dist/commonjs/funcs/getCredits.d.ts.map +1 -0
  65. package/dist/commonjs/funcs/getCredits.js +100 -0
  66. package/dist/commonjs/funcs/getCredits.js.map +1 -0
  67. package/dist/commonjs/funcs/getProviders.d.ts +12 -0
  68. package/dist/commonjs/funcs/getProviders.d.ts.map +1 -0
  69. package/dist/commonjs/funcs/getProviders.js +101 -0
  70. package/dist/commonjs/funcs/getProviders.js.map +1 -0
  71. package/dist/commonjs/funcs/modelsGetModels.d.ts +20 -0
  72. package/dist/commonjs/funcs/modelsGetModels.d.ts.map +1 -0
  73. package/dist/commonjs/funcs/modelsGetModels.js +125 -0
  74. package/dist/commonjs/funcs/modelsGetModels.js.map +1 -0
  75. package/dist/commonjs/funcs/modelsGetModelsCount.d.ts +14 -0
  76. package/dist/commonjs/funcs/modelsGetModelsCount.d.ts.map +1 -0
  77. package/dist/commonjs/funcs/modelsGetModelsCount.js +100 -0
  78. package/dist/commonjs/funcs/modelsGetModelsCount.js.map +1 -0
  79. package/dist/commonjs/funcs/modelsGetModelsUser.d.ts +14 -0
  80. package/dist/commonjs/funcs/modelsGetModelsUser.d.ts.map +1 -0
  81. package/dist/commonjs/funcs/modelsGetModelsUser.js +100 -0
  82. package/dist/commonjs/funcs/modelsGetModelsUser.js.map +1 -0
  83. package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.d.ts +14 -0
  84. package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.d.ts.map +1 -0
  85. package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.js +123 -0
  86. package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.js.map +1 -0
  87. package/dist/commonjs/funcs/postCreditsCoinbase.d.ts +14 -0
  88. package/dist/commonjs/funcs/postCreditsCoinbase.d.ts.map +1 -0
  89. package/dist/commonjs/funcs/postCreditsCoinbase.js +112 -0
  90. package/dist/commonjs/funcs/postCreditsCoinbase.js.map +1 -0
  91. package/dist/commonjs/hooks/hooks.d.ts +25 -0
  92. package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
  93. package/dist/commonjs/hooks/hooks.js +86 -0
  94. package/dist/commonjs/hooks/hooks.js.map +1 -0
  95. package/dist/commonjs/hooks/index.d.ts +3 -0
  96. package/dist/commonjs/hooks/index.d.ts.map +1 -0
  97. package/dist/commonjs/hooks/index.js +22 -0
  98. package/dist/commonjs/hooks/index.js.map +1 -0
  99. package/dist/commonjs/hooks/registration.d.ts +3 -0
  100. package/dist/commonjs/hooks/registration.d.ts.map +1 -0
  101. package/dist/commonjs/hooks/registration.js +15 -0
  102. package/dist/commonjs/hooks/registration.js.map +1 -0
  103. package/dist/commonjs/hooks/types.d.ts +76 -0
  104. package/dist/commonjs/hooks/types.d.ts.map +1 -0
  105. package/dist/commonjs/hooks/types.js +6 -0
  106. package/dist/commonjs/hooks/types.js.map +1 -0
  107. package/dist/commonjs/index.d.ts +6 -0
  108. package/dist/commonjs/index.d.ts.map +1 -0
  109. package/dist/commonjs/index.js +48 -0
  110. package/dist/commonjs/index.js.map +1 -0
  111. package/dist/commonjs/lib/base64.d.ts +10 -0
  112. package/dist/commonjs/lib/base64.d.ts.map +1 -0
  113. package/dist/commonjs/lib/base64.js +71 -0
  114. package/dist/commonjs/lib/base64.js.map +1 -0
  115. package/dist/commonjs/lib/config.d.ts +48 -0
  116. package/dist/commonjs/lib/config.d.ts.map +1 -0
  117. package/dist/commonjs/lib/config.js +36 -0
  118. package/dist/commonjs/lib/config.js.map +1 -0
  119. package/dist/commonjs/lib/dlv.d.ts +14 -0
  120. package/dist/commonjs/lib/dlv.d.ts.map +1 -0
  121. package/dist/commonjs/lib/dlv.js +49 -0
  122. package/dist/commonjs/lib/dlv.js.map +1 -0
  123. package/dist/commonjs/lib/encodings.d.ts +52 -0
  124. package/dist/commonjs/lib/encodings.d.ts.map +1 -0
  125. package/dist/commonjs/lib/encodings.js +368 -0
  126. package/dist/commonjs/lib/encodings.js.map +1 -0
  127. package/dist/commonjs/lib/env.d.ts +16 -0
  128. package/dist/commonjs/lib/env.d.ts.map +1 -0
  129. package/dist/commonjs/lib/env.js +66 -0
  130. package/dist/commonjs/lib/env.js.map +1 -0
  131. package/dist/commonjs/lib/event-streams.d.ts +11 -0
  132. package/dist/commonjs/lib/event-streams.d.ts.map +1 -0
  133. package/dist/commonjs/lib/event-streams.js +129 -0
  134. package/dist/commonjs/lib/event-streams.js.map +1 -0
  135. package/dist/commonjs/lib/files.d.ts +13 -0
  136. package/dist/commonjs/lib/files.d.ts.map +1 -0
  137. package/dist/commonjs/lib/files.js +77 -0
  138. package/dist/commonjs/lib/files.js.map +1 -0
  139. package/dist/commonjs/lib/http.d.ts +67 -0
  140. package/dist/commonjs/lib/http.d.ts.map +1 -0
  141. package/dist/commonjs/lib/http.js +217 -0
  142. package/dist/commonjs/lib/http.js.map +1 -0
  143. package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
  144. package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
  145. package/dist/commonjs/lib/is-plain-object.js +41 -0
  146. package/dist/commonjs/lib/is-plain-object.js.map +1 -0
  147. package/dist/commonjs/lib/logger.d.ts +6 -0
  148. package/dist/commonjs/lib/logger.d.ts.map +1 -0
  149. package/dist/commonjs/lib/logger.js +6 -0
  150. package/dist/commonjs/lib/logger.js.map +1 -0
  151. package/dist/commonjs/lib/matchers.d.ts +59 -0
  152. package/dist/commonjs/lib/matchers.d.ts.map +1 -0
  153. package/dist/commonjs/lib/matchers.js +222 -0
  154. package/dist/commonjs/lib/matchers.js.map +1 -0
  155. package/dist/commonjs/lib/primitives.d.ts +26 -0
  156. package/dist/commonjs/lib/primitives.d.ts.map +1 -0
  157. package/dist/commonjs/lib/primitives.js +111 -0
  158. package/dist/commonjs/lib/primitives.js.map +1 -0
  159. package/dist/commonjs/lib/retries.d.ts +38 -0
  160. package/dist/commonjs/lib/retries.d.ts.map +1 -0
  161. package/dist/commonjs/lib/retries.js +153 -0
  162. package/dist/commonjs/lib/retries.js.map +1 -0
  163. package/dist/commonjs/lib/schemas.d.ts +19 -0
  164. package/dist/commonjs/lib/schemas.d.ts.map +1 -0
  165. package/dist/commonjs/lib/schemas.js +62 -0
  166. package/dist/commonjs/lib/schemas.js.map +1 -0
  167. package/dist/commonjs/lib/sdks.d.ts +63 -0
  168. package/dist/commonjs/lib/sdks.d.ts.map +1 -0
  169. package/dist/commonjs/lib/sdks.js +273 -0
  170. package/dist/commonjs/lib/sdks.js.map +1 -0
  171. package/dist/commonjs/lib/security.d.ts +83 -0
  172. package/dist/commonjs/lib/security.d.ts.map +1 -0
  173. package/dist/commonjs/lib/security.js +150 -0
  174. package/dist/commonjs/lib/security.js.map +1 -0
  175. package/dist/commonjs/lib/url.d.ts +5 -0
  176. package/dist/commonjs/lib/url.d.ts.map +1 -0
  177. package/dist/commonjs/lib/url.js +25 -0
  178. package/dist/commonjs/lib/url.js.map +1 -0
  179. package/dist/commonjs/models/activityitem.d.ts +82 -0
  180. package/dist/commonjs/models/activityitem.d.ts.map +1 -0
  181. package/dist/commonjs/models/activityitem.js +110 -0
  182. package/dist/commonjs/models/activityitem.js.map +1 -0
  183. package/dist/commonjs/models/assistantmessage.d.ts +62 -0
  184. package/dist/commonjs/models/assistantmessage.d.ts.map +1 -0
  185. package/dist/commonjs/models/assistantmessage.js +113 -0
  186. package/dist/commonjs/models/assistantmessage.js.map +1 -0
  187. package/dist/commonjs/models/chaterror.d.ts +35 -0
  188. package/dist/commonjs/models/chaterror.d.ts.map +1 -0
  189. package/dist/commonjs/models/chaterror.js +75 -0
  190. package/dist/commonjs/models/chaterror.js.map +1 -0
  191. package/dist/commonjs/models/chatgenerationparams.d.ts +403 -0
  192. package/dist/commonjs/models/chatgenerationparams.d.ts.map +1 -0
  193. package/dist/commonjs/models/chatgenerationparams.js +492 -0
  194. package/dist/commonjs/models/chatgenerationparams.js.map +1 -0
  195. package/dist/commonjs/models/chatgenerationtokenusage.d.ts +95 -0
  196. package/dist/commonjs/models/chatgenerationtokenusage.d.ts.map +1 -0
  197. package/dist/commonjs/models/chatgenerationtokenusage.js +184 -0
  198. package/dist/commonjs/models/chatgenerationtokenusage.js.map +1 -0
  199. package/dist/commonjs/models/chatmessagecontentitem.d.ts +40 -0
  200. package/dist/commonjs/models/chatmessagecontentitem.d.ts.map +1 -0
  201. package/dist/commonjs/models/chatmessagecontentitem.js +84 -0
  202. package/dist/commonjs/models/chatmessagecontentitem.js.map +1 -0
  203. package/dist/commonjs/models/chatmessagecontentitemaudio.d.ts +99 -0
  204. package/dist/commonjs/models/chatmessagecontentitemaudio.d.ts.map +1 -0
  205. package/dist/commonjs/models/chatmessagecontentitemaudio.js +134 -0
  206. package/dist/commonjs/models/chatmessagecontentitemaudio.js.map +1 -0
  207. package/dist/commonjs/models/chatmessagecontentitemimage.d.ts +87 -0
  208. package/dist/commonjs/models/chatmessagecontentitemimage.d.ts.map +1 -0
  209. package/dist/commonjs/models/chatmessagecontentitemimage.js +130 -0
  210. package/dist/commonjs/models/chatmessagecontentitemimage.js.map +1 -0
  211. package/dist/commonjs/models/chatmessagecontentitemtext.d.ts +31 -0
  212. package/dist/commonjs/models/chatmessagecontentitemtext.d.ts.map +1 -0
  213. package/dist/commonjs/models/chatmessagecontentitemtext.js +71 -0
  214. package/dist/commonjs/models/chatmessagecontentitemtext.js.map +1 -0
  215. package/dist/commonjs/models/chatmessagetokenlogprob.d.ts +64 -0
  216. package/dist/commonjs/models/chatmessagetokenlogprob.d.ts.map +1 -0
  217. package/dist/commonjs/models/chatmessagetokenlogprob.js +115 -0
  218. package/dist/commonjs/models/chatmessagetokenlogprob.js.map +1 -0
  219. package/dist/commonjs/models/chatmessagetokenlogprobs.d.ts +32 -0
  220. package/dist/commonjs/models/chatmessagetokenlogprobs.d.ts.map +1 -0
  221. package/dist/commonjs/models/chatmessagetokenlogprobs.js +72 -0
  222. package/dist/commonjs/models/chatmessagetokenlogprobs.js.map +1 -0
  223. package/dist/commonjs/models/chatmessagetoolcall.d.ts +60 -0
  224. package/dist/commonjs/models/chatmessagetoolcall.d.ts.map +1 -0
  225. package/dist/commonjs/models/chatmessagetoolcall.js +102 -0
  226. package/dist/commonjs/models/chatmessagetoolcall.js.map +1 -0
  227. package/dist/commonjs/models/chatresponse.d.ts +43 -0
  228. package/dist/commonjs/models/chatresponse.d.ts.map +1 -0
  229. package/dist/commonjs/models/chatresponse.js +92 -0
  230. package/dist/commonjs/models/chatresponse.js.map +1 -0
  231. package/dist/commonjs/models/chatresponsechoice.d.ts +72 -0
  232. package/dist/commonjs/models/chatresponsechoice.d.ts.map +1 -0
  233. package/dist/commonjs/models/chatresponsechoice.js +108 -0
  234. package/dist/commonjs/models/chatresponsechoice.js.map +1 -0
  235. package/dist/commonjs/models/chatstreamingchoice.d.ts +72 -0
  236. package/dist/commonjs/models/chatstreamingchoice.d.ts.map +1 -0
  237. package/dist/commonjs/models/chatstreamingchoice.js +108 -0
  238. package/dist/commonjs/models/chatstreamingchoice.js.map +1 -0
  239. package/dist/commonjs/models/chatstreamingmessagechunk.d.ts +61 -0
  240. package/dist/commonjs/models/chatstreamingmessagechunk.d.ts.map +1 -0
  241. package/dist/commonjs/models/chatstreamingmessagechunk.js +105 -0
  242. package/dist/commonjs/models/chatstreamingmessagechunk.js.map +1 -0
  243. package/dist/commonjs/models/chatstreamingmessagetoolcall.d.ts +62 -0
  244. package/dist/commonjs/models/chatstreamingmessagetoolcall.d.ts.map +1 -0
  245. package/dist/commonjs/models/chatstreamingmessagetoolcall.js +106 -0
  246. package/dist/commonjs/models/chatstreamingmessagetoolcall.js.map +1 -0
  247. package/dist/commonjs/models/chatstreamingresponsechunk.d.ts +97 -0
  248. package/dist/commonjs/models/chatstreamingresponsechunk.d.ts.map +1 -0
  249. package/dist/commonjs/models/chatstreamingresponsechunk.js +164 -0
  250. package/dist/commonjs/models/chatstreamingresponsechunk.js.map +1 -0
  251. package/dist/commonjs/models/chatstreamoptions.d.ts +29 -0
  252. package/dist/commonjs/models/chatstreamoptions.d.ts.map +1 -0
  253. package/dist/commonjs/models/chatstreamoptions.js +78 -0
  254. package/dist/commonjs/models/chatstreamoptions.js.map +1 -0
  255. package/dist/commonjs/models/errorresponse.d.ts +297 -0
  256. package/dist/commonjs/models/errorresponse.d.ts.map +1 -0
  257. package/dist/commonjs/models/errorresponse.js +198 -0
  258. package/dist/commonjs/models/errorresponse.js.map +1 -0
  259. package/dist/commonjs/models/errors/chaterror.d.ts +37 -0
  260. package/dist/commonjs/models/errors/chaterror.d.ts.map +1 -0
  261. package/dist/commonjs/models/errors/chaterror.js +85 -0
  262. package/dist/commonjs/models/errors/chaterror.js.map +1 -0
  263. package/dist/commonjs/models/errors/getproviders.d.ts +49 -0
  264. package/dist/commonjs/models/errors/getproviders.d.ts.map +1 -0
  265. package/dist/commonjs/models/errors/getproviders.js +88 -0
  266. package/dist/commonjs/models/errors/getproviders.js.map +1 -0
  267. package/dist/commonjs/models/errors/httpclienterrors.d.ts +44 -0
  268. package/dist/commonjs/models/errors/httpclienterrors.d.ts.map +1 -0
  269. package/dist/commonjs/models/errors/httpclienterrors.js +78 -0
  270. package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -0
  271. package/dist/commonjs/models/errors/index.d.ts +8 -0
  272. package/dist/commonjs/models/errors/index.d.ts.map +1 -0
  273. package/dist/commonjs/models/errors/index.js +27 -0
  274. package/dist/commonjs/models/errors/index.js.map +1 -0
  275. package/dist/commonjs/models/errors/openrouterdefaulterror.d.ts +10 -0
  276. package/dist/commonjs/models/errors/openrouterdefaulterror.d.ts.map +1 -0
  277. package/dist/commonjs/models/errors/openrouterdefaulterror.js +34 -0
  278. package/dist/commonjs/models/errors/openrouterdefaulterror.js.map +1 -0
  279. package/dist/commonjs/models/errors/openroutererror.d.ts +19 -0
  280. package/dist/commonjs/models/errors/openroutererror.d.ts.map +1 -0
  281. package/dist/commonjs/models/errors/openroutererror.js +20 -0
  282. package/dist/commonjs/models/errors/openroutererror.js.map +1 -0
  283. package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
  284. package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
  285. package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
  286. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
  287. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +21 -0
  288. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -0
  289. package/dist/commonjs/models/errors/sdkvalidationerror.js +129 -0
  290. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -0
  291. package/dist/commonjs/models/index.d.ts +28 -0
  292. package/dist/commonjs/models/index.d.ts.map +1 -0
  293. package/dist/commonjs/models/index.js +47 -0
  294. package/dist/commonjs/models/index.js.map +1 -0
  295. package/dist/commonjs/models/message.d.ts +80 -0
  296. package/dist/commonjs/models/message.d.ts.map +1 -0
  297. package/dist/commonjs/models/message.js +142 -0
  298. package/dist/commonjs/models/message.js.map +1 -0
  299. package/dist/commonjs/models/namedtoolchoice.d.ts +56 -0
  300. package/dist/commonjs/models/namedtoolchoice.d.ts.map +1 -0
  301. package/dist/commonjs/models/namedtoolchoice.js +98 -0
  302. package/dist/commonjs/models/namedtoolchoice.js.map +1 -0
  303. package/dist/commonjs/models/operations/deletekeyshash.d.ts +82 -0
  304. package/dist/commonjs/models/operations/deletekeyshash.d.ts.map +1 -0
  305. package/dist/commonjs/models/operations/deletekeyshash.js +126 -0
  306. package/dist/commonjs/models/operations/deletekeyshash.js.map +1 -0
  307. package/dist/commonjs/models/operations/getactivity.d.ts +82 -0
  308. package/dist/commonjs/models/operations/getactivity.d.ts.map +1 -0
  309. package/dist/commonjs/models/operations/getactivity.js +126 -0
  310. package/dist/commonjs/models/operations/getactivity.js.map +1 -0
  311. package/dist/commonjs/models/operations/getauthkey.d.ts +163 -0
  312. package/dist/commonjs/models/operations/getauthkey.d.ts.map +1 -0
  313. package/dist/commonjs/models/operations/getauthkey.js +184 -0
  314. package/dist/commonjs/models/operations/getauthkey.js.map +1 -0
  315. package/dist/commonjs/models/operations/getcredits.d.ts +81 -0
  316. package/dist/commonjs/models/operations/getcredits.d.ts.map +1 -0
  317. package/dist/commonjs/models/operations/getcredits.js +139 -0
  318. package/dist/commonjs/models/operations/getcredits.js.map +1 -0
  319. package/dist/commonjs/models/operations/getendpointszdr.d.ts +815 -0
  320. package/dist/commonjs/models/operations/getendpointszdr.d.ts.map +1 -0
  321. package/dist/commonjs/models/operations/getendpointszdr.js +681 -0
  322. package/dist/commonjs/models/operations/getendpointszdr.js.map +1 -0
  323. package/dist/commonjs/models/operations/getgeneration.d.ts +295 -0
  324. package/dist/commonjs/models/operations/getgeneration.d.ts.map +1 -0
  325. package/dist/commonjs/models/operations/getgeneration.js +291 -0
  326. package/dist/commonjs/models/operations/getgeneration.js.map +1 -0
  327. package/dist/commonjs/models/operations/getkey.d.ts +163 -0
  328. package/dist/commonjs/models/operations/getkey.d.ts.map +1 -0
  329. package/dist/commonjs/models/operations/getkey.js +184 -0
  330. package/dist/commonjs/models/operations/getkey.js.map +1 -0
  331. package/dist/commonjs/models/operations/getkeys.d.ts +147 -0
  332. package/dist/commonjs/models/operations/getkeys.d.ts.map +1 -0
  333. package/dist/commonjs/models/operations/getkeys.js +188 -0
  334. package/dist/commonjs/models/operations/getkeys.js.map +1 -0
  335. package/dist/commonjs/models/operations/getkeyshash.d.ts +148 -0
  336. package/dist/commonjs/models/operations/getkeyshash.d.ts.map +1 -0
  337. package/dist/commonjs/models/operations/getkeyshash.js +178 -0
  338. package/dist/commonjs/models/operations/getkeyshash.js.map +1 -0
  339. package/dist/commonjs/models/operations/getmodels.d.ts +901 -0
  340. package/dist/commonjs/models/operations/getmodels.d.ts.map +1 -0
  341. package/dist/commonjs/models/operations/getmodels.js +826 -0
  342. package/dist/commonjs/models/operations/getmodels.js.map +1 -0
  343. package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.d.ts +1178 -0
  344. package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.d.ts.map +1 -0
  345. package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.js +922 -0
  346. package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.js.map +1 -0
  347. package/dist/commonjs/models/operations/getmodelscount.d.ts +88 -0
  348. package/dist/commonjs/models/operations/getmodelscount.d.ts.map +1 -0
  349. package/dist/commonjs/models/operations/getmodelscount.js +126 -0
  350. package/dist/commonjs/models/operations/getmodelscount.js.map +1 -0
  351. package/dist/commonjs/models/operations/getmodelsuser.d.ts +870 -0
  352. package/dist/commonjs/models/operations/getmodelsuser.d.ts.map +1 -0
  353. package/dist/commonjs/models/operations/getmodelsuser.js +779 -0
  354. package/dist/commonjs/models/operations/getmodelsuser.js.map +1 -0
  355. package/dist/commonjs/models/operations/getparametersauthorslug.d.ts +419 -0
  356. package/dist/commonjs/models/operations/getparametersauthorslug.d.ts.map +1 -0
  357. package/dist/commonjs/models/operations/getparametersauthorslug.js +289 -0
  358. package/dist/commonjs/models/operations/getparametersauthorslug.js.map +1 -0
  359. package/dist/commonjs/models/operations/getproviders.d.ts +116 -0
  360. package/dist/commonjs/models/operations/getproviders.d.ts.map +1 -0
  361. package/dist/commonjs/models/operations/getproviders.js +147 -0
  362. package/dist/commonjs/models/operations/getproviders.js.map +1 -0
  363. package/dist/commonjs/models/operations/index.d.ts +21 -0
  364. package/dist/commonjs/models/operations/index.d.ts.map +1 -0
  365. package/dist/commonjs/models/operations/index.js +40 -0
  366. package/dist/commonjs/models/operations/index.js.map +1 -0
  367. package/dist/commonjs/models/operations/patchkeyshash.d.ts +193 -0
  368. package/dist/commonjs/models/operations/patchkeyshash.d.ts.map +1 -0
  369. package/dist/commonjs/models/operations/patchkeyshash.js +229 -0
  370. package/dist/commonjs/models/operations/patchkeyshash.js.map +1 -0
  371. package/dist/commonjs/models/operations/postchatcompletions.d.ts +27 -0
  372. package/dist/commonjs/models/operations/postchatcompletions.d.ts.map +1 -0
  373. package/dist/commonjs/models/operations/postchatcompletions.js +80 -0
  374. package/dist/commonjs/models/operations/postchatcompletions.js.map +1 -0
  375. package/dist/commonjs/models/operations/postcreditscoinbase.d.ts +267 -0
  376. package/dist/commonjs/models/operations/postcreditscoinbase.d.ts.map +1 -0
  377. package/dist/commonjs/models/operations/postcreditscoinbase.js +377 -0
  378. package/dist/commonjs/models/operations/postcreditscoinbase.js.map +1 -0
  379. package/dist/commonjs/models/operations/postembeddings.d.ts +1497 -0
  380. package/dist/commonjs/models/operations/postembeddings.d.ts.map +1 -0
  381. package/dist/commonjs/models/operations/postembeddings.js +1064 -0
  382. package/dist/commonjs/models/operations/postembeddings.js.map +1 -0
  383. package/dist/commonjs/models/operations/postkeys.d.ts +166 -0
  384. package/dist/commonjs/models/operations/postkeys.d.ts.map +1 -0
  385. package/dist/commonjs/models/operations/postkeys.js +192 -0
  386. package/dist/commonjs/models/operations/postkeys.js.map +1 -0
  387. package/dist/commonjs/models/security.d.ts +31 -0
  388. package/dist/commonjs/models/security.d.ts.map +1 -0
  389. package/dist/commonjs/models/security.js +71 -0
  390. package/dist/commonjs/models/security.js.map +1 -0
  391. package/dist/commonjs/models/systemmessage.d.ts +55 -0
  392. package/dist/commonjs/models/systemmessage.d.ts.map +1 -0
  393. package/dist/commonjs/models/systemmessage.js +103 -0
  394. package/dist/commonjs/models/systemmessage.js.map +1 -0
  395. package/dist/commonjs/models/tool.d.ts +66 -0
  396. package/dist/commonjs/models/tool.d.ts.map +1 -0
  397. package/dist/commonjs/models/tool.js +105 -0
  398. package/dist/commonjs/models/tool.js.map +1 -0
  399. package/dist/commonjs/models/toolresponsemessage.d.ts +55 -0
  400. package/dist/commonjs/models/toolresponsemessage.d.ts.map +1 -0
  401. package/dist/commonjs/models/toolresponsemessage.js +109 -0
  402. package/dist/commonjs/models/toolresponsemessage.js.map +1 -0
  403. package/dist/commonjs/models/usermessage.d.ts +55 -0
  404. package/dist/commonjs/models/usermessage.d.ts.map +1 -0
  405. package/dist/commonjs/models/usermessage.js +100 -0
  406. package/dist/commonjs/models/usermessage.js.map +1 -0
  407. package/dist/commonjs/package.json +3 -0
  408. package/dist/commonjs/react-query/_context.d.ts +8 -0
  409. package/dist/commonjs/react-query/_context.d.ts.map +1 -0
  410. package/dist/commonjs/react-query/_context.js +21 -0
  411. package/dist/commonjs/react-query/_context.js.map +1 -0
  412. package/dist/commonjs/react-query/_types.d.ts +27 -0
  413. package/dist/commonjs/react-query/_types.d.ts.map +1 -0
  414. package/dist/commonjs/react-query/_types.js +6 -0
  415. package/dist/commonjs/react-query/_types.js.map +1 -0
  416. package/dist/commonjs/react-query/analyticsGetActivity.d.ts +36 -0
  417. package/dist/commonjs/react-query/analyticsGetActivity.d.ts.map +1 -0
  418. package/dist/commonjs/react-query/analyticsGetActivity.js +82 -0
  419. package/dist/commonjs/react-query/analyticsGetActivity.js.map +1 -0
  420. package/dist/commonjs/react-query/apiKeysDeleteKeysHash.d.ts +20 -0
  421. package/dist/commonjs/react-query/apiKeysDeleteKeysHash.d.ts.map +1 -0
  422. package/dist/commonjs/react-query/apiKeysDeleteKeysHash.js +44 -0
  423. package/dist/commonjs/react-query/apiKeysDeleteKeysHash.js.map +1 -0
  424. package/dist/commonjs/react-query/apiKeysGetAuthKey.d.ts +29 -0
  425. package/dist/commonjs/react-query/apiKeysGetAuthKey.d.ts.map +1 -0
  426. package/dist/commonjs/react-query/apiKeysGetAuthKey.js +75 -0
  427. package/dist/commonjs/react-query/apiKeysGetAuthKey.js.map +1 -0
  428. package/dist/commonjs/react-query/apiKeysGetKey.d.ts +29 -0
  429. package/dist/commonjs/react-query/apiKeysGetKey.d.ts.map +1 -0
  430. package/dist/commonjs/react-query/apiKeysGetKey.js +75 -0
  431. package/dist/commonjs/react-query/apiKeysGetKey.js.map +1 -0
  432. package/dist/commonjs/react-query/apiKeysGetKeys.d.ts +37 -0
  433. package/dist/commonjs/react-query/apiKeysGetKeys.d.ts.map +1 -0
  434. package/dist/commonjs/react-query/apiKeysGetKeys.js +79 -0
  435. package/dist/commonjs/react-query/apiKeysGetKeys.js.map +1 -0
  436. package/dist/commonjs/react-query/apiKeysGetKeysHash.d.ts +24 -0
  437. package/dist/commonjs/react-query/apiKeysGetKeysHash.d.ts.map +1 -0
  438. package/dist/commonjs/react-query/apiKeysGetKeysHash.js +76 -0
  439. package/dist/commonjs/react-query/apiKeysGetKeysHash.js.map +1 -0
  440. package/dist/commonjs/react-query/apiKeysPatchKeysHash.d.ts +20 -0
  441. package/dist/commonjs/react-query/apiKeysPatchKeysHash.d.ts.map +1 -0
  442. package/dist/commonjs/react-query/apiKeysPatchKeysHash.js +44 -0
  443. package/dist/commonjs/react-query/apiKeysPatchKeysHash.js.map +1 -0
  444. package/dist/commonjs/react-query/apiKeysPostKeys.d.ts +20 -0
  445. package/dist/commonjs/react-query/apiKeysPostKeys.d.ts.map +1 -0
  446. package/dist/commonjs/react-query/apiKeysPostKeys.js +44 -0
  447. package/dist/commonjs/react-query/apiKeysPostKeys.js.map +1 -0
  448. package/dist/commonjs/react-query/chatSend.d.ts +28 -0
  449. package/dist/commonjs/react-query/chatSend.d.ts.map +1 -0
  450. package/dist/commonjs/react-query/chatSend.js +50 -0
  451. package/dist/commonjs/react-query/chatSend.js.map +1 -0
  452. package/dist/commonjs/react-query/embeddingsPostEmbeddings.d.ts +23 -0
  453. package/dist/commonjs/react-query/embeddingsPostEmbeddings.d.ts.map +1 -0
  454. package/dist/commonjs/react-query/embeddingsPostEmbeddings.js +47 -0
  455. package/dist/commonjs/react-query/embeddingsPostEmbeddings.js.map +1 -0
  456. package/dist/commonjs/react-query/endpointsGetEndpointsZdr.d.ts +23 -0
  457. package/dist/commonjs/react-query/endpointsGetEndpointsZdr.d.ts.map +1 -0
  458. package/dist/commonjs/react-query/endpointsGetEndpointsZdr.js +69 -0
  459. package/dist/commonjs/react-query/endpointsGetEndpointsZdr.js.map +1 -0
  460. package/dist/commonjs/react-query/endpointsGetModelsAuthorSlugEndpoints.d.ts +24 -0
  461. package/dist/commonjs/react-query/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -0
  462. package/dist/commonjs/react-query/endpointsGetModelsAuthorSlugEndpoints.js +87 -0
  463. package/dist/commonjs/react-query/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -0
  464. package/dist/commonjs/react-query/generationsGetGeneration.d.ts +30 -0
  465. package/dist/commonjs/react-query/generationsGetGeneration.d.ts.map +1 -0
  466. package/dist/commonjs/react-query/generationsGetGeneration.js +81 -0
  467. package/dist/commonjs/react-query/generationsGetGeneration.js.map +1 -0
  468. package/dist/commonjs/react-query/getCredits.d.ts +23 -0
  469. package/dist/commonjs/react-query/getCredits.d.ts.map +1 -0
  470. package/dist/commonjs/react-query/getCredits.js +69 -0
  471. package/dist/commonjs/react-query/getCredits.js.map +1 -0
  472. package/dist/commonjs/react-query/getProviders.d.ts +17 -0
  473. package/dist/commonjs/react-query/getProviders.d.ts.map +1 -0
  474. package/dist/commonjs/react-query/getProviders.js +63 -0
  475. package/dist/commonjs/react-query/getProviders.js.map +1 -0
  476. package/dist/commonjs/react-query/index.d.ts +23 -0
  477. package/dist/commonjs/react-query/index.d.ts.map +1 -0
  478. package/dist/commonjs/react-query/index.js +45 -0
  479. package/dist/commonjs/react-query/index.js.map +1 -0
  480. package/dist/commonjs/react-query/modelsGetModels.d.ts +47 -0
  481. package/dist/commonjs/react-query/modelsGetModels.d.ts.map +1 -0
  482. package/dist/commonjs/react-query/modelsGetModels.js +84 -0
  483. package/dist/commonjs/react-query/modelsGetModels.js.map +1 -0
  484. package/dist/commonjs/react-query/modelsGetModelsCount.d.ts +23 -0
  485. package/dist/commonjs/react-query/modelsGetModelsCount.d.ts.map +1 -0
  486. package/dist/commonjs/react-query/modelsGetModelsCount.js +69 -0
  487. package/dist/commonjs/react-query/modelsGetModelsCount.js.map +1 -0
  488. package/dist/commonjs/react-query/modelsGetModelsUser.d.ts +23 -0
  489. package/dist/commonjs/react-query/modelsGetModelsUser.d.ts.map +1 -0
  490. package/dist/commonjs/react-query/modelsGetModelsUser.js +69 -0
  491. package/dist/commonjs/react-query/modelsGetModelsUser.js.map +1 -0
  492. package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.d.ts +38 -0
  493. package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.d.ts.map +1 -0
  494. package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.js +88 -0
  495. package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.js.map +1 -0
  496. package/dist/commonjs/react-query/postCreditsCoinbase.d.ts +20 -0
  497. package/dist/commonjs/react-query/postCreditsCoinbase.d.ts.map +1 -0
  498. package/dist/commonjs/react-query/postCreditsCoinbase.js +44 -0
  499. package/dist/commonjs/react-query/postCreditsCoinbase.js.map +1 -0
  500. package/dist/commonjs/sdk/analytics.d.ts +12 -0
  501. package/dist/commonjs/sdk/analytics.d.ts.map +1 -0
  502. package/dist/commonjs/sdk/analytics.js +22 -0
  503. package/dist/commonjs/sdk/analytics.js.map +1 -0
  504. package/dist/commonjs/sdk/apikeys.d.ts +39 -0
  505. package/dist/commonjs/sdk/apikeys.d.ts.map +1 -0
  506. package/dist/commonjs/sdk/apikeys.js +67 -0
  507. package/dist/commonjs/sdk/apikeys.js.map +1 -0
  508. package/dist/commonjs/sdk/chat.d.ts +17 -0
  509. package/dist/commonjs/sdk/chat.d.ts.map +1 -0
  510. package/dist/commonjs/sdk/chat.js +24 -0
  511. package/dist/commonjs/sdk/chat.js.map +1 -0
  512. package/dist/commonjs/sdk/embeddings.d.ts +12 -0
  513. package/dist/commonjs/sdk/embeddings.d.ts.map +1 -0
  514. package/dist/commonjs/sdk/embeddings.js +22 -0
  515. package/dist/commonjs/sdk/embeddings.js.map +1 -0
  516. package/dist/commonjs/sdk/endpoints.d.ts +13 -0
  517. package/dist/commonjs/sdk/endpoints.d.ts.map +1 -0
  518. package/dist/commonjs/sdk/endpoints.js +26 -0
  519. package/dist/commonjs/sdk/endpoints.js.map +1 -0
  520. package/dist/commonjs/sdk/generations.d.ts +9 -0
  521. package/dist/commonjs/sdk/generations.d.ts.map +1 -0
  522. package/dist/commonjs/sdk/generations.js +19 -0
  523. package/dist/commonjs/sdk/generations.js.map +1 -0
  524. package/dist/commonjs/sdk/index.d.ts +2 -0
  525. package/dist/commonjs/sdk/index.d.ts.map +1 -0
  526. package/dist/commonjs/sdk/index.js +21 -0
  527. package/dist/commonjs/sdk/index.js.map +1 -0
  528. package/dist/commonjs/sdk/models.d.ts +21 -0
  529. package/dist/commonjs/sdk/models.d.ts.map +1 -0
  530. package/dist/commonjs/sdk/models.js +35 -0
  531. package/dist/commonjs/sdk/models.js.map +1 -0
  532. package/dist/commonjs/sdk/parameters.d.ts +9 -0
  533. package/dist/commonjs/sdk/parameters.d.ts.map +1 -0
  534. package/dist/commonjs/sdk/parameters.js +19 -0
  535. package/dist/commonjs/sdk/parameters.js.map +1 -0
  536. package/dist/commonjs/sdk/sdk.d.ts +38 -0
  537. package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
  538. package/dist/commonjs/sdk/sdk.js +62 -0
  539. package/dist/commonjs/sdk/sdk.js.map +1 -0
  540. package/dist/commonjs/types/async.d.ts +23 -0
  541. package/dist/commonjs/types/async.d.ts.map +1 -0
  542. package/dist/commonjs/types/async.js +44 -0
  543. package/dist/commonjs/types/async.js.map +1 -0
  544. package/dist/commonjs/types/blobs.d.ts +4 -0
  545. package/dist/commonjs/types/blobs.d.ts.map +1 -0
  546. package/dist/commonjs/types/blobs.js +62 -0
  547. package/dist/commonjs/types/blobs.js.map +1 -0
  548. package/dist/commonjs/types/constdatetime.d.ts +3 -0
  549. package/dist/commonjs/types/constdatetime.d.ts.map +1 -0
  550. package/dist/commonjs/types/constdatetime.js +46 -0
  551. package/dist/commonjs/types/constdatetime.js.map +1 -0
  552. package/dist/commonjs/types/enums.d.ts +12 -0
  553. package/dist/commonjs/types/enums.d.ts.map +1 -0
  554. package/dist/commonjs/types/enums.js +10 -0
  555. package/dist/commonjs/types/enums.js.map +1 -0
  556. package/dist/commonjs/types/fp.d.ts +31 -0
  557. package/dist/commonjs/types/fp.d.ts.map +1 -0
  558. package/dist/commonjs/types/fp.js +37 -0
  559. package/dist/commonjs/types/fp.js.map +1 -0
  560. package/dist/commonjs/types/index.d.ts +8 -0
  561. package/dist/commonjs/types/index.d.ts.map +1 -0
  562. package/dist/commonjs/types/index.js +16 -0
  563. package/dist/commonjs/types/index.js.map +1 -0
  564. package/dist/commonjs/types/operations.d.ts +27 -0
  565. package/dist/commonjs/types/operations.d.ts.map +1 -0
  566. package/dist/commonjs/types/operations.js +83 -0
  567. package/dist/commonjs/types/operations.js.map +1 -0
  568. package/dist/commonjs/types/rfcdate.d.ts +21 -0
  569. package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
  570. package/dist/commonjs/types/rfcdate.js +46 -0
  571. package/dist/commonjs/types/rfcdate.js.map +1 -0
  572. package/dist/commonjs/types/streams.d.ts +2 -0
  573. package/dist/commonjs/types/streams.d.ts.map +1 -0
  574. package/dist/commonjs/types/streams.js +18 -0
  575. package/dist/commonjs/types/streams.js.map +1 -0
  576. package/dist/esm/core.d.ts +10 -0
  577. package/dist/esm/core.d.ts.map +1 -0
  578. package/dist/esm/core.js +13 -0
  579. package/dist/esm/core.js.map +1 -0
  580. package/dist/esm/funcs/analyticsGetActivity.d.ts +17 -0
  581. package/dist/esm/funcs/analyticsGetActivity.d.ts.map +1 -0
  582. package/dist/esm/funcs/analyticsGetActivity.js +80 -0
  583. package/dist/esm/funcs/analyticsGetActivity.js.map +1 -0
  584. package/dist/esm/funcs/apiKeysDeleteKeysHash.d.ts +14 -0
  585. package/dist/esm/funcs/apiKeysDeleteKeysHash.d.ts.map +1 -0
  586. package/dist/esm/funcs/apiKeysDeleteKeysHash.js +79 -0
  587. package/dist/esm/funcs/apiKeysDeleteKeysHash.js.map +1 -0
  588. package/dist/esm/funcs/apiKeysGetAuthKey.d.ts +17 -0
  589. package/dist/esm/funcs/apiKeysGetAuthKey.d.ts.map +1 -0
  590. package/dist/esm/funcs/apiKeysGetAuthKey.js +67 -0
  591. package/dist/esm/funcs/apiKeysGetAuthKey.js.map +1 -0
  592. package/dist/esm/funcs/apiKeysGetKey.d.ts +17 -0
  593. package/dist/esm/funcs/apiKeysGetKey.d.ts.map +1 -0
  594. package/dist/esm/funcs/apiKeysGetKey.js +67 -0
  595. package/dist/esm/funcs/apiKeysGetKey.js.map +1 -0
  596. package/dist/esm/funcs/apiKeysGetKeys.d.ts +14 -0
  597. package/dist/esm/funcs/apiKeysGetKeys.d.ts.map +1 -0
  598. package/dist/esm/funcs/apiKeysGetKeys.js +78 -0
  599. package/dist/esm/funcs/apiKeysGetKeys.js.map +1 -0
  600. package/dist/esm/funcs/apiKeysGetKeysHash.d.ts +14 -0
  601. package/dist/esm/funcs/apiKeysGetKeysHash.d.ts.map +1 -0
  602. package/dist/esm/funcs/apiKeysGetKeysHash.js +79 -0
  603. package/dist/esm/funcs/apiKeysGetKeysHash.js.map +1 -0
  604. package/dist/esm/funcs/apiKeysPatchKeysHash.d.ts +14 -0
  605. package/dist/esm/funcs/apiKeysPatchKeysHash.d.ts.map +1 -0
  606. package/dist/esm/funcs/apiKeysPatchKeysHash.js +80 -0
  607. package/dist/esm/funcs/apiKeysPatchKeysHash.js.map +1 -0
  608. package/dist/esm/funcs/apiKeysPostKeys.d.ts +14 -0
  609. package/dist/esm/funcs/apiKeysPostKeys.d.ts.map +1 -0
  610. package/dist/esm/funcs/apiKeysPostKeys.js +76 -0
  611. package/dist/esm/funcs/apiKeysPostKeys.js.map +1 -0
  612. package/dist/esm/funcs/chatSend.d.ts +25 -0
  613. package/dist/esm/funcs/chatSend.d.ts.map +1 -0
  614. package/dist/esm/funcs/chatSend.js +90 -0
  615. package/dist/esm/funcs/chatSend.js.map +1 -0
  616. package/dist/esm/funcs/embeddingsPostEmbeddings.d.ts +17 -0
  617. package/dist/esm/funcs/embeddingsPostEmbeddings.d.ts.map +1 -0
  618. package/dist/esm/funcs/embeddingsPostEmbeddings.js +79 -0
  619. package/dist/esm/funcs/embeddingsPostEmbeddings.js.map +1 -0
  620. package/dist/esm/funcs/endpointsGetEndpointsZdr.d.ts +14 -0
  621. package/dist/esm/funcs/endpointsGetEndpointsZdr.d.ts.map +1 -0
  622. package/dist/esm/funcs/endpointsGetEndpointsZdr.js +64 -0
  623. package/dist/esm/funcs/endpointsGetEndpointsZdr.js.map +1 -0
  624. package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts +14 -0
  625. package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -0
  626. package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.js +84 -0
  627. package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -0
  628. package/dist/esm/funcs/generationsGetGeneration.d.ts +14 -0
  629. package/dist/esm/funcs/generationsGetGeneration.d.ts.map +1 -0
  630. package/dist/esm/funcs/generationsGetGeneration.js +77 -0
  631. package/dist/esm/funcs/generationsGetGeneration.js.map +1 -0
  632. package/dist/esm/funcs/getCredits.d.ts +14 -0
  633. package/dist/esm/funcs/getCredits.d.ts.map +1 -0
  634. package/dist/esm/funcs/getCredits.js +64 -0
  635. package/dist/esm/funcs/getCredits.js.map +1 -0
  636. package/dist/esm/funcs/getProviders.d.ts +12 -0
  637. package/dist/esm/funcs/getProviders.d.ts.map +1 -0
  638. package/dist/esm/funcs/getProviders.js +65 -0
  639. package/dist/esm/funcs/getProviders.js.map +1 -0
  640. package/dist/esm/funcs/modelsGetModels.d.ts +20 -0
  641. package/dist/esm/funcs/modelsGetModels.d.ts.map +1 -0
  642. package/dist/esm/funcs/modelsGetModels.js +88 -0
  643. package/dist/esm/funcs/modelsGetModels.js.map +1 -0
  644. package/dist/esm/funcs/modelsGetModelsCount.d.ts +14 -0
  645. package/dist/esm/funcs/modelsGetModelsCount.d.ts.map +1 -0
  646. package/dist/esm/funcs/modelsGetModelsCount.js +64 -0
  647. package/dist/esm/funcs/modelsGetModelsCount.js.map +1 -0
  648. package/dist/esm/funcs/modelsGetModelsUser.d.ts +14 -0
  649. package/dist/esm/funcs/modelsGetModelsUser.d.ts.map +1 -0
  650. package/dist/esm/funcs/modelsGetModelsUser.js +64 -0
  651. package/dist/esm/funcs/modelsGetModelsUser.js.map +1 -0
  652. package/dist/esm/funcs/parametersGetParametersAuthorSlug.d.ts +14 -0
  653. package/dist/esm/funcs/parametersGetParametersAuthorSlug.d.ts.map +1 -0
  654. package/dist/esm/funcs/parametersGetParametersAuthorSlug.js +87 -0
  655. package/dist/esm/funcs/parametersGetParametersAuthorSlug.js.map +1 -0
  656. package/dist/esm/funcs/postCreditsCoinbase.d.ts +14 -0
  657. package/dist/esm/funcs/postCreditsCoinbase.d.ts.map +1 -0
  658. package/dist/esm/funcs/postCreditsCoinbase.js +76 -0
  659. package/dist/esm/funcs/postCreditsCoinbase.js.map +1 -0
  660. package/dist/esm/hooks/hooks.d.ts +25 -0
  661. package/dist/esm/hooks/hooks.d.ts.map +1 -0
  662. package/dist/esm/hooks/hooks.js +82 -0
  663. package/dist/esm/hooks/hooks.js.map +1 -0
  664. package/dist/esm/hooks/index.d.ts +3 -0
  665. package/dist/esm/hooks/index.d.ts.map +1 -0
  666. package/dist/esm/hooks/index.js +6 -0
  667. package/dist/esm/hooks/index.js.map +1 -0
  668. package/dist/esm/hooks/registration.d.ts +3 -0
  669. package/dist/esm/hooks/registration.d.ts.map +1 -0
  670. package/dist/esm/hooks/registration.js +12 -0
  671. package/dist/esm/hooks/registration.js.map +1 -0
  672. package/dist/esm/hooks/types.d.ts +76 -0
  673. package/dist/esm/hooks/types.d.ts.map +1 -0
  674. package/dist/esm/hooks/types.js +5 -0
  675. package/dist/esm/hooks/types.js.map +1 -0
  676. package/dist/esm/index.d.ts +6 -0
  677. package/dist/esm/index.d.ts.map +1 -0
  678. package/dist/esm/index.js +8 -0
  679. package/dist/esm/index.js.map +1 -0
  680. package/dist/esm/lib/base64.d.ts +10 -0
  681. package/dist/esm/lib/base64.d.ts.map +1 -0
  682. package/dist/esm/lib/base64.js +29 -0
  683. package/dist/esm/lib/base64.js.map +1 -0
  684. package/dist/esm/lib/config.d.ts +48 -0
  685. package/dist/esm/lib/config.d.ts.map +1 -0
  686. package/dist/esm/lib/config.js +32 -0
  687. package/dist/esm/lib/config.js.map +1 -0
  688. package/dist/esm/lib/dlv.d.ts +14 -0
  689. package/dist/esm/lib/dlv.d.ts.map +1 -0
  690. package/dist/esm/lib/dlv.js +46 -0
  691. package/dist/esm/lib/dlv.js.map +1 -0
  692. package/dist/esm/lib/encodings.d.ts +52 -0
  693. package/dist/esm/lib/encodings.d.ts.map +1 -0
  694. package/dist/esm/lib/encodings.js +354 -0
  695. package/dist/esm/lib/encodings.js.map +1 -0
  696. package/dist/esm/lib/env.d.ts +16 -0
  697. package/dist/esm/lib/env.d.ts.map +1 -0
  698. package/dist/esm/lib/env.js +28 -0
  699. package/dist/esm/lib/env.js.map +1 -0
  700. package/dist/esm/lib/event-streams.d.ts +11 -0
  701. package/dist/esm/lib/event-streams.d.ts.map +1 -0
  702. package/dist/esm/lib/event-streams.js +125 -0
  703. package/dist/esm/lib/event-streams.js.map +1 -0
  704. package/dist/esm/lib/files.d.ts +13 -0
  705. package/dist/esm/lib/files.d.ts.map +1 -0
  706. package/dist/esm/lib/files.js +73 -0
  707. package/dist/esm/lib/files.js.map +1 -0
  708. package/dist/esm/lib/http.d.ts +67 -0
  709. package/dist/esm/lib/http.d.ts.map +1 -0
  710. package/dist/esm/lib/http.js +207 -0
  711. package/dist/esm/lib/http.js.map +1 -0
  712. package/dist/esm/lib/is-plain-object.d.ts +2 -0
  713. package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
  714. package/dist/esm/lib/is-plain-object.js +38 -0
  715. package/dist/esm/lib/is-plain-object.js.map +1 -0
  716. package/dist/esm/lib/logger.d.ts +6 -0
  717. package/dist/esm/lib/logger.d.ts.map +1 -0
  718. package/dist/esm/lib/logger.js +5 -0
  719. package/dist/esm/lib/logger.js.map +1 -0
  720. package/dist/esm/lib/matchers.d.ts +59 -0
  721. package/dist/esm/lib/matchers.d.ts.map +1 -0
  722. package/dist/esm/lib/matchers.js +203 -0
  723. package/dist/esm/lib/matchers.js.map +1 -0
  724. package/dist/esm/lib/primitives.d.ts +26 -0
  725. package/dist/esm/lib/primitives.d.ts.map +1 -0
  726. package/dist/esm/lib/primitives.js +103 -0
  727. package/dist/esm/lib/primitives.js.map +1 -0
  728. package/dist/esm/lib/retries.d.ts +38 -0
  729. package/dist/esm/lib/retries.d.ts.map +1 -0
  730. package/dist/esm/lib/retries.js +147 -0
  731. package/dist/esm/lib/retries.js.map +1 -0
  732. package/dist/esm/lib/schemas.d.ts +19 -0
  733. package/dist/esm/lib/schemas.d.ts.map +1 -0
  734. package/dist/esm/lib/schemas.js +57 -0
  735. package/dist/esm/lib/schemas.js.map +1 -0
  736. package/dist/esm/lib/sdks.d.ts +63 -0
  737. package/dist/esm/lib/sdks.d.ts.map +1 -0
  738. package/dist/esm/lib/sdks.js +269 -0
  739. package/dist/esm/lib/sdks.js.map +1 -0
  740. package/dist/esm/lib/security.d.ts +83 -0
  741. package/dist/esm/lib/security.d.ts.map +1 -0
  742. package/dist/esm/lib/security.js +143 -0
  743. package/dist/esm/lib/security.js.map +1 -0
  744. package/dist/esm/lib/url.d.ts +5 -0
  745. package/dist/esm/lib/url.d.ts.map +1 -0
  746. package/dist/esm/lib/url.js +22 -0
  747. package/dist/esm/lib/url.js.map +1 -0
  748. package/dist/esm/models/activityitem.d.ts +82 -0
  749. package/dist/esm/models/activityitem.d.ts.map +1 -0
  750. package/dist/esm/models/activityitem.js +72 -0
  751. package/dist/esm/models/activityitem.js.map +1 -0
  752. package/dist/esm/models/assistantmessage.d.ts +62 -0
  753. package/dist/esm/models/assistantmessage.d.ts.map +1 -0
  754. package/dist/esm/models/assistantmessage.js +73 -0
  755. package/dist/esm/models/assistantmessage.js.map +1 -0
  756. package/dist/esm/models/chaterror.d.ts +35 -0
  757. package/dist/esm/models/chaterror.d.ts.map +1 -0
  758. package/dist/esm/models/chaterror.js +37 -0
  759. package/dist/esm/models/chaterror.js.map +1 -0
  760. package/dist/esm/models/chatgenerationparams.d.ts +403 -0
  761. package/dist/esm/models/chatgenerationparams.d.ts.map +1 -0
  762. package/dist/esm/models/chatgenerationparams.js +436 -0
  763. package/dist/esm/models/chatgenerationparams.js.map +1 -0
  764. package/dist/esm/models/chatgenerationtokenusage.d.ts +95 -0
  765. package/dist/esm/models/chatgenerationtokenusage.d.ts.map +1 -0
  766. package/dist/esm/models/chatgenerationtokenusage.js +142 -0
  767. package/dist/esm/models/chatgenerationtokenusage.js.map +1 -0
  768. package/dist/esm/models/chatmessagecontentitem.d.ts +40 -0
  769. package/dist/esm/models/chatmessagecontentitem.d.ts.map +1 -0
  770. package/dist/esm/models/chatmessagecontentitem.js +46 -0
  771. package/dist/esm/models/chatmessagecontentitem.js.map +1 -0
  772. package/dist/esm/models/chatmessagecontentitemaudio.d.ts +99 -0
  773. package/dist/esm/models/chatmessagecontentitemaudio.d.ts.map +1 -0
  774. package/dist/esm/models/chatmessagecontentitemaudio.js +94 -0
  775. package/dist/esm/models/chatmessagecontentitemaudio.js.map +1 -0
  776. package/dist/esm/models/chatmessagecontentitemimage.d.ts +87 -0
  777. package/dist/esm/models/chatmessagecontentitemimage.d.ts.map +1 -0
  778. package/dist/esm/models/chatmessagecontentitemimage.js +90 -0
  779. package/dist/esm/models/chatmessagecontentitemimage.js.map +1 -0
  780. package/dist/esm/models/chatmessagecontentitemtext.d.ts +31 -0
  781. package/dist/esm/models/chatmessagecontentitemtext.d.ts.map +1 -0
  782. package/dist/esm/models/chatmessagecontentitemtext.js +33 -0
  783. package/dist/esm/models/chatmessagecontentitemtext.js.map +1 -0
  784. package/dist/esm/models/chatmessagetokenlogprob.d.ts +64 -0
  785. package/dist/esm/models/chatmessagetokenlogprob.d.ts.map +1 -0
  786. package/dist/esm/models/chatmessagetokenlogprob.js +75 -0
  787. package/dist/esm/models/chatmessagetokenlogprob.js.map +1 -0
  788. package/dist/esm/models/chatmessagetokenlogprobs.d.ts +32 -0
  789. package/dist/esm/models/chatmessagetokenlogprobs.d.ts.map +1 -0
  790. package/dist/esm/models/chatmessagetokenlogprobs.js +34 -0
  791. package/dist/esm/models/chatmessagetokenlogprobs.js.map +1 -0
  792. package/dist/esm/models/chatmessagetoolcall.d.ts +60 -0
  793. package/dist/esm/models/chatmessagetoolcall.d.ts.map +1 -0
  794. package/dist/esm/models/chatmessagetoolcall.js +62 -0
  795. package/dist/esm/models/chatmessagetoolcall.js.map +1 -0
  796. package/dist/esm/models/chatresponse.d.ts +43 -0
  797. package/dist/esm/models/chatresponse.d.ts.map +1 -0
  798. package/dist/esm/models/chatresponse.js +54 -0
  799. package/dist/esm/models/chatresponse.js.map +1 -0
  800. package/dist/esm/models/chatresponsechoice.d.ts +72 -0
  801. package/dist/esm/models/chatresponsechoice.d.ts.map +1 -0
  802. package/dist/esm/models/chatresponsechoice.js +70 -0
  803. package/dist/esm/models/chatresponsechoice.js.map +1 -0
  804. package/dist/esm/models/chatstreamingchoice.d.ts +72 -0
  805. package/dist/esm/models/chatstreamingchoice.d.ts.map +1 -0
  806. package/dist/esm/models/chatstreamingchoice.js +70 -0
  807. package/dist/esm/models/chatstreamingchoice.js.map +1 -0
  808. package/dist/esm/models/chatstreamingmessagechunk.d.ts +61 -0
  809. package/dist/esm/models/chatstreamingmessagechunk.d.ts.map +1 -0
  810. package/dist/esm/models/chatstreamingmessagechunk.js +67 -0
  811. package/dist/esm/models/chatstreamingmessagechunk.js.map +1 -0
  812. package/dist/esm/models/chatstreamingmessagetoolcall.d.ts +62 -0
  813. package/dist/esm/models/chatstreamingmessagetoolcall.d.ts.map +1 -0
  814. package/dist/esm/models/chatstreamingmessagetoolcall.js +66 -0
  815. package/dist/esm/models/chatstreamingmessagetoolcall.js.map +1 -0
  816. package/dist/esm/models/chatstreamingresponsechunk.d.ts +97 -0
  817. package/dist/esm/models/chatstreamingresponsechunk.d.ts.map +1 -0
  818. package/dist/esm/models/chatstreamingresponsechunk.js +122 -0
  819. package/dist/esm/models/chatstreamingresponsechunk.js.map +1 -0
  820. package/dist/esm/models/chatstreamoptions.d.ts +29 -0
  821. package/dist/esm/models/chatstreamoptions.d.ts.map +1 -0
  822. package/dist/esm/models/chatstreamoptions.js +40 -0
  823. package/dist/esm/models/chatstreamoptions.js.map +1 -0
  824. package/dist/esm/models/errorresponse.d.ts +297 -0
  825. package/dist/esm/models/errorresponse.d.ts.map +1 -0
  826. package/dist/esm/models/errorresponse.js +158 -0
  827. package/dist/esm/models/errorresponse.js.map +1 -0
  828. package/dist/esm/models/errors/chaterror.d.ts +37 -0
  829. package/dist/esm/models/errors/chaterror.d.ts.map +1 -0
  830. package/dist/esm/models/errors/chaterror.js +48 -0
  831. package/dist/esm/models/errors/chaterror.js.map +1 -0
  832. package/dist/esm/models/errors/getproviders.d.ts +49 -0
  833. package/dist/esm/models/errors/getproviders.d.ts.map +1 -0
  834. package/dist/esm/models/errors/getproviders.js +51 -0
  835. package/dist/esm/models/errors/getproviders.js.map +1 -0
  836. package/dist/esm/models/errors/httpclienterrors.d.ts +44 -0
  837. package/dist/esm/models/errors/httpclienterrors.d.ts.map +1 -0
  838. package/dist/esm/models/errors/httpclienterrors.js +69 -0
  839. package/dist/esm/models/errors/httpclienterrors.js.map +1 -0
  840. package/dist/esm/models/errors/index.d.ts +8 -0
  841. package/dist/esm/models/errors/index.d.ts.map +1 -0
  842. package/dist/esm/models/errors/index.js +11 -0
  843. package/dist/esm/models/errors/index.js.map +1 -0
  844. package/dist/esm/models/errors/openrouterdefaulterror.d.ts +10 -0
  845. package/dist/esm/models/errors/openrouterdefaulterror.d.ts.map +1 -0
  846. package/dist/esm/models/errors/openrouterdefaulterror.js +30 -0
  847. package/dist/esm/models/errors/openrouterdefaulterror.js.map +1 -0
  848. package/dist/esm/models/errors/openroutererror.d.ts +19 -0
  849. package/dist/esm/models/errors/openroutererror.d.ts.map +1 -0
  850. package/dist/esm/models/errors/openroutererror.js +16 -0
  851. package/dist/esm/models/errors/openroutererror.js.map +1 -0
  852. package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
  853. package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
  854. package/dist/esm/models/errors/responsevalidationerror.js +29 -0
  855. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
  856. package/dist/esm/models/errors/sdkvalidationerror.d.ts +21 -0
  857. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -0
  858. package/dist/esm/models/errors/sdkvalidationerror.js +91 -0
  859. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -0
  860. package/dist/esm/models/index.d.ts +28 -0
  861. package/dist/esm/models/index.d.ts.map +1 -0
  862. package/dist/esm/models/index.js +31 -0
  863. package/dist/esm/models/index.js.map +1 -0
  864. package/dist/esm/models/message.d.ts +80 -0
  865. package/dist/esm/models/message.d.ts.map +1 -0
  866. package/dist/esm/models/message.js +100 -0
  867. package/dist/esm/models/message.js.map +1 -0
  868. package/dist/esm/models/namedtoolchoice.d.ts +56 -0
  869. package/dist/esm/models/namedtoolchoice.d.ts.map +1 -0
  870. package/dist/esm/models/namedtoolchoice.js +58 -0
  871. package/dist/esm/models/namedtoolchoice.js.map +1 -0
  872. package/dist/esm/models/operations/deletekeyshash.d.ts +82 -0
  873. package/dist/esm/models/operations/deletekeyshash.d.ts.map +1 -0
  874. package/dist/esm/models/operations/deletekeyshash.js +84 -0
  875. package/dist/esm/models/operations/deletekeyshash.js.map +1 -0
  876. package/dist/esm/models/operations/getactivity.d.ts +82 -0
  877. package/dist/esm/models/operations/getactivity.d.ts.map +1 -0
  878. package/dist/esm/models/operations/getactivity.js +84 -0
  879. package/dist/esm/models/operations/getactivity.js.map +1 -0
  880. package/dist/esm/models/operations/getauthkey.d.ts +163 -0
  881. package/dist/esm/models/operations/getauthkey.d.ts.map +1 -0
  882. package/dist/esm/models/operations/getauthkey.js +140 -0
  883. package/dist/esm/models/operations/getauthkey.js.map +1 -0
  884. package/dist/esm/models/operations/getcredits.d.ts +81 -0
  885. package/dist/esm/models/operations/getcredits.d.ts.map +1 -0
  886. package/dist/esm/models/operations/getcredits.js +97 -0
  887. package/dist/esm/models/operations/getcredits.js.map +1 -0
  888. package/dist/esm/models/operations/getendpointszdr.d.ts +815 -0
  889. package/dist/esm/models/operations/getendpointszdr.d.ts.map +1 -0
  890. package/dist/esm/models/operations/getendpointszdr.js +614 -0
  891. package/dist/esm/models/operations/getendpointszdr.js.map +1 -0
  892. package/dist/esm/models/operations/getgeneration.d.ts +295 -0
  893. package/dist/esm/models/operations/getgeneration.d.ts.map +1 -0
  894. package/dist/esm/models/operations/getgeneration.js +247 -0
  895. package/dist/esm/models/operations/getgeneration.js.map +1 -0
  896. package/dist/esm/models/operations/getkey.d.ts +163 -0
  897. package/dist/esm/models/operations/getkey.d.ts.map +1 -0
  898. package/dist/esm/models/operations/getkey.js +140 -0
  899. package/dist/esm/models/operations/getkey.js.map +1 -0
  900. package/dist/esm/models/operations/getkeys.d.ts +147 -0
  901. package/dist/esm/models/operations/getkeys.d.ts.map +1 -0
  902. package/dist/esm/models/operations/getkeys.js +144 -0
  903. package/dist/esm/models/operations/getkeys.js.map +1 -0
  904. package/dist/esm/models/operations/getkeyshash.d.ts +148 -0
  905. package/dist/esm/models/operations/getkeyshash.d.ts.map +1 -0
  906. package/dist/esm/models/operations/getkeyshash.js +134 -0
  907. package/dist/esm/models/operations/getkeyshash.js.map +1 -0
  908. package/dist/esm/models/operations/getmodels.d.ts +901 -0
  909. package/dist/esm/models/operations/getmodels.d.ts.map +1 -0
  910. package/dist/esm/models/operations/getmodels.js +751 -0
  911. package/dist/esm/models/operations/getmodels.js.map +1 -0
  912. package/dist/esm/models/operations/getmodelsauthorslugendpoints.d.ts +1178 -0
  913. package/dist/esm/models/operations/getmodelsauthorslugendpoints.d.ts.map +1 -0
  914. package/dist/esm/models/operations/getmodelsauthorslugendpoints.js +849 -0
  915. package/dist/esm/models/operations/getmodelsauthorslugendpoints.js.map +1 -0
  916. package/dist/esm/models/operations/getmodelscount.d.ts +88 -0
  917. package/dist/esm/models/operations/getmodelscount.d.ts.map +1 -0
  918. package/dist/esm/models/operations/getmodelscount.js +84 -0
  919. package/dist/esm/models/operations/getmodelscount.js.map +1 -0
  920. package/dist/esm/models/operations/getmodelsuser.d.ts +870 -0
  921. package/dist/esm/models/operations/getmodelsuser.d.ts.map +1 -0
  922. package/dist/esm/models/operations/getmodelsuser.js +706 -0
  923. package/dist/esm/models/operations/getmodelsuser.js.map +1 -0
  924. package/dist/esm/models/operations/getparametersauthorslug.d.ts +419 -0
  925. package/dist/esm/models/operations/getparametersauthorslug.d.ts.map +1 -0
  926. package/dist/esm/models/operations/getparametersauthorslug.js +245 -0
  927. package/dist/esm/models/operations/getparametersauthorslug.js.map +1 -0
  928. package/dist/esm/models/operations/getproviders.d.ts +116 -0
  929. package/dist/esm/models/operations/getproviders.d.ts.map +1 -0
  930. package/dist/esm/models/operations/getproviders.js +105 -0
  931. package/dist/esm/models/operations/getproviders.js.map +1 -0
  932. package/dist/esm/models/operations/index.d.ts +21 -0
  933. package/dist/esm/models/operations/index.d.ts.map +1 -0
  934. package/dist/esm/models/operations/index.js +24 -0
  935. package/dist/esm/models/operations/index.js.map +1 -0
  936. package/dist/esm/models/operations/patchkeyshash.d.ts +193 -0
  937. package/dist/esm/models/operations/patchkeyshash.d.ts.map +1 -0
  938. package/dist/esm/models/operations/patchkeyshash.js +183 -0
  939. package/dist/esm/models/operations/patchkeyshash.js.map +1 -0
  940. package/dist/esm/models/operations/postchatcompletions.d.ts +27 -0
  941. package/dist/esm/models/operations/postchatcompletions.d.ts.map +1 -0
  942. package/dist/esm/models/operations/postchatcompletions.js +42 -0
  943. package/dist/esm/models/operations/postchatcompletions.js.map +1 -0
  944. package/dist/esm/models/operations/postcreditscoinbase.d.ts +267 -0
  945. package/dist/esm/models/operations/postcreditscoinbase.d.ts.map +1 -0
  946. package/dist/esm/models/operations/postcreditscoinbase.js +325 -0
  947. package/dist/esm/models/operations/postcreditscoinbase.js.map +1 -0
  948. package/dist/esm/models/operations/postembeddings.d.ts +1497 -0
  949. package/dist/esm/models/operations/postembeddings.d.ts.map +1 -0
  950. package/dist/esm/models/operations/postembeddings.js +991 -0
  951. package/dist/esm/models/operations/postembeddings.js.map +1 -0
  952. package/dist/esm/models/operations/postkeys.d.ts +166 -0
  953. package/dist/esm/models/operations/postkeys.d.ts.map +1 -0
  954. package/dist/esm/models/operations/postkeys.js +148 -0
  955. package/dist/esm/models/operations/postkeys.js.map +1 -0
  956. package/dist/esm/models/security.d.ts +31 -0
  957. package/dist/esm/models/security.d.ts.map +1 -0
  958. package/dist/esm/models/security.js +33 -0
  959. package/dist/esm/models/security.js.map +1 -0
  960. package/dist/esm/models/systemmessage.d.ts +55 -0
  961. package/dist/esm/models/systemmessage.d.ts.map +1 -0
  962. package/dist/esm/models/systemmessage.js +63 -0
  963. package/dist/esm/models/systemmessage.js.map +1 -0
  964. package/dist/esm/models/tool.d.ts +66 -0
  965. package/dist/esm/models/tool.d.ts.map +1 -0
  966. package/dist/esm/models/tool.js +65 -0
  967. package/dist/esm/models/tool.js.map +1 -0
  968. package/dist/esm/models/toolresponsemessage.d.ts +55 -0
  969. package/dist/esm/models/toolresponsemessage.d.ts.map +1 -0
  970. package/dist/esm/models/toolresponsemessage.js +69 -0
  971. package/dist/esm/models/toolresponsemessage.js.map +1 -0
  972. package/dist/esm/models/usermessage.d.ts +55 -0
  973. package/dist/esm/models/usermessage.d.ts.map +1 -0
  974. package/dist/esm/models/usermessage.js +60 -0
  975. package/dist/esm/models/usermessage.js.map +1 -0
  976. package/dist/esm/package.json +3 -0
  977. package/dist/esm/react-query/_context.d.ts +8 -0
  978. package/dist/esm/react-query/_context.d.ts.map +1 -0
  979. package/dist/esm/react-query/_context.js +14 -0
  980. package/dist/esm/react-query/_context.js.map +1 -0
  981. package/dist/esm/react-query/_types.d.ts +27 -0
  982. package/dist/esm/react-query/_types.d.ts.map +1 -0
  983. package/dist/esm/react-query/_types.js +5 -0
  984. package/dist/esm/react-query/_types.js.map +1 -0
  985. package/dist/esm/react-query/analyticsGetActivity.d.ts +36 -0
  986. package/dist/esm/react-query/analyticsGetActivity.d.ts.map +1 -0
  987. package/dist/esm/react-query/analyticsGetActivity.js +72 -0
  988. package/dist/esm/react-query/analyticsGetActivity.js.map +1 -0
  989. package/dist/esm/react-query/apiKeysDeleteKeysHash.d.ts +20 -0
  990. package/dist/esm/react-query/apiKeysDeleteKeysHash.d.ts.map +1 -0
  991. package/dist/esm/react-query/apiKeysDeleteKeysHash.js +39 -0
  992. package/dist/esm/react-query/apiKeysDeleteKeysHash.js.map +1 -0
  993. package/dist/esm/react-query/apiKeysGetAuthKey.d.ts +29 -0
  994. package/dist/esm/react-query/apiKeysGetAuthKey.d.ts.map +1 -0
  995. package/dist/esm/react-query/apiKeysGetAuthKey.js +66 -0
  996. package/dist/esm/react-query/apiKeysGetAuthKey.js.map +1 -0
  997. package/dist/esm/react-query/apiKeysGetKey.d.ts +29 -0
  998. package/dist/esm/react-query/apiKeysGetKey.d.ts.map +1 -0
  999. package/dist/esm/react-query/apiKeysGetKey.js +66 -0
  1000. package/dist/esm/react-query/apiKeysGetKey.js.map +1 -0
  1001. package/dist/esm/react-query/apiKeysGetKeys.d.ts +37 -0
  1002. package/dist/esm/react-query/apiKeysGetKeys.d.ts.map +1 -0
  1003. package/dist/esm/react-query/apiKeysGetKeys.js +69 -0
  1004. package/dist/esm/react-query/apiKeysGetKeys.js.map +1 -0
  1005. package/dist/esm/react-query/apiKeysGetKeysHash.d.ts +24 -0
  1006. package/dist/esm/react-query/apiKeysGetKeysHash.d.ts.map +1 -0
  1007. package/dist/esm/react-query/apiKeysGetKeysHash.js +66 -0
  1008. package/dist/esm/react-query/apiKeysGetKeysHash.js.map +1 -0
  1009. package/dist/esm/react-query/apiKeysPatchKeysHash.d.ts +20 -0
  1010. package/dist/esm/react-query/apiKeysPatchKeysHash.d.ts.map +1 -0
  1011. package/dist/esm/react-query/apiKeysPatchKeysHash.js +39 -0
  1012. package/dist/esm/react-query/apiKeysPatchKeysHash.js.map +1 -0
  1013. package/dist/esm/react-query/apiKeysPostKeys.d.ts +20 -0
  1014. package/dist/esm/react-query/apiKeysPostKeys.d.ts.map +1 -0
  1015. package/dist/esm/react-query/apiKeysPostKeys.js +39 -0
  1016. package/dist/esm/react-query/apiKeysPostKeys.js.map +1 -0
  1017. package/dist/esm/react-query/chatSend.d.ts +28 -0
  1018. package/dist/esm/react-query/chatSend.d.ts.map +1 -0
  1019. package/dist/esm/react-query/chatSend.js +43 -0
  1020. package/dist/esm/react-query/chatSend.js.map +1 -0
  1021. package/dist/esm/react-query/embeddingsPostEmbeddings.d.ts +23 -0
  1022. package/dist/esm/react-query/embeddingsPostEmbeddings.d.ts.map +1 -0
  1023. package/dist/esm/react-query/embeddingsPostEmbeddings.js +42 -0
  1024. package/dist/esm/react-query/embeddingsPostEmbeddings.js.map +1 -0
  1025. package/dist/esm/react-query/endpointsGetEndpointsZdr.d.ts +23 -0
  1026. package/dist/esm/react-query/endpointsGetEndpointsZdr.d.ts.map +1 -0
  1027. package/dist/esm/react-query/endpointsGetEndpointsZdr.js +60 -0
  1028. package/dist/esm/react-query/endpointsGetEndpointsZdr.js.map +1 -0
  1029. package/dist/esm/react-query/endpointsGetModelsAuthorSlugEndpoints.d.ts +24 -0
  1030. package/dist/esm/react-query/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -0
  1031. package/dist/esm/react-query/endpointsGetModelsAuthorSlugEndpoints.js +77 -0
  1032. package/dist/esm/react-query/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -0
  1033. package/dist/esm/react-query/generationsGetGeneration.d.ts +30 -0
  1034. package/dist/esm/react-query/generationsGetGeneration.d.ts.map +1 -0
  1035. package/dist/esm/react-query/generationsGetGeneration.js +71 -0
  1036. package/dist/esm/react-query/generationsGetGeneration.js.map +1 -0
  1037. package/dist/esm/react-query/getCredits.d.ts +23 -0
  1038. package/dist/esm/react-query/getCredits.d.ts.map +1 -0
  1039. package/dist/esm/react-query/getCredits.js +60 -0
  1040. package/dist/esm/react-query/getCredits.js.map +1 -0
  1041. package/dist/esm/react-query/getProviders.d.ts +17 -0
  1042. package/dist/esm/react-query/getProviders.d.ts.map +1 -0
  1043. package/dist/esm/react-query/getProviders.js +54 -0
  1044. package/dist/esm/react-query/getProviders.js.map +1 -0
  1045. package/dist/esm/react-query/index.d.ts +23 -0
  1046. package/dist/esm/react-query/index.d.ts.map +1 -0
  1047. package/dist/esm/react-query/index.js +26 -0
  1048. package/dist/esm/react-query/index.js.map +1 -0
  1049. package/dist/esm/react-query/modelsGetModels.d.ts +47 -0
  1050. package/dist/esm/react-query/modelsGetModels.d.ts.map +1 -0
  1051. package/dist/esm/react-query/modelsGetModels.js +72 -0
  1052. package/dist/esm/react-query/modelsGetModels.js.map +1 -0
  1053. package/dist/esm/react-query/modelsGetModelsCount.d.ts +23 -0
  1054. package/dist/esm/react-query/modelsGetModelsCount.d.ts.map +1 -0
  1055. package/dist/esm/react-query/modelsGetModelsCount.js +60 -0
  1056. package/dist/esm/react-query/modelsGetModelsCount.js.map +1 -0
  1057. package/dist/esm/react-query/modelsGetModelsUser.d.ts +23 -0
  1058. package/dist/esm/react-query/modelsGetModelsUser.d.ts.map +1 -0
  1059. package/dist/esm/react-query/modelsGetModelsUser.js +60 -0
  1060. package/dist/esm/react-query/modelsGetModelsUser.js.map +1 -0
  1061. package/dist/esm/react-query/parametersGetParametersAuthorSlug.d.ts +38 -0
  1062. package/dist/esm/react-query/parametersGetParametersAuthorSlug.d.ts.map +1 -0
  1063. package/dist/esm/react-query/parametersGetParametersAuthorSlug.js +78 -0
  1064. package/dist/esm/react-query/parametersGetParametersAuthorSlug.js.map +1 -0
  1065. package/dist/esm/react-query/postCreditsCoinbase.d.ts +20 -0
  1066. package/dist/esm/react-query/postCreditsCoinbase.d.ts.map +1 -0
  1067. package/dist/esm/react-query/postCreditsCoinbase.js +39 -0
  1068. package/dist/esm/react-query/postCreditsCoinbase.js.map +1 -0
  1069. package/dist/esm/sdk/analytics.d.ts +12 -0
  1070. package/dist/esm/sdk/analytics.d.ts.map +1 -0
  1071. package/dist/esm/sdk/analytics.js +18 -0
  1072. package/dist/esm/sdk/analytics.js.map +1 -0
  1073. package/dist/esm/sdk/apikeys.d.ts +39 -0
  1074. package/dist/esm/sdk/apikeys.d.ts.map +1 -0
  1075. package/dist/esm/sdk/apikeys.js +63 -0
  1076. package/dist/esm/sdk/apikeys.js.map +1 -0
  1077. package/dist/esm/sdk/chat.d.ts +17 -0
  1078. package/dist/esm/sdk/chat.d.ts.map +1 -0
  1079. package/dist/esm/sdk/chat.js +19 -0
  1080. package/dist/esm/sdk/chat.js.map +1 -0
  1081. package/dist/esm/sdk/embeddings.d.ts +12 -0
  1082. package/dist/esm/sdk/embeddings.d.ts.map +1 -0
  1083. package/dist/esm/sdk/embeddings.js +18 -0
  1084. package/dist/esm/sdk/embeddings.js.map +1 -0
  1085. package/dist/esm/sdk/endpoints.d.ts +13 -0
  1086. package/dist/esm/sdk/endpoints.d.ts.map +1 -0
  1087. package/dist/esm/sdk/endpoints.js +22 -0
  1088. package/dist/esm/sdk/endpoints.js.map +1 -0
  1089. package/dist/esm/sdk/generations.d.ts +9 -0
  1090. package/dist/esm/sdk/generations.d.ts.map +1 -0
  1091. package/dist/esm/sdk/generations.js +15 -0
  1092. package/dist/esm/sdk/generations.js.map +1 -0
  1093. package/dist/esm/sdk/index.d.ts +2 -0
  1094. package/dist/esm/sdk/index.d.ts.map +1 -0
  1095. package/dist/esm/sdk/index.js +5 -0
  1096. package/dist/esm/sdk/index.js.map +1 -0
  1097. package/dist/esm/sdk/models.d.ts +21 -0
  1098. package/dist/esm/sdk/models.d.ts.map +1 -0
  1099. package/dist/esm/sdk/models.js +30 -0
  1100. package/dist/esm/sdk/models.js.map +1 -0
  1101. package/dist/esm/sdk/parameters.d.ts +9 -0
  1102. package/dist/esm/sdk/parameters.d.ts.map +1 -0
  1103. package/dist/esm/sdk/parameters.js +15 -0
  1104. package/dist/esm/sdk/parameters.js.map +1 -0
  1105. package/dist/esm/sdk/sdk.d.ts +38 -0
  1106. package/dist/esm/sdk/sdk.d.ts.map +1 -0
  1107. package/dist/esm/sdk/sdk.js +58 -0
  1108. package/dist/esm/sdk/sdk.js.map +1 -0
  1109. package/dist/esm/types/async.d.ts +23 -0
  1110. package/dist/esm/types/async.d.ts.map +1 -0
  1111. package/dist/esm/types/async.js +40 -0
  1112. package/dist/esm/types/async.js.map +1 -0
  1113. package/dist/esm/types/blobs.d.ts +4 -0
  1114. package/dist/esm/types/blobs.d.ts.map +1 -0
  1115. package/dist/esm/types/blobs.js +25 -0
  1116. package/dist/esm/types/blobs.js.map +1 -0
  1117. package/dist/esm/types/constdatetime.d.ts +3 -0
  1118. package/dist/esm/types/constdatetime.d.ts.map +1 -0
  1119. package/dist/esm/types/constdatetime.js +10 -0
  1120. package/dist/esm/types/constdatetime.js.map +1 -0
  1121. package/dist/esm/types/enums.d.ts +12 -0
  1122. package/dist/esm/types/enums.d.ts.map +1 -0
  1123. package/dist/esm/types/enums.js +7 -0
  1124. package/dist/esm/types/enums.js.map +1 -0
  1125. package/dist/esm/types/fp.d.ts +31 -0
  1126. package/dist/esm/types/fp.d.ts.map +1 -0
  1127. package/dist/esm/types/fp.js +31 -0
  1128. package/dist/esm/types/fp.js.map +1 -0
  1129. package/dist/esm/types/index.d.ts +8 -0
  1130. package/dist/esm/types/index.d.ts.map +1 -0
  1131. package/dist/esm/types/index.js +8 -0
  1132. package/dist/esm/types/index.js.map +1 -0
  1133. package/dist/esm/types/operations.d.ts +27 -0
  1134. package/dist/esm/types/operations.d.ts.map +1 -0
  1135. package/dist/esm/types/operations.js +77 -0
  1136. package/dist/esm/types/operations.js.map +1 -0
  1137. package/dist/esm/types/rfcdate.d.ts +21 -0
  1138. package/dist/esm/types/rfcdate.d.ts.map +1 -0
  1139. package/dist/esm/types/rfcdate.js +42 -0
  1140. package/dist/esm/types/rfcdate.js.map +1 -0
  1141. package/dist/esm/types/streams.d.ts +2 -0
  1142. package/dist/esm/types/streams.d.ts.map +1 -0
  1143. package/dist/esm/types/streams.js +15 -0
  1144. package/dist/esm/types/streams.js.map +1 -0
  1145. package/docs/sdks/analytics/README.md +113 -0
  1146. package/docs/sdks/apikeys/README.md +716 -0
  1147. package/docs/sdks/chat/README.md +100 -0
  1148. package/docs/sdks/embeddings/README.md +108 -0
  1149. package/docs/sdks/endpoints/README.md +215 -0
  1150. package/docs/sdks/generations/README.md +113 -0
  1151. package/docs/sdks/models/README.md +309 -0
  1152. package/docs/sdks/openrouter/README.md +301 -0
  1153. package/docs/sdks/parameters/README.md +115 -0
  1154. package/examples/README.md +31 -0
  1155. package/examples/chatCompletion.example.ts +19 -0
  1156. package/examples/chatCompletionStream.example.ts +30 -0
  1157. package/examples/getCredits.example.ts +28 -0
  1158. package/examples/package.json +18 -0
  1159. package/examples/unauthorized.example.ts +19 -0
  1160. package/jsr.json +28 -0
  1161. package/package.json +151 -0
  1162. package/src/core.ts +13 -0
  1163. package/src/funcs/analyticsGetActivity.ts +165 -0
  1164. package/src/funcs/apiKeysDeleteKeysHash.ts +163 -0
  1165. package/src/funcs/apiKeysGetAuthKey.ts +142 -0
  1166. package/src/funcs/apiKeysGetKey.ts +142 -0
  1167. package/src/funcs/apiKeysGetKeys.ts +162 -0
  1168. package/src/funcs/apiKeysGetKeysHash.ts +163 -0
  1169. package/src/funcs/apiKeysPatchKeysHash.ts +164 -0
  1170. package/src/funcs/apiKeysPostKeys.ts +160 -0
  1171. package/src/funcs/chatSend.ts +180 -0
  1172. package/src/funcs/embeddingsPostEmbeddings.ts +163 -0
  1173. package/src/funcs/endpointsGetEndpointsZdr.ts +139 -0
  1174. package/src/funcs/endpointsGetModelsAuthorSlugEndpoints.ts +172 -0
  1175. package/src/funcs/generationsGetGeneration.ts +161 -0
  1176. package/src/funcs/getCredits.ts +139 -0
  1177. package/src/funcs/getProviders.ts +144 -0
  1178. package/src/funcs/modelsGetModels.ts +174 -0
  1179. package/src/funcs/modelsGetModelsCount.ts +139 -0
  1180. package/src/funcs/modelsGetModelsUser.ts +139 -0
  1181. package/src/funcs/parametersGetParametersAuthorSlug.ts +173 -0
  1182. package/src/funcs/postCreditsCoinbase.ts +162 -0
  1183. package/src/hooks/hooks.ts +132 -0
  1184. package/src/hooks/index.ts +6 -0
  1185. package/src/hooks/registration.ts +14 -0
  1186. package/src/hooks/types.ts +107 -0
  1187. package/src/index.ts +9 -0
  1188. package/src/lib/base64.ts +37 -0
  1189. package/src/lib/config.ts +70 -0
  1190. package/src/lib/dlv.ts +53 -0
  1191. package/src/lib/encodings.ts +483 -0
  1192. package/src/lib/env.ts +43 -0
  1193. package/src/lib/event-streams.ts +135 -0
  1194. package/src/lib/files.ts +82 -0
  1195. package/src/lib/http.ts +323 -0
  1196. package/src/lib/is-plain-object.ts +43 -0
  1197. package/src/lib/logger.ts +9 -0
  1198. package/src/lib/matchers.ts +352 -0
  1199. package/src/lib/primitives.ts +150 -0
  1200. package/src/lib/retries.ts +218 -0
  1201. package/src/lib/schemas.ts +91 -0
  1202. package/src/lib/sdks.ts +406 -0
  1203. package/src/lib/security.ts +271 -0
  1204. package/src/lib/url.ts +33 -0
  1205. package/src/models/activityitem.ts +156 -0
  1206. package/src/models/assistantmessage.ts +163 -0
  1207. package/src/models/chaterror.ts +74 -0
  1208. package/src/models/chatgenerationparams.ts +847 -0
  1209. package/src/models/chatgenerationtokenusage.ts +259 -0
  1210. package/src/models/chatmessagecontentitem.ts +110 -0
  1211. package/src/models/chatmessagecontentitemaudio.ts +170 -0
  1212. package/src/models/chatmessagecontentitemimage.ts +166 -0
  1213. package/src/models/chatmessagecontentitemtext.ts +70 -0
  1214. package/src/models/chatmessagetokenlogprob.ts +149 -0
  1215. package/src/models/chatmessagetokenlogprobs.ts +76 -0
  1216. package/src/models/chatmessagetoolcall.ts +138 -0
  1217. package/src/models/chatresponse.ts +107 -0
  1218. package/src/models/chatresponsechoice.ts +132 -0
  1219. package/src/models/chatstreamingchoice.ts +132 -0
  1220. package/src/models/chatstreamingmessagechunk.ts +123 -0
  1221. package/src/models/chatstreamingmessagetoolcall.ts +149 -0
  1222. package/src/models/chatstreamingresponsechunk.ts +239 -0
  1223. package/src/models/chatstreamoptions.ts +75 -0
  1224. package/src/models/errorresponse.ts +239 -0
  1225. package/src/models/errors/chaterror.ts +79 -0
  1226. package/src/models/errors/getproviders.ts +91 -0
  1227. package/src/models/errors/httpclienterrors.ts +62 -0
  1228. package/src/models/errors/index.ts +11 -0
  1229. package/src/models/errors/openrouterdefaulterror.ts +40 -0
  1230. package/src/models/errors/openroutererror.ts +35 -0
  1231. package/src/models/errors/responsevalidationerror.ts +50 -0
  1232. package/src/models/errors/sdkvalidationerror.ts +109 -0
  1233. package/src/models/index.ts +31 -0
  1234. package/src/models/message.ts +223 -0
  1235. package/src/models/namedtoolchoice.ts +126 -0
  1236. package/src/models/operations/deletekeyshash.ts +191 -0
  1237. package/src/models/operations/getactivity.ts +191 -0
  1238. package/src/models/operations/getauthkey.ts +330 -0
  1239. package/src/models/operations/getcredits.ts +197 -0
  1240. package/src/models/operations/getendpointszdr.ts +1172 -0
  1241. package/src/models/operations/getgeneration.ts +552 -0
  1242. package/src/models/operations/getkey.ts +324 -0
  1243. package/src/models/operations/getkeys.ts +312 -0
  1244. package/src/models/operations/getkeyshash.ts +313 -0
  1245. package/src/models/operations/getmodels.ts +1527 -0
  1246. package/src/models/operations/getmodelsauthorslugendpoints.ts +1791 -0
  1247. package/src/models/operations/getmodelscount.ts +197 -0
  1248. package/src/models/operations/getmodelsuser.ts +1469 -0
  1249. package/src/models/operations/getparametersauthorslug.ts +437 -0
  1250. package/src/models/operations/getproviders.ts +235 -0
  1251. package/src/models/operations/index.ts +24 -0
  1252. package/src/models/operations/patchkeyshash.ts +417 -0
  1253. package/src/models/operations/postchatcompletions.ts +80 -0
  1254. package/src/models/operations/postcreditscoinbase.ts +622 -0
  1255. package/src/models/operations/postembeddings.ts +1672 -0
  1256. package/src/models/operations/postkeys.ts +339 -0
  1257. package/src/models/security.ts +66 -0
  1258. package/src/models/systemmessage.ts +134 -0
  1259. package/src/models/tool.ts +126 -0
  1260. package/src/models/toolresponsemessage.ts +144 -0
  1261. package/src/models/usermessage.ts +131 -0
  1262. package/src/react-query/_types.ts +162 -0
  1263. package/src/react-query/analyticsGetActivity.ts +150 -0
  1264. package/src/react-query/apiKeysDeleteKeysHash.ts +86 -0
  1265. package/src/react-query/apiKeysGetAuthKey.ts +124 -0
  1266. package/src/react-query/apiKeysGetKey.ts +122 -0
  1267. package/src/react-query/apiKeysGetKeys.ts +158 -0
  1268. package/src/react-query/apiKeysGetKeysHash.ts +142 -0
  1269. package/src/react-query/apiKeysPatchKeysHash.ts +85 -0
  1270. package/src/react-query/apiKeysPostKeys.ts +85 -0
  1271. package/src/react-query/chatSend.ts +87 -0
  1272. package/src/react-query/embeddingsPostEmbeddings.ts +89 -0
  1273. package/src/react-query/endpointsGetEndpointsZdr.ts +119 -0
  1274. package/src/react-query/endpointsGetModelsAuthorSlugEndpoints.ts +168 -0
  1275. package/src/react-query/generationsGetGeneration.ts +150 -0
  1276. package/src/react-query/getCredits.ts +116 -0
  1277. package/src/react-query/getProviders.ts +110 -0
  1278. package/src/react-query/index.ts +27 -0
  1279. package/src/react-query/modelsGetModels.ts +171 -0
  1280. package/src/react-query/modelsGetModelsCount.ts +118 -0
  1281. package/src/react-query/modelsGetModelsUser.ts +118 -0
  1282. package/src/react-query/parametersGetParametersAuthorSlug.ts +184 -0
  1283. package/src/react-query/postCreditsCoinbase.ts +86 -0
  1284. package/src/sdk/analytics.ts +27 -0
  1285. package/src/sdk/apikeys.ts +116 -0
  1286. package/src/sdk/chat.ts +30 -0
  1287. package/src/sdk/embeddings.ts +27 -0
  1288. package/src/sdk/endpoints.ts +37 -0
  1289. package/src/sdk/generations.ts +24 -0
  1290. package/src/sdk/index.ts +5 -0
  1291. package/src/sdk/models.ts +55 -0
  1292. package/src/sdk/parameters.ts +24 -0
  1293. package/src/sdk/sdk.ts +95 -0
  1294. package/src/types/async.ts +68 -0
  1295. package/src/types/blobs.ts +31 -0
  1296. package/src/types/constdatetime.ts +15 -0
  1297. package/src/types/enums.ts +16 -0
  1298. package/src/types/fp.ts +50 -0
  1299. package/src/types/index.ts +11 -0
  1300. package/src/types/operations.ts +105 -0
  1301. package/src/types/rfcdate.ts +54 -0
  1302. package/src/types/streams.ts +21 -0
  1303. package/tsconfig.json +41 -0
@@ -0,0 +1,716 @@
1
+ # APIKeys
2
+ (*apiKeys*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [getKeys](#getkeys) - List API keys
9
+ * [postKeys](#postkeys) - Create a new API key
10
+ * [patchKeysHash](#patchkeyshash) - Update an API key
11
+ * [deleteKeysHash](#deletekeyshash) - Delete an API key
12
+ * [getKeysHash](#getkeyshash) - Get a single API key
13
+ * [getKey](#getkey) - Get current API key
14
+ * [getAuthKey](#getauthkey) - Get current API key
15
+
16
+ ## getKeys
17
+
18
+ List API keys
19
+
20
+ ### Example Usage
21
+
22
+ <!-- UsageSnippet language="typescript" operationID="get_/keys" method="get" path="/keys" -->
23
+ ```typescript
24
+ import { OpenRouter } from "@openrouter/sdk";
25
+
26
+ const openRouter = new OpenRouter({
27
+ security: {
28
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
29
+ },
30
+ });
31
+
32
+ async function run() {
33
+ const result = await openRouter.apiKeys.getKeys();
34
+
35
+ console.log(result);
36
+ }
37
+
38
+ run();
39
+ ```
40
+
41
+ ### Standalone function
42
+
43
+ The standalone function version of this method:
44
+
45
+ ```typescript
46
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
47
+ import { apiKeysGetKeys } from "@openrouter/sdk/funcs/apiKeysGetKeys.js";
48
+
49
+ // Use `OpenRouterCore` for best tree-shaking performance.
50
+ // You can create one instance of it to use across an application.
51
+ const openRouter = new OpenRouterCore({
52
+ security: {
53
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
54
+ },
55
+ });
56
+
57
+ async function run() {
58
+ const res = await apiKeysGetKeys(openRouter);
59
+ if (res.ok) {
60
+ const { value: result } = res;
61
+ console.log(result);
62
+ } else {
63
+ console.log("apiKeysGetKeys failed:", res.error);
64
+ }
65
+ }
66
+
67
+ run();
68
+ ```
69
+
70
+ ### React hooks and utilities
71
+
72
+ This method can be used in React components through the following hooks and
73
+ associated utilities.
74
+
75
+ > Check out [this guide][hook-guide] for information about each of the utilities
76
+ > below and how to get started using React hooks.
77
+
78
+ [hook-guide]: ../../../REACT_QUERY.md
79
+
80
+ ```tsx
81
+ import {
82
+ // Query hooks for fetching data.
83
+ useApiKeysGetKeys,
84
+ useApiKeysGetKeysSuspense,
85
+
86
+ // Utility for prefetching data during server-side rendering and in React
87
+ // Server Components that will be immediately available to client components
88
+ // using the hooks.
89
+ prefetchApiKeysGetKeys,
90
+
91
+ // Utilities to invalidate the query cache for this query in response to
92
+ // mutations and other user actions.
93
+ invalidateApiKeysGetKeys,
94
+ invalidateAllApiKeysGetKeys,
95
+ } from "@openrouter/sdk/react-query/apiKeysGetKeys.js";
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ | Parameter | Type | Required | Description |
101
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
102
+ | `request` | [operations.GetKeysRequest](../../models/operations/getkeysrequest.md) | :heavy_check_mark: | The request object to use for the request. |
103
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
104
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
105
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
106
+
107
+ ### Response
108
+
109
+ **Promise\<[operations.GetKeysResponse](../../models/operations/getkeysresponse.md)\>**
110
+
111
+ ### Errors
112
+
113
+ | Error Type | Status Code | Content Type |
114
+ | ----------------------------- | ----------------------------- | ----------------------------- |
115
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
116
+
117
+ ## postKeys
118
+
119
+ Create a new API key
120
+
121
+ ### Example Usage
122
+
123
+ <!-- UsageSnippet language="typescript" operationID="post_/keys" method="post" path="/keys" -->
124
+ ```typescript
125
+ import { OpenRouter } from "@openrouter/sdk";
126
+
127
+ const openRouter = new OpenRouter({
128
+ security: {
129
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
130
+ },
131
+ });
132
+
133
+ async function run() {
134
+ const result = await openRouter.apiKeys.postKeys({
135
+ name: "My New API Key",
136
+ limit: 50,
137
+ includeByokInLimit: true,
138
+ });
139
+
140
+ console.log(result);
141
+ }
142
+
143
+ run();
144
+ ```
145
+
146
+ ### Standalone function
147
+
148
+ The standalone function version of this method:
149
+
150
+ ```typescript
151
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
152
+ import { apiKeysPostKeys } from "@openrouter/sdk/funcs/apiKeysPostKeys.js";
153
+
154
+ // Use `OpenRouterCore` for best tree-shaking performance.
155
+ // You can create one instance of it to use across an application.
156
+ const openRouter = new OpenRouterCore({
157
+ security: {
158
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
159
+ },
160
+ });
161
+
162
+ async function run() {
163
+ const res = await apiKeysPostKeys(openRouter, {
164
+ name: "My New API Key",
165
+ limit: 50,
166
+ includeByokInLimit: true,
167
+ });
168
+ if (res.ok) {
169
+ const { value: result } = res;
170
+ console.log(result);
171
+ } else {
172
+ console.log("apiKeysPostKeys failed:", res.error);
173
+ }
174
+ }
175
+
176
+ run();
177
+ ```
178
+
179
+ ### React hooks and utilities
180
+
181
+ This method can be used in React components through the following hooks and
182
+ associated utilities.
183
+
184
+ > Check out [this guide][hook-guide] for information about each of the utilities
185
+ > below and how to get started using React hooks.
186
+
187
+ [hook-guide]: ../../../REACT_QUERY.md
188
+
189
+ ```tsx
190
+ import {
191
+ // Mutation hook for triggering the API call.
192
+ useApiKeysPostKeysMutation
193
+ } from "@openrouter/sdk/react-query/apiKeysPostKeys.js";
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ | Parameter | Type | Required | Description |
199
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
200
+ | `request` | [operations.PostKeysRequest](../../models/operations/postkeysrequest.md) | :heavy_check_mark: | The request object to use for the request. |
201
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
202
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
203
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
204
+
205
+ ### Response
206
+
207
+ **Promise\<[operations.PostKeysResponse](../../models/operations/postkeysresponse.md)\>**
208
+
209
+ ### Errors
210
+
211
+ | Error Type | Status Code | Content Type |
212
+ | ----------------------------- | ----------------------------- | ----------------------------- |
213
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
214
+
215
+ ## patchKeysHash
216
+
217
+ Update an API key
218
+
219
+ ### Example Usage
220
+
221
+ <!-- UsageSnippet language="typescript" operationID="patch_/keys/{hash}" method="patch" path="/keys/{hash}" -->
222
+ ```typescript
223
+ import { OpenRouter } from "@openrouter/sdk";
224
+
225
+ const openRouter = new OpenRouter({
226
+ security: {
227
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
228
+ },
229
+ });
230
+
231
+ async function run() {
232
+ const result = await openRouter.apiKeys.patchKeysHash({
233
+ hash: "sk-or-v1-abc123def456",
234
+ requestBody: {
235
+ name: "Updated API Key Name",
236
+ disabled: false,
237
+ limit: 75,
238
+ includeByokInLimit: true,
239
+ },
240
+ });
241
+
242
+ console.log(result);
243
+ }
244
+
245
+ run();
246
+ ```
247
+
248
+ ### Standalone function
249
+
250
+ The standalone function version of this method:
251
+
252
+ ```typescript
253
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
254
+ import { apiKeysPatchKeysHash } from "@openrouter/sdk/funcs/apiKeysPatchKeysHash.js";
255
+
256
+ // Use `OpenRouterCore` for best tree-shaking performance.
257
+ // You can create one instance of it to use across an application.
258
+ const openRouter = new OpenRouterCore({
259
+ security: {
260
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
261
+ },
262
+ });
263
+
264
+ async function run() {
265
+ const res = await apiKeysPatchKeysHash(openRouter, {
266
+ hash: "sk-or-v1-abc123def456",
267
+ requestBody: {
268
+ name: "Updated API Key Name",
269
+ disabled: false,
270
+ limit: 75,
271
+ includeByokInLimit: true,
272
+ },
273
+ });
274
+ if (res.ok) {
275
+ const { value: result } = res;
276
+ console.log(result);
277
+ } else {
278
+ console.log("apiKeysPatchKeysHash failed:", res.error);
279
+ }
280
+ }
281
+
282
+ run();
283
+ ```
284
+
285
+ ### React hooks and utilities
286
+
287
+ This method can be used in React components through the following hooks and
288
+ associated utilities.
289
+
290
+ > Check out [this guide][hook-guide] for information about each of the utilities
291
+ > below and how to get started using React hooks.
292
+
293
+ [hook-guide]: ../../../REACT_QUERY.md
294
+
295
+ ```tsx
296
+ import {
297
+ // Mutation hook for triggering the API call.
298
+ useApiKeysPatchKeysHashMutation
299
+ } from "@openrouter/sdk/react-query/apiKeysPatchKeysHash.js";
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ | Parameter | Type | Required | Description |
305
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
306
+ | `request` | [operations.PatchKeysHashRequest](../../models/operations/patchkeyshashrequest.md) | :heavy_check_mark: | The request object to use for the request. |
307
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
308
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
309
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
310
+
311
+ ### Response
312
+
313
+ **Promise\<[operations.PatchKeysHashResponse](../../models/operations/patchkeyshashresponse.md)\>**
314
+
315
+ ### Errors
316
+
317
+ | Error Type | Status Code | Content Type |
318
+ | ----------------------------- | ----------------------------- | ----------------------------- |
319
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
320
+
321
+ ## deleteKeysHash
322
+
323
+ Delete an API key
324
+
325
+ ### Example Usage
326
+
327
+ <!-- UsageSnippet language="typescript" operationID="delete_/keys/{hash}" method="delete" path="/keys/{hash}" -->
328
+ ```typescript
329
+ import { OpenRouter } from "@openrouter/sdk";
330
+
331
+ const openRouter = new OpenRouter({
332
+ security: {
333
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
334
+ },
335
+ });
336
+
337
+ async function run() {
338
+ const result = await openRouter.apiKeys.deleteKeysHash({
339
+ hash: "sk-or-v1-abc123def456",
340
+ });
341
+
342
+ console.log(result);
343
+ }
344
+
345
+ run();
346
+ ```
347
+
348
+ ### Standalone function
349
+
350
+ The standalone function version of this method:
351
+
352
+ ```typescript
353
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
354
+ import { apiKeysDeleteKeysHash } from "@openrouter/sdk/funcs/apiKeysDeleteKeysHash.js";
355
+
356
+ // Use `OpenRouterCore` for best tree-shaking performance.
357
+ // You can create one instance of it to use across an application.
358
+ const openRouter = new OpenRouterCore({
359
+ security: {
360
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
361
+ },
362
+ });
363
+
364
+ async function run() {
365
+ const res = await apiKeysDeleteKeysHash(openRouter, {
366
+ hash: "sk-or-v1-abc123def456",
367
+ });
368
+ if (res.ok) {
369
+ const { value: result } = res;
370
+ console.log(result);
371
+ } else {
372
+ console.log("apiKeysDeleteKeysHash failed:", res.error);
373
+ }
374
+ }
375
+
376
+ run();
377
+ ```
378
+
379
+ ### React hooks and utilities
380
+
381
+ This method can be used in React components through the following hooks and
382
+ associated utilities.
383
+
384
+ > Check out [this guide][hook-guide] for information about each of the utilities
385
+ > below and how to get started using React hooks.
386
+
387
+ [hook-guide]: ../../../REACT_QUERY.md
388
+
389
+ ```tsx
390
+ import {
391
+ // Mutation hook for triggering the API call.
392
+ useApiKeysDeleteKeysHashMutation
393
+ } from "@openrouter/sdk/react-query/apiKeysDeleteKeysHash.js";
394
+ ```
395
+
396
+ ### Parameters
397
+
398
+ | Parameter | Type | Required | Description |
399
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
400
+ | `request` | [operations.DeleteKeysHashRequest](../../models/operations/deletekeyshashrequest.md) | :heavy_check_mark: | The request object to use for the request. |
401
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
402
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
403
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
404
+
405
+ ### Response
406
+
407
+ **Promise\<[operations.DeleteKeysHashResponse](../../models/operations/deletekeyshashresponse.md)\>**
408
+
409
+ ### Errors
410
+
411
+ | Error Type | Status Code | Content Type |
412
+ | ----------------------------- | ----------------------------- | ----------------------------- |
413
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
414
+
415
+ ## getKeysHash
416
+
417
+ Get a single API key
418
+
419
+ ### Example Usage
420
+
421
+ <!-- UsageSnippet language="typescript" operationID="get_/keys/{hash}" method="get" path="/keys/{hash}" -->
422
+ ```typescript
423
+ import { OpenRouter } from "@openrouter/sdk";
424
+
425
+ const openRouter = new OpenRouter({
426
+ security: {
427
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
428
+ },
429
+ });
430
+
431
+ async function run() {
432
+ const result = await openRouter.apiKeys.getKeysHash({
433
+ hash: "sk-or-v1-abc123def456",
434
+ });
435
+
436
+ console.log(result);
437
+ }
438
+
439
+ run();
440
+ ```
441
+
442
+ ### Standalone function
443
+
444
+ The standalone function version of this method:
445
+
446
+ ```typescript
447
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
448
+ import { apiKeysGetKeysHash } from "@openrouter/sdk/funcs/apiKeysGetKeysHash.js";
449
+
450
+ // Use `OpenRouterCore` for best tree-shaking performance.
451
+ // You can create one instance of it to use across an application.
452
+ const openRouter = new OpenRouterCore({
453
+ security: {
454
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
455
+ },
456
+ });
457
+
458
+ async function run() {
459
+ const res = await apiKeysGetKeysHash(openRouter, {
460
+ hash: "sk-or-v1-abc123def456",
461
+ });
462
+ if (res.ok) {
463
+ const { value: result } = res;
464
+ console.log(result);
465
+ } else {
466
+ console.log("apiKeysGetKeysHash failed:", res.error);
467
+ }
468
+ }
469
+
470
+ run();
471
+ ```
472
+
473
+ ### React hooks and utilities
474
+
475
+ This method can be used in React components through the following hooks and
476
+ associated utilities.
477
+
478
+ > Check out [this guide][hook-guide] for information about each of the utilities
479
+ > below and how to get started using React hooks.
480
+
481
+ [hook-guide]: ../../../REACT_QUERY.md
482
+
483
+ ```tsx
484
+ import {
485
+ // Query hooks for fetching data.
486
+ useApiKeysGetKeysHash,
487
+ useApiKeysGetKeysHashSuspense,
488
+
489
+ // Utility for prefetching data during server-side rendering and in React
490
+ // Server Components that will be immediately available to client components
491
+ // using the hooks.
492
+ prefetchApiKeysGetKeysHash,
493
+
494
+ // Utilities to invalidate the query cache for this query in response to
495
+ // mutations and other user actions.
496
+ invalidateApiKeysGetKeysHash,
497
+ invalidateAllApiKeysGetKeysHash,
498
+ } from "@openrouter/sdk/react-query/apiKeysGetKeysHash.js";
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ | Parameter | Type | Required | Description |
504
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
505
+ | `request` | [operations.GetKeysHashRequest](../../models/operations/getkeyshashrequest.md) | :heavy_check_mark: | The request object to use for the request. |
506
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
507
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
508
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
509
+
510
+ ### Response
511
+
512
+ **Promise\<[operations.GetKeysHashResponse](../../models/operations/getkeyshashresponse.md)\>**
513
+
514
+ ### Errors
515
+
516
+ | Error Type | Status Code | Content Type |
517
+ | ----------------------------- | ----------------------------- | ----------------------------- |
518
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
519
+
520
+ ## getKey
521
+
522
+ Get information on the API key associated with the current authentication session
523
+
524
+ ### Example Usage
525
+
526
+ <!-- UsageSnippet language="typescript" operationID="get_/key" method="get" path="/key" -->
527
+ ```typescript
528
+ import { OpenRouter } from "@openrouter/sdk";
529
+
530
+ const openRouter = new OpenRouter({
531
+ security: {
532
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
533
+ },
534
+ });
535
+
536
+ async function run() {
537
+ const result = await openRouter.apiKeys.getKey();
538
+
539
+ console.log(result);
540
+ }
541
+
542
+ run();
543
+ ```
544
+
545
+ ### Standalone function
546
+
547
+ The standalone function version of this method:
548
+
549
+ ```typescript
550
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
551
+ import { apiKeysGetKey } from "@openrouter/sdk/funcs/apiKeysGetKey.js";
552
+
553
+ // Use `OpenRouterCore` for best tree-shaking performance.
554
+ // You can create one instance of it to use across an application.
555
+ const openRouter = new OpenRouterCore({
556
+ security: {
557
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
558
+ },
559
+ });
560
+
561
+ async function run() {
562
+ const res = await apiKeysGetKey(openRouter);
563
+ if (res.ok) {
564
+ const { value: result } = res;
565
+ console.log(result);
566
+ } else {
567
+ console.log("apiKeysGetKey failed:", res.error);
568
+ }
569
+ }
570
+
571
+ run();
572
+ ```
573
+
574
+ ### React hooks and utilities
575
+
576
+ This method can be used in React components through the following hooks and
577
+ associated utilities.
578
+
579
+ > Check out [this guide][hook-guide] for information about each of the utilities
580
+ > below and how to get started using React hooks.
581
+
582
+ [hook-guide]: ../../../REACT_QUERY.md
583
+
584
+ ```tsx
585
+ import {
586
+ // Query hooks for fetching data.
587
+ useApiKeysGetKey,
588
+ useApiKeysGetKeySuspense,
589
+
590
+ // Utility for prefetching data during server-side rendering and in React
591
+ // Server Components that will be immediately available to client components
592
+ // using the hooks.
593
+ prefetchApiKeysGetKey,
594
+
595
+ // Utility to invalidate the query cache for this query in response to
596
+ // mutations and other user actions.
597
+ invalidateAllApiKeysGetKey,
598
+ } from "@openrouter/sdk/react-query/apiKeysGetKey.js";
599
+ ```
600
+
601
+ ### Parameters
602
+
603
+ | Parameter | Type | Required | Description |
604
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
605
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
606
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
607
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
608
+
609
+ ### Response
610
+
611
+ **Promise\<[operations.GetKeyResponse](../../models/operations/getkeyresponse.md)\>**
612
+
613
+ ### Errors
614
+
615
+ | Error Type | Status Code | Content Type |
616
+ | ----------------------------- | ----------------------------- | ----------------------------- |
617
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
618
+
619
+ ## getAuthKey
620
+
621
+ Get information on the API key associated with the current authentication session
622
+
623
+ ### Example Usage
624
+
625
+ <!-- UsageSnippet language="typescript" operationID="get_/auth/key" method="get" path="/auth/key" -->
626
+ ```typescript
627
+ import { OpenRouter } from "@openrouter/sdk";
628
+
629
+ const openRouter = new OpenRouter({
630
+ security: {
631
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
632
+ },
633
+ });
634
+
635
+ async function run() {
636
+ const result = await openRouter.apiKeys.getAuthKey();
637
+
638
+ console.log(result);
639
+ }
640
+
641
+ run();
642
+ ```
643
+
644
+ ### Standalone function
645
+
646
+ The standalone function version of this method:
647
+
648
+ ```typescript
649
+ import { OpenRouterCore } from "@openrouter/sdk/core.js";
650
+ import { apiKeysGetAuthKey } from "@openrouter/sdk/funcs/apiKeysGetAuthKey.js";
651
+
652
+ // Use `OpenRouterCore` for best tree-shaking performance.
653
+ // You can create one instance of it to use across an application.
654
+ const openRouter = new OpenRouterCore({
655
+ security: {
656
+ apiKeyAuth: process.env["OPENROUTER_API_KEY_AUTH"] ?? "",
657
+ },
658
+ });
659
+
660
+ async function run() {
661
+ const res = await apiKeysGetAuthKey(openRouter);
662
+ if (res.ok) {
663
+ const { value: result } = res;
664
+ console.log(result);
665
+ } else {
666
+ console.log("apiKeysGetAuthKey failed:", res.error);
667
+ }
668
+ }
669
+
670
+ run();
671
+ ```
672
+
673
+ ### React hooks and utilities
674
+
675
+ This method can be used in React components through the following hooks and
676
+ associated utilities.
677
+
678
+ > Check out [this guide][hook-guide] for information about each of the utilities
679
+ > below and how to get started using React hooks.
680
+
681
+ [hook-guide]: ../../../REACT_QUERY.md
682
+
683
+ ```tsx
684
+ import {
685
+ // Query hooks for fetching data.
686
+ useApiKeysGetAuthKey,
687
+ useApiKeysGetAuthKeySuspense,
688
+
689
+ // Utility for prefetching data during server-side rendering and in React
690
+ // Server Components that will be immediately available to client components
691
+ // using the hooks.
692
+ prefetchApiKeysGetAuthKey,
693
+
694
+ // Utility to invalidate the query cache for this query in response to
695
+ // mutations and other user actions.
696
+ invalidateAllApiKeysGetAuthKey,
697
+ } from "@openrouter/sdk/react-query/apiKeysGetAuthKey.js";
698
+ ```
699
+
700
+ ### Parameters
701
+
702
+ | Parameter | Type | Required | Description |
703
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
704
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
705
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
706
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
707
+
708
+ ### Response
709
+
710
+ **Promise\<[operations.GetAuthKeyResponse](../../models/operations/getauthkeyresponse.md)\>**
711
+
712
+ ### Errors
713
+
714
+ | Error Type | Status Code | Content Type |
715
+ | ----------------------------- | ----------------------------- | ----------------------------- |
716
+ | errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |