@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
@@ -4,41 +4,56 @@
4
4
  import * as z from "zod/v4";
5
5
  import { safeParse } from "../lib/schemas.js";
6
6
  import { catchUnrecognizedEnum, } from "../types/enums.js";
7
- export const ResponsesErrorFieldCode = {
7
+ export const CodeEnum = {
8
8
  ServerError: "server_error",
9
9
  RateLimitExceeded: "rate_limit_exceeded",
10
10
  InvalidPrompt: "invalid_prompt",
11
+ VectorStoreTimeout: "vector_store_timeout",
12
+ InvalidImage: "invalid_image",
13
+ InvalidImageFormat: "invalid_image_format",
14
+ InvalidBase64Image: "invalid_base64_image",
15
+ InvalidImageUrl: "invalid_image_url",
16
+ ImageTooLarge: "image_too_large",
17
+ ImageTooSmall: "image_too_small",
18
+ ImageParseError: "image_parse_error",
19
+ ImageContentPolicyViolation: "image_content_policy_violation",
20
+ InvalidImageMode: "invalid_image_mode",
21
+ ImageFileTooLarge: "image_file_too_large",
22
+ UnsupportedImageMediaType: "unsupported_image_media_type",
23
+ EmptyImageFile: "empty_image_file",
24
+ FailedToDownloadImage: "failed_to_download_image",
25
+ ImageFileNotFound: "image_file_not_found",
11
26
  };
12
27
  /** @internal */
13
- export const ResponsesErrorFieldCode$inboundSchema = z
28
+ export const CodeEnum$inboundSchema = z
14
29
  .union([
15
- z.enum(ResponsesErrorFieldCode),
30
+ z.enum(CodeEnum),
16
31
  z.string().transform(catchUnrecognizedEnum),
17
32
  ]);
18
33
  /** @internal */
19
- export const ResponsesErrorFieldCode$outboundSchema = z.union([
20
- z.enum(ResponsesErrorFieldCode),
34
+ export const CodeEnum$outboundSchema = z.union([
35
+ z.enum(CodeEnum),
21
36
  z.string().and(z.custom()),
22
37
  ]);
23
38
  /**
24
39
  * @internal
25
40
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
41
  */
27
- export var ResponsesErrorFieldCode$;
28
- (function (ResponsesErrorFieldCode$) {
29
- /** @deprecated use `ResponsesErrorFieldCode$inboundSchema` instead. */
30
- ResponsesErrorFieldCode$.inboundSchema = ResponsesErrorFieldCode$inboundSchema;
31
- /** @deprecated use `ResponsesErrorFieldCode$outboundSchema` instead. */
32
- ResponsesErrorFieldCode$.outboundSchema = ResponsesErrorFieldCode$outboundSchema;
33
- })(ResponsesErrorFieldCode$ || (ResponsesErrorFieldCode$ = {}));
42
+ export var CodeEnum$;
43
+ (function (CodeEnum$) {
44
+ /** @deprecated use `CodeEnum$inboundSchema` instead. */
45
+ CodeEnum$.inboundSchema = CodeEnum$inboundSchema;
46
+ /** @deprecated use `CodeEnum$outboundSchema` instead. */
47
+ CodeEnum$.outboundSchema = CodeEnum$outboundSchema;
48
+ })(CodeEnum$ || (CodeEnum$ = {}));
34
49
  /** @internal */
35
50
  export const ResponsesErrorField$inboundSchema = z.object({
36
- code: ResponsesErrorFieldCode$inboundSchema,
51
+ code: CodeEnum$inboundSchema,
37
52
  message: z.string(),
38
53
  });
39
54
  /** @internal */
40
55
  export const ResponsesErrorField$outboundSchema = z.object({
41
- code: ResponsesErrorFieldCode$outboundSchema,
56
+ code: CodeEnum$outboundSchema,
42
57
  message: z.string(),
43
58
  });
44
59
  /**
@@ -0,0 +1,55 @@
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 ResponsesFormatJSONObjectType: {
6
+ readonly JsonObject: "json_object";
7
+ };
8
+ export type ResponsesFormatJSONObjectType = ClosedEnum<typeof ResponsesFormatJSONObjectType>;
9
+ /**
10
+ * JSON object response format
11
+ */
12
+ export type ResponsesFormatJSONObject = {
13
+ type: ResponsesFormatJSONObjectType;
14
+ };
15
+ /** @internal */
16
+ export declare const ResponsesFormatJSONObjectType$inboundSchema: z.ZodEnum<typeof ResponsesFormatJSONObjectType>;
17
+ /** @internal */
18
+ export declare const ResponsesFormatJSONObjectType$outboundSchema: z.ZodEnum<typeof ResponsesFormatJSONObjectType>;
19
+ /**
20
+ * @internal
21
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
+ */
23
+ export declare namespace ResponsesFormatJSONObjectType$ {
24
+ /** @deprecated use `ResponsesFormatJSONObjectType$inboundSchema` instead. */
25
+ const inboundSchema: z.ZodEnum<{
26
+ readonly JsonObject: "json_object";
27
+ }>;
28
+ /** @deprecated use `ResponsesFormatJSONObjectType$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodEnum<{
30
+ readonly JsonObject: "json_object";
31
+ }>;
32
+ }
33
+ /** @internal */
34
+ export declare const ResponsesFormatJSONObject$inboundSchema: z.ZodType<ResponsesFormatJSONObject, unknown>;
35
+ /** @internal */
36
+ export type ResponsesFormatJSONObject$Outbound = {
37
+ type: string;
38
+ };
39
+ /** @internal */
40
+ export declare const ResponsesFormatJSONObject$outboundSchema: z.ZodType<ResponsesFormatJSONObject$Outbound, ResponsesFormatJSONObject>;
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export declare namespace ResponsesFormatJSONObject$ {
46
+ /** @deprecated use `ResponsesFormatJSONObject$inboundSchema` instead. */
47
+ const inboundSchema: z.ZodType<ResponsesFormatJSONObject, unknown, z.core.$ZodTypeInternals<ResponsesFormatJSONObject, unknown>>;
48
+ /** @deprecated use `ResponsesFormatJSONObject$outboundSchema` instead. */
49
+ const outboundSchema: z.ZodType<ResponsesFormatJSONObject$Outbound, ResponsesFormatJSONObject, z.core.$ZodTypeInternals<ResponsesFormatJSONObject$Outbound, ResponsesFormatJSONObject>>;
50
+ /** @deprecated use `ResponsesFormatJSONObject$Outbound` instead. */
51
+ type Outbound = ResponsesFormatJSONObject$Outbound;
52
+ }
53
+ export declare function responsesFormatJSONObjectToJSON(responsesFormatJSONObject: ResponsesFormatJSONObject): string;
54
+ export declare function responsesFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<ResponsesFormatJSONObject, SDKValidationError>;
55
+ //# sourceMappingURL=responsesformatjsonobject.d.ts.map
@@ -0,0 +1,49 @@
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 ResponsesFormatJSONObjectType = {
7
+ JsonObject: "json_object",
8
+ };
9
+ /** @internal */
10
+ export const ResponsesFormatJSONObjectType$inboundSchema = z.enum(ResponsesFormatJSONObjectType);
11
+ /** @internal */
12
+ export const ResponsesFormatJSONObjectType$outboundSchema = ResponsesFormatJSONObjectType$inboundSchema;
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 var ResponsesFormatJSONObjectType$;
18
+ (function (ResponsesFormatJSONObjectType$) {
19
+ /** @deprecated use `ResponsesFormatJSONObjectType$inboundSchema` instead. */
20
+ ResponsesFormatJSONObjectType$.inboundSchema = ResponsesFormatJSONObjectType$inboundSchema;
21
+ /** @deprecated use `ResponsesFormatJSONObjectType$outboundSchema` instead. */
22
+ ResponsesFormatJSONObjectType$.outboundSchema = ResponsesFormatJSONObjectType$outboundSchema;
23
+ })(ResponsesFormatJSONObjectType$ || (ResponsesFormatJSONObjectType$ = {}));
24
+ /** @internal */
25
+ export const ResponsesFormatJSONObject$inboundSchema = z.object({
26
+ type: ResponsesFormatJSONObjectType$inboundSchema,
27
+ });
28
+ /** @internal */
29
+ export const ResponsesFormatJSONObject$outboundSchema = z.object({
30
+ type: ResponsesFormatJSONObjectType$outboundSchema,
31
+ });
32
+ /**
33
+ * @internal
34
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
+ */
36
+ export var ResponsesFormatJSONObject$;
37
+ (function (ResponsesFormatJSONObject$) {
38
+ /** @deprecated use `ResponsesFormatJSONObject$inboundSchema` instead. */
39
+ ResponsesFormatJSONObject$.inboundSchema = ResponsesFormatJSONObject$inboundSchema;
40
+ /** @deprecated use `ResponsesFormatJSONObject$outboundSchema` instead. */
41
+ ResponsesFormatJSONObject$.outboundSchema = ResponsesFormatJSONObject$outboundSchema;
42
+ })(ResponsesFormatJSONObject$ || (ResponsesFormatJSONObject$ = {}));
43
+ export function responsesFormatJSONObjectToJSON(responsesFormatJSONObject) {
44
+ return JSON.stringify(ResponsesFormatJSONObject$outboundSchema.parse(responsesFormatJSONObject));
45
+ }
46
+ export function responsesFormatJSONObjectFromJSON(jsonString) {
47
+ return safeParse(jsonString, (x) => ResponsesFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesFormatJSONObject' from JSON`);
48
+ }
49
+ //# sourceMappingURL=responsesformatjsonobject.js.map
@@ -0,0 +1,55 @@
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 ResponsesFormatTextType: {
6
+ readonly Text: "text";
7
+ };
8
+ export type ResponsesFormatTextType = ClosedEnum<typeof ResponsesFormatTextType>;
9
+ /**
10
+ * Plain text response format
11
+ */
12
+ export type ResponsesFormatText = {
13
+ type: ResponsesFormatTextType;
14
+ };
15
+ /** @internal */
16
+ export declare const ResponsesFormatTextType$inboundSchema: z.ZodEnum<typeof ResponsesFormatTextType>;
17
+ /** @internal */
18
+ export declare const ResponsesFormatTextType$outboundSchema: z.ZodEnum<typeof ResponsesFormatTextType>;
19
+ /**
20
+ * @internal
21
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
+ */
23
+ export declare namespace ResponsesFormatTextType$ {
24
+ /** @deprecated use `ResponsesFormatTextType$inboundSchema` instead. */
25
+ const inboundSchema: z.ZodEnum<{
26
+ readonly Text: "text";
27
+ }>;
28
+ /** @deprecated use `ResponsesFormatTextType$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodEnum<{
30
+ readonly Text: "text";
31
+ }>;
32
+ }
33
+ /** @internal */
34
+ export declare const ResponsesFormatText$inboundSchema: z.ZodType<ResponsesFormatText, unknown>;
35
+ /** @internal */
36
+ export type ResponsesFormatText$Outbound = {
37
+ type: string;
38
+ };
39
+ /** @internal */
40
+ export declare const ResponsesFormatText$outboundSchema: z.ZodType<ResponsesFormatText$Outbound, ResponsesFormatText>;
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export declare namespace ResponsesFormatText$ {
46
+ /** @deprecated use `ResponsesFormatText$inboundSchema` instead. */
47
+ const inboundSchema: z.ZodType<ResponsesFormatText, unknown, z.core.$ZodTypeInternals<ResponsesFormatText, unknown>>;
48
+ /** @deprecated use `ResponsesFormatText$outboundSchema` instead. */
49
+ const outboundSchema: z.ZodType<ResponsesFormatText$Outbound, ResponsesFormatText, z.core.$ZodTypeInternals<ResponsesFormatText$Outbound, ResponsesFormatText>>;
50
+ /** @deprecated use `ResponsesFormatText$Outbound` instead. */
51
+ type Outbound = ResponsesFormatText$Outbound;
52
+ }
53
+ export declare function responsesFormatTextToJSON(responsesFormatText: ResponsesFormatText): string;
54
+ export declare function responsesFormatTextFromJSON(jsonString: string): SafeParseResult<ResponsesFormatText, SDKValidationError>;
55
+ //# sourceMappingURL=responsesformattext.d.ts.map
@@ -0,0 +1,49 @@
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 ResponsesFormatTextType = {
7
+ Text: "text",
8
+ };
9
+ /** @internal */
10
+ export const ResponsesFormatTextType$inboundSchema = z.enum(ResponsesFormatTextType);
11
+ /** @internal */
12
+ export const ResponsesFormatTextType$outboundSchema = ResponsesFormatTextType$inboundSchema;
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 var ResponsesFormatTextType$;
18
+ (function (ResponsesFormatTextType$) {
19
+ /** @deprecated use `ResponsesFormatTextType$inboundSchema` instead. */
20
+ ResponsesFormatTextType$.inboundSchema = ResponsesFormatTextType$inboundSchema;
21
+ /** @deprecated use `ResponsesFormatTextType$outboundSchema` instead. */
22
+ ResponsesFormatTextType$.outboundSchema = ResponsesFormatTextType$outboundSchema;
23
+ })(ResponsesFormatTextType$ || (ResponsesFormatTextType$ = {}));
24
+ /** @internal */
25
+ export const ResponsesFormatText$inboundSchema = z.object({
26
+ type: ResponsesFormatTextType$inboundSchema,
27
+ });
28
+ /** @internal */
29
+ export const ResponsesFormatText$outboundSchema = z.object({
30
+ type: ResponsesFormatTextType$outboundSchema,
31
+ });
32
+ /**
33
+ * @internal
34
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
+ */
36
+ export var ResponsesFormatText$;
37
+ (function (ResponsesFormatText$) {
38
+ /** @deprecated use `ResponsesFormatText$inboundSchema` instead. */
39
+ ResponsesFormatText$.inboundSchema = ResponsesFormatText$inboundSchema;
40
+ /** @deprecated use `ResponsesFormatText$outboundSchema` instead. */
41
+ ResponsesFormatText$.outboundSchema = ResponsesFormatText$outboundSchema;
42
+ })(ResponsesFormatText$ || (ResponsesFormatText$ = {}));
43
+ export function responsesFormatTextToJSON(responsesFormatText) {
44
+ return JSON.stringify(ResponsesFormatText$outboundSchema.parse(responsesFormatText));
45
+ }
46
+ export function responsesFormatTextFromJSON(jsonString) {
47
+ return safeParse(jsonString, (x) => ResponsesFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesFormatText' from JSON`);
48
+ }
49
+ //# sourceMappingURL=responsesformattext.js.map
@@ -0,0 +1,67 @@
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 ResponsesFormatTextJSONSchemaConfigType: {
6
+ readonly JsonSchema: "json_schema";
7
+ };
8
+ export type ResponsesFormatTextJSONSchemaConfigType = ClosedEnum<typeof ResponsesFormatTextJSONSchemaConfigType>;
9
+ /**
10
+ * JSON schema constrained response format
11
+ */
12
+ export type ResponsesFormatTextJSONSchemaConfig = {
13
+ type: ResponsesFormatTextJSONSchemaConfigType;
14
+ name: string;
15
+ description?: string | undefined;
16
+ strict?: boolean | null | undefined;
17
+ schema: {
18
+ [k: string]: any | null;
19
+ };
20
+ };
21
+ /** @internal */
22
+ export declare const ResponsesFormatTextJSONSchemaConfigType$inboundSchema: z.ZodEnum<typeof ResponsesFormatTextJSONSchemaConfigType>;
23
+ /** @internal */
24
+ export declare const ResponsesFormatTextJSONSchemaConfigType$outboundSchema: z.ZodEnum<typeof ResponsesFormatTextJSONSchemaConfigType>;
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export declare namespace ResponsesFormatTextJSONSchemaConfigType$ {
30
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfigType$inboundSchema` instead. */
31
+ const inboundSchema: z.ZodEnum<{
32
+ readonly JsonSchema: "json_schema";
33
+ }>;
34
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfigType$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodEnum<{
36
+ readonly JsonSchema: "json_schema";
37
+ }>;
38
+ }
39
+ /** @internal */
40
+ export declare const ResponsesFormatTextJSONSchemaConfig$inboundSchema: z.ZodType<ResponsesFormatTextJSONSchemaConfig, unknown>;
41
+ /** @internal */
42
+ export type ResponsesFormatTextJSONSchemaConfig$Outbound = {
43
+ type: string;
44
+ name: string;
45
+ description?: string | undefined;
46
+ strict?: boolean | null | undefined;
47
+ schema: {
48
+ [k: string]: any | null;
49
+ };
50
+ };
51
+ /** @internal */
52
+ export declare const ResponsesFormatTextJSONSchemaConfig$outboundSchema: z.ZodType<ResponsesFormatTextJSONSchemaConfig$Outbound, ResponsesFormatTextJSONSchemaConfig>;
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export declare namespace ResponsesFormatTextJSONSchemaConfig$ {
58
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfig$inboundSchema` instead. */
59
+ const inboundSchema: z.ZodType<ResponsesFormatTextJSONSchemaConfig, unknown, z.core.$ZodTypeInternals<ResponsesFormatTextJSONSchemaConfig, unknown>>;
60
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfig$outboundSchema` instead. */
61
+ const outboundSchema: z.ZodType<ResponsesFormatTextJSONSchemaConfig$Outbound, ResponsesFormatTextJSONSchemaConfig, z.core.$ZodTypeInternals<ResponsesFormatTextJSONSchemaConfig$Outbound, ResponsesFormatTextJSONSchemaConfig>>;
62
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfig$Outbound` instead. */
63
+ type Outbound = ResponsesFormatTextJSONSchemaConfig$Outbound;
64
+ }
65
+ export declare function responsesFormatTextJSONSchemaConfigToJSON(responsesFormatTextJSONSchemaConfig: ResponsesFormatTextJSONSchemaConfig): string;
66
+ export declare function responsesFormatTextJSONSchemaConfigFromJSON(jsonString: string): SafeParseResult<ResponsesFormatTextJSONSchemaConfig, SDKValidationError>;
67
+ //# sourceMappingURL=responsesformattextjsonschemaconfig.d.ts.map
@@ -0,0 +1,57 @@
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 ResponsesFormatTextJSONSchemaConfigType = {
7
+ JsonSchema: "json_schema",
8
+ };
9
+ /** @internal */
10
+ export const ResponsesFormatTextJSONSchemaConfigType$inboundSchema = z.enum(ResponsesFormatTextJSONSchemaConfigType);
11
+ /** @internal */
12
+ export const ResponsesFormatTextJSONSchemaConfigType$outboundSchema = ResponsesFormatTextJSONSchemaConfigType$inboundSchema;
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 var ResponsesFormatTextJSONSchemaConfigType$;
18
+ (function (ResponsesFormatTextJSONSchemaConfigType$) {
19
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfigType$inboundSchema` instead. */
20
+ ResponsesFormatTextJSONSchemaConfigType$.inboundSchema = ResponsesFormatTextJSONSchemaConfigType$inboundSchema;
21
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfigType$outboundSchema` instead. */
22
+ ResponsesFormatTextJSONSchemaConfigType$.outboundSchema = ResponsesFormatTextJSONSchemaConfigType$outboundSchema;
23
+ })(ResponsesFormatTextJSONSchemaConfigType$ || (ResponsesFormatTextJSONSchemaConfigType$ = {}));
24
+ /** @internal */
25
+ export const ResponsesFormatTextJSONSchemaConfig$inboundSchema = z.object({
26
+ type: ResponsesFormatTextJSONSchemaConfigType$inboundSchema,
27
+ name: z.string(),
28
+ description: z.string().optional(),
29
+ strict: z.nullable(z.boolean()).optional(),
30
+ schema: z.record(z.string(), z.nullable(z.any())),
31
+ });
32
+ /** @internal */
33
+ export const ResponsesFormatTextJSONSchemaConfig$outboundSchema = z.object({
34
+ type: ResponsesFormatTextJSONSchemaConfigType$outboundSchema,
35
+ name: z.string(),
36
+ description: z.string().optional(),
37
+ strict: z.nullable(z.boolean()).optional(),
38
+ schema: z.record(z.string(), z.nullable(z.any())),
39
+ });
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 var ResponsesFormatTextJSONSchemaConfig$;
45
+ (function (ResponsesFormatTextJSONSchemaConfig$) {
46
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfig$inboundSchema` instead. */
47
+ ResponsesFormatTextJSONSchemaConfig$.inboundSchema = ResponsesFormatTextJSONSchemaConfig$inboundSchema;
48
+ /** @deprecated use `ResponsesFormatTextJSONSchemaConfig$outboundSchema` instead. */
49
+ ResponsesFormatTextJSONSchemaConfig$.outboundSchema = ResponsesFormatTextJSONSchemaConfig$outboundSchema;
50
+ })(ResponsesFormatTextJSONSchemaConfig$ || (ResponsesFormatTextJSONSchemaConfig$ = {}));
51
+ export function responsesFormatTextJSONSchemaConfigToJSON(responsesFormatTextJSONSchemaConfig) {
52
+ return JSON.stringify(ResponsesFormatTextJSONSchemaConfig$outboundSchema.parse(responsesFormatTextJSONSchemaConfig));
53
+ }
54
+ export function responsesFormatTextJSONSchemaConfigFromJSON(jsonString) {
55
+ return safeParse(jsonString, (x) => ResponsesFormatTextJSONSchemaConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesFormatTextJSONSchemaConfig' from JSON`);
56
+ }
57
+ //# sourceMappingURL=responsesformattextjsonschemaconfig.js.map
@@ -6,12 +6,26 @@ export declare const ResponsesOutputItemFunctionCallType: {
6
6
  readonly FunctionCall: "function_call";
7
7
  };
8
8
  export type ResponsesOutputItemFunctionCallType = ClosedEnum<typeof ResponsesOutputItemFunctionCallType>;
9
+ export declare const ResponsesOutputItemFunctionCallStatusInProgress: {
10
+ readonly InProgress: "in_progress";
11
+ };
12
+ export type ResponsesOutputItemFunctionCallStatusInProgress = ClosedEnum<typeof ResponsesOutputItemFunctionCallStatusInProgress>;
13
+ export declare const ResponsesOutputItemFunctionCallStatusIncomplete: {
14
+ readonly Incomplete: "incomplete";
15
+ };
16
+ export type ResponsesOutputItemFunctionCallStatusIncomplete = ClosedEnum<typeof ResponsesOutputItemFunctionCallStatusIncomplete>;
17
+ export declare const ResponsesOutputItemFunctionCallStatusCompleted: {
18
+ readonly Completed: "completed";
19
+ };
20
+ export type ResponsesOutputItemFunctionCallStatusCompleted = ClosedEnum<typeof ResponsesOutputItemFunctionCallStatusCompleted>;
21
+ export type ResponsesOutputItemFunctionCallStatusUnion = ResponsesOutputItemFunctionCallStatusCompleted | ResponsesOutputItemFunctionCallStatusIncomplete | ResponsesOutputItemFunctionCallStatusInProgress;
9
22
  export type ResponsesOutputItemFunctionCall = {
10
23
  type: ResponsesOutputItemFunctionCallType;
11
24
  id?: string | undefined;
12
25
  name: string;
13
26
  arguments: string;
14
27
  callId: string;
28
+ status?: ResponsesOutputItemFunctionCallStatusCompleted | ResponsesOutputItemFunctionCallStatusIncomplete | ResponsesOutputItemFunctionCallStatusInProgress | undefined;
15
29
  };
16
30
  /** @internal */
17
31
  export declare const ResponsesOutputItemFunctionCallType$inboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallType>;
@@ -32,6 +46,80 @@ export declare namespace ResponsesOutputItemFunctionCallType$ {
32
46
  }>;
33
47
  }
34
48
  /** @internal */
49
+ export declare const ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusInProgress>;
50
+ /** @internal */
51
+ export declare const ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusInProgress>;
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export declare namespace ResponsesOutputItemFunctionCallStatusInProgress$ {
57
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema` instead. */
58
+ const inboundSchema: z.ZodEnum<{
59
+ readonly InProgress: "in_progress";
60
+ }>;
61
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema` instead. */
62
+ const outboundSchema: z.ZodEnum<{
63
+ readonly InProgress: "in_progress";
64
+ }>;
65
+ }
66
+ /** @internal */
67
+ export declare const ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusIncomplete>;
68
+ /** @internal */
69
+ export declare const ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusIncomplete>;
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export declare namespace ResponsesOutputItemFunctionCallStatusIncomplete$ {
75
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema` instead. */
76
+ const inboundSchema: z.ZodEnum<{
77
+ readonly Incomplete: "incomplete";
78
+ }>;
79
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema` instead. */
80
+ const outboundSchema: z.ZodEnum<{
81
+ readonly Incomplete: "incomplete";
82
+ }>;
83
+ }
84
+ /** @internal */
85
+ export declare const ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusCompleted>;
86
+ /** @internal */
87
+ export declare const ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema: z.ZodEnum<typeof ResponsesOutputItemFunctionCallStatusCompleted>;
88
+ /**
89
+ * @internal
90
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
+ */
92
+ export declare namespace ResponsesOutputItemFunctionCallStatusCompleted$ {
93
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema` instead. */
94
+ const inboundSchema: z.ZodEnum<{
95
+ readonly Completed: "completed";
96
+ }>;
97
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema` instead. */
98
+ const outboundSchema: z.ZodEnum<{
99
+ readonly Completed: "completed";
100
+ }>;
101
+ }
102
+ /** @internal */
103
+ export declare const ResponsesOutputItemFunctionCallStatusUnion$inboundSchema: z.ZodType<ResponsesOutputItemFunctionCallStatusUnion, unknown>;
104
+ /** @internal */
105
+ export type ResponsesOutputItemFunctionCallStatusUnion$Outbound = string | string | string;
106
+ /** @internal */
107
+ export declare const ResponsesOutputItemFunctionCallStatusUnion$outboundSchema: z.ZodType<ResponsesOutputItemFunctionCallStatusUnion$Outbound, ResponsesOutputItemFunctionCallStatusUnion>;
108
+ /**
109
+ * @internal
110
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
111
+ */
112
+ export declare namespace ResponsesOutputItemFunctionCallStatusUnion$ {
113
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusUnion$inboundSchema` instead. */
114
+ const inboundSchema: z.ZodType<ResponsesOutputItemFunctionCallStatusUnion, unknown, z.core.$ZodTypeInternals<ResponsesOutputItemFunctionCallStatusUnion, unknown>>;
115
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusUnion$outboundSchema` instead. */
116
+ const outboundSchema: z.ZodType<string, ResponsesOutputItemFunctionCallStatusUnion, z.core.$ZodTypeInternals<string, ResponsesOutputItemFunctionCallStatusUnion>>;
117
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusUnion$Outbound` instead. */
118
+ type Outbound = ResponsesOutputItemFunctionCallStatusUnion$Outbound;
119
+ }
120
+ export declare function responsesOutputItemFunctionCallStatusUnionToJSON(responsesOutputItemFunctionCallStatusUnion: ResponsesOutputItemFunctionCallStatusUnion): string;
121
+ export declare function responsesOutputItemFunctionCallStatusUnionFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemFunctionCallStatusUnion, SDKValidationError>;
122
+ /** @internal */
35
123
  export declare const ResponsesOutputItemFunctionCall$inboundSchema: z.ZodType<ResponsesOutputItemFunctionCall, unknown>;
36
124
  /** @internal */
37
125
  export type ResponsesOutputItemFunctionCall$Outbound = {
@@ -40,6 +128,7 @@ export type ResponsesOutputItemFunctionCall$Outbound = {
40
128
  name: string;
41
129
  arguments: string;
42
130
  call_id: string;
131
+ status?: string | string | string | undefined;
43
132
  };
44
133
  /** @internal */
45
134
  export declare const ResponsesOutputItemFunctionCall$outboundSchema: z.ZodType<ResponsesOutputItemFunctionCall$Outbound, ResponsesOutputItemFunctionCall>;
@@ -7,6 +7,15 @@ import { safeParse } from "../lib/schemas.js";
7
7
  export const ResponsesOutputItemFunctionCallType = {
8
8
  FunctionCall: "function_call",
9
9
  };
10
+ export const ResponsesOutputItemFunctionCallStatusInProgress = {
11
+ InProgress: "in_progress",
12
+ };
13
+ export const ResponsesOutputItemFunctionCallStatusIncomplete = {
14
+ Incomplete: "incomplete",
15
+ };
16
+ export const ResponsesOutputItemFunctionCallStatusCompleted = {
17
+ Completed: "completed",
18
+ };
10
19
  /** @internal */
11
20
  export const ResponsesOutputItemFunctionCallType$inboundSchema = z.enum(ResponsesOutputItemFunctionCallType);
12
21
  /** @internal */
@@ -23,12 +32,91 @@ export var ResponsesOutputItemFunctionCallType$;
23
32
  ResponsesOutputItemFunctionCallType$.outboundSchema = ResponsesOutputItemFunctionCallType$outboundSchema;
24
33
  })(ResponsesOutputItemFunctionCallType$ || (ResponsesOutputItemFunctionCallType$ = {}));
25
34
  /** @internal */
35
+ export const ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema = z.enum(ResponsesOutputItemFunctionCallStatusInProgress);
36
+ /** @internal */
37
+ export const ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema = ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema;
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export var ResponsesOutputItemFunctionCallStatusInProgress$;
43
+ (function (ResponsesOutputItemFunctionCallStatusInProgress$) {
44
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema` instead. */
45
+ ResponsesOutputItemFunctionCallStatusInProgress$.inboundSchema = ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema;
46
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema` instead. */
47
+ ResponsesOutputItemFunctionCallStatusInProgress$.outboundSchema = ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema;
48
+ })(ResponsesOutputItemFunctionCallStatusInProgress$ || (ResponsesOutputItemFunctionCallStatusInProgress$ = {}));
49
+ /** @internal */
50
+ export const ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema = z.enum(ResponsesOutputItemFunctionCallStatusIncomplete);
51
+ /** @internal */
52
+ export const ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema = ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema;
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export var ResponsesOutputItemFunctionCallStatusIncomplete$;
58
+ (function (ResponsesOutputItemFunctionCallStatusIncomplete$) {
59
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema` instead. */
60
+ ResponsesOutputItemFunctionCallStatusIncomplete$.inboundSchema = ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema;
61
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema` instead. */
62
+ ResponsesOutputItemFunctionCallStatusIncomplete$.outboundSchema = ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema;
63
+ })(ResponsesOutputItemFunctionCallStatusIncomplete$ || (ResponsesOutputItemFunctionCallStatusIncomplete$ = {}));
64
+ /** @internal */
65
+ export const ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema = z.enum(ResponsesOutputItemFunctionCallStatusCompleted);
66
+ /** @internal */
67
+ export const ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema = ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema;
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export var ResponsesOutputItemFunctionCallStatusCompleted$;
73
+ (function (ResponsesOutputItemFunctionCallStatusCompleted$) {
74
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema` instead. */
75
+ ResponsesOutputItemFunctionCallStatusCompleted$.inboundSchema = ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema;
76
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema` instead. */
77
+ ResponsesOutputItemFunctionCallStatusCompleted$.outboundSchema = ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema;
78
+ })(ResponsesOutputItemFunctionCallStatusCompleted$ || (ResponsesOutputItemFunctionCallStatusCompleted$ = {}));
79
+ /** @internal */
80
+ export const ResponsesOutputItemFunctionCallStatusUnion$inboundSchema = z.union([
81
+ ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema,
82
+ ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema,
83
+ ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema,
84
+ ]);
85
+ /** @internal */
86
+ export const ResponsesOutputItemFunctionCallStatusUnion$outboundSchema = z.union([
87
+ ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema,
88
+ ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema,
89
+ ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema,
90
+ ]);
91
+ /**
92
+ * @internal
93
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
+ */
95
+ export var ResponsesOutputItemFunctionCallStatusUnion$;
96
+ (function (ResponsesOutputItemFunctionCallStatusUnion$) {
97
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusUnion$inboundSchema` instead. */
98
+ ResponsesOutputItemFunctionCallStatusUnion$.inboundSchema = ResponsesOutputItemFunctionCallStatusUnion$inboundSchema;
99
+ /** @deprecated use `ResponsesOutputItemFunctionCallStatusUnion$outboundSchema` instead. */
100
+ ResponsesOutputItemFunctionCallStatusUnion$.outboundSchema = ResponsesOutputItemFunctionCallStatusUnion$outboundSchema;
101
+ })(ResponsesOutputItemFunctionCallStatusUnion$ || (ResponsesOutputItemFunctionCallStatusUnion$ = {}));
102
+ export function responsesOutputItemFunctionCallStatusUnionToJSON(responsesOutputItemFunctionCallStatusUnion) {
103
+ return JSON.stringify(ResponsesOutputItemFunctionCallStatusUnion$outboundSchema.parse(responsesOutputItemFunctionCallStatusUnion));
104
+ }
105
+ export function responsesOutputItemFunctionCallStatusUnionFromJSON(jsonString) {
106
+ return safeParse(jsonString, (x) => ResponsesOutputItemFunctionCallStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesOutputItemFunctionCallStatusUnion' from JSON`);
107
+ }
108
+ /** @internal */
26
109
  export const ResponsesOutputItemFunctionCall$inboundSchema = z.object({
27
110
  type: ResponsesOutputItemFunctionCallType$inboundSchema,
28
111
  id: z.string().optional(),
29
112
  name: z.string(),
30
113
  arguments: z.string(),
31
114
  call_id: z.string(),
115
+ status: z.union([
116
+ ResponsesOutputItemFunctionCallStatusCompleted$inboundSchema,
117
+ ResponsesOutputItemFunctionCallStatusIncomplete$inboundSchema,
118
+ ResponsesOutputItemFunctionCallStatusInProgress$inboundSchema,
119
+ ]).optional(),
32
120
  }).transform((v) => {
33
121
  return remap$(v, {
34
122
  "call_id": "callId",
@@ -41,6 +129,11 @@ export const ResponsesOutputItemFunctionCall$outboundSchema = z.object({
41
129
  name: z.string(),
42
130
  arguments: z.string(),
43
131
  callId: z.string(),
132
+ status: z.union([
133
+ ResponsesOutputItemFunctionCallStatusCompleted$outboundSchema,
134
+ ResponsesOutputItemFunctionCallStatusIncomplete$outboundSchema,
135
+ ResponsesOutputItemFunctionCallStatusInProgress$outboundSchema,
136
+ ]).optional(),
44
137
  }).transform((v) => {
45
138
  return remap$(v, {
46
139
  callId: "call_id",