@distilled.cloud/coinbase 0.0.0-john

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 (412) hide show
  1. package/README.md +77 -0
  2. package/lib/category.d.ts +5 -0
  3. package/lib/category.d.ts.map +1 -0
  4. package/lib/category.js +5 -0
  5. package/lib/category.js.map +1 -0
  6. package/lib/client.d.ts +12 -0
  7. package/lib/client.d.ts.map +1 -0
  8. package/lib/client.js +245 -0
  9. package/lib/client.js.map +1 -0
  10. package/lib/credentials.d.ts +33 -0
  11. package/lib/credentials.d.ts.map +1 -0
  12. package/lib/credentials.js +30 -0
  13. package/lib/credentials.js.map +1 -0
  14. package/lib/errors.d.ts +855 -0
  15. package/lib/errors.d.ts.map +1 -0
  16. package/lib/errors.js +466 -0
  17. package/lib/errors.js.map +1 -0
  18. package/lib/index.d.ts +16 -0
  19. package/lib/index.d.ts.map +1 -0
  20. package/lib/index.js +16 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/operations/addEndUserEvmAccount.d.ts +30 -0
  23. package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -0
  24. package/lib/operations/addEndUserEvmAccount.js +38 -0
  25. package/lib/operations/addEndUserEvmAccount.js.map +1 -0
  26. package/lib/operations/addEndUserEvmSmartAccount.d.ts +32 -0
  27. package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -0
  28. package/lib/operations/addEndUserEvmSmartAccount.js +43 -0
  29. package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -0
  30. package/lib/operations/addEndUserSolanaAccount.d.ts +30 -0
  31. package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -0
  32. package/lib/operations/addEndUserSolanaAccount.js +38 -0
  33. package/lib/operations/addEndUserSolanaAccount.js.map +1 -0
  34. package/lib/operations/createEndUser.d.ts +61 -0
  35. package/lib/operations/createEndUser.d.ts.map +1 -0
  36. package/lib/operations/createEndUser.js +67 -0
  37. package/lib/operations/createEndUser.js.map +1 -0
  38. package/lib/operations/createEvmAccount.d.ts +30 -0
  39. package/lib/operations/createEvmAccount.d.ts.map +1 -0
  40. package/lib/operations/createEvmAccount.js +36 -0
  41. package/lib/operations/createEvmAccount.js.map +1 -0
  42. package/lib/operations/createEvmEip7702Delegation.d.ts +34 -0
  43. package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -0
  44. package/lib/operations/createEvmEip7702Delegation.js +53 -0
  45. package/lib/operations/createEvmEip7702Delegation.js.map +1 -0
  46. package/lib/operations/createEvmSmartAccount.d.ts +27 -0
  47. package/lib/operations/createEvmSmartAccount.d.ts.map +1 -0
  48. package/lib/operations/createEvmSmartAccount.js +35 -0
  49. package/lib/operations/createEvmSmartAccount.js.map +1 -0
  50. package/lib/operations/createEvmSwapQuote.d.ts +26 -0
  51. package/lib/operations/createEvmSwapQuote.d.ts.map +1 -0
  52. package/lib/operations/createEvmSwapQuote.js +40 -0
  53. package/lib/operations/createEvmSwapQuote.js.map +1 -0
  54. package/lib/operations/createOnrampOrder.d.ts +58 -0
  55. package/lib/operations/createOnrampOrder.d.ts.map +1 -0
  56. package/lib/operations/createOnrampOrder.js +79 -0
  57. package/lib/operations/createOnrampOrder.js.map +1 -0
  58. package/lib/operations/createOnrampSession.d.ts +55 -0
  59. package/lib/operations/createOnrampSession.d.ts.map +1 -0
  60. package/lib/operations/createOnrampSession.js +70 -0
  61. package/lib/operations/createOnrampSession.js.map +1 -0
  62. package/lib/operations/createPolicy.d.ts +28 -0
  63. package/lib/operations/createPolicy.d.ts.map +1 -0
  64. package/lib/operations/createPolicy.js +34 -0
  65. package/lib/operations/createPolicy.js.map +1 -0
  66. package/lib/operations/createSolanaAccount.d.ts +30 -0
  67. package/lib/operations/createSolanaAccount.d.ts.map +1 -0
  68. package/lib/operations/createSolanaAccount.js +38 -0
  69. package/lib/operations/createSolanaAccount.js.map +1 -0
  70. package/lib/operations/createSpendPermission.d.ts +55 -0
  71. package/lib/operations/createSpendPermission.d.ts.map +1 -0
  72. package/lib/operations/createSpendPermission.js +93 -0
  73. package/lib/operations/createSpendPermission.js.map +1 -0
  74. package/lib/operations/createWebhookSubscription.d.ts +74 -0
  75. package/lib/operations/createWebhookSubscription.d.ts.map +1 -0
  76. package/lib/operations/createWebhookSubscription.js +82 -0
  77. package/lib/operations/createWebhookSubscription.js.map +1 -0
  78. package/lib/operations/deletePolicy.d.ts +20 -0
  79. package/lib/operations/deletePolicy.d.ts.map +1 -0
  80. package/lib/operations/deletePolicy.js +26 -0
  81. package/lib/operations/deletePolicy.js.map +1 -0
  82. package/lib/operations/deleteWebhookSubscription.d.ts +21 -0
  83. package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -0
  84. package/lib/operations/deleteWebhookSubscription.js +32 -0
  85. package/lib/operations/deleteWebhookSubscription.js.map +1 -0
  86. package/lib/operations/exportEvmAccount.d.ts +27 -0
  87. package/lib/operations/exportEvmAccount.d.ts.map +1 -0
  88. package/lib/operations/exportEvmAccount.js +33 -0
  89. package/lib/operations/exportEvmAccount.js.map +1 -0
  90. package/lib/operations/exportEvmAccountByName.d.ts +27 -0
  91. package/lib/operations/exportEvmAccountByName.d.ts.map +1 -0
  92. package/lib/operations/exportEvmAccountByName.js +35 -0
  93. package/lib/operations/exportEvmAccountByName.js.map +1 -0
  94. package/lib/operations/exportSolanaAccount.d.ts +27 -0
  95. package/lib/operations/exportSolanaAccount.d.ts.map +1 -0
  96. package/lib/operations/exportSolanaAccount.js +35 -0
  97. package/lib/operations/exportSolanaAccount.js.map +1 -0
  98. package/lib/operations/exportSolanaAccountByName.d.ts +27 -0
  99. package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -0
  100. package/lib/operations/exportSolanaAccountByName.js +38 -0
  101. package/lib/operations/exportSolanaAccountByName.js.map +1 -0
  102. package/lib/operations/getEndUser.d.ts +46 -0
  103. package/lib/operations/getEndUser.d.ts.map +1 -0
  104. package/lib/operations/getEndUser.js +52 -0
  105. package/lib/operations/getEndUser.js.map +1 -0
  106. package/lib/operations/getEvmAccount.d.ts +22 -0
  107. package/lib/operations/getEvmAccount.d.ts.map +1 -0
  108. package/lib/operations/getEvmAccount.js +28 -0
  109. package/lib/operations/getEvmAccount.js.map +1 -0
  110. package/lib/operations/getEvmAccountByName.d.ts +22 -0
  111. package/lib/operations/getEvmAccountByName.d.ts.map +1 -0
  112. package/lib/operations/getEvmAccountByName.js +30 -0
  113. package/lib/operations/getEvmAccountByName.js.map +1 -0
  114. package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +22 -0
  115. package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -0
  116. package/lib/operations/getEvmEip7702DelegationOperationById.js +48 -0
  117. package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -0
  118. package/lib/operations/getEvmSmartAccount.d.ts +23 -0
  119. package/lib/operations/getEvmSmartAccount.d.ts.map +1 -0
  120. package/lib/operations/getEvmSmartAccount.js +31 -0
  121. package/lib/operations/getEvmSmartAccount.js.map +1 -0
  122. package/lib/operations/getEvmSmartAccountByName.d.ts +23 -0
  123. package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -0
  124. package/lib/operations/getEvmSmartAccountByName.js +31 -0
  125. package/lib/operations/getEvmSmartAccountByName.js.map +1 -0
  126. package/lib/operations/getEvmSwapPrice.d.ts +21 -0
  127. package/lib/operations/getEvmSwapPrice.d.ts.map +1 -0
  128. package/lib/operations/getEvmSwapPrice.js +27 -0
  129. package/lib/operations/getEvmSwapPrice.js.map +1 -0
  130. package/lib/operations/getOnrampOrderById.d.ts +39 -0
  131. package/lib/operations/getOnrampOrderById.d.ts.map +1 -0
  132. package/lib/operations/getOnrampOrderById.js +56 -0
  133. package/lib/operations/getOnrampOrderById.js.map +1 -0
  134. package/lib/operations/getOnrampUserLimits.d.ts +24 -0
  135. package/lib/operations/getOnrampUserLimits.d.ts.map +1 -0
  136. package/lib/operations/getOnrampUserLimits.js +38 -0
  137. package/lib/operations/getOnrampUserLimits.js.map +1 -0
  138. package/lib/operations/getPolicyById.d.ts +23 -0
  139. package/lib/operations/getPolicyById.d.ts.map +1 -0
  140. package/lib/operations/getPolicyById.js +29 -0
  141. package/lib/operations/getPolicyById.js.map +1 -0
  142. package/lib/operations/getSQLGrammar.d.ts +14 -0
  143. package/lib/operations/getSQLGrammar.d.ts.map +1 -0
  144. package/lib/operations/getSQLGrammar.js +20 -0
  145. package/lib/operations/getSQLGrammar.js.map +1 -0
  146. package/lib/operations/getSolanaAccount.d.ts +22 -0
  147. package/lib/operations/getSolanaAccount.d.ts.map +1 -0
  148. package/lib/operations/getSolanaAccount.js +28 -0
  149. package/lib/operations/getSolanaAccount.js.map +1 -0
  150. package/lib/operations/getSolanaAccountByName.d.ts +22 -0
  151. package/lib/operations/getSolanaAccountByName.d.ts.map +1 -0
  152. package/lib/operations/getSolanaAccountByName.js +30 -0
  153. package/lib/operations/getSolanaAccountByName.js.map +1 -0
  154. package/lib/operations/getUserOperation.d.ts +39 -0
  155. package/lib/operations/getUserOperation.d.ts.map +1 -0
  156. package/lib/operations/getUserOperation.js +66 -0
  157. package/lib/operations/getUserOperation.js.map +1 -0
  158. package/lib/operations/getWebhookSubscription.d.ts +37 -0
  159. package/lib/operations/getWebhookSubscription.d.ts.map +1 -0
  160. package/lib/operations/getWebhookSubscription.js +48 -0
  161. package/lib/operations/getWebhookSubscription.js.map +1 -0
  162. package/lib/operations/importEndUser.d.ts +56 -0
  163. package/lib/operations/importEndUser.d.ts.map +1 -0
  164. package/lib/operations/importEndUser.js +62 -0
  165. package/lib/operations/importEndUser.js.map +1 -0
  166. package/lib/operations/importEvmAccount.d.ts +31 -0
  167. package/lib/operations/importEvmAccount.d.ts.map +1 -0
  168. package/lib/operations/importEvmAccount.js +37 -0
  169. package/lib/operations/importEvmAccount.js.map +1 -0
  170. package/lib/operations/importSolanaAccount.d.ts +30 -0
  171. package/lib/operations/importSolanaAccount.d.ts.map +1 -0
  172. package/lib/operations/importSolanaAccount.js +38 -0
  173. package/lib/operations/importSolanaAccount.js.map +1 -0
  174. package/lib/operations/index.d.ts +74 -0
  175. package/lib/operations/index.d.ts.map +1 -0
  176. package/lib/operations/index.js +74 -0
  177. package/lib/operations/index.js.map +1 -0
  178. package/lib/operations/listDataTokenBalances.d.ts +37 -0
  179. package/lib/operations/listDataTokenBalances.d.ts.map +1 -0
  180. package/lib/operations/listDataTokenBalances.js +48 -0
  181. package/lib/operations/listDataTokenBalances.js.map +1 -0
  182. package/lib/operations/listEndUsers.d.ts +53 -0
  183. package/lib/operations/listEndUsers.d.ts.map +1 -0
  184. package/lib/operations/listEndUsers.js +59 -0
  185. package/lib/operations/listEndUsers.js.map +1 -0
  186. package/lib/operations/listEvmAccounts.d.ts +28 -0
  187. package/lib/operations/listEvmAccounts.d.ts.map +1 -0
  188. package/lib/operations/listEvmAccounts.js +34 -0
  189. package/lib/operations/listEvmAccounts.js.map +1 -0
  190. package/lib/operations/listEvmSmartAccounts.d.ts +29 -0
  191. package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -0
  192. package/lib/operations/listEvmSmartAccounts.js +37 -0
  193. package/lib/operations/listEvmSmartAccounts.js.map +1 -0
  194. package/lib/operations/listEvmTokenBalances.d.ts +37 -0
  195. package/lib/operations/listEvmTokenBalances.d.ts.map +1 -0
  196. package/lib/operations/listEvmTokenBalances.js +48 -0
  197. package/lib/operations/listEvmTokenBalances.js.map +1 -0
  198. package/lib/operations/listPolicies.d.ts +31 -0
  199. package/lib/operations/listPolicies.d.ts.map +1 -0
  200. package/lib/operations/listPolicies.js +37 -0
  201. package/lib/operations/listPolicies.js.map +1 -0
  202. package/lib/operations/listSolanaAccounts.d.ts +29 -0
  203. package/lib/operations/listSolanaAccounts.d.ts.map +1 -0
  204. package/lib/operations/listSolanaAccounts.js +37 -0
  205. package/lib/operations/listSolanaAccounts.js.map +1 -0
  206. package/lib/operations/listSolanaTokenBalances.d.ts +36 -0
  207. package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -0
  208. package/lib/operations/listSolanaTokenBalances.js +47 -0
  209. package/lib/operations/listSolanaTokenBalances.js.map +1 -0
  210. package/lib/operations/listSpendPermissions.d.ts +40 -0
  211. package/lib/operations/listSpendPermissions.d.ts.map +1 -0
  212. package/lib/operations/listSpendPermissions.js +60 -0
  213. package/lib/operations/listSpendPermissions.js.map +1 -0
  214. package/lib/operations/listTokensForAccount.d.ts +23 -0
  215. package/lib/operations/listTokensForAccount.d.ts.map +1 -0
  216. package/lib/operations/listTokensForAccount.js +34 -0
  217. package/lib/operations/listTokensForAccount.js.map +1 -0
  218. package/lib/operations/listWebhookSubscriptions.d.ts +42 -0
  219. package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -0
  220. package/lib/operations/listWebhookSubscriptions.js +50 -0
  221. package/lib/operations/listWebhookSubscriptions.js.map +1 -0
  222. package/lib/operations/prepareAndSendUserOperation.d.ts +53 -0
  223. package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -0
  224. package/lib/operations/prepareAndSendUserOperation.js +93 -0
  225. package/lib/operations/prepareAndSendUserOperation.js.map +1 -0
  226. package/lib/operations/prepareUserOperation.d.ts +46 -0
  227. package/lib/operations/prepareUserOperation.d.ts.map +1 -0
  228. package/lib/operations/prepareUserOperation.js +86 -0
  229. package/lib/operations/prepareUserOperation.js.map +1 -0
  230. package/lib/operations/requestEvmFaucet.d.ts +22 -0
  231. package/lib/operations/requestEvmFaucet.d.ts.map +1 -0
  232. package/lib/operations/requestEvmFaucet.js +32 -0
  233. package/lib/operations/requestEvmFaucet.js.map +1 -0
  234. package/lib/operations/requestSolanaFaucet.d.ts +21 -0
  235. package/lib/operations/requestSolanaFaucet.d.ts.map +1 -0
  236. package/lib/operations/requestSolanaFaucet.js +29 -0
  237. package/lib/operations/requestSolanaFaucet.js.map +1 -0
  238. package/lib/operations/revokeSpendPermission.d.ts +48 -0
  239. package/lib/operations/revokeSpendPermission.d.ts.map +1 -0
  240. package/lib/operations/revokeSpendPermission.js +86 -0
  241. package/lib/operations/revokeSpendPermission.js.map +1 -0
  242. package/lib/operations/runSQLQuery.d.ts +47 -0
  243. package/lib/operations/runSQLQuery.d.ts.map +1 -0
  244. package/lib/operations/runSQLQuery.js +74 -0
  245. package/lib/operations/runSQLQuery.js.map +1 -0
  246. package/lib/operations/sendEvmTransaction.d.ts +44 -0
  247. package/lib/operations/sendEvmTransaction.d.ts.map +1 -0
  248. package/lib/operations/sendEvmTransaction.js +64 -0
  249. package/lib/operations/sendEvmTransaction.js.map +1 -0
  250. package/lib/operations/sendSolanaTransaction.d.ts +38 -0
  251. package/lib/operations/sendSolanaTransaction.d.ts.map +1 -0
  252. package/lib/operations/sendSolanaTransaction.js +46 -0
  253. package/lib/operations/sendSolanaTransaction.js.map +1 -0
  254. package/lib/operations/sendUserOperation.d.ts +43 -0
  255. package/lib/operations/sendUserOperation.d.ts.map +1 -0
  256. package/lib/operations/sendUserOperation.js +71 -0
  257. package/lib/operations/sendUserOperation.js.map +1 -0
  258. package/lib/operations/settleX402Payment.d.ts +23 -0
  259. package/lib/operations/settleX402Payment.d.ts.map +1 -0
  260. package/lib/operations/settleX402Payment.js +79 -0
  261. package/lib/operations/settleX402Payment.js.map +1 -0
  262. package/lib/operations/signEvmHash.d.ts +27 -0
  263. package/lib/operations/signEvmHash.d.ts.map +1 -0
  264. package/lib/operations/signEvmHash.js +33 -0
  265. package/lib/operations/signEvmHash.js.map +1 -0
  266. package/lib/operations/signEvmMessage.d.ts +28 -0
  267. package/lib/operations/signEvmMessage.d.ts.map +1 -0
  268. package/lib/operations/signEvmMessage.js +34 -0
  269. package/lib/operations/signEvmMessage.js.map +1 -0
  270. package/lib/operations/signEvmTransaction.d.ts +29 -0
  271. package/lib/operations/signEvmTransaction.d.ts.map +1 -0
  272. package/lib/operations/signEvmTransaction.js +40 -0
  273. package/lib/operations/signEvmTransaction.js.map +1 -0
  274. package/lib/operations/signEvmTypedData.d.ts +36 -0
  275. package/lib/operations/signEvmTypedData.d.ts.map +1 -0
  276. package/lib/operations/signEvmTypedData.js +45 -0
  277. package/lib/operations/signEvmTypedData.js.map +1 -0
  278. package/lib/operations/signSolanaMessage.d.ts +28 -0
  279. package/lib/operations/signSolanaMessage.d.ts.map +1 -0
  280. package/lib/operations/signSolanaMessage.js +38 -0
  281. package/lib/operations/signSolanaMessage.js.map +1 -0
  282. package/lib/operations/signSolanaTransaction.d.ts +33 -0
  283. package/lib/operations/signSolanaTransaction.d.ts.map +1 -0
  284. package/lib/operations/signSolanaTransaction.js +44 -0
  285. package/lib/operations/signSolanaTransaction.js.map +1 -0
  286. package/lib/operations/supportedX402PaymentKinds.d.ts +21 -0
  287. package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -0
  288. package/lib/operations/supportedX402PaymentKinds.js +40 -0
  289. package/lib/operations/supportedX402PaymentKinds.js.map +1 -0
  290. package/lib/operations/updateEvmAccount.d.ts +28 -0
  291. package/lib/operations/updateEvmAccount.d.ts.map +1 -0
  292. package/lib/operations/updateEvmAccount.js +34 -0
  293. package/lib/operations/updateEvmAccount.js.map +1 -0
  294. package/lib/operations/updateEvmSmartAccount.d.ts +24 -0
  295. package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -0
  296. package/lib/operations/updateEvmSmartAccount.js +32 -0
  297. package/lib/operations/updateEvmSmartAccount.js.map +1 -0
  298. package/lib/operations/updatePolicy.d.ts +29 -0
  299. package/lib/operations/updatePolicy.d.ts.map +1 -0
  300. package/lib/operations/updatePolicy.js +35 -0
  301. package/lib/operations/updatePolicy.js.map +1 -0
  302. package/lib/operations/updateSolanaAccount.d.ts +28 -0
  303. package/lib/operations/updateSolanaAccount.d.ts.map +1 -0
  304. package/lib/operations/updateSolanaAccount.js +36 -0
  305. package/lib/operations/updateSolanaAccount.js.map +1 -0
  306. package/lib/operations/updateWebhookSubscription.d.ts +47 -0
  307. package/lib/operations/updateWebhookSubscription.d.ts.map +1 -0
  308. package/lib/operations/updateWebhookSubscription.js +58 -0
  309. package/lib/operations/updateWebhookSubscription.js.map +1 -0
  310. package/lib/operations/validateEndUserAccessToken.d.ts +44 -0
  311. package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -0
  312. package/lib/operations/validateEndUserAccessToken.js +52 -0
  313. package/lib/operations/validateEndUserAccessToken.js.map +1 -0
  314. package/lib/operations/verifyX402Payment.d.ts +21 -0
  315. package/lib/operations/verifyX402Payment.d.ts.map +1 -0
  316. package/lib/operations/verifyX402Payment.js +72 -0
  317. package/lib/operations/verifyX402Payment.js.map +1 -0
  318. package/lib/retry.d.ts +22 -0
  319. package/lib/retry.d.ts.map +1 -0
  320. package/lib/retry.js +21 -0
  321. package/lib/retry.js.map +1 -0
  322. package/lib/sensitive.d.ts +5 -0
  323. package/lib/sensitive.d.ts.map +1 -0
  324. package/lib/sensitive.js +5 -0
  325. package/lib/sensitive.js.map +1 -0
  326. package/lib/traits.d.ts +5 -0
  327. package/lib/traits.d.ts.map +1 -0
  328. package/lib/traits.js +5 -0
  329. package/lib/traits.js.map +1 -0
  330. package/package.json +89 -0
  331. package/src/category.ts +4 -0
  332. package/src/client.ts +291 -0
  333. package/src/credentials.ts +66 -0
  334. package/src/errors.ts +694 -0
  335. package/src/index.ts +15 -0
  336. package/src/operations/addEndUserEvmAccount.ts +44 -0
  337. package/src/operations/addEndUserEvmSmartAccount.ts +53 -0
  338. package/src/operations/addEndUserSolanaAccount.ts +46 -0
  339. package/src/operations/createEndUser.ts +87 -0
  340. package/src/operations/createEvmAccount.ts +42 -0
  341. package/src/operations/createEvmEip7702Delegation.ts +63 -0
  342. package/src/operations/createEvmSmartAccount.ts +42 -0
  343. package/src/operations/createEvmSwapQuote.ts +44 -0
  344. package/src/operations/createOnrampOrder.ts +89 -0
  345. package/src/operations/createOnrampSession.ts +80 -0
  346. package/src/operations/createPolicy.ts +38 -0
  347. package/src/operations/createSolanaAccount.ts +42 -0
  348. package/src/operations/createSpendPermission.ts +110 -0
  349. package/src/operations/createWebhookSubscription.ts +92 -0
  350. package/src/operations/deletePolicy.ts +32 -0
  351. package/src/operations/deleteWebhookSubscription.ts +42 -0
  352. package/src/operations/exportEvmAccount.ts +39 -0
  353. package/src/operations/exportEvmAccountByName.ts +45 -0
  354. package/src/operations/exportSolanaAccount.ts +41 -0
  355. package/src/operations/exportSolanaAccountByName.ts +48 -0
  356. package/src/operations/getEndUser.ts +68 -0
  357. package/src/operations/getEvmAccount.ts +32 -0
  358. package/src/operations/getEvmAccountByName.ts +34 -0
  359. package/src/operations/getEvmEip7702DelegationOperationById.ts +56 -0
  360. package/src/operations/getEvmSmartAccount.ts +35 -0
  361. package/src/operations/getEvmSmartAccountByName.ts +41 -0
  362. package/src/operations/getEvmSwapPrice.ts +31 -0
  363. package/src/operations/getOnrampOrderById.ts +62 -0
  364. package/src/operations/getOnrampUserLimits.ts +44 -0
  365. package/src/operations/getPolicyById.ts +35 -0
  366. package/src/operations/getSQLGrammar.ts +26 -0
  367. package/src/operations/getSolanaAccount.ts +34 -0
  368. package/src/operations/getSolanaAccountByName.ts +40 -0
  369. package/src/operations/getUserOperation.ts +82 -0
  370. package/src/operations/getWebhookSubscription.ts +60 -0
  371. package/src/operations/importEndUser.ts +78 -0
  372. package/src/operations/importEvmAccount.ts +43 -0
  373. package/src/operations/importSolanaAccount.ts +42 -0
  374. package/src/operations/index.ts +73 -0
  375. package/src/operations/listDataTokenBalances.ts +59 -0
  376. package/src/operations/listEndUsers.ts +77 -0
  377. package/src/operations/listEvmAccounts.ts +40 -0
  378. package/src/operations/listEvmSmartAccounts.ts +45 -0
  379. package/src/operations/listEvmTokenBalances.ts +58 -0
  380. package/src/operations/listPolicies.ts +43 -0
  381. package/src/operations/listSolanaAccounts.ts +43 -0
  382. package/src/operations/listSolanaTokenBalances.ts +59 -0
  383. package/src/operations/listSpendPermissions.ts +70 -0
  384. package/src/operations/listTokensForAccount.ts +42 -0
  385. package/src/operations/listWebhookSubscriptions.ts +62 -0
  386. package/src/operations/prepareAndSendUserOperation.ts +113 -0
  387. package/src/operations/prepareUserOperation.ts +104 -0
  388. package/src/operations/requestEvmFaucet.ts +38 -0
  389. package/src/operations/requestSolanaFaucet.ts +33 -0
  390. package/src/operations/revokeSpendPermission.ts +103 -0
  391. package/src/operations/runSQLQuery.ts +92 -0
  392. package/src/operations/sendEvmTransaction.ts +70 -0
  393. package/src/operations/sendSolanaTransaction.ts +55 -0
  394. package/src/operations/sendUserOperation.ts +87 -0
  395. package/src/operations/settleX402Payment.ts +87 -0
  396. package/src/operations/signEvmHash.ts +37 -0
  397. package/src/operations/signEvmMessage.ts +40 -0
  398. package/src/operations/signEvmTransaction.ts +46 -0
  399. package/src/operations/signEvmTypedData.ts +53 -0
  400. package/src/operations/signSolanaMessage.ts +46 -0
  401. package/src/operations/signSolanaTransaction.ts +53 -0
  402. package/src/operations/supportedX402PaymentKinds.ts +52 -0
  403. package/src/operations/updateEvmAccount.ts +40 -0
  404. package/src/operations/updateEvmSmartAccount.ts +39 -0
  405. package/src/operations/updatePolicy.ts +41 -0
  406. package/src/operations/updateSolanaAccount.ts +40 -0
  407. package/src/operations/updateWebhookSubscription.ts +70 -0
  408. package/src/operations/validateEndUserAccessToken.ts +74 -0
  409. package/src/operations/verifyX402Payment.ts +80 -0
  410. package/src/retry.ts +37 -0
  411. package/src/sensitive.ts +4 -0
  412. package/src/traits.ts +4 -0
