@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.37

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 (307) hide show
  1. package/FUNCTIONS.md +5 -3
  2. package/REACT_QUERY.md +6 -4
  3. package/README.md +21 -9
  4. package/dist/commonjs/funcs/betaResponsesSend.d.ts +26 -0
  5. package/dist/commonjs/funcs/betaResponsesSend.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +5 -13
  7. package/dist/commonjs/funcs/betaResponsesSend.js.map +1 -0
  8. package/dist/commonjs/funcs/chatSend.d.ts +3 -13
  9. package/dist/commonjs/funcs/chatSend.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/chatSend.js +1 -8
  11. package/dist/commonjs/funcs/chatSend.js.map +1 -1
  12. package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
  13. package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/endpointsList.js +1 -1
  15. package/dist/commonjs/funcs/endpointsList.js.map +1 -1
  16. package/dist/commonjs/funcs/modelsList.d.ts +1 -7
  17. package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/modelsList.js +2 -9
  19. package/dist/commonjs/funcs/modelsList.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/models/endpointslist.d.ts +768 -0
  23. package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
  24. package/dist/commonjs/models/endpointslist.js +625 -0
  25. package/dist/commonjs/models/endpointslist.js.map +1 -0
  26. package/dist/commonjs/models/index.d.ts +4 -4
  27. package/dist/commonjs/models/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/index.js +4 -4
  29. package/dist/commonjs/models/index.js.map +1 -1
  30. package/dist/commonjs/models/keyinfo.d.ts +155 -0
  31. package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
  32. package/dist/commonjs/models/keyinfo.js +163 -0
  33. package/dist/commonjs/models/keyinfo.js.map +1 -0
  34. package/dist/commonjs/models/modelslist.d.ts +854 -0
  35. package/dist/commonjs/models/modelslist.d.ts.map +1 -0
  36. package/dist/commonjs/models/modelslist.js +768 -0
  37. package/dist/commonjs/models/modelslist.js.map +1 -0
  38. package/dist/commonjs/models/operations/generate.d.ts +103 -103
  39. package/dist/commonjs/models/operations/generate.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/generate.js +142 -153
  41. package/dist/commonjs/models/operations/generate.js.map +1 -1
  42. package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
  43. package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
  45. package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
  46. package/dist/commonjs/models/operations/list.d.ts +63 -825
  47. package/dist/commonjs/models/operations/list.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/list.js +86 -667
  49. package/dist/commonjs/models/operations/list.js.map +1 -1
  50. package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
  51. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/listmodels.js +19 -742
  53. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  54. package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
  55. package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/listusermodels.js +4 -730
  57. package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
  58. package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
  59. package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/previewzdr.js +134 -133
  61. package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
  62. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts +1693 -0
  63. package/dist/commonjs/models/operations/sendresponsesrequest.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/sendresponsesrequest.js +1156 -1
  65. package/dist/commonjs/models/operations/sendresponsesrequest.js.map +1 -1
  66. package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
  67. package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
  68. package/dist/commonjs/models/responsereasoningconfig.js +13 -0
  69. package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
  70. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts +19 -19
  71. package/dist/commonjs/models/responsesnonstreamingresponse.d.ts.map +1 -1
  72. package/dist/commonjs/models/responsesnonstreamingresponse.js +30 -32
  73. package/dist/commonjs/models/responsesnonstreamingresponse.js.map +1 -1
  74. package/dist/commonjs/models/responsesusage.d.ts +41 -0
  75. package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
  76. package/dist/commonjs/models/responsesusage.js +54 -1
  77. package/dist/commonjs/models/responsesusage.js.map +1 -1
  78. package/dist/commonjs/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  79. package/dist/commonjs/models/toolchoiceunion.d.ts.map +1 -0
  80. package/dist/commonjs/models/{toolchoice.js → toolchoiceunion.js} +94 -21
  81. package/dist/commonjs/models/toolchoiceunion.js.map +1 -0
  82. package/dist/commonjs/react-query/betaResponsesSend.d.ts +23 -0
  83. package/dist/commonjs/react-query/betaResponsesSend.d.ts.map +1 -0
  84. package/dist/commonjs/react-query/betaResponsesSend.js +47 -0
  85. package/dist/commonjs/react-query/betaResponsesSend.js.map +1 -0
  86. package/dist/commonjs/react-query/chatSend.d.ts +1 -5
  87. package/dist/commonjs/react-query/chatSend.d.ts.map +1 -1
  88. package/dist/commonjs/react-query/chatSend.js +0 -3
  89. package/dist/commonjs/react-query/chatSend.js.map +1 -1
  90. package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
  91. package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
  92. package/dist/commonjs/react-query/endpointsList.js.map +1 -1
  93. package/dist/commonjs/react-query/index.d.ts +1 -1
  94. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  95. package/dist/commonjs/react-query/index.js +1 -1
  96. package/dist/commonjs/react-query/index.js.map +1 -1
  97. package/dist/commonjs/react-query/modelsList.d.ts +4 -8
  98. package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
  99. package/dist/commonjs/react-query/modelsList.js +0 -3
  100. package/dist/commonjs/react-query/modelsList.js.map +1 -1
  101. package/dist/commonjs/sdk/chat.d.ts +3 -11
  102. package/dist/commonjs/sdk/chat.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/chat.js +1 -3
  104. package/dist/commonjs/sdk/chat.js.map +1 -1
  105. package/dist/commonjs/sdk/endpoints.d.ts +1 -1
  106. package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
  107. package/dist/commonjs/sdk/endpoints.js.map +1 -1
  108. package/dist/commonjs/sdk/models.d.ts +1 -5
  109. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  110. package/dist/commonjs/sdk/models.js +1 -3
  111. package/dist/commonjs/sdk/models.js.map +1 -1
  112. package/dist/commonjs/sdk/responses.d.ts +6 -14
  113. package/dist/commonjs/sdk/responses.d.ts.map +1 -1
  114. package/dist/commonjs/sdk/responses.js +4 -6
  115. package/dist/commonjs/sdk/responses.js.map +1 -1
  116. package/dist/esm/funcs/betaResponsesSend.d.ts +26 -0
  117. package/dist/esm/funcs/betaResponsesSend.d.ts.map +1 -0
  118. package/dist/esm/funcs/{betaResponsesSendRequest.js → betaResponsesSend.js} +4 -11
  119. package/dist/esm/funcs/betaResponsesSend.js.map +1 -0
  120. package/dist/esm/funcs/chatSend.d.ts +3 -13
  121. package/dist/esm/funcs/chatSend.d.ts.map +1 -1
  122. package/dist/esm/funcs/chatSend.js +1 -7
  123. package/dist/esm/funcs/chatSend.js.map +1 -1
  124. package/dist/esm/funcs/endpointsList.d.ts +1 -1
  125. package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
  126. package/dist/esm/funcs/endpointsList.js +1 -1
  127. package/dist/esm/funcs/endpointsList.js.map +1 -1
  128. package/dist/esm/funcs/modelsList.d.ts +1 -7
  129. package/dist/esm/funcs/modelsList.d.ts.map +1 -1
  130. package/dist/esm/funcs/modelsList.js +2 -8
  131. package/dist/esm/funcs/modelsList.js.map +1 -1
  132. package/dist/esm/lib/config.d.ts +2 -2
  133. package/dist/esm/lib/config.js +2 -2
  134. package/dist/esm/models/endpointslist.d.ts +768 -0
  135. package/dist/esm/models/endpointslist.d.ts.map +1 -0
  136. package/dist/esm/models/endpointslist.js +562 -0
  137. package/dist/esm/models/endpointslist.js.map +1 -0
  138. package/dist/esm/models/index.d.ts +4 -4
  139. package/dist/esm/models/index.d.ts.map +1 -1
  140. package/dist/esm/models/index.js +4 -4
  141. package/dist/esm/models/index.js.map +1 -1
  142. package/dist/esm/models/keyinfo.d.ts +155 -0
  143. package/dist/esm/models/keyinfo.d.ts.map +1 -0
  144. package/dist/esm/models/keyinfo.js +123 -0
  145. package/dist/esm/models/keyinfo.js.map +1 -0
  146. package/dist/esm/models/modelslist.d.ts +854 -0
  147. package/dist/esm/models/modelslist.d.ts.map +1 -0
  148. package/dist/esm/models/modelslist.js +697 -0
  149. package/dist/esm/models/modelslist.js.map +1 -0
  150. package/dist/esm/models/operations/generate.d.ts +103 -103
  151. package/dist/esm/models/operations/generate.d.ts.map +1 -1
  152. package/dist/esm/models/operations/generate.js +138 -149
  153. package/dist/esm/models/operations/generate.js.map +1 -1
  154. package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
  155. package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
  156. package/dist/esm/models/operations/getcurrentkey.js +3 -83
  157. package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
  158. package/dist/esm/models/operations/list.d.ts +63 -825
  159. package/dist/esm/models/operations/list.d.ts.map +1 -1
  160. package/dist/esm/models/operations/list.js +81 -635
  161. package/dist/esm/models/operations/list.js.map +1 -1
  162. package/dist/esm/models/operations/listmodels.d.ts +16 -865
  163. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  164. package/dist/esm/models/operations/listmodels.js +16 -704
  165. package/dist/esm/models/operations/listmodels.js.map +1 -1
  166. package/dist/esm/models/operations/listusermodels.d.ts +3 -852
  167. package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
  168. package/dist/esm/models/operations/listusermodels.js +3 -694
  169. package/dist/esm/models/operations/listusermodels.js.map +1 -1
  170. package/dist/esm/models/operations/previewzdr.d.ts +97 -97
  171. package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
  172. package/dist/esm/models/operations/previewzdr.js +118 -117
  173. package/dist/esm/models/operations/previewzdr.js.map +1 -1
  174. package/dist/esm/models/operations/sendresponsesrequest.d.ts +1693 -0
  175. package/dist/esm/models/operations/sendresponsesrequest.d.ts.map +1 -1
  176. package/dist/esm/models/operations/sendresponsesrequest.js +1117 -0
  177. package/dist/esm/models/operations/sendresponsesrequest.js.map +1 -1
  178. package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
  179. package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
  180. package/dist/esm/models/responsereasoningconfig.js +13 -0
  181. package/dist/esm/models/responsereasoningconfig.js.map +1 -1
  182. package/dist/esm/models/responsesnonstreamingresponse.d.ts +19 -19
  183. package/dist/esm/models/responsesnonstreamingresponse.d.ts.map +1 -1
  184. package/dist/esm/models/responsesnonstreamingresponse.js +29 -31
  185. package/dist/esm/models/responsesnonstreamingresponse.js.map +1 -1
  186. package/dist/esm/models/responsesusage.d.ts +41 -0
  187. package/dist/esm/models/responsesusage.d.ts.map +1 -1
  188. package/dist/esm/models/responsesusage.js +51 -0
  189. package/dist/esm/models/responsesusage.js.map +1 -1
  190. package/dist/esm/models/{toolchoice.d.ts → toolchoiceunion.d.ts} +95 -16
  191. package/dist/esm/models/toolchoiceunion.d.ts.map +1 -0
  192. package/dist/esm/models/toolchoiceunion.js +164 -0
  193. package/dist/esm/models/toolchoiceunion.js.map +1 -0
  194. package/dist/esm/react-query/betaResponsesSend.d.ts +23 -0
  195. package/dist/esm/react-query/betaResponsesSend.d.ts.map +1 -0
  196. package/dist/esm/react-query/{betaResponsesSendRequest.js → betaResponsesSend.js} +10 -11
  197. package/dist/esm/react-query/betaResponsesSend.js.map +1 -0
  198. package/dist/esm/react-query/chatSend.d.ts +1 -5
  199. package/dist/esm/react-query/chatSend.d.ts.map +1 -1
  200. package/dist/esm/react-query/chatSend.js +0 -1
  201. package/dist/esm/react-query/chatSend.js.map +1 -1
  202. package/dist/esm/react-query/endpointsList.d.ts +4 -4
  203. package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
  204. package/dist/esm/react-query/endpointsList.js.map +1 -1
  205. package/dist/esm/react-query/index.d.ts +1 -1
  206. package/dist/esm/react-query/index.d.ts.map +1 -1
  207. package/dist/esm/react-query/index.js +1 -1
  208. package/dist/esm/react-query/index.js.map +1 -1
  209. package/dist/esm/react-query/modelsList.d.ts +4 -8
  210. package/dist/esm/react-query/modelsList.d.ts.map +1 -1
  211. package/dist/esm/react-query/modelsList.js +0 -1
  212. package/dist/esm/react-query/modelsList.js.map +1 -1
  213. package/dist/esm/sdk/chat.d.ts +3 -11
  214. package/dist/esm/sdk/chat.d.ts.map +1 -1
  215. package/dist/esm/sdk/chat.js +0 -1
  216. package/dist/esm/sdk/chat.js.map +1 -1
  217. package/dist/esm/sdk/endpoints.d.ts +1 -1
  218. package/dist/esm/sdk/endpoints.d.ts.map +1 -1
  219. package/dist/esm/sdk/endpoints.js.map +1 -1
  220. package/dist/esm/sdk/models.d.ts +1 -5
  221. package/dist/esm/sdk/models.d.ts.map +1 -1
  222. package/dist/esm/sdk/models.js +0 -1
  223. package/dist/esm/sdk/models.js.map +1 -1
  224. package/dist/esm/sdk/responses.d.ts +6 -14
  225. package/dist/esm/sdk/responses.d.ts.map +1 -1
  226. package/dist/esm/sdk/responses.js +3 -4
  227. package/dist/esm/sdk/responses.js.map +1 -1
  228. package/docs/sdks/endpoints/README.md +1 -1
  229. package/docs/sdks/models/README.md +1 -1
  230. package/docs/sdks/responses/README.md +13 -9
  231. package/examples/{betaResponsesSendRequest.example.ts → betaResponsesSend.example.ts} +4 -2
  232. package/jsr.json +1 -1
  233. package/package.json +1 -1
  234. package/src/funcs/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +19 -24
  235. package/src/funcs/chatSend.ts +6 -12
  236. package/src/funcs/endpointsList.ts +3 -3
  237. package/src/funcs/modelsList.ts +6 -14
  238. package/src/lib/config.ts +2 -2
  239. package/src/models/endpointslist.ts +1030 -0
  240. package/src/models/index.ts +4 -4
  241. package/src/models/keyinfo.ts +281 -0
  242. package/src/models/modelslist.ts +1394 -0
  243. package/src/models/operations/generate.ts +232 -188
  244. package/src/models/operations/getcurrentkey.ts +5 -203
  245. package/src/models/operations/list.ts +109 -1106
  246. package/src/models/operations/listmodels.ts +26 -1436
  247. package/src/models/operations/listusermodels.ts +5 -1440
  248. package/src/models/operations/previewzdr.ts +196 -225
  249. package/src/models/operations/sendresponsesrequest.ts +2005 -0
  250. package/src/models/responsereasoningconfig.ts +17 -0
  251. package/src/models/responsesnonstreamingresponse.ts +37 -55
  252. package/src/models/responsesusage.ts +96 -0
  253. package/src/models/{toolchoice.ts → toolchoiceunion.ts} +181 -37
  254. package/src/react-query/{betaResponsesSendRequest.ts → betaResponsesSend.ts} +20 -26
  255. package/src/react-query/chatSend.ts +2 -4
  256. package/src/react-query/endpointsList.ts +4 -4
  257. package/src/react-query/index.ts +1 -1
  258. package/src/react-query/modelsList.ts +6 -8
  259. package/src/sdk/chat.ts +5 -7
  260. package/src/sdk/endpoints.ts +1 -1
  261. package/src/sdk/models.ts +3 -5
  262. package/src/sdk/responses.ts +18 -21
  263. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts +0 -36
  264. package/dist/commonjs/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  265. package/dist/commonjs/funcs/betaResponsesSendRequest.js.map +0 -1
  266. package/dist/commonjs/models/openairesponsesrequest.d.ts +0 -1704
  267. package/dist/commonjs/models/openairesponsesrequest.d.ts.map +0 -1
  268. package/dist/commonjs/models/openairesponsesrequest.js +0 -1212
  269. package/dist/commonjs/models/openairesponsesrequest.js.map +0 -1
  270. package/dist/commonjs/models/toolchoice.d.ts.map +0 -1
  271. package/dist/commonjs/models/toolchoice.js.map +0 -1
  272. package/dist/commonjs/models/toolchoicefunction.d.ts +0 -57
  273. package/dist/commonjs/models/toolchoicefunction.d.ts.map +0 -1
  274. package/dist/commonjs/models/toolchoicefunction.js +0 -89
  275. package/dist/commonjs/models/toolchoicefunction.js.map +0 -1
  276. package/dist/commonjs/models/toolchoicetypes.d.ts +0 -33
  277. package/dist/commonjs/models/toolchoicetypes.d.ts.map +0 -1
  278. package/dist/commonjs/models/toolchoicetypes.js +0 -70
  279. package/dist/commonjs/models/toolchoicetypes.js.map +0 -1
  280. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts +0 -28
  281. package/dist/commonjs/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  282. package/dist/commonjs/react-query/betaResponsesSendRequest.js +0 -50
  283. package/dist/commonjs/react-query/betaResponsesSendRequest.js.map +0 -1
  284. package/dist/esm/funcs/betaResponsesSendRequest.d.ts +0 -36
  285. package/dist/esm/funcs/betaResponsesSendRequest.d.ts.map +0 -1
  286. package/dist/esm/funcs/betaResponsesSendRequest.js.map +0 -1
  287. package/dist/esm/models/openairesponsesrequest.d.ts +0 -1704
  288. package/dist/esm/models/openairesponsesrequest.d.ts.map +0 -1
  289. package/dist/esm/models/openairesponsesrequest.js +0 -1138
  290. package/dist/esm/models/openairesponsesrequest.js.map +0 -1
  291. package/dist/esm/models/toolchoice.d.ts.map +0 -1
  292. package/dist/esm/models/toolchoice.js +0 -95
  293. package/dist/esm/models/toolchoice.js.map +0 -1
  294. package/dist/esm/models/toolchoicefunction.d.ts +0 -57
  295. package/dist/esm/models/toolchoicefunction.d.ts.map +0 -1
  296. package/dist/esm/models/toolchoicefunction.js +0 -51
  297. package/dist/esm/models/toolchoicefunction.js.map +0 -1
  298. package/dist/esm/models/toolchoicetypes.d.ts +0 -33
  299. package/dist/esm/models/toolchoicetypes.d.ts.map +0 -1
  300. package/dist/esm/models/toolchoicetypes.js +0 -32
  301. package/dist/esm/models/toolchoicetypes.js.map +0 -1
  302. package/dist/esm/react-query/betaResponsesSendRequest.d.ts +0 -28
  303. package/dist/esm/react-query/betaResponsesSendRequest.d.ts.map +0 -1
  304. package/dist/esm/react-query/betaResponsesSendRequest.js.map +0 -1
  305. package/src/models/openairesponsesrequest.ts +0 -1935
  306. package/src/models/toolchoicefunction.ts +0 -100
  307. package/src/models/toolchoicetypes.ts +0 -73
