@openrouter/sdk 0.1.2 → 0.1.4

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 (370) hide show
  1. package/esm/funcs/modelsListEmbeddings.d.ts +18 -0
  2. package/esm/funcs/modelsListEmbeddings.js +72 -0
  3. package/esm/lib/config.d.ts +3 -3
  4. package/esm/lib/config.js +3 -3
  5. package/esm/models/activityitem.d.ts +0 -29
  6. package/esm/models/activityitem.js +0 -38
  7. package/esm/models/assistantmessage.d.ts +0 -24
  8. package/esm/models/assistantmessage.js +0 -22
  9. package/esm/models/badgatewayresponseerrordata.d.ts +0 -23
  10. package/esm/models/badgatewayresponseerrordata.js +0 -20
  11. package/esm/models/badrequestresponseerrordata.d.ts +0 -23
  12. package/esm/models/badrequestresponseerrordata.js +0 -20
  13. package/esm/models/chatcompletionfinishreason.d.ts +0 -12
  14. package/esm/models/chatcompletionfinishreason.js +1 -17
  15. package/esm/models/chaterror.d.ts +0 -39
  16. package/esm/models/chaterror.js +0 -40
  17. package/esm/models/chatgenerationparams.d.ts +3 -122
  18. package/esm/models/chatgenerationparams.js +7 -195
  19. package/esm/models/chatgenerationtokenusage.d.ts +6 -70
  20. package/esm/models/chatgenerationtokenusage.js +7 -89
  21. package/esm/models/chatmessagecontentitem.d.ts +5 -12
  22. package/esm/models/chatmessagecontentitem.js +7 -11
  23. package/esm/models/chatmessagecontentitemaudio.d.ts +0 -34
  24. package/esm/models/chatmessagecontentitemaudio.js +0 -33
  25. package/esm/models/chatmessagecontentitemimage.d.ts +0 -34
  26. package/esm/models/chatmessagecontentitemimage.js +0 -33
  27. package/esm/models/chatmessagecontentitemtext.d.ts +0 -12
  28. package/esm/models/chatmessagecontentitemtext.js +0 -11
  29. package/esm/models/chatmessagecontentitemvideo.d.ts +32 -0
  30. package/esm/models/chatmessagecontentitemvideo.js +46 -0
  31. package/esm/models/chatmessagetokenlogprob.d.ts +0 -43
  32. package/esm/models/chatmessagetokenlogprob.js +0 -45
  33. package/esm/models/chatmessagetokenlogprobs.d.ts +1 -21
  34. package/esm/models/chatmessagetokenlogprobs.js +1 -20
  35. package/esm/models/chatmessagetoolcall.d.ts +0 -24
  36. package/esm/models/chatmessagetoolcall.js +0 -22
  37. package/esm/models/chatresponse.d.ts +2 -27
  38. package/esm/models/chatresponse.js +2 -30
  39. package/esm/models/chatresponsechoice.d.ts +2 -24
  40. package/esm/models/chatresponsechoice.js +3 -28
  41. package/esm/models/chatstreamingchoice.d.ts +2 -24
  42. package/esm/models/chatstreamingchoice.js +3 -28
  43. package/esm/models/chatstreamingmessagechunk.d.ts +1 -40
  44. package/esm/models/chatstreamingmessagechunk.js +1 -40
  45. package/esm/models/chatstreamingmessagetoolcall.d.ts +0 -42
  46. package/esm/models/chatstreamingmessagetoolcall.js +0 -41
  47. package/esm/models/chatstreamingresponsechunk.d.ts +2 -67
  48. package/esm/models/chatstreamingresponsechunk.js +2 -69
  49. package/esm/models/chatstreamoptions.d.ts +0 -17
  50. package/esm/models/chatstreamoptions.js +0 -23
  51. package/esm/models/completionchoice.d.ts +1 -35
  52. package/esm/models/completionchoice.js +2 -43
  53. package/esm/models/completioncreateparams.d.ts +0 -122
  54. package/esm/models/completioncreateparams.js +2 -200
  55. package/esm/models/completionlogprobs.d.ts +0 -24
  56. package/esm/models/completionlogprobs.js +0 -27
  57. package/esm/models/completionresponse.d.ts +2 -27
  58. package/esm/models/completionresponse.js +2 -30
  59. package/esm/models/completionusage.d.ts +0 -21
  60. package/esm/models/completionusage.js +0 -26
  61. package/esm/models/createchargerequest.d.ts +0 -29
  62. package/esm/models/createchargerequest.js +0 -43
  63. package/esm/models/defaultparameters.d.ts +0 -21
  64. package/esm/models/defaultparameters.js +0 -25
  65. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +0 -23
  66. package/esm/models/edgenetworktimeoutresponseerrordata.js +0 -20
  67. package/esm/models/endpointstatus.d.ts +0 -12
  68. package/esm/models/endpointstatus.js +1 -17
  69. package/esm/models/errors/badgatewayresponseerror.d.ts +0 -19
  70. package/esm/models/errors/badgatewayresponseerror.js +0 -22
  71. package/esm/models/errors/badrequestresponseerror.d.ts +0 -19
  72. package/esm/models/errors/badrequestresponseerror.js +0 -22
  73. package/esm/models/errors/chaterror.d.ts +0 -18
  74. package/esm/models/errors/chaterror.js +0 -17
  75. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +0 -19
  76. package/esm/models/errors/edgenetworktimeoutresponseerror.js +0 -22
  77. package/esm/models/errors/forbiddenresponseerror.d.ts +0 -19
  78. package/esm/models/errors/forbiddenresponseerror.js +0 -22
  79. package/esm/models/errors/internalserverresponseerror.d.ts +0 -19
  80. package/esm/models/errors/internalserverresponseerror.js +0 -22
  81. package/esm/models/errors/notfoundresponseerror.d.ts +0 -19
  82. package/esm/models/errors/notfoundresponseerror.js +0 -22
  83. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +0 -19
  84. package/esm/models/errors/payloadtoolargeresponseerror.js +0 -22
  85. package/esm/models/errors/paymentrequiredresponseerror.d.ts +0 -19
  86. package/esm/models/errors/paymentrequiredresponseerror.js +0 -22
  87. package/esm/models/errors/provideroverloadedresponseerror.d.ts +0 -19
  88. package/esm/models/errors/provideroverloadedresponseerror.js +0 -22
  89. package/esm/models/errors/requesttimeoutresponseerror.d.ts +0 -19
  90. package/esm/models/errors/requesttimeoutresponseerror.js +0 -22
  91. package/esm/models/errors/serviceunavailableresponseerror.d.ts +0 -19
  92. package/esm/models/errors/serviceunavailableresponseerror.js +0 -22
  93. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +0 -19
  94. package/esm/models/errors/toomanyrequestsresponseerror.js +0 -22
  95. package/esm/models/errors/unauthorizedresponseerror.d.ts +0 -19
  96. package/esm/models/errors/unauthorizedresponseerror.js +0 -22
  97. package/esm/models/errors/unprocessableentityresponseerror.d.ts +0 -19
  98. package/esm/models/errors/unprocessableentityresponseerror.js +0 -22
  99. package/esm/models/filecitation.d.ts +0 -26
  100. package/esm/models/filecitation.js +0 -22
  101. package/esm/models/filepath.d.ts +0 -26
  102. package/esm/models/filepath.js +0 -22
  103. package/esm/models/forbiddenresponseerrordata.d.ts +0 -23
  104. package/esm/models/forbiddenresponseerrordata.js +0 -20
  105. package/esm/models/imagegenerationstatus.d.ts +0 -10
  106. package/esm/models/imagegenerationstatus.js +0 -11
  107. package/esm/models/index.d.ts +2 -1
  108. package/esm/models/index.js +2 -1
  109. package/esm/models/inputmodality.d.ts +0 -12
  110. package/esm/models/inputmodality.js +1 -17
  111. package/esm/models/instructtype.d.ts +0 -12
  112. package/esm/models/instructtype.js +1 -17
  113. package/esm/models/internalserverresponseerrordata.d.ts +0 -23
  114. package/esm/models/internalserverresponseerrordata.js +0 -20
  115. package/esm/models/jsonschemaconfig.d.ts +0 -17
  116. package/esm/models/jsonschemaconfig.js +0 -22
  117. package/esm/models/listendpointsresponse.d.ts +1 -60
  118. package/esm/models/listendpointsresponse.js +5 -73
  119. package/esm/models/message.d.ts +0 -47
  120. package/esm/models/message.js +5 -67
  121. package/esm/models/model.d.ts +5 -36
  122. package/esm/models/model.js +6 -46
  123. package/esm/models/modelarchitecture.d.ts +0 -35
  124. package/esm/models/modelarchitecture.js +4 -49
  125. package/esm/models/modelgroup.d.ts +0 -12
  126. package/esm/models/modelgroup.js +1 -18
  127. package/esm/models/modelscountresponse.d.ts +0 -38
  128. package/esm/models/modelscountresponse.js +0 -36
  129. package/esm/models/modelslistresponse.d.ts +1 -20
  130. package/esm/models/modelslistresponse.js +1 -19
  131. package/esm/models/namedtoolchoice.d.ts +0 -32
  132. package/esm/models/namedtoolchoice.js +0 -38
  133. package/esm/models/notfoundresponseerrordata.d.ts +0 -23
  134. package/esm/models/notfoundresponseerrordata.js +0 -20
  135. package/esm/models/openairesponsesannotation.d.ts +0 -12
  136. package/esm/models/openairesponsesannotation.js +0 -11
  137. package/esm/models/openairesponsesincludable.d.ts +0 -12
  138. package/esm/models/openairesponsesincludable.js +0 -18
  139. package/esm/models/openairesponsesincompletedetails.d.ts +0 -31
  140. package/esm/models/openairesponsesincompletedetails.js +1 -35
  141. package/esm/models/openairesponsesinputunion.d.ts +6 -431
  142. package/esm/models/openairesponsesinputunion.js +7 -463
  143. package/esm/models/openairesponsesprompt.d.ts +0 -24
  144. package/esm/models/openairesponsesprompt.js +0 -22
  145. package/esm/models/openairesponsesreasoningconfig.d.ts +0 -20
  146. package/esm/models/openairesponsesreasoningconfig.js +2 -21
  147. package/esm/models/openairesponsesreasoningeffort.d.ts +0 -10
  148. package/esm/models/openairesponsesreasoningeffort.js +0 -11
  149. package/esm/models/openairesponsesrefusalcontent.d.ts +0 -26
  150. package/esm/models/openairesponsesrefusalcontent.js +0 -22
  151. package/esm/models/openairesponsesresponsestatus.d.ts +0 -12
  152. package/esm/models/openairesponsesresponsestatus.js +1 -17
  153. package/esm/models/openairesponsesservicetier.d.ts +0 -12
  154. package/esm/models/openairesponsesservicetier.js +1 -17
  155. package/esm/models/openairesponsestoolchoiceunion.d.ts +0 -132
  156. package/esm/models/openairesponsestoolchoiceunion.js +0 -110
  157. package/esm/models/openairesponsestruncation.d.ts +0 -12
  158. package/esm/models/openairesponsestruncation.js +1 -17
  159. package/esm/models/openresponseseasyinputmessage.d.ts +0 -142
  160. package/esm/models/openresponseseasyinputmessage.js +9 -198
  161. package/esm/models/openresponseserrorevent.d.ts +0 -39
  162. package/esm/models/openresponseserrorevent.js +0 -39
  163. package/esm/models/openresponsesfunctioncalloutput.d.ts +0 -33
  164. package/esm/models/openresponsesfunctioncalloutput.js +2 -42
  165. package/esm/models/openresponsesfunctiontoolcall.d.ts +0 -33
  166. package/esm/models/openresponsesfunctiontoolcall.js +2 -43
  167. package/esm/models/openresponsesimagegencallcompleted.d.ts +0 -38
  168. package/esm/models/openresponsesimagegencallcompleted.js +0 -40
  169. package/esm/models/openresponsesimagegencallgenerating.d.ts +0 -38
  170. package/esm/models/openresponsesimagegencallgenerating.js +0 -40
  171. package/esm/models/openresponsesimagegencallinprogress.d.ts +0 -38
  172. package/esm/models/openresponsesimagegencallinprogress.js +0 -40
  173. package/esm/models/openresponsesimagegencallpartialimage.d.ts +0 -40
  174. package/esm/models/openresponsesimagegencallpartialimage.js +0 -44
  175. package/esm/models/openresponsesinput.d.ts +0 -32
  176. package/esm/models/openresponsesinput.js +11 -71
  177. package/esm/models/openresponsesinputmessageitem.d.ts +0 -111
  178. package/esm/models/openresponsesinputmessageitem.js +8 -148
  179. package/esm/models/openresponseslogprobs.d.ts +1 -22
  180. package/esm/models/openresponseslogprobs.js +1 -25
  181. package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -138
  182. package/esm/models/openresponsesnonstreamingresponse.js +16 -157
  183. package/esm/models/openresponsesreasoning.d.ts +0 -108
  184. package/esm/models/openresponsesreasoning.js +6 -130
  185. package/esm/models/openresponsesreasoningconfig.d.ts +0 -17
  186. package/esm/models/openresponsesreasoningconfig.js +2 -28
  187. package/esm/models/openresponsesreasoningdeltaevent.d.ts +0 -40
  188. package/esm/models/openresponsesreasoningdeltaevent.js +0 -43
  189. package/esm/models/openresponsesreasoningdoneevent.d.ts +0 -40
  190. package/esm/models/openresponsesreasoningdoneevent.js +0 -43
  191. package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +1 -41
  192. package/esm/models/openresponsesreasoningsummarypartaddedevent.js +1 -44
  193. package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +0 -40
  194. package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +0 -43
  195. package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +0 -40
  196. package/esm/models/openresponsesreasoningsummarytextdoneevent.js +0 -43
  197. package/esm/models/openresponsesrequest.d.ts +5 -356
  198. package/esm/models/openresponsesrequest.js +18 -530
  199. package/esm/models/openresponsesresponsetext.d.ts +0 -29
  200. package/esm/models/openresponsesresponsetext.js +1 -40
  201. package/esm/models/openresponsesstreamevent.d.ts +18 -732
  202. package/esm/models/openresponsesstreamevent.js +18 -808
  203. package/esm/models/openresponsestoplogprobs.d.ts +0 -20
  204. package/esm/models/openresponsestoplogprobs.js +0 -19
  205. package/esm/models/openresponsesusage.d.ts +0 -85
  206. package/esm/models/openresponsesusage.js +0 -105
  207. package/esm/models/openresponseswebsearch20250826tool.d.ts +0 -38
  208. package/esm/models/openresponseswebsearch20250826tool.js +0 -33
  209. package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +0 -26
  210. package/esm/models/openresponseswebsearchpreview20250311tool.js +0 -22
  211. package/esm/models/openresponseswebsearchpreviewtool.d.ts +0 -26
  212. package/esm/models/openresponseswebsearchpreviewtool.js +0 -22
  213. package/esm/models/openresponseswebsearchtool.d.ts +0 -38
  214. package/esm/models/openresponseswebsearchtool.js +0 -33
  215. package/esm/models/operations/createauthkeyscode.d.ts +0 -67
  216. package/esm/models/operations/createauthkeyscode.js +0 -89
  217. package/esm/models/operations/createcoinbasecharge.d.ts +0 -144
  218. package/esm/models/operations/createcoinbasecharge.js +0 -170
  219. package/esm/models/operations/createembeddings.d.ts +5 -330
  220. package/esm/models/operations/createembeddings.js +4 -404
  221. package/esm/models/operations/createkeys.d.ts +0 -83
  222. package/esm/models/operations/createkeys.js +0 -113
  223. package/esm/models/operations/createresponses.d.ts +0 -36
  224. package/esm/models/operations/createresponses.js +0 -37
  225. package/esm/models/operations/deletekeys.d.ts +0 -34
  226. package/esm/models/operations/deletekeys.js +0 -36
  227. package/esm/models/operations/exchangeauthcodeforapikey.d.ts +0 -47
  228. package/esm/models/operations/exchangeauthcodeforapikey.js +0 -66
  229. package/esm/models/operations/getcredits.d.ts +0 -17
  230. package/esm/models/operations/getcredits.js +0 -16
  231. package/esm/models/operations/getcurrentkey.d.ts +0 -74
  232. package/esm/models/operations/getcurrentkey.js +0 -87
  233. package/esm/models/operations/getgeneration.d.ts +0 -101
  234. package/esm/models/operations/getgeneration.js +1 -134
  235. package/esm/models/operations/getkey.d.ts +0 -70
  236. package/esm/models/operations/getkey.js +0 -87
  237. package/esm/models/operations/getmodels.d.ts +0 -17
  238. package/esm/models/operations/getmodels.js +0 -24
  239. package/esm/models/operations/getparameters.d.ts +0 -93
  240. package/esm/models/operations/getparameters.js +0 -112
  241. package/esm/models/operations/getuseractivity.d.ts +0 -34
  242. package/esm/models/operations/getuseractivity.js +0 -36
  243. package/esm/models/operations/list.d.ts +0 -70
  244. package/esm/models/operations/list.js +0 -93
  245. package/esm/models/operations/listendpoints.d.ts +0 -34
  246. package/esm/models/operations/listendpoints.js +0 -37
  247. package/esm/models/operations/listendpointszdr.d.ts +0 -19
  248. package/esm/models/operations/listendpointszdr.js +0 -18
  249. package/esm/models/operations/listmodelsuser.d.ts +0 -17
  250. package/esm/models/operations/listmodelsuser.js +0 -19
  251. package/esm/models/operations/listproviders.d.ts +0 -42
  252. package/esm/models/operations/listproviders.js +0 -46
  253. package/esm/models/operations/sendchatcompletionrequest.d.ts +0 -17
  254. package/esm/models/operations/sendchatcompletionrequest.js +0 -16
  255. package/esm/models/operations/updatekeys.d.ts +0 -97
  256. package/esm/models/operations/updatekeys.js +0 -136
  257. package/esm/models/outputitemimagegenerationcall.d.ts +0 -38
  258. package/esm/models/outputitemimagegenerationcall.js +1 -35
  259. package/esm/models/outputmessage.d.ts +2 -139
  260. package/esm/models/outputmessage.js +2 -135
  261. package/esm/models/outputmodality.d.ts +0 -12
  262. package/esm/models/outputmodality.js +1 -17
  263. package/esm/models/parameter.d.ts +0 -12
  264. package/esm/models/parameter.js +1 -18
  265. package/esm/models/payloadtoolargeresponseerrordata.d.ts +0 -23
  266. package/esm/models/payloadtoolargeresponseerrordata.js +0 -20
  267. package/esm/models/paymentrequiredresponseerrordata.d.ts +0 -23
  268. package/esm/models/paymentrequiredresponseerrordata.js +0 -20
  269. package/esm/models/perrequestlimits.d.ts +0 -20
  270. package/esm/models/perrequestlimits.js +0 -24
  271. package/esm/models/providername.d.ts +0 -10
  272. package/esm/models/providername.js +0 -11
  273. package/esm/models/provideroverloadedresponseerrordata.d.ts +0 -23
  274. package/esm/models/provideroverloadedresponseerrordata.js +0 -20
  275. package/esm/models/publicendpoint.d.ts +0 -73
  276. package/esm/models/publicendpoint.js +4 -100
  277. package/esm/models/publicpricing.d.ts +0 -30
  278. package/esm/models/publicpricing.js +0 -38
  279. package/esm/models/quantization.d.ts +0 -12
  280. package/esm/models/quantization.js +0 -18
  281. package/esm/models/reasoningsummarytext.d.ts +0 -26
  282. package/esm/models/reasoningsummarytext.js +0 -22
  283. package/esm/models/reasoningsummaryverbosity.d.ts +0 -10
  284. package/esm/models/reasoningsummaryverbosity.js +0 -11
  285. package/esm/models/reasoningtextcontent.d.ts +0 -26
  286. package/esm/models/reasoningtextcontent.js +0 -22
  287. package/esm/models/requesttimeoutresponseerrordata.d.ts +0 -23
  288. package/esm/models/requesttimeoutresponseerrordata.js +0 -20
  289. package/esm/models/responseformatjsonschema.d.ts +0 -17
  290. package/esm/models/responseformatjsonschema.js +1 -25
  291. package/esm/models/responseformattextconfig.d.ts +0 -12
  292. package/esm/models/responseformattextconfig.js +0 -11
  293. package/esm/models/responseformattextgrammar.d.ts +0 -17
  294. package/esm/models/responseformattextgrammar.js +0 -20
  295. package/esm/models/responseinputaudio.d.ts +0 -48
  296. package/esm/models/responseinputaudio.js +0 -44
  297. package/esm/models/responseinputfile.d.ts +0 -26
  298. package/esm/models/responseinputfile.js +0 -22
  299. package/esm/models/responseinputimage.d.ts +0 -36
  300. package/esm/models/responseinputimage.js +0 -33
  301. package/esm/models/responseinputtext.d.ts +0 -26
  302. package/esm/models/responseinputtext.js +0 -22
  303. package/esm/models/responseoutputtext.d.ts +0 -26
  304. package/esm/models/responseoutputtext.js +0 -22
  305. package/esm/models/responseserrorfield.d.ts +0 -32
  306. package/esm/models/responseserrorfield.js +1 -36
  307. package/esm/models/responsesformatjsonobject.d.ts +0 -26
  308. package/esm/models/responsesformatjsonobject.js +0 -22
  309. package/esm/models/responsesformattext.d.ts +0 -26
  310. package/esm/models/responsesformattext.js +0 -22
  311. package/esm/models/responsesformattextjsonschemaconfig.d.ts +0 -26
  312. package/esm/models/responsesformattextjsonschemaconfig.js +0 -22
  313. package/esm/models/responsesimagegenerationcall.d.ts +0 -26
  314. package/esm/models/responsesimagegenerationcall.js +0 -22
  315. package/esm/models/responsesoutputitem.d.ts +6 -23
  316. package/esm/models/responsesoutputitem.js +6 -29
  317. package/esm/models/responsesoutputitemfilesearchcall.d.ts +0 -26
  318. package/esm/models/responsesoutputitemfilesearchcall.js +0 -22
  319. package/esm/models/responsesoutputitemfunctioncall.d.ts +0 -80
  320. package/esm/models/responsesoutputitemfunctioncall.js +0 -66
  321. package/esm/models/responsesoutputitemreasoning.d.ts +0 -80
  322. package/esm/models/responsesoutputitemreasoning.js +0 -66
  323. package/esm/models/responsesoutputmessage.d.ts +0 -106
  324. package/esm/models/responsesoutputmessage.js +0 -88
  325. package/esm/models/responsessearchcontextsize.d.ts +0 -10
  326. package/esm/models/responsessearchcontextsize.js +0 -11
  327. package/esm/models/responseswebsearchcalloutput.d.ts +0 -26
  328. package/esm/models/responseswebsearchcalloutput.js +0 -22
  329. package/esm/models/responseswebsearchuserlocation.d.ts +0 -26
  330. package/esm/models/responseswebsearchuserlocation.js +0 -22
  331. package/esm/models/responsetextconfig.d.ts +1 -33
  332. package/esm/models/responsetextconfig.js +2 -37
  333. package/esm/models/security.d.ts +0 -17
  334. package/esm/models/security.js +0 -19
  335. package/esm/models/serviceunavailableresponseerrordata.d.ts +0 -23
  336. package/esm/models/serviceunavailableresponseerrordata.js +0 -20
  337. package/esm/models/systemmessage.d.ts +0 -32
  338. package/esm/models/systemmessage.js +1 -42
  339. package/esm/models/toolcallstatus.d.ts +0 -10
  340. package/esm/models/toolcallstatus.js +0 -11
  341. package/esm/models/tooldefinitionjson.d.ts +34 -0
  342. package/esm/models/tooldefinitionjson.js +23 -0
  343. package/esm/models/toolresponsemessage.d.ts +0 -32
  344. package/esm/models/toolresponsemessage.js +1 -42
  345. package/esm/models/toomanyrequestsresponseerrordata.d.ts +0 -23
  346. package/esm/models/toomanyrequestsresponseerrordata.js +0 -20
  347. package/esm/models/topproviderinfo.d.ts +0 -21
  348. package/esm/models/topproviderinfo.js +0 -26
  349. package/esm/models/unauthorizedresponseerrordata.d.ts +0 -23
  350. package/esm/models/unauthorizedresponseerrordata.js +0 -20
  351. package/esm/models/unprocessableentityresponseerrordata.d.ts +0 -23
  352. package/esm/models/unprocessableentityresponseerrordata.js +0 -20
  353. package/esm/models/urlcitation.d.ts +0 -26
  354. package/esm/models/urlcitation.js +0 -22
  355. package/esm/models/usermessage.d.ts +0 -32
  356. package/esm/models/usermessage.js +1 -42
  357. package/esm/models/websearchpreviewtooluserlocation.d.ts +0 -26
  358. package/esm/models/websearchpreviewtooluserlocation.js +0 -22
  359. package/esm/models/websearchstatus.d.ts +0 -10
  360. package/esm/models/websearchstatus.js +0 -11
  361. package/esm/react-query/index.d.ts +1 -0
  362. package/esm/react-query/index.js +1 -0
  363. package/esm/react-query/modelsListEmbeddings.d.ts +29 -0
  364. package/esm/react-query/modelsListEmbeddings.js +66 -0
  365. package/esm/sdk/models.d.ts +7 -0
  366. package/esm/sdk/models.js +10 -0
  367. package/jsr.json +1 -1
  368. package/package.json +1 -1
  369. package/esm/models/tool.d.ts +0 -66
  370. package/esm/models/tool.js +0 -65
