@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,59 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { ImageGenerationStatus } from "./imagegenerationstatus.js";
6
+ export declare const OutputItemImageGenerationCallType: {
7
+ readonly ImageGenerationCall: "image_generation_call";
8
+ };
9
+ export type OutputItemImageGenerationCallType = ClosedEnum<typeof OutputItemImageGenerationCallType>;
10
+ export type OutputItemImageGenerationCall = {
11
+ type: OutputItemImageGenerationCallType;
12
+ id: string;
13
+ result: string | null;
14
+ status: ImageGenerationStatus;
15
+ };
16
+ /** @internal */
17
+ export declare const OutputItemImageGenerationCallType$inboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
18
+ /** @internal */
19
+ export declare const OutputItemImageGenerationCallType$outboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace OutputItemImageGenerationCallType$ {
25
+ /** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodEnum<{
27
+ readonly ImageGenerationCall: "image_generation_call";
28
+ }>;
29
+ /** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
30
+ const outboundSchema: z.ZodEnum<{
31
+ readonly ImageGenerationCall: "image_generation_call";
32
+ }>;
33
+ }
34
+ /** @internal */
35
+ export declare const OutputItemImageGenerationCall$inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown>;
36
+ /** @internal */
37
+ export type OutputItemImageGenerationCall$Outbound = {
38
+ type: string;
39
+ id: string;
40
+ result: string | null;
41
+ status: string;
42
+ };
43
+ /** @internal */
44
+ export declare const OutputItemImageGenerationCall$outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>;
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export declare namespace OutputItemImageGenerationCall$ {
50
+ /** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
51
+ const inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown, z.core.$ZodTypeInternals<OutputItemImageGenerationCall, unknown>>;
52
+ /** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
53
+ const outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall, z.core.$ZodTypeInternals<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>>;
54
+ /** @deprecated use `OutputItemImageGenerationCall$Outbound` instead. */
55
+ type Outbound = OutputItemImageGenerationCall$Outbound;
56
+ }
57
+ export declare function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall: OutputItemImageGenerationCall): string;
58
+ export declare function outputItemImageGenerationCallFromJSON(jsonString: string): SafeParseResult<OutputItemImageGenerationCall, SDKValidationError>;
59
+ //# sourceMappingURL=outputitemimagegenerationcall.d.ts.map
@@ -0,0 +1,56 @@
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
+ import { ImageGenerationStatus$inboundSchema, ImageGenerationStatus$outboundSchema, } from "./imagegenerationstatus.js";
7
+ export const OutputItemImageGenerationCallType = {
8
+ ImageGenerationCall: "image_generation_call",
9
+ };
10
+ /** @internal */
11
+ export const OutputItemImageGenerationCallType$inboundSchema = z.enum(OutputItemImageGenerationCallType);
12
+ /** @internal */
13
+ export const OutputItemImageGenerationCallType$outboundSchema = OutputItemImageGenerationCallType$inboundSchema;
14
+ /**
15
+ * @internal
16
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
+ */
18
+ export var OutputItemImageGenerationCallType$;
19
+ (function (OutputItemImageGenerationCallType$) {
20
+ /** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
21
+ OutputItemImageGenerationCallType$.inboundSchema = OutputItemImageGenerationCallType$inboundSchema;
22
+ /** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
23
+ OutputItemImageGenerationCallType$.outboundSchema = OutputItemImageGenerationCallType$outboundSchema;
24
+ })(OutputItemImageGenerationCallType$ || (OutputItemImageGenerationCallType$ = {}));
25
+ /** @internal */
26
+ export const OutputItemImageGenerationCall$inboundSchema = z.object({
27
+ type: OutputItemImageGenerationCallType$inboundSchema,
28
+ id: z.string(),
29
+ result: z.nullable(z.string()),
30
+ status: ImageGenerationStatus$inboundSchema,
31
+ });
32
+ /** @internal */
33
+ export const OutputItemImageGenerationCall$outboundSchema = z.object({
34
+ type: OutputItemImageGenerationCallType$outboundSchema,
35
+ id: z.string(),
36
+ result: z.nullable(z.string()),
37
+ status: ImageGenerationStatus$outboundSchema,
38
+ });
39
+ /**
40
+ * @internal
41
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
+ */
43
+ export var OutputItemImageGenerationCall$;
44
+ (function (OutputItemImageGenerationCall$) {
45
+ /** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
46
+ OutputItemImageGenerationCall$.inboundSchema = OutputItemImageGenerationCall$inboundSchema;
47
+ /** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
48
+ OutputItemImageGenerationCall$.outboundSchema = OutputItemImageGenerationCall$outboundSchema;
49
+ })(OutputItemImageGenerationCall$ || (OutputItemImageGenerationCall$ = {}));
50
+ export function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall) {
51
+ return JSON.stringify(OutputItemImageGenerationCall$outboundSchema.parse(outputItemImageGenerationCall));
52
+ }
53
+ export function outputItemImageGenerationCallFromJSON(jsonString) {
54
+ return safeParse(jsonString, (x) => OutputItemImageGenerationCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputItemImageGenerationCall' from JSON`);
55
+ }
56
+ //# sourceMappingURL=outputitemimagegenerationcall.js.map
@@ -0,0 +1,192 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { OpenAIResponsesRefusalContent, OpenAIResponsesRefusalContent$Outbound } from "./openairesponsesrefusalcontent.js";
6
+ import { ResponseOutputText, ResponseOutputText$Outbound } from "./responseoutputtext.js";
7
+ export declare const OutputMessageRole: {
8
+ readonly Assistant: "assistant";
9
+ };
10
+ export type OutputMessageRole = ClosedEnum<typeof OutputMessageRole>;
11
+ export declare const OutputMessageType: {
12
+ readonly Message: "message";
13
+ };
14
+ export type OutputMessageType = ClosedEnum<typeof OutputMessageType>;
15
+ export declare const OutputMessageStatusInProgress: {
16
+ readonly InProgress: "in_progress";
17
+ };
18
+ export type OutputMessageStatusInProgress = ClosedEnum<typeof OutputMessageStatusInProgress>;
19
+ export declare const OutputMessageStatusIncomplete: {
20
+ readonly Incomplete: "incomplete";
21
+ };
22
+ export type OutputMessageStatusIncomplete = ClosedEnum<typeof OutputMessageStatusIncomplete>;
23
+ export declare const OutputMessageStatusCompleted: {
24
+ readonly Completed: "completed";
25
+ };
26
+ export type OutputMessageStatusCompleted = ClosedEnum<typeof OutputMessageStatusCompleted>;
27
+ export type OutputMessageStatusUnion = OutputMessageStatusCompleted | OutputMessageStatusIncomplete | OutputMessageStatusInProgress;
28
+ export type OutputMessageContent = ResponseOutputText | OpenAIResponsesRefusalContent;
29
+ export type OutputMessage = {
30
+ id: string;
31
+ role: OutputMessageRole;
32
+ type: OutputMessageType;
33
+ status?: OutputMessageStatusCompleted | OutputMessageStatusIncomplete | OutputMessageStatusInProgress | undefined;
34
+ content: Array<ResponseOutputText | OpenAIResponsesRefusalContent>;
35
+ };
36
+ /** @internal */
37
+ export declare const OutputMessageRole$inboundSchema: z.ZodEnum<typeof OutputMessageRole>;
38
+ /** @internal */
39
+ export declare const OutputMessageRole$outboundSchema: z.ZodEnum<typeof OutputMessageRole>;
40
+ /**
41
+ * @internal
42
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
+ */
44
+ export declare namespace OutputMessageRole$ {
45
+ /** @deprecated use `OutputMessageRole$inboundSchema` instead. */
46
+ const inboundSchema: z.ZodEnum<{
47
+ readonly Assistant: "assistant";
48
+ }>;
49
+ /** @deprecated use `OutputMessageRole$outboundSchema` instead. */
50
+ const outboundSchema: z.ZodEnum<{
51
+ readonly Assistant: "assistant";
52
+ }>;
53
+ }
54
+ /** @internal */
55
+ export declare const OutputMessageType$inboundSchema: z.ZodEnum<typeof OutputMessageType>;
56
+ /** @internal */
57
+ export declare const OutputMessageType$outboundSchema: z.ZodEnum<typeof OutputMessageType>;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export declare namespace OutputMessageType$ {
63
+ /** @deprecated use `OutputMessageType$inboundSchema` instead. */
64
+ const inboundSchema: z.ZodEnum<{
65
+ readonly Message: "message";
66
+ }>;
67
+ /** @deprecated use `OutputMessageType$outboundSchema` instead. */
68
+ const outboundSchema: z.ZodEnum<{
69
+ readonly Message: "message";
70
+ }>;
71
+ }
72
+ /** @internal */
73
+ export declare const OutputMessageStatusInProgress$inboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
74
+ /** @internal */
75
+ export declare const OutputMessageStatusInProgress$outboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ export declare namespace OutputMessageStatusInProgress$ {
81
+ /** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
82
+ const inboundSchema: z.ZodEnum<{
83
+ readonly InProgress: "in_progress";
84
+ }>;
85
+ /** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
86
+ const outboundSchema: z.ZodEnum<{
87
+ readonly InProgress: "in_progress";
88
+ }>;
89
+ }
90
+ /** @internal */
91
+ export declare const OutputMessageStatusIncomplete$inboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
92
+ /** @internal */
93
+ export declare const OutputMessageStatusIncomplete$outboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
94
+ /**
95
+ * @internal
96
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
+ */
98
+ export declare namespace OutputMessageStatusIncomplete$ {
99
+ /** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
100
+ const inboundSchema: z.ZodEnum<{
101
+ readonly Incomplete: "incomplete";
102
+ }>;
103
+ /** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
104
+ const outboundSchema: z.ZodEnum<{
105
+ readonly Incomplete: "incomplete";
106
+ }>;
107
+ }
108
+ /** @internal */
109
+ export declare const OutputMessageStatusCompleted$inboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
110
+ /** @internal */
111
+ export declare const OutputMessageStatusCompleted$outboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export declare namespace OutputMessageStatusCompleted$ {
117
+ /** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
118
+ const inboundSchema: z.ZodEnum<{
119
+ readonly Completed: "completed";
120
+ }>;
121
+ /** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
122
+ const outboundSchema: z.ZodEnum<{
123
+ readonly Completed: "completed";
124
+ }>;
125
+ }
126
+ /** @internal */
127
+ export declare const OutputMessageStatusUnion$inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown>;
128
+ /** @internal */
129
+ export type OutputMessageStatusUnion$Outbound = string | string | string;
130
+ /** @internal */
131
+ export declare const OutputMessageStatusUnion$outboundSchema: z.ZodType<OutputMessageStatusUnion$Outbound, OutputMessageStatusUnion>;
132
+ /**
133
+ * @internal
134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
+ */
136
+ export declare namespace OutputMessageStatusUnion$ {
137
+ /** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
138
+ const inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown, z.core.$ZodTypeInternals<OutputMessageStatusUnion, unknown>>;
139
+ /** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
140
+ const outboundSchema: z.ZodType<string, OutputMessageStatusUnion, z.core.$ZodTypeInternals<string, OutputMessageStatusUnion>>;
141
+ /** @deprecated use `OutputMessageStatusUnion$Outbound` instead. */
142
+ type Outbound = OutputMessageStatusUnion$Outbound;
143
+ }
144
+ export declare function outputMessageStatusUnionToJSON(outputMessageStatusUnion: OutputMessageStatusUnion): string;
145
+ export declare function outputMessageStatusUnionFromJSON(jsonString: string): SafeParseResult<OutputMessageStatusUnion, SDKValidationError>;
146
+ /** @internal */
147
+ export declare const OutputMessageContent$inboundSchema: z.ZodType<OutputMessageContent, unknown>;
148
+ /** @internal */
149
+ export type OutputMessageContent$Outbound = ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound;
150
+ /** @internal */
151
+ export declare const OutputMessageContent$outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent>;
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ export declare namespace OutputMessageContent$ {
157
+ /** @deprecated use `OutputMessageContent$inboundSchema` instead. */
158
+ const inboundSchema: z.ZodType<OutputMessageContent, unknown, z.core.$ZodTypeInternals<OutputMessageContent, unknown>>;
159
+ /** @deprecated use `OutputMessageContent$outboundSchema` instead. */
160
+ const outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent, z.core.$ZodTypeInternals<OutputMessageContent$Outbound, OutputMessageContent>>;
161
+ /** @deprecated use `OutputMessageContent$Outbound` instead. */
162
+ type Outbound = OutputMessageContent$Outbound;
163
+ }
164
+ export declare function outputMessageContentToJSON(outputMessageContent: OutputMessageContent): string;
165
+ export declare function outputMessageContentFromJSON(jsonString: string): SafeParseResult<OutputMessageContent, SDKValidationError>;
166
+ /** @internal */
167
+ export declare const OutputMessage$inboundSchema: z.ZodType<OutputMessage, unknown>;
168
+ /** @internal */
169
+ export type OutputMessage$Outbound = {
170
+ id: string;
171
+ role: string;
172
+ type: string;
173
+ status?: string | string | string | undefined;
174
+ content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound>;
175
+ };
176
+ /** @internal */
177
+ export declare const OutputMessage$outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage>;
178
+ /**
179
+ * @internal
180
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
181
+ */
182
+ export declare namespace OutputMessage$ {
183
+ /** @deprecated use `OutputMessage$inboundSchema` instead. */
184
+ const inboundSchema: z.ZodType<OutputMessage, unknown, z.core.$ZodTypeInternals<OutputMessage, unknown>>;
185
+ /** @deprecated use `OutputMessage$outboundSchema` instead. */
186
+ const outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage, z.core.$ZodTypeInternals<OutputMessage$Outbound, OutputMessage>>;
187
+ /** @deprecated use `OutputMessage$Outbound` instead. */
188
+ type Outbound = OutputMessage$Outbound;
189
+ }
190
+ export declare function outputMessageToJSON(outputMessage: OutputMessage): string;
191
+ export declare function outputMessageFromJSON(jsonString: string): SafeParseResult<OutputMessage, SDKValidationError>;
192
+ //# sourceMappingURL=outputmessage.d.ts.map
@@ -0,0 +1,202 @@
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
+ import { OpenAIResponsesRefusalContent$inboundSchema, OpenAIResponsesRefusalContent$outboundSchema, } from "./openairesponsesrefusalcontent.js";
7
+ import { ResponseOutputText$inboundSchema, ResponseOutputText$outboundSchema, } from "./responseoutputtext.js";
8
+ export const OutputMessageRole = {
9
+ Assistant: "assistant",
10
+ };
11
+ export const OutputMessageType = {
12
+ Message: "message",
13
+ };
14
+ export const OutputMessageStatusInProgress = {
15
+ InProgress: "in_progress",
16
+ };
17
+ export const OutputMessageStatusIncomplete = {
18
+ Incomplete: "incomplete",
19
+ };
20
+ export const OutputMessageStatusCompleted = {
21
+ Completed: "completed",
22
+ };
23
+ /** @internal */
24
+ export const OutputMessageRole$inboundSchema = z.enum(OutputMessageRole);
25
+ /** @internal */
26
+ export const OutputMessageRole$outboundSchema = OutputMessageRole$inboundSchema;
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export var OutputMessageRole$;
32
+ (function (OutputMessageRole$) {
33
+ /** @deprecated use `OutputMessageRole$inboundSchema` instead. */
34
+ OutputMessageRole$.inboundSchema = OutputMessageRole$inboundSchema;
35
+ /** @deprecated use `OutputMessageRole$outboundSchema` instead. */
36
+ OutputMessageRole$.outboundSchema = OutputMessageRole$outboundSchema;
37
+ })(OutputMessageRole$ || (OutputMessageRole$ = {}));
38
+ /** @internal */
39
+ export const OutputMessageType$inboundSchema = z.enum(OutputMessageType);
40
+ /** @internal */
41
+ export const OutputMessageType$outboundSchema = OutputMessageType$inboundSchema;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ export var OutputMessageType$;
47
+ (function (OutputMessageType$) {
48
+ /** @deprecated use `OutputMessageType$inboundSchema` instead. */
49
+ OutputMessageType$.inboundSchema = OutputMessageType$inboundSchema;
50
+ /** @deprecated use `OutputMessageType$outboundSchema` instead. */
51
+ OutputMessageType$.outboundSchema = OutputMessageType$outboundSchema;
52
+ })(OutputMessageType$ || (OutputMessageType$ = {}));
53
+ /** @internal */
54
+ export const OutputMessageStatusInProgress$inboundSchema = z.enum(OutputMessageStatusInProgress);
55
+ /** @internal */
56
+ export const OutputMessageStatusInProgress$outboundSchema = OutputMessageStatusInProgress$inboundSchema;
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export var OutputMessageStatusInProgress$;
62
+ (function (OutputMessageStatusInProgress$) {
63
+ /** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
64
+ OutputMessageStatusInProgress$.inboundSchema = OutputMessageStatusInProgress$inboundSchema;
65
+ /** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
66
+ OutputMessageStatusInProgress$.outboundSchema = OutputMessageStatusInProgress$outboundSchema;
67
+ })(OutputMessageStatusInProgress$ || (OutputMessageStatusInProgress$ = {}));
68
+ /** @internal */
69
+ export const OutputMessageStatusIncomplete$inboundSchema = z.enum(OutputMessageStatusIncomplete);
70
+ /** @internal */
71
+ export const OutputMessageStatusIncomplete$outboundSchema = OutputMessageStatusIncomplete$inboundSchema;
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export var OutputMessageStatusIncomplete$;
77
+ (function (OutputMessageStatusIncomplete$) {
78
+ /** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
79
+ OutputMessageStatusIncomplete$.inboundSchema = OutputMessageStatusIncomplete$inboundSchema;
80
+ /** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
81
+ OutputMessageStatusIncomplete$.outboundSchema = OutputMessageStatusIncomplete$outboundSchema;
82
+ })(OutputMessageStatusIncomplete$ || (OutputMessageStatusIncomplete$ = {}));
83
+ /** @internal */
84
+ export const OutputMessageStatusCompleted$inboundSchema = z.enum(OutputMessageStatusCompleted);
85
+ /** @internal */
86
+ export const OutputMessageStatusCompleted$outboundSchema = OutputMessageStatusCompleted$inboundSchema;
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export var OutputMessageStatusCompleted$;
92
+ (function (OutputMessageStatusCompleted$) {
93
+ /** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
94
+ OutputMessageStatusCompleted$.inboundSchema = OutputMessageStatusCompleted$inboundSchema;
95
+ /** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
96
+ OutputMessageStatusCompleted$.outboundSchema = OutputMessageStatusCompleted$outboundSchema;
97
+ })(OutputMessageStatusCompleted$ || (OutputMessageStatusCompleted$ = {}));
98
+ /** @internal */
99
+ export const OutputMessageStatusUnion$inboundSchema = z.union([
100
+ OutputMessageStatusCompleted$inboundSchema,
101
+ OutputMessageStatusIncomplete$inboundSchema,
102
+ OutputMessageStatusInProgress$inboundSchema,
103
+ ]);
104
+ /** @internal */
105
+ export const OutputMessageStatusUnion$outboundSchema = z.union([
106
+ OutputMessageStatusCompleted$outboundSchema,
107
+ OutputMessageStatusIncomplete$outboundSchema,
108
+ OutputMessageStatusInProgress$outboundSchema,
109
+ ]);
110
+ /**
111
+ * @internal
112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
+ */
114
+ export var OutputMessageStatusUnion$;
115
+ (function (OutputMessageStatusUnion$) {
116
+ /** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
117
+ OutputMessageStatusUnion$.inboundSchema = OutputMessageStatusUnion$inboundSchema;
118
+ /** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
119
+ OutputMessageStatusUnion$.outboundSchema = OutputMessageStatusUnion$outboundSchema;
120
+ })(OutputMessageStatusUnion$ || (OutputMessageStatusUnion$ = {}));
121
+ export function outputMessageStatusUnionToJSON(outputMessageStatusUnion) {
122
+ return JSON.stringify(OutputMessageStatusUnion$outboundSchema.parse(outputMessageStatusUnion));
123
+ }
124
+ export function outputMessageStatusUnionFromJSON(jsonString) {
125
+ return safeParse(jsonString, (x) => OutputMessageStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageStatusUnion' from JSON`);
126
+ }
127
+ /** @internal */
128
+ export const OutputMessageContent$inboundSchema = z.union([
129
+ ResponseOutputText$inboundSchema,
130
+ OpenAIResponsesRefusalContent$inboundSchema,
131
+ ]);
132
+ /** @internal */
133
+ export const OutputMessageContent$outboundSchema = z.union([
134
+ ResponseOutputText$outboundSchema,
135
+ OpenAIResponsesRefusalContent$outboundSchema,
136
+ ]);
137
+ /**
138
+ * @internal
139
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
+ */
141
+ export var OutputMessageContent$;
142
+ (function (OutputMessageContent$) {
143
+ /** @deprecated use `OutputMessageContent$inboundSchema` instead. */
144
+ OutputMessageContent$.inboundSchema = OutputMessageContent$inboundSchema;
145
+ /** @deprecated use `OutputMessageContent$outboundSchema` instead. */
146
+ OutputMessageContent$.outboundSchema = OutputMessageContent$outboundSchema;
147
+ })(OutputMessageContent$ || (OutputMessageContent$ = {}));
148
+ export function outputMessageContentToJSON(outputMessageContent) {
149
+ return JSON.stringify(OutputMessageContent$outboundSchema.parse(outputMessageContent));
150
+ }
151
+ export function outputMessageContentFromJSON(jsonString) {
152
+ return safeParse(jsonString, (x) => OutputMessageContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageContent' from JSON`);
153
+ }
154
+ /** @internal */
155
+ export const OutputMessage$inboundSchema = z
156
+ .object({
157
+ id: z.string(),
158
+ role: OutputMessageRole$inboundSchema,
159
+ type: OutputMessageType$inboundSchema,
160
+ status: z.union([
161
+ OutputMessageStatusCompleted$inboundSchema,
162
+ OutputMessageStatusIncomplete$inboundSchema,
163
+ OutputMessageStatusInProgress$inboundSchema,
164
+ ]).optional(),
165
+ content: z.array(z.union([
166
+ ResponseOutputText$inboundSchema,
167
+ OpenAIResponsesRefusalContent$inboundSchema,
168
+ ])),
169
+ });
170
+ /** @internal */
171
+ export const OutputMessage$outboundSchema = z.object({
172
+ id: z.string(),
173
+ role: OutputMessageRole$outboundSchema,
174
+ type: OutputMessageType$outboundSchema,
175
+ status: z.union([
176
+ OutputMessageStatusCompleted$outboundSchema,
177
+ OutputMessageStatusIncomplete$outboundSchema,
178
+ OutputMessageStatusInProgress$outboundSchema,
179
+ ]).optional(),
180
+ content: z.array(z.union([
181
+ ResponseOutputText$outboundSchema,
182
+ OpenAIResponsesRefusalContent$outboundSchema,
183
+ ])),
184
+ });
185
+ /**
186
+ * @internal
187
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
188
+ */
189
+ export var OutputMessage$;
190
+ (function (OutputMessage$) {
191
+ /** @deprecated use `OutputMessage$inboundSchema` instead. */
192
+ OutputMessage$.inboundSchema = OutputMessage$inboundSchema;
193
+ /** @deprecated use `OutputMessage$outboundSchema` instead. */
194
+ OutputMessage$.outboundSchema = OutputMessage$outboundSchema;
195
+ })(OutputMessage$ || (OutputMessage$ = {}));
196
+ export function outputMessageToJSON(outputMessage) {
197
+ return JSON.stringify(OutputMessage$outboundSchema.parse(outputMessage));
198
+ }
199
+ export function outputMessageFromJSON(jsonString) {
200
+ return safeParse(jsonString, (x) => OutputMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessage' from JSON`);
201
+ }
202
+ //# sourceMappingURL=outputmessage.js.map
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const OutputModality: {
4
+ readonly Text: "text";
5
+ readonly Image: "image";
6
+ readonly Embeddings: "embeddings";
7
+ };
8
+ export type OutputModality = OpenEnum<typeof OutputModality>;
9
+ /** @internal */
10
+ export declare const OutputModality$inboundSchema: z.ZodType<OutputModality, unknown>;
11
+ /** @internal */
12
+ export declare const OutputModality$outboundSchema: z.ZodType<OutputModality, OutputModality>;
13
+ /**
14
+ * @internal
15
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
+ */
17
+ export declare namespace OutputModality$ {
18
+ /** @deprecated use `OutputModality$inboundSchema` instead. */
19
+ const inboundSchema: z.ZodType<OutputModality, unknown, z.core.$ZodTypeInternals<OutputModality, unknown>>;
20
+ /** @deprecated use `OutputModality$outboundSchema` instead. */
21
+ const outboundSchema: z.ZodType<OutputModality, OutputModality, z.core.$ZodTypeInternals<OutputModality, OutputModality>>;
22
+ }
23
+ //# sourceMappingURL=outputmodality.d.ts.map
@@ -0,0 +1,33 @@
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 OutputModality = {
7
+ Text: "text",
8
+ Image: "image",
9
+ Embeddings: "embeddings",
10
+ };
11
+ /** @internal */
12
+ export const OutputModality$inboundSchema = z
13
+ .union([
14
+ z.enum(OutputModality),
15
+ z.string().transform(catchUnrecognizedEnum),
16
+ ]);
17
+ /** @internal */
18
+ export const OutputModality$outboundSchema = z.union([
19
+ z.enum(OutputModality),
20
+ z.string().and(z.custom()),
21
+ ]);
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export var OutputModality$;
27
+ (function (OutputModality$) {
28
+ /** @deprecated use `OutputModality$inboundSchema` instead. */
29
+ OutputModality$.inboundSchema = OutputModality$inboundSchema;
30
+ /** @deprecated use `OutputModality$outboundSchema` instead. */
31
+ OutputModality$.outboundSchema = OutputModality$outboundSchema;
32
+ })(OutputModality$ || (OutputModality$ = {}));
33
+ //# sourceMappingURL=outputmodality.js.map
@@ -0,0 +1,43 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const Parameter: {
4
+ readonly Temperature: "temperature";
5
+ readonly TopP: "top_p";
6
+ readonly TopK: "top_k";
7
+ readonly MinP: "min_p";
8
+ readonly TopA: "top_a";
9
+ readonly FrequencyPenalty: "frequency_penalty";
10
+ readonly PresencePenalty: "presence_penalty";
11
+ readonly RepetitionPenalty: "repetition_penalty";
12
+ readonly MaxTokens: "max_tokens";
13
+ readonly LogitBias: "logit_bias";
14
+ readonly Logprobs: "logprobs";
15
+ readonly TopLogprobs: "top_logprobs";
16
+ readonly Seed: "seed";
17
+ readonly ResponseFormat: "response_format";
18
+ readonly StructuredOutputs: "structured_outputs";
19
+ readonly Stop: "stop";
20
+ readonly Tools: "tools";
21
+ readonly ToolChoice: "tool_choice";
22
+ readonly ParallelToolCalls: "parallel_tool_calls";
23
+ readonly IncludeReasoning: "include_reasoning";
24
+ readonly Reasoning: "reasoning";
25
+ readonly WebSearchOptions: "web_search_options";
26
+ readonly Verbosity: "verbosity";
27
+ };
28
+ export type Parameter = OpenEnum<typeof Parameter>;
29
+ /** @internal */
30
+ export declare const Parameter$inboundSchema: z.ZodType<Parameter, unknown>;
31
+ /** @internal */
32
+ export declare const Parameter$outboundSchema: z.ZodType<Parameter, Parameter>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace Parameter$ {
38
+ /** @deprecated use `Parameter$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodType<Parameter, unknown, z.core.$ZodTypeInternals<Parameter, unknown>>;
40
+ /** @deprecated use `Parameter$outboundSchema` instead. */
41
+ const outboundSchema: z.ZodType<Parameter, Parameter, z.core.$ZodTypeInternals<Parameter, Parameter>>;
42
+ }
43
+ //# sourceMappingURL=parameter.d.ts.map
@@ -0,0 +1,54 @@
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 Parameter = {
7
+ Temperature: "temperature",
8
+ TopP: "top_p",
9
+ TopK: "top_k",
10
+ MinP: "min_p",
11
+ TopA: "top_a",
12
+ FrequencyPenalty: "frequency_penalty",
13
+ PresencePenalty: "presence_penalty",
14
+ RepetitionPenalty: "repetition_penalty",
15
+ MaxTokens: "max_tokens",
16
+ LogitBias: "logit_bias",
17
+ Logprobs: "logprobs",
18
+ TopLogprobs: "top_logprobs",
19
+ Seed: "seed",
20
+ ResponseFormat: "response_format",
21
+ StructuredOutputs: "structured_outputs",
22
+ Stop: "stop",
23
+ Tools: "tools",
24
+ ToolChoice: "tool_choice",
25
+ ParallelToolCalls: "parallel_tool_calls",
26
+ IncludeReasoning: "include_reasoning",
27
+ Reasoning: "reasoning",
28
+ WebSearchOptions: "web_search_options",
29
+ Verbosity: "verbosity",
30
+ };
31
+ /** @internal */
32
+ export const Parameter$inboundSchema = z
33
+ .union([
34
+ z.enum(Parameter),
35
+ z.string().transform(catchUnrecognizedEnum),
36
+ ]);
37
+ /** @internal */
38
+ export const Parameter$outboundSchema = z
39
+ .union([
40
+ z.enum(Parameter),
41
+ z.string().and(z.custom()),
42
+ ]);
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export var Parameter$;
48
+ (function (Parameter$) {
49
+ /** @deprecated use `Parameter$inboundSchema` instead. */
50
+ Parameter$.inboundSchema = Parameter$inboundSchema;
51
+ /** @deprecated use `Parameter$outboundSchema` instead. */
52
+ Parameter$.outboundSchema = Parameter$outboundSchema;
53
+ })(Parameter$ || (Parameter$ = {}));
54
+ //# sourceMappingURL=parameter.js.map