@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
@@ -10,19 +10,6 @@ export const OpenResponsesReasoningSummaryTextDeltaEventType = {
10
10
  /** @internal */
11
11
  export const OpenResponsesReasoningSummaryTextDeltaEventType$inboundSchema = z.enum(OpenResponsesReasoningSummaryTextDeltaEventType);
12
12
  /** @internal */
13
- export const OpenResponsesReasoningSummaryTextDeltaEventType$outboundSchema = OpenResponsesReasoningSummaryTextDeltaEventType$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 OpenResponsesReasoningSummaryTextDeltaEventType$;
19
- (function (OpenResponsesReasoningSummaryTextDeltaEventType$) {
20
- /** @deprecated use `OpenResponsesReasoningSummaryTextDeltaEventType$inboundSchema` instead. */
21
- OpenResponsesReasoningSummaryTextDeltaEventType$.inboundSchema = OpenResponsesReasoningSummaryTextDeltaEventType$inboundSchema;
22
- /** @deprecated use `OpenResponsesReasoningSummaryTextDeltaEventType$outboundSchema` instead. */
23
- OpenResponsesReasoningSummaryTextDeltaEventType$.outboundSchema = OpenResponsesReasoningSummaryTextDeltaEventType$outboundSchema;
24
- })(OpenResponsesReasoningSummaryTextDeltaEventType$ || (OpenResponsesReasoningSummaryTextDeltaEventType$ = {}));
25
- /** @internal */
26
13
  export const OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema = z.object({
27
14
  type: OpenResponsesReasoningSummaryTextDeltaEventType$inboundSchema,
28
15
  item_id: z.string(),
@@ -38,36 +25,6 @@ export const OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema = z.objec
38
25
  "sequence_number": "sequenceNumber",
39
26
  });
40
27
  });
