@openrouter/sdk 0.0.1-beta.9 → 0.0.1

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 (355) hide show
  1. package/FUNCTIONS.md +109 -1
  2. package/REACT_QUERY.md +109 -1
  3. package/README.md +52 -396
  4. package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
  5. package/esm/funcs/analyticsGetUserActivity.js +2 -2
  6. package/esm/funcs/apiKeysCreate.d.ts +1 -1
  7. package/esm/funcs/apiKeysCreate.js +2 -2
  8. package/esm/funcs/apiKeysDelete.d.ts +1 -1
  9. package/esm/funcs/apiKeysDelete.js +2 -2
  10. package/esm/funcs/apiKeysGet.d.ts +1 -1
  11. package/esm/funcs/apiKeysGet.js +2 -2
  12. package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
  13. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
  14. package/esm/funcs/apiKeysList.d.ts +1 -1
  15. package/esm/funcs/apiKeysList.js +2 -2
  16. package/esm/funcs/apiKeysUpdate.d.ts +1 -1
  17. package/esm/funcs/apiKeysUpdate.js +2 -2
  18. package/esm/funcs/betaResponsesSend.d.ts +9 -1
  19. package/esm/funcs/betaResponsesSend.js +38 -14
  20. package/esm/funcs/chatSend.d.ts +7 -0
  21. package/esm/funcs/chatSend.js +1 -7
  22. package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
  23. package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
  24. package/esm/funcs/creditsGetCredits.d.ts +1 -1
  25. package/esm/funcs/creditsGetCredits.js +2 -2
  26. package/esm/funcs/endpointsList.d.ts +1 -1
  27. package/esm/funcs/endpointsList.js +2 -2
  28. package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
  29. package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
  30. package/esm/funcs/generationsGetGeneration.d.ts +1 -1
  31. package/esm/funcs/generationsGetGeneration.js +13 -2
  32. package/esm/funcs/modelsCount.d.ts +3 -2
  33. package/esm/funcs/modelsCount.js +7 -3
  34. package/esm/funcs/modelsList.d.ts +3 -1
  35. package/esm/funcs/modelsList.js +8 -7
  36. package/esm/funcs/modelsListForUser.d.ts +3 -1
  37. package/esm/funcs/modelsListForUser.js +7 -3
  38. package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
  39. package/esm/funcs/oAuthCreateAuthCode.js +82 -0
  40. package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
  41. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
  42. package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
  43. package/esm/funcs/parametersGetParameters.d.ts +1 -1
  44. package/esm/funcs/parametersGetParameters.js +2 -2
  45. package/esm/funcs/providersList.d.ts +1 -1
  46. package/esm/funcs/providersList.js +1 -1
  47. package/esm/lib/config.d.ts +3 -3
  48. package/esm/lib/config.js +3 -3
  49. package/esm/lib/event-streams.d.ts +1 -1
  50. package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
  51. package/esm/models/badgatewayresponseerrordata.js +35 -0
  52. package/esm/models/badrequestresponseerrordata.d.ts +40 -0
  53. package/esm/models/badrequestresponseerrordata.js +35 -0
  54. package/esm/models/chatgenerationparams.d.ts +12 -12
  55. package/esm/models/chatgenerationparams.js +16 -16
  56. package/esm/models/chatgenerationtokenusage.d.ts +2 -2
  57. package/esm/models/chatgenerationtokenusage.js +2 -4
  58. package/esm/models/chatmessagetokenlogprob.d.ts +15 -15
  59. package/esm/models/chatmessagetokenlogprob.js +16 -15
  60. package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
  61. package/esm/models/chatstreamingresponsechunk.js +15 -15
  62. package/esm/models/completioncreateparams.d.ts +2 -2
  63. package/esm/models/completioncreateparams.js +2 -2
  64. package/esm/models/createchargerequest.d.ts +31 -2
  65. package/esm/models/createchargerequest.js +47 -2
  66. package/esm/models/defaultparameters.d.ts +36 -0
  67. package/esm/models/defaultparameters.js +46 -0
  68. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
  69. package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
  70. package/esm/models/endpointstatus.d.ts +26 -0
  71. package/esm/models/endpointstatus.js +36 -0
  72. package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
  73. package/esm/models/errors/badgatewayresponseerror.js +63 -0
  74. package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
  75. package/esm/models/errors/badrequestresponseerror.js +63 -0
  76. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
  77. package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
  78. package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
  79. package/esm/models/errors/forbiddenresponseerror.js +63 -0
  80. package/esm/models/errors/index.d.ts +14 -2
  81. package/esm/models/errors/index.js +14 -2
  82. package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
  83. package/esm/models/errors/internalserverresponseerror.js +63 -0
  84. package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
  85. package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
  86. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
  87. package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
  88. package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
  89. package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
  90. package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
  91. package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
  92. package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
  93. package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
  94. package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
  95. package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
  96. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
  97. package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
  98. package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
  99. package/esm/models/errors/unauthorizedresponseerror.js +63 -0
  100. package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
  101. package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
  102. package/esm/models/filecitation.d.ts +58 -0
  103. package/esm/models/filecitation.js +65 -0
  104. package/esm/models/filepath.d.ts +56 -0
  105. package/esm/models/filepath.js +64 -0
  106. package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
  107. package/esm/models/forbiddenresponseerrordata.js +35 -0
  108. package/esm/models/index.d.ts +67 -23
  109. package/esm/models/index.js +67 -23
  110. package/esm/models/inputmodality.d.ts +25 -0
  111. package/esm/models/inputmodality.js +35 -0
  112. package/esm/models/instructtype.d.ts +48 -0
  113. package/esm/models/instructtype.js +55 -0
  114. package/esm/models/internalserverresponseerrordata.d.ts +40 -0
  115. package/esm/models/internalserverresponseerrordata.js +35 -0
  116. package/esm/models/listendpointsresponse.d.ts +126 -2
  117. package/esm/models/listendpointsresponse.js +115 -2
  118. package/esm/models/model.d.ts +101 -0
  119. package/esm/models/model.js +82 -0
  120. package/esm/models/modelarchitecture.d.ts +104 -0
  121. package/esm/models/modelarchitecture.js +107 -0
  122. package/esm/models/modelgroup.d.ts +45 -0
  123. package/esm/models/modelgroup.js +53 -0
  124. package/esm/models/modelscountresponse.d.ts +40 -2
  125. package/esm/models/modelscountresponse.js +31 -2
  126. package/esm/models/modelslistresponse.d.ts +10 -2
  127. package/esm/models/modelslistresponse.js +7 -2
  128. package/esm/models/notfoundresponseerrordata.d.ts +40 -0
  129. package/esm/models/notfoundresponseerrordata.js +35 -0
  130. package/esm/models/openairesponsesannotation.d.ts +28 -0
  131. package/esm/models/openairesponsesannotation.js +38 -0
  132. package/esm/models/openairesponsesincludable.d.ts +25 -0
  133. package/esm/models/openairesponsesincludable.js +35 -0
  134. package/esm/models/openairesponsesincompletedetails.d.ts +49 -0
  135. package/esm/models/openairesponsesincompletedetails.js +58 -0
  136. package/esm/models/openairesponsesinputunion.d.ts +588 -0
  137. package/esm/models/openairesponsesinputunion.js +686 -0
  138. package/esm/models/openairesponsesprompt.d.ts +83 -0
  139. package/esm/models/openairesponsesprompt.js +97 -0
  140. package/esm/models/openairesponsesreasoningconfig.d.ts +33 -0
  141. package/esm/models/openairesponsesreasoningconfig.js +35 -0
  142. package/esm/models/openairesponsesreasoningeffort.d.ts +24 -0
  143. package/esm/models/openairesponsesreasoningeffort.js +34 -0
  144. package/esm/models/openairesponsesrefusalcontent.d.ts +54 -0
  145. package/esm/models/openairesponsesrefusalcontent.js +51 -0
  146. package/esm/models/openairesponsesresponsestatus.d.ts +26 -0
  147. package/esm/models/openairesponsesresponsestatus.js +36 -0
  148. package/esm/models/openairesponsesservicetier.d.ts +25 -0
  149. package/esm/models/openairesponsesservicetier.js +35 -0
  150. package/esm/models/openairesponsestoolchoiceunion.d.ts +231 -0
  151. package/esm/models/openairesponsestoolchoiceunion.js +233 -0
  152. package/esm/models/openairesponsestruncation.d.ts +22 -0
  153. package/esm/models/openairesponsestruncation.js +32 -0
  154. package/esm/models/openresponseseasyinputmessage.d.ts +75 -19
  155. package/esm/models/openresponseseasyinputmessage.js +105 -16
  156. package/esm/models/openresponseserrorevent.d.ts +63 -0
  157. package/esm/models/openresponseserrorevent.js +66 -0
  158. package/esm/models/openresponsesimagegencallcompleted.d.ts +61 -0
  159. package/esm/models/openresponsesimagegencallcompleted.js +68 -0
  160. package/esm/models/openresponsesimagegencallgenerating.d.ts +61 -0
  161. package/esm/models/openresponsesimagegencallgenerating.js +68 -0
  162. package/esm/models/openresponsesimagegencallinprogress.d.ts +61 -0
  163. package/esm/models/openresponsesimagegencallinprogress.js +68 -0
  164. package/esm/models/openresponsesimagegencallpartialimage.d.ts +65 -0
  165. package/esm/models/openresponsesimagegencallpartialimage.js +76 -0
  166. package/esm/models/openresponsesinput.d.ts +36 -5
  167. package/esm/models/openresponsesinput.js +82 -5
  168. package/esm/models/openresponsesinputmessageitem.d.ts +52 -8
  169. package/esm/models/openresponsesinputmessageitem.js +68 -5
  170. package/esm/models/openresponseslogprobs.d.ts +3 -32
  171. package/esm/models/openresponseslogprobs.js +3 -29
  172. package/esm/models/openresponsesnonstreamingresponse.d.ts +93 -123
  173. package/esm/models/openresponsesnonstreamingresponse.js +111 -145
  174. package/esm/models/openresponsesreasoning.d.ts +89 -0
  175. package/esm/models/openresponsesreasoning.js +93 -0
  176. package/esm/models/openresponsesreasoningconfig.d.ts +2 -23
  177. package/esm/models/openresponsesreasoningconfig.js +3 -33
  178. package/esm/models/openresponsesreasoningdeltaevent.d.ts +65 -0
  179. package/esm/models/openresponsesreasoningdeltaevent.js +74 -0
  180. package/esm/models/openresponsesreasoningdoneevent.d.ts +65 -0
  181. package/esm/models/openresponsesreasoningdoneevent.js +74 -0
  182. package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +66 -0
  183. package/esm/models/openresponsesreasoningsummarypartaddedevent.js +75 -0
  184. package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +65 -0
  185. package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +74 -0
  186. package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +65 -0
  187. package/esm/models/openresponsesreasoningsummarytextdoneevent.js +74 -0
  188. package/esm/models/openresponsesrequest.d.ts +736 -2
  189. package/esm/models/openresponsesrequest.js +789 -2
  190. package/esm/models/openresponsesresponsetext.d.ts +59 -0
  191. package/esm/models/openresponsesresponsetext.js +64 -0
  192. package/esm/models/openresponsesstreamevent.d.ts +25 -612
  193. package/esm/models/openresponsesstreamevent.js +51 -742
  194. package/esm/models/openresponsestoplogprobs.d.ts +34 -0
  195. package/esm/models/openresponsestoplogprobs.js +33 -0
  196. package/esm/models/{responsesusage.d.ts → openresponsesusage.d.ts} +14 -14
  197. package/esm/models/{responsesusage.js → openresponsesusage.js} +14 -14
  198. package/esm/models/operations/createauthkeyscode.d.ts +145 -0
  199. package/esm/models/operations/createauthkeyscode.js +146 -0
  200. package/esm/models/operations/createresponses.d.ts +58 -0
  201. package/esm/models/operations/createresponses.js +80 -0
  202. package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
  203. package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
  204. package/esm/models/operations/getmodels.d.ts +0 -26
  205. package/esm/models/operations/getmodels.js +0 -38
  206. package/esm/models/operations/getparameters.d.ts +1 -0
  207. package/esm/models/operations/getparameters.js +1 -0
  208. package/esm/models/operations/index.d.ts +3 -2
  209. package/esm/models/operations/index.js +3 -2
  210. package/esm/models/operations/listendpointszdr.d.ts +3 -24
  211. package/esm/models/operations/listendpointszdr.js +2 -29
  212. package/esm/models/operations/listmodelsuser.d.ts +0 -22
  213. package/esm/models/operations/listmodelsuser.js +0 -28
  214. package/esm/models/operations/listproviders.d.ts +0 -36
  215. package/esm/models/operations/listproviders.js +0 -28
  216. package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
  217. package/esm/models/operations/sendchatcompletionrequest.js +2 -1
  218. package/esm/models/outputitemimagegenerationcall.d.ts +59 -0
  219. package/esm/models/outputitemimagegenerationcall.js +56 -0
  220. package/esm/models/outputmessage.d.ts +192 -0
  221. package/esm/models/outputmessage.js +202 -0
  222. package/esm/models/outputmodality.d.ts +23 -0
  223. package/esm/models/outputmodality.js +33 -0
  224. package/esm/models/parameter.d.ts +43 -0
  225. package/esm/models/parameter.js +54 -0
  226. package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
  227. package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
  228. package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
  229. package/esm/models/paymentrequiredresponseerrordata.js +35 -0
  230. package/esm/models/perrequestlimits.d.ts +40 -0
  231. package/esm/models/perrequestlimits.js +44 -0
  232. package/esm/models/providername.d.ts +106 -0
  233. package/esm/models/providername.js +116 -0
  234. package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
  235. package/esm/models/provideroverloadedresponseerrordata.js +35 -0
  236. package/esm/models/publicendpoint.d.ts +140 -2
  237. package/esm/models/publicendpoint.js +156 -2
  238. package/esm/models/publicpricing.d.ts +87 -0
  239. package/esm/models/publicpricing.js +73 -0
  240. package/esm/models/quantization.d.ts +29 -0
  241. package/esm/models/quantization.js +39 -0
  242. package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
  243. package/esm/models/requesttimeoutresponseerrordata.js +35 -0
  244. package/esm/models/responseformattextconfig.d.ts +31 -0
  245. package/esm/models/responseformattextconfig.js +38 -0
  246. package/esm/models/responseinputfile.d.ts +63 -0
  247. package/esm/models/responseinputfile.js +70 -0
  248. package/esm/models/responseinputimage.d.ts +79 -0
  249. package/esm/models/responseinputimage.js +90 -0
  250. package/esm/models/responseinputtext.d.ts +57 -0
  251. package/esm/models/responseinputtext.js +51 -0
  252. package/esm/models/responseoutputtext.d.ts +57 -0
  253. package/esm/models/responseoutputtext.js +54 -0
  254. package/esm/models/responseserrorfield.d.ts +25 -10
  255. package/esm/models/responseserrorfield.js +29 -14
  256. package/esm/models/responsesformatjsonobject.d.ts +55 -0
  257. package/esm/models/responsesformatjsonobject.js +49 -0
  258. package/esm/models/responsesformattext.d.ts +55 -0
  259. package/esm/models/responsesformattext.js +49 -0
  260. package/esm/models/responsesformattextjsonschemaconfig.d.ts +67 -0
  261. package/esm/models/responsesformattextjsonschemaconfig.js +57 -0
  262. package/esm/models/responsesoutputitemfunctioncall.d.ts +89 -0
  263. package/esm/models/responsesoutputitemfunctioncall.js +93 -0
  264. package/esm/models/responsesoutputitemreasoning.d.ts +92 -0
  265. package/esm/models/responsesoutputitemreasoning.js +93 -0
  266. package/esm/models/responsesoutputmessage.d.ts +45 -42
  267. package/esm/models/responsesoutputmessage.js +76 -65
  268. package/esm/models/responsetextconfig.d.ts +59 -0
  269. package/esm/models/responsetextconfig.js +62 -0
  270. package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
  271. package/esm/models/serviceunavailableresponseerrordata.js +35 -0
  272. package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
  273. package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
  274. package/esm/models/topproviderinfo.d.ts +45 -0
  275. package/esm/models/topproviderinfo.js +48 -0
  276. package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
  277. package/esm/models/unauthorizedresponseerrordata.js +35 -0
  278. package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
  279. package/esm/models/unprocessableentityresponseerrordata.js +35 -0
  280. package/esm/models/urlcitation.d.ts +60 -0
  281. package/esm/models/urlcitation.js +69 -0
  282. package/esm/react-query/betaResponsesSend.d.ts +1 -1
  283. package/esm/react-query/index.d.ts +2 -0
  284. package/esm/react-query/index.js +2 -0
  285. package/esm/react-query/modelsCount.d.ts +2 -2
  286. package/esm/react-query/modelsList.d.ts +2 -7
  287. package/esm/react-query/modelsList.js +0 -2
  288. package/esm/react-query/modelsListForUser.d.ts +2 -1
  289. package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
  290. package/esm/react-query/oAuthCreateAuthCode.js +42 -0
  291. package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
  292. package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
  293. package/esm/sdk/chat.d.ts +7 -0
  294. package/esm/sdk/chat.js +0 -6
  295. package/esm/sdk/models.d.ts +4 -3
  296. package/esm/sdk/oauth.d.ts +46 -0
  297. package/esm/sdk/oauth.js +67 -0
  298. package/esm/sdk/responses.d.ts +8 -1
  299. package/esm/sdk/responses.js +0 -6
  300. package/esm/sdk/sdk.d.ts +3 -0
  301. package/esm/sdk/sdk.js +4 -0
  302. package/jsr.json +1 -1
  303. package/package.json +3 -1
  304. package/vitest.config.ts +26 -0
  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
