@openrouter/sdk 0.0.1-beta.9 → 0.1.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 (356) hide show
  1. package/REACT_QUERY.md +3 -12
  2. package/README.md +52 -396
  3. package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
  4. package/esm/funcs/analyticsGetUserActivity.js +2 -2
  5. package/esm/funcs/apiKeysCreate.d.ts +1 -1
  6. package/esm/funcs/apiKeysCreate.js +2 -2
  7. package/esm/funcs/apiKeysDelete.d.ts +1 -1
  8. package/esm/funcs/apiKeysDelete.js +2 -2
  9. package/esm/funcs/apiKeysGet.d.ts +1 -1
  10. package/esm/funcs/apiKeysGet.js +2 -2
  11. package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
  12. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
  13. package/esm/funcs/apiKeysList.d.ts +1 -1
  14. package/esm/funcs/apiKeysList.js +2 -2
  15. package/esm/funcs/apiKeysUpdate.d.ts +1 -1
  16. package/esm/funcs/apiKeysUpdate.js +2 -2
  17. package/esm/funcs/betaResponsesSend.d.ts +9 -1
  18. package/esm/funcs/betaResponsesSend.js +38 -14
  19. package/esm/funcs/chatSend.d.ts +7 -0
  20. package/esm/funcs/chatSend.js +1 -7
  21. package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
  22. package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
  23. package/esm/funcs/creditsGetCredits.d.ts +1 -1
  24. package/esm/funcs/creditsGetCredits.js +2 -2
  25. package/esm/funcs/endpointsList.d.ts +1 -1
  26. package/esm/funcs/endpointsList.js +2 -2
  27. package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
  28. package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
  29. package/esm/funcs/generationsGetGeneration.d.ts +1 -1
  30. package/esm/funcs/generationsGetGeneration.js +13 -2
  31. package/esm/funcs/modelsCount.d.ts +3 -2
  32. package/esm/funcs/modelsCount.js +7 -3
  33. package/esm/funcs/modelsList.d.ts +3 -1
  34. package/esm/funcs/modelsList.js +8 -7
  35. package/esm/funcs/modelsListForUser.d.ts +3 -1
  36. package/esm/funcs/modelsListForUser.js +7 -3
  37. package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
  38. package/esm/funcs/oAuthCreateAuthCode.js +82 -0
  39. package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
  40. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
  41. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
  42. package/esm/funcs/parametersGetParameters.d.ts +1 -1
  43. package/esm/funcs/parametersGetParameters.js +2 -2
  44. package/esm/funcs/providersList.d.ts +1 -1
  45. package/esm/funcs/providersList.js +1 -1
  46. package/esm/lib/config.d.ts +3 -3
  47. package/esm/lib/config.js +3 -3
  48. package/esm/lib/event-streams.d.ts +1 -1
  49. package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
  50. package/esm/models/badgatewayresponseerrordata.js +35 -0
  51. package/esm/models/badrequestresponseerrordata.d.ts +40 -0
  52. package/esm/models/badrequestresponseerrordata.js +35 -0
  53. package/esm/models/chatgenerationparams.d.ts +12 -12
  54. package/esm/models/chatgenerationparams.js +16 -16
  55. package/esm/models/chatgenerationtokenusage.d.ts +2 -2
  56. package/esm/models/chatgenerationtokenusage.js +2 -4
  57. package/esm/models/chatmessagetokenlogprob.d.ts +15 -15
  58. package/esm/models/chatmessagetokenlogprob.js +16 -15
  59. package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
  60. package/esm/models/chatstreamingresponsechunk.js +15 -15
  61. package/esm/models/completioncreateparams.d.ts +2 -2
  62. package/esm/models/completioncreateparams.js +2 -2
  63. package/esm/models/createchargerequest.d.ts +31 -2
  64. package/esm/models/createchargerequest.js +47 -2
  65. package/esm/models/defaultparameters.d.ts +36 -0
  66. package/esm/models/defaultparameters.js +46 -0
  67. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
  68. package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
  69. package/esm/models/endpointstatus.d.ts +26 -0
  70. package/esm/models/endpointstatus.js +36 -0
  71. package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
  72. package/esm/models/errors/badgatewayresponseerror.js +63 -0
  73. package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
  74. package/esm/models/errors/badrequestresponseerror.js +63 -0
  75. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
  76. package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
  77. package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
  78. package/esm/models/errors/forbiddenresponseerror.js +63 -0
  79. package/esm/models/errors/index.d.ts +14 -2
  80. package/esm/models/errors/index.js +14 -2
  81. package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
  82. package/esm/models/errors/internalserverresponseerror.js +63 -0
  83. package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
  84. package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
  85. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
  86. package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
  87. package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
  88. package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
  89. package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
  90. package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
  91. package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
  92. package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
  93. package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
  94. package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
  95. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
  96. package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
  97. package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
  98. package/esm/models/errors/unauthorizedresponseerror.js +63 -0
  99. package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
  100. package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
  101. package/esm/models/filecitation.d.ts +58 -0
  102. package/esm/models/filecitation.js +65 -0
  103. package/esm/models/filepath.d.ts +56 -0
  104. package/esm/models/filepath.js +64 -0
  105. package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
  106. package/esm/models/forbiddenresponseerrordata.js +35 -0
  107. package/esm/models/index.d.ts +67 -23
  108. package/esm/models/index.js +67 -23
  109. package/esm/models/inputmodality.d.ts +25 -0
  110. package/esm/models/inputmodality.js +35 -0
  111. package/esm/models/instructtype.d.ts +48 -0
  112. package/esm/models/instructtype.js +55 -0
  113. package/esm/models/internalserverresponseerrordata.d.ts +40 -0
  114. package/esm/models/internalserverresponseerrordata.js +35 -0
  115. package/esm/models/listendpointsresponse.d.ts +126 -2
  116. package/esm/models/listendpointsresponse.js +115 -2
  117. package/esm/models/model.d.ts +101 -0
  118. package/esm/models/model.js +82 -0
  119. package/esm/models/modelarchitecture.d.ts +104 -0
  120. package/esm/models/modelarchitecture.js +107 -0
  121. package/esm/models/modelgroup.d.ts +45 -0
  122. package/esm/models/modelgroup.js +53 -0
  123. package/esm/models/modelscountresponse.d.ts +40 -2
  124. package/esm/models/modelscountresponse.js +31 -2
  125. package/esm/models/modelslistresponse.d.ts +10 -2
  126. package/esm/models/modelslistresponse.js +7 -2
  127. package/esm/models/notfoundresponseerrordata.d.ts +40 -0
  128. package/esm/models/notfoundresponseerrordata.js +35 -0
  129. package/esm/models/openairesponsesannotation.d.ts +28 -0
  130. package/esm/models/openairesponsesannotation.js +38 -0
  131. package/esm/models/openairesponsesincludable.d.ts +25 -0
  132. package/esm/models/openairesponsesincludable.js +35 -0
  133. package/esm/models/openairesponsesincompletedetails.d.ts +49 -0
  134. package/esm/models/openairesponsesincompletedetails.js +58 -0
  135. package/esm/models/openairesponsesinputunion.d.ts +588 -0
  136. package/esm/models/openairesponsesinputunion.js +686 -0
  137. package/esm/models/openairesponsesprompt.d.ts +83 -0
  138. package/esm/models/openairesponsesprompt.js +97 -0
  139. package/esm/models/openairesponsesreasoningconfig.d.ts +33 -0
  140. package/esm/models/openairesponsesreasoningconfig.js +35 -0
  141. package/esm/models/openairesponsesreasoningeffort.d.ts +24 -0
  142. package/esm/models/openairesponsesreasoningeffort.js +34 -0
  143. package/esm/models/openairesponsesrefusalcontent.d.ts +54 -0
  144. package/esm/models/openairesponsesrefusalcontent.js +51 -0
  145. package/esm/models/openairesponsesresponsestatus.d.ts +26 -0
  146. package/esm/models/openairesponsesresponsestatus.js +36 -0
  147. package/esm/models/openairesponsesservicetier.d.ts +25 -0
  148. package/esm/models/openairesponsesservicetier.js +35 -0
  149. package/esm/models/openairesponsestoolchoiceunion.d.ts +231 -0
  150. package/esm/models/openairesponsestoolchoiceunion.js +233 -0
  151. package/esm/models/openairesponsestruncation.d.ts +22 -0
  152. package/esm/models/openairesponsestruncation.js +32 -0
  153. package/esm/models/openresponseseasyinputmessage.d.ts +75 -19
  154. package/esm/models/openresponseseasyinputmessage.js +105 -16
  155. package/esm/models/openresponseserrorevent.d.ts +63 -0
  156. package/esm/models/openresponseserrorevent.js +66 -0
  157. package/esm/models/openresponsesimagegencallcompleted.d.ts +61 -0
  158. package/esm/models/openresponsesimagegencallcompleted.js +68 -0
  159. package/esm/models/openresponsesimagegencallgenerating.d.ts +61 -0
  160. package/esm/models/openresponsesimagegencallgenerating.js +68 -0
  161. package/esm/models/openresponsesimagegencallinprogress.d.ts +61 -0
  162. package/esm/models/openresponsesimagegencallinprogress.js +68 -0
  163. package/esm/models/openresponsesimagegencallpartialimage.d.ts +65 -0
  164. package/esm/models/openresponsesimagegencallpartialimage.js +76 -0
  165. package/esm/models/openresponsesinput.d.ts +36 -5
  166. package/esm/models/openresponsesinput.js +82 -5
  167. package/esm/models/openresponsesinputmessageitem.d.ts +52 -8
  168. package/esm/models/openresponsesinputmessageitem.js +68 -5
  169. package/esm/models/openresponseslogprobs.d.ts +3 -32
  170. package/esm/models/openresponseslogprobs.js +3 -29
  171. package/esm/models/openresponsesnonstreamingresponse.d.ts +93 -123
  172. package/esm/models/openresponsesnonstreamingresponse.js +111 -145
  173. package/esm/models/openresponsesreasoning.d.ts +89 -0
  174. package/esm/models/openresponsesreasoning.js +93 -0
  175. package/esm/models/openresponsesreasoningconfig.d.ts +2 -23
  176. package/esm/models/openresponsesreasoningconfig.js +3 -33
  177. package/esm/models/openresponsesreasoningdeltaevent.d.ts +65 -0
  178. package/esm/models/openresponsesreasoningdeltaevent.js +74 -0
  179. package/esm/models/openresponsesreasoningdoneevent.d.ts +65 -0
  180. package/esm/models/openresponsesreasoningdoneevent.js +74 -0
  181. package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +66 -0
  182. package/esm/models/openresponsesreasoningsummarypartaddedevent.js +75 -0
  183. package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +65 -0
  184. package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +74 -0
  185. package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +65 -0
  186. package/esm/models/openresponsesreasoningsummarytextdoneevent.js +74 -0
  187. package/esm/models/openresponsesrequest.d.ts +736 -2
  188. package/esm/models/openresponsesrequest.js +789 -2
  189. package/esm/models/openresponsesresponsetext.d.ts +59 -0
  190. package/esm/models/openresponsesresponsetext.js +64 -0
  191. package/esm/models/openresponsesstreamevent.d.ts +25 -612
  192. package/esm/models/openresponsesstreamevent.js +51 -742
  193. package/esm/models/openresponsestoplogprobs.d.ts +34 -0
  194. package/esm/models/openresponsestoplogprobs.js +33 -0
  195. package/esm/models/{responsesusage.d.ts → openresponsesusage.d.ts} +14 -14
  196. package/esm/models/{responsesusage.js → openresponsesusage.js} +14 -14
  197. package/esm/models/operations/createauthkeyscode.d.ts +145 -0
  198. package/esm/models/operations/createauthkeyscode.js +146 -0
  199. package/esm/models/operations/createresponses.d.ts +58 -0
  200. package/esm/models/operations/createresponses.js +80 -0
  201. package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
  202. package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
  203. package/esm/models/operations/getmodels.d.ts +0 -26
  204. package/esm/models/operations/getmodels.js +0 -38
  205. package/esm/models/operations/getparameters.d.ts +1 -0
  206. package/esm/models/operations/getparameters.js +1 -0
  207. package/esm/models/operations/index.d.ts +3 -2
  208. package/esm/models/operations/index.js +3 -2
  209. package/esm/models/operations/listendpointszdr.d.ts +3 -24
  210. package/esm/models/operations/listendpointszdr.js +2 -29
  211. package/esm/models/operations/listmodelsuser.d.ts +0 -22
  212. package/esm/models/operations/listmodelsuser.js +0 -28
  213. package/esm/models/operations/listproviders.d.ts +0 -36
  214. package/esm/models/operations/listproviders.js +0 -28
  215. package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
  216. package/esm/models/operations/sendchatcompletionrequest.js +2 -1
  217. package/esm/models/outputitemimagegenerationcall.d.ts +59 -0
  218. package/esm/models/outputitemimagegenerationcall.js +56 -0
  219. package/esm/models/outputmessage.d.ts +192 -0
  220. package/esm/models/outputmessage.js +202 -0
  221. package/esm/models/outputmodality.d.ts +23 -0
  222. package/esm/models/outputmodality.js +33 -0
  223. package/esm/models/parameter.d.ts +43 -0
  224. package/esm/models/parameter.js +54 -0
  225. package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
  226. package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
  227. package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
  228. package/esm/models/paymentrequiredresponseerrordata.js +35 -0
  229. package/esm/models/perrequestlimits.d.ts +40 -0
  230. package/esm/models/perrequestlimits.js +44 -0
  231. package/esm/models/providername.d.ts +106 -0
  232. package/esm/models/providername.js +116 -0
  233. package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
  234. package/esm/models/provideroverloadedresponseerrordata.js +35 -0
  235. package/esm/models/publicendpoint.d.ts +140 -2
  236. package/esm/models/publicendpoint.js +156 -2
  237. package/esm/models/publicpricing.d.ts +87 -0
  238. package/esm/models/publicpricing.js +73 -0
  239. package/esm/models/quantization.d.ts +29 -0
  240. package/esm/models/quantization.js +39 -0
  241. package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
  242. package/esm/models/requesttimeoutresponseerrordata.js +35 -0
  243. package/esm/models/responseformattextconfig.d.ts +31 -0
  244. package/esm/models/responseformattextconfig.js +38 -0
  245. package/esm/models/responseinputfile.d.ts +63 -0
  246. package/esm/models/responseinputfile.js +70 -0
  247. package/esm/models/responseinputimage.d.ts +79 -0
  248. package/esm/models/responseinputimage.js +90 -0
  249. package/esm/models/responseinputtext.d.ts +57 -0
  250. package/esm/models/responseinputtext.js +51 -0
  251. package/esm/models/responseoutputtext.d.ts +57 -0
  252. package/esm/models/responseoutputtext.js +54 -0
  253. package/esm/models/responseserrorfield.d.ts +25 -10
  254. package/esm/models/responseserrorfield.js +29 -14
  255. package/esm/models/responsesformatjsonobject.d.ts +55 -0
  256. package/esm/models/responsesformatjsonobject.js +49 -0
  257. package/esm/models/responsesformattext.d.ts +55 -0
  258. package/esm/models/responsesformattext.js +49 -0
  259. package/esm/models/responsesformattextjsonschemaconfig.d.ts +67 -0
  260. package/esm/models/responsesformattextjsonschemaconfig.js +57 -0
  261. package/esm/models/responsesoutputitemfunctioncall.d.ts +89 -0
  262. package/esm/models/responsesoutputitemfunctioncall.js +93 -0
  263. package/esm/models/responsesoutputitemreasoning.d.ts +92 -0
  264. package/esm/models/responsesoutputitemreasoning.js +93 -0
  265. package/esm/models/responsesoutputmessage.d.ts +45 -42
  266. package/esm/models/responsesoutputmessage.js +76 -65
  267. package/esm/models/responsetextconfig.d.ts +59 -0
  268. package/esm/models/responsetextconfig.js +62 -0
  269. package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
  270. package/esm/models/serviceunavailableresponseerrordata.js +35 -0
  271. package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
  272. package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
  273. package/esm/models/topproviderinfo.d.ts +45 -0
  274. package/esm/models/topproviderinfo.js +48 -0
  275. package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
  276. package/esm/models/unauthorizedresponseerrordata.js +35 -0
  277. package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
  278. package/esm/models/unprocessableentityresponseerrordata.js +35 -0
  279. package/esm/models/urlcitation.d.ts +60 -0
  280. package/esm/models/urlcitation.js +69 -0
  281. package/esm/react-query/betaResponsesSend.d.ts +1 -1
  282. package/esm/react-query/index.d.ts +2 -0
  283. package/esm/react-query/index.js +2 -0
  284. package/esm/react-query/modelsCount.d.ts +2 -2
  285. package/esm/react-query/modelsList.d.ts +2 -7
  286. package/esm/react-query/modelsList.js +0 -2
  287. package/esm/react-query/modelsListForUser.d.ts +2 -1
  288. package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
  289. package/esm/react-query/oAuthCreateAuthCode.js +42 -0
  290. package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
  291. package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
  292. package/esm/sdk/chat.d.ts +7 -0
  293. package/esm/sdk/chat.js +0 -6
  294. package/esm/sdk/models.d.ts +4 -3
  295. package/esm/sdk/oauth.d.ts +46 -0
  296. package/esm/sdk/oauth.js +67 -0
  297. package/esm/sdk/responses.d.ts +8 -1
  298. package/esm/sdk/responses.js +0 -6
  299. package/esm/sdk/sdk.d.ts +3 -0
  300. package/esm/sdk/sdk.js +4 -0
  301. package/jsr.json +1 -1
  302. package/package.json +3 -1
  303. package/vitest.config.ts +26 -0
  304. package/.devcontainer/README.md +0 -35
  305. package/esm/models/errorresponse.d.ts +0 -155
  306. package/esm/models/errorresponse.js +0 -167
  307. package/esm/models/errors/errorresponse.d.ts +0 -46
  308. package/esm/models/errors/listproviders.d.ts +0 -49
  309. package/esm/models/errors/listproviders.js +0 -51
  310. package/esm/models/filecitationannotation.d.ts +0 -58
  311. package/esm/models/filecitationannotation.js +0 -64
  312. package/esm/models/filepathannotation.d.ts +0 -56
  313. package/esm/models/filepathannotation.js +0 -62
  314. package/esm/models/openresponsesformatjsonobject.d.ts +0 -55
  315. package/esm/models/openresponsesformatjsonobject.js +0 -49
  316. package/esm/models/openresponsesformatjsonschema.d.ts +0 -67
  317. package/esm/models/openresponsesformatjsonschema.js +0 -57
  318. package/esm/models/openresponsesformattext.d.ts +0 -55
  319. package/esm/models/openresponsesformattext.js +0 -49
  320. package/esm/models/openresponsesformattextconfig.d.ts +0 -31
  321. package/esm/models/openresponsesformattextconfig.js +0 -38
  322. package/esm/models/openresponsesinputcontent.d.ts +0 -43
  323. package/esm/models/openresponsesinputcontent.js +0 -50
  324. package/esm/models/openresponsesinputfile.d.ts +0 -63
  325. package/esm/models/openresponsesinputfile.js +0 -70
  326. package/esm/models/openresponsesinputimage.d.ts +0 -79
  327. package/esm/models/openresponsesinputimage.js +0 -90
  328. package/esm/models/openresponsesinputitem.d.ts +0 -39
  329. package/esm/models/openresponsesinputitem.js +0 -62
  330. package/esm/models/openresponsesinputtext.d.ts +0 -57
  331. package/esm/models/openresponsesinputtext.js +0 -51
  332. package/esm/models/openresponsesoutputtext.d.ts +0 -80
  333. package/esm/models/openresponsesoutputtext.js +0 -93
  334. package/esm/models/openresponsesprompt.d.ts +0 -39
  335. package/esm/models/openresponsesprompt.js +0 -34
  336. package/esm/models/openresponsesrefusalcontent.d.ts +0 -54
  337. package/esm/models/openresponsesrefusalcontent.js +0 -51
  338. package/esm/models/openresponsestextconfig.d.ts +0 -59
  339. package/esm/models/openresponsestextconfig.js +0 -63
  340. package/esm/models/openresponsestoolchoice.d.ts +0 -148
  341. package/esm/models/openresponsestoolchoice.js +0 -139
  342. package/esm/models/openresponsestoolunion.d.ts +0 -95
  343. package/esm/models/openresponsestoolunion.js +0 -94
  344. package/esm/models/operations/createapialpharesponses.d.ts +0 -58
  345. package/esm/models/operations/createapialpharesponses.js +0 -83
  346. package/esm/models/operations/listmodelscount.d.ts +0 -26
  347. package/esm/models/operations/listmodelscount.js +0 -34
  348. package/esm/models/outputtextcontent.d.ts +0 -80
  349. package/esm/models/outputtextcontent.js +0 -93
  350. package/esm/models/refusalcontent.d.ts +0 -54
  351. package/esm/models/refusalcontent.js +0 -51
  352. package/esm/models/toolchoicetypes.d.ts +0 -164
  353. package/esm/models/toolchoicetypes.js +0 -167
  354. package/esm/models/urlcitationannotation.d.ts +0 -60
  355. package/esm/models/urlcitationannotation.js +0 -68
  356. package/examples/README.md +0 -31