41
- /** @internal */
42
- export const OpenResponsesReasoningSummaryTextDeltaEvent$outboundSchema = z.object({
43
- type: OpenResponsesReasoningSummaryTextDeltaEventType$outboundSchema,
44
- itemId: z.string(),
45
- outputIndex: z.number(),
46
- summaryIndex: z.number(),
47
- delta: z.string(),
48
- sequenceNumber: z.number(),
49
- }).transform((v) => {
50
- return remap$(v, {
51
- itemId: "item_id",
52
- outputIndex: "output_index",
53
- summaryIndex: "summary_index",
54
- sequenceNumber: "sequence_number",
55
- });
56
- });
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 OpenResponsesReasoningSummaryTextDeltaEvent$;
62
- (function (OpenResponsesReasoningSummaryTextDeltaEvent$) {
63
- /** @deprecated use `OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema` instead. */
64
- OpenResponsesReasoningSummaryTextDeltaEvent$.inboundSchema = OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema;
65
- /** @deprecated use `OpenResponsesReasoningSummaryTextDeltaEvent$outboundSchema` instead. */
66
- OpenResponsesReasoningSummaryTextDeltaEvent$.outboundSchema = OpenResponsesReasoningSummaryTextDeltaEvent$outboundSchema;
67
- })(OpenResponsesReasoningSummaryTextDeltaEvent$ || (OpenResponsesReasoningSummaryTextDeltaEvent$ = {}));
68
- export function openResponsesReasoningSummaryTextDeltaEventToJSON(openResponsesReasoningSummaryTextDeltaEvent) {
69
- return JSON.stringify(OpenResponsesReasoningSummaryTextDeltaEvent$outboundSchema.parse(openResponsesReasoningSummaryTextDeltaEvent));
70
- }
71
28
  export function openResponsesReasoningSummaryTextDeltaEventFromJSON(jsonString) {
72
29
  return safeParse(jsonString, (x) => OpenResponsesReasoningSummaryTextDeltaEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesReasoningSummaryTextDeltaEvent' from JSON`);
73
30
  }
@@ -20,46 +20,6 @@ export type OpenResponsesReasoningSummaryTextDoneEvent = {
20
20
  /** @internal */
21
21
  export declare const OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema: z.ZodEnum<typeof OpenResponsesReasoningSummaryTextDoneEventType>;
22
22
  /** @internal */
23
- export declare const OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema: z.ZodEnum<typeof OpenResponsesReasoningSummaryTextDoneEventType>;
24
- /**
25
- * @internal
26
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
- */
28
- export declare namespace OpenResponsesReasoningSummaryTextDoneEventType$ {
29
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema` instead. */
30
- const inboundSchema: z.ZodEnum<{
31
- readonly ResponseReasoningSummaryTextDone: "response.reasoning_summary_text.done";
32
- }>;
33
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema` instead. */
34
- const outboundSchema: z.ZodEnum<{
35
- readonly ResponseReasoningSummaryTextDone: "response.reasoning_summary_text.done";
36
- }>;
37
- }
38
- /** @internal */
39
23
  export declare const OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema: z.ZodType<OpenResponsesReasoningSummaryTextDoneEvent, unknown>;
40
- /** @internal */
41
- export type OpenResponsesReasoningSummaryTextDoneEvent$Outbound = {
42
- type: string;
43
- item_id: string;
44
- output_index: number;
45
- summary_index: number;
46
- text: string;
47
- sequence_number: number;
48
- };
49
- /** @internal */
50
- export declare const OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema: z.ZodType<OpenResponsesReasoningSummaryTextDoneEvent$Outbound, OpenResponsesReasoningSummaryTextDoneEvent>;
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- export declare namespace OpenResponsesReasoningSummaryTextDoneEvent$ {
56
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema` instead. */
57
- const inboundSchema: z.ZodType<OpenResponsesReasoningSummaryTextDoneEvent, unknown, z.core.$ZodTypeInternals<OpenResponsesReasoningSummaryTextDoneEvent, unknown>>;
58
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema` instead. */
59
- const outboundSchema: z.ZodType<OpenResponsesReasoningSummaryTextDoneEvent$Outbound, OpenResponsesReasoningSummaryTextDoneEvent, z.core.$ZodTypeInternals<OpenResponsesReasoningSummaryTextDoneEvent$Outbound, OpenResponsesReasoningSummaryTextDoneEvent>>;
60
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEvent$Outbound` instead. */
61
- type Outbound = OpenResponsesReasoningSummaryTextDoneEvent$Outbound;
62
- }
63
- export declare function openResponsesReasoningSummaryTextDoneEventToJSON(openResponsesReasoningSummaryTextDoneEvent: OpenResponsesReasoningSummaryTextDoneEvent): string;
64
24
  export declare function openResponsesReasoningSummaryTextDoneEventFromJSON(jsonString: string): SafeParseResult<OpenResponsesReasoningSummaryTextDoneEvent, SDKValidationError>;
65
25
  //# sourceMappingURL=openresponsesreasoningsummarytextdoneevent.d.ts.map
@@ -10,19 +10,6 @@ export const OpenResponsesReasoningSummaryTextDoneEventType = {
10
10
  /** @internal */
11
11
  export const OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema = z.enum(OpenResponsesReasoningSummaryTextDoneEventType);
12
12
  /** @internal */
13
- export const OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema = OpenResponsesReasoningSummaryTextDoneEventType$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 OpenResponsesReasoningSummaryTextDoneEventType$;
19
- (function (OpenResponsesReasoningSummaryTextDoneEventType$) {
20
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema` instead. */
21
- OpenResponsesReasoningSummaryTextDoneEventType$.inboundSchema = OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema;
22
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema` instead. */
23
- OpenResponsesReasoningSummaryTextDoneEventType$.outboundSchema = OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema;
24
- })(OpenResponsesReasoningSummaryTextDoneEventType$ || (OpenResponsesReasoningSummaryTextDoneEventType$ = {}));
25
- /** @internal */
26
13
  export const OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema = z.object({
27
14
  type: OpenResponsesReasoningSummaryTextDoneEventType$inboundSchema,
28
15
  item_id: z.string(),
@@ -38,36 +25,6 @@ export const OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema = z.object
38
25
  "sequence_number": "sequenceNumber",
39
26
  });
40
27
  });
41
- /** @internal */
42
- export const OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema = z.object({
43
- type: OpenResponsesReasoningSummaryTextDoneEventType$outboundSchema,
44
- itemId: z.string(),
45
- outputIndex: z.number(),
46
- summaryIndex: z.number(),
47
- text: z.string(),
48
- sequenceNumber: z.number(),
49
- }).transform((v) => {
50
- return remap$(v, {
51
- itemId: "item_id",
52
- outputIndex: "output_index",
53
- summaryIndex: "summary_index",
54
- sequenceNumber: "sequence_number",
55
- });
56
- });
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 OpenResponsesReasoningSummaryTextDoneEvent$;
62
- (function (OpenResponsesReasoningSummaryTextDoneEvent$) {
63
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema` instead. */
64
- OpenResponsesReasoningSummaryTextDoneEvent$.inboundSchema = OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema;
65
- /** @deprecated use `OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema` instead. */
66
- OpenResponsesReasoningSummaryTextDoneEvent$.outboundSchema = OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema;
67
- })(OpenResponsesReasoningSummaryTextDoneEvent$ || (OpenResponsesReasoningSummaryTextDoneEvent$ = {}));
68
- export function openResponsesReasoningSummaryTextDoneEventToJSON(openResponsesReasoningSummaryTextDoneEvent) {
69
- return JSON.stringify(OpenResponsesReasoningSummaryTextDoneEvent$outboundSchema.parse(openResponsesReasoningSummaryTextDoneEvent));
70
- }
71
28
  export function openResponsesReasoningSummaryTextDoneEventFromJSON(jsonString) {
72
29
  return safeParse(jsonString, (x) => OpenResponsesReasoningSummaryTextDoneEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesReasoningSummaryTextDoneEvent' from JSON`);
73
30
  }
@@ -1,7 +1,5 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
- import { Result as SafeParseResult } from "../types/fp.js";
4
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
3
  import { OpenAIResponsesIncludable } from "./openairesponsesincludable.js";
6
4
  import { OpenAIResponsesPrompt, OpenAIResponsesPrompt$Outbound } from "./openairesponsesprompt.js";
7
5
  import { OpenAIResponsesToolChoiceUnion, OpenAIResponsesToolChoiceUnion$Outbound } from "./openairesponsestoolchoiceunion.js";
@@ -103,7 +101,6 @@ export type MaxPrice = {
103
101
  */
104
102
  request?: any | undefined;
105
103
  };
106
- export type Experimental = {};
107
104
  /**
108
105
  * When multiple model providers are available, optionally indicate your routing preference.
109
106
  */
@@ -132,6 +129,10 @@ export type Provider = {
132
129
  * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
133
130
  */
134
131
  zdr?: boolean | null | undefined;
132
+ /**
133
+ * Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.
134
+ */
135
+ enforceDistillableText?: boolean | null | undefined;
135
136
  /**
136
137
  * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
137
138
  */
@@ -156,7 +157,6 @@ export type Provider = {
156
157
  * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
157
158
  */
158
159
  maxPrice?: MaxPrice | undefined;
159
- experimental?: Experimental | null | undefined;
160
160
  };
161
161
  export declare const IdFileParser: {
162
162
  readonly FileParser: "file-parser";
@@ -255,25 +255,7 @@ export type OpenResponsesRequest = {
255
255
  user?: string | undefined;
256
256
  };
257
257
  /** @internal */
258
- export declare const OpenResponsesRequestType$inboundSchema: z.ZodEnum<typeof OpenResponsesRequestType>;
259
- /** @internal */
260
258
  export declare const OpenResponsesRequestType$outboundSchema: z.ZodEnum<typeof OpenResponsesRequestType>;
261
- /**
262
- * @internal
263
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
- */
265
- export declare namespace OpenResponsesRequestType$ {
266
- /** @deprecated use `OpenResponsesRequestType$inboundSchema` instead. */
267
- const inboundSchema: z.ZodEnum<{
268
- readonly Function: "function";
269
- }>;
270
- /** @deprecated use `OpenResponsesRequestType$outboundSchema` instead. */
271
- const outboundSchema: z.ZodEnum<{
272
- readonly Function: "function";
273
- }>;
274
- }
275
- /** @internal */
276
- export declare const OpenResponsesRequestToolFunction$inboundSchema: z.ZodType<OpenResponsesRequestToolFunction, unknown>;
277
259
  /** @internal */
278
260
  export type OpenResponsesRequestToolFunction$Outbound = {
279
261
  type: string;
@@ -286,158 +268,35 @@ export type OpenResponsesRequestToolFunction$Outbound = {
286
268
  };
287
269
  /** @internal */
288
270
  export declare const OpenResponsesRequestToolFunction$outboundSchema: z.ZodType<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction>;
289
- /**
290
- * @internal
291
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
292
- */
293
- export declare namespace OpenResponsesRequestToolFunction$ {
294
- /** @deprecated use `OpenResponsesRequestToolFunction$inboundSchema` instead. */
295
- const inboundSchema: z.ZodType<OpenResponsesRequestToolFunction, unknown, z.core.$ZodTypeInternals<OpenResponsesRequestToolFunction, unknown>>;
296
- /** @deprecated use `OpenResponsesRequestToolFunction$outboundSchema` instead. */
297
- const outboundSchema: z.ZodType<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction, z.core.$ZodTypeInternals<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction>>;
298
- /** @deprecated use `OpenResponsesRequestToolFunction$Outbound` instead. */
299
- type Outbound = OpenResponsesRequestToolFunction$Outbound;
300
- }
301
271
  export declare function openResponsesRequestToolFunctionToJSON(openResponsesRequestToolFunction: OpenResponsesRequestToolFunction): string;
302
- export declare function openResponsesRequestToolFunctionFromJSON(jsonString: string): SafeParseResult<OpenResponsesRequestToolFunction, SDKValidationError>;
303
- /** @internal */
304
- export declare const OpenResponsesRequestToolUnion$inboundSchema: z.ZodType<OpenResponsesRequestToolUnion, unknown>;
305
272
  /** @internal */
306
273
  export type OpenResponsesRequestToolUnion$Outbound = OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound;
307
274
  /** @internal */
308
275
  export declare const OpenResponsesRequestToolUnion$outboundSchema: z.ZodType<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion>;
309
- /**
310
- * @internal
311
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
312
- */
313
- export declare namespace OpenResponsesRequestToolUnion$ {
314
- /** @deprecated use `OpenResponsesRequestToolUnion$inboundSchema` instead. */
315
- const inboundSchema: z.ZodType<OpenResponsesRequestToolUnion, unknown, z.core.$ZodTypeInternals<OpenResponsesRequestToolUnion, unknown>>;
316
- /** @deprecated use `OpenResponsesRequestToolUnion$outboundSchema` instead. */
317
- const outboundSchema: z.ZodType<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion, z.core.$ZodTypeInternals<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion>>;
318
- /** @deprecated use `OpenResponsesRequestToolUnion$Outbound` instead. */
319
- type Outbound = OpenResponsesRequestToolUnion$Outbound;
320
- }
321
276
  export declare function openResponsesRequestToolUnionToJSON(openResponsesRequestToolUnion: OpenResponsesRequestToolUnion): string;
322
- export declare function openResponsesRequestToolUnionFromJSON(jsonString: string): SafeParseResult<OpenResponsesRequestToolUnion, SDKValidationError>;
323
- /** @internal */
324
- export declare const ServiceTier$inboundSchema: z.ZodType<ServiceTier, unknown>;
325
277
  /** @internal */
326
278
  export declare const ServiceTier$outboundSchema: z.ZodType<ServiceTier, ServiceTier>;
327
- /**
328
- * @internal
329
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
330
- */
331
- export declare namespace ServiceTier$ {
332
- /** @deprecated use `ServiceTier$inboundSchema` instead. */
333
- const inboundSchema: z.ZodType<ServiceTier, unknown, z.core.$ZodTypeInternals<ServiceTier, unknown>>;
334
- /** @deprecated use `ServiceTier$outboundSchema` instead. */
335
- const outboundSchema: z.ZodType<ServiceTier, ServiceTier, z.core.$ZodTypeInternals<ServiceTier, ServiceTier>>;
336
- }
337
- /** @internal */
338
- export declare const Truncation$inboundSchema: z.ZodType<Truncation, unknown>;
339
279
  /** @internal */
340
280
  export declare const Truncation$outboundSchema: z.ZodType<Truncation, Truncation>;
341
- /**
342
- * @internal
343
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
344
- */
345
- export declare namespace Truncation$ {
346
- /** @deprecated use `Truncation$inboundSchema` instead. */
347
- const inboundSchema: z.ZodType<Truncation, unknown, z.core.$ZodTypeInternals<Truncation, unknown>>;
348
- /** @deprecated use `Truncation$outboundSchema` instead. */
349
- const outboundSchema: z.ZodType<Truncation, Truncation, z.core.$ZodTypeInternals<Truncation, Truncation>>;
350
- }
351
- /** @internal */
352
- export declare const DataCollection$inboundSchema: z.ZodType<DataCollection, unknown>;
353
281
  /** @internal */
354
282
  export declare const DataCollection$outboundSchema: z.ZodType<DataCollection, DataCollection>;
355
- /**
356
- * @internal
357
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
358
- */
359
- export declare namespace DataCollection$ {
360
- /** @deprecated use `DataCollection$inboundSchema` instead. */
361
- const inboundSchema: z.ZodType<DataCollection, unknown, z.core.$ZodTypeInternals<DataCollection, unknown>>;
362
- /** @deprecated use `DataCollection$outboundSchema` instead. */
363
- const outboundSchema: z.ZodType<DataCollection, DataCollection, z.core.$ZodTypeInternals<DataCollection, DataCollection>>;
364
- }
365
- /** @internal */
366
- export declare const Order$inboundSchema: z.ZodType<Order, unknown>;
367
283
  /** @internal */
368
284
  export type Order$Outbound = string | string;
369
285
  /** @internal */
370
286
  export declare const Order$outboundSchema: z.ZodType<Order$Outbound, Order>;
371
- /**
372
- * @internal
373
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
374
- */
375
- export declare namespace Order$ {
376
- /** @deprecated use `Order$inboundSchema` instead. */
377
- const inboundSchema: z.ZodType<Order, unknown, z.core.$ZodTypeInternals<Order, unknown>>;
378
- /** @deprecated use `Order$outboundSchema` instead. */
379
- const outboundSchema: z.ZodType<string, Order, z.core.$ZodTypeInternals<string, Order>>;
380
- /** @deprecated use `Order$Outbound` instead. */
381
- type Outbound = Order$Outbound;
382
- }
383
287
  export declare function orderToJSON(order: Order): string;
384
- export declare function orderFromJSON(jsonString: string): SafeParseResult<Order, SDKValidationError>;
385
- /** @internal */
386
- export declare const Only$inboundSchema: z.ZodType<Only, unknown>;
387
288
  /** @internal */
388
289
  export type Only$Outbound = string | string;
389
290
  /** @internal */
390
291
  export declare const Only$outboundSchema: z.ZodType<Only$Outbound, Only>;
391
- /**
392
- * @internal
393
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
394
- */
395
- export declare namespace Only$ {
396
- /** @deprecated use `Only$inboundSchema` instead. */
397
- const inboundSchema: z.ZodType<Only, unknown, z.core.$ZodTypeInternals<Only, unknown>>;
398
- /** @deprecated use `Only$outboundSchema` instead. */
399
- const outboundSchema: z.ZodType<string, Only, z.core.$ZodTypeInternals<string, Only>>;
400
- /** @deprecated use `Only$Outbound` instead. */
401
- type Outbound = Only$Outbound;
402
- }
403
292
  export declare function onlyToJSON(only: Only): string;
404
- export declare function onlyFromJSON(jsonString: string): SafeParseResult<Only, SDKValidationError>;
405
- /** @internal */
406
- export declare const Ignore$inboundSchema: z.ZodType<Ignore, unknown>;
407
293
  /** @internal */
408
294
  export type Ignore$Outbound = string | string;
409
295
  /** @internal */
410
296
  export declare const Ignore$outboundSchema: z.ZodType<Ignore$Outbound, Ignore>;
411
- /**
412
- * @internal
413
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
414
- */
415
- export declare namespace Ignore$ {
416
- /** @deprecated use `Ignore$inboundSchema` instead. */
417
- const inboundSchema: z.ZodType<Ignore, unknown, z.core.$ZodTypeInternals<Ignore, unknown>>;
418
- /** @deprecated use `Ignore$outboundSchema` instead. */
419
- const outboundSchema: z.ZodType<string, Ignore, z.core.$ZodTypeInternals<string, Ignore>>;
420
- /** @deprecated use `Ignore$Outbound` instead. */
421
- type Outbound = Ignore$Outbound;
422
- }
423
297
  export declare function ignoreToJSON(ignore: Ignore): string;
424
- export declare function ignoreFromJSON(jsonString: string): SafeParseResult<Ignore, SDKValidationError>;
425
- /** @internal */
426
- export declare const Sort$inboundSchema: z.ZodType<Sort, unknown>;
427
298
  /** @internal */
428
299
  export declare const Sort$outboundSchema: z.ZodType<Sort, Sort>;
429
- /**
430
- * @internal
431
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
432
- */
433
- export declare namespace Sort$ {
434
- /** @deprecated use `Sort$inboundSchema` instead. */
435
- const inboundSchema: z.ZodType<Sort, unknown, z.core.$ZodTypeInternals<Sort, unknown>>;
436
- /** @deprecated use `Sort$outboundSchema` instead. */
437
- const outboundSchema: z.ZodType<Sort, Sort, z.core.$ZodTypeInternals<Sort, Sort>>;
438
- }
439
- /** @internal */
440
- export declare const MaxPrice$inboundSchema: z.ZodType<MaxPrice, unknown>;
441
300
  /** @internal */
442
301
  export type MaxPrice$Outbound = {
443
302
  prompt?: any | undefined;
@@ -448,128 +307,35 @@ export type MaxPrice$Outbound = {
448
307
  };
449
308
  /** @internal */
450
309
  export declare const MaxPrice$outboundSchema: z.ZodType<MaxPrice$Outbound, MaxPrice>;
451
- /**
452
- * @internal
453
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
454
- */
455
- export declare namespace MaxPrice$ {
456
- /** @deprecated use `MaxPrice$inboundSchema` instead. */
457
- const inboundSchema: z.ZodType<MaxPrice, unknown, z.core.$ZodTypeInternals<MaxPrice, unknown>>;
458
- /** @deprecated use `MaxPrice$outboundSchema` instead. */
459
- const outboundSchema: z.ZodType<MaxPrice$Outbound, MaxPrice, z.core.$ZodTypeInternals<MaxPrice$Outbound, MaxPrice>>;
460
- /** @deprecated use `MaxPrice$Outbound` instead. */
461
- type Outbound = MaxPrice$Outbound;
462
- }
463
310
  export declare function maxPriceToJSON(maxPrice: MaxPrice): string;
464
- export declare function maxPriceFromJSON(jsonString: string): SafeParseResult<MaxPrice, SDKValidationError>;
465
- /** @internal */
466
- export declare const Experimental$inboundSchema: z.ZodType<Experimental, unknown>;
467
- /** @internal */
468
- export type Experimental$Outbound = {};
469
- /** @internal */
470
- export declare const Experimental$outboundSchema: z.ZodType<Experimental$Outbound, Experimental>;
471
- /**
472
- * @internal
473
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
474
- */
475
- export declare namespace Experimental$ {
476
- /** @deprecated use `Experimental$inboundSchema` instead. */
477
- const inboundSchema: z.ZodType<Experimental, unknown, z.core.$ZodTypeInternals<Experimental, unknown>>;
478
- /** @deprecated use `Experimental$outboundSchema` instead. */
479
- const outboundSchema: z.ZodType<Experimental$Outbound, Experimental, z.core.$ZodTypeInternals<Experimental$Outbound, Experimental>>;
480
- /** @deprecated use `Experimental$Outbound` instead. */
481
- type Outbound = Experimental$Outbound;
482
- }
483
- export declare function experimentalToJSON(experimental: Experimental): string;
484
- export declare function experimentalFromJSON(jsonString: string): SafeParseResult<Experimental, SDKValidationError>;
485
- /** @internal */
486
- export declare const Provider$inboundSchema: z.ZodType<Provider, unknown>;
487
311
  /** @internal */
488
312
  export type Provider$Outbound = {
489
313
  allow_fallbacks?: boolean | null | undefined;
490
314
  require_parameters?: boolean | null | undefined;
491
315
  data_collection?: string | null | undefined;
492
316
  zdr?: boolean | null | undefined;
317
+ enforce_distillable_text?: boolean | null | undefined;
493
318
  order?: Array<string | string> | null | undefined;
494
319
  only?: Array<string | string> | null | undefined;
495
320
  ignore?: Array<string | string> | null | undefined;
496
321
  quantizations?: Array<string> | null | undefined;
497
322
  sort?: string | null | undefined;
498
323
  max_price?: MaxPrice$Outbound | undefined;
499
- experimental?: Experimental$Outbound | null | undefined;
500
324
  };
501
325
  /** @internal */
502
326
  export declare const Provider$outboundSchema: z.ZodType<Provider$Outbound, Provider>;
503
- /**
504
- * @internal
505
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
506
- */
507
- export declare namespace Provider$ {
508
- /** @deprecated use `Provider$inboundSchema` instead. */
509
- const inboundSchema: z.ZodType<Provider, unknown, z.core.$ZodTypeInternals<Provider, unknown>>;
510
- /** @deprecated use `Provider$outboundSchema` instead. */
511
- const outboundSchema: z.ZodType<Provider$Outbound, Provider, z.core.$ZodTypeInternals<Provider$Outbound, Provider>>;
512
- /** @deprecated use `Provider$Outbound` instead. */
513
- type Outbound = Provider$Outbound;
514
- }
515
327
  export declare function providerToJSON(provider: Provider): string;
516
- export declare function providerFromJSON(jsonString: string): SafeParseResult<Provider, SDKValidationError>;
517
- /** @internal */
518
- export declare const IdFileParser$inboundSchema: z.ZodEnum<typeof IdFileParser>;
519
328
  /** @internal */
520
329
  export declare const IdFileParser$outboundSchema: z.ZodEnum<typeof IdFileParser>;
521
- /**
522
- * @internal
523
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
524
- */
525
- export declare namespace IdFileParser$ {
526
- /** @deprecated use `IdFileParser$inboundSchema` instead. */
527
- const inboundSchema: z.ZodEnum<{
528
- readonly FileParser: "file-parser";
529
- }>;
530
- /** @deprecated use `IdFileParser$outboundSchema` instead. */
531
- const outboundSchema: z.ZodEnum<{
532
- readonly FileParser: "file-parser";
533
- }>;
534
- }
535
- /** @internal */
536
- export declare const PdfEngine$inboundSchema: z.ZodType<PdfEngine, unknown>;
537
330
  /** @internal */
538
331
  export declare const PdfEngine$outboundSchema: z.ZodType<PdfEngine, PdfEngine>;
539
- /**
540
- * @internal
541
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
542
- */
543
- export declare namespace PdfEngine$ {
544
- /** @deprecated use `PdfEngine$inboundSchema` instead. */
545
- const inboundSchema: z.ZodType<PdfEngine, unknown, z.core.$ZodTypeInternals<PdfEngine, unknown>>;
546
- /** @deprecated use `PdfEngine$outboundSchema` instead. */
547
- const outboundSchema: z.ZodType<PdfEngine, PdfEngine, z.core.$ZodTypeInternals<PdfEngine, PdfEngine>>;
548
- }
549
- /** @internal */
550
- export declare const Pdf$inboundSchema: z.ZodType<Pdf, unknown>;
551
332
  /** @internal */
552
333
  export type Pdf$Outbound = {
553
334
  engine?: string | undefined;
554
335
  };
555
336
  /** @internal */
556
337
  export declare const Pdf$outboundSchema: z.ZodType<Pdf$Outbound, Pdf>;
557
- /**
558
- * @internal
559
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
560
- */
561
- export declare namespace Pdf$ {
562
- /** @deprecated use `Pdf$inboundSchema` instead. */
563
- const inboundSchema: z.ZodType<Pdf, unknown, z.core.$ZodTypeInternals<Pdf, unknown>>;
564
- /** @deprecated use `Pdf$outboundSchema` instead. */
565
- const outboundSchema: z.ZodType<Pdf$Outbound, Pdf, z.core.$ZodTypeInternals<Pdf$Outbound, Pdf>>;
566
- /** @deprecated use `Pdf$Outbound` instead. */
567
- type Outbound = Pdf$Outbound;
568
- }
569
338
  export declare function pdfToJSON(pdf: Pdf): string;
570
- export declare function pdfFromJSON(jsonString: string): SafeParseResult<Pdf, SDKValidationError>;
571
- /** @internal */
572
- export declare const PluginFileParser$inboundSchema: z.ZodType<PluginFileParser, unknown>;
573
339
  /** @internal */
574
340
  export type PluginFileParser$Outbound = {
575
341
  id: string;
@@ -578,54 +344,11 @@ export type PluginFileParser$Outbound = {
578
344
  };
579
345
  /** @internal */
580
346
  export declare const PluginFileParser$outboundSchema: z.ZodType<PluginFileParser$Outbound, PluginFileParser>;
581
- /**
582
- * @internal
583
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
584
- */
585
- export declare namespace PluginFileParser$ {
586
- /** @deprecated use `PluginFileParser$inboundSchema` instead. */
587
- const inboundSchema: z.ZodType<PluginFileParser, unknown, z.core.$ZodTypeInternals<PluginFileParser, unknown>>;
588
- /** @deprecated use `PluginFileParser$outboundSchema` instead. */
589
- const outboundSchema: z.ZodType<PluginFileParser$Outbound, PluginFileParser, z.core.$ZodTypeInternals<PluginFileParser$Outbound, PluginFileParser>>;
590
- /** @deprecated use `PluginFileParser$Outbound` instead. */
591
- type Outbound = PluginFileParser$Outbound;
592
- }
593
347
  export declare function pluginFileParserToJSON(pluginFileParser: PluginFileParser): string;
594
- export declare function pluginFileParserFromJSON(jsonString: string): SafeParseResult<PluginFileParser, SDKValidationError>;
595
- /** @internal */
596
- export declare const IdWeb$inboundSchema: z.ZodEnum<typeof IdWeb>;
597
348
  /** @internal */
598
349
  export declare const IdWeb$outboundSchema: z.ZodEnum<typeof IdWeb>;
599
- /**
600
- * @internal
601
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
602
- */
603
- export declare namespace IdWeb$ {
604
- /** @deprecated use `IdWeb$inboundSchema` instead. */
605
- const inboundSchema: z.ZodEnum<{
606
- readonly Web: "web";
607
- }>;
608
- /** @deprecated use `IdWeb$outboundSchema` instead. */
609
- const outboundSchema: z.ZodEnum<{
610
- readonly Web: "web";
611
- }>;
612
- }
613
- /** @internal */
614
- export declare const Engine$inboundSchema: z.ZodType<Engine, unknown>;
615
350
  /** @internal */
616
351
  export declare const Engine$outboundSchema: z.ZodType<Engine, Engine>;
617
- /**
618
- * @internal
619
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
620
- */
621
- export declare namespace Engine$ {
622
- /** @deprecated use `Engine$inboundSchema` instead. */
623
- const inboundSchema: z.ZodType<Engine, unknown, z.core.$ZodTypeInternals<Engine, unknown>>;
624
- /** @deprecated use `Engine$outboundSchema` instead. */
625
- const outboundSchema: z.ZodType<Engine, Engine, z.core.$ZodTypeInternals<Engine, Engine>>;
626
- }
627
- /** @internal */
628
- export declare const PluginWeb$inboundSchema: z.ZodType<PluginWeb, unknown>;
629
352
  /** @internal */
630
353
  export type PluginWeb$Outbound = {
631
354
  id: string;
@@ -635,82 +358,21 @@ export type PluginWeb$Outbound = {
635
358
  };
636
359
  /** @internal */
637
360
  export declare const PluginWeb$outboundSchema: z.ZodType<PluginWeb$Outbound, PluginWeb>;
638
- /**
639
- * @internal
640
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
641
- */
642
- export declare namespace PluginWeb$ {
643
- /** @deprecated use `PluginWeb$inboundSchema` instead. */
644
- const inboundSchema: z.ZodType<PluginWeb, unknown, z.core.$ZodTypeInternals<PluginWeb, unknown>>;
645
- /** @deprecated use `PluginWeb$outboundSchema` instead. */
646
- const outboundSchema: z.ZodType<PluginWeb$Outbound, PluginWeb, z.core.$ZodTypeInternals<PluginWeb$Outbound, PluginWeb>>;
647
- /** @deprecated use `PluginWeb$Outbound` instead. */
648
- type Outbound = PluginWeb$Outbound;
649
- }
650
361
  export declare function pluginWebToJSON(pluginWeb: PluginWeb): string;
651
- export declare function pluginWebFromJSON(jsonString: string): SafeParseResult<PluginWeb, SDKValidationError>;
652
- /** @internal */
653
- export declare const IdModeration$inboundSchema: z.ZodEnum<typeof IdModeration>;
654
362
  /** @internal */
655
363
  export declare const IdModeration$outboundSchema: z.ZodEnum<typeof IdModeration>;
656
- /**
657
- * @internal
658
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
659
- */
660
- export declare namespace IdModeration$ {
661
- /** @deprecated use `IdModeration$inboundSchema` instead. */
662
- const inboundSchema: z.ZodEnum<{
663
- readonly Moderation: "moderation";
664
- }>;
665
- /** @deprecated use `IdModeration$outboundSchema` instead. */
666
- const outboundSchema: z.ZodEnum<{
667
- readonly Moderation: "moderation";
668
- }>;
669
- }
670
- /** @internal */
671
- export declare const PluginModeration$inboundSchema: z.ZodType<PluginModeration, unknown>;
672
364
  /** @internal */
673
365
  export type PluginModeration$Outbound = {
674
366
  id: string;
675
367
  };
676
368
  /** @internal */
677
369
  export declare const PluginModeration$outboundSchema: z.ZodType<PluginModeration$Outbound, PluginModeration>;
678
- /**
679
- * @internal
680
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
681
- */
682
- export declare namespace PluginModeration$ {
683
- /** @deprecated use `PluginModeration$inboundSchema` instead. */
684
- const inboundSchema: z.ZodType<PluginModeration, unknown, z.core.$ZodTypeInternals<PluginModeration, unknown>>;
685
- /** @deprecated use `PluginModeration$outboundSchema` instead. */
686
- const outboundSchema: z.ZodType<PluginModeration$Outbound, PluginModeration, z.core.$ZodTypeInternals<PluginModeration$Outbound, PluginModeration>>;
687
- /** @deprecated use `PluginModeration$Outbound` instead. */
688
- type Outbound = PluginModeration$Outbound;
689
- }
690
370
  export declare function pluginModerationToJSON(pluginModeration: PluginModeration): string;
691
- export declare function pluginModerationFromJSON(jsonString: string): SafeParseResult<PluginModeration, SDKValidationError>;
692
- /** @internal */
693
- export declare const Plugin$inboundSchema: z.ZodType<Plugin, unknown>;
694
371
  /** @internal */
695
372
  export type Plugin$Outbound = PluginModeration$Outbound | PluginWeb$Outbound | PluginFileParser$Outbound;
696
373
  /** @internal */
697
374
  export declare const Plugin$outboundSchema: z.ZodType<Plugin$Outbound, Plugin>;
698
- /**
699
- * @internal
700
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
701
- */
702
- export declare namespace Plugin$ {
703
- /** @deprecated use `Plugin$inboundSchema` instead. */
704
- const inboundSchema: z.ZodType<Plugin, unknown, z.core.$ZodTypeInternals<Plugin, unknown>>;
705
- /** @deprecated use `Plugin$outboundSchema` instead. */
706
- const outboundSchema: z.ZodType<Plugin$Outbound, Plugin, z.core.$ZodTypeInternals<Plugin$Outbound, Plugin>>;
707
- /** @deprecated use `Plugin$Outbound` instead. */
708
- type Outbound = Plugin$Outbound;
709
- }
710
375
  export declare function pluginToJSON(plugin: Plugin): string;
711
- export declare function pluginFromJSON(jsonString: string): SafeParseResult<Plugin, SDKValidationError>;
712
- /** @internal */
713
- export declare const OpenResponsesRequest$inboundSchema: z.ZodType<OpenResponsesRequest, unknown>;
714
376
  /** @internal */
715
377
  export type OpenResponsesRequest$Outbound = {
716
378
  input?: OpenResponsesInput$Outbound | undefined;
@@ -745,18 +407,5 @@ export type OpenResponsesRequest$Outbound = {
745
407
  };
746
408
  /** @internal */
747
409
  export declare const OpenResponsesRequest$outboundSchema: z.ZodType<OpenResponsesRequest$Outbound, OpenResponsesRequest>;
748
- /**
749
- * @internal
750
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
751
- */
752
- export declare namespace OpenResponsesRequest$ {
753
- /** @deprecated use `OpenResponsesRequest$inboundSchema` instead. */
754
- const inboundSchema: z.ZodType<OpenResponsesRequest, unknown, z.core.$ZodTypeInternals<OpenResponsesRequest, unknown>>;
755
- /** @deprecated use `OpenResponsesRequest$outboundSchema` instead. */
756
- const outboundSchema: z.ZodType<OpenResponsesRequest$Outbound, OpenResponsesRequest, z.core.$ZodTypeInternals<OpenResponsesRequest$Outbound, OpenResponsesRequest>>;
757
- /** @deprecated use `OpenResponsesRequest$Outbound` instead. */
758
- type Outbound = OpenResponsesRequest$Outbound;
759
- }
760
410
  export declare function openResponsesRequestToJSON(openResponsesRequest: OpenResponsesRequest): string;
761
- export declare function openResponsesRequestFromJSON(jsonString: string): SafeParseResult<OpenResponsesRequest, SDKValidationError>;
762
411
  //# sourceMappingURL=openresponsesrequest.d.ts.map