@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
@@ -13,17 +13,6 @@ export const OpenResponsesWebSearchToolType = {
13
13
  export const OpenResponsesWebSearchToolType$inboundSchema = z.enum(OpenResponsesWebSearchToolType);
14
14
  /** @internal */
15
15
  export const OpenResponsesWebSearchToolType$outboundSchema = OpenResponsesWebSearchToolType$inboundSchema;
16
- /**
17
- * @internal
18
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
19
- */
20
- export var OpenResponsesWebSearchToolType$;
21
- (function (OpenResponsesWebSearchToolType$) {
22
- /** @deprecated use `OpenResponsesWebSearchToolType$inboundSchema` instead. */
23
- OpenResponsesWebSearchToolType$.inboundSchema = OpenResponsesWebSearchToolType$inboundSchema;
24
- /** @deprecated use `OpenResponsesWebSearchToolType$outboundSchema` instead. */
25
- OpenResponsesWebSearchToolType$.outboundSchema = OpenResponsesWebSearchToolType$outboundSchema;
26
- })(OpenResponsesWebSearchToolType$ || (OpenResponsesWebSearchToolType$ = {}));
27
16
  /** @internal */
28
17
  export const OpenResponsesWebSearchToolFilters$inboundSchema = z.object({
29
18
  allowed_domains: z.nullable(z.array(z.string())).optional(),
@@ -40,17 +29,6 @@ export const OpenResponsesWebSearchToolFilters$outboundSchema = z.object({
40
29
  allowedDomains: "allowed_domains",
41
30
  });
42
31
  });
43
- /**
44
- * @internal
45
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
- */
47
- export var OpenResponsesWebSearchToolFilters$;
48
- (function (OpenResponsesWebSearchToolFilters$) {
49
- /** @deprecated use `OpenResponsesWebSearchToolFilters$inboundSchema` instead. */
50
- OpenResponsesWebSearchToolFilters$.inboundSchema = OpenResponsesWebSearchToolFilters$inboundSchema;
51
- /** @deprecated use `OpenResponsesWebSearchToolFilters$outboundSchema` instead. */
52
- OpenResponsesWebSearchToolFilters$.outboundSchema = OpenResponsesWebSearchToolFilters$outboundSchema;
53
- })(OpenResponsesWebSearchToolFilters$ || (OpenResponsesWebSearchToolFilters$ = {}));
54
32
  export function openResponsesWebSearchToolFiltersToJSON(openResponsesWebSearchToolFilters) {
55
33
  return JSON.stringify(OpenResponsesWebSearchToolFilters$outboundSchema.parse(openResponsesWebSearchToolFilters));
56
34
  }
@@ -83,17 +61,6 @@ export const OpenResponsesWebSearchTool$outboundSchema = z.object({
83
61
  userLocation: "user_location",
84
62
  });
85
63
  });
86
- /**
87
- * @internal
88
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
- */
90
- export var OpenResponsesWebSearchTool$;
91
- (function (OpenResponsesWebSearchTool$) {
92
- /** @deprecated use `OpenResponsesWebSearchTool$inboundSchema` instead. */
93
- OpenResponsesWebSearchTool$.inboundSchema = OpenResponsesWebSearchTool$inboundSchema;
94
- /** @deprecated use `OpenResponsesWebSearchTool$outboundSchema` instead. */
95
- OpenResponsesWebSearchTool$.outboundSchema = OpenResponsesWebSearchTool$outboundSchema;
96
- })(OpenResponsesWebSearchTool$ || (OpenResponsesWebSearchTool$ = {}));
97
64
  export function openResponsesWebSearchToolToJSON(openResponsesWebSearchTool) {
98
65
  return JSON.stringify(OpenResponsesWebSearchTool$outboundSchema.parse(openResponsesWebSearchTool));
99
66
  }
@@ -58,21 +58,7 @@ export type CreateAuthKeysCodeResponse = {
58
58
  data: CreateAuthKeysCodeData;
59
59
  };
60
60
  /** @internal */
61
- export declare const CreateAuthKeysCodeCodeChallengeMethod$inboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, unknown>;
62
- /** @internal */
63
61
  export declare const CreateAuthKeysCodeCodeChallengeMethod$outboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod>;
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 declare namespace CreateAuthKeysCodeCodeChallengeMethod$ {
69
- /** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$inboundSchema` instead. */
70
- const inboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeCodeChallengeMethod, unknown>>;
71
- /** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$outboundSchema` instead. */
72
- const outboundSchema: z.ZodType<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod, z.core.$ZodTypeInternals<CreateAuthKeysCodeCodeChallengeMethod, CreateAuthKeysCodeCodeChallengeMethod>>;
73
- }
74
- /** @internal */
75
- export declare const CreateAuthKeysCodeRequest$inboundSchema: z.ZodType<CreateAuthKeysCodeRequest, unknown>;
76
62
  /** @internal */