@@ -1,253 +1,10 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import * as models from "../index.js";
5
5
  export type ListUserModelsSecurity = {
6
6
  bearer: string;
7
7
  };
8
- export type ListUserModelsPrompt = number | string | any;
9
- export type ListUserModelsCompletion = number | string | any;
10
- export type ModelsListUserModelsRequest = number | string | any;
11
- export type ListUserModelsImage = number | string | any;
12
- export type ListUserModelsImageOutput = number | string | any;
13
- export type ListUserModelsAudio = number | string | any;
14
- export type ListUserModelsInputAudioCache = number | string | any;
15
- export type ListUserModelsWebSearch = number | string | any;
16
- export type ListUserModelsInternalReasoning = number | string | any;
17
- export type ListUserModelsInputCacheRead = number | string | any;
18
- export type ListUserModelsInputCacheWrite = number | string | any;
19
- /**
20
- * Pricing information for the model
21
- */
22
- export type ListUserModelsPricing = {
23
- prompt?: number | string | any | undefined;
24
- completion?: number | string | any | undefined;
25
- request?: number | string | any | undefined;
26
- image?: number | string | any | undefined;
27
- imageOutput?: number | string | any | undefined;
28
- audio?: number | string | any | undefined;
29
- inputAudioCache?: number | string | any | undefined;
30
- webSearch?: number | string | any | undefined;
31
- internalReasoning?: number | string | any | undefined;
32
- inputCacheRead?: number | string | any | undefined;
33
- inputCacheWrite?: number | string | any | undefined;
34
- discount?: number | undefined;
35
- };
36
- /**
37
- * Tokenizer type used by the model
38
- */
39
- export declare const ListUserModelsTokenizer: {
40
- readonly Router: "Router";
41
- readonly Media: "Media";
42
- readonly Other: "Other";
43
- readonly Gpt: "GPT";
44
- readonly Claude: "Claude";
45
- readonly Gemini: "Gemini";
46
- readonly Grok: "Grok";
47
- readonly Cohere: "Cohere";
48
- readonly Nova: "Nova";
49
- readonly Qwen: "Qwen";
50
- readonly Yi: "Yi";
51
- readonly DeepSeek: "DeepSeek";
52
- readonly Mistral: "Mistral";
53
- readonly Llama2: "Llama2";
54
- readonly Llama3: "Llama3";
55
- readonly Llama4: "Llama4";
56
- readonly PaLM: "PaLM";
57
- readonly Rwkv: "RWKV";
58
- readonly Qwen3: "Qwen3";
59
- };
60
- /**
61
- * Tokenizer type used by the model
62
- */
63
- export type ListUserModelsTokenizer = ClosedEnum<typeof ListUserModelsTokenizer>;
64
- /**
65
- * Instruction format type
66
- */
67
- export declare const ListUserModelsInstructType: {
68
- readonly None: "none";
69
- readonly Airoboros: "airoboros";
70
- readonly Alpaca: "alpaca";
71
- readonly AlpacaModif: "alpaca-modif";
72
- readonly Chatml: "chatml";
73
- readonly Claude: "claude";
74
- readonly CodeLlama: "code-llama";
75
- readonly Gemma: "gemma";
76
- readonly Llama2: "llama2";
77
- readonly Llama3: "llama3";
78
- readonly Mistral: "mistral";
79
- readonly Nemotron: "nemotron";
80
- readonly Neural: "neural";
81
- readonly Openchat: "openchat";
82
- readonly Phi3: "phi3";
83
- readonly Rwkv: "rwkv";
84
- readonly Vicuna: "vicuna";
85
- readonly Zephyr: "zephyr";
86
- readonly DeepseekR1: "deepseek-r1";
87
- readonly DeepseekV31: "deepseek-v3.1";
88
- readonly Qwq: "qwq";
89
- readonly Qwen3: "qwen3";
90
- };
91
- /**
92
- * Instruction format type
93
- */
94
- export type ListUserModelsInstructType = ClosedEnum<typeof ListUserModelsInstructType>;
95
- export declare const ListUserModelsInputModality: {
96
- readonly Text: "text";
97
- readonly Image: "image";
98
- readonly File: "file";
99
- readonly Audio: "audio";
100
- };
101
- export type ListUserModelsInputModality = ClosedEnum<typeof ListUserModelsInputModality>;
102
- export declare const ListUserModelsOutputModality: {
103
- readonly Text: "text";
104
- readonly Image: "image";
105
- readonly Embeddings: "embeddings";
106
- };
107
- export type ListUserModelsOutputModality = ClosedEnum<typeof ListUserModelsOutputModality>;
108
- /**
109
- * Model architecture information
110
- */
111
- export type ListUserModelsArchitecture = {
112
- /**
113
- * Tokenizer type used by the model
114
- */
115
- tokenizer?: ListUserModelsTokenizer | undefined;
116
- /**
117
- * Instruction format type
118
- */
119
- instructType?: ListUserModelsInstructType | null | undefined;
120
- /**
121
- * Primary modality of the model
122
- */
123
- modality: string | null;
124
- /**
125
- * Supported input modalities
126
- */
127
- inputModalities: Array<ListUserModelsInputModality>;
128
- /**
129
- * Supported output modalities
130
- */
131
- outputModalities: Array<ListUserModelsOutputModality>;
132
- };
133
- /**
134
- * Information about the top provider for this model
135
- */
136
- export type ListUserModelsTopProvider = {
137
- /**
138
- * Context length from the top provider
139
- */
140
- contextLength?: number | null | undefined;
141
- /**
142
- * Maximum completion tokens from the top provider
143
- */
144
- maxCompletionTokens?: number | null | undefined;
145
- /**
146
- * Whether the top provider moderates content
147
- */
148
- isModerated: boolean;
149
- };
150
- /**
151
- * Per-request token limits
152
- */
153
- export type ListUserModelsPerRequestLimits = {
154
- /**
155
- * Maximum prompt tokens per request
156
- */
157
- promptTokens?: any | undefined;
158
- /**
159
- * Maximum completion tokens per request
160
- */
161
- completionTokens?: any | undefined;
162
- };
163
- export declare const ListUserModelsSupportedParameter: {
164
- readonly Temperature: "temperature";
165
- readonly TopP: "top_p";
166
- readonly TopK: "top_k";
167
- readonly MinP: "min_p";
168
- readonly TopA: "top_a";
169
- readonly FrequencyPenalty: "frequency_penalty";
170
- readonly PresencePenalty: "presence_penalty";
171
- readonly RepetitionPenalty: "repetition_penalty";
172
- readonly MaxTokens: "max_tokens";
173
- readonly LogitBias: "logit_bias";
174
- readonly Logprobs: "logprobs";
175
- readonly TopLogprobs: "top_logprobs";
176
- readonly Seed: "seed";
177
- readonly ResponseFormat: "response_format";
178
- readonly StructuredOutputs: "structured_outputs";
179
- readonly Stop: "stop";
180
- readonly Tools: "tools";
181
- readonly ToolChoice: "tool_choice";
182
- readonly ParallelToolCalls: "parallel_tool_calls";
183
- readonly IncludeReasoning: "include_reasoning";
184
- readonly Reasoning: "reasoning";
185
- readonly WebSearchOptions: "web_search_options";
186
- readonly Verbosity: "verbosity";
187
- };
188
- export type ListUserModelsSupportedParameter = ClosedEnum<typeof ListUserModelsSupportedParameter>;
189
- /**
190
- * Default parameters for this model
191
- */
192
- export type ListUserModelsDefaultParameters = {
193
- temperature?: number | null | undefined;
194
- topP?: number | null | undefined;
195
- frequencyPenalty?: number | null | undefined;
196
- };
197
- export type ListUserModelsData = {
198
- /**
199
- * Unique identifier for the model
200
- */
201
- id: string;
202
- /**
203
- * Canonical slug for the model
204
- */
205
- canonicalSlug: string;
206
- /**
207
- * Hugging Face model identifier, if applicable
208
- */
209
- huggingFaceId?: string | null | undefined;
210
- /**
211
- * Display name of the model
212
- */
213
- name: string;
214
- /**
215
- * Unix timestamp of when the model was created
216
- */
217
- created: number;
218
- /**
219
- * Description of the model
220
- */
221
- description?: string | undefined;
222
- /**
223
- * Pricing information for the model
224
- */
225
- pricing: ListUserModelsPricing;
226
- /**
227
- * Maximum context length in tokens
228
- */
229
- contextLength: number | null;
230
- /**
231
- * Model architecture information
232
- */
233
- architecture: ListUserModelsArchitecture;
234
- /**
235
- * Information about the top provider for this model
236
- */
237
- topProvider: ListUserModelsTopProvider;
238
- /**
239
- * Per-request token limits
240
- */
241
- perRequestLimits: ListUserModelsPerRequestLimits | null;
242
- /**
243
- * List of supported parameters for this model
244
- */
245
- supportedParameters: Array<ListUserModelsSupportedParameter>;
246
- /**
247
- * Default parameters for this model
248
- */
249
- defaultParameters: ListUserModelsDefaultParameters | null;
250
- };
251
8
  /**
252
9
  * Returns a list of models filtered by user provider preferences
253
10
  */