@@ -0,0 +1,40 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Error data for ForbiddenResponse
6
+ */
7
+ export type ForbiddenResponseErrorData = {
8
+ code: number;
9
+ message: string;
10
+ metadata?: {
11
+ [k: string]: any | null;
12
+ } | null | undefined;
13
+ };
14
+ /** @internal */
15
+ export declare const ForbiddenResponseErrorData$inboundSchema: z.ZodType<ForbiddenResponseErrorData, unknown>;
16
+ /** @internal */
17
+ export type ForbiddenResponseErrorData$Outbound = {
18
+ code: number;
19
+ message: string;
20
+ metadata?: {
21
+ [k: string]: any | null;
22
+ } | null | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const ForbiddenResponseErrorData$outboundSchema: z.ZodType<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace ForbiddenResponseErrorData$ {
31
+ /** @deprecated use `ForbiddenResponseErrorData$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<ForbiddenResponseErrorData, unknown, z.core.$ZodTypeInternals<ForbiddenResponseErrorData, unknown>>;
33
+ /** @deprecated use `ForbiddenResponseErrorData$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData, z.core.$ZodTypeInternals<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData>>;
35
+ /** @deprecated use `ForbiddenResponseErrorData$Outbound` instead. */
36
+ type Outbound = ForbiddenResponseErrorData$Outbound;
37
+ }
38
+ export declare function forbiddenResponseErrorDataToJSON(forbiddenResponseErrorData: ForbiddenResponseErrorData): string;
39
+ export declare function forbiddenResponseErrorDataFromJSON(jsonString: string): SafeParseResult<ForbiddenResponseErrorData, SDKValidationError>;
40
+ //# sourceMappingURL=forbiddenresponseerrordata.d.ts.map
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const ForbiddenResponseErrorData$inboundSchema = z.object({
8
+ code: z.number().int(),
9
+ message: z.string(),
10
+ metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
11
+ });
12
+ /** @internal */
13
+ export const ForbiddenResponseErrorData$outboundSchema = z.object({
14
+ code: z.number().int(),
15
+ message: z.string(),
16
+ metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
17
+ });
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export var ForbiddenResponseErrorData$;
23
+ (function (ForbiddenResponseErrorData$) {
24
+ /** @deprecated use `ForbiddenResponseErrorData$inboundSchema` instead. */
25
+ ForbiddenResponseErrorData$.inboundSchema = ForbiddenResponseErrorData$inboundSchema;
26
+ /** @deprecated use `ForbiddenResponseErrorData$outboundSchema` instead. */
27
+ ForbiddenResponseErrorData$.outboundSchema = ForbiddenResponseErrorData$outboundSchema;
28
+ })(ForbiddenResponseErrorData$ || (ForbiddenResponseErrorData$ = {}));
29
+ export function forbiddenResponseErrorDataToJSON(forbiddenResponseErrorData) {
30
+ return JSON.stringify(ForbiddenResponseErrorData$outboundSchema.parse(forbiddenResponseErrorData));
31
+ }
32
+ export function forbiddenResponseErrorDataFromJSON(jsonString) {
33
+ return safeParse(jsonString, (x) => ForbiddenResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ForbiddenResponseErrorData' from JSON`);
34
+ }
35
+ //# sourceMappingURL=forbiddenresponseerrordata.js.map
@@ -1,5 +1,7 @@
1
1
  export * from "./activityitem.js";
2
2
  export * from "./assistantmessage.js";
3
+ export * from "./badgatewayresponseerrordata.js";
4
+ export * from "./badrequestresponseerrordata.js";
3
5
  export * from "./chatcompletionfinishreason.js";
4
6
  export * from "./chaterror.js";
5
7
  export * from "./chatgenerationparams.js";
@@ -24,55 +26,93 @@ export * from "./completionlogprobs.js";
24
26
  export * from "./completionresponse.js";
25
27
  export * from "./completionusage.js";
26
28
  export * from "./createchargerequest.js";
27
- export * from "./errorresponse.js";
28
- export * from "./filecitationannotation.js";
29
- export * from "./filepathannotation.js";
29
+ export * from "./defaultparameters.js";
30
+ export * from "./edgenetworktimeoutresponseerrordata.js";
31
+ export * from "./endpointstatus.js";
32
+ export * from "./filecitation.js";
33
+ export * from "./filepath.js";
34
+ export * from "./forbiddenresponseerrordata.js";
30
35
  export * from "./imagegenerationstatus.js";
36
+ export * from "./inputmodality.js";
37
+ export * from "./instructtype.js";
38
+ export * from "./internalserverresponseerrordata.js";
31
39
  export * from "./jsonschemaconfig.js";
32
40
  export * from "./listendpointsresponse.js";
33
41
  export * from "./message.js";
42
+ export * from "./model.js";
43
+ export * from "./modelarchitecture.js";
44
+ export * from "./modelgroup.js";
34
45
  export * from "./modelscountresponse.js";
35
46
  export * from "./modelslistresponse.js";
36
47
  export * from "./namedtoolchoice.js";
48
+ export * from "./notfoundresponseerrordata.js";
49
+ export * from "./openairesponsesannotation.js";
50
+ export * from "./openairesponsesincludable.js";
51
+ export * from "./openairesponsesincompletedetails.js";
52
+ export * from "./openairesponsesinputunion.js";
53
+ export * from "./openairesponsesprompt.js";
54
+ export * from "./openairesponsesreasoningconfig.js";
55
+ export * from "./openairesponsesreasoningeffort.js";
56
+ export * from "./openairesponsesrefusalcontent.js";
57
+ export * from "./openairesponsesresponsestatus.js";
58
+ export * from "./openairesponsesservicetier.js";
59
+ export * from "./openairesponsestoolchoiceunion.js";
60
+ export * from "./openairesponsestruncation.js";
37
61
  export * from "./openresponseseasyinputmessage.js";
38
- export * from "./openresponsesformatjsonobject.js";
39
- export * from "./openresponsesformatjsonschema.js";
40
- export * from "./openresponsesformattext.js";
41
- export * from "./openresponsesformattextconfig.js";
62
+ export * from "./openresponseserrorevent.js";
42
63
  export * from "./openresponsesfunctioncalloutput.js";
43
64
  export * from "./openresponsesfunctiontoolcall.js";
65
+ export * from "./openresponsesimagegencallcompleted.js";
66
+ export * from "./openresponsesimagegencallgenerating.js";
67
+ export * from "./openresponsesimagegencallinprogress.js";
68
+ export * from "./openresponsesimagegencallpartialimage.js";
44
69
  export * from "./openresponsesinput.js";
45
- export * from "./openresponsesinputcontent.js";
46
- export * from "./openresponsesinputfile.js";
47
- export * from "./openresponsesinputimage.js";
48
- export * from "./openresponsesinputitem.js";
49
70
  export * from "./openresponsesinputmessageitem.js";
50
- export * from "./openresponsesinputtext.js";
51
71
  export * from "./openresponseslogprobs.js";
52
72
  export * from "./openresponsesnonstreamingresponse.js";
53
- export * from "./openresponsesoutputtext.js";
54
- export * from "./openresponsesprompt.js";
55
73
  export * from "./openresponsesreasoning.js";
56
74
  export * from "./openresponsesreasoningconfig.js";
57
- export * from "./openresponsesrefusalcontent.js";
75
+ export * from "./openresponsesreasoningdeltaevent.js";
76
+ export * from "./openresponsesreasoningdoneevent.js";
77
+ export * from "./openresponsesreasoningsummarypartaddedevent.js";
78
+ export * from "./openresponsesreasoningsummarytextdeltaevent.js";
79
+ export * from "./openresponsesreasoningsummarytextdoneevent.js";
58
80
  export * from "./openresponsesrequest.js";
81
+ export * from "./openresponsesresponsetext.js";
59
82
  export * from "./openresponsesstreamevent.js";
60
- export * from "./openresponsestextconfig.js";
61
- export * from "./openresponsestoolchoice.js";
62
- export * from "./openresponsestoolunion.js";
83
+ export * from "./openresponsestoplogprobs.js";
84
+ export * from "./openresponsesusage.js";
63
85
  export * from "./openresponseswebsearch20250826tool.js";
64
86
  export * from "./openresponseswebsearchpreview20250311tool.js";
65
87
  export * from "./openresponseswebsearchpreviewtool.js";
66
88
  export * from "./openresponseswebsearchtool.js";
67
- export * from "./outputtextcontent.js";
89
+ export * from "./outputitemimagegenerationcall.js";
90
+ export * from "./outputmessage.js";
91
+ export * from "./outputmodality.js";
92
+ export * from "./parameter.js";
93
+ export * from "./payloadtoolargeresponseerrordata.js";
94
+ export * from "./paymentrequiredresponseerrordata.js";
95
+ export * from "./perrequestlimits.js";
96
+ export * from "./providername.js";
97
+ export * from "./provideroverloadedresponseerrordata.js";
68
98
  export * from "./publicendpoint.js";
99
+ export * from "./publicpricing.js";
100
+ export * from "./quantization.js";
69
101
  export * from "./reasoningsummarytext.js";
70
102
  export * from "./reasoningsummaryverbosity.js";
71
103
  export * from "./reasoningtextcontent.js";
72
- export * from "./refusalcontent.js";
104
+ export * from "./requesttimeoutresponseerrordata.js";
73
105
  export * from "./responseformatjsonschema.js";
106
+ export * from "./responseformattextconfig.js";
74
107
  export * from "./responseformattextgrammar.js";
108
+ export * from "./responseinputfile.js";
109
+ export * from "./responseinputimage.js";
110
+ export * from "./responseinputtext.js";
111
+ export * from "./responseoutputtext.js";
75
112
  export * from "./responseserrorfield.js";
113
+ export * from "./responsesformatjsonobject.js";
114
+ export * from "./responsesformattext.js";
115
+ export * from "./responsesformattextjsonschemaconfig.js";
76
116
  export * from "./responsesimagegenerationcall.js";
77
117
  export * from "./responsesoutputitem.js";
78
118
  export * from "./responsesoutputitemfilesearchcall.js";
@@ -80,16 +120,20 @@ export * from "./responsesoutputitemfunctioncall.js";
80
120
  export * from "./responsesoutputitemreasoning.js";
81
121
  export * from "./responsesoutputmessage.js";
82
122
  export * from "./responsessearchcontextsize.js";
83
- export * from "./responsesusage.js";
84
123
  export * from "./responseswebsearchcalloutput.js";
85
124
  export * from "./responseswebsearchuserlocation.js";
125
+ export * from "./responsetextconfig.js";
86
126
  export * from "./security.js";
127
+ export * from "./serviceunavailableresponseerrordata.js";
87
128
  export * from "./systemmessage.js";
88
129
  export * from "./tool.js";
89
130
  export * from "./toolcallstatus.js";
90
- export * from "./toolchoicetypes.js";
91
131
  export * from "./toolresponsemessage.js";
92
- export * from "./urlcitationannotation.js";
132
+ export * from "./toomanyrequestsresponseerrordata.js";
133
+ export * from "./topproviderinfo.js";
134
+ export * from "./unauthorizedresponseerrordata.js";
135
+ export * from "./unprocessableentityresponseerrordata.js";
136
+ export * from "./urlcitation.js";
93
137
  export * from "./usermessage.js";
94
138
  export * from "./websearchpreviewtooluserlocation.js";
95
139
  export * from "./websearchstatus.js";
@@ -3,6 +3,8 @@
3
3
  */
4
4
  export * from "./activityitem.js";
5
5
  export * from "./assistantmessage.js";
6
+ export * from "./badgatewayresponseerrordata.js";
7
+ export * from "./badrequestresponseerrordata.js";
6
8
  export * from "./chatcompletionfinishreason.js";
7
9
  export * from "./chaterror.js";
8
10
  export * from "./chatgenerationparams.js";
@@ -27,55 +29,93 @@ export * from "./completionlogprobs.js";
27
29
  export * from "./completionresponse.js";
28
30
  export * from "./completionusage.js";
29
31
  export * from "./createchargerequest.js";
30
- export * from "./errorresponse.js";
31
- export * from "./filecitationannotation.js";
32
- export * from "./filepathannotation.js";
32
+ export * from "./defaultparameters.js";
33
+ export * from "./edgenetworktimeoutresponseerrordata.js";
34
+ export * from "./endpointstatus.js";
35
+ export * from "./filecitation.js";
36
+ export * from "./filepath.js";
37
+ export * from "./forbiddenresponseerrordata.js";
33
38
  export * from "./imagegenerationstatus.js";
39
+ export * from "./inputmodality.js";
40
+ export * from "./instructtype.js";
41
+ export * from "./internalserverresponseerrordata.js";
34
42
  export * from "./jsonschemaconfig.js";
35
43
  export * from "./listendpointsresponse.js";
36
44
  export * from "./message.js";
45
+ export * from "./model.js";
46
+ export * from "./modelarchitecture.js";
47
+ export * from "./modelgroup.js";
37
48
  export * from "./modelscountresponse.js";
38
49
  export * from "./modelslistresponse.js";
39
50
  export * from "./namedtoolchoice.js";
51
+ export * from "./notfoundresponseerrordata.js";
52
+ export * from "./openairesponsesannotation.js";
53
+ export * from "./openairesponsesincludable.js";
54
+ export * from "./openairesponsesincompletedetails.js";
55
+ export * from "./openairesponsesinputunion.js";
56
+ export * from "./openairesponsesprompt.js";
57
+ export * from "./openairesponsesreasoningconfig.js";
58
+ export * from "./openairesponsesreasoningeffort.js";
59
+ export * from "./openairesponsesrefusalcontent.js";
60
+ export * from "./openairesponsesresponsestatus.js";
61
+ export * from "./openairesponsesservicetier.js";
62
+ export * from "./openairesponsestoolchoiceunion.js";
63
+ export * from "./openairesponsestruncation.js";
40
64
  export * from "./openresponseseasyinputmessage.js";
41
- export * from "./openresponsesformatjsonobject.js";
42
- export * from "./openresponsesformatjsonschema.js";
43
- export * from "./openresponsesformattext.js";
44
- export * from "./openresponsesformattextconfig.js";
65
+ export * from "./openresponseserrorevent.js";
45
66
  export * from "./openresponsesfunctioncalloutput.js";
46
67
  export * from "./openresponsesfunctiontoolcall.js";
68
+ export * from "./openresponsesimagegencallcompleted.js";
69
+ export * from "./openresponsesimagegencallgenerating.js";
70
+ export * from "./openresponsesimagegencallinprogress.js";
71
+ export * from "./openresponsesimagegencallpartialimage.js";
47
72
  export * from "./openresponsesinput.js";
48
- export * from "./openresponsesinputcontent.js";
49
- export * from "./openresponsesinputfile.js";
50
- export * from "./openresponsesinputimage.js";
51
- export * from "./openresponsesinputitem.js";
52
73
  export * from "./openresponsesinputmessageitem.js";
53
- export * from "./openresponsesinputtext.js";
54
74
  export * from "./openresponseslogprobs.js";
55
75
  export * from "./openresponsesnonstreamingresponse.js";
56
- export * from "./openresponsesoutputtext.js";
57
- export * from "./openresponsesprompt.js";
58
76
  export * from "./openresponsesreasoning.js";
59
77
  export * from "./openresponsesreasoningconfig.js";
60
- export * from "./openresponsesrefusalcontent.js";
78
+ export * from "./openresponsesreasoningdeltaevent.js";
79
+ export * from "./openresponsesreasoningdoneevent.js";
80
+ export * from "./openresponsesreasoningsummarypartaddedevent.js";
81
+ export * from "./openresponsesreasoningsummarytextdeltaevent.js";
82
+ export * from "./openresponsesreasoningsummarytextdoneevent.js";
61
83
  export * from "./openresponsesrequest.js";
84
+ export * from "./openresponsesresponsetext.js";
62
85
  export * from "./openresponsesstreamevent.js";
63
- export * from "./openresponsestextconfig.js";
64
- export * from "./openresponsestoolchoice.js";
65
- export * from "./openresponsestoolunion.js";
86
+ export * from "./openresponsestoplogprobs.js";
87
+ export * from "./openresponsesusage.js";
66
88
  export * from "./openresponseswebsearch20250826tool.js";
67
89
  export * from "./openresponseswebsearchpreview20250311tool.js";
68
90
  export * from "./openresponseswebsearchpreviewtool.js";
69
91
  export * from "./openresponseswebsearchtool.js";
70
- export * from "./outputtextcontent.js";
92
+ export * from "./outputitemimagegenerationcall.js";
93
+ export * from "./outputmessage.js";
94
+ export * from "./outputmodality.js";
95
+ export * from "./parameter.js";
96
+ export * from "./payloadtoolargeresponseerrordata.js";
97
+ export * from "./paymentrequiredresponseerrordata.js";
98
+ export * from "./perrequestlimits.js";
99
+ export * from "./providername.js";
100
+ export * from "./provideroverloadedresponseerrordata.js";
71
101
  export * from "./publicendpoint.js";
102
+ export * from "./publicpricing.js";
103
+ export * from "./quantization.js";
72
104
  export * from "./reasoningsummarytext.js";
73
105
  export * from "./reasoningsummaryverbosity.js";
74
106
  export * from "./reasoningtextcontent.js";
75
- export * from "./refusalcontent.js";
107
+ export * from "./requesttimeoutresponseerrordata.js";
76
108
  export * from "./responseformatjsonschema.js";
109
+ export * from "./responseformattextconfig.js";
77
110
  export * from "./responseformattextgrammar.js";
111
+ export * from "./responseinputfile.js";
112
+ export * from "./responseinputimage.js";
113
+ export * from "./responseinputtext.js";
114
+ export * from "./responseoutputtext.js";
78
115
  export * from "./responseserrorfield.js";
116
+ export * from "./responsesformatjsonobject.js";
117
+ export * from "./responsesformattext.js";
118
+ export * from "./responsesformattextjsonschemaconfig.js";
79
119
  export * from "./responsesimagegenerationcall.js";
80
120
  export * from "./responsesoutputitem.js";
81
121
  export * from "./responsesoutputitemfilesearchcall.js";
@@ -83,16 +123,20 @@ export * from "./responsesoutputitemfunctioncall.js";
83
123
  export * from "./responsesoutputitemreasoning.js";
84
124
  export * from "./responsesoutputmessage.js";
85
125
  export * from "./responsessearchcontextsize.js";
86
- export * from "./responsesusage.js";
87
126
  export * from "./responseswebsearchcalloutput.js";
88
127
  export * from "./responseswebsearchuserlocation.js";
128
+ export * from "./responsetextconfig.js";
89
129
  export * from "./security.js";
130
+ export * from "./serviceunavailableresponseerrordata.js";
90
131
  export * from "./systemmessage.js";
91
132
  export * from "./tool.js";
92
133
  export * from "./toolcallstatus.js";
93
- export * from "./toolchoicetypes.js";
94
134
  export * from "./toolresponsemessage.js";
95
- export * from "./urlcitationannotation.js";
135
+ export * from "./toomanyrequestsresponseerrordata.js";
136
+ export * from "./topproviderinfo.js";
137
+ export * from "./unauthorizedresponseerrordata.js";
138
+ export * from "./unprocessableentityresponseerrordata.js";
139
+ export * from "./urlcitation.js";
96
140
  export * from "./usermessage.js";
97
141
  export * from "./websearchpreviewtooluserlocation.js";
98
142
  export * from "./websearchstatus.js";
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const InputModality: {
4
+ readonly Text: "text";
5
+ readonly Image: "image";
6
+ readonly File: "file";
7
+ readonly Audio: "audio";
8
+ readonly Video: "video";
9
+ };
10
+ export type InputModality = OpenEnum<typeof InputModality>;
11
+ /** @internal */
12
+ export declare const InputModality$inboundSchema: z.ZodType<InputModality, unknown>;
13
+ /** @internal */
14
+ export declare const InputModality$outboundSchema: z.ZodType<InputModality, InputModality>;
15
+ /**
16
+ * @internal
17
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
+ */
19
+ export declare namespace InputModality$ {
20
+ /** @deprecated use `InputModality$inboundSchema` instead. */
21
+ const inboundSchema: z.ZodType<InputModality, unknown, z.core.$ZodTypeInternals<InputModality, unknown>>;
22
+ /** @deprecated use `InputModality$outboundSchema` instead. */
23
+ const outboundSchema: z.ZodType<InputModality, InputModality, z.core.$ZodTypeInternals<InputModality, InputModality>>;
24
+ }
25
+ //# sourceMappingURL=inputmodality.d.ts.map
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { catchUnrecognizedEnum, } from "../types/enums.js";
6
+ export const InputModality = {
7
+ Text: "text",
8
+ Image: "image",
9
+ File: "file",
10
+ Audio: "audio",
11
+ Video: "video",
12
+ };
13
+ /** @internal */
14
+ export const InputModality$inboundSchema = z
15
+ .union([
16
+ z.enum(InputModality),
17
+ z.string().transform(catchUnrecognizedEnum),
18
+ ]);
19
+ /** @internal */
20
+ export const InputModality$outboundSchema = z.union([
21
+ z.enum(InputModality),
22
+ z.string().and(z.custom()),
23
+ ]);
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export var InputModality$;
29
+ (function (InputModality$) {
30
+ /** @deprecated use `InputModality$inboundSchema` instead. */
31
+ InputModality$.inboundSchema = InputModality$inboundSchema;
32
+ /** @deprecated use `InputModality$outboundSchema` instead. */
33
+ InputModality$.outboundSchema = InputModality$outboundSchema;
34
+ })(InputModality$ || (InputModality$ = {}));
35
+ //# sourceMappingURL=inputmodality.js.map
@@ -0,0 +1,48 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Instruction format type
5
+ */
6
+ export declare const InstructType: {
7
+ readonly None: "none";
8
+ readonly Airoboros: "airoboros";
9
+ readonly Alpaca: "alpaca";
10
+ readonly AlpacaModif: "alpaca-modif";
11
+ readonly Chatml: "chatml";
12
+ readonly Claude: "claude";
13
+ readonly CodeLlama: "code-llama";
14
+ readonly Gemma: "gemma";
15
+ readonly Llama2: "llama2";
16
+ readonly Llama3: "llama3";
17
+ readonly Mistral: "mistral";
18
+ readonly Nemotron: "nemotron";
19
+ readonly Neural: "neural";
20
+ readonly Openchat: "openchat";
21
+ readonly Phi3: "phi3";
22
+ readonly Rwkv: "rwkv";
23
+ readonly Vicuna: "vicuna";
24
+ readonly Zephyr: "zephyr";
25
+ readonly DeepseekR1: "deepseek-r1";
26
+ readonly DeepseekV31: "deepseek-v3.1";
27
+ readonly Qwq: "qwq";
28
+ readonly Qwen3: "qwen3";
29
+ };
30
+ /**
31
+ * Instruction format type
32
+ */
33
+ export type InstructType = OpenEnum<typeof InstructType>;
34
+ /** @internal */
35
+ export declare const InstructType$inboundSchema: z.ZodType<InstructType, unknown>;
36
+ /** @internal */
37
+ export declare const InstructType$outboundSchema: z.ZodType<InstructType, InstructType>;
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export declare namespace InstructType$ {
43
+ /** @deprecated use `InstructType$inboundSchema` instead. */
44
+ const inboundSchema: z.ZodType<InstructType, unknown, z.core.$ZodTypeInternals<InstructType, unknown>>;
45
+ /** @deprecated use `InstructType$outboundSchema` instead. */
46
+ const outboundSchema: z.ZodType<InstructType, InstructType, z.core.$ZodTypeInternals<InstructType, InstructType>>;
47
+ }
48
+ //# sourceMappingURL=instructtype.d.ts.map
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { catchUnrecognizedEnum, } from "../types/enums.js";
6
+ /**
7
+ * Instruction format type
8
+ */
9
+ export const InstructType = {
10
+ None: "none",
11
+ Airoboros: "airoboros",
12
+ Alpaca: "alpaca",
13
+ AlpacaModif: "alpaca-modif",
14
+ Chatml: "chatml",
15
+ Claude: "claude",
16
+ CodeLlama: "code-llama",
17
+ Gemma: "gemma",
18
+ Llama2: "llama2",
19
+ Llama3: "llama3",
20
+ Mistral: "mistral",
21
+ Nemotron: "nemotron",
22
+ Neural: "neural",
23
+ Openchat: "openchat",
24
+ Phi3: "phi3",
25
+ Rwkv: "rwkv",
26
+ Vicuna: "vicuna",
27
+ Zephyr: "zephyr",
28
+ DeepseekR1: "deepseek-r1",
29
+ DeepseekV31: "deepseek-v3.1",
30
+ Qwq: "qwq",
31
+ Qwen3: "qwen3",
32
+ };
33
+ /** @internal */
34
+ export const InstructType$inboundSchema = z
35
+ .union([
36
+ z.enum(InstructType),
37
+ z.string().transform(catchUnrecognizedEnum),
38
+ ]);
39
+ /** @internal */
40
+ export const InstructType$outboundSchema = z.union([
41
+ z.enum(InstructType),
42
+ z.string().and(z.custom()),
43
+ ]);
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export var InstructType$;
49
+ (function (InstructType$) {
50
+ /** @deprecated use `InstructType$inboundSchema` instead. */
51
+ InstructType$.inboundSchema = InstructType$inboundSchema;
52
+ /** @deprecated use `InstructType$outboundSchema` instead. */
53
+ InstructType$.outboundSchema = InstructType$outboundSchema;
54
+ })(InstructType$ || (InstructType$ = {}));
55
+ //# sourceMappingURL=instructtype.js.map
@@ -0,0 +1,40 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Error data for InternalServerResponse
6
+ */
7
+ export type InternalServerResponseErrorData = {
8
+ code: number;
9
+ message: string;
10
+ metadata?: {
11
+ [k: string]: any | null;
12
+ } | null | undefined;
13
+ };
14
+ /** @internal */
15
+ export declare const InternalServerResponseErrorData$inboundSchema: z.ZodType<InternalServerResponseErrorData, unknown>;
16
+ /** @internal */
17
+ export type InternalServerResponseErrorData$Outbound = {
18
+ code: number;
19
+ message: string;
20
+ metadata?: {
21
+ [k: string]: any | null;
22
+ } | null | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const InternalServerResponseErrorData$outboundSchema: z.ZodType<InternalServerResponseErrorData$Outbound, InternalServerResponseErrorData>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace InternalServerResponseErrorData$ {
31
+ /** @deprecated use `InternalServerResponseErrorData$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<InternalServerResponseErrorData, unknown, z.core.$ZodTypeInternals<InternalServerResponseErrorData, unknown>>;
33
+ /** @deprecated use `InternalServerResponseErrorData$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<InternalServerResponseErrorData$Outbound, InternalServerResponseErrorData, z.core.$ZodTypeInternals<InternalServerResponseErrorData$Outbound, InternalServerResponseErrorData>>;
35
+ /** @deprecated use `InternalServerResponseErrorData$Outbound` instead. */
36
+ type Outbound = InternalServerResponseErrorData$Outbound;
37
+ }
38
+ export declare function internalServerResponseErrorDataToJSON(internalServerResponseErrorData: InternalServerResponseErrorData): string;
39
+ export declare function internalServerResponseErrorDataFromJSON(jsonString: string): SafeParseResult<InternalServerResponseErrorData, SDKValidationError>;
40
+ //# sourceMappingURL=internalserverresponseerrordata.d.ts.map
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const InternalServerResponseErrorData$inboundSchema = z.object({
8
+ code: z.number().int(),
9
+ message: z.string(),
10
+ metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
11
+ });
12
+ /** @internal */
13
+ export const InternalServerResponseErrorData$outboundSchema = z.object({
14
+ code: z.number().int(),
15
+ message: z.string(),
16
+ metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
17
+ });
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export var InternalServerResponseErrorData$;
23
+ (function (InternalServerResponseErrorData$) {
24
+ /** @deprecated use `InternalServerResponseErrorData$inboundSchema` instead. */
25
+ InternalServerResponseErrorData$.inboundSchema = InternalServerResponseErrorData$inboundSchema;
26
+ /** @deprecated use `InternalServerResponseErrorData$outboundSchema` instead. */
27
+ InternalServerResponseErrorData$.outboundSchema = InternalServerResponseErrorData$outboundSchema;
28
+ })(InternalServerResponseErrorData$ || (InternalServerResponseErrorData$ = {}));
29
+ export function internalServerResponseErrorDataToJSON(internalServerResponseErrorData) {
30
+ return JSON.stringify(InternalServerResponseErrorData$outboundSchema.parse(internalServerResponseErrorData));
31
+ }
32
+ export function internalServerResponseErrorDataFromJSON(jsonString) {
33
+ return safeParse(jsonString, (x) => InternalServerResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternalServerResponseErrorData' from JSON`);
34
+ }
35
+ //# sourceMappingURL=internalserverresponseerrordata.js.map