@@ -4,7 +4,6 @@
4
4
  import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { catchUnrecognizedEnum, } from "../../types/enums.js";
8
7
  /**
9
8
  * New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
10
9
  */
@@ -14,40 +13,10 @@ export const UpdateKeysLimitReset = {
14
13
  Monthly: "monthly",
15
14
  };
16
15
  /** @internal */
17
- export const UpdateKeysLimitReset$inboundSchema = z
18
- .union([
19
- z.enum(UpdateKeysLimitReset),
20
- z.string().transform(catchUnrecognizedEnum),
21
- ]);
22
- /** @internal */
23
16
  export const UpdateKeysLimitReset$outboundSchema = z.union([
24
17
  z.enum(UpdateKeysLimitReset),
25
18
  z.string().and(z.custom()),
26
19
  ]);
27
- /**
28
- * @internal
29
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
- */
31
- export var UpdateKeysLimitReset$;
32
- (function (UpdateKeysLimitReset$) {
33
- /** @deprecated use `UpdateKeysLimitReset$inboundSchema` instead. */
34
- UpdateKeysLimitReset$.inboundSchema = UpdateKeysLimitReset$inboundSchema;
35
- /** @deprecated use `UpdateKeysLimitReset$outboundSchema` instead. */
36
- UpdateKeysLimitReset$.outboundSchema = UpdateKeysLimitReset$outboundSchema;
37
- })(UpdateKeysLimitReset$ || (UpdateKeysLimitReset$ = {}));
38
- /** @internal */
39
- export const UpdateKeysRequestBody$inboundSchema = z.object({
40
- name: z.string().optional(),
41
- disabled: z.boolean().optional(),
42
- limit: z.nullable(z.number()).optional(),
43
- limit_reset: z.nullable(UpdateKeysLimitReset$inboundSchema).optional(),
44
- include_byok_in_limit: z.boolean().optional(),
45
- }).transform((v) => {
46
- return remap$(v, {
47
- "limit_reset": "limitReset",
48
- "include_byok_in_limit": "includeByokInLimit",
49
- });
50
- });
51
20
  /** @internal */