@@ -255,7 +12,7 @@ export type ListUserModelsResponse = {
255
12
  /**
256
13
  * List of available models
257
14
  */
258
- data: Array<ListUserModelsData>;
15
+ data: Array<models.ModelsList>;
259
16
  };
260
17
  /** @internal */
261
18
  export declare const ListUserModelsSecurity$inboundSchema: z.ZodType<ListUserModelsSecurity, z.ZodTypeDef, unknown>;
@@ -280,616 +37,10 @@ export declare namespace ListUserModelsSecurity$ {
280
37
  export declare function listUserModelsSecurityToJSON(listUserModelsSecurity: ListUserModelsSecurity): string;
281
38
  export declare function listUserModelsSecurityFromJSON(jsonString: string): SafeParseResult<ListUserModelsSecurity, SDKValidationError>;
282
39
  /** @internal */
283
- export declare const ListUserModelsPrompt$inboundSchema: z.ZodType<ListUserModelsPrompt, z.ZodTypeDef, unknown>;
284
- /** @internal */
285
- export type ListUserModelsPrompt$Outbound = number | string | any;
286
- /** @internal */
287
- export declare const ListUserModelsPrompt$outboundSchema: z.ZodType<ListUserModelsPrompt$Outbound, z.ZodTypeDef, ListUserModelsPrompt>;
288
- /**
289
- * @internal
290
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
291
- */
292
- export declare namespace ListUserModelsPrompt$ {
293
- /** @deprecated use `ListUserModelsPrompt$inboundSchema` instead. */
294
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
295
- /** @deprecated use `ListUserModelsPrompt$outboundSchema` instead. */
296
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
297
- /** @deprecated use `ListUserModelsPrompt$Outbound` instead. */
298
- type Outbound = ListUserModelsPrompt$Outbound;
299
- }
300
- export declare function listUserModelsPromptToJSON(listUserModelsPrompt: ListUserModelsPrompt): string;
301
- export declare function listUserModelsPromptFromJSON(jsonString: string): SafeParseResult<ListUserModelsPrompt, SDKValidationError>;
302
- /** @internal */
303
- export declare const ListUserModelsCompletion$inboundSchema: z.ZodType<ListUserModelsCompletion, z.ZodTypeDef, unknown>;
304
- /** @internal */
305
- export type ListUserModelsCompletion$Outbound = number | string | any;
306
- /** @internal */
307
- export declare const ListUserModelsCompletion$outboundSchema: z.ZodType<ListUserModelsCompletion$Outbound, z.ZodTypeDef, ListUserModelsCompletion>;
308
- /**
309
- * @internal
310
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
311
- */
312
- export declare namespace ListUserModelsCompletion$ {
313
- /** @deprecated use `ListUserModelsCompletion$inboundSchema` instead. */
314
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
315
- /** @deprecated use `ListUserModelsCompletion$outboundSchema` instead. */
316
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
317
- /** @deprecated use `ListUserModelsCompletion$Outbound` instead. */
318
- type Outbound = ListUserModelsCompletion$Outbound;
319
- }
320
- export declare function listUserModelsCompletionToJSON(listUserModelsCompletion: ListUserModelsCompletion): string;
321
- export declare function listUserModelsCompletionFromJSON(jsonString: string): SafeParseResult<ListUserModelsCompletion, SDKValidationError>;
322
- /** @internal */
323
- export declare const ModelsListUserModelsRequest$inboundSchema: z.ZodType<ModelsListUserModelsRequest, z.ZodTypeDef, unknown>;
324
- /** @internal */
325
- export type ModelsListUserModelsRequest$Outbound = number | string | any;
326
- /** @internal */
327
- export declare const ModelsListUserModelsRequest$outboundSchema: z.ZodType<ModelsListUserModelsRequest$Outbound, z.ZodTypeDef, ModelsListUserModelsRequest>;
328
- /**
329
- * @internal
330
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
331
- */
332
- export declare namespace ModelsListUserModelsRequest$ {
333
- /** @deprecated use `ModelsListUserModelsRequest$inboundSchema` instead. */
334
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
335
- /** @deprecated use `ModelsListUserModelsRequest$outboundSchema` instead. */
336
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
337
- /** @deprecated use `ModelsListUserModelsRequest$Outbound` instead. */
338
- type Outbound = ModelsListUserModelsRequest$Outbound;
339
- }
340
- export declare function modelsListUserModelsRequestToJSON(modelsListUserModelsRequest: ModelsListUserModelsRequest): string;
341
- export declare function modelsListUserModelsRequestFromJSON(jsonString: string): SafeParseResult<ModelsListUserModelsRequest, SDKValidationError>;
342
- /** @internal */
343
- export declare const ListUserModelsImage$inboundSchema: z.ZodType<ListUserModelsImage, z.ZodTypeDef, unknown>;
344
- /** @internal */
345
- export type ListUserModelsImage$Outbound = number | string | any;
346
- /** @internal */
347
- export declare const ListUserModelsImage$outboundSchema: z.ZodType<ListUserModelsImage$Outbound, z.ZodTypeDef, ListUserModelsImage>;
348
- /**
349
- * @internal
350
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
351
- */
352
- export declare namespace ListUserModelsImage$ {
353
- /** @deprecated use `ListUserModelsImage$inboundSchema` instead. */
354
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
355
- /** @deprecated use `ListUserModelsImage$outboundSchema` instead. */
356
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
357
- /** @deprecated use `ListUserModelsImage$Outbound` instead. */
358
- type Outbound = ListUserModelsImage$Outbound;
359
- }
360
- export declare function listUserModelsImageToJSON(listUserModelsImage: ListUserModelsImage): string;
361
- export declare function listUserModelsImageFromJSON(jsonString: string): SafeParseResult<ListUserModelsImage, SDKValidationError>;
362
- /** @internal */
363
- export declare const ListUserModelsImageOutput$inboundSchema: z.ZodType<ListUserModelsImageOutput, z.ZodTypeDef, unknown>;
364
- /** @internal */
365
- export type ListUserModelsImageOutput$Outbound = number | string | any;
366
- /** @internal */
367
- export declare const ListUserModelsImageOutput$outboundSchema: z.ZodType<ListUserModelsImageOutput$Outbound, z.ZodTypeDef, ListUserModelsImageOutput>;
368
- /**
369
- * @internal
370
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
- */
372
- export declare namespace ListUserModelsImageOutput$ {
373
- /** @deprecated use `ListUserModelsImageOutput$inboundSchema` instead. */
374
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
375
- /** @deprecated use `ListUserModelsImageOutput$outboundSchema` instead. */
376
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
377
- /** @deprecated use `ListUserModelsImageOutput$Outbound` instead. */
378
- type Outbound = ListUserModelsImageOutput$Outbound;
379
- }
380
- export declare function listUserModelsImageOutputToJSON(listUserModelsImageOutput: ListUserModelsImageOutput): string;
381
- export declare function listUserModelsImageOutputFromJSON(jsonString: string): SafeParseResult<ListUserModelsImageOutput, SDKValidationError>;
382
- /** @internal */
383
- export declare const ListUserModelsAudio$inboundSchema: z.ZodType<ListUserModelsAudio, z.ZodTypeDef, unknown>;
384
- /** @internal */
385
- export type ListUserModelsAudio$Outbound = number | string | any;
386
- /** @internal */
387
- export declare const ListUserModelsAudio$outboundSchema: z.ZodType<ListUserModelsAudio$Outbound, z.ZodTypeDef, ListUserModelsAudio>;
388
- /**
389
- * @internal
390
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
391
- */
392
- export declare namespace ListUserModelsAudio$ {
393
- /** @deprecated use `ListUserModelsAudio$inboundSchema` instead. */
394
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
395
- /** @deprecated use `ListUserModelsAudio$outboundSchema` instead. */
396
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
397
- /** @deprecated use `ListUserModelsAudio$Outbound` instead. */
398
- type Outbound = ListUserModelsAudio$Outbound;
399
- }
400
- export declare function listUserModelsAudioToJSON(listUserModelsAudio: ListUserModelsAudio): string;
401
- export declare function listUserModelsAudioFromJSON(jsonString: string): SafeParseResult<ListUserModelsAudio, SDKValidationError>;
402
- /** @internal */
403
- export declare const ListUserModelsInputAudioCache$inboundSchema: z.ZodType<ListUserModelsInputAudioCache, z.ZodTypeDef, unknown>;
404
- /** @internal */
405
- export type ListUserModelsInputAudioCache$Outbound = number | string | any;
406
- /** @internal */
407
- export declare const ListUserModelsInputAudioCache$outboundSchema: z.ZodType<ListUserModelsInputAudioCache$Outbound, z.ZodTypeDef, ListUserModelsInputAudioCache>;
408
- /**
409
- * @internal
410
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
411
- */
412
- export declare namespace ListUserModelsInputAudioCache$ {
413
- /** @deprecated use `ListUserModelsInputAudioCache$inboundSchema` instead. */
414
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
415
- /** @deprecated use `ListUserModelsInputAudioCache$outboundSchema` instead. */
416
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
417
- /** @deprecated use `ListUserModelsInputAudioCache$Outbound` instead. */
418
- type Outbound = ListUserModelsInputAudioCache$Outbound;
419
- }
420
- export declare function listUserModelsInputAudioCacheToJSON(listUserModelsInputAudioCache: ListUserModelsInputAudioCache): string;
421
- export declare function listUserModelsInputAudioCacheFromJSON(jsonString: string): SafeParseResult<ListUserModelsInputAudioCache, SDKValidationError>;
422
- /** @internal */
423
- export declare const ListUserModelsWebSearch$inboundSchema: z.ZodType<ListUserModelsWebSearch, z.ZodTypeDef, unknown>;
424
- /** @internal */
425
- export type ListUserModelsWebSearch$Outbound = number | string | any;
426
- /** @internal */
427
- export declare const ListUserModelsWebSearch$outboundSchema: z.ZodType<ListUserModelsWebSearch$Outbound, z.ZodTypeDef, ListUserModelsWebSearch>;
428
- /**
429
- * @internal
430
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
431
- */
432
- export declare namespace ListUserModelsWebSearch$ {
433
- /** @deprecated use `ListUserModelsWebSearch$inboundSchema` instead. */
434
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
435
- /** @deprecated use `ListUserModelsWebSearch$outboundSchema` instead. */
436
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
437
- /** @deprecated use `ListUserModelsWebSearch$Outbound` instead. */
438
- type Outbound = ListUserModelsWebSearch$Outbound;
439
- }
440
- export declare function listUserModelsWebSearchToJSON(listUserModelsWebSearch: ListUserModelsWebSearch): string;
441
- export declare function listUserModelsWebSearchFromJSON(jsonString: string): SafeParseResult<ListUserModelsWebSearch, SDKValidationError>;
442
- /** @internal */
443
- export declare const ListUserModelsInternalReasoning$inboundSchema: z.ZodType<ListUserModelsInternalReasoning, z.ZodTypeDef, unknown>;
444
- /** @internal */
445
- export type ListUserModelsInternalReasoning$Outbound = number | string | any;
446
- /** @internal */
447
- export declare const ListUserModelsInternalReasoning$outboundSchema: z.ZodType<ListUserModelsInternalReasoning$Outbound, z.ZodTypeDef, ListUserModelsInternalReasoning>;
448
- /**
449
- * @internal
450
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
451
- */
452
- export declare namespace ListUserModelsInternalReasoning$ {
453
- /** @deprecated use `ListUserModelsInternalReasoning$inboundSchema` instead. */
454
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
455
- /** @deprecated use `ListUserModelsInternalReasoning$outboundSchema` instead. */
456
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
457
- /** @deprecated use `ListUserModelsInternalReasoning$Outbound` instead. */
458
- type Outbound = ListUserModelsInternalReasoning$Outbound;
459
- }
460
- export declare function listUserModelsInternalReasoningToJSON(listUserModelsInternalReasoning: ListUserModelsInternalReasoning): string;
461
- export declare function listUserModelsInternalReasoningFromJSON(jsonString: string): SafeParseResult<ListUserModelsInternalReasoning, SDKValidationError>;
462
- /** @internal */
463
- export declare const ListUserModelsInputCacheRead$inboundSchema: z.ZodType<ListUserModelsInputCacheRead, z.ZodTypeDef, unknown>;
464
- /** @internal */
465
- export type ListUserModelsInputCacheRead$Outbound = number | string | any;
466
- /** @internal */
467
- export declare const ListUserModelsInputCacheRead$outboundSchema: z.ZodType<ListUserModelsInputCacheRead$Outbound, z.ZodTypeDef, ListUserModelsInputCacheRead>;
468
- /**
469
- * @internal
470
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
471
- */
472
- export declare namespace ListUserModelsInputCacheRead$ {
473
- /** @deprecated use `ListUserModelsInputCacheRead$inboundSchema` instead. */
474
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
475
- /** @deprecated use `ListUserModelsInputCacheRead$outboundSchema` instead. */
476
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
477
- /** @deprecated use `ListUserModelsInputCacheRead$Outbound` instead. */
478
- type Outbound = ListUserModelsInputCacheRead$Outbound;
479
- }
480
- export declare function listUserModelsInputCacheReadToJSON(listUserModelsInputCacheRead: ListUserModelsInputCacheRead): string;
481
- export declare function listUserModelsInputCacheReadFromJSON(jsonString: string): SafeParseResult<ListUserModelsInputCacheRead, SDKValidationError>;
482
- /** @internal */
483
- export declare const ListUserModelsInputCacheWrite$inboundSchema: z.ZodType<ListUserModelsInputCacheWrite, z.ZodTypeDef, unknown>;
484
- /** @internal */
485
- export type ListUserModelsInputCacheWrite$Outbound = number | string | any;
486
- /** @internal */
487
- export declare const ListUserModelsInputCacheWrite$outboundSchema: z.ZodType<ListUserModelsInputCacheWrite$Outbound, z.ZodTypeDef, ListUserModelsInputCacheWrite>;
488
- /**
489
- * @internal
490
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
491
- */
492
- export declare namespace ListUserModelsInputCacheWrite$ {
493
- /** @deprecated use `ListUserModelsInputCacheWrite$inboundSchema` instead. */
494
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
495
- /** @deprecated use `ListUserModelsInputCacheWrite$outboundSchema` instead. */
496
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
497
- /** @deprecated use `ListUserModelsInputCacheWrite$Outbound` instead. */
498
- type Outbound = ListUserModelsInputCacheWrite$Outbound;
499
- }
500
- export declare function listUserModelsInputCacheWriteToJSON(listUserModelsInputCacheWrite: ListUserModelsInputCacheWrite): string;
501
- export declare function listUserModelsInputCacheWriteFromJSON(jsonString: string): SafeParseResult<ListUserModelsInputCacheWrite, SDKValidationError>;
502
- /** @internal */
503
- export declare const ListUserModelsPricing$inboundSchema: z.ZodType<ListUserModelsPricing, z.ZodTypeDef, unknown>;
504
- /** @internal */
505
- export type ListUserModelsPricing$Outbound = {
506
- prompt?: number | string | any | undefined;
507
- completion?: number | string | any | undefined;
508
- request?: number | string | any | undefined;
509
- image?: number | string | any | undefined;
510
- image_output?: number | string | any | undefined;
511
- audio?: number | string | any | undefined;
512
- input_audio_cache?: number | string | any | undefined;
513
- web_search?: number | string | any | undefined;
514
- internal_reasoning?: number | string | any | undefined;
515
- input_cache_read?: number | string | any | undefined;
516
- input_cache_write?: number | string | any | undefined;
517
- discount?: number | undefined;
518
- };
519
- /** @internal */
520
- export declare const ListUserModelsPricing$outboundSchema: z.ZodType<ListUserModelsPricing$Outbound, z.ZodTypeDef, ListUserModelsPricing>;
521
- /**
522
- * @internal
523
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
524
- */
525
- export declare namespace ListUserModelsPricing$ {
526
- /** @deprecated use `ListUserModelsPricing$inboundSchema` instead. */
527
- const inboundSchema: z.ZodType<ListUserModelsPricing, z.ZodTypeDef, unknown>;
528
- /** @deprecated use `ListUserModelsPricing$outboundSchema` instead. */
529
- const outboundSchema: z.ZodType<ListUserModelsPricing$Outbound, z.ZodTypeDef, ListUserModelsPricing>;
530
- /** @deprecated use `ListUserModelsPricing$Outbound` instead. */
531
- type Outbound = ListUserModelsPricing$Outbound;
532
- }
533
- export declare function listUserModelsPricingToJSON(listUserModelsPricing: ListUserModelsPricing): string;
534
- export declare function listUserModelsPricingFromJSON(jsonString: string): SafeParseResult<ListUserModelsPricing, SDKValidationError>;
535
- /** @internal */
536
- export declare const ListUserModelsTokenizer$inboundSchema: z.ZodNativeEnum<typeof ListUserModelsTokenizer>;
537
- /** @internal */
538
- export declare const ListUserModelsTokenizer$outboundSchema: z.ZodNativeEnum<typeof ListUserModelsTokenizer>;
539
- /**
540
- * @internal
541
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
542
- */
543
- export declare namespace ListUserModelsTokenizer$ {
544
- /** @deprecated use `ListUserModelsTokenizer$inboundSchema` instead. */
545
- const inboundSchema: z.ZodNativeEnum<{
546
- readonly Router: "Router";
547
- readonly Media: "Media";
548
- readonly Other: "Other";
549
- readonly Gpt: "GPT";
550
- readonly Claude: "Claude";
551
- readonly Gemini: "Gemini";
552
- readonly Grok: "Grok";
553
- readonly Cohere: "Cohere";
554
- readonly Nova: "Nova";
555
- readonly Qwen: "Qwen";
556
- readonly Yi: "Yi";
557
- readonly DeepSeek: "DeepSeek";
558
- readonly Mistral: "Mistral";
559
- readonly Llama2: "Llama2";
560
- readonly Llama3: "Llama3";
561
- readonly Llama4: "Llama4";
562
- readonly PaLM: "PaLM";
563
- readonly Rwkv: "RWKV";
564
- readonly Qwen3: "Qwen3";
565
- }>;
566
- /** @deprecated use `ListUserModelsTokenizer$outboundSchema` instead. */
567
- const outboundSchema: z.ZodNativeEnum<{
568
- readonly Router: "Router";
569
- readonly Media: "Media";
570
- readonly Other: "Other";
571
- readonly Gpt: "GPT";
572
- readonly Claude: "Claude";
573
- readonly Gemini: "Gemini";
574
- readonly Grok: "Grok";
575
- readonly Cohere: "Cohere";
576
- readonly Nova: "Nova";
577
- readonly Qwen: "Qwen";
578
- readonly Yi: "Yi";
579
- readonly DeepSeek: "DeepSeek";
580
- readonly Mistral: "Mistral";
581
- readonly Llama2: "Llama2";
582
- readonly Llama3: "Llama3";
583
- readonly Llama4: "Llama4";
584
- readonly PaLM: "PaLM";
585
- readonly Rwkv: "RWKV";
586
- readonly Qwen3: "Qwen3";
587
- }>;
588
- }
589
- /** @internal */
590
- export declare const ListUserModelsInstructType$inboundSchema: z.ZodNativeEnum<typeof ListUserModelsInstructType>;
591
- /** @internal */
592
- export declare const ListUserModelsInstructType$outboundSchema: z.ZodNativeEnum<typeof ListUserModelsInstructType>;
593
- /**
594
- * @internal
595
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
596
- */
597
- export declare namespace ListUserModelsInstructType$ {
598
- /** @deprecated use `ListUserModelsInstructType$inboundSchema` instead. */
599
- const inboundSchema: z.ZodNativeEnum<{
600
- readonly None: "none";
601
- readonly Airoboros: "airoboros";
602
- readonly Alpaca: "alpaca";
603
- readonly AlpacaModif: "alpaca-modif";
604
- readonly Chatml: "chatml";
605
- readonly Claude: "claude";
606
- readonly CodeLlama: "code-llama";
607
- readonly Gemma: "gemma";
608
- readonly Llama2: "llama2";
609
- readonly Llama3: "llama3";
610
- readonly Mistral: "mistral";
611
- readonly Nemotron: "nemotron";
612
- readonly Neural: "neural";
613
- readonly Openchat: "openchat";
614
- readonly Phi3: "phi3";
615
- readonly Rwkv: "rwkv";
616
- readonly Vicuna: "vicuna";
617
- readonly Zephyr: "zephyr";
618
- readonly DeepseekR1: "deepseek-r1";
619
- readonly DeepseekV31: "deepseek-v3.1";
620
- readonly Qwq: "qwq";
621
- readonly Qwen3: "qwen3";
622
- }>;
623
- /** @deprecated use `ListUserModelsInstructType$outboundSchema` instead. */
624
- const outboundSchema: z.ZodNativeEnum<{
625
- readonly None: "none";
626
- readonly Airoboros: "airoboros";
627
- readonly Alpaca: "alpaca";
628
- readonly AlpacaModif: "alpaca-modif";
629
- readonly Chatml: "chatml";
630
- readonly Claude: "claude";
631
- readonly CodeLlama: "code-llama";
632
- readonly Gemma: "gemma";
633
- readonly Llama2: "llama2";
634
- readonly Llama3: "llama3";
635
- readonly Mistral: "mistral";
636
- readonly Nemotron: "nemotron";
637
- readonly Neural: "neural";
638
- readonly Openchat: "openchat";
639
- readonly Phi3: "phi3";
640
- readonly Rwkv: "rwkv";
641
- readonly Vicuna: "vicuna";
642
- readonly Zephyr: "zephyr";
643
- readonly DeepseekR1: "deepseek-r1";
644
- readonly DeepseekV31: "deepseek-v3.1";
645
- readonly Qwq: "qwq";
646
- readonly Qwen3: "qwen3";
647
- }>;
648
- }
649
- /** @internal */
650
- export declare const ListUserModelsInputModality$inboundSchema: z.ZodNativeEnum<typeof ListUserModelsInputModality>;
651
- /** @internal */
652
- export declare const ListUserModelsInputModality$outboundSchema: z.ZodNativeEnum<typeof ListUserModelsInputModality>;
653
- /**
654
- * @internal
655
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
656
- */
657
- export declare namespace ListUserModelsInputModality$ {
658
- /** @deprecated use `ListUserModelsInputModality$inboundSchema` instead. */
659
- const inboundSchema: z.ZodNativeEnum<{
660
- readonly Text: "text";
661
- readonly Image: "image";
662
- readonly File: "file";
663
- readonly Audio: "audio";
664
- }>;
665
- /** @deprecated use `ListUserModelsInputModality$outboundSchema` instead. */
666
- const outboundSchema: z.ZodNativeEnum<{
667
- readonly Text: "text";
668
- readonly Image: "image";
669
- readonly File: "file";
670
- readonly Audio: "audio";
671
- }>;
672
- }
673
- /** @internal */
674
- export declare const ListUserModelsOutputModality$inboundSchema: z.ZodNativeEnum<typeof ListUserModelsOutputModality>;
675
- /** @internal */
676
- export declare const ListUserModelsOutputModality$outboundSchema: z.ZodNativeEnum<typeof ListUserModelsOutputModality>;
677
- /**
678
- * @internal
679
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
680
- */
681
- export declare namespace ListUserModelsOutputModality$ {
682
- /** @deprecated use `ListUserModelsOutputModality$inboundSchema` instead. */
683
- const inboundSchema: z.ZodNativeEnum<{
684
- readonly Text: "text";
685
- readonly Image: "image";
686
- readonly Embeddings: "embeddings";
687
- }>;
688
- /** @deprecated use `ListUserModelsOutputModality$outboundSchema` instead. */
689
- const outboundSchema: z.ZodNativeEnum<{
690
- readonly Text: "text";
691
- readonly Image: "image";
692
- readonly Embeddings: "embeddings";
693
- }>;
694
- }
695
- /** @internal */
696
- export declare const ListUserModelsArchitecture$inboundSchema: z.ZodType<ListUserModelsArchitecture, z.ZodTypeDef, unknown>;
697
- /** @internal */
698
- export type ListUserModelsArchitecture$Outbound = {
699
- tokenizer?: string | undefined;
700
- instruct_type?: string | null | undefined;
701
- modality: string | null;
702
- input_modalities: Array<string>;
703
- output_modalities: Array<string>;
704
- };
705
- /** @internal */
706
- export declare const ListUserModelsArchitecture$outboundSchema: z.ZodType<ListUserModelsArchitecture$Outbound, z.ZodTypeDef, ListUserModelsArchitecture>;
707
- /**
708
- * @internal
709
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
710
- */
711
- export declare namespace ListUserModelsArchitecture$ {
712
- /** @deprecated use `ListUserModelsArchitecture$inboundSchema` instead. */
713
- const inboundSchema: z.ZodType<ListUserModelsArchitecture, z.ZodTypeDef, unknown>;
714
- /** @deprecated use `ListUserModelsArchitecture$outboundSchema` instead. */
715
- const outboundSchema: z.ZodType<ListUserModelsArchitecture$Outbound, z.ZodTypeDef, ListUserModelsArchitecture>;
716
- /** @deprecated use `ListUserModelsArchitecture$Outbound` instead. */
717
- type Outbound = ListUserModelsArchitecture$Outbound;
718
- }
719
- export declare function listUserModelsArchitectureToJSON(listUserModelsArchitecture: ListUserModelsArchitecture): string;
720
- export declare function listUserModelsArchitectureFromJSON(jsonString: string): SafeParseResult<ListUserModelsArchitecture, SDKValidationError>;
721
- /** @internal */
722
- export declare const ListUserModelsTopProvider$inboundSchema: z.ZodType<ListUserModelsTopProvider, z.ZodTypeDef, unknown>;
723
- /** @internal */
724
- export type ListUserModelsTopProvider$Outbound = {
725
- context_length?: number | null | undefined;
726
- max_completion_tokens?: number | null | undefined;
727
- is_moderated: boolean;
728
- };
729
- /** @internal */
730
- export declare const ListUserModelsTopProvider$outboundSchema: z.ZodType<ListUserModelsTopProvider$Outbound, z.ZodTypeDef, ListUserModelsTopProvider>;
731
- /**
732
- * @internal
733
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
734
- */
735
- export declare namespace ListUserModelsTopProvider$ {
736
- /** @deprecated use `ListUserModelsTopProvider$inboundSchema` instead. */
737
- const inboundSchema: z.ZodType<ListUserModelsTopProvider, z.ZodTypeDef, unknown>;
738
- /** @deprecated use `ListUserModelsTopProvider$outboundSchema` instead. */
739
- const outboundSchema: z.ZodType<ListUserModelsTopProvider$Outbound, z.ZodTypeDef, ListUserModelsTopProvider>;
740
- /** @deprecated use `ListUserModelsTopProvider$Outbound` instead. */
741
- type Outbound = ListUserModelsTopProvider$Outbound;
742
- }
743
- export declare function listUserModelsTopProviderToJSON(listUserModelsTopProvider: ListUserModelsTopProvider): string;
744
- export declare function listUserModelsTopProviderFromJSON(jsonString: string): SafeParseResult<ListUserModelsTopProvider, SDKValidationError>;
745
- /** @internal */
746
- export declare const ListUserModelsPerRequestLimits$inboundSchema: z.ZodType<ListUserModelsPerRequestLimits, z.ZodTypeDef, unknown>;
747
- /** @internal */
748
- export type ListUserModelsPerRequestLimits$Outbound = {
749
- prompt_tokens?: any | undefined;
750
- completion_tokens?: any | undefined;
751
- };
752
- /** @internal */
753
- export declare const ListUserModelsPerRequestLimits$outboundSchema: z.ZodType<ListUserModelsPerRequestLimits$Outbound, z.ZodTypeDef, ListUserModelsPerRequestLimits>;
754
- /**
755
- * @internal
756
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
757
- */
758
- export declare namespace ListUserModelsPerRequestLimits$ {
759
- /** @deprecated use `ListUserModelsPerRequestLimits$inboundSchema` instead. */
760
- const inboundSchema: z.ZodType<ListUserModelsPerRequestLimits, z.ZodTypeDef, unknown>;
761
- /** @deprecated use `ListUserModelsPerRequestLimits$outboundSchema` instead. */
762
- const outboundSchema: z.ZodType<ListUserModelsPerRequestLimits$Outbound, z.ZodTypeDef, ListUserModelsPerRequestLimits>;
763
- /** @deprecated use `ListUserModelsPerRequestLimits$Outbound` instead. */
764
- type Outbound = ListUserModelsPerRequestLimits$Outbound;
765
- }
766
- export declare function listUserModelsPerRequestLimitsToJSON(listUserModelsPerRequestLimits: ListUserModelsPerRequestLimits): string;
767
- export declare function listUserModelsPerRequestLimitsFromJSON(jsonString: string): SafeParseResult<ListUserModelsPerRequestLimits, SDKValidationError>;
768
- /** @internal */
769
- export declare const ListUserModelsSupportedParameter$inboundSchema: z.ZodNativeEnum<typeof ListUserModelsSupportedParameter>;
770
- /** @internal */
771
- export declare const ListUserModelsSupportedParameter$outboundSchema: z.ZodNativeEnum<typeof ListUserModelsSupportedParameter>;
772
- /**
773
- * @internal
774
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
775
- */
776
- export declare namespace ListUserModelsSupportedParameter$ {
777
- /** @deprecated use `ListUserModelsSupportedParameter$inboundSchema` instead. */
778
- const inboundSchema: z.ZodNativeEnum<{
779
- readonly Temperature: "temperature";
780
- readonly TopP: "top_p";
781
- readonly TopK: "top_k";
782
- readonly MinP: "min_p";
783
- readonly TopA: "top_a";
784
- readonly FrequencyPenalty: "frequency_penalty";
785
- readonly PresencePenalty: "presence_penalty";
786
- readonly RepetitionPenalty: "repetition_penalty";
787
- readonly MaxTokens: "max_tokens";
788
- readonly LogitBias: "logit_bias";
789
- readonly Logprobs: "logprobs";
790
- readonly TopLogprobs: "top_logprobs";
791
- readonly Seed: "seed";
792
- readonly ResponseFormat: "response_format";
793
- readonly StructuredOutputs: "structured_outputs";
794
- readonly Stop: "stop";
795
- readonly Tools: "tools";
796
- readonly ToolChoice: "tool_choice";
797
- readonly ParallelToolCalls: "parallel_tool_calls";
798
- readonly IncludeReasoning: "include_reasoning";
799
- readonly Reasoning: "reasoning";
800
- readonly WebSearchOptions: "web_search_options";
801
- readonly Verbosity: "verbosity";
802
- }>;
803
- /** @deprecated use `ListUserModelsSupportedParameter$outboundSchema` instead. */
804
- const outboundSchema: z.ZodNativeEnum<{
805
- readonly Temperature: "temperature";
806
- readonly TopP: "top_p";
807
- readonly TopK: "top_k";
808
- readonly MinP: "min_p";
809
- readonly TopA: "top_a";
810
- readonly FrequencyPenalty: "frequency_penalty";
811
- readonly PresencePenalty: "presence_penalty";
812
- readonly RepetitionPenalty: "repetition_penalty";
813
- readonly MaxTokens: "max_tokens";
814
- readonly LogitBias: "logit_bias";
815
- readonly Logprobs: "logprobs";
816
- readonly TopLogprobs: "top_logprobs";
817
- readonly Seed: "seed";
818
- readonly ResponseFormat: "response_format";
819
- readonly StructuredOutputs: "structured_outputs";
820
- readonly Stop: "stop";
821
- readonly Tools: "tools";
822
- readonly ToolChoice: "tool_choice";
823
- readonly ParallelToolCalls: "parallel_tool_calls";
824
- readonly IncludeReasoning: "include_reasoning";
825
- readonly Reasoning: "reasoning";
826
- readonly WebSearchOptions: "web_search_options";
827
- readonly Verbosity: "verbosity";
828
- }>;
829
- }
830
- /** @internal */
831
- export declare const ListUserModelsDefaultParameters$inboundSchema: z.ZodType<ListUserModelsDefaultParameters, z.ZodTypeDef, unknown>;
832
- /** @internal */
833
- export type ListUserModelsDefaultParameters$Outbound = {
834
- temperature?: number | null | undefined;
835
- top_p?: number | null | undefined;
836
- frequency_penalty?: number | null | undefined;
837
- };
838
- /** @internal */
839
- export declare const ListUserModelsDefaultParameters$outboundSchema: z.ZodType<ListUserModelsDefaultParameters$Outbound, z.ZodTypeDef, ListUserModelsDefaultParameters>;
840
- /**
841
- * @internal
842
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
843
- */
844
- export declare namespace ListUserModelsDefaultParameters$ {
845
- /** @deprecated use `ListUserModelsDefaultParameters$inboundSchema` instead. */
846
- const inboundSchema: z.ZodType<ListUserModelsDefaultParameters, z.ZodTypeDef, unknown>;
847
- /** @deprecated use `ListUserModelsDefaultParameters$outboundSchema` instead. */
848
- const outboundSchema: z.ZodType<ListUserModelsDefaultParameters$Outbound, z.ZodTypeDef, ListUserModelsDefaultParameters>;
849
- /** @deprecated use `ListUserModelsDefaultParameters$Outbound` instead. */
850
- type Outbound = ListUserModelsDefaultParameters$Outbound;
851
- }
852
- export declare function listUserModelsDefaultParametersToJSON(listUserModelsDefaultParameters: ListUserModelsDefaultParameters): string;
853
- export declare function listUserModelsDefaultParametersFromJSON(jsonString: string): SafeParseResult<ListUserModelsDefaultParameters, SDKValidationError>;
854
- /** @internal */
855
- export declare const ListUserModelsData$inboundSchema: z.ZodType<ListUserModelsData, z.ZodTypeDef, unknown>;
856
- /** @internal */
857
- export type ListUserModelsData$Outbound = {
858
- id: string;
859
- canonical_slug: string;
860
- hugging_face_id?: string | null | undefined;
861
- name: string;
862
- created: number;
863
- description?: string | undefined;
864
- pricing: ListUserModelsPricing$Outbound;
865
- context_length: number | null;
866
- architecture: ListUserModelsArchitecture$Outbound;
867
- top_provider: ListUserModelsTopProvider$Outbound;
868
- per_request_limits: ListUserModelsPerRequestLimits$Outbound | null;
869
- supported_parameters: Array<string>;
870
- default_parameters: ListUserModelsDefaultParameters$Outbound | null;
871
- };
872
- /** @internal */
873
- export declare const ListUserModelsData$outboundSchema: z.ZodType<ListUserModelsData$Outbound, z.ZodTypeDef, ListUserModelsData>;
874
- /**
875
- * @internal
876
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
877
- */
878
- export declare namespace ListUserModelsData$ {
879
- /** @deprecated use `ListUserModelsData$inboundSchema` instead. */
880
- const inboundSchema: z.ZodType<ListUserModelsData, z.ZodTypeDef, unknown>;
881
- /** @deprecated use `ListUserModelsData$outboundSchema` instead. */
882
- const outboundSchema: z.ZodType<ListUserModelsData$Outbound, z.ZodTypeDef, ListUserModelsData>;
883
- /** @deprecated use `ListUserModelsData$Outbound` instead. */
884
- type Outbound = ListUserModelsData$Outbound;
885
- }
886
- export declare function listUserModelsDataToJSON(listUserModelsData: ListUserModelsData): string;
887
- export declare function listUserModelsDataFromJSON(jsonString: string): SafeParseResult<ListUserModelsData, SDKValidationError>;
888
- /** @internal */
889
40
  export declare const ListUserModelsResponse$inboundSchema: z.ZodType<ListUserModelsResponse, z.ZodTypeDef, unknown>;
890
41
  /** @internal */
891
42
  export type ListUserModelsResponse$Outbound = {
892
- data: Array<ListUserModelsData$Outbound>;
43
+ data: Array<models.ModelsList$Outbound>;
893
44
  };
894
45
  /** @internal */
895
46
  export declare const ListUserModelsResponse$outboundSchema: z.ZodType<ListUserModelsResponse$Outbound, z.ZodTypeDef, ListUserModelsResponse>;