@coinbase/cdp-sdk 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/LICENSE +21 -0
  3. package/{dist → _cjs}/accounts/evm/toEvmServerAccount.js +1 -0
  4. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -0
  5. package/{dist → _cjs}/accounts/evm/toEvmSmartAccount.js +1 -0
  6. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -0
  7. package/{dist → _cjs}/accounts/types.js +1 -0
  8. package/_cjs/accounts/types.js.map +1 -0
  9. package/{dist → _cjs}/actions/evm/sendUserOperation.js +1 -0
  10. package/_cjs/actions/evm/sendUserOperation.js.map +1 -0
  11. package/{dist → _cjs}/actions/evm/waitForUserOperation.js +10 -9
  12. package/_cjs/actions/evm/waitForUserOperation.js.map +1 -0
  13. package/{dist → _cjs}/analytics.js +7 -6
  14. package/_cjs/analytics.js.map +1 -0
  15. package/{dist → _cjs}/auth/errors.js +1 -0
  16. package/_cjs/auth/errors.js.map +1 -0
  17. package/{dist → _cjs}/auth/hooks/axios/index.js +2 -1
  18. package/_cjs/auth/hooks/axios/index.js.map +1 -0
  19. package/{dist → _cjs}/auth/hooks/axios/withAuth.js +3 -2
  20. package/_cjs/auth/hooks/axios/withAuth.js.map +1 -0
  21. package/{dist → _cjs}/auth/index.js +4 -3
  22. package/_cjs/auth/index.js.map +1 -0
  23. package/{dist → _cjs}/auth/utils/http.js +6 -5
  24. package/_cjs/auth/utils/http.js.map +1 -0
  25. package/{dist → _cjs}/auth/utils/index.js +3 -2
  26. package/_cjs/auth/utils/index.js.map +1 -0
  27. package/{dist → _cjs}/auth/utils/jwt.js +4 -3
  28. package/_cjs/auth/utils/jwt.js.map +1 -0
  29. package/{dist → _cjs}/client/cdp.js +13 -8
  30. package/_cjs/client/cdp.js.map +1 -0
  31. package/{dist → _cjs}/client/evm/evm.js +26 -25
  32. package/_cjs/client/evm/evm.js.map +1 -0
  33. package/{dist → _cjs}/client/evm/evm.types.js +1 -0
  34. package/_cjs/client/evm/evm.types.js.map +1 -0
  35. package/{dist → _cjs}/client/solana/index.js +3 -2
  36. package/_cjs/client/solana/index.js.map +1 -0
  37. package/{dist → _cjs}/client/solana/solana.js +9 -8
  38. package/_cjs/client/solana/solana.js.map +1 -0
  39. package/{dist → _cjs}/client/solana/solana.types.js +1 -0
  40. package/_cjs/client/solana/solana.types.js.map +1 -0
  41. package/{dist → _cjs}/constants.js +1 -0
  42. package/_cjs/constants.js.map +1 -0
  43. package/{dist → _cjs}/errors.js +1 -0
  44. package/_cjs/errors.js.map +1 -0
  45. package/{dist → _cjs}/index.js +4 -3
  46. package/_cjs/index.js.map +1 -0
  47. package/{dist → _cjs}/openapi-client/cdpApiClient.js +18 -14
  48. package/_cjs/openapi-client/cdpApiClient.js.map +1 -0
  49. package/{dist → _cjs}/openapi-client/errors.js +6 -0
  50. package/_cjs/openapi-client/errors.js.map +1 -0
  51. package/{dist → _cjs}/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +31 -30
  52. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
  53. package/{dist → _cjs}/openapi-client/generated/evm-accounts/evm-accounts.js +46 -41
  54. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
  55. package/{dist → _cjs}/openapi-client/generated/evm-accounts/evm-accounts.msw.js +73 -40
  56. package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
  57. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +69 -0
  58. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
  59. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +188 -0
  60. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
  61. package/{dist → _cjs}/openapi-client/generated/faucets/faucets.js +18 -13
  62. package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -0
  63. package/{dist → _cjs}/openapi-client/generated/faucets/faucets.msw.js +16 -12
  64. package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
  65. package/{dist → _cjs}/openapi-client/generated/index.msw.js +5 -4
  66. package/_cjs/openapi-client/generated/index.msw.js.map +1 -0
  67. package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.js +38 -35
  68. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
  69. package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.msw.js +68 -35
  70. package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
  71. package/{dist → _cjs}/openapi-client/index.js +12 -11
  72. package/_cjs/openapi-client/index.js.map +1 -0
  73. package/_cjs/package.json +1 -0
  74. package/{dist → _cjs}/types/calls.js +1 -0
  75. package/_cjs/types/calls.js.map +1 -0
  76. package/{dist → _cjs}/types/contract.js +1 -0
  77. package/_cjs/types/contract.js.map +1 -0
  78. package/{dist → _cjs}/types/misc.js +1 -0
  79. package/_cjs/types/misc.js.map +1 -0
  80. package/{dist → _cjs}/types/multicall.js +1 -0
  81. package/_cjs/types/multicall.js.map +1 -0
  82. package/{dist → _cjs}/types/utils.js +1 -0
  83. package/_cjs/types/utils.js.map +1 -0
  84. package/{dist → _cjs}/utils/wait.js +3 -2
  85. package/_cjs/utils/wait.js.map +1 -0
  86. package/_cjs/version.js +5 -0
  87. package/_cjs/version.js.map +1 -0
  88. package/_esm/accounts/evm/toEvmServerAccount.js +40 -0
  89. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -0
  90. package/_esm/accounts/evm/toEvmSmartAccount.js +22 -0
  91. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -0
  92. package/_esm/accounts/types.js +2 -0
  93. package/_esm/accounts/types.js.map +1 -0
  94. package/_esm/actions/evm/sendUserOperation.js +85 -0
  95. package/_esm/actions/evm/sendUserOperation.js.map +1 -0
  96. package/_esm/actions/evm/waitForUserOperation.js +58 -0
  97. package/_esm/actions/evm/waitForUserOperation.js.map +1 -0
  98. package/_esm/analytics.js +84 -0
  99. package/_esm/analytics.js.map +1 -0
  100. package/_esm/auth/errors.js +57 -0
  101. package/_esm/auth/errors.js.map +1 -0
  102. package/_esm/auth/hooks/axios/index.js +2 -0
  103. package/_esm/auth/hooks/axios/index.js.map +1 -0
  104. package/_esm/auth/hooks/axios/withAuth.js +71 -0
  105. package/_esm/auth/hooks/axios/withAuth.js.map +1 -0
  106. package/_esm/auth/index.js +5 -0
  107. package/_esm/auth/index.js.map +1 -0
  108. package/_esm/auth/utils/http.js +70 -0
  109. package/_esm/auth/utils/http.js.map +1 -0
  110. package/_esm/auth/utils/index.js +3 -0
  111. package/_esm/auth/utils/index.js.map +1 -0
  112. package/_esm/auth/utils/jwt.js +199 -0
  113. package/_esm/auth/utils/jwt.js.map +1 -0
  114. package/_esm/client/cdp.js +95 -0
  115. package/_esm/client/cdp.js.map +1 -0
  116. package/_esm/client/evm/evm.js +518 -0
  117. package/_esm/client/evm/evm.js.map +1 -0
  118. package/_esm/client/evm/evm.types.js +2 -0
  119. package/_esm/client/evm/evm.types.js.map +1 -0
  120. package/_esm/client/solana/index.js +2 -0
  121. package/_esm/client/solana/index.js.map +1 -0
  122. package/_esm/client/solana/solana.js +204 -0
  123. package/_esm/client/solana/solana.js.map +1 -0
  124. package/_esm/client/solana/solana.types.js +2 -0
  125. package/_esm/client/solana/solana.types.js.map +1 -0
  126. package/_esm/constants.js +5 -0
  127. package/_esm/constants.js.map +1 -0
  128. package/_esm/errors.js +18 -0
  129. package/_esm/errors.js.map +1 -0
  130. package/_esm/index.js +3 -0
  131. package/_esm/index.js.map +1 -0
  132. package/_esm/openapi-client/cdpApiClient.js +112 -0
  133. package/_esm/openapi-client/cdpApiClient.js.map +1 -0
  134. package/_esm/openapi-client/errors.js +71 -0
  135. package/_esm/openapi-client/errors.js.map +1 -0
  136. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +52 -0
  137. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
  138. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +80 -0
  139. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
  140. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +128 -0
  141. package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
  142. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +60 -0
  143. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
  144. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +172 -0
  145. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
  146. package/_esm/openapi-client/generated/faucets/faucets.js +51 -0
  147. package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -0
  148. package/_esm/openapi-client/generated/faucets/faucets.msw.js +39 -0
  149. package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
  150. package/_esm/openapi-client/generated/index.msw.js +5 -0
  151. package/_esm/openapi-client/generated/index.msw.js.map +1 -0
  152. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +73 -0
  153. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
  154. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +116 -0
  155. package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
  156. package/_esm/openapi-client/index.js +27 -0
  157. package/_esm/openapi-client/index.js.map +1 -0
  158. package/_esm/package.json +1 -0
  159. package/_esm/types/calls.js +4 -0
  160. package/_esm/types/calls.js.map +1 -0
  161. package/_esm/types/contract.js +4 -0
  162. package/_esm/types/contract.js.map +1 -0
  163. package/_esm/types/misc.js +3 -0
  164. package/_esm/types/misc.js.map +1 -0
  165. package/_esm/types/multicall.js +2 -0
  166. package/_esm/types/multicall.js.map +1 -0
  167. package/_esm/types/utils.js +4 -0
  168. package/_esm/types/utils.js.map +1 -0
  169. package/_esm/utils/wait.js +32 -0
  170. package/_esm/utils/wait.js.map +1 -0
  171. package/_esm/version.js +2 -0
  172. package/_esm/version.js.map +1 -0
  173. package/{dist → _types}/accounts/evm/toEvmServerAccount.d.ts +3 -2
  174. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -0
  175. package/{dist → _types}/accounts/evm/toEvmSmartAccount.d.ts +3 -2
  176. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -0
  177. package/{dist → _types}/accounts/types.d.ts +3 -2
  178. package/_types/accounts/types.d.ts.map +1 -0
  179. package/{dist → _types}/actions/evm/sendUserOperation.d.ts +5 -5
  180. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -0
  181. package/{dist → _types}/actions/evm/waitForUserOperation.d.ts +4 -3
  182. package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -0
  183. package/{dist → _types}/analytics.d.ts +1 -0
  184. package/_types/analytics.d.ts.map +1 -0
  185. package/{dist → _types}/auth/errors.d.ts +1 -0
  186. package/_types/auth/errors.d.ts.map +1 -0
  187. package/_types/auth/hooks/axios/index.d.ts +2 -0
  188. package/_types/auth/hooks/axios/index.d.ts.map +1 -0
  189. package/{dist → _types}/auth/hooks/axios/withAuth.d.ts +1 -0
  190. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -0
  191. package/_types/auth/index.d.ts +5 -0
  192. package/_types/auth/index.d.ts.map +1 -0
  193. package/{dist → _types}/auth/utils/http.d.ts +1 -0
  194. package/_types/auth/utils/http.d.ts.map +1 -0
  195. package/_types/auth/utils/index.d.ts +3 -0
  196. package/_types/auth/utils/index.d.ts.map +1 -0
  197. package/{dist → _types}/auth/utils/jwt.d.ts +1 -0
  198. package/_types/auth/utils/jwt.d.ts.map +1 -0
  199. package/{dist → _types}/client/cdp.d.ts +3 -2
  200. package/_types/client/cdp.d.ts.map +1 -0
  201. package/{dist → _types}/client/evm/evm.d.ts +4 -3
  202. package/_types/client/evm/evm.d.ts.map +1 -0
  203. package/{dist → _types}/client/evm/evm.types.d.ts +7 -6
  204. package/_types/client/evm/evm.types.d.ts.map +1 -0
  205. package/_types/client/solana/index.d.ts +2 -0
  206. package/_types/client/solana/index.d.ts.map +1 -0
  207. package/{dist → _types}/client/solana/solana.d.ts +2 -1
  208. package/_types/client/solana/solana.d.ts.map +1 -0
  209. package/{dist → _types}/client/solana/solana.types.d.ts +2 -1
  210. package/_types/client/solana/solana.types.d.ts.map +1 -0
  211. package/{dist → _types}/constants.d.ts +1 -0
  212. package/_types/constants.d.ts.map +1 -0
  213. package/{dist → _types}/errors.d.ts +1 -0
  214. package/_types/errors.d.ts.map +1 -0
  215. package/_types/index.d.ts +4 -0
  216. package/_types/index.d.ts.map +1 -0
  217. package/{dist → _types}/openapi-client/cdpApiClient.d.ts +1 -0
  218. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -0
  219. package/{dist → _types}/openapi-client/errors.d.ts +2 -1
  220. package/_types/openapi-client/errors.d.ts.map +1 -0
  221. package/{dist → _types}/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +13 -12
  222. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -0
  223. package/{dist → _types}/openapi-client/generated/evm-accounts/evm-accounts.d.ts +24 -23
  224. package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -0
  225. package/{dist → _types}/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +3 -2
  226. package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +1 -0
  227. package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +21 -20
  228. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -0
  229. package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +3 -2
  230. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +1 -0
  231. package/{dist → _types}/openapi-client/generated/faucets/faucets.d.ts +9 -8
  232. package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -0
  233. package/{dist → _types}/openapi-client/generated/faucets/faucets.msw.d.ts +3 -2
  234. package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +1 -0
  235. package/_types/openapi-client/generated/index.msw.d.ts +5 -0
  236. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -0
  237. package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.d.ts +21 -20
  238. package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -0
  239. package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +3 -2
  240. package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +1 -0
  241. package/_types/openapi-client/index.d.ts +56 -0
  242. package/_types/openapi-client/index.d.ts.map +1 -0
  243. package/{dist → _types}/types/calls.d.ts +4 -3
  244. package/_types/types/calls.d.ts.map +1 -0
  245. package/{dist → _types}/types/contract.d.ts +3 -2
  246. package/_types/types/contract.d.ts.map +1 -0
  247. package/{dist → _types}/types/misc.d.ts +1 -0
  248. package/_types/types/misc.d.ts.map +1 -0
  249. package/{dist → _types}/types/multicall.d.ts +2 -1
  250. package/_types/types/multicall.d.ts.map +1 -0
  251. package/{dist → _types}/types/utils.d.ts +1 -0
  252. package/_types/types/utils.d.ts.map +1 -0
  253. package/{dist → _types}/utils/wait.d.ts +1 -0
  254. package/_types/utils/wait.d.ts.map +1 -0
  255. package/_types/version.d.ts +2 -0
  256. package/_types/version.d.ts.map +1 -0
  257. package/accounts/evm/toEvmServerAccount.ts +60 -0
  258. package/accounts/evm/toEvmSmartAccount.ts +37 -0
  259. package/accounts/types.ts +53 -0
  260. package/actions/evm/sendUserOperation.ts +163 -0
  261. package/actions/evm/waitForUserOperation.ts +115 -0
  262. package/analytics.ts +123 -0
  263. package/auth/README.md +145 -0
  264. package/auth/errors.ts +59 -0
  265. package/auth/hooks/axios/index.ts +1 -0
  266. package/auth/hooks/axios/withAuth.ts +120 -0
  267. package/auth/index.ts +5 -0
  268. package/auth/utils/http.ts +146 -0
  269. package/auth/utils/index.ts +2 -0
  270. package/auth/utils/jwt.ts +324 -0
  271. package/client/cdp.ts +113 -0
  272. package/client/evm/evm.ts +606 -0
  273. package/client/evm/evm.types.ts +303 -0
  274. package/client/solana/index.ts +1 -0
  275. package/client/solana/solana.ts +237 -0
  276. package/client/solana/solana.types.ts +114 -0
  277. package/constants.ts +4 -0
  278. package/errors.ts +17 -0
  279. package/index.ts +4 -0
  280. package/openapi-client/cdpApiClient.ts +214 -0
  281. package/openapi-client/errors.ts +96 -0
  282. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +411 -0
  283. package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +242 -0
  284. package/openapi-client/generated/evm-accounts/evm-accounts.ts +150 -0
  285. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +283 -0
  286. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +131 -0
  287. package/openapi-client/generated/faucets/faucets.msw.ts +76 -0
  288. package/openapi-client/generated/faucets/faucets.ts +83 -0
  289. package/openapi-client/generated/index.msw.ts +4 -0
  290. package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +219 -0
  291. package/openapi-client/generated/solana-accounts/solana-accounts.ts +143 -0
  292. package/openapi-client/index.ts +32 -0
  293. package/package.json +31 -66
  294. package/types/calls.ts +40 -0
  295. package/types/contract.ts +126 -0
  296. package/types/misc.ts +5 -0
  297. package/types/multicall.ts +29 -0
  298. package/types/utils.ts +288 -0
  299. package/utils/wait.ts +52 -0
  300. package/version.ts +1 -0
  301. package/dist/auth/hooks/axios/index.d.ts +0 -1
  302. package/dist/auth/index.d.ts +0 -4
  303. package/dist/auth/utils/index.d.ts +0 -2
  304. package/dist/client/evm/index.d.ts +0 -1
  305. package/dist/client/evm/index.js +0 -5
  306. package/dist/client/solana/index.d.ts +0 -1
  307. package/dist/index.d.ts +0 -3
  308. package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +0 -66
  309. package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -99
  310. package/dist/openapi-client/generated/index.msw.d.ts +0 -4
  311. package/dist/openapi-client/index.d.ts +0 -55
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cdpApiClient.d.ts","sourceRoot":"","sources":["../../openapi-client/cdpApiClient.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAkB,MAAM,OAAO,CAAC;AAMjF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,UAAU,SAc5C,CAAC;AA0BF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAU,CAAC,EAClC,QAAQ,kBAAkB,EAC1B,iBAAiB,MAAM,KACtB,OAAO,CAAC,CAAC,CAsFX,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Error as OpenAPIError, ErrorType as OpenAPIErrorType } from "./generated/coinbaseDeveloperPlatformAPIs.schemas";
1
+ import { Error as OpenAPIError, ErrorType as OpenAPIErrorType } from "./generated/coinbaseDeveloperPlatformAPIs.schemas.js";
2
2
  export declare const HttpErrorType: {
3
3
  readonly unexpected_error: "unexpected_error";
4
4
  readonly unauthorized: "unauthorized";
@@ -51,3 +51,4 @@ export declare class APIError extends Error {
51
51
  * @returns True if the object is an OpenAPIError
52
52
  */
53
53
  export declare function isOpenAPIError(obj: unknown): obj is OpenAPIError;
54
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../openapi-client/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,YAAY,EACrB,SAAS,IAAI,gBAAgB,EAC9B,MAAM,sDAAsD,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAE5D;;GAEG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,YAAY,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;gBAED,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM;IAmBpB;;;;OAIG;IACH,MAAM;;;;;;;;CAUP;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,YAAY,CAShE"}
@@ -26,7 +26,7 @@ export interface ListResponse {
26
26
  /**
27
27
  * The code that indicates the type of error that occurred. These error codes can be used to determine how to handle the error.
28
28
  */
29
- export type ErrorType = typeof ErrorType[keyof typeof ErrorType];
29
+ export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
30
30
  export declare const ErrorType: {
31
31
  readonly already_exists: "already_exists";
32
32
  readonly faucet_limit_exceeded: "faucet_limit_exceeded";
@@ -87,15 +87,15 @@ export interface EvmCall {
87
87
  /**
88
88
  * The network the user operation is for.
89
89
  */
90
- export type EvmUserOperationNetwork = typeof EvmUserOperationNetwork[keyof typeof EvmUserOperationNetwork];
90
+ export type EvmUserOperationNetwork = (typeof EvmUserOperationNetwork)[keyof typeof EvmUserOperationNetwork];
91
91
  export declare const EvmUserOperationNetwork: {
92
- readonly 'base-sepolia': "base-sepolia";
92
+ readonly "base-sepolia": "base-sepolia";
93
93
  readonly base: "base";
94
94
  };
95
95
  /**
96
96
  * The status of the user operation.
97
97
  */
98
- export type EvmUserOperationStatus = typeof EvmUserOperationStatus[keyof typeof EvmUserOperationStatus];
98
+ export type EvmUserOperationStatus = (typeof EvmUserOperationStatus)[keyof typeof EvmUserOperationStatus];
99
99
  export declare const EvmUserOperationStatus: {
100
100
  readonly pending: "pending";
101
101
  readonly signed: "signed";
@@ -231,9 +231,9 @@ export type CreateEvmSmartAccountBody = {
231
231
  /**
232
232
  * The network to prepare the user operation for.
233
233
  */
234
- export type PrepareUserOperationBodyNetwork = typeof PrepareUserOperationBodyNetwork[keyof typeof PrepareUserOperationBodyNetwork];
234
+ export type PrepareUserOperationBodyNetwork = (typeof PrepareUserOperationBodyNetwork)[keyof typeof PrepareUserOperationBodyNetwork];
235
235
  export declare const PrepareUserOperationBodyNetwork: {
236
- readonly 'base-sepolia': "base-sepolia";
236
+ readonly "base-sepolia": "base-sepolia";
237
237
  readonly base: "base";
238
238
  };
239
239
  export type PrepareUserOperationBody = {
@@ -251,15 +251,15 @@ export type SendUserOperationBody = {
251
251
  /**
252
252
  * The network to request funds from.
253
253
  */
254
- export type RequestEvmFaucetBodyNetwork = typeof RequestEvmFaucetBodyNetwork[keyof typeof RequestEvmFaucetBodyNetwork];
254
+ export type RequestEvmFaucetBodyNetwork = (typeof RequestEvmFaucetBodyNetwork)[keyof typeof RequestEvmFaucetBodyNetwork];
255
255
  export declare const RequestEvmFaucetBodyNetwork: {
256
- readonly 'base-sepolia': "base-sepolia";
257
- readonly 'ethereum-sepolia': "ethereum-sepolia";
256
+ readonly "base-sepolia": "base-sepolia";
257
+ readonly "ethereum-sepolia": "ethereum-sepolia";
258
258
  };
259
259
  /**
260
260
  * The token to request funds for.
261
261
  */
262
- export type RequestEvmFaucetBodyToken = typeof RequestEvmFaucetBodyToken[keyof typeof RequestEvmFaucetBodyToken];
262
+ export type RequestEvmFaucetBodyToken = (typeof RequestEvmFaucetBodyToken)[keyof typeof RequestEvmFaucetBodyToken];
263
263
  export declare const RequestEvmFaucetBodyToken: {
264
264
  readonly eth: "eth";
265
265
  readonly usdc: "usdc";
@@ -279,7 +279,7 @@ export type RequestEvmFaucetBody = {
279
279
  };
280
280
  export type RequestEvmFaucet200 = {
281
281
  /** The hash of the transaction that requested the funds.
282
- **Note:** In rare cases, when gas conditions are unusually high, the transaction may not confirm, and the system may issue a replacement transaction to complete the faucet request. In these rare cases, the `transactionHash` will be out of sync with the actual faucet transaction that was confirmed onchain. */
282
+ **Note:** In rare cases, when gas conditions are unusually high, the transaction may not confirm, and the system may issue a replacement transaction to complete the faucet request. In these rare cases, the `transactionHash` will be out of sync with the actual faucet transaction that was confirmed onchain. */
283
283
  transactionHash: string;
284
284
  };
285
285
  export type ListSolanaAccountsParams = {
@@ -325,7 +325,7 @@ export type SignSolanaMessage200 = {
325
325
  /**
326
326
  * The token to request funds for.
327
327
  */
328
- export type RequestSolanaFaucetBodyToken = typeof RequestSolanaFaucetBodyToken[keyof typeof RequestSolanaFaucetBodyToken];
328
+ export type RequestSolanaFaucetBodyToken = (typeof RequestSolanaFaucetBodyToken)[keyof typeof RequestSolanaFaucetBodyToken];
329
329
  export declare const RequestSolanaFaucetBodyToken: {
330
330
  readonly sol: "sol";
331
331
  readonly usdc: "usdc";
@@ -343,3 +343,4 @@ export type RequestSolanaFaucet200 = {
343
343
  /** The signature identifying the transaction that requested the funds. */
344
344
  transactionSignature: string;
345
345
  };
346
+ //# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coinbaseDeveloperPlatformAPIs.schemas.d.ts","sourceRoot":"","sources":["../../../openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGnE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAcZ,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,wHAAwH;IACxH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,qLAAqL;IACrL,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,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G,0BAA0B,GAAG,YAAY,CAAC;AAE9E,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,6CAA6C;IAC7C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAGnF,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,EAAE,4BAA4B,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -5,52 +5,52 @@
5
5
  * The Coinbase Developer Platform APIs - leading the world's transition onchain.
6
6
  * OpenAPI spec version: 2.0.0
7
7
  */
8
- import type { CreateEvmAccountBody, EvmAccount, ListEvmAccounts200, ListEvmAccountsParams, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody } from '../coinbaseDeveloperPlatformAPIs.schemas';
9
- import { cdpApiClient } from '../../cdpApiClient';
8
+ import type { CreateEvmAccountBody, EvmAccount, ListEvmAccounts200, ListEvmAccountsParams, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
9
+ import { cdpApiClient } from "../../cdpApiClient.js";
10
10
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
11
11
  /**
12
- * Lists the EVM accounts belonging to the developer's CDP Project.
12
+ * Lists the EVM accounts belonging to the developer's CDP Project.
13
13
  The response is paginated, and by default, returns 20 accounts per page.
14
- * @summary List EVM accounts
15
- */
14
+ * @summary List EVM accounts
15
+ */
16
16
  export declare const listEvmAccounts: (params?: ListEvmAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEvmAccounts200>;
17
17
  /**
18
- * Creates a new EVM account.
19
- * @summary Create an EVM account
20
- */
18
+ * Creates a new EVM account.
19
+ * @summary Create an EVM account
20
+ */
21
21
  export declare const createEvmAccount: (createEvmAccountBody?: CreateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
22
22
  /**
23
- * Gets an EVM account by its address.
24
- * @summary Get an EVM account by address
25
- */
23
+ * Gets an EVM account by its address.
24
+ * @summary Get an EVM account by address
25
+ */
26
26
  export declare const getEvmAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
27
27
  /**
28
- * Gets an EVM account by its name.
29
- * @summary Get an EVM account by name
30
- */
28
+ * Gets an EVM account by its name.
29
+ * @summary Get an EVM account by name
30
+ */
31
31
  export declare const getEvmAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
32
32
  /**
33
- * Signs a transaction with the given EVM account.
33
+ * Signs a transaction with the given EVM account.
34
34
  The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
35
35
 
36
36
  The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
37
- * @summary Sign a transaction
38
- */
37
+ * @summary Sign a transaction
38
+ */
39
39
  export declare const signEvmTransaction: (address: string, signEvmTransactionBody: SignEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmTransaction200>;
40
40
  /**
41
- * Signs an arbitrary 32 byte hash with the given EVM account.
41
+ * Signs an arbitrary 32 byte hash with the given EVM account.
42
42
 
43
43
 
44
44
  **WARNING: This API will likely be deprecated in the future.** It is recommended not to depend on it. Never sign a hash that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
45
- * @summary Sign a hash
46
- */
45
+ * @summary Sign a hash
46
+ */
47
47
  export declare const signEvmHash: (address: string, signEvmHashBody: SignEvmHashBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmHash200>;
48
48
  /**
49
- * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
49
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
50
50
 
51
51
  Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
52
- * @summary Sign an EIP-191 message
53
- */
52
+ * @summary Sign an EIP-191 message
53
+ */
54
54
  export declare const signEvmMessage: (address: string, signEvmMessageBody: SignEvmMessageBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmMessage200>;
55
55
  export type ListEvmAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmAccounts>>>;
56
56
  export type CreateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmAccount>>>;
@@ -60,3 +60,4 @@ export type SignEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof sig
60
60
  export type SignEvmHashResult = NonNullable<Awaited<ReturnType<typeof signEvmHash>>>;
61
61
  export type SignEvmMessageResult = NonNullable<Awaited<ReturnType<typeof signEvmMessage>>>;
62
62
  export {};
63
+ //# sourceMappingURL=evm-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,gCAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,uBAAuB,oBAAoB,EAC3C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,EAAE,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAE5F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,EACZ,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAM/C,CAAC;AACF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,wBAAwB,sBAAsB,EAC9C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,mCAW/C,CAAC;AACF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,SAAS,MAAM,EACf,iBAAiB,eAAe,EAChC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,4BAW/C,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,MAAM,EACf,oBAAoB,kBAAkB,EACtC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,+BAW/C,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAChD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { http } from 'msw';
2
- import type { EvmAccount, ListEvmAccounts200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200 } from '../coinbaseDeveloperPlatformAPIs.schemas';
1
+ import { http } from "msw";
2
+ import type { EvmAccount, ListEvmAccounts200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
3
3
  export declare const getListEvmAccountsResponseMock: () => ListEvmAccounts200;
4
4
  export declare const getCreateEvmAccountResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
5
5
  export declare const getGetEvmAccountResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
@@ -15,3 +15,4 @@ export declare const getSignEvmTransactionMockHandler: (overrideResponse?: SignE
15
15
  export declare const getSignEvmHashMockHandler: (overrideResponse?: SignEvmHash200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmHash200> | SignEvmHash200)) => import("msw").HttpHandler;
16
16
  export declare const getSignEvmMessageMockHandler: (overrideResponse?: SignEvmMessage200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmMessage200> | SignEvmMessage200)) => import("msw").HttpHandler;
17
17
  export declare const getEvmAccountsMock: () => import("msw").HttpHandler[];
18
+ //# sourceMappingURL=evm-accounts.msw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,8BAA8B,QAAO,kBAahD,CAAC;AAEH,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,UAAU,CAAM,KACzC,UAOD,CAAC;AAEH,eAAO,MAAM,4BAA4B,GACvC,mBAAkB,OAAO,CAAC,UAAU,CAAM,KACzC,UAOD,CAAC;AAEH,eAAO,MAAM,kCAAkC,GAC7C,mBAAkB,OAAO,CAAC,UAAU,CAAM,KACzC,UAOD,CAAC;AAEH,eAAO,MAAM,iCAAiC,GAC5C,mBAAkB,OAAO,CAAC,qBAAqB,CAAM,KACpD,qBAA6F,CAAC;AAEjG,eAAO,MAAM,0BAA0B,GACrC,mBAAkB,OAAO,CAAC,cAAc,CAAM,KAC7C,cAA8E,CAAC;AAElF,e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G,qBAAqB,CAAC,8BAgBjE,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,mBACI,cAAc,GACd,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC,8BAgBnD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,mBACI,iBAAiB,GACjB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC,8BAgBzD,CAAC;AACF,eAAO,MAAM,kBAAkB,mCAQ9B,CAAC"}
@@ -5,39 +5,39 @@
5
5
  * The Coinbase Developer Platform APIs - leading the world's transition onchain.
6
6
  * OpenAPI spec version: 2.0.0
7
7
  */
8
- import type { CreateEvmSmartAccountBody, EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, PrepareUserOperationBody, SendUserOperationBody } from '../coinbaseDeveloperPlatformAPIs.schemas';
9
- import { cdpApiClient } from '../../cdpApiClient';
8
+ import type { CreateEvmSmartAccountBody, EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, PrepareUserOperationBody, SendUserOperationBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
9
+ import { cdpApiClient } from "../../cdpApiClient.js";
10
10
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
11
11
  /**
12
- * Lists the Smart Accounts belonging to the developer's CDP Project.
12
+ * Lists the Smart Accounts belonging to the developer's CDP Project.
13
13
  The response is paginated, and by default, returns 20 accounts per page.
14
- * @summary List Smart Accounts
15
- */
14
+ * @summary List Smart Accounts
15
+ */
16
16
  export declare const listEvmSmartAccounts: (params?: ListEvmSmartAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEvmSmartAccounts200>;
17
17
  /**
18
- * Creates a new Smart Account.
19
- * @summary Create a Smart Account
20
- */
18
+ * Creates a new Smart Account.
19
+ * @summary Create a Smart Account
20
+ */
21
21
  export declare const createEvmSmartAccount: (createEvmSmartAccountBody: CreateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmSmartAccount>;
22
22
  /**
23
- * Gets a Smart Account by its address.
24
- * @summary Get a Smart Account by address
25
- */
23
+ * Gets a Smart Account by its address.
24
+ * @summary Get a Smart Account by address
25
+ */
26
26
  export declare const getEvmSmartAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmSmartAccount>;
27
27
  /**
28
- * Prepares a new user operation on a Smart Account for a specific network.
29
- * @summary Prepare a user operation
30
- */
28
+ * Prepares a new user operation on a Smart Account for a specific network.
29
+ * @summary Prepare a user operation
30
+ */
31
31
  export declare const prepareUserOperation: (address: string, prepareUserOperationBody: PrepareUserOperationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
32
32
  /**
33
- * Gets a user operation by its hash.
34
- * @summary Get a user operation
35
- */
33
+ * Gets a user operation by its hash.
34
+ * @summary Get a user operation
35
+ */
36
36
  export declare const getUserOperation: (address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
37
37
  /**
38
- * Sends a user operation with a signature.
39
- * @summary Send a user operation
40
- */
38
+ * Sends a user operation with a signature.
39
+ * @summary Send a user operation
40
+ */
41
41
  export declare const sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: SendUserOperationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
42
42
  export type ListEvmSmartAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmSmartAccounts>>>;
43
43
  export type CreateEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmSmartAccount>>>;
@@ -46,3 +46,4 @@ export type PrepareUserOperationResult = NonNullable<Awaited<ReturnType<typeof p
46
46
  export type GetUserOperationResult = NonNullable<Awaited<ReturnType<typeof getUserOperation>>>;
47
47
  export type SendUserOperationResult = NonNullable<Awaited<ReturnType<typeof sendUserOperation>>>;
48
48
  export {};
49
+ //# sourceMappingURL=evm-smart-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-smart-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,0BAA0B,EACnC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,qCAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,2BAA2B,yBAAyB,EACpD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,6BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,6BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,0BAA0B,wBAAwB,EAClD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,uBAAuB,qBAAqB,EAC5C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAW/C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAClD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { http } from 'msw';
2
- import type { EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200 } from '../coinbaseDeveloperPlatformAPIs.schemas';
1
+ import { http } from "msw";
2
+ import type { EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
3
3
  export declare const getListEvmSmartAccountsResponseMock: () => ListEvmSmartAccounts200;
4
4
  export declare const getCreateEvmSmartAccountResponseMock: (overrideResponse?: Partial<EvmSmartAccount>) => EvmSmartAccount;
5
5
  export declare const getGetEvmSmartAccountResponseMock: (overrideResponse?: Partial<EvmSmartAccount>) => EvmSmartAccount;
@@ -13,3 +13,4 @@ export declare const getPrepareUserOperationMockHandler: (overrideResponse?: Evm
13
13
  export declare const getGetUserOperationMockHandler: (overrideResponse?: EvmUserOperation | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmUserOperation> | EvmUserOperation)) => import("msw").HttpHandler;
14
14
  export declare const getSendUserOperationMockHandler: (overrideResponse?: EvmUserOperation | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvmUserOperation> | EvmUserOperation)) => import("msw").HttpHandler;
15
15
  export declare const getEvmSmartAccountsMock: () => import("msw").HttpHandler[];
16
+ //# sourceMappingURL=evm-smart-accounts.msw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-smart-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,mCAAmC,QAAO,uBAgBrD,CAAC;AAEH,eAAO,MAAM,oCAAoC,GAC/C,mBAAkB,OAAO,CAAC,eAAe,CAAM,KAC9C,eAUD,CAAC;AAEH,eAAO,MAAM,iCAAiC,GAC5C,mBAAkB,OAAO,CAAC,eAAe,CAAM,KAC9C,eAUD,CAAC;AAEH,eAAO,MAAM,mCAAmC,GAC9C,mBAAkB,OAAO,CAAC,gBAAgB,CAAM,KAC/C,gBAoBD,CAAC;AAEH,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,gBAAgB,CAAM,KAC/C,gBAoBD,CAAC;AAEH,eAAO,MAAM,gCAAgC,GAC3C,mBAAkB,OAAO,CAAC,gBAAgB,CAAM,KAC/C,gBAoBD,C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ACI,gBAAgB,GAChB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC,8BAmBvD,CAAC;AACF,eAAO,MAAM,uBAAuB,mCAOnC,CAAC"}
@@ -5,11 +5,11 @@
5
5
  * The Coinbase Developer Platform APIs - leading the world's transition onchain.
6
6
  * OpenAPI spec version: 2.0.0
7
7
  */
8
- import type { RequestEvmFaucet200, RequestEvmFaucetBody, RequestSolanaFaucet200, RequestSolanaFaucetBody } from '../coinbaseDeveloperPlatformAPIs.schemas';
9
- import { cdpApiClient } from '../../cdpApiClient';
8
+ import type { RequestEvmFaucet200, RequestEvmFaucetBody, RequestSolanaFaucet200, RequestSolanaFaucetBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
9
+ import { cdpApiClient } from "../../cdpApiClient.js";
10
10
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
11
11
  /**
12
- * Request funds from the CDP Faucet on supported EVM test networks.
12
+ * Request funds from the CDP Faucet on supported EVM test networks.
13
13
 
14
14
  Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia.
15
15
 
@@ -24,11 +24,11 @@ A single blockchain address cannot exceed the specified limits, even if multiple
24
24
  | EURC | 1 EURC | 10 EURC |
25
25
  | cbBTC | 0.0001 cbBTC | 0.001 cbBTC |
26
26
 
27
- * @summary Request funds on EVM test networks
28
- */
27
+ * @summary Request funds on EVM test networks
28
+ */
29
29
  export declare const requestEvmFaucet: (requestEvmFaucetBody: RequestEvmFaucetBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RequestEvmFaucet200>;
30
30
  /**
31
- * Request funds from the CDP Faucet on Solana devnet.
31
+ * Request funds from the CDP Faucet on Solana devnet.
32
32
 
33
33
  Faucets are available for SOL.
34
34
 
@@ -40,9 +40,10 @@ A single blockchain address cannot exceed the specified limits, even if multiple
40
40
  |:-----:|:-------------------------:|:--------------------------------:|
41
41
  | SOL | 0.00125 SOL | 0.0125 SOL |
42
42
 
43
- * @summary Request funds on Solana devnet
44
- */
43
+ * @summary Request funds on Solana devnet
44
+ */
45
45
  export declare const requestSolanaFaucet: (requestSolanaFaucetBody: RequestSolanaFaucetBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RequestSolanaFaucet200>;
46
46
  export type RequestEvmFaucetResult = NonNullable<Awaited<ReturnType<typeof requestEvmFaucet>>>;
47
47
  export type RequestSolanaFaucetResult = NonNullable<Awaited<ReturnType<typeof requestSolanaFaucet>>>;
48
48
  export {};
49
+ //# sourceMappingURL=faucets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faucets.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,sBAAsB,oBAAoB,EAC1C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,iCAW/C,CAAC;AACF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,GAC9B,yBAAyB,uBAAuB,EAChD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oCAW/C,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAChD,CAAC"}
@@ -1,7 +1,8 @@
1
- import { http } from 'msw';
2
- import type { RequestEvmFaucet200, RequestSolanaFaucet200 } from '../coinbaseDeveloperPlatformAPIs.schemas';
1
+ import { http } from "msw";
2
+ import type { RequestEvmFaucet200, RequestSolanaFaucet200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
3
3
  export declare const getRequestEvmFaucetResponseMock: (overrideResponse?: Partial<RequestEvmFaucet200>) => RequestEvmFaucet200;
4
4
  export declare const getRequestSolanaFaucetResponseMock: (overrideResponse?: Partial<RequestSolanaFaucet200>) => RequestSolanaFaucet200;
5
5
  export declare const getRequestEvmFaucetMockHandler: (overrideResponse?: RequestEvmFaucet200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<RequestEvmFaucet200> | RequestEvmFaucet200)) => import("msw").HttpHandler;
6
6
  export declare const getRequestSolanaFaucetMockHandler: (overrideResponse?: RequestSolanaFaucet200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<RequestSolanaFaucet200> | RequestSolanaFaucet200)) => import("msw").HttpHandler;
7
7
  export declare const getFaucetsMock: () => import("msw").HttpHandler[];
8
+ //# sourceMappingURL=faucets.msw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faucets.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,mBAAmB,CAAM,KAClD,mBAAyF,CAAC;AAE7F,eAAO,MAAM,kCAAkC,GAC7C,mBAAkB,OAAO,CAAC,sBAAsB,CAAM,KACrD,sBAGD,CAAC;AAEH,eAAO,MAAM,8BAA8B,GACzC,mBACI,mBAAmB,GACnB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,8BAgB7D,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC5C,mBACI,sBAAsB,GACtB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,sBAAsB,CAAC,GAAG,sBAAsB,CAAC,8BAgBnE,CAAC;AACF,eAAO,MAAM,cAAc,mCAG1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./evm-accounts/evm-accounts.msw.js";
2
+ export * from "./evm-smart-accounts/evm-smart-accounts.msw.js";
3
+ export * from "./faucets/faucets.msw.js";
4
+ export * from "./solana-accounts/solana-accounts.msw.js";
5
+ //# sourceMappingURL=index.msw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.msw.d.ts","sourceRoot":"","sources":["../../../openapi-client/generated/index.msw.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC"}
@@ -5,34 +5,34 @@
5
5
  * The Coinbase Developer Platform APIs - leading the world's transition onchain.
6
6
  * OpenAPI spec version: 2.0.0
7
7
  */
8
- import type { CreateSolanaAccountBody, ListSolanaAccounts200, ListSolanaAccountsParams, SignSolanaMessage200, SignSolanaMessageBody, SignSolanaTransaction200, SignSolanaTransactionBody, SolanaAccount } from '../coinbaseDeveloperPlatformAPIs.schemas';
9
- import { cdpApiClient } from '../../cdpApiClient';
8
+ import type { CreateSolanaAccountBody, ListSolanaAccounts200, ListSolanaAccountsParams, SignSolanaMessage200, SignSolanaMessageBody, SignSolanaTransaction200, SignSolanaTransactionBody, SolanaAccount } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
9
+ import { cdpApiClient } from "../../cdpApiClient.js";
10
10
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
11
11
  /**
12
- * Lists the Solana accounts belonging to the developer.
12
+ * Lists the Solana accounts belonging to the developer.
13
13
  The response is paginated, and by default, returns 20 accounts per page.
14
14
 
15
15
  If a name is provided, the response will contain only the account with that name.
16
- * @summary List Solana accounts or get account by name
17
- */
16
+ * @summary List Solana accounts or get account by name
17
+ */
18
18
  export declare const listSolanaAccounts: (params?: ListSolanaAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListSolanaAccounts200>;
19
19
  /**
20
- * Creates a new Solana account.
21
- * @summary Create a Solana account
22
- */
20
+ * Creates a new Solana account.
21
+ * @summary Create a Solana account
22
+ */
23
23
  export declare const createSolanaAccount: (createSolanaAccountBody?: CreateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
24
24
  /**
25
- * Gets a Solana account by its address.
26
- * @summary Get a Solana account by address
27
- */
25
+ * Gets a Solana account by its address.
26
+ * @summary Get a Solana account by address
27
+ */
28
28
  export declare const getSolanaAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
29
29
  /**
30
- * Gets a Solana account by its name.
31
- * @summary Get a Solana account by name
32
- */
30
+ * Gets a Solana account by its name.
31
+ * @summary Get a Solana account by name
32
+ */
33
33
  export declare const getSolanaAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
34
34
  /**
35
- * Signs a transaction with the given Solana account.
35
+ * Signs a transaction with the given Solana account.
36
36
  The unsigned transaction should be serialized into a byte array and then encoded as base64.
37
37
 
38
38
  **Transaction types**
@@ -42,15 +42,15 @@ The following transaction types are supported:
42
42
  * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
43
43
 
44
44
  The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
45
- * @summary Sign a transaction
46
- */
45
+ * @summary Sign a transaction
46
+ */
47
47
  export declare const signSolanaTransaction: (address: string, signSolanaTransactionBody: SignSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaTransaction200>;
48
48
  /**
49
- * Signs an arbitrary message with the given Solana account.
49
+ * Signs an arbitrary message with the given Solana account.
50
50
 
51
51
  **WARNING:** Never sign a message that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
52
- * @summary Sign a message
53
- */
52
+ * @summary Sign a message
53
+ */
54
54
  export declare const signSolanaMessage: (address: string, signSolanaMessageBody: SignSolanaMessageBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaMessage200>;
55
55
  export type ListSolanaAccountsResult = NonNullable<Awaited<ReturnType<typeof listSolanaAccounts>>>;
56
56
  export type CreateSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof createSolanaAccount>>>;
@@ -59,3 +59,4 @@ export type GetSolanaAccountByNameResult = NonNullable<Awaited<ReturnType<typeof
59
59
  export type SignSolanaTransactionResult = NonNullable<Awaited<ReturnType<typeof signSolanaTransaction>>>;
60
60
  export type SignSolanaMessageResult = NonNullable<Awaited<ReturnType<typeof signSolanaMessage>>>;
61
61
  export {};
62
+ //# sourceMappingURL=solana-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,aAAa,EACd,MAAM,6CAA6C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AAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,WAAW,CACpD,OAAO,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CACnD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAClD,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { http } from 'msw';
2
- import type { ListSolanaAccounts200, SignSolanaMessage200, SignSolanaTransaction200, SolanaAccount } from '../coinbaseDeveloperPlatformAPIs.schemas';
1
+ import { http } from "msw";
2
+ import type { ListSolanaAccounts200, SignSolanaMessage200, SignSolanaTransaction200, SolanaAccount } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
3
3
  export declare const getListSolanaAccountsResponseMock: () => ListSolanaAccounts200;
4
4
  export declare const getCreateSolanaAccountResponseMock: (overrideResponse?: Partial<SolanaAccount>) => SolanaAccount;
5
5
  export declare const getGetSolanaAccountResponseMock: (overrideResponse?: Partial<SolanaAccount>) => SolanaAccount;
@@ -13,3 +13,4 @@ export declare const getGetSolanaAccountByNameMockHandler: (overrideResponse?: S
13
13
  export declare const getSignSolanaTransactionMockHandler: (overrideResponse?: SignSolanaTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignSolanaTransaction200> | SignSolanaTransaction200)) => import("msw").HttpHandler;
14
14
  export declare const getSignSolanaMessageMockHandler: (overrideResponse?: SignSolanaMessage200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignSolanaMessage200> | SignSolanaMessage200)) => import("msw").HttpHandler;
15
15
  export declare const getSolanaAccountsMock: () => import("msw").HttpHandler[];
16
+ //# sourceMappingURL=solana-accounts.msw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solana-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACd,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,iCAAiC,QAAO,qBAanD,CAAC;AAEH,eAAO,MAAM,kCAAkC,GAC7C,mBAAkB,OAAO,CAAC,aAAa,CAAM,KAC5C,aAOD,CAAC;AAEH,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,aAAa,CAAM,KAC5C,aAOD,CAAC;AAEH,eAAO,MAAM,qCAAqC,GAChD,mBAAkB,OAAO,CAAC,aAAa,CAAM,KAC5C,aAOD,CAAC;AAEH,eAAO,MAAM,oCAAoC,GAC/C,mBAAkB,OAAO,CAAC,wBAAwB,CAAM,KACvD,wBAAgG,CAAC;AAEpG,eAAO,MAAM,gCAAgC,GAC3C,mBAAkB,OAAO,CAAC,oBAAoB,CAAM,KACnD,oBAAoF,CAAC;AAExF,eAAO,MAAM,gCAAgC,GAC3C,mBACI,qBAAqB,GACrB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,CAAC,8BAgBjE,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC5C,mBACI,aAAa,GACb,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC,8BAgBjD,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,mBACI,aAAa,GACb,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC,8BAgBjD,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAC/C,mBACI,aAAa,GACb,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC,8BAgBjD,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,mBACI,wBAAwB,GACxB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC,8BAgBvE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,mBACI,oBAAoB,GACpB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC,8BAgB/D,CAAC;AACF,eAAO,MAAM,qBAAqB,mCAOjC,CAAC"}
@@ -0,0 +1,56 @@
1
+ export * from "./generated/coinbaseDeveloperPlatformAPIs.schemas.js";
2
+ export * from "./generated/evm-accounts/evm-accounts.js";
3
+ export * from "./generated/evm-smart-accounts/evm-smart-accounts.js";
4
+ export * from "./generated/solana-accounts/solana-accounts.js";
5
+ export * from "./generated/faucets/faucets.js";
6
+ export declare const CdpOpenApiClient: {
7
+ configure: (options: import("./cdpApiClient.js").CdpOptions) => void;
8
+ requestEvmFaucet: (requestEvmFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucet200>;
9
+ requestSolanaFaucet: (requestSolanaFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucet200>;
10
+ listSolanaAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccounts200>;
11
+ createSolanaAccount: (createSolanaAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSolanaAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
12
+ getSolanaAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
13
+ getSolanaAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
14
+ signSolanaTransaction: (address: string, signSolanaTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransaction200>;
15
+ signSolanaMessage: (address: string, signSolanaMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessage200>;
16
+ listEvmSmartAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccounts200>;
17
+ createEvmSmartAccount: (createEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
18
+ getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
19
+ prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
20
+ getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
21
+ sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
22
+ listEvmAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccounts200>;
23
+ createEvmAccount: (createEvmAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
24
+ getEvmAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
25
+ getEvmAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
26
+ signEvmTransaction: (address: string, signEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransaction200>;
27
+ signEvmHash: (address: string, signEvmHashBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHashBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHash200>;
28
+ signEvmMessage: (address: string, signEvmMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessage200>;
29
+ };
30
+ export declare const OpenApiEvmMethods: {
31
+ requestEvmFaucet: (requestEvmFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucet200>;
32
+ listEvmSmartAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccounts200>;
33
+ createEvmSmartAccount: (createEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
34
+ getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
35
+ prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
36
+ getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
37
+ sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
38
+ listEvmAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccounts200>;
39
+ createEvmAccount: (createEvmAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
40
+ getEvmAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
41
+ getEvmAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
42
+ signEvmTransaction: (address: string, signEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransaction200>;
43
+ signEvmHash: (address: string, signEvmHashBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHashBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHash200>;
44
+ signEvmMessage: (address: string, signEvmMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessage200>;
45
+ };
46
+ export declare const OpenApiSolanaMethods: {
47
+ requestSolanaFaucet: (requestSolanaFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucet200>;
48
+ listSolanaAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccounts200>;
49
+ createSolanaAccount: (createSolanaAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSolanaAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
50
+ getSolanaAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
51
+ getSolanaAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
52
+ signSolanaTransaction: (address: string, signSolanaTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransaction200>;
53
+ signSolanaMessage: (address: string, signSolanaMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessage200>;
54
+ };
55
+ export type CdpOpenApiClientType = typeof CdpOpenApiClient;
56
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAQ/C,eAAO,MAAM,gBAAgB;;uBAoB4d,yGAA6C,EAAC,4BAAiD;0BAAk8B,+GAAmD,EAAC,4BAAiD;yBAJxnD,gGAAoC,EAAC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;AAEF,eAAO,MAAM,oBAAoB;;yBAE1B,gGAAoC,EAAC,4BAGP;0BAC4L,gHAAoD,EAAC,4BAAiD;uBAAmW,eAAkB,EAAC,4BAAiD;6BAAgQ,YAAe,EAAC,4BAAiD;4BAAwvB,eAAkB,EAAC,mHAAuD,EAAC,4BAAiD;wBAAijB,eAAkB,EAAC,2GAA+C,EAAC,4BAAiD;CAHvkF,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,gBAAgB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { AbiStateMutability, Address } from "viem";
2
- import type { GetMulticallContractParameters } from "./multicall";
3
- import type { OneOf, Prettify } from "./utils";
4
- import type { Hex } from "./misc";
2
+ import type { GetMulticallContractParameters } from "./multicall.js";
3
+ import type { OneOf, Prettify } from "./utils.js";
4
+ import type { Hex } from "./misc.js";
5
5
  export type Call<call = unknown, extraProperties extends Record<string, unknown> = {}> = OneOf<(extraProperties & {
6
6
  data?: Hex | undefined;
7
7
  to: Address;
@@ -11,3 +11,4 @@ export type Call<call = unknown, extraProperties extends Record<string, unknown>
11
11
  value?: bigint | undefined;
12
12
  }))>;
13
13
  export type Calls<calls extends readonly unknown[], extraProperties extends Record<string, unknown> = {}, result extends readonly any[] = []> = calls extends readonly [] ? readonly [] : calls extends readonly [infer call] ? readonly [...result, Prettify<Call<call, extraProperties>>] : calls extends readonly [infer call, ...infer rest] ? Calls<[...rest], extraProperties, [...result, Prettify<Call<call, extraProperties>>]> : readonly unknown[] extends calls ? calls : calls extends readonly (infer call extends OneOf<Call>)[] ? readonly Prettify<call>[] : readonly OneOf<Call>[];
14
+ //# sourceMappingURL=calls.d.ts.map