52
21
  export const UpdateKeysRequestBody$outboundSchema = z.object({
53
22
  name: z.string().optional(),
@@ -61,32 +30,9 @@ export const UpdateKeysRequestBody$outboundSchema = z.object({
61
30
  includeByokInLimit: "include_byok_in_limit",
62
31
  });
63
32
  });
64
- /**
65
- * @internal
66
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
- */
68
- export var UpdateKeysRequestBody$;
69
- (function (UpdateKeysRequestBody$) {
70
- /** @deprecated use `UpdateKeysRequestBody$inboundSchema` instead. */
71
- UpdateKeysRequestBody$.inboundSchema = UpdateKeysRequestBody$inboundSchema;
72
- /** @deprecated use `UpdateKeysRequestBody$outboundSchema` instead. */
73
- UpdateKeysRequestBody$.outboundSchema = UpdateKeysRequestBody$outboundSchema;
74
- })(UpdateKeysRequestBody$ || (UpdateKeysRequestBody$ = {}));
75
33
  export function updateKeysRequestBodyToJSON(updateKeysRequestBody) {
76
34
  return JSON.stringify(UpdateKeysRequestBody$outboundSchema.parse(updateKeysRequestBody));
77
35
  }
78
- export function updateKeysRequestBodyFromJSON(jsonString) {
79
- return safeParse(jsonString, (x) => UpdateKeysRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysRequestBody' from JSON`);
80
- }
81
- /** @internal */
82
- export const UpdateKeysRequest$inboundSchema = z.object({
83
- hash: z.string(),
84
- RequestBody: z.lazy(() => UpdateKeysRequestBody$inboundSchema),
85
- }).transform((v) => {
86
- return remap$(v, {
87
- "RequestBody": "requestBody",
88
- });
89
- });
90
36
  /** @internal */
91
37
  export const UpdateKeysRequest$outboundSchema = z.object({
92
38
  hash: z.string(),
@@ -96,23 +42,9 @@ export const UpdateKeysRequest$outboundSchema = z.object({
96
42
  requestBody: "RequestBody",
97
43
  });
98
44
  });
99
- /**
100
- * @internal
101
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
- */
103
- export var UpdateKeysRequest$;
104
- (function (UpdateKeysRequest$) {
105
- /** @deprecated use `UpdateKeysRequest$inboundSchema` instead. */
106
- UpdateKeysRequest$.inboundSchema = UpdateKeysRequest$inboundSchema;
107
- /** @deprecated use `UpdateKeysRequest$outboundSchema` instead. */
108
- UpdateKeysRequest$.outboundSchema = UpdateKeysRequest$outboundSchema;
109
- })(UpdateKeysRequest$ || (UpdateKeysRequest$ = {}));
110
45
  export function updateKeysRequestToJSON(updateKeysRequest) {
111
46
  return JSON.stringify(UpdateKeysRequest$outboundSchema.parse(updateKeysRequest));
112
47
  }
113
- export function updateKeysRequestFromJSON(jsonString) {
114
- return safeParse(jsonString, (x) => UpdateKeysRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysRequest' from JSON`);
115
- }
116
48
  /** @internal */
117
49
  export const UpdateKeysData$inboundSchema = z.object({
118
50
  hash: z.string(),
@@ -149,56 +81,6 @@ export const UpdateKeysData$inboundSchema = z.object({
149
81
  "updated_at": "updatedAt",
150
82
  });
151
83
  });
152
- /** @internal */
153
- export const UpdateKeysData$outboundSchema = z.object({
154
- hash: z.string(),
155
- name: z.string(),
156
- label: z.string(),
157
- disabled: z.boolean(),
158
- limit: z.nullable(z.number()),
159
- limitRemaining: z.nullable(z.number()),
160
- limitReset: z.nullable(z.string()),
161
- includeByokInLimit: z.boolean(),
162
- usage: z.number(),
163
- usageDaily: z.number(),
164
- usageWeekly: z.number(),
165
- usageMonthly: z.number(),
166
- byokUsage: z.number(),
167
- byokUsageDaily: z.number(),
168
- byokUsageWeekly: z.number(),
169
- byokUsageMonthly: z.number(),
170
- createdAt: z.string(),
171
- updatedAt: z.nullable(z.string()),
172
- }).transform((v) => {
173
- return remap$(v, {
174
- limitRemaining: "limit_remaining",
175
- limitReset: "limit_reset",
176
- includeByokInLimit: "include_byok_in_limit",
177
- usageDaily: "usage_daily",
178
- usageWeekly: "usage_weekly",
179
- usageMonthly: "usage_monthly",
180
- byokUsage: "byok_usage",
181
- byokUsageDaily: "byok_usage_daily",
182
- byokUsageWeekly: "byok_usage_weekly",
183
- byokUsageMonthly: "byok_usage_monthly",
184
- createdAt: "created_at",
185
- updatedAt: "updated_at",
186
- });
187
- });
188
- /**
189
- * @internal
190
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
191
- */
192
- export var UpdateKeysData$;
193
- (function (UpdateKeysData$) {
194
- /** @deprecated use `UpdateKeysData$inboundSchema` instead. */
195
- UpdateKeysData$.inboundSchema = UpdateKeysData$inboundSchema;
196
- /** @deprecated use `UpdateKeysData$outboundSchema` instead. */
197
- UpdateKeysData$.outboundSchema = UpdateKeysData$outboundSchema;
198
- })(UpdateKeysData$ || (UpdateKeysData$ = {}));
199
- export function updateKeysDataToJSON(updateKeysData) {
200
- return JSON.stringify(UpdateKeysData$outboundSchema.parse(updateKeysData));
201
- }
202
84
  export function updateKeysDataFromJSON(jsonString) {
203
85
  return safeParse(jsonString, (x) => UpdateKeysData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysData' from JSON`);
204
86
  }
@@ -206,24 +88,6 @@ export function updateKeysDataFromJSON(jsonString) {
206
88
  export const UpdateKeysResponse$inboundSchema = z.object({
207
89
  data: z.lazy(() => UpdateKeysData$inboundSchema),
208
90
  });
209
- /** @internal */
210
- export const UpdateKeysResponse$outboundSchema = z.object({
211
- data: z.lazy(() => UpdateKeysData$outboundSchema),
212
- });
213
- /**
214
- * @internal
215
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
216
- */
217
- export var UpdateKeysResponse$;
218
- (function (UpdateKeysResponse$) {
219
- /** @deprecated use `UpdateKeysResponse$inboundSchema` instead. */
220
- UpdateKeysResponse$.inboundSchema = UpdateKeysResponse$inboundSchema;
221
- /** @deprecated use `UpdateKeysResponse$outboundSchema` instead. */
222
- UpdateKeysResponse$.outboundSchema = UpdateKeysResponse$outboundSchema;
223
- })(UpdateKeysResponse$ || (UpdateKeysResponse$ = {}));
224
- export function updateKeysResponseToJSON(updateKeysResponse) {
225
- return JSON.stringify(UpdateKeysResponse$outboundSchema.parse(updateKeysResponse));
226
- }
227
91
  export function updateKeysResponseFromJSON(jsonString) {
228
92
  return safeParse(jsonString, (x) => UpdateKeysResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysResponse' from JSON`);
229
93
  }
@@ -16,44 +16,6 @@ export type OutputItemImageGenerationCall = {
16
16
  /** @internal */
17
17
  export declare const OutputItemImageGenerationCallType$inboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
18
18
  /** @internal */
19
- export declare const OutputItemImageGenerationCallType$outboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
20
- /**
21
- * @internal
22
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
- */
24
- export declare namespace OutputItemImageGenerationCallType$ {
25
- /** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
26
- const inboundSchema: z.ZodEnum<{
27
- readonly ImageGenerationCall: "image_generation_call";
28
- }>;
29
- /** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
30
- const outboundSchema: z.ZodEnum<{
31
- readonly ImageGenerationCall: "image_generation_call";
32
- }>;
33
- }
34
- /** @internal */
35
19
  export declare const OutputItemImageGenerationCall$inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown>;
36
- /** @internal */
37
- export type OutputItemImageGenerationCall$Outbound = {
38
- type: string;
39
- id: string;
40
- result: string | null;
41
- status: string;
42
- };
43
- /** @internal */
44
- export declare const OutputItemImageGenerationCall$outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>;
45
- /**
46
- * @internal
47
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
- */
49
- export declare namespace OutputItemImageGenerationCall$ {
50
- /** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
51
- const inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown, z.core.$ZodTypeInternals<OutputItemImageGenerationCall, unknown>>;
52
- /** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
53
- const outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall, z.core.$ZodTypeInternals<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>>;
54
- /** @deprecated use `OutputItemImageGenerationCall$Outbound` instead. */
55
- type Outbound = OutputItemImageGenerationCall$Outbound;
56
- }
57
- export declare function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall: OutputItemImageGenerationCall): string;
58
20
  export declare function outputItemImageGenerationCallFromJSON(jsonString: string): SafeParseResult<OutputItemImageGenerationCall, SDKValidationError>;
59
21
  //# sourceMappingURL=outputitemimagegenerationcall.d.ts.map
@@ -3,53 +3,19 @@
3
3
  */
4
4
  import * as z from "zod/v4";
5
5
  import { safeParse } from "../lib/schemas.js";
6
- import { ImageGenerationStatus$inboundSchema, ImageGenerationStatus$outboundSchema, } from "./imagegenerationstatus.js";
6
+ import { ImageGenerationStatus$inboundSchema, } from "./imagegenerationstatus.js";
7
7
  export const OutputItemImageGenerationCallType = {
8
8
  ImageGenerationCall: "image_generation_call",
9
9
  };
10
10
  /** @internal */
11
11
  export const OutputItemImageGenerationCallType$inboundSchema = z.enum(OutputItemImageGenerationCallType);
12
12
  /** @internal */
13
- export const OutputItemImageGenerationCallType$outboundSchema = OutputItemImageGenerationCallType$inboundSchema;
14
- /**
15
- * @internal
16
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
- */
18
- export var OutputItemImageGenerationCallType$;
19
- (function (OutputItemImageGenerationCallType$) {
20
- /** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
21
- OutputItemImageGenerationCallType$.inboundSchema = OutputItemImageGenerationCallType$inboundSchema;
22
- /** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
23
- OutputItemImageGenerationCallType$.outboundSchema = OutputItemImageGenerationCallType$outboundSchema;
24
- })(OutputItemImageGenerationCallType$ || (OutputItemImageGenerationCallType$ = {}));
25
- /** @internal */
26
13
  export const OutputItemImageGenerationCall$inboundSchema = z.object({
27
14
  type: OutputItemImageGenerationCallType$inboundSchema,
28
15
  id: z.string(),
29
16
  result: z.nullable(z.string()),
30
17
  status: ImageGenerationStatus$inboundSchema,
31
18
  });
32
- /** @internal */
33
- export const OutputItemImageGenerationCall$outboundSchema = z.object({
34
- type: OutputItemImageGenerationCallType$outboundSchema,
35
- id: z.string(),
36
- result: z.nullable(z.string()),
37
- status: ImageGenerationStatus$outboundSchema,
38
- });
39
- /**
40
- * @internal
41
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
- */
43
- export var OutputItemImageGenerationCall$;
44
- (function (OutputItemImageGenerationCall$) {
45
- /** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
46
- OutputItemImageGenerationCall$.inboundSchema = OutputItemImageGenerationCall$inboundSchema;
47
- /** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
48
- OutputItemImageGenerationCall$.outboundSchema = OutputItemImageGenerationCall$outboundSchema;
49
- })(OutputItemImageGenerationCall$ || (OutputItemImageGenerationCall$ = {}));
50
- export function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall) {
51
- return JSON.stringify(OutputItemImageGenerationCall$outboundSchema.parse(outputItemImageGenerationCall));
52
- }
53
19
  export function outputItemImageGenerationCallFromJSON(jsonString) {
54
20
  return safeParse(jsonString, (x) => OutputItemImageGenerationCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputItemImageGenerationCall' from JSON`);
55
21
  }
@@ -2,8 +2,8 @@ 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 { OpenAIResponsesRefusalContent, OpenAIResponsesRefusalContent$Outbound } from "./openairesponsesrefusalcontent.js";
6
- import { ResponseOutputText, ResponseOutputText$Outbound } from "./responseoutputtext.js";
5
+ import { OpenAIResponsesRefusalContent } from "./openairesponsesrefusalcontent.js";
6
+ import { ResponseOutputText } from "./responseoutputtext.js";
7
7
  export declare const OutputMessageRole: {
8
8
  readonly Assistant: "assistant";
9
9
  };
@@ -36,157 +36,20 @@ export type OutputMessage = {
36
36
  /** @internal */
37
37
  export declare const OutputMessageRole$inboundSchema: z.ZodEnum<typeof OutputMessageRole>;
38
38
  /** @internal */
39
- export declare const OutputMessageRole$outboundSchema: z.ZodEnum<typeof OutputMessageRole>;
40
- /**
41
- * @internal
42
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
- */
44
- export declare namespace OutputMessageRole$ {
45
- /** @deprecated use `OutputMessageRole$inboundSchema` instead. */
46
- const inboundSchema: z.ZodEnum<{
47
- readonly Assistant: "assistant";
48
- }>;
49
- /** @deprecated use `OutputMessageRole$outboundSchema` instead. */
50
- const outboundSchema: z.ZodEnum<{
51
- readonly Assistant: "assistant";
52
- }>;
53
- }
54
- /** @internal */
55
39
  export declare const OutputMessageType$inboundSchema: z.ZodEnum<typeof OutputMessageType>;
56
40
  /** @internal */
57
- export declare const OutputMessageType$outboundSchema: z.ZodEnum<typeof OutputMessageType>;
58
- /**
59
- * @internal
60
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
- */
62
- export declare namespace OutputMessageType$ {
63
- /** @deprecated use `OutputMessageType$inboundSchema` instead. */
64
- const inboundSchema: z.ZodEnum<{
65
- readonly Message: "message";
66
- }>;
67
- /** @deprecated use `OutputMessageType$outboundSchema` instead. */
68
- const outboundSchema: z.ZodEnum<{
69
- readonly Message: "message";
70
- }>;
71
- }
72
- /** @internal */
73
41
  export declare const OutputMessageStatusInProgress$inboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
74
42
  /** @internal */
75
- export declare const OutputMessageStatusInProgress$outboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
76
- /**
77
- * @internal
78
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
- */
80
- export declare namespace OutputMessageStatusInProgress$ {
81
- /** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
82
- const inboundSchema: z.ZodEnum<{
83
- readonly InProgress: "in_progress";
84
- }>;
85
- /** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
86
- const outboundSchema: z.ZodEnum<{
87
- readonly InProgress: "in_progress";
88
- }>;
89
- }
90
- /** @internal */
91
43
  export declare const OutputMessageStatusIncomplete$inboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
92
44
  /** @internal */
93
- export declare const OutputMessageStatusIncomplete$outboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
94
- /**
95
- * @internal
96
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
- */
98
- export declare namespace OutputMessageStatusIncomplete$ {
99
- /** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
100
- const inboundSchema: z.ZodEnum<{
101
- readonly Incomplete: "incomplete";
102
- }>;
103
- /** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
104
- const outboundSchema: z.ZodEnum<{
105
- readonly Incomplete: "incomplete";
106
- }>;
107
- }
108
- /** @internal */
109
45
  export declare const OutputMessageStatusCompleted$inboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
110
46
  /** @internal */
111
- export declare const OutputMessageStatusCompleted$outboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
112
- /**
113
- * @internal
114
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
- */
116
- export declare namespace OutputMessageStatusCompleted$ {
117
- /** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
118
- const inboundSchema: z.ZodEnum<{
119
- readonly Completed: "completed";
120
- }>;
121
- /** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
122
- const outboundSchema: z.ZodEnum<{
123
- readonly Completed: "completed";
124
- }>;
125
- }
126
- /** @internal */
127
47
  export declare const OutputMessageStatusUnion$inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown>;
128
- /** @internal */
129
- export type OutputMessageStatusUnion$Outbound = string | string | string;
130
- /** @internal */
131
- export declare const OutputMessageStatusUnion$outboundSchema: z.ZodType<OutputMessageStatusUnion$Outbound, OutputMessageStatusUnion>;
132
- /**
133
- * @internal
134
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
- */
136
- export declare namespace OutputMessageStatusUnion$ {
137
- /** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
138
- const inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown, z.core.$ZodTypeInternals<OutputMessageStatusUnion, unknown>>;
139
- /** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
140
- const outboundSchema: z.ZodType<string, OutputMessageStatusUnion, z.core.$ZodTypeInternals<string, OutputMessageStatusUnion>>;
141
- /** @deprecated use `OutputMessageStatusUnion$Outbound` instead. */
142
- type Outbound = OutputMessageStatusUnion$Outbound;
143
- }
144
- export declare function outputMessageStatusUnionToJSON(outputMessageStatusUnion: OutputMessageStatusUnion): string;
145
48
  export declare function outputMessageStatusUnionFromJSON(jsonString: string): SafeParseResult<OutputMessageStatusUnion, SDKValidationError>;
146
49
  /** @internal */
147
50
  export declare const OutputMessageContent$inboundSchema: z.ZodType<OutputMessageContent, unknown>;
148
- /** @internal */
149
- export type OutputMessageContent$Outbound = ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound;
150
- /** @internal */
151
- export declare const OutputMessageContent$outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent>;
152
- /**
153
- * @internal
154
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
- */
156
- export declare namespace OutputMessageContent$ {
157
- /** @deprecated use `OutputMessageContent$inboundSchema` instead. */
158
- const inboundSchema: z.ZodType<OutputMessageContent, unknown, z.core.$ZodTypeInternals<OutputMessageContent, unknown>>;
159
- /** @deprecated use `OutputMessageContent$outboundSchema` instead. */
160
- const outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent, z.core.$ZodTypeInternals<OutputMessageContent$Outbound, OutputMessageContent>>;
161
- /** @deprecated use `OutputMessageContent$Outbound` instead. */
162
- type Outbound = OutputMessageContent$Outbound;
163
- }
164
- export declare function outputMessageContentToJSON(outputMessageContent: OutputMessageContent): string;
165
51
  export declare function outputMessageContentFromJSON(jsonString: string): SafeParseResult<OutputMessageContent, SDKValidationError>;
166
52
  /** @internal */
167
53
  export declare const OutputMessage$inboundSchema: z.ZodType<OutputMessage, unknown>;
168
- /** @internal */
169
- export type OutputMessage$Outbound = {
170
- id: string;
171
- role: string;
172
- type: string;
173
- status?: string | string | string | undefined;
174
- content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound>;
175
- };
176
- /** @internal */
177
- export declare const OutputMessage$outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage>;
178
- /**
179
- * @internal
180
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
181
- */
182
- export declare namespace OutputMessage$ {
183
- /** @deprecated use `OutputMessage$inboundSchema` instead. */
184
- const inboundSchema: z.ZodType<OutputMessage, unknown, z.core.$ZodTypeInternals<OutputMessage, unknown>>;
185
- /** @deprecated use `OutputMessage$outboundSchema` instead. */
186
- const outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage, z.core.$ZodTypeInternals<OutputMessage$Outbound, OutputMessage>>;
187
- /** @deprecated use `OutputMessage$Outbound` instead. */
188
- type Outbound = OutputMessage$Outbound;
189
- }
190
- export declare function outputMessageToJSON(outputMessage: OutputMessage): string;
191
54
  export declare function outputMessageFromJSON(jsonString: string): SafeParseResult<OutputMessage, SDKValidationError>;
192
55
  //# sourceMappingURL=outputmessage.d.ts.map
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import * as z from "zod/v4";
5
5
  import { safeParse } from "../lib/schemas.js";
6
- import { OpenAIResponsesRefusalContent$inboundSchema, OpenAIResponsesRefusalContent$outboundSchema, } from "./openairesponsesrefusalcontent.js";
7
- import { ResponseOutputText$inboundSchema, ResponseOutputText$outboundSchema, } from "./responseoutputtext.js";
6
+ import { OpenAIResponsesRefusalContent$inboundSchema, } from "./openairesponsesrefusalcontent.js";
7
+ import { ResponseOutputText$inboundSchema, } from "./responseoutputtext.js";
8
8
  export const OutputMessageRole = {
9
9
  Assistant: "assistant",
10
10
  };
@@ -23,104 +23,19 @@ export const OutputMessageStatusCompleted = {
23
23
  /** @internal */
24
24
  export const OutputMessageRole$inboundSchema = z.enum(OutputMessageRole);
25
25
  /** @internal */
26
- export const OutputMessageRole$outboundSchema = OutputMessageRole$inboundSchema;
27
- /**
28
- * @internal
29
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
- */
31
- export var OutputMessageRole$;
32
- (function (OutputMessageRole$) {
33
- /** @deprecated use `OutputMessageRole$inboundSchema` instead. */
34
- OutputMessageRole$.inboundSchema = OutputMessageRole$inboundSchema;
35
- /** @deprecated use `OutputMessageRole$outboundSchema` instead. */
36
- OutputMessageRole$.outboundSchema = OutputMessageRole$outboundSchema;
37
- })(OutputMessageRole$ || (OutputMessageRole$ = {}));
38
- /** @internal */
39
26
  export const OutputMessageType$inboundSchema = z.enum(OutputMessageType);
40
27
  /** @internal */
41
- export const OutputMessageType$outboundSchema = OutputMessageType$inboundSchema;
42
- /**
43
- * @internal
44
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
- */
46
- export var OutputMessageType$;
47
- (function (OutputMessageType$) {
48
- /** @deprecated use `OutputMessageType$inboundSchema` instead. */
49
- OutputMessageType$.inboundSchema = OutputMessageType$inboundSchema;
50
- /** @deprecated use `OutputMessageType$outboundSchema` instead. */
51
- OutputMessageType$.outboundSchema = OutputMessageType$outboundSchema;
52
- })(OutputMessageType$ || (OutputMessageType$ = {}));
53
- /** @internal */
54
28
  export const OutputMessageStatusInProgress$inboundSchema = z.enum(OutputMessageStatusInProgress);
55
29
  /** @internal */
56
- export const OutputMessageStatusInProgress$outboundSchema = OutputMessageStatusInProgress$inboundSchema;
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export var OutputMessageStatusInProgress$;
62
- (function (OutputMessageStatusInProgress$) {
63
- /** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
64
- OutputMessageStatusInProgress$.inboundSchema = OutputMessageStatusInProgress$inboundSchema;
65
- /** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
66
- OutputMessageStatusInProgress$.outboundSchema = OutputMessageStatusInProgress$outboundSchema;
67
- })(OutputMessageStatusInProgress$ || (OutputMessageStatusInProgress$ = {}));
68
- /** @internal */
69
30
  export const OutputMessageStatusIncomplete$inboundSchema = z.enum(OutputMessageStatusIncomplete);
70
31
  /** @internal */
71
- export const OutputMessageStatusIncomplete$outboundSchema = OutputMessageStatusIncomplete$inboundSchema;
72
- /**
73
- * @internal
74
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
- */
76
- export var OutputMessageStatusIncomplete$;
77
- (function (OutputMessageStatusIncomplete$) {
78
- /** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
79
- OutputMessageStatusIncomplete$.inboundSchema = OutputMessageStatusIncomplete$inboundSchema;
80
- /** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
81
- OutputMessageStatusIncomplete$.outboundSchema = OutputMessageStatusIncomplete$outboundSchema;
82
- })(OutputMessageStatusIncomplete$ || (OutputMessageStatusIncomplete$ = {}));
83
- /** @internal */
84
32
  export const OutputMessageStatusCompleted$inboundSchema = z.enum(OutputMessageStatusCompleted);
85
33
  /** @internal */
86
- export const OutputMessageStatusCompleted$outboundSchema = OutputMessageStatusCompleted$inboundSchema;
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export var OutputMessageStatusCompleted$;
92
- (function (OutputMessageStatusCompleted$) {
93
- /** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
94
- OutputMessageStatusCompleted$.inboundSchema = OutputMessageStatusCompleted$inboundSchema;
95
- /** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
96
- OutputMessageStatusCompleted$.outboundSchema = OutputMessageStatusCompleted$outboundSchema;
97
- })(OutputMessageStatusCompleted$ || (OutputMessageStatusCompleted$ = {}));
98
- /** @internal */
99
34
  export const OutputMessageStatusUnion$inboundSchema = z.union([
100
35
  OutputMessageStatusCompleted$inboundSchema,
101
36
  OutputMessageStatusIncomplete$inboundSchema,
102
37
  OutputMessageStatusInProgress$inboundSchema,
103
38
  ]);
104
- /** @internal */
105
- export const OutputMessageStatusUnion$outboundSchema = z.union([
106
- OutputMessageStatusCompleted$outboundSchema,
107
- OutputMessageStatusIncomplete$outboundSchema,
108
- OutputMessageStatusInProgress$outboundSchema,
109
- ]);
110
- /**
111
- * @internal
112
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
- */
114
- export var OutputMessageStatusUnion$;
115
- (function (OutputMessageStatusUnion$) {
116
- /** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
117
- OutputMessageStatusUnion$.inboundSchema = OutputMessageStatusUnion$inboundSchema;
118
- /** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
119
- OutputMessageStatusUnion$.outboundSchema = OutputMessageStatusUnion$outboundSchema;
120
- })(OutputMessageStatusUnion$ || (OutputMessageStatusUnion$ = {}));
121
- export function outputMessageStatusUnionToJSON(outputMessageStatusUnion) {
122
- return JSON.stringify(OutputMessageStatusUnion$outboundSchema.parse(outputMessageStatusUnion));
123
- }
124
39
  export function outputMessageStatusUnionFromJSON(jsonString) {
125
40
  return safeParse(jsonString, (x) => OutputMessageStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageStatusUnion' from JSON`);
126
41
  }
@@ -129,25 +44,6 @@ export const OutputMessageContent$inboundSchema = z.union([
129
44
  ResponseOutputText$inboundSchema,
130
45
  OpenAIResponsesRefusalContent$inboundSchema,
131
46
  ]);
132
- /** @internal */
133
- export const OutputMessageContent$outboundSchema = z.union([
134
- ResponseOutputText$outboundSchema,
135
- OpenAIResponsesRefusalContent$outboundSchema,
136
- ]);
137
- /**
138
- * @internal
139
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
- */
141
- export var OutputMessageContent$;
142
- (function (OutputMessageContent$) {
143
- /** @deprecated use `OutputMessageContent$inboundSchema` instead. */
144
- OutputMessageContent$.inboundSchema = OutputMessageContent$inboundSchema;
145
- /** @deprecated use `OutputMessageContent$outboundSchema` instead. */
146
- OutputMessageContent$.outboundSchema = OutputMessageContent$outboundSchema;
147
- })(OutputMessageContent$ || (OutputMessageContent$ = {}));
148
- export function outputMessageContentToJSON(outputMessageContent) {
149
- return JSON.stringify(OutputMessageContent$outboundSchema.parse(outputMessageContent));
150
- }
151
47
  export function outputMessageContentFromJSON(jsonString) {
152
48
  return safeParse(jsonString, (x) => OutputMessageContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageContent' from JSON`);
153
49
  }
@@ -167,35 +63,6 @@ export const OutputMessage$inboundSchema = z
167
63
  OpenAIResponsesRefusalContent$inboundSchema,
168
64
  ])),
169
65
  });
170
- /** @internal */
171
- export const OutputMessage$outboundSchema = z.object({
172
- id: z.string(),
173
- role: OutputMessageRole$outboundSchema,
174
- type: OutputMessageType$outboundSchema,
175
- status: z.union([
176
- OutputMessageStatusCompleted$outboundSchema,
177
- OutputMessageStatusIncomplete$outboundSchema,
178
- OutputMessageStatusInProgress$outboundSchema,
179
- ]).optional(),
180
- content: z.array(z.union([
181
- ResponseOutputText$outboundSchema,
182
- OpenAIResponsesRefusalContent$outboundSchema,
183
- ])),
184
- });
185
- /**
186
- * @internal
187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
188
- */
189
- export var OutputMessage$;
190
- (function (OutputMessage$) {
191
- /** @deprecated use `OutputMessage$inboundSchema` instead. */
192
- OutputMessage$.inboundSchema = OutputMessage$inboundSchema;
193
- /** @deprecated use `OutputMessage$outboundSchema` instead. */
194
- OutputMessage$.outboundSchema = OutputMessage$outboundSchema;
195
- })(OutputMessage$ || (OutputMessage$ = {}));
196
- export function outputMessageToJSON(outputMessage) {
197
- return JSON.stringify(OutputMessage$outboundSchema.parse(outputMessage));
198
- }
199
66
  export function outputMessageFromJSON(jsonString) {
200
67
  return safeParse(jsonString, (x) => OutputMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessage' from JSON`);
201
68
  }
@@ -8,16 +8,4 @@ export declare const OutputModality: {
8
8
  export type OutputModality = OpenEnum<typeof OutputModality>;
9
9
  /** @internal */
10
10
  export declare const OutputModality$inboundSchema: z.ZodType<OutputModality, unknown>;
11
- /** @internal */
12
- export declare const OutputModality$outboundSchema: z.ZodType<OutputModality, OutputModality>;
13
- /**
14
- * @internal
15
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
- */
17
- export declare namespace OutputModality$ {
18
- /** @deprecated use `OutputModality$inboundSchema` instead. */
19
- const inboundSchema: z.ZodType<OutputModality, unknown, z.core.$ZodTypeInternals<OutputModality, unknown>>;
20
- /** @deprecated use `OutputModality$outboundSchema` instead. */
21
- const outboundSchema: z.ZodType<OutputModality, OutputModality, z.core.$ZodTypeInternals<OutputModality, OutputModality>>;
22
- }
23
11
  //# sourceMappingURL=outputmodality.d.ts.map