@@ -0,0 +1,231 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview: {
6
+ readonly WebSearchPreview: "web_search_preview";
7
+ };
8
+ export type OpenAIResponsesToolChoiceTypeWebSearchPreview = ClosedEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview>;
9
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311: {
10
+ readonly WebSearchPreview20250311: "web_search_preview_2025_03_11";
11
+ };
12
+ export type OpenAIResponsesToolChoiceTypeWebSearchPreview20250311 = ClosedEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview20250311>;
13
+ export type Type = OpenAIResponsesToolChoiceTypeWebSearchPreview20250311 | OpenAIResponsesToolChoiceTypeWebSearchPreview;
14
+ export type OpenAIResponsesToolChoice = {
15
+ type: OpenAIResponsesToolChoiceTypeWebSearchPreview20250311 | OpenAIResponsesToolChoiceTypeWebSearchPreview;
16
+ };
17
+ export declare const OpenAIResponsesToolChoiceTypeFunction: {
18
+ readonly Function: "function";
19
+ };
20
+ export type OpenAIResponsesToolChoiceTypeFunction = ClosedEnum<typeof OpenAIResponsesToolChoiceTypeFunction>;
21
+ export type OpenAIResponsesToolChoiceFunction = {
22
+ type: OpenAIResponsesToolChoiceTypeFunction;
23
+ name: string;
24
+ };
25
+ export declare const OpenAIResponsesToolChoiceRequired: {
26
+ readonly Required: "required";
27
+ };
28
+ export type OpenAIResponsesToolChoiceRequired = ClosedEnum<typeof OpenAIResponsesToolChoiceRequired>;
29
+ export declare const OpenAIResponsesToolChoiceNone: {
30
+ readonly None: "none";
31
+ };
32
+ export type OpenAIResponsesToolChoiceNone = ClosedEnum<typeof OpenAIResponsesToolChoiceNone>;
33
+ export declare const OpenAIResponsesToolChoiceAuto: {
34
+ readonly Auto: "auto";
35
+ };
36
+ export type OpenAIResponsesToolChoiceAuto = ClosedEnum<typeof OpenAIResponsesToolChoiceAuto>;
37
+ export type OpenAIResponsesToolChoiceUnion = OpenAIResponsesToolChoiceFunction | OpenAIResponsesToolChoice | OpenAIResponsesToolChoiceAuto | OpenAIResponsesToolChoiceNone | OpenAIResponsesToolChoiceRequired;
38
+ /** @internal */
39
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview>;
40
+ /** @internal */
41
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview>;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ export declare namespace OpenAIResponsesToolChoiceTypeWebSearchPreview$ {
47
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema` instead. */
48
+ const inboundSchema: z.ZodEnum<{
49
+ readonly WebSearchPreview: "web_search_preview";
50
+ }>;
51
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema` instead. */
52
+ const outboundSchema: z.ZodEnum<{
53
+ readonly WebSearchPreview: "web_search_preview";
54
+ }>;
55
+ }
56
+ /** @internal */
57
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview20250311>;
58
+ /** @internal */
59
+ export declare const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeWebSearchPreview20250311>;
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export declare namespace OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$ {
65
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema` instead. */
66
+ const inboundSchema: z.ZodEnum<{
67
+ readonly WebSearchPreview20250311: "web_search_preview_2025_03_11";
68
+ }>;
69
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema` instead. */
70
+ const outboundSchema: z.ZodEnum<{
71
+ readonly WebSearchPreview20250311: "web_search_preview_2025_03_11";
72
+ }>;
73
+ }
74
+ /** @internal */
75
+ export declare const Type$inboundSchema: z.ZodType<Type, unknown>;
76
+ /** @internal */
77
+ export type Type$Outbound = string | string;
78
+ /** @internal */
79
+ export declare const Type$outboundSchema: z.ZodType<Type$Outbound, Type>;
80
+ /**
81
+ * @internal
82
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
+ */
84
+ export declare namespace Type$ {
85
+ /** @deprecated use `Type$inboundSchema` instead. */
86
+ const inboundSchema: z.ZodType<Type, unknown, z.core.$ZodTypeInternals<Type, unknown>>;
87
+ /** @deprecated use `Type$outboundSchema` instead. */
88
+ const outboundSchema: z.ZodType<string, Type, z.core.$ZodTypeInternals<string, Type>>;
89
+ /** @deprecated use `Type$Outbound` instead. */
90
+ type Outbound = Type$Outbound;
91
+ }
92
+ export declare function typeToJSON(type: Type): string;
93
+ export declare function typeFromJSON(jsonString: string): SafeParseResult<Type, SDKValidationError>;
94
+ /** @internal */
95
+ export declare const OpenAIResponsesToolChoice$inboundSchema: z.ZodType<OpenAIResponsesToolChoice, unknown>;
96
+ /** @internal */
97
+ export type OpenAIResponsesToolChoice$Outbound = {
98
+ type: string | string;
99
+ };
100
+ /** @internal */
101
+ export declare const OpenAIResponsesToolChoice$outboundSchema: z.ZodType<OpenAIResponsesToolChoice$Outbound, OpenAIResponsesToolChoice>;
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export declare namespace OpenAIResponsesToolChoice$ {
107
+ /** @deprecated use `OpenAIResponsesToolChoice$inboundSchema` instead. */
108
+ const inboundSchema: z.ZodType<OpenAIResponsesToolChoice, unknown, z.core.$ZodTypeInternals<OpenAIResponsesToolChoice, unknown>>;
109
+ /** @deprecated use `OpenAIResponsesToolChoice$outboundSchema` instead. */
110
+ const outboundSchema: z.ZodType<OpenAIResponsesToolChoice$Outbound, OpenAIResponsesToolChoice, z.core.$ZodTypeInternals<OpenAIResponsesToolChoice$Outbound, OpenAIResponsesToolChoice>>;
111
+ /** @deprecated use `OpenAIResponsesToolChoice$Outbound` instead. */
112
+ type Outbound = OpenAIResponsesToolChoice$Outbound;
113
+ }
114
+ export declare function openAIResponsesToolChoiceToJSON(openAIResponsesToolChoice: OpenAIResponsesToolChoice): string;
115
+ export declare function openAIResponsesToolChoiceFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesToolChoice, SDKValidationError>;
116
+ /** @internal */
117
+ export declare const OpenAIResponsesToolChoiceTypeFunction$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeFunction>;
118
+ /** @internal */
119
+ export declare const OpenAIResponsesToolChoiceTypeFunction$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceTypeFunction>;
120
+ /**
121
+ * @internal
122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
+ */
124
+ export declare namespace OpenAIResponsesToolChoiceTypeFunction$ {
125
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeFunction$inboundSchema` instead. */
126
+ const inboundSchema: z.ZodEnum<{
127
+ readonly Function: "function";
128
+ }>;
129
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeFunction$outboundSchema` instead. */
130
+ const outboundSchema: z.ZodEnum<{
131
+ readonly Function: "function";
132
+ }>;
133
+ }
134
+ /** @internal */
135
+ export declare const OpenAIResponsesToolChoiceFunction$inboundSchema: z.ZodType<OpenAIResponsesToolChoiceFunction, unknown>;
136
+ /** @internal */
137
+ export type OpenAIResponsesToolChoiceFunction$Outbound = {
138
+ type: string;
139
+ name: string;
140
+ };
141
+ /** @internal */
142
+ export declare const OpenAIResponsesToolChoiceFunction$outboundSchema: z.ZodType<OpenAIResponsesToolChoiceFunction$Outbound, OpenAIResponsesToolChoiceFunction>;
143
+ /**
144
+ * @internal
145
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
+ */
147
+ export declare namespace OpenAIResponsesToolChoiceFunction$ {
148
+ /** @deprecated use `OpenAIResponsesToolChoiceFunction$inboundSchema` instead. */
149
+ const inboundSchema: z.ZodType<OpenAIResponsesToolChoiceFunction, unknown, z.core.$ZodTypeInternals<OpenAIResponsesToolChoiceFunction, unknown>>;
150
+ /** @deprecated use `OpenAIResponsesToolChoiceFunction$outboundSchema` instead. */
151
+ const outboundSchema: z.ZodType<OpenAIResponsesToolChoiceFunction$Outbound, OpenAIResponsesToolChoiceFunction, z.core.$ZodTypeInternals<OpenAIResponsesToolChoiceFunction$Outbound, OpenAIResponsesToolChoiceFunction>>;
152
+ /** @deprecated use `OpenAIResponsesToolChoiceFunction$Outbound` instead. */
153
+ type Outbound = OpenAIResponsesToolChoiceFunction$Outbound;
154
+ }
155
+ export declare function openAIResponsesToolChoiceFunctionToJSON(openAIResponsesToolChoiceFunction: OpenAIResponsesToolChoiceFunction): string;
156
+ export declare function openAIResponsesToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesToolChoiceFunction, SDKValidationError>;
157
+ /** @internal */
158
+ export declare const OpenAIResponsesToolChoiceRequired$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceRequired>;
159
+ /** @internal */
160
+ export declare const OpenAIResponsesToolChoiceRequired$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceRequired>;
161
+ /**
162
+ * @internal
163
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
164
+ */
165
+ export declare namespace OpenAIResponsesToolChoiceRequired$ {
166
+ /** @deprecated use `OpenAIResponsesToolChoiceRequired$inboundSchema` instead. */
167
+ const inboundSchema: z.ZodEnum<{
168
+ readonly Required: "required";
169
+ }>;
170
+ /** @deprecated use `OpenAIResponsesToolChoiceRequired$outboundSchema` instead. */
171
+ const outboundSchema: z.ZodEnum<{
172
+ readonly Required: "required";
173
+ }>;
174
+ }
175
+ /** @internal */
176
+ export declare const OpenAIResponsesToolChoiceNone$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceNone>;
177
+ /** @internal */
178
+ export declare const OpenAIResponsesToolChoiceNone$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceNone>;
179
+ /**
180
+ * @internal
181
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
182
+ */
183
+ export declare namespace OpenAIResponsesToolChoiceNone$ {
184
+ /** @deprecated use `OpenAIResponsesToolChoiceNone$inboundSchema` instead. */
185
+ const inboundSchema: z.ZodEnum<{
186
+ readonly None: "none";
187
+ }>;
188
+ /** @deprecated use `OpenAIResponsesToolChoiceNone$outboundSchema` instead. */
189
+ const outboundSchema: z.ZodEnum<{
190
+ readonly None: "none";
191
+ }>;
192
+ }
193
+ /** @internal */
194
+ export declare const OpenAIResponsesToolChoiceAuto$inboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceAuto>;
195
+ /** @internal */
196
+ export declare const OpenAIResponsesToolChoiceAuto$outboundSchema: z.ZodEnum<typeof OpenAIResponsesToolChoiceAuto>;
197
+ /**
198
+ * @internal
199
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
200
+ */
201
+ export declare namespace OpenAIResponsesToolChoiceAuto$ {
202
+ /** @deprecated use `OpenAIResponsesToolChoiceAuto$inboundSchema` instead. */
203
+ const inboundSchema: z.ZodEnum<{
204
+ readonly Auto: "auto";
205
+ }>;
206
+ /** @deprecated use `OpenAIResponsesToolChoiceAuto$outboundSchema` instead. */
207
+ const outboundSchema: z.ZodEnum<{
208
+ readonly Auto: "auto";
209
+ }>;
210
+ }
211
+ /** @internal */
212
+ export declare const OpenAIResponsesToolChoiceUnion$inboundSchema: z.ZodType<OpenAIResponsesToolChoiceUnion, unknown>;
213
+ /** @internal */
214
+ export type OpenAIResponsesToolChoiceUnion$Outbound = OpenAIResponsesToolChoiceFunction$Outbound | OpenAIResponsesToolChoice$Outbound | string | string | string;
215
+ /** @internal */
216
+ export declare const OpenAIResponsesToolChoiceUnion$outboundSchema: z.ZodType<OpenAIResponsesToolChoiceUnion$Outbound, OpenAIResponsesToolChoiceUnion>;
217
+ /**
218
+ * @internal
219
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
220
+ */
221
+ export declare namespace OpenAIResponsesToolChoiceUnion$ {
222
+ /** @deprecated use `OpenAIResponsesToolChoiceUnion$inboundSchema` instead. */
223
+ const inboundSchema: z.ZodType<OpenAIResponsesToolChoiceUnion, unknown, z.core.$ZodTypeInternals<OpenAIResponsesToolChoiceUnion, unknown>>;
224
+ /** @deprecated use `OpenAIResponsesToolChoiceUnion$outboundSchema` instead. */
225
+ const outboundSchema: z.ZodType<OpenAIResponsesToolChoiceUnion$Outbound, OpenAIResponsesToolChoiceUnion, z.core.$ZodTypeInternals<OpenAIResponsesToolChoiceUnion$Outbound, OpenAIResponsesToolChoiceUnion>>;
226
+ /** @deprecated use `OpenAIResponsesToolChoiceUnion$Outbound` instead. */
227
+ type Outbound = OpenAIResponsesToolChoiceUnion$Outbound;
228
+ }
229
+ export declare function openAIResponsesToolChoiceUnionToJSON(openAIResponsesToolChoiceUnion: OpenAIResponsesToolChoiceUnion): string;
230
+ export declare function openAIResponsesToolChoiceUnionFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesToolChoiceUnion, SDKValidationError>;
231
+ //# sourceMappingURL=openairesponsestoolchoiceunion.d.ts.map
@@ -0,0 +1,233 @@
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
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview = {
7
+ WebSearchPreview: "web_search_preview",
8
+ };
9
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311 = {
10
+ WebSearchPreview20250311: "web_search_preview_2025_03_11",
11
+ };
12
+ export const OpenAIResponsesToolChoiceTypeFunction = {
13
+ Function: "function",
14
+ };
15
+ export const OpenAIResponsesToolChoiceRequired = {
16
+ Required: "required",
17
+ };
18
+ export const OpenAIResponsesToolChoiceNone = {
19
+ None: "none",
20
+ };
21
+ export const OpenAIResponsesToolChoiceAuto = {
22
+ Auto: "auto",
23
+ };
24
+ /** @internal */
25
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema = z.enum(OpenAIResponsesToolChoiceTypeWebSearchPreview);
26
+ /** @internal */
27
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema;
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export var OpenAIResponsesToolChoiceTypeWebSearchPreview$;
33
+ (function (OpenAIResponsesToolChoiceTypeWebSearchPreview$) {
34
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema` instead. */
35
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$.inboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema;
36
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema` instead. */
37
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$.outboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema;
38
+ })(OpenAIResponsesToolChoiceTypeWebSearchPreview$ || (OpenAIResponsesToolChoiceTypeWebSearchPreview$ = {}));
39
+ /** @internal */
40
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema = z
41
+ .enum(OpenAIResponsesToolChoiceTypeWebSearchPreview20250311);
42
+ /** @internal */
43
+ export const OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema;
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 OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$;
49
+ (function (OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$) {
50
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema` instead. */
51
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$.inboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema;
52
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema` instead. */
53
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$.outboundSchema = OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema;
54
+ })(OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$ || (OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$ = {}));
55
+ /** @internal */
56
+ export const Type$inboundSchema = z.union([
57
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema,
58
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema,
59
+ ]);
60
+ /** @internal */
61
+ export const Type$outboundSchema = z.union([
62
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema,
63
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema,
64
+ ]);
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export var Type$;
70
+ (function (Type$) {
71
+ /** @deprecated use `Type$inboundSchema` instead. */
72
+ Type$.inboundSchema = Type$inboundSchema;
73
+ /** @deprecated use `Type$outboundSchema` instead. */
74
+ Type$.outboundSchema = Type$outboundSchema;
75
+ })(Type$ || (Type$ = {}));
76
+ export function typeToJSON(type) {
77
+ return JSON.stringify(Type$outboundSchema.parse(type));
78
+ }
79
+ export function typeFromJSON(jsonString) {
80
+ return safeParse(jsonString, (x) => Type$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Type' from JSON`);
81
+ }
82
+ /** @internal */
83
+ export const OpenAIResponsesToolChoice$inboundSchema = z.object({
84
+ type: z.union([
85
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$inboundSchema,
86
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$inboundSchema,
87
+ ]),
88
+ });
89
+ /** @internal */
90
+ export const OpenAIResponsesToolChoice$outboundSchema = z.object({
91
+ type: z.union([
92
+ OpenAIResponsesToolChoiceTypeWebSearchPreview20250311$outboundSchema,
93
+ OpenAIResponsesToolChoiceTypeWebSearchPreview$outboundSchema,
94
+ ]),
95
+ });
96
+ /**
97
+ * @internal
98
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
99
+ */
100
+ export var OpenAIResponsesToolChoice$;
101
+ (function (OpenAIResponsesToolChoice$) {
102
+ /** @deprecated use `OpenAIResponsesToolChoice$inboundSchema` instead. */
103
+ OpenAIResponsesToolChoice$.inboundSchema = OpenAIResponsesToolChoice$inboundSchema;
104
+ /** @deprecated use `OpenAIResponsesToolChoice$outboundSchema` instead. */
105
+ OpenAIResponsesToolChoice$.outboundSchema = OpenAIResponsesToolChoice$outboundSchema;
106
+ })(OpenAIResponsesToolChoice$ || (OpenAIResponsesToolChoice$ = {}));
107
+ export function openAIResponsesToolChoiceToJSON(openAIResponsesToolChoice) {
108
+ return JSON.stringify(OpenAIResponsesToolChoice$outboundSchema.parse(openAIResponsesToolChoice));
109
+ }
110
+ export function openAIResponsesToolChoiceFromJSON(jsonString) {
111
+ return safeParse(jsonString, (x) => OpenAIResponsesToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesToolChoice' from JSON`);
112
+ }
113
+ /** @internal */
114
+ export const OpenAIResponsesToolChoiceTypeFunction$inboundSchema = z.enum(OpenAIResponsesToolChoiceTypeFunction);
115
+ /** @internal */
116
+ export const OpenAIResponsesToolChoiceTypeFunction$outboundSchema = OpenAIResponsesToolChoiceTypeFunction$inboundSchema;
117
+ /**
118
+ * @internal
119
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
120
+ */
121
+ export var OpenAIResponsesToolChoiceTypeFunction$;
122
+ (function (OpenAIResponsesToolChoiceTypeFunction$) {
123
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeFunction$inboundSchema` instead. */
124
+ OpenAIResponsesToolChoiceTypeFunction$.inboundSchema = OpenAIResponsesToolChoiceTypeFunction$inboundSchema;
125
+ /** @deprecated use `OpenAIResponsesToolChoiceTypeFunction$outboundSchema` instead. */
126
+ OpenAIResponsesToolChoiceTypeFunction$.outboundSchema = OpenAIResponsesToolChoiceTypeFunction$outboundSchema;
127
+ })(OpenAIResponsesToolChoiceTypeFunction$ || (OpenAIResponsesToolChoiceTypeFunction$ = {}));
128
+ /** @internal */
129
+ export const OpenAIResponsesToolChoiceFunction$inboundSchema = z.object({
130
+ type: OpenAIResponsesToolChoiceTypeFunction$inboundSchema,
131
+ name: z.string(),
132
+ });
133
+ /** @internal */
134
+ export const OpenAIResponsesToolChoiceFunction$outboundSchema = z.object({
135
+ type: OpenAIResponsesToolChoiceTypeFunction$outboundSchema,
136
+ name: z.string(),
137
+ });
138
+ /**
139
+ * @internal
140
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
141
+ */
142
+ export var OpenAIResponsesToolChoiceFunction$;
143
+ (function (OpenAIResponsesToolChoiceFunction$) {
144
+ /** @deprecated use `OpenAIResponsesToolChoiceFunction$inboundSchema` instead. */
145
+ OpenAIResponsesToolChoiceFunction$.inboundSchema = OpenAIResponsesToolChoiceFunction$inboundSchema;
146
+ /** @deprecated use `OpenAIResponsesToolChoiceFunction$outboundSchema` instead. */
147
+ OpenAIResponsesToolChoiceFunction$.outboundSchema = OpenAIResponsesToolChoiceFunction$outboundSchema;
148
+ })(OpenAIResponsesToolChoiceFunction$ || (OpenAIResponsesToolChoiceFunction$ = {}));
149
+ export function openAIResponsesToolChoiceFunctionToJSON(openAIResponsesToolChoiceFunction) {
150
+ return JSON.stringify(OpenAIResponsesToolChoiceFunction$outboundSchema.parse(openAIResponsesToolChoiceFunction));
151
+ }
152
+ export function openAIResponsesToolChoiceFunctionFromJSON(jsonString) {
153
+ return safeParse(jsonString, (x) => OpenAIResponsesToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesToolChoiceFunction' from JSON`);
154
+ }
155
+ /** @internal */
156
+ export const OpenAIResponsesToolChoiceRequired$inboundSchema = z.enum(OpenAIResponsesToolChoiceRequired);
157
+ /** @internal */
158
+ export const OpenAIResponsesToolChoiceRequired$outboundSchema = OpenAIResponsesToolChoiceRequired$inboundSchema;
159
+ /**
160
+ * @internal
161
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
162
+ */
163
+ export var OpenAIResponsesToolChoiceRequired$;
164
+ (function (OpenAIResponsesToolChoiceRequired$) {
165
+ /** @deprecated use `OpenAIResponsesToolChoiceRequired$inboundSchema` instead. */
166
+ OpenAIResponsesToolChoiceRequired$.inboundSchema = OpenAIResponsesToolChoiceRequired$inboundSchema;
167
+ /** @deprecated use `OpenAIResponsesToolChoiceRequired$outboundSchema` instead. */
168
+ OpenAIResponsesToolChoiceRequired$.outboundSchema = OpenAIResponsesToolChoiceRequired$outboundSchema;
169
+ })(OpenAIResponsesToolChoiceRequired$ || (OpenAIResponsesToolChoiceRequired$ = {}));
170
+ /** @internal */
171
+ export const OpenAIResponsesToolChoiceNone$inboundSchema = z.enum(OpenAIResponsesToolChoiceNone);
172
+ /** @internal */
173
+ export const OpenAIResponsesToolChoiceNone$outboundSchema = OpenAIResponsesToolChoiceNone$inboundSchema;
174
+ /**
175
+ * @internal
176
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
177
+ */
178
+ export var OpenAIResponsesToolChoiceNone$;
179
+ (function (OpenAIResponsesToolChoiceNone$) {
180
+ /** @deprecated use `OpenAIResponsesToolChoiceNone$inboundSchema` instead. */
181
+ OpenAIResponsesToolChoiceNone$.inboundSchema = OpenAIResponsesToolChoiceNone$inboundSchema;
182
+ /** @deprecated use `OpenAIResponsesToolChoiceNone$outboundSchema` instead. */
183
+ OpenAIResponsesToolChoiceNone$.outboundSchema = OpenAIResponsesToolChoiceNone$outboundSchema;
184
+ })(OpenAIResponsesToolChoiceNone$ || (OpenAIResponsesToolChoiceNone$ = {}));
185
+ /** @internal */
186
+ export const OpenAIResponsesToolChoiceAuto$inboundSchema = z.enum(OpenAIResponsesToolChoiceAuto);
187
+ /** @internal */
188
+ export const OpenAIResponsesToolChoiceAuto$outboundSchema = OpenAIResponsesToolChoiceAuto$inboundSchema;
189
+ /**
190
+ * @internal
191
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
192
+ */
193
+ export var OpenAIResponsesToolChoiceAuto$;
194
+ (function (OpenAIResponsesToolChoiceAuto$) {
195
+ /** @deprecated use `OpenAIResponsesToolChoiceAuto$inboundSchema` instead. */
196
+ OpenAIResponsesToolChoiceAuto$.inboundSchema = OpenAIResponsesToolChoiceAuto$inboundSchema;
197
+ /** @deprecated use `OpenAIResponsesToolChoiceAuto$outboundSchema` instead. */
198
+ OpenAIResponsesToolChoiceAuto$.outboundSchema = OpenAIResponsesToolChoiceAuto$outboundSchema;
199
+ })(OpenAIResponsesToolChoiceAuto$ || (OpenAIResponsesToolChoiceAuto$ = {}));
200
+ /** @internal */
201
+ export const OpenAIResponsesToolChoiceUnion$inboundSchema = z.union([
202
+ z.lazy(() => OpenAIResponsesToolChoiceFunction$inboundSchema),
203
+ z.lazy(() => OpenAIResponsesToolChoice$inboundSchema),
204
+ OpenAIResponsesToolChoiceAuto$inboundSchema,
205
+ OpenAIResponsesToolChoiceNone$inboundSchema,
206
+ OpenAIResponsesToolChoiceRequired$inboundSchema,
207
+ ]);
208
+ /** @internal */
209
+ export const OpenAIResponsesToolChoiceUnion$outboundSchema = z.union([
210
+ z.lazy(() => OpenAIResponsesToolChoiceFunction$outboundSchema),
211
+ z.lazy(() => OpenAIResponsesToolChoice$outboundSchema),
212
+ OpenAIResponsesToolChoiceAuto$outboundSchema,
213
+ OpenAIResponsesToolChoiceNone$outboundSchema,
214
+ OpenAIResponsesToolChoiceRequired$outboundSchema,
215
+ ]);
216
+ /**
217
+ * @internal
218
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
219
+ */
220
+ export var OpenAIResponsesToolChoiceUnion$;
221
+ (function (OpenAIResponsesToolChoiceUnion$) {
222
+ /** @deprecated use `OpenAIResponsesToolChoiceUnion$inboundSchema` instead. */
223
+ OpenAIResponsesToolChoiceUnion$.inboundSchema = OpenAIResponsesToolChoiceUnion$inboundSchema;
224
+ /** @deprecated use `OpenAIResponsesToolChoiceUnion$outboundSchema` instead. */
225
+ OpenAIResponsesToolChoiceUnion$.outboundSchema = OpenAIResponsesToolChoiceUnion$outboundSchema;
226
+ })(OpenAIResponsesToolChoiceUnion$ || (OpenAIResponsesToolChoiceUnion$ = {}));
227
+ export function openAIResponsesToolChoiceUnionToJSON(openAIResponsesToolChoiceUnion) {
228
+ return JSON.stringify(OpenAIResponsesToolChoiceUnion$outboundSchema.parse(openAIResponsesToolChoiceUnion));
229
+ }
230
+ export function openAIResponsesToolChoiceUnionFromJSON(jsonString) {
231
+ return safeParse(jsonString, (x) => OpenAIResponsesToolChoiceUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesToolChoiceUnion' from JSON`);
232
+ }
233
+ //# sourceMappingURL=openairesponsestoolchoiceunion.js.map
@@ -0,0 +1,22 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const OpenAIResponsesTruncation: {
4
+ readonly Auto: "auto";
5
+ readonly Disabled: "disabled";
6
+ };
7
+ export type OpenAIResponsesTruncation = OpenEnum<typeof OpenAIResponsesTruncation>;
8
+ /** @internal */
9
+ export declare const OpenAIResponsesTruncation$inboundSchema: z.ZodType<OpenAIResponsesTruncation, unknown>;
10
+ /** @internal */
11
+ export declare const OpenAIResponsesTruncation$outboundSchema: z.ZodType<OpenAIResponsesTruncation, OpenAIResponsesTruncation>;
12
+ /**
13
+ * @internal
14
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
15
+ */
16
+ export declare namespace OpenAIResponsesTruncation$ {
17
+ /** @deprecated use `OpenAIResponsesTruncation$inboundSchema` instead. */
18
+ const inboundSchema: z.ZodType<OpenAIResponsesTruncation, unknown, z.core.$ZodTypeInternals<OpenAIResponsesTruncation, unknown>>;
19
+ /** @deprecated use `OpenAIResponsesTruncation$outboundSchema` instead. */
20
+ const outboundSchema: z.ZodType<OpenAIResponsesTruncation, OpenAIResponsesTruncation, z.core.$ZodTypeInternals<OpenAIResponsesTruncation, OpenAIResponsesTruncation>>;
21
+ }
22
+ //# sourceMappingURL=openairesponsestruncation.d.ts.map
@@ -0,0 +1,32 @@
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 OpenAIResponsesTruncation = {
7
+ Auto: "auto",
8
+ Disabled: "disabled",
9
+ };
10
+ /** @internal */
11
+ export const OpenAIResponsesTruncation$inboundSchema = z
12
+ .union([
13
+ z.enum(OpenAIResponsesTruncation),
14
+ z.string().transform(catchUnrecognizedEnum),
15
+ ]);
16
+ /** @internal */
17
+ export const OpenAIResponsesTruncation$outboundSchema = z.union([
18
+ z.enum(OpenAIResponsesTruncation),
19
+ z.string().and(z.custom()),
20
+ ]);
21
+ /**
22
+ * @internal
23
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
+ */
25
+ export var OpenAIResponsesTruncation$;
26
+ (function (OpenAIResponsesTruncation$) {
27
+ /** @deprecated use `OpenAIResponsesTruncation$inboundSchema` instead. */
28
+ OpenAIResponsesTruncation$.inboundSchema = OpenAIResponsesTruncation$inboundSchema;
29
+ /** @deprecated use `OpenAIResponsesTruncation$outboundSchema` instead. */
30
+ OpenAIResponsesTruncation$.outboundSchema = OpenAIResponsesTruncation$outboundSchema;
31
+ })(OpenAIResponsesTruncation$ || (OpenAIResponsesTruncation$ = {}));
32
+ //# sourceMappingURL=openairesponsestruncation.js.map
@@ -2,7 +2,9 @@ import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- import { OpenResponsesInputContent, OpenResponsesInputContent$Outbound } from "./openresponsesinputcontent.js";
5
+ import { ResponseInputFile, ResponseInputFile$Outbound } from "./responseinputfile.js";
6
+ import { ResponseInputImage, ResponseInputImage$Outbound } from "./responseinputimage.js";
7
+ import { ResponseInputText, ResponseInputText$Outbound } from "./responseinputtext.js";
6
8
  export declare const OpenResponsesEasyInputMessageType: {
7
9
  readonly Message: "message";
8
10
  };
@@ -24,14 +26,30 @@ export declare const OpenResponsesEasyInputMessageRoleUser: {
24
26
  };
25
27
  export type OpenResponsesEasyInputMessageRoleUser = ClosedEnum<typeof OpenResponsesEasyInputMessageRoleUser>;
26
28
  export type OpenResponsesEasyInputMessageRoleUnion = OpenResponsesEasyInputMessageRoleUser | OpenResponsesEasyInputMessageRoleSystem | OpenResponsesEasyInputMessageRoleAssistant | OpenResponsesEasyInputMessageRoleDeveloper;
27
- export type OpenResponsesEasyInputMessageContent = Array<OpenResponsesInputContent> | string;
28
- /**
29
- * Simplified input message format that accepts string or array content
30
- */
29
+ export type OpenResponsesEasyInputMessageContent1 = (ResponseInputText & {
30
+ type: "input_text";
31
+ }) | (ResponseInputImage & {
32
+ type: "input_image";
33
+ }) | (ResponseInputFile & {
34
+ type: "input_file";
35
+ });
36
+ export type OpenResponsesEasyInputMessageContent2 = Array<(ResponseInputText & {
37
+ type: "input_text";
38
+ }) | (ResponseInputImage & {
39
+ type: "input_image";
40
+ }) | (ResponseInputFile & {
41
+ type: "input_file";
42
+ })> | string;
31
43
  export type OpenResponsesEasyInputMessage = {
32
44
  type?: OpenResponsesEasyInputMessageType | undefined;
33
45
  role: OpenResponsesEasyInputMessageRoleUser | OpenResponsesEasyInputMessageRoleSystem | OpenResponsesEasyInputMessageRoleAssistant | OpenResponsesEasyInputMessageRoleDeveloper;
34
- content: Array<OpenResponsesInputContent> | string;
46
+ content: Array<(ResponseInputText & {
47
+ type: "input_text";
48
+ }) | (ResponseInputImage & {
49
+ type: "input_image";
50
+ }) | (ResponseInputFile & {
51
+ type: "input_file";
52
+ })> | string;
35
53
  };
36
54
  /** @internal */
37
55
  export declare const OpenResponsesEasyInputMessageType$inboundSchema: z.ZodEnum<typeof OpenResponsesEasyInputMessageType>;
@@ -144,32 +162,70 @@ export declare namespace OpenResponsesEasyInputMessageRoleUnion$ {
144
162
  export declare function openResponsesEasyInputMessageRoleUnionToJSON(openResponsesEasyInputMessageRoleUnion: OpenResponsesEasyInputMessageRoleUnion): string;
145
163
  export declare function openResponsesEasyInputMessageRoleUnionFromJSON(jsonString: string): SafeParseResult<OpenResponsesEasyInputMessageRoleUnion, SDKValidationError>;
146
164
  /** @internal */
147
- export declare const OpenResponsesEasyInputMessageContent$inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent, unknown>;
165
+ export declare const OpenResponsesEasyInputMessageContent1$inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent1, unknown>;
166
+ /** @internal */
167
+ export type OpenResponsesEasyInputMessageContent1$Outbound = (ResponseInputText$Outbound & {
168
+ type: "input_text";
169
+ }) | (ResponseInputImage$Outbound & {
170
+ type: "input_image";
171
+ }) | (ResponseInputFile$Outbound & {
172
+ type: "input_file";
173
+ });
174
+ /** @internal */
175
+ export declare const OpenResponsesEasyInputMessageContent1$outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent1$Outbound, OpenResponsesEasyInputMessageContent1>;
176
+ /**
177
+ * @internal
178
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
+ */
180
+ export declare namespace OpenResponsesEasyInputMessageContent1$ {
181
+ /** @deprecated use `OpenResponsesEasyInputMessageContent1$inboundSchema` instead. */
182
+ const inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent1, unknown, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent1, unknown>>;
183
+ /** @deprecated use `OpenResponsesEasyInputMessageContent1$outboundSchema` instead. */
184
+ const outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent1$Outbound, OpenResponsesEasyInputMessageContent1, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent1$Outbound, OpenResponsesEasyInputMessageContent1>>;
185
+ /** @deprecated use `OpenResponsesEasyInputMessageContent1$Outbound` instead. */
186
+ type Outbound = OpenResponsesEasyInputMessageContent1$Outbound;
187
+ }
188
+ export declare function openResponsesEasyInputMessageContent1ToJSON(openResponsesEasyInputMessageContent1: OpenResponsesEasyInputMessageContent1): string;
189
+ export declare function openResponsesEasyInputMessageContent1FromJSON(jsonString: string): SafeParseResult<OpenResponsesEasyInputMessageContent1, SDKValidationError>;
190
+ /** @internal */
191
+ export declare const OpenResponsesEasyInputMessageContent2$inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent2, unknown>;
148
192
  /** @internal */
149
- export type OpenResponsesEasyInputMessageContent$Outbound = Array<OpenResponsesInputContent$Outbound> | string;
193
+ export type OpenResponsesEasyInputMessageContent2$Outbound = Array<(ResponseInputText$Outbound & {
194
+ type: "input_text";
195
+ }) | (ResponseInputImage$Outbound & {
196
+ type: "input_image";
197
+ }) | (ResponseInputFile$Outbound & {
198
+ type: "input_file";
199
+ })> | string;
150
200
  /** @internal */
151
- export declare const OpenResponsesEasyInputMessageContent$outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent$Outbound, OpenResponsesEasyInputMessageContent>;
201
+ export declare const OpenResponsesEasyInputMessageContent2$outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent2$Outbound, OpenResponsesEasyInputMessageContent2>;
152
202
  /**
153
203
  * @internal
154
204
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
205
  */
156
- export declare namespace OpenResponsesEasyInputMessageContent$ {
157
- /** @deprecated use `OpenResponsesEasyInputMessageContent$inboundSchema` instead. */
158
- const inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent, unknown, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent, unknown>>;
159
- /** @deprecated use `OpenResponsesEasyInputMessageContent$outboundSchema` instead. */
160
- const outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent$Outbound, OpenResponsesEasyInputMessageContent, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent$Outbound, OpenResponsesEasyInputMessageContent>>;
161
- /** @deprecated use `OpenResponsesEasyInputMessageContent$Outbound` instead. */
162
- type Outbound = OpenResponsesEasyInputMessageContent$Outbound;
206
+ export declare namespace OpenResponsesEasyInputMessageContent2$ {
207
+ /** @deprecated use `OpenResponsesEasyInputMessageContent2$inboundSchema` instead. */
208
+ const inboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent2, unknown, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent2, unknown>>;
209
+ /** @deprecated use `OpenResponsesEasyInputMessageContent2$outboundSchema` instead. */
210
+ const outboundSchema: z.ZodType<OpenResponsesEasyInputMessageContent2$Outbound, OpenResponsesEasyInputMessageContent2, z.core.$ZodTypeInternals<OpenResponsesEasyInputMessageContent2$Outbound, OpenResponsesEasyInputMessageContent2>>;
211
+ /** @deprecated use `OpenResponsesEasyInputMessageContent2$Outbound` instead. */
212
+ type Outbound = OpenResponsesEasyInputMessageContent2$Outbound;
163
213
  }
164
- export declare function openResponsesEasyInputMessageContentToJSON(openResponsesEasyInputMessageContent: OpenResponsesEasyInputMessageContent): string;
165
- export declare function openResponsesEasyInputMessageContentFromJSON(jsonString: string): SafeParseResult<OpenResponsesEasyInputMessageContent, SDKValidationError>;
214
+ export declare function openResponsesEasyInputMessageContent2ToJSON(openResponsesEasyInputMessageContent2: OpenResponsesEasyInputMessageContent2): string;
215
+ export declare function openResponsesEasyInputMessageContent2FromJSON(jsonString: string): SafeParseResult<OpenResponsesEasyInputMessageContent2, SDKValidationError>;
166
216
  /** @internal */
167
217
  export declare const OpenResponsesEasyInputMessage$inboundSchema: z.ZodType<OpenResponsesEasyInputMessage, unknown>;
168
218
  /** @internal */
169
219
  export type OpenResponsesEasyInputMessage$Outbound = {
170
220
  type?: string | undefined;
171
221
  role: string | string | string | string;
172
- content: Array<OpenResponsesInputContent$Outbound> | string;
222
+ content: Array<(ResponseInputText$Outbound & {
223
+ type: "input_text";
224
+ }) | (ResponseInputImage$Outbound & {
225
+ type: "input_image";
226
+ }) | (ResponseInputFile$Outbound & {
227
+ type: "input_file";
228
+ })> | string;
173
229
  };
174
230
  /** @internal */
175
231
  export declare const OpenResponsesEasyInputMessage$outboundSchema: z.ZodType<OpenResponsesEasyInputMessage$Outbound, OpenResponsesEasyInputMessage>;