77
63
  export type CreateAuthKeysCodeRequest$Outbound = {
78
64
  callback_url: string;
@@ -82,64 +68,11 @@ export type CreateAuthKeysCodeRequest$Outbound = {
82
68
  };
83
69
  /** @internal */
84
70
  export declare const CreateAuthKeysCodeRequest$outboundSchema: z.ZodType<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest>;
85
- /**
86
- * @internal
87
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
- */
89
- export declare namespace CreateAuthKeysCodeRequest$ {
90
- /** @deprecated use `CreateAuthKeysCodeRequest$inboundSchema` instead. */
91
- const inboundSchema: z.ZodType<CreateAuthKeysCodeRequest, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeRequest, unknown>>;
92
- /** @deprecated use `CreateAuthKeysCodeRequest$outboundSchema` instead. */
93
- const outboundSchema: z.ZodType<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest, z.core.$ZodTypeInternals<CreateAuthKeysCodeRequest$Outbound, CreateAuthKeysCodeRequest>>;
94
- /** @deprecated use `CreateAuthKeysCodeRequest$Outbound` instead. */
95
- type Outbound = CreateAuthKeysCodeRequest$Outbound;
96
- }
97
71
  export declare function createAuthKeysCodeRequestToJSON(createAuthKeysCodeRequest: CreateAuthKeysCodeRequest): string;
98
- export declare function createAuthKeysCodeRequestFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeRequest, SDKValidationError>;
99
72
  /** @internal */
100
73
  export declare const CreateAuthKeysCodeData$inboundSchema: z.ZodType<CreateAuthKeysCodeData, unknown>;
101
- /** @internal */
102
- export type CreateAuthKeysCodeData$Outbound = {
103
- id: string;
104
- app_id: number;
105
- created_at: string;
106
- };
107
- /** @internal */
108
- export declare const CreateAuthKeysCodeData$outboundSchema: z.ZodType<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData>;
109
- /**
110
- * @internal
111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
- */
113
- export declare namespace CreateAuthKeysCodeData$ {
114
- /** @deprecated use `CreateAuthKeysCodeData$inboundSchema` instead. */
115
- const inboundSchema: z.ZodType<CreateAuthKeysCodeData, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeData, unknown>>;
116
- /** @deprecated use `CreateAuthKeysCodeData$outboundSchema` instead. */
117
- const outboundSchema: z.ZodType<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData, z.core.$ZodTypeInternals<CreateAuthKeysCodeData$Outbound, CreateAuthKeysCodeData>>;
118
- /** @deprecated use `CreateAuthKeysCodeData$Outbound` instead. */
119
- type Outbound = CreateAuthKeysCodeData$Outbound;
120
- }
121
- export declare function createAuthKeysCodeDataToJSON(createAuthKeysCodeData: CreateAuthKeysCodeData): string;
122
74
  export declare function createAuthKeysCodeDataFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeData, SDKValidationError>;
123
75
  /** @internal */
124
76
  export declare const CreateAuthKeysCodeResponse$inboundSchema: z.ZodType<CreateAuthKeysCodeResponse, unknown>;
125
- /** @internal */
126
- export type CreateAuthKeysCodeResponse$Outbound = {
127
- data: CreateAuthKeysCodeData$Outbound;
128
- };
129
- /** @internal */
130
- export declare const CreateAuthKeysCodeResponse$outboundSchema: z.ZodType<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse>;
131
- /**
132
- * @internal
133
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
- */
135
- export declare namespace CreateAuthKeysCodeResponse$ {
136
- /** @deprecated use `CreateAuthKeysCodeResponse$inboundSchema` instead. */
137
- const inboundSchema: z.ZodType<CreateAuthKeysCodeResponse, unknown, z.core.$ZodTypeInternals<CreateAuthKeysCodeResponse, unknown>>;
138
- /** @deprecated use `CreateAuthKeysCodeResponse$outboundSchema` instead. */
139
- const outboundSchema: z.ZodType<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse, z.core.$ZodTypeInternals<CreateAuthKeysCodeResponse$Outbound, CreateAuthKeysCodeResponse>>;
140
- /** @deprecated use `CreateAuthKeysCodeResponse$Outbound` instead. */
141
- type Outbound = CreateAuthKeysCodeResponse$Outbound;
142
- }
143
- export declare function createAuthKeysCodeResponseToJSON(createAuthKeysCodeResponse: CreateAuthKeysCodeResponse): string;
144
77
  export declare function createAuthKeysCodeResponseFromJSON(jsonString: string): SafeParseResult<CreateAuthKeysCodeResponse, SDKValidationError>;
145
78
  //# sourceMappingURL=createauthkeyscode.d.ts.map
@@ -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
  * The method used to generate the code challenge
10
9
  */
@@ -13,41 +12,10 @@ export const CreateAuthKeysCodeCodeChallengeMethod = {
13
12
  Plain: "plain",
14
13
  };
15
14
  /** @internal */
16
- export const CreateAuthKeysCodeCodeChallengeMethod$inboundSchema = z
17
- .union([
18
- z.enum(CreateAuthKeysCodeCodeChallengeMethod),
19
- z.string().transform(catchUnrecognizedEnum),
20
- ]);
21
- /** @internal */
22
15
  export const CreateAuthKeysCodeCodeChallengeMethod$outboundSchema = z.union([
23
16
  z.enum(CreateAuthKeysCodeCodeChallengeMethod),
24
17
  z.string().and(z.custom()),
25
18
  ]);
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export var CreateAuthKeysCodeCodeChallengeMethod$;
31
- (function (CreateAuthKeysCodeCodeChallengeMethod$) {
32
- /** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$inboundSchema` instead. */
33
- CreateAuthKeysCodeCodeChallengeMethod$.inboundSchema = CreateAuthKeysCodeCodeChallengeMethod$inboundSchema;
34
- /** @deprecated use `CreateAuthKeysCodeCodeChallengeMethod$outboundSchema` instead. */
35
- CreateAuthKeysCodeCodeChallengeMethod$.outboundSchema = CreateAuthKeysCodeCodeChallengeMethod$outboundSchema;
36
- })(CreateAuthKeysCodeCodeChallengeMethod$ || (CreateAuthKeysCodeCodeChallengeMethod$ = {}));
37
- /** @internal */
38
- export const CreateAuthKeysCodeRequest$inboundSchema = z.object({
39
- callback_url: z.string(),
40
- code_challenge: z.string().optional(),
41
- code_challenge_method: CreateAuthKeysCodeCodeChallengeMethod$inboundSchema
42
- .optional(),
43
- limit: z.number().optional(),
44
- }).transform((v) => {
45
- return remap$(v, {
46
- "callback_url": "callbackUrl",
47
- "code_challenge": "codeChallenge",
48
- "code_challenge_method": "codeChallengeMethod",
49
- });
50
- });
51
19
  /** @internal */
52
20
  export const CreateAuthKeysCodeRequest$outboundSchema = z.object({
53
21
  callbackUrl: z.string(),
@@ -62,23 +30,9 @@ export const CreateAuthKeysCodeRequest$outboundSchema = z.object({
62
30
  codeChallengeMethod: "code_challenge_method",
63
31
  });
64
32
  });
65
- /**
66
- * @internal
67
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
- */
69
- export var CreateAuthKeysCodeRequest$;
70
- (function (CreateAuthKeysCodeRequest$) {
71
- /** @deprecated use `CreateAuthKeysCodeRequest$inboundSchema` instead. */
72
- CreateAuthKeysCodeRequest$.inboundSchema = CreateAuthKeysCodeRequest$inboundSchema;
73
- /** @deprecated use `CreateAuthKeysCodeRequest$outboundSchema` instead. */
74
- CreateAuthKeysCodeRequest$.outboundSchema = CreateAuthKeysCodeRequest$outboundSchema;
75
- })(CreateAuthKeysCodeRequest$ || (CreateAuthKeysCodeRequest$ = {}));
76
33
  export function createAuthKeysCodeRequestToJSON(createAuthKeysCodeRequest) {
77
34
  return JSON.stringify(CreateAuthKeysCodeRequest$outboundSchema.parse(createAuthKeysCodeRequest));
78
35
  }
79
- export function createAuthKeysCodeRequestFromJSON(jsonString) {
80
- return safeParse(jsonString, (x) => CreateAuthKeysCodeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeRequest' from JSON`);
81
- }
82
36
  /** @internal */
83
37
  export const CreateAuthKeysCodeData$inboundSchema = z.object({
84
38
  id: z.string(),
@@ -90,31 +44,6 @@ export const CreateAuthKeysCodeData$inboundSchema = z.object({
90
44
  "created_at": "createdAt",
91
45
  });
92
46
  });
93
- /** @internal */
94
- export const CreateAuthKeysCodeData$outboundSchema = z.object({
95
- id: z.string(),
96
- appId: z.number(),
97
- createdAt: z.string(),
98
- }).transform((v) => {
99
- return remap$(v, {
100
- appId: "app_id",
101
- createdAt: "created_at",
102
- });
103
- });
104
- /**
105
- * @internal
106
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
- */
108
- export var CreateAuthKeysCodeData$;
109
- (function (CreateAuthKeysCodeData$) {
110
- /** @deprecated use `CreateAuthKeysCodeData$inboundSchema` instead. */
111
- CreateAuthKeysCodeData$.inboundSchema = CreateAuthKeysCodeData$inboundSchema;
112
- /** @deprecated use `CreateAuthKeysCodeData$outboundSchema` instead. */
113
- CreateAuthKeysCodeData$.outboundSchema = CreateAuthKeysCodeData$outboundSchema;
114
- })(CreateAuthKeysCodeData$ || (CreateAuthKeysCodeData$ = {}));
115
- export function createAuthKeysCodeDataToJSON(createAuthKeysCodeData) {
116
- return JSON.stringify(CreateAuthKeysCodeData$outboundSchema.parse(createAuthKeysCodeData));
117
- }
118
47
  export function createAuthKeysCodeDataFromJSON(jsonString) {
119
48
  return safeParse(jsonString, (x) => CreateAuthKeysCodeData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeData' from JSON`);
120
49
  }
@@ -122,24 +51,6 @@ export function createAuthKeysCodeDataFromJSON(jsonString) {
122
51
  export const CreateAuthKeysCodeResponse$inboundSchema = z.object({
123
52
  data: z.lazy(() => CreateAuthKeysCodeData$inboundSchema),
124
53
  });
125
- /** @internal */
126
- export const CreateAuthKeysCodeResponse$outboundSchema = z.object({
127
- data: z.lazy(() => CreateAuthKeysCodeData$outboundSchema),
128
- });
129
- /**
130
- * @internal
131
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
132
- */
133
- export var CreateAuthKeysCodeResponse$;
134
- (function (CreateAuthKeysCodeResponse$) {
135
- /** @deprecated use `CreateAuthKeysCodeResponse$inboundSchema` instead. */
136
- CreateAuthKeysCodeResponse$.inboundSchema = CreateAuthKeysCodeResponse$inboundSchema;
137
- /** @deprecated use `CreateAuthKeysCodeResponse$outboundSchema` instead. */
138
- CreateAuthKeysCodeResponse$.outboundSchema = CreateAuthKeysCodeResponse$outboundSchema;
139
- })(CreateAuthKeysCodeResponse$ || (CreateAuthKeysCodeResponse$ = {}));
140
- export function createAuthKeysCodeResponseToJSON(createAuthKeysCodeResponse) {
141
- return JSON.stringify(CreateAuthKeysCodeResponse$outboundSchema.parse(createAuthKeysCodeResponse));
142
- }
143
54
  export function createAuthKeysCodeResponseFromJSON(jsonString) {
144
55
  return safeParse(jsonString, (x) => CreateAuthKeysCodeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAuthKeysCodeResponse' from JSON`);
145
56
  }
@@ -41,172 +41,28 @@ export type CreateCoinbaseChargeResponse = {
41
41
  data: CreateCoinbaseChargeData;
42
42
  };
43
43
  /** @internal */
44
- export declare const CreateCoinbaseChargeSecurity$inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity, unknown>;
45
- /** @internal */
46
44
  export type CreateCoinbaseChargeSecurity$Outbound = {
47
45
  bearer: string;
48
46
  };
49
47
  /** @internal */
50
48
  export declare const CreateCoinbaseChargeSecurity$outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity>;
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 CreateCoinbaseChargeSecurity$ {
56
- /** @deprecated use `CreateCoinbaseChargeSecurity$inboundSchema` instead. */
57
- const inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeSecurity, unknown>>;
58
- /** @deprecated use `CreateCoinbaseChargeSecurity$outboundSchema` instead. */
59
- const outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity, z.core.$ZodTypeInternals<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity>>;
60
- /** @deprecated use `CreateCoinbaseChargeSecurity$Outbound` instead. */
61
- type Outbound = CreateCoinbaseChargeSecurity$Outbound;
62
- }
63
49
  export declare function createCoinbaseChargeSecurityToJSON(createCoinbaseChargeSecurity: CreateCoinbaseChargeSecurity): string;
64
- export declare function createCoinbaseChargeSecurityFromJSON(jsonString: string): SafeParseResult<CreateCoinbaseChargeSecurity, SDKValidationError>;
65
50
  /** @internal */
66
51
  export declare const CallData$inboundSchema: z.ZodType<CallData, unknown>;
67
- /** @internal */
68
- export type CallData$Outbound = {
69
- deadline: string;
70
- fee_amount: string;
71
- id: string;
72
- operator: string;
73
- prefix: string;
74
- recipient: string;
75
- recipient_amount: string;
76
- recipient_currency: string;
77
- refund_destination: string;
78
- signature: string;
79
- };
80
- /** @internal */
81
- export declare const CallData$outboundSchema: z.ZodType<CallData$Outbound, CallData>;
82
- /**
83
- * @internal
84
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
- */
86
- export declare namespace CallData$ {
87
- /** @deprecated use `CallData$inboundSchema` instead. */
88
- const inboundSchema: z.ZodType<CallData, unknown, z.core.$ZodTypeInternals<CallData, unknown>>;
89
- /** @deprecated use `CallData$outboundSchema` instead. */
90
- const outboundSchema: z.ZodType<CallData$Outbound, CallData, z.core.$ZodTypeInternals<CallData$Outbound, CallData>>;
91
- /** @deprecated use `CallData$Outbound` instead. */
92
- type Outbound = CallData$Outbound;
93
- }
94
- export declare function callDataToJSON(callData: CallData): string;
95
52
  export declare function callDataFromJSON(jsonString: string): SafeParseResult<CallData, SDKValidationError>;
96
53
  /** @internal */
97
54
  export declare const Metadata$inboundSchema: z.ZodType<Metadata, unknown>;
98
- /** @internal */
99
- export type Metadata$Outbound = {
100
- chain_id: number;
101
- contract_address: string;
102
- sender: string;
103
- };
104
- /** @internal */
105
- export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, Metadata>;
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export declare namespace Metadata$ {
111
- /** @deprecated use `Metadata$inboundSchema` instead. */
112
- const inboundSchema: z.ZodType<Metadata, unknown, z.core.$ZodTypeInternals<Metadata, unknown>>;
113
- /** @deprecated use `Metadata$outboundSchema` instead. */
114
- const outboundSchema: z.ZodType<Metadata$Outbound, Metadata, z.core.$ZodTypeInternals<Metadata$Outbound, Metadata>>;
115
- /** @deprecated use `Metadata$Outbound` instead. */
116
- type Outbound = Metadata$Outbound;
117
- }
118
- export declare function metadataToJSON(metadata: Metadata): string;
119
55
  export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
120
56
  /** @internal */
121
57
  export declare const TransferIntent$inboundSchema: z.ZodType<TransferIntent, unknown>;
122
- /** @internal */
123
- export type TransferIntent$Outbound = {
124
- call_data: CallData$Outbound;
125
- metadata: Metadata$Outbound;
126
- };
127
- /** @internal */
128
- export declare const TransferIntent$outboundSchema: z.ZodType<TransferIntent$Outbound, TransferIntent>;
129
- /**
130
- * @internal
131
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
132
- */
133
- export declare namespace TransferIntent$ {
134
- /** @deprecated use `TransferIntent$inboundSchema` instead. */
135
- const inboundSchema: z.ZodType<TransferIntent, unknown, z.core.$ZodTypeInternals<TransferIntent, unknown>>;
136
- /** @deprecated use `TransferIntent$outboundSchema` instead. */
137
- const outboundSchema: z.ZodType<TransferIntent$Outbound, TransferIntent, z.core.$ZodTypeInternals<TransferIntent$Outbound, TransferIntent>>;
138
- /** @deprecated use `TransferIntent$Outbound` instead. */
139
- type Outbound = TransferIntent$Outbound;
140
- }
141
- export declare function transferIntentToJSON(transferIntent: TransferIntent): string;
142
58
  export declare function transferIntentFromJSON(jsonString: string): SafeParseResult<TransferIntent, SDKValidationError>;
143
59
  /** @internal */
144
60
  export declare const Web3Data$inboundSchema: z.ZodType<Web3Data, unknown>;
145
- /** @internal */
146
- export type Web3Data$Outbound = {
147
- transfer_intent: TransferIntent$Outbound;
148
- };
149
- /** @internal */
150
- export declare const Web3Data$outboundSchema: z.ZodType<Web3Data$Outbound, Web3Data>;
151
- /**
152
- * @internal
153
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
- */
155
- export declare namespace Web3Data$ {
156
- /** @deprecated use `Web3Data$inboundSchema` instead. */
157
- const inboundSchema: z.ZodType<Web3Data, unknown, z.core.$ZodTypeInternals<Web3Data, unknown>>;
158
- /** @deprecated use `Web3Data$outboundSchema` instead. */
159
- const outboundSchema: z.ZodType<Web3Data$Outbound, Web3Data, z.core.$ZodTypeInternals<Web3Data$Outbound, Web3Data>>;
160
- /** @deprecated use `Web3Data$Outbound` instead. */
161
- type Outbound = Web3Data$Outbound;
162
- }
163
- export declare function web3DataToJSON(web3Data: Web3Data): string;
164
61
  export declare function web3DataFromJSON(jsonString: string): SafeParseResult<Web3Data, SDKValidationError>;
165
62
  /** @internal */
166
63
  export declare const CreateCoinbaseChargeData$inboundSchema: z.ZodType<CreateCoinbaseChargeData, unknown>;
167
- /** @internal */
168
- export type CreateCoinbaseChargeData$Outbound = {
169
- id: string;
170
- created_at: string;
171
- expires_at: string;
172
- web3_data: Web3Data$Outbound;
173
- };
174
- /** @internal */
175
- export declare const CreateCoinbaseChargeData$outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData>;
176
- /**
177
- * @internal
178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
- */
180
- export declare namespace CreateCoinbaseChargeData$ {
181
- /** @deprecated use `CreateCoinbaseChargeData$inboundSchema` instead. */
182
- const inboundSchema: z.ZodType<CreateCoinbaseChargeData, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeData, unknown>>;
183
- /** @deprecated use `CreateCoinbaseChargeData$outboundSchema` instead. */
184
- const outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData, z.core.$ZodTypeInternals<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData>>;
185
- /** @deprecated use `CreateCoinbaseChargeData$Outbound` instead. */
186
- type Outbound = CreateCoinbaseChargeData$Outbound;
187
- }
188
- export declare function createCoinbaseChargeDataToJSON(createCoinbaseChargeData: CreateCoinbaseChargeData): string;
189
64
  export declare function createCoinbaseChargeDataFromJSON(jsonString: string): SafeParseResult<CreateCoinbaseChargeData, SDKValidationError>;
190
65
  /** @internal */
191
66
  export declare const CreateCoinbaseChargeResponse$inboundSchema: z.ZodType<CreateCoinbaseChargeResponse, unknown>;
192
- /** @internal */
193
- export type CreateCoinbaseChargeResponse$Outbound = {
194
- data: CreateCoinbaseChargeData$Outbound;
195
- };
196
- /** @internal */
197
- export declare const CreateCoinbaseChargeResponse$outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse>;
198
- /**
199
- * @internal
200
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
- */
202
- export declare namespace CreateCoinbaseChargeResponse$ {
203
- /** @deprecated use `CreateCoinbaseChargeResponse$inboundSchema` instead. */
204
- const inboundSchema: z.ZodType<CreateCoinbaseChargeResponse, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeResponse, unknown>>;
205
- /** @deprecated use `CreateCoinbaseChargeResponse$outboundSchema` instead. */
206
- const outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse, z.core.$ZodTypeInternals<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse>>;
207
- /** @deprecated use `CreateCoinbaseChargeResponse$Outbound` instead. */
208
- type Outbound = CreateCoinbaseChargeResponse$Outbound;
209
- }
210
- export declare function createCoinbaseChargeResponseToJSON(createCoinbaseChargeResponse: CreateCoinbaseChargeResponse): string;
211
67
  export declare function createCoinbaseChargeResponseFromJSON(jsonString: string): SafeParseResult<CreateCoinbaseChargeResponse, SDKValidationError>;
212
68
  //# sourceMappingURL=createcoinbasecharge.d.ts.map
@@ -5,30 +5,12 @@ 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
7
  /** @internal */
8
- export const CreateCoinbaseChargeSecurity$inboundSchema = z.object({
9
- bearer: z.string(),
10
- });
11
- /** @internal */
12
8
  export const CreateCoinbaseChargeSecurity$outboundSchema = z.object({
13
9
  bearer: z.string(),
14
10
  });
15
- /**
16
- * @internal
17
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
- */
19
- export var CreateCoinbaseChargeSecurity$;
20
- (function (CreateCoinbaseChargeSecurity$) {
21
- /** @deprecated use `CreateCoinbaseChargeSecurity$inboundSchema` instead. */
22
- CreateCoinbaseChargeSecurity$.inboundSchema = CreateCoinbaseChargeSecurity$inboundSchema;
23
- /** @deprecated use `CreateCoinbaseChargeSecurity$outboundSchema` instead. */
24
- CreateCoinbaseChargeSecurity$.outboundSchema = CreateCoinbaseChargeSecurity$outboundSchema;
25
- })(CreateCoinbaseChargeSecurity$ || (CreateCoinbaseChargeSecurity$ = {}));
26
11
  export function createCoinbaseChargeSecurityToJSON(createCoinbaseChargeSecurity) {
27
12
  return JSON.stringify(CreateCoinbaseChargeSecurity$outboundSchema.parse(createCoinbaseChargeSecurity));
28
13
  }
29
- export function createCoinbaseChargeSecurityFromJSON(jsonString) {
30
- return safeParse(jsonString, (x) => CreateCoinbaseChargeSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCoinbaseChargeSecurity' from JSON`);
31
- }
32
14
  /** @internal */
33
15
  export const CallData$inboundSchema = z.object({
34
16
  deadline: z.string(),
@@ -49,41 +31,6 @@ export const CallData$inboundSchema = z.object({
49
31
  "refund_destination": "refundDestination",
50
32
  });
51
33
  });
52
- /** @internal */
53
- export const CallData$outboundSchema = z
54
- .object({
55
- deadline: z.string(),
56
- feeAmount: z.string(),
57
- id: z.string(),
58
- operator: z.string(),
59
- prefix: z.string(),
60
- recipient: z.string(),
61
- recipientAmount: z.string(),
62
- recipientCurrency: z.string(),
63
- refundDestination: z.string(),
64
- signature: z.string(),
65
- }).transform((v) => {
66
- return remap$(v, {
67
- feeAmount: "fee_amount",
68
- recipientAmount: "recipient_amount",
69
- recipientCurrency: "recipient_currency",
70
- refundDestination: "refund_destination",
71
- });
72
- });
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- export var CallData$;
78
- (function (CallData$) {
79
- /** @deprecated use `CallData$inboundSchema` instead. */
80
- CallData$.inboundSchema = CallData$inboundSchema;
81
- /** @deprecated use `CallData$outboundSchema` instead. */
82
- CallData$.outboundSchema = CallData$outboundSchema;
83
- })(CallData$ || (CallData$ = {}));
84
- export function callDataToJSON(callData) {
85
- return JSON.stringify(CallData$outboundSchema.parse(callData));
86
- }
87
34
  export function callDataFromJSON(jsonString) {
88
35
  return safeParse(jsonString, (x) => CallData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CallData' from JSON`);
89
36
  }
@@ -98,32 +45,6 @@ export const Metadata$inboundSchema = z.object({
98
45
  "contract_address": "contractAddress",
99
46
  });
100
47
  });
101
- /** @internal */
102
- export const Metadata$outboundSchema = z
103
- .object({
104
- chainId: z.number(),
105
- contractAddress: z.string(),
106
- sender: z.string(),
107
- }).transform((v) => {
108
- return remap$(v, {
109
- chainId: "chain_id",
110
- contractAddress: "contract_address",
111
- });
112
- });
113
- /**
114
- * @internal
115
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
- */
117
- export var Metadata$;
118
- (function (Metadata$) {
119
- /** @deprecated use `Metadata$inboundSchema` instead. */
120
- Metadata$.inboundSchema = Metadata$inboundSchema;
121
- /** @deprecated use `Metadata$outboundSchema` instead. */
122
- Metadata$.outboundSchema = Metadata$outboundSchema;
123
- })(Metadata$ || (Metadata$ = {}));
124
- export function metadataToJSON(metadata) {
125
- return JSON.stringify(Metadata$outboundSchema.parse(metadata));
126
- }
127
48
  export function metadataFromJSON(jsonString) {
128
49
  return safeParse(jsonString, (x) => Metadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metadata' from JSON`);
129
50
  }
@@ -136,29 +57,6 @@ export const TransferIntent$inboundSchema = z.object({
136
57
  "call_data": "callData",
137
58
  });
138
59
  });
139
- /** @internal */
140
- export const TransferIntent$outboundSchema = z.object({
141
- callData: z.lazy(() => CallData$outboundSchema),
142
- metadata: z.lazy(() => Metadata$outboundSchema),
143
- }).transform((v) => {
144
- return remap$(v, {
145
- callData: "call_data",
146
- });
147
- });
148
- /**
149
- * @internal
150
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
151
- */
152
- export var TransferIntent$;
153
- (function (TransferIntent$) {
154
- /** @deprecated use `TransferIntent$inboundSchema` instead. */
155
- TransferIntent$.inboundSchema = TransferIntent$inboundSchema;
156
- /** @deprecated use `TransferIntent$outboundSchema` instead. */
157
- TransferIntent$.outboundSchema = TransferIntent$outboundSchema;
158
- })(TransferIntent$ || (TransferIntent$ = {}));
159
- export function transferIntentToJSON(transferIntent) {
160
- return JSON.stringify(TransferIntent$outboundSchema.parse(transferIntent));
161
- }
162
60
  export function transferIntentFromJSON(jsonString) {
163
61
  return safeParse(jsonString, (x) => TransferIntent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransferIntent' from JSON`);
164
62
  }
@@ -170,29 +68,6 @@ export const Web3Data$inboundSchema = z.object({
170
68
  "transfer_intent": "transferIntent",
171
69
  });
172
70
  });
173
- /** @internal */
174
- export const Web3Data$outboundSchema = z
175
- .object({
176
- transferIntent: z.lazy(() => TransferIntent$outboundSchema),
177
- }).transform((v) => {
178
- return remap$(v, {
179
- transferIntent: "transfer_intent",
180
- });
181
- });
182
- /**
183
- * @internal
184
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
185
- */
186
- export var Web3Data$;
187
- (function (Web3Data$) {
188
- /** @deprecated use `Web3Data$inboundSchema` instead. */
189
- Web3Data$.inboundSchema = Web3Data$inboundSchema;
190
- /** @deprecated use `Web3Data$outboundSchema` instead. */
191
- Web3Data$.outboundSchema = Web3Data$outboundSchema;
192
- })(Web3Data$ || (Web3Data$ = {}));
193
- export function web3DataToJSON(web3Data) {
194
- return JSON.stringify(Web3Data$outboundSchema.parse(web3Data));
195
- }
196
71
  export function web3DataFromJSON(jsonString) {
197
72
  return safeParse(jsonString, (x) => Web3Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Web3Data' from JSON`);
198
73
  }
@@ -209,33 +84,6 @@ export const CreateCoinbaseChargeData$inboundSchema = z.object({
209
84
  "web3_data": "web3Data",
210
85
  });
211
86
  });
212
- /** @internal */
213
- export const CreateCoinbaseChargeData$outboundSchema = z.object({
214
- id: z.string(),
215
- createdAt: z.string(),
216
- expiresAt: z.string(),
217
- web3Data: z.lazy(() => Web3Data$outboundSchema),
218
- }).transform((v) => {
219
- return remap$(v, {
220
- createdAt: "created_at",
221
- expiresAt: "expires_at",
222
- web3Data: "web3_data",
223
- });
224
- });
225
- /**
226
- * @internal
227
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
228
- */
229
- export var CreateCoinbaseChargeData$;
230
- (function (CreateCoinbaseChargeData$) {
231
- /** @deprecated use `CreateCoinbaseChargeData$inboundSchema` instead. */
232
- CreateCoinbaseChargeData$.inboundSchema = CreateCoinbaseChargeData$inboundSchema;
233
- /** @deprecated use `CreateCoinbaseChargeData$outboundSchema` instead. */
234
- CreateCoinbaseChargeData$.outboundSchema = CreateCoinbaseChargeData$outboundSchema;
235
- })(CreateCoinbaseChargeData$ || (CreateCoinbaseChargeData$ = {}));
236
- export function createCoinbaseChargeDataToJSON(createCoinbaseChargeData) {
237
- return JSON.stringify(CreateCoinbaseChargeData$outboundSchema.parse(createCoinbaseChargeData));
238
- }
239
87
  export function createCoinbaseChargeDataFromJSON(jsonString) {
240
88
  return safeParse(jsonString, (x) => CreateCoinbaseChargeData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCoinbaseChargeData' from JSON`);
241
89
  }
@@ -243,24 +91,6 @@ export function createCoinbaseChargeDataFromJSON(jsonString) {
243
91
  export const CreateCoinbaseChargeResponse$inboundSchema = z.object({
244
92
  data: z.lazy(() => CreateCoinbaseChargeData$inboundSchema),
245
93
  });
246
- /** @internal */
247
- export const CreateCoinbaseChargeResponse$outboundSchema = z.object({
248
- data: z.lazy(() => CreateCoinbaseChargeData$outboundSchema),
249
- });
250
- /**
251
- * @internal
252
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
253
- */
254
- export var CreateCoinbaseChargeResponse$;
255
- (function (CreateCoinbaseChargeResponse$) {
256
- /** @deprecated use `CreateCoinbaseChargeResponse$inboundSchema` instead. */
257
- CreateCoinbaseChargeResponse$.inboundSchema = CreateCoinbaseChargeResponse$inboundSchema;
258
- /** @deprecated use `CreateCoinbaseChargeResponse$outboundSchema` instead. */
259
- CreateCoinbaseChargeResponse$.outboundSchema = CreateCoinbaseChargeResponse$outboundSchema;
260
- })(CreateCoinbaseChargeResponse$ || (CreateCoinbaseChargeResponse$ = {}));
261
- export function createCoinbaseChargeResponseToJSON(createCoinbaseChargeResponse) {
262
- return JSON.stringify(CreateCoinbaseChargeResponse$outboundSchema.parse(createCoinbaseChargeResponse));
263
- }
264
94
  export function createCoinbaseChargeResponseFromJSON(jsonString) {
265
95
  return safeParse(jsonString, (x) => CreateCoinbaseChargeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCoinbaseChargeResponse' from JSON`);
266
96
  }