@@ -0,0 +1,33 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignEvmHashInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ address: Schema.String.pipe(T.PathParam()),
7
+ hash: Schema.String,
8
+ }).pipe(T.Http({ method: "POST", path: "/v2/evm/accounts/{address}/sign" }));
9
+ // Output Schema
10
+ export const SignEvmHashOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11
+ signature: Schema.String,
12
+ });
13
+ // The operation
14
+ /**
15
+ * Sign a hash
16
+ *
17
+ * Signs an arbitrary 32 byte hash with the given EVM account.
18
+ *
19
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
20
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
21
+ section of our Authentication docs for more details on how to generate your Wallet Token.
22
+
23
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
24
+ When included, duplicate requests with the same key will return identical responses.
25
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
26
+
27
+ * @param address - The 0x-prefixed address of the EVM account.
28
+ */
29
+ export const signEvmHash = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30
+ inputSchema: SignEvmHashInput,
31
+ outputSchema: SignEvmHashOutput,
32
+ }));
33
+ //# sourceMappingURL=signEvmHash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmHash.js","sourceRoot":"","sources":["../../src/operations/signEvmHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAG7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;CAChC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignEvmMessageInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly message: Schema.String;
5
+ }>;
6
+ export type SignEvmMessageInput = typeof SignEvmMessageInput.Type;
7
+ export declare const SignEvmMessageOutput: Schema.Struct<{
8
+ readonly signature: Schema.String;
9
+ }>;
10
+ export type SignEvmMessageOutput = typeof SignEvmMessageOutput.Type;
11
+ /**
12
+ * Sign an EIP-191 message
13
+ *
14
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
15
+ * Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\\n" + len(message)>` before being signed.
16
+ *
17
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
18
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
19
+ section of our Authentication docs for more details on how to generate your Wallet Token.
20
+
21
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
22
+ When included, duplicate requests with the same key will return identical responses.
23
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
24
+
25
+ * @param address - The 0x-prefixed address of the EVM account.
26
+ */
27
+ export declare const signEvmMessage: any;
28
+ //# sourceMappingURL=signEvmMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmMessage.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;EAK/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;EAE/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignEvmMessageInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ address: Schema.String.pipe(T.PathParam()),
7
+ message: Schema.String,
8
+ }).pipe(T.Http({ method: "POST", path: "/v2/evm/accounts/{address}/sign/message" }));
9
+ // Output Schema
10
+ export const SignEvmMessageOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11
+ signature: Schema.String,
12
+ });
13
+ // The operation
14
+ /**
15
+ * Sign an EIP-191 message
16
+ *
17
+ * Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
18
+ * Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\\n" + len(message)>` before being signed.
19
+ *
20
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
21
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
22
+ section of our Authentication docs for more details on how to generate your Wallet Token.
23
+
24
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
25
+ When included, duplicate requests with the same key will return identical responses.
26
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
27
+
28
+ * @param address - The 0x-prefixed address of the EVM account.
29
+ */
30
+ export const signEvmMessage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
31
+ inputSchema: SignEvmMessageInput,
32
+ outputSchema: SignEvmMessageOutput,
33
+ }));
34
+ //# sourceMappingURL=signEvmMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmMessage.js","sourceRoot":"","sources":["../../src/operations/signEvmMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,yCAAyC,EAAE,CAAC,CAC5E,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignEvmTransactionInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly transaction: Schema.String;
5
+ }>;
6
+ export type SignEvmTransactionInput = typeof SignEvmTransactionInput.Type;
7
+ export declare const SignEvmTransactionOutput: Schema.Struct<{
8
+ readonly signedTransaction: Schema.String;
9
+ }>;
10
+ export type SignEvmTransactionOutput = typeof SignEvmTransactionOutput.Type;
11
+ /**
12
+ * Sign a transaction
13
+ *
14
+ * Signs a transaction with the given EVM account.
15
+ * The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
16
+ * 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.
17
+ *
18
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
19
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
20
+ section of our Authentication docs for more details on how to generate your Wallet Token.
21
+
22
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
23
+ When included, duplicate requests with the same key will return identical responses.
24
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
25
+
26
+ * @param address - The 0x-prefixed address of the EVM account.
27
+ */
28
+ export declare const signEvmTransaction: any;
29
+ //# sourceMappingURL=signEvmTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmTransaction.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,uBAAuB;;;EASjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;EAGjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,kBAAkB,KAG5B,CAAC"}
@@ -0,0 +1,40 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignEvmTransactionInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ address: Schema.String.pipe(T.PathParam()),
8
+ transaction: Schema.String,
9
+ }).pipe(T.Http({
10
+ method: "POST",
11
+ path: "/v2/evm/accounts/{address}/sign/transaction",
12
+ }));
13
+ // Output Schema
14
+ export const SignEvmTransactionOutput =
15
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
+ signedTransaction: Schema.String,
17
+ });
18
+ // The operation
19
+ /**
20
+ * Sign a transaction
21
+ *
22
+ * Signs a transaction with the given EVM account.
23
+ * The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
24
+ * 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.
25
+ *
26
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
27
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
28
+ section of our Authentication docs for more details on how to generate your Wallet Token.
29
+
30
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
31
+ When included, duplicate requests with the same key will return identical responses.
32
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
33
+
34
+ * @param address - The 0x-prefixed address of the EVM account.
35
+ */
36
+ export const signEvmTransaction = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
37
+ inputSchema: SignEvmTransactionInput,
38
+ outputSchema: SignEvmTransactionOutput,
39
+ }));
40
+ //# sourceMappingURL=signEvmTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmTransaction.js","sourceRoot":"","sources":["../../src/operations/signEvmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6CAA6C;CACpD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,MAAM;CACjC,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;CACvC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignEvmTypedDataInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly domain: Schema.Struct<{
5
+ readonly name: Schema.optional<Schema.String>;
6
+ readonly version: Schema.optional<Schema.String>;
7
+ readonly chainId: Schema.optional<Schema.Number>;
8
+ readonly verifyingContract: Schema.optional<Schema.String>;
9
+ readonly salt: Schema.optional<Schema.String>;
10
+ }>;
11
+ readonly types: Schema.Unknown;
12
+ readonly primaryType: Schema.String;
13
+ readonly message: Schema.Unknown;
14
+ }>;
15
+ export type SignEvmTypedDataInput = typeof SignEvmTypedDataInput.Type;
16
+ export declare const SignEvmTypedDataOutput: Schema.Struct<{
17
+ readonly signature: Schema.String;
18
+ }>;
19
+ export type SignEvmTypedDataOutput = typeof SignEvmTypedDataOutput.Type;
20
+ /**
21
+ * Sign EIP-712 typed data
22
+ *
23
+ * Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given EVM account.
24
+ *
25
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
26
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
27
+ section of our Authentication docs for more details on how to generate your Wallet Token.
28
+
29
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
30
+ When included, duplicate requests with the same key will return identical responses.
31
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
32
+
33
+ * @param address - The 0x-prefixed address of the EVM account.
34
+ */
35
+ export declare const signEvmTypedData: any;
36
+ //# sourceMappingURL=signEvmTypedData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmTypedData.d.ts","sourceRoot":"","sources":["../../src/operations/signEvmTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAiBjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;EAIlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignEvmTypedDataInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ address: Schema.String.pipe(T.PathParam()),
7
+ domain: Schema.Struct({
8
+ name: Schema.optional(Schema.String),
9
+ version: Schema.optional(Schema.String),
10
+ chainId: Schema.optional(Schema.Number),
11
+ verifyingContract: Schema.optional(Schema.String),
12
+ salt: Schema.optional(Schema.String),
13
+ }),
14
+ types: Schema.Unknown,
15
+ primaryType: Schema.String,
16
+ message: Schema.Unknown,
17
+ }).pipe(T.Http({
18
+ method: "POST",
19
+ path: "/v2/evm/accounts/{address}/sign/typed-data",
20
+ }));
21
+ // Output Schema
22
+ export const SignEvmTypedDataOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23
+ signature: Schema.String,
24
+ });
25
+ // The operation
26
+ /**
27
+ * Sign EIP-712 typed data
28
+ *
29
+ * Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given EVM account.
30
+ *
31
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
32
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
33
+ section of our Authentication docs for more details on how to generate your Wallet Token.
34
+
35
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
36
+ When included, duplicate requests with the same key will return identical responses.
37
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
38
+
39
+ * @param address - The 0x-prefixed address of the EVM account.
40
+ */
41
+ export const signEvmTypedData = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
42
+ inputSchema: SignEvmTypedDataInput,
43
+ outputSchema: SignEvmTypedDataOutput,
44
+ }));
45
+ //# sourceMappingURL=signEvmTypedData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signEvmTypedData.js","sourceRoot":"","sources":["../../src/operations/signEvmTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACjD,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACrC,CAAC;IACF,KAAK,EAAE,MAAM,CAAC,OAAO;IACrB,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4CAA4C;CACnD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignSolanaMessageInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly message: Schema.String;
5
+ }>;
6
+ export type SignSolanaMessageInput = typeof SignSolanaMessageInput.Type;
7
+ export declare const SignSolanaMessageOutput: Schema.Struct<{
8
+ readonly signature: Schema.String;
9
+ }>;
10
+ export type SignSolanaMessageOutput = typeof SignSolanaMessageOutput.Type;
11
+ /**
12
+ * Sign a message
13
+ *
14
+ * Signs an arbitrary message with the given Solana account.
15
+ * **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.
16
+ *
17
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
18
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
19
+ section of our Authentication docs for more details on how to generate your Wallet Token.
20
+
21
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
22
+ When included, duplicate requests with the same key will return identical responses.
23
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
24
+
25
+ * @param address - The base58 encoded address of the Solana account.
26
+ */
27
+ export declare const signSolanaMessage: any;
28
+ //# sourceMappingURL=signSolanaMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSolanaMessage.d.ts","sourceRoot":"","sources":["../../src/operations/signSolanaMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;EAUlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;EAGhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
@@ -0,0 +1,38 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignSolanaMessageInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ address: Schema.String.pipe(T.PathParam()),
7
+ message: Schema.String,
8
+ }).pipe(T.Http({
9
+ method: "POST",
10
+ path: "/v2/solana/accounts/{address}/sign/message",
11
+ }));
12
+ // Output Schema
13
+ export const SignSolanaMessageOutput =
14
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
15
+ signature: Schema.String,
16
+ });
17
+ // The operation
18
+ /**
19
+ * Sign a message
20
+ *
21
+ * Signs an arbitrary message with the given Solana account.
22
+ * **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.
23
+ *
24
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
25
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
26
+ section of our Authentication docs for more details on how to generate your Wallet Token.
27
+
28
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
29
+ When included, duplicate requests with the same key will return identical responses.
30
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
31
+
32
+ * @param address - The base58 encoded address of the Solana account.
33
+ */
34
+ export const signSolanaMessage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
35
+ inputSchema: SignSolanaMessageInput,
36
+ outputSchema: SignSolanaMessageOutput,
37
+ }));
38
+ //# sourceMappingURL=signSolanaMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSolanaMessage.js","sourceRoot":"","sources":["../../src/operations/signSolanaMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CACF,CAAC,IAAI,CACJ,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4CAA4C;CACnD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SignSolanaTransactionInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly transaction: Schema.String;
5
+ }>;
6
+ export type SignSolanaTransactionInput = typeof SignSolanaTransactionInput.Type;
7
+ export declare const SignSolanaTransactionOutput: Schema.Struct<{
8
+ readonly signedTransaction: Schema.String;
9
+ }>;
10
+ export type SignSolanaTransactionOutput = typeof SignSolanaTransactionOutput.Type;
11
+ /**
12
+ * Sign a transaction
13
+ *
14
+ * Signs a transaction with the given Solana account.
15
+ * The unsigned transaction should be serialized into a byte array and then encoded as base64.
16
+ * **Transaction types**
17
+ * The following transaction types are supported:
18
+ * * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
19
+ * * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
20
+ * The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
21
+ *
22
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
23
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
24
+ section of our Authentication docs for more details on how to generate your Wallet Token.
25
+
26
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
27
+ When included, duplicate requests with the same key will return identical responses.
28
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
29
+
30
+ * @param address - The base58 encoded address of the Solana account.
31
+ */
32
+ export declare const signSolanaTransaction: any;
33
+ //# sourceMappingURL=signSolanaTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSolanaTransaction.d.ts","sourceRoot":"","sources":["../../src/operations/signSolanaTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;EASpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;EAGpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SignSolanaTransactionInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ address: Schema.String.pipe(T.PathParam()),
8
+ transaction: Schema.String,
9
+ }).pipe(T.Http({
10
+ method: "POST",
11
+ path: "/v2/solana/accounts/{address}/sign/transaction",
12
+ }));
13
+ // Output Schema
14
+ export const SignSolanaTransactionOutput =
15
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
+ signedTransaction: Schema.String,
17
+ });
18
+ // The operation
19
+ /**
20
+ * Sign a transaction
21
+ *
22
+ * Signs a transaction with the given Solana account.
23
+ * The unsigned transaction should be serialized into a byte array and then encoded as base64.
24
+ * **Transaction types**
25
+ * The following transaction types are supported:
26
+ * * [Legacy transactions](https://solana-labs.github.io/solana-web3.js/classes/Transaction.html)
27
+ * * [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
28
+ * The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
29
+ *
30
+ * @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
31
+ [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
32
+ section of our Authentication docs for more details on how to generate your Wallet Token.
33
+
34
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
35
+ When included, duplicate requests with the same key will return identical responses.
36
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
37
+
38
+ * @param address - The base58 encoded address of the Solana account.
39
+ */
40
+ export const signSolanaTransaction = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
41
+ inputSchema: SignSolanaTransactionInput,
42
+ outputSchema: SignSolanaTransactionOutput,
43
+ }));
44
+ //# sourceMappingURL=signSolanaTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signSolanaTransaction.js","sourceRoot":"","sources":["../../src/operations/signSolanaTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,MAAM;CACjC,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const SupportedX402PaymentKindsInput: Schema.Struct<{}>;
3
+ export type SupportedX402PaymentKindsInput = typeof SupportedX402PaymentKindsInput.Type;
4
+ export declare const SupportedX402PaymentKindsOutput: Schema.Struct<{
5
+ readonly kinds: Schema.$Array<Schema.Struct<{
6
+ readonly x402Version: Schema.Literals<readonly ["1", "2"]>;
7
+ readonly scheme: Schema.Literals<readonly ["exact"]>;
8
+ readonly network: Schema.Literals<readonly ["base-sepolia", "base", "solana-devnet", "solana", "polygon", "eip155:8453", "eip155:84532", "eip155:137", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"]>;
9
+ readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
10
+ }>>;
11
+ readonly extensions: Schema.$Array<Schema.String>;
12
+ readonly signers: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
13
+ }>;
14
+ export type SupportedX402PaymentKindsOutput = typeof SupportedX402PaymentKindsOutput.Type;
15
+ /**
16
+ * Get supported payment schemes and networks
17
+ *
18
+ * Get the supported x402 protocol payment schemes and networks that the facilitator is able to verify and settle payments for.
19
+ */
20
+ export declare const supportedX402PaymentKinds: any;
21
+ //# sourceMappingURL=supportedX402PaymentKinds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportedX402PaymentKinds.d.ts","sourceRoot":"","sources":["../../src/operations/supportedX402PaymentKinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,8BAA8B,mBAGxC,CAAC;AACJ,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C,eAAO,MAAM,+BAA+B;;;;;;;;;EAuBxC,CAAC;AACL,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,KAKrC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const SupportedX402PaymentKindsInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/v2/x402/supported" }));
7
+ // Output Schema
8
+ export const SupportedX402PaymentKindsOutput =
9
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10
+ kinds: Schema.Array(Schema.Struct({
11
+ x402Version: Schema.Literals(["1", "2"]),
12
+ scheme: Schema.Literals(["exact"]),
13
+ network: Schema.Literals([
14
+ "base-sepolia",
15
+ "base",
16
+ "solana-devnet",
17
+ "solana",
18
+ "polygon",
19
+ "eip155:8453",
20
+ "eip155:84532",
21
+ "eip155:137",
22
+ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
23
+ "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
24
+ ]),
25
+ extra: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
26
+ })),
27
+ extensions: Schema.Array(Schema.String),
28
+ signers: Schema.Record(Schema.String, Schema.Array(Schema.String)),
29
+ });
30
+ // The operation
31
+ /**
32
+ * Get supported payment schemes and networks
33
+ *
34
+ * Get the supported x402 protocol payment schemes and networks that the facilitator is able to verify and settle payments for.
35
+ */
36
+ export const supportedX402PaymentKinds = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
37
+ inputSchema: SupportedX402PaymentKindsInput,
38
+ outputSchema: SupportedX402PaymentKindsOutput,
39
+ }));
40
+ //# sourceMappingURL=supportedX402PaymentKinds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportedX402PaymentKinds.js","sourceRoot":"","sources":["../../src/operations/supportedX402PaymentKinds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChD,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CACtD,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACxC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;YACvB,cAAc;YACd,MAAM;YACN,eAAe;YACf,QAAQ;YACR,SAAS;YACT,aAAa;YACb,cAAc;YACd,YAAY;YACZ,yCAAyC;YACzC,yCAAyC;SAC1C,CAAC;QACF,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;KACrE,CAAC,CACH;IACD,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CACnE,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC3E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,+BAA+B;CAC9C,CAAC,CACH,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const UpdateEvmAccountInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly name: Schema.optional<Schema.String>;
5
+ readonly accountPolicy: Schema.optional<Schema.String>;
6
+ }>;
7
+ export type UpdateEvmAccountInput = typeof UpdateEvmAccountInput.Type;
8
+ export declare const UpdateEvmAccountOutput: Schema.Struct<{
9
+ readonly address: Schema.String;
10
+ readonly name: Schema.optional<Schema.String>;
11
+ readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
12
+ readonly createdAt: Schema.optional<Schema.String>;
13
+ readonly updatedAt: Schema.optional<Schema.String>;
14
+ }>;
15
+ export type UpdateEvmAccountOutput = typeof UpdateEvmAccountOutput.Type;
16
+ /**
17
+ * Update an EVM account
18
+ *
19
+ * Updates an existing EVM account. Use this to update the account's name or account-level policy.
20
+ *
21
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
22
+ When included, duplicate requests with the same key will return identical responses.
23
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
24
+
25
+ * @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
26
+ */
27
+ export declare const updateEvmAccount: any;
28
+ //# sourceMappingURL=updateEvmAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEvmAccount.d.ts","sourceRoot":"","sources":["../../src/operations/updateEvmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;EAIoC,CAAC;AACvE,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;EAQlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const UpdateEvmAccountInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ address: Schema.String.pipe(T.PathParam()),
7
+ name: Schema.optional(Schema.String),
8
+ accountPolicy: Schema.optional(Schema.String),
9
+ }).pipe(T.Http({ method: "PUT", path: "/v2/evm/accounts/{address}" }));
10
+ // Output Schema
11
+ export const UpdateEvmAccountOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ address: Schema.String,
13
+ name: Schema.optional(Schema.String),
14
+ policies: Schema.optional(Schema.Array(Schema.String)),
15
+ createdAt: Schema.optional(Schema.String),
16
+ updatedAt: Schema.optional(Schema.String),
17
+ });
18
+ // The operation
19
+ /**
20
+ * Update an EVM account
21
+ *
22
+ * Updates an existing EVM account. Use this to update the account's name or account-level policy.
23
+ *
24
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
25
+ When included, duplicate requests with the same key will return identical responses.
26
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
27
+
28
+ * @param address - The 0x-prefixed address of the EVM account. The address does not need to be checksummed.
29
+ */
30
+ export const updateEvmAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
31
+ inputSchema: UpdateEvmAccountInput,
32
+ outputSchema: UpdateEvmAccountOutput,
33
+ }));
34
+ //# sourceMappingURL=updateEvmAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEvmAccount.js","sourceRoot":"","sources":["../../src/operations/updateEvmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC9C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAGvE,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACtD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1C,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const UpdateEvmSmartAccountInput: Schema.Struct<{
3
+ readonly address: Schema.String;
4
+ readonly name: Schema.optional<Schema.String>;
5
+ }>;
6
+ export type UpdateEvmSmartAccountInput = typeof UpdateEvmSmartAccountInput.Type;
7
+ export declare const UpdateEvmSmartAccountOutput: Schema.Struct<{
8
+ readonly address: Schema.String;
9
+ readonly owners: Schema.$Array<Schema.String>;
10
+ readonly name: Schema.optional<Schema.String>;
11
+ readonly policies: Schema.optional<Schema.$Array<Schema.String>>;
12
+ readonly createdAt: Schema.optional<Schema.String>;
13
+ readonly updatedAt: Schema.optional<Schema.String>;
14
+ }>;
15
+ export type UpdateEvmSmartAccountOutput = typeof UpdateEvmSmartAccountOutput.Type;
16
+ /**
17
+ * Update an EVM Smart Account
18
+ *
19
+ * Updates an existing EVM smart account. Use this to update the smart account's name.
20
+ *
21
+ * @param address - The 0x-prefixed address of the EVM smart account. The address does not need to be checksummed.
22
+ */
23
+ export declare const updateEvmSmartAccount: any;
24
+ //# sourceMappingURL=updateEvmSmartAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEvmSmartAccount.d.ts","sourceRoot":"","sources":["../../src/operations/updateEvmSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;EAIuC,CAAC;AAC/E,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;;EAQpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}