@distilled.cloud/coinbase 0.0.0 → 0.2.5-alpha2

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/lib/category.d.ts +5 -0
  2. package/lib/category.d.ts.map +1 -0
  3. package/lib/category.js +5 -0
  4. package/lib/category.js.map +1 -0
  5. package/lib/client.d.ts +45 -0
  6. package/lib/client.d.ts.map +1 -0
  7. package/lib/client.js +244 -0
  8. package/lib/client.js.map +1 -0
  9. package/lib/credentials.d.ts +32 -0
  10. package/lib/credentials.d.ts.map +1 -0
  11. package/lib/credentials.js +29 -0
  12. package/lib/credentials.js.map +1 -0
  13. package/lib/errors.d.ts +855 -0
  14. package/lib/errors.d.ts.map +1 -0
  15. package/lib/errors.js +466 -0
  16. package/lib/errors.js.map +1 -0
  17. package/lib/index.d.ts +16 -0
  18. package/lib/index.d.ts.map +1 -0
  19. package/lib/index.js +16 -0
  20. package/lib/index.js.map +1 -0
  21. package/lib/operations/addEndUserEvmAccount.d.ts +30 -0
  22. package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -0
  23. package/lib/operations/addEndUserEvmAccount.js +38 -0
  24. package/lib/operations/addEndUserEvmAccount.js.map +1 -0
  25. package/lib/operations/addEndUserEvmSmartAccount.d.ts +32 -0
  26. package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -0
  27. package/lib/operations/addEndUserEvmSmartAccount.js +43 -0
  28. package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -0
  29. package/lib/operations/addEndUserSolanaAccount.d.ts +30 -0
  30. package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -0
  31. package/lib/operations/addEndUserSolanaAccount.js +38 -0
  32. package/lib/operations/addEndUserSolanaAccount.js.map +1 -0
  33. package/lib/operations/createEndUser.d.ts +61 -0
  34. package/lib/operations/createEndUser.d.ts.map +1 -0
  35. package/lib/operations/createEndUser.js +67 -0
  36. package/lib/operations/createEndUser.js.map +1 -0
  37. package/lib/operations/createEvmAccount.d.ts +30 -0
  38. package/lib/operations/createEvmAccount.d.ts.map +1 -0
  39. package/lib/operations/createEvmAccount.js +36 -0
  40. package/lib/operations/createEvmAccount.js.map +1 -0
  41. package/lib/operations/createEvmEip7702Delegation.d.ts +34 -0
  42. package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -0
  43. package/lib/operations/createEvmEip7702Delegation.js +53 -0
  44. package/lib/operations/createEvmEip7702Delegation.js.map +1 -0
  45. package/lib/operations/createEvmSmartAccount.d.ts +27 -0
  46. package/lib/operations/createEvmSmartAccount.d.ts.map +1 -0
  47. package/lib/operations/createEvmSmartAccount.js +35 -0
  48. package/lib/operations/createEvmSmartAccount.js.map +1 -0
  49. package/lib/operations/createEvmSwapQuote.d.ts +26 -0
  50. package/lib/operations/createEvmSwapQuote.d.ts.map +1 -0
  51. package/lib/operations/createEvmSwapQuote.js +40 -0
  52. package/lib/operations/createEvmSwapQuote.js.map +1 -0
  53. package/lib/operations/createOnrampOrder.d.ts +58 -0
  54. package/lib/operations/createOnrampOrder.d.ts.map +1 -0
  55. package/lib/operations/createOnrampOrder.js +79 -0
  56. package/lib/operations/createOnrampOrder.js.map +1 -0
  57. package/lib/operations/createOnrampSession.d.ts +55 -0
  58. package/lib/operations/createOnrampSession.d.ts.map +1 -0
  59. package/lib/operations/createOnrampSession.js +70 -0
  60. package/lib/operations/createOnrampSession.js.map +1 -0
  61. package/lib/operations/createPolicy.d.ts +28 -0
  62. package/lib/operations/createPolicy.d.ts.map +1 -0
  63. package/lib/operations/createPolicy.js +34 -0
  64. package/lib/operations/createPolicy.js.map +1 -0
  65. package/lib/operations/createSolanaAccount.d.ts +30 -0
  66. package/lib/operations/createSolanaAccount.d.ts.map +1 -0
  67. package/lib/operations/createSolanaAccount.js +38 -0
  68. package/lib/operations/createSolanaAccount.js.map +1 -0
  69. package/lib/operations/createSpendPermission.d.ts +55 -0
  70. package/lib/operations/createSpendPermission.d.ts.map +1 -0
  71. package/lib/operations/createSpendPermission.js +93 -0
  72. package/lib/operations/createSpendPermission.js.map +1 -0
  73. package/lib/operations/createWebhookSubscription.d.ts +74 -0
  74. package/lib/operations/createWebhookSubscription.d.ts.map +1 -0
  75. package/lib/operations/createWebhookSubscription.js +82 -0
  76. package/lib/operations/createWebhookSubscription.js.map +1 -0
  77. package/lib/operations/deletePolicy.d.ts +20 -0
  78. package/lib/operations/deletePolicy.d.ts.map +1 -0
  79. package/lib/operations/deletePolicy.js +26 -0
  80. package/lib/operations/deletePolicy.js.map +1 -0
  81. package/lib/operations/deleteWebhookSubscription.d.ts +21 -0
  82. package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -0
  83. package/lib/operations/deleteWebhookSubscription.js +32 -0
  84. package/lib/operations/deleteWebhookSubscription.js.map +1 -0
  85. package/lib/operations/exportEvmAccount.d.ts +27 -0
  86. package/lib/operations/exportEvmAccount.d.ts.map +1 -0
  87. package/lib/operations/exportEvmAccount.js +33 -0
  88. package/lib/operations/exportEvmAccount.js.map +1 -0
  89. package/lib/operations/exportEvmAccountByName.d.ts +27 -0
  90. package/lib/operations/exportEvmAccountByName.d.ts.map +1 -0
  91. package/lib/operations/exportEvmAccountByName.js +35 -0
  92. package/lib/operations/exportEvmAccountByName.js.map +1 -0
  93. package/lib/operations/exportSolanaAccount.d.ts +27 -0
  94. package/lib/operations/exportSolanaAccount.d.ts.map +1 -0
  95. package/lib/operations/exportSolanaAccount.js +35 -0
  96. package/lib/operations/exportSolanaAccount.js.map +1 -0
  97. package/lib/operations/exportSolanaAccountByName.d.ts +27 -0
  98. package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -0
  99. package/lib/operations/exportSolanaAccountByName.js +38 -0
  100. package/lib/operations/exportSolanaAccountByName.js.map +1 -0
  101. package/lib/operations/getEndUser.d.ts +46 -0
  102. package/lib/operations/getEndUser.d.ts.map +1 -0
  103. package/lib/operations/getEndUser.js +52 -0
  104. package/lib/operations/getEndUser.js.map +1 -0
  105. package/lib/operations/getEvmAccount.d.ts +22 -0
  106. package/lib/operations/getEvmAccount.d.ts.map +1 -0
  107. package/lib/operations/getEvmAccount.js +28 -0
  108. package/lib/operations/getEvmAccount.js.map +1 -0
  109. package/lib/operations/getEvmAccountByName.d.ts +22 -0
  110. package/lib/operations/getEvmAccountByName.d.ts.map +1 -0
  111. package/lib/operations/getEvmAccountByName.js +30 -0
  112. package/lib/operations/getEvmAccountByName.js.map +1 -0
  113. package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +22 -0
  114. package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -0
  115. package/lib/operations/getEvmEip7702DelegationOperationById.js +48 -0
  116. package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -0
  117. package/lib/operations/getEvmSmartAccount.d.ts +23 -0
  118. package/lib/operations/getEvmSmartAccount.d.ts.map +1 -0
  119. package/lib/operations/getEvmSmartAccount.js +31 -0
  120. package/lib/operations/getEvmSmartAccount.js.map +1 -0
  121. package/lib/operations/getEvmSmartAccountByName.d.ts +23 -0
  122. package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -0
  123. package/lib/operations/getEvmSmartAccountByName.js +31 -0
  124. package/lib/operations/getEvmSmartAccountByName.js.map +1 -0
  125. package/lib/operations/getEvmSwapPrice.d.ts +21 -0
  126. package/lib/operations/getEvmSwapPrice.d.ts.map +1 -0
  127. package/lib/operations/getEvmSwapPrice.js +27 -0
  128. package/lib/operations/getEvmSwapPrice.js.map +1 -0
  129. package/lib/operations/getOnrampOrderById.d.ts +39 -0
  130. package/lib/operations/getOnrampOrderById.d.ts.map +1 -0
  131. package/lib/operations/getOnrampOrderById.js +56 -0
  132. package/lib/operations/getOnrampOrderById.js.map +1 -0
  133. package/lib/operations/getOnrampUserLimits.d.ts +24 -0
  134. package/lib/operations/getOnrampUserLimits.d.ts.map +1 -0
  135. package/lib/operations/getOnrampUserLimits.js +38 -0
  136. package/lib/operations/getOnrampUserLimits.js.map +1 -0
  137. package/lib/operations/getPolicyById.d.ts +23 -0
  138. package/lib/operations/getPolicyById.d.ts.map +1 -0
  139. package/lib/operations/getPolicyById.js +29 -0
  140. package/lib/operations/getPolicyById.js.map +1 -0
  141. package/lib/operations/getSQLGrammar.d.ts +14 -0
  142. package/lib/operations/getSQLGrammar.d.ts.map +1 -0
  143. package/lib/operations/getSQLGrammar.js +20 -0
  144. package/lib/operations/getSQLGrammar.js.map +1 -0
  145. package/lib/operations/getSolanaAccount.d.ts +22 -0
  146. package/lib/operations/getSolanaAccount.d.ts.map +1 -0
  147. package/lib/operations/getSolanaAccount.js +28 -0
  148. package/lib/operations/getSolanaAccount.js.map +1 -0
  149. package/lib/operations/getSolanaAccountByName.d.ts +22 -0
  150. package/lib/operations/getSolanaAccountByName.d.ts.map +1 -0
  151. package/lib/operations/getSolanaAccountByName.js +30 -0
  152. package/lib/operations/getSolanaAccountByName.js.map +1 -0
  153. package/lib/operations/getUserOperation.d.ts +39 -0
  154. package/lib/operations/getUserOperation.d.ts.map +1 -0
  155. package/lib/operations/getUserOperation.js +66 -0
  156. package/lib/operations/getUserOperation.js.map +1 -0
  157. package/lib/operations/getWebhookSubscription.d.ts +37 -0
  158. package/lib/operations/getWebhookSubscription.d.ts.map +1 -0
  159. package/lib/operations/getWebhookSubscription.js +48 -0
  160. package/lib/operations/getWebhookSubscription.js.map +1 -0
  161. package/lib/operations/importEndUser.d.ts +56 -0
  162. package/lib/operations/importEndUser.d.ts.map +1 -0
  163. package/lib/operations/importEndUser.js +62 -0
  164. package/lib/operations/importEndUser.js.map +1 -0
  165. package/lib/operations/importEvmAccount.d.ts +31 -0
  166. package/lib/operations/importEvmAccount.d.ts.map +1 -0
  167. package/lib/operations/importEvmAccount.js +37 -0
  168. package/lib/operations/importEvmAccount.js.map +1 -0
  169. package/lib/operations/importSolanaAccount.d.ts +30 -0
  170. package/lib/operations/importSolanaAccount.d.ts.map +1 -0
  171. package/lib/operations/importSolanaAccount.js +38 -0
  172. package/lib/operations/importSolanaAccount.js.map +1 -0
  173. package/lib/operations/index.d.ts +74 -0
  174. package/lib/operations/index.d.ts.map +1 -0
  175. package/lib/operations/index.js +74 -0
  176. package/lib/operations/index.js.map +1 -0
  177. package/lib/operations/listDataTokenBalances.d.ts +37 -0
  178. package/lib/operations/listDataTokenBalances.d.ts.map +1 -0
  179. package/lib/operations/listDataTokenBalances.js +48 -0
  180. package/lib/operations/listDataTokenBalances.js.map +1 -0
  181. package/lib/operations/listEndUsers.d.ts +53 -0
  182. package/lib/operations/listEndUsers.d.ts.map +1 -0
  183. package/lib/operations/listEndUsers.js +59 -0
  184. package/lib/operations/listEndUsers.js.map +1 -0
  185. package/lib/operations/listEvmAccounts.d.ts +28 -0
  186. package/lib/operations/listEvmAccounts.d.ts.map +1 -0
  187. package/lib/operations/listEvmAccounts.js +34 -0
  188. package/lib/operations/listEvmAccounts.js.map +1 -0
  189. package/lib/operations/listEvmSmartAccounts.d.ts +29 -0
  190. package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -0
  191. package/lib/operations/listEvmSmartAccounts.js +37 -0
  192. package/lib/operations/listEvmSmartAccounts.js.map +1 -0
  193. package/lib/operations/listEvmTokenBalances.d.ts +37 -0
  194. package/lib/operations/listEvmTokenBalances.d.ts.map +1 -0
  195. package/lib/operations/listEvmTokenBalances.js +48 -0
  196. package/lib/operations/listEvmTokenBalances.js.map +1 -0
  197. package/lib/operations/listPolicies.d.ts +31 -0
  198. package/lib/operations/listPolicies.d.ts.map +1 -0
  199. package/lib/operations/listPolicies.js +37 -0
  200. package/lib/operations/listPolicies.js.map +1 -0
  201. package/lib/operations/listSolanaAccounts.d.ts +29 -0
  202. package/lib/operations/listSolanaAccounts.d.ts.map +1 -0
  203. package/lib/operations/listSolanaAccounts.js +37 -0
  204. package/lib/operations/listSolanaAccounts.js.map +1 -0
  205. package/lib/operations/listSolanaTokenBalances.d.ts +36 -0
  206. package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -0
  207. package/lib/operations/listSolanaTokenBalances.js +47 -0
  208. package/lib/operations/listSolanaTokenBalances.js.map +1 -0
  209. package/lib/operations/listSpendPermissions.d.ts +40 -0
  210. package/lib/operations/listSpendPermissions.d.ts.map +1 -0
  211. package/lib/operations/listSpendPermissions.js +60 -0
  212. package/lib/operations/listSpendPermissions.js.map +1 -0
  213. package/lib/operations/listTokensForAccount.d.ts +23 -0
  214. package/lib/operations/listTokensForAccount.d.ts.map +1 -0
  215. package/lib/operations/listTokensForAccount.js +34 -0
  216. package/lib/operations/listTokensForAccount.js.map +1 -0
  217. package/lib/operations/listWebhookSubscriptions.d.ts +42 -0
  218. package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -0
  219. package/lib/operations/listWebhookSubscriptions.js +50 -0
  220. package/lib/operations/listWebhookSubscriptions.js.map +1 -0
  221. package/lib/operations/prepareAndSendUserOperation.d.ts +53 -0
  222. package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -0
  223. package/lib/operations/prepareAndSendUserOperation.js +93 -0
  224. package/lib/operations/prepareAndSendUserOperation.js.map +1 -0
  225. package/lib/operations/prepareUserOperation.d.ts +46 -0
  226. package/lib/operations/prepareUserOperation.d.ts.map +1 -0
  227. package/lib/operations/prepareUserOperation.js +86 -0
  228. package/lib/operations/prepareUserOperation.js.map +1 -0
  229. package/lib/operations/requestEvmFaucet.d.ts +22 -0
  230. package/lib/operations/requestEvmFaucet.d.ts.map +1 -0
  231. package/lib/operations/requestEvmFaucet.js +32 -0
  232. package/lib/operations/requestEvmFaucet.js.map +1 -0
  233. package/lib/operations/requestSolanaFaucet.d.ts +21 -0
  234. package/lib/operations/requestSolanaFaucet.d.ts.map +1 -0
  235. package/lib/operations/requestSolanaFaucet.js +29 -0
  236. package/lib/operations/requestSolanaFaucet.js.map +1 -0
  237. package/lib/operations/revokeSpendPermission.d.ts +48 -0
  238. package/lib/operations/revokeSpendPermission.d.ts.map +1 -0
  239. package/lib/operations/revokeSpendPermission.js +86 -0
  240. package/lib/operations/revokeSpendPermission.js.map +1 -0
  241. package/lib/operations/runSQLQuery.d.ts +47 -0
  242. package/lib/operations/runSQLQuery.d.ts.map +1 -0
  243. package/lib/operations/runSQLQuery.js +74 -0
  244. package/lib/operations/runSQLQuery.js.map +1 -0
  245. package/lib/operations/sendEvmTransaction.d.ts +44 -0
  246. package/lib/operations/sendEvmTransaction.d.ts.map +1 -0
  247. package/lib/operations/sendEvmTransaction.js +64 -0
  248. package/lib/operations/sendEvmTransaction.js.map +1 -0
  249. package/lib/operations/sendSolanaTransaction.d.ts +38 -0
  250. package/lib/operations/sendSolanaTransaction.d.ts.map +1 -0
  251. package/lib/operations/sendSolanaTransaction.js +46 -0
  252. package/lib/operations/sendSolanaTransaction.js.map +1 -0
  253. package/lib/operations/sendUserOperation.d.ts +43 -0
  254. package/lib/operations/sendUserOperation.d.ts.map +1 -0
  255. package/lib/operations/sendUserOperation.js +71 -0
  256. package/lib/operations/sendUserOperation.js.map +1 -0
  257. package/lib/operations/settleX402Payment.d.ts +23 -0
  258. package/lib/operations/settleX402Payment.d.ts.map +1 -0
  259. package/lib/operations/settleX402Payment.js +79 -0
  260. package/lib/operations/settleX402Payment.js.map +1 -0
  261. package/lib/operations/signEvmHash.d.ts +27 -0
  262. package/lib/operations/signEvmHash.d.ts.map +1 -0
  263. package/lib/operations/signEvmHash.js +33 -0
  264. package/lib/operations/signEvmHash.js.map +1 -0
  265. package/lib/operations/signEvmMessage.d.ts +28 -0
  266. package/lib/operations/signEvmMessage.d.ts.map +1 -0
  267. package/lib/operations/signEvmMessage.js +34 -0
  268. package/lib/operations/signEvmMessage.js.map +1 -0
  269. package/lib/operations/signEvmTransaction.d.ts +29 -0
  270. package/lib/operations/signEvmTransaction.d.ts.map +1 -0
  271. package/lib/operations/signEvmTransaction.js +40 -0
  272. package/lib/operations/signEvmTransaction.js.map +1 -0
  273. package/lib/operations/signEvmTypedData.d.ts +36 -0
  274. package/lib/operations/signEvmTypedData.d.ts.map +1 -0
  275. package/lib/operations/signEvmTypedData.js +45 -0
  276. package/lib/operations/signEvmTypedData.js.map +1 -0
  277. package/lib/operations/signSolanaMessage.d.ts +28 -0
  278. package/lib/operations/signSolanaMessage.d.ts.map +1 -0
  279. package/lib/operations/signSolanaMessage.js +38 -0
  280. package/lib/operations/signSolanaMessage.js.map +1 -0
  281. package/lib/operations/signSolanaTransaction.d.ts +33 -0
  282. package/lib/operations/signSolanaTransaction.d.ts.map +1 -0
  283. package/lib/operations/signSolanaTransaction.js +44 -0
  284. package/lib/operations/signSolanaTransaction.js.map +1 -0
  285. package/lib/operations/supportedX402PaymentKinds.d.ts +21 -0
  286. package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -0
  287. package/lib/operations/supportedX402PaymentKinds.js +40 -0
  288. package/lib/operations/supportedX402PaymentKinds.js.map +1 -0
  289. package/lib/operations/updateEvmAccount.d.ts +28 -0
  290. package/lib/operations/updateEvmAccount.d.ts.map +1 -0
  291. package/lib/operations/updateEvmAccount.js +34 -0
  292. package/lib/operations/updateEvmAccount.js.map +1 -0
  293. package/lib/operations/updateEvmSmartAccount.d.ts +24 -0
  294. package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -0
  295. package/lib/operations/updateEvmSmartAccount.js +32 -0
  296. package/lib/operations/updateEvmSmartAccount.js.map +1 -0
  297. package/lib/operations/updatePolicy.d.ts +29 -0
  298. package/lib/operations/updatePolicy.d.ts.map +1 -0
  299. package/lib/operations/updatePolicy.js +35 -0
  300. package/lib/operations/updatePolicy.js.map +1 -0
  301. package/lib/operations/updateSolanaAccount.d.ts +28 -0
  302. package/lib/operations/updateSolanaAccount.d.ts.map +1 -0
  303. package/lib/operations/updateSolanaAccount.js +36 -0
  304. package/lib/operations/updateSolanaAccount.js.map +1 -0
  305. package/lib/operations/updateWebhookSubscription.d.ts +47 -0
  306. package/lib/operations/updateWebhookSubscription.d.ts.map +1 -0
  307. package/lib/operations/updateWebhookSubscription.js +58 -0
  308. package/lib/operations/updateWebhookSubscription.js.map +1 -0
  309. package/lib/operations/validateEndUserAccessToken.d.ts +44 -0
  310. package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -0
  311. package/lib/operations/validateEndUserAccessToken.js +52 -0
  312. package/lib/operations/validateEndUserAccessToken.js.map +1 -0
  313. package/lib/operations/verifyX402Payment.d.ts +21 -0
  314. package/lib/operations/verifyX402Payment.d.ts.map +1 -0
  315. package/lib/operations/verifyX402Payment.js +72 -0
  316. package/lib/operations/verifyX402Payment.js.map +1 -0
  317. package/lib/retry.d.ts +22 -0
  318. package/lib/retry.d.ts.map +1 -0
  319. package/lib/retry.js +21 -0
  320. package/lib/retry.js.map +1 -0
  321. package/lib/sensitive.d.ts +5 -0
  322. package/lib/sensitive.d.ts.map +1 -0
  323. package/lib/sensitive.js +5 -0
  324. package/lib/sensitive.js.map +1 -0
  325. package/lib/traits.d.ts +5 -0
  326. package/lib/traits.d.ts.map +1 -0
  327. package/lib/traits.js +5 -0
  328. package/lib/traits.js.map +1 -0
  329. package/package.json +82 -9
  330. package/src/category.ts +4 -0
  331. package/src/client.ts +290 -0
  332. package/src/credentials.ts +65 -0
  333. package/src/errors.ts +694 -0
  334. package/src/index.ts +15 -0
  335. package/src/operations/addEndUserEvmAccount.ts +44 -0
  336. package/src/operations/addEndUserEvmSmartAccount.ts +53 -0
  337. package/src/operations/addEndUserSolanaAccount.ts +46 -0
  338. package/src/operations/createEndUser.ts +87 -0
  339. package/src/operations/createEvmAccount.ts +42 -0
  340. package/src/operations/createEvmEip7702Delegation.ts +63 -0
  341. package/src/operations/createEvmSmartAccount.ts +42 -0
  342. package/src/operations/createEvmSwapQuote.ts +44 -0
  343. package/src/operations/createOnrampOrder.ts +89 -0
  344. package/src/operations/createOnrampSession.ts +80 -0
  345. package/src/operations/createPolicy.ts +38 -0
  346. package/src/operations/createSolanaAccount.ts +42 -0
  347. package/src/operations/createSpendPermission.ts +110 -0
  348. package/src/operations/createWebhookSubscription.ts +92 -0
  349. package/src/operations/deletePolicy.ts +32 -0
  350. package/src/operations/deleteWebhookSubscription.ts +42 -0
  351. package/src/operations/exportEvmAccount.ts +39 -0
  352. package/src/operations/exportEvmAccountByName.ts +45 -0
  353. package/src/operations/exportSolanaAccount.ts +41 -0
  354. package/src/operations/exportSolanaAccountByName.ts +48 -0
  355. package/src/operations/getEndUser.ts +68 -0
  356. package/src/operations/getEvmAccount.ts +32 -0
  357. package/src/operations/getEvmAccountByName.ts +34 -0
  358. package/src/operations/getEvmEip7702DelegationOperationById.ts +56 -0
  359. package/src/operations/getEvmSmartAccount.ts +35 -0
  360. package/src/operations/getEvmSmartAccountByName.ts +41 -0
  361. package/src/operations/getEvmSwapPrice.ts +31 -0
  362. package/src/operations/getOnrampOrderById.ts +62 -0
  363. package/src/operations/getOnrampUserLimits.ts +44 -0
  364. package/src/operations/getPolicyById.ts +35 -0
  365. package/src/operations/getSQLGrammar.ts +26 -0
  366. package/src/operations/getSolanaAccount.ts +34 -0
  367. package/src/operations/getSolanaAccountByName.ts +40 -0
  368. package/src/operations/getUserOperation.ts +82 -0
  369. package/src/operations/getWebhookSubscription.ts +60 -0
  370. package/src/operations/importEndUser.ts +78 -0
  371. package/src/operations/importEvmAccount.ts +43 -0
  372. package/src/operations/importSolanaAccount.ts +42 -0
  373. package/src/operations/index.ts +73 -0
  374. package/src/operations/listDataTokenBalances.ts +59 -0
  375. package/src/operations/listEndUsers.ts +77 -0
  376. package/src/operations/listEvmAccounts.ts +40 -0
  377. package/src/operations/listEvmSmartAccounts.ts +45 -0
  378. package/src/operations/listEvmTokenBalances.ts +58 -0
  379. package/src/operations/listPolicies.ts +43 -0
  380. package/src/operations/listSolanaAccounts.ts +43 -0
  381. package/src/operations/listSolanaTokenBalances.ts +59 -0
  382. package/src/operations/listSpendPermissions.ts +70 -0
  383. package/src/operations/listTokensForAccount.ts +42 -0
  384. package/src/operations/listWebhookSubscriptions.ts +62 -0
  385. package/src/operations/prepareAndSendUserOperation.ts +113 -0
  386. package/src/operations/prepareUserOperation.ts +104 -0
  387. package/src/operations/requestEvmFaucet.ts +38 -0
  388. package/src/operations/requestSolanaFaucet.ts +33 -0
  389. package/src/operations/revokeSpendPermission.ts +103 -0
  390. package/src/operations/runSQLQuery.ts +92 -0
  391. package/src/operations/sendEvmTransaction.ts +70 -0
  392. package/src/operations/sendSolanaTransaction.ts +55 -0
  393. package/src/operations/sendUserOperation.ts +87 -0
  394. package/src/operations/settleX402Payment.ts +87 -0
  395. package/src/operations/signEvmHash.ts +37 -0
  396. package/src/operations/signEvmMessage.ts +40 -0
  397. package/src/operations/signEvmTransaction.ts +46 -0
  398. package/src/operations/signEvmTypedData.ts +53 -0
  399. package/src/operations/signSolanaMessage.ts +46 -0
  400. package/src/operations/signSolanaTransaction.ts +53 -0
  401. package/src/operations/supportedX402PaymentKinds.ts +52 -0
  402. package/src/operations/updateEvmAccount.ts +40 -0
  403. package/src/operations/updateEvmSmartAccount.ts +39 -0
  404. package/src/operations/updatePolicy.ts +41 -0
  405. package/src/operations/updateSolanaAccount.ts +40 -0
  406. package/src/operations/updateWebhookSubscription.ts +70 -0
  407. package/src/operations/validateEndUserAccessToken.ts +74 -0
  408. package/src/operations/verifyX402Payment.ts +80 -0
  409. package/src/retry.ts +37 -0
  410. package/src/sensitive.ts +4 -0
  411. package/src/traits.ts +4 -0
  412. package/index.js +0 -2
@@ -0,0 +1,32 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const UpdateEvmSmartAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ address: Schema.String.pipe(T.PathParam()),
8
+ name: Schema.optional(Schema.String),
9
+ }).pipe(T.Http({ method: "PUT", path: "/v2/evm/smart-accounts/{address}" }));
10
+ // Output Schema
11
+ export const UpdateEvmSmartAccountOutput =
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ address: Schema.String,
14
+ owners: Schema.Array(Schema.String),
15
+ name: Schema.optional(Schema.String),
16
+ policies: Schema.optional(Schema.Array(Schema.String)),
17
+ createdAt: Schema.optional(Schema.String),
18
+ updatedAt: Schema.optional(Schema.String),
19
+ });
20
+ // The operation
21
+ /**
22
+ * Update an EVM Smart Account
23
+ *
24
+ * Updates an existing EVM smart account. Use this to update the smart account's name.
25
+ *
26
+ * @param address - The 0x-prefixed address of the EVM smart account. The address does not need to be checksummed.
27
+ */
28
+ export const updateEvmSmartAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
29
+ inputSchema: UpdateEvmSmartAccountInput,
30
+ outputSchema: UpdateEvmSmartAccountOutput,
31
+ }));
32
+ //# sourceMappingURL=updateEvmSmartAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEvmSmartAccount.js","sourceRoot":"","sources":["../../src/operations/updateEvmSmartAccount.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,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACrC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC,CAAC,CAAC;AAG/E,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,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,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;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,29 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const UpdatePolicyInput: Schema.Struct<{
3
+ readonly policyId: Schema.String;
4
+ readonly description: Schema.optional<Schema.String>;
5
+ readonly rules: Schema.$Array<Schema.Unknown>;
6
+ }>;
7
+ export type UpdatePolicyInput = typeof UpdatePolicyInput.Type;
8
+ export declare const UpdatePolicyOutput: Schema.Struct<{
9
+ readonly id: Schema.String;
10
+ readonly description: Schema.optional<Schema.String>;
11
+ readonly scope: Schema.Literals<readonly ["project", "account"]>;
12
+ readonly rules: Schema.$Array<Schema.Unknown>;
13
+ readonly createdAt: Schema.String;
14
+ readonly updatedAt: Schema.String;
15
+ }>;
16
+ export type UpdatePolicyOutput = typeof UpdatePolicyOutput.Type;
17
+ /**
18
+ * Update a policy
19
+ *
20
+ * Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it.
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 policyId - The ID of the policy to update.
27
+ */
28
+ export declare const updatePolicy: any;
29
+ //# sourceMappingURL=updatePolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatePolicy.d.ts","sourceRoot":"","sources":["../../src/operations/updatePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iBAAiB;;;;EAM7B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,KAGtB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const UpdatePolicyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ policyId: Schema.String.pipe(T.PathParam()),
7
+ description: Schema.optional(Schema.String),
8
+ rules: Schema.Array(Schema.Unknown),
9
+ }).pipe(T.Http({ method: "PUT", path: "/v2/policy-engine/policies/{policyId}" }));
10
+ // Output Schema
11
+ export const UpdatePolicyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ id: Schema.String,
13
+ description: Schema.optional(Schema.String),
14
+ scope: Schema.Literals(["project", "account"]),
15
+ rules: Schema.Array(Schema.Unknown),
16
+ createdAt: Schema.String,
17
+ updatedAt: Schema.String,
18
+ });
19
+ // The operation
20
+ /**
21
+ * Update a policy
22
+ *
23
+ * Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it.
24
+ *
25
+ * @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
26
+ When included, duplicate requests with the same key will return identical responses.
27
+ Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
28
+
29
+ * @param policyId - The ID of the policy to update.
30
+ */
31
+ export const updatePolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
32
+ inputSchema: UpdatePolicyInput,
33
+ outputSchema: UpdatePolicyOutput,
34
+ }));
35
+ //# sourceMappingURL=updatePolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updatePolicy.js","sourceRoot":"","sources":["../../src/operations/updatePolicy.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,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;CACpC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC,CACzE,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,kBAAkB;CACjC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const UpdateSolanaAccountInput: 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 UpdateSolanaAccountInput = typeof UpdateSolanaAccountInput.Type;
8
+ export declare const UpdateSolanaAccountOutput: 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 UpdateSolanaAccountOutput = typeof UpdateSolanaAccountOutput.Type;
16
+ /**
17
+ * Update a Solana account
18
+ *
19
+ * Updates an existing Solana 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 base58 encoded address of the Solana account.
26
+ */
27
+ export declare const updateSolanaAccount: any;
28
+ //# sourceMappingURL=updateSolanaAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateSolanaAccount.d.ts","sourceRoot":"","sources":["../../src/operations/updateSolanaAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;;EAKsC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;EAOlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
@@ -0,0 +1,36 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const UpdateSolanaAccountInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ address: Schema.String.pipe(T.PathParam()),
8
+ name: Schema.optional(Schema.String),
9
+ accountPolicy: Schema.optional(Schema.String),
10
+ }).pipe(T.Http({ method: "PUT", path: "/v2/solana/accounts/{address}" }));
11
+ // Output Schema
12
+ export const UpdateSolanaAccountOutput =
13
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14
+ address: Schema.String,
15
+ name: Schema.optional(Schema.String),
16
+ policies: Schema.optional(Schema.Array(Schema.String)),
17
+ createdAt: Schema.optional(Schema.String),
18
+ updatedAt: Schema.optional(Schema.String),
19
+ });
20
+ // The operation
21
+ /**
22
+ * Update a Solana account
23
+ *
24
+ * Updates an existing Solana account. Use this to update the account's name or account-level policy.
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 const updateSolanaAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
33
+ inputSchema: UpdateSolanaAccountInput,
34
+ outputSchema: UpdateSolanaAccountOutput,
35
+ }));
36
+ //# sourceMappingURL=updateSolanaAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateSolanaAccount.js","sourceRoot":"","sources":["../../src/operations/updateSolanaAccount.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,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,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,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAG5E,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,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,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,47 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const UpdateWebhookSubscriptionInput: Schema.Struct<{
3
+ readonly subscriptionId: Schema.String;
4
+ readonly description: Schema.optional<Schema.Struct<{}>>;
5
+ readonly eventTypes: Schema.$Array<Schema.String>;
6
+ readonly isEnabled: Schema.Boolean;
7
+ readonly target: Schema.Struct<{
8
+ readonly url: Schema.Struct<{}>;
9
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
10
+ }>;
11
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
12
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
13
+ }>;
14
+ export type UpdateWebhookSubscriptionInput = typeof UpdateWebhookSubscriptionInput.Type;
15
+ export declare const UpdateWebhookSubscriptionOutput: Schema.Struct<{
16
+ readonly createdAt: Schema.String;
17
+ readonly description: Schema.optional<Schema.Struct<{}>>;
18
+ readonly eventTypes: Schema.$Array<Schema.String>;
19
+ readonly isEnabled: Schema.Boolean;
20
+ readonly metadata: Schema.optional<Schema.Struct<{
21
+ readonly secret: Schema.optional<Schema.String>;
22
+ }>>;
23
+ readonly secret: Schema.String;
24
+ readonly subscriptionId: Schema.String;
25
+ readonly target: Schema.Struct<{
26
+ readonly url: Schema.Struct<{}>;
27
+ readonly headers: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
28
+ }>;
29
+ readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
30
+ }>;
31
+ export type UpdateWebhookSubscriptionOutput = typeof UpdateWebhookSubscriptionOutput.Type;
32
+ /**
33
+ * Update webhook subscription
34
+ *
35
+ * Update an existing webhook subscription's configuration including
36
+ * event types, target URL, filtering criteria, and enabled status.
37
+ * All required fields must be provided, even if they are not being changed.
38
+ * ### Common Updates
39
+ * - Change target URL or headers
40
+ * - Add/remove event type filters
41
+ * - Update multi-label filtering criteria
42
+ * - Enable/disable subscription
43
+ *
44
+ * @param subscriptionId - Unique identifier for the webhook subscription.
45
+ */
46
+ export declare const updateWebhookSubscription: any;
47
+ //# sourceMappingURL=updateWebhookSubscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateWebhookSubscription.d.ts","sourceRoot":"","sources":["../../src/operations/updateWebhookSubscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,8BAA8B;;;;;;;;;;;EAiBxC,CAAC;AACJ,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAkBxC,CAAC;AACL,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,KAKrC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const UpdateWebhookSubscriptionInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ subscriptionId: Schema.String.pipe(T.PathParam()),
8
+ description: Schema.optional(Schema.Struct({})),
9
+ eventTypes: Schema.Array(Schema.String),
10
+ isEnabled: Schema.Boolean,
11
+ target: Schema.Struct({
12
+ url: Schema.Struct({}),
13
+ headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
14
+ }),
15
+ metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
16
+ labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
17
+ }).pipe(T.Http({
18
+ method: "PUT",
19
+ path: "/v2/data/webhooks/subscriptions/{subscriptionId}",
20
+ }));
21
+ // Output Schema
22
+ export const UpdateWebhookSubscriptionOutput =
23
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24
+ createdAt: Schema.String,
25
+ description: Schema.optional(Schema.Struct({})),
26
+ eventTypes: Schema.Array(Schema.String),
27
+ isEnabled: Schema.Boolean,
28
+ metadata: Schema.optional(Schema.Struct({
29
+ secret: Schema.optional(Schema.String),
30
+ })),
31
+ secret: Schema.String,
32
+ subscriptionId: Schema.String,
33
+ target: Schema.Struct({
34
+ url: Schema.Struct({}),
35
+ headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
36
+ }),
37
+ labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
38
+ });
39
+ // The operation
40
+ /**
41
+ * Update webhook subscription
42
+ *
43
+ * Update an existing webhook subscription's configuration including
44
+ * event types, target URL, filtering criteria, and enabled status.
45
+ * All required fields must be provided, even if they are not being changed.
46
+ * ### Common Updates
47
+ * - Change target URL or headers
48
+ * - Add/remove event type filters
49
+ * - Update multi-label filtering criteria
50
+ * - Enable/disable subscription
51
+ *
52
+ * @param subscriptionId - Unique identifier for the webhook subscription.
53
+ */
54
+ export const updateWebhookSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
55
+ inputSchema: UpdateWebhookSubscriptionInput,
56
+ outputSchema: UpdateWebhookSubscriptionOutput,
57
+ }));
58
+ //# sourceMappingURL=updateWebhookSubscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateWebhookSubscription.js","sourceRoot":"","sources":["../../src/operations/updateWebhookSubscription.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;IACxC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,OAAO;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACtE,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACrE,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,kDAAkD;CACzD,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,OAAO;IACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACvC,CAAC,CACH;IACD,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACtE,CAAC;IACF,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CACrE,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;GAaG;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,44 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const ValidateEndUserAccessTokenInput: Schema.Struct<{
3
+ readonly accessToken: Schema.String;
4
+ }>;
5
+ export type ValidateEndUserAccessTokenInput = typeof ValidateEndUserAccessTokenInput.Type;
6
+ export declare const ValidateEndUserAccessTokenOutput: Schema.Struct<{
7
+ readonly userId: Schema.String;
8
+ readonly authenticationMethods: Schema.$Array<Schema.Unknown>;
9
+ readonly mfaMethods: Schema.optional<Schema.Struct<{
10
+ readonly enrollmentPromptedAt: Schema.optional<Schema.String>;
11
+ readonly totp: Schema.optional<Schema.Struct<{
12
+ readonly enrolledAt: Schema.String;
13
+ }>>;
14
+ readonly sms: Schema.optional<Schema.Struct<{
15
+ readonly enrolledAt: Schema.String;
16
+ }>>;
17
+ }>>;
18
+ readonly evmAccounts: Schema.$Array<Schema.String>;
19
+ readonly evmAccountObjects: Schema.$Array<Schema.Struct<{
20
+ readonly address: Schema.String;
21
+ readonly createdAt: Schema.String;
22
+ }>>;
23
+ readonly evmSmartAccounts: Schema.$Array<Schema.String>;
24
+ readonly evmSmartAccountObjects: Schema.$Array<Schema.Struct<{
25
+ readonly address: Schema.String;
26
+ readonly ownerAddresses: Schema.$Array<Schema.String>;
27
+ readonly createdAt: Schema.String;
28
+ }>>;
29
+ readonly solanaAccounts: Schema.$Array<Schema.String>;
30
+ readonly solanaAccountObjects: Schema.$Array<Schema.Struct<{
31
+ readonly address: Schema.String;
32
+ readonly createdAt: Schema.String;
33
+ }>>;
34
+ readonly createdAt: Schema.String;
35
+ }>;
36
+ export type ValidateEndUserAccessTokenOutput = typeof ValidateEndUserAccessTokenOutput.Type;
37
+ /**
38
+ * Validate end user access token
39
+ *
40
+ * Validates the end user's access token and returns the end user's information. Returns an error if the access token is invalid or expired.
41
+ * This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
42
+ */
43
+ export declare const validateEndUserAccessToken: any;
44
+ //# sourceMappingURL=validateEndUserAccessToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateEndUserAccessToken.d.ts","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,+BAA+B;;EAKzC,CAAC;AACJ,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CzC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,KAKtC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const ValidateEndUserAccessTokenInput =
6
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ accessToken: Schema.String,
8
+ }).pipe(T.Http({ method: "POST", path: "/v2/end-users/auth/validate-token" }));
9
+ // Output Schema
10
+ export const ValidateEndUserAccessTokenOutput =
11
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ userId: Schema.String,
13
+ authenticationMethods: Schema.Array(Schema.Unknown),
14
+ mfaMethods: Schema.optional(Schema.Struct({
15
+ enrollmentPromptedAt: Schema.optional(Schema.String),
16
+ totp: Schema.optional(Schema.Struct({
17
+ enrolledAt: Schema.String,
18
+ })),
19
+ sms: Schema.optional(Schema.Struct({
20
+ enrolledAt: Schema.String,
21
+ })),
22
+ })),
23
+ evmAccounts: Schema.Array(Schema.String),
24
+ evmAccountObjects: Schema.Array(Schema.Struct({
25
+ address: Schema.String,
26
+ createdAt: Schema.String,
27
+ })),
28
+ evmSmartAccounts: Schema.Array(Schema.String),
29
+ evmSmartAccountObjects: Schema.Array(Schema.Struct({
30
+ address: Schema.String,
31
+ ownerAddresses: Schema.Array(Schema.String),
32
+ createdAt: Schema.String,
33
+ })),
34
+ solanaAccounts: Schema.Array(Schema.String),
35
+ solanaAccountObjects: Schema.Array(Schema.Struct({
36
+ address: Schema.String,
37
+ createdAt: Schema.String,
38
+ })),
39
+ createdAt: Schema.String,
40
+ });
41
+ // The operation
42
+ /**
43
+ * Validate end user access token
44
+ *
45
+ * Validates the end user's access token and returns the end user's information. Returns an error if the access token is invalid or expired.
46
+ * This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.
47
+ */
48
+ export const validateEndUserAccessToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49
+ inputSchema: ValidateEndUserAccessTokenInput,
50
+ outputSchema: ValidateEndUserAccessTokenOutput,
51
+ }));
52
+ //# sourceMappingURL=validateEndUserAccessToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateEndUserAccessToken.js","sourceRoot":"","sources":["../../src/operations/validateEndUserAccessToken.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,+BAA+B;AAC1C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,EAAE,CAAC,CACtE,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC;AAC3C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACpD,IAAI,EAAE,MAAM,CAAC,QAAQ,CACnB,MAAM,CAAC,MAAM,CAAC;YACZ,UAAU,EAAE,MAAM,CAAC,MAAM;SAC1B,CAAC,CACH;QACD,GAAG,EAAE,MAAM,CAAC,QAAQ,CAClB,MAAM,CAAC,MAAM,CAAC;YACZ,UAAU,EAAE,MAAM,CAAC,MAAM;SAC1B,CAAC,CACH;KACF,CAAC,CACH;IACD,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAC7B,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,sBAAsB,EAAE,MAAM,CAAC,KAAK,CAClC,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAChC,MAAM,CAAC,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,SAAS,EAAE,MAAM,CAAC,MAAM;KACzB,CAAC,CACH;IACD,SAAS,EAAE,MAAM,CAAC,MAAM;CACzB,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC5E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,gCAAgC;CAC/C,CAAC,CACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const VerifyX402PaymentInput: Schema.Struct<{
3
+ readonly x402Version: Schema.Literals<readonly ["1", "2"]>;
4
+ readonly paymentPayload: Schema.Unknown;
5
+ readonly paymentRequirements: Schema.Unknown;
6
+ }>;
7
+ export type VerifyX402PaymentInput = typeof VerifyX402PaymentInput.Type;
8
+ export declare const VerifyX402PaymentOutput: Schema.Struct<{
9
+ readonly isValid: Schema.Boolean;
10
+ readonly invalidReason: Schema.optional<Schema.Literals<readonly ["insufficient_funds", "invalid_scheme", "invalid_network", "invalid_x402_version", "invalid_payment_requirements", "invalid_payload", "invalid_exact_evm_payload_authorization_value", "invalid_exact_evm_payload_authorization_value_too_low", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_typed_data_message", "invalid_exact_evm_payload_authorization_from_address_kyt", "invalid_exact_evm_payload_authorization_to_address_kyt", "invalid_exact_evm_payload_signature", "invalid_exact_evm_payload_signature_address", "invalid_exact_evm_permit2_payload_allowance_required", "invalid_exact_evm_permit2_payload_signature", "invalid_exact_evm_permit2_payload_deadline", "invalid_exact_evm_permit2_payload_valid_after", "invalid_exact_evm_permit2_payload_spender", "invalid_exact_evm_permit2_payload_recipient", "invalid_exact_evm_permit2_payload_amount", "invalid_exact_svm_payload_transaction", "invalid_exact_svm_payload_transaction_amount_mismatch", "invalid_exact_svm_payload_transaction_create_ata_instruction", "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee", "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset", "invalid_exact_svm_payload_transaction_instructions", "invalid_exact_svm_payload_transaction_instructions_length", "invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction", "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction", "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high", "invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked", "invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked", "invalid_exact_svm_payload_transaction_not_a_transfer_instruction", "invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata", "invalid_exact_svm_payload_transaction_receiver_ata_not_found", "invalid_exact_svm_payload_transaction_sender_ata_not_found", "invalid_exact_svm_payload_transaction_simulation_failed", "invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata", "invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts", "invalid_exact_svm_payload_transaction_fee_payer_transferring_funds", "unknown_error"]>>;
11
+ readonly invalidMessage: Schema.optional<Schema.String>;
12
+ readonly payer: Schema.String;
13
+ }>;
14
+ export type VerifyX402PaymentOutput = typeof VerifyX402PaymentOutput.Type;
15
+ /**
16
+ * Verify a payment
17
+ *
18
+ * Verify an x402 protocol payment with a specific scheme and network.
19
+ */
20
+ export declare const verifyX402Payment: any;
21
+ //# sourceMappingURL=verifyX402Payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyX402Payment.d.ts","sourceRoot":"","sources":["../../src/operations/verifyX402Payment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;;EAMwB,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;EAoDhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
@@ -0,0 +1,72 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+ // Input Schema
5
+ export const VerifyX402PaymentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6
+ x402Version: Schema.Literals(["1", "2"]),
7
+ paymentPayload: Schema.Unknown,
8
+ paymentRequirements: Schema.Unknown,
9
+ }).pipe(T.Http({ method: "POST", path: "/v2/x402/verify" }));
10
+ // Output Schema
11
+ export const VerifyX402PaymentOutput =
12
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
13
+ isValid: Schema.Boolean,
14
+ invalidReason: Schema.optional(Schema.Literals([
15
+ "insufficient_funds",
16
+ "invalid_scheme",
17
+ "invalid_network",
18
+ "invalid_x402_version",
19
+ "invalid_payment_requirements",
20
+ "invalid_payload",
21
+ "invalid_exact_evm_payload_authorization_value",
22
+ "invalid_exact_evm_payload_authorization_value_too_low",
23
+ "invalid_exact_evm_payload_authorization_valid_after",
24
+ "invalid_exact_evm_payload_authorization_valid_before",
25
+ "invalid_exact_evm_payload_authorization_typed_data_message",
26
+ "invalid_exact_evm_payload_authorization_from_address_kyt",
27
+ "invalid_exact_evm_payload_authorization_to_address_kyt",
28
+ "invalid_exact_evm_payload_signature",
29
+ "invalid_exact_evm_payload_signature_address",
30
+ "invalid_exact_evm_permit2_payload_allowance_required",
31
+ "invalid_exact_evm_permit2_payload_signature",
32
+ "invalid_exact_evm_permit2_payload_deadline",
33
+ "invalid_exact_evm_permit2_payload_valid_after",
34
+ "invalid_exact_evm_permit2_payload_spender",
35
+ "invalid_exact_evm_permit2_payload_recipient",
36
+ "invalid_exact_evm_permit2_payload_amount",
37
+ "invalid_exact_svm_payload_transaction",
38
+ "invalid_exact_svm_payload_transaction_amount_mismatch",
39
+ "invalid_exact_svm_payload_transaction_create_ata_instruction",
40
+ "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee",
41
+ "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset",
42
+ "invalid_exact_svm_payload_transaction_instructions",
43
+ "invalid_exact_svm_payload_transaction_instructions_length",
44
+ "invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction",
45
+ "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction",
46
+ "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high",
47
+ "invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked",
48
+ "invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked",
49
+ "invalid_exact_svm_payload_transaction_not_a_transfer_instruction",
50
+ "invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata",
51
+ "invalid_exact_svm_payload_transaction_receiver_ata_not_found",
52
+ "invalid_exact_svm_payload_transaction_sender_ata_not_found",
53
+ "invalid_exact_svm_payload_transaction_simulation_failed",
54
+ "invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata",
55
+ "invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts",
56
+ "invalid_exact_svm_payload_transaction_fee_payer_transferring_funds",
57
+ "unknown_error",
58
+ ])),
59
+ invalidMessage: Schema.optional(Schema.String),
60
+ payer: Schema.String,
61
+ });
62
+ // The operation
63
+ /**
64
+ * Verify a payment
65
+ *
66
+ * Verify an x402 protocol payment with a specific scheme and network.
67
+ */
68
+ export const verifyX402Payment = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
69
+ inputSchema: VerifyX402PaymentInput,
70
+ outputSchema: VerifyX402PaymentOutput,
71
+ }));
72
+ //# sourceMappingURL=verifyX402Payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyX402Payment.js","sourceRoot":"","sources":["../../src/operations/verifyX402Payment.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,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,OAAO;IAC9B,mBAAmB,EAAE,MAAM,CAAC,OAAO;CACpC,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAG5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,OAAO;IACvB,aAAa,EAAE,MAAM,CAAC,QAAQ,CAC5B,MAAM,CAAC,QAAQ,CAAC;QACd,oBAAoB;QACpB,gBAAgB;QAChB,iBAAiB;QACjB,sBAAsB;QACtB,8BAA8B;QAC9B,iBAAiB;QACjB,+CAA+C;QAC/C,uDAAuD;QACvD,qDAAqD;QACrD,sDAAsD;QACtD,4DAA4D;QAC5D,0DAA0D;QAC1D,wDAAwD;QACxD,qCAAqC;QACrC,6CAA6C;QAC7C,sDAAsD;QACtD,6CAA6C;QAC7C,4CAA4C;QAC5C,+CAA+C;QAC/C,2CAA2C;QAC3C,6CAA6C;QAC7C,0CAA0C;QAC1C,uCAAuC;QACvC,uDAAuD;QACvD,8DAA8D;QAC9D,8EAA8E;QAC9E,8EAA8E;QAC9E,oDAAoD;QACpD,2DAA2D;QAC3D,8EAA8E;QAC9E,8EAA8E;QAC9E,uFAAuF;QACvF,kFAAkF;QAClF,mFAAmF;QACnF,kEAAkE;QAClE,kEAAkE;QAClE,8DAA8D;QAC9D,4DAA4D;QAC5D,yDAAyD;QACzD,iEAAiE;QACjE,kFAAkF;QAClF,oEAAoE;QACpE,eAAe;KAChB,CAAC,CACH;IACD,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;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"}
package/lib/retry.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Coinbase retry configuration.
3
+ */
4
+ import * as Effect from "effect/Effect";
5
+ import * as ServiceMap from "effect/ServiceMap";
6
+ export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
7
+ import type { Policy } from "@distilled.cloud/core/retry";
8
+ declare const Retry_base: ServiceMap.ServiceClass<Retry, "CoinbaseRetry", Policy>;
9
+ /**
10
+ * Context tag for configuring retry behavior of Coinbase API calls.
11
+ */
12
+ export declare class Retry extends Retry_base {
13
+ }
14
+ /**
15
+ * Provides a custom retry policy to all Coinbase API calls.
16
+ */
17
+ export declare const policy: (optionsOrFactory: Policy) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
18
+ /**
19
+ * Disables all automatic retries.
20
+ */
21
+ export declare const none: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Retry>>;
22
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;;AAE1D;;GAEG;AACH,qBAAa,KAAM,SAAQ,UAE1B;CAAG;AAEJ;;GAEG;AACH,eAAO,MAAM,MAAM,iHACqC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,IAAI,mFAEhB,CAAC"}
package/lib/retry.js ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Coinbase retry configuration.
3
+ */
4
+ import * as Effect from "effect/Effect";
5
+ import * as Layer from "effect/Layer";
6
+ import * as ServiceMap from "effect/ServiceMap";
7
+ export { makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
8
+ /**
9
+ * Context tag for configuring retry behavior of Coinbase API calls.
10
+ */
11
+ export class Retry extends ServiceMap.Service()("CoinbaseRetry") {
12
+ }
13
+ /**
14
+ * Provides a custom retry policy to all Coinbase API calls.
15
+ */
16
+ export const policy = (optionsOrFactory) => Effect.provide(Layer.succeed(Retry, optionsOrFactory));
17
+ /**
18
+ * Disables all automatic retries.
19
+ */
20
+ export const none = Effect.provide(Layer.succeed(Retry, { while: () => false }));
21
+ //# sourceMappingURL=retry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAIL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAGrC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,UAAU,CAAC,OAAO,EAAiB,CAC5D,eAAe,CAChB;CAAG;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,gBAAwB,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAC7C,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-export sensitive data schemas from sdk-core.
3
+ */
4
+ export * from "@distilled.cloud/core/sensitive";
5
+ //# sourceMappingURL=sensitive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sensitive.d.ts","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-export sensitive data schemas from sdk-core.
3
+ */
4
+ export * from "@distilled.cloud/core/sensitive";
5
+ //# sourceMappingURL=sensitive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sensitive.js","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-export the shared traits system from sdk-core.
3
+ */
4
+ export * from "@distilled.cloud/core/traits";
5
+ //# sourceMappingURL=traits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traits.d.ts","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8BAA8B,CAAC"}
package/lib/traits.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Re-export the shared traits system from sdk-core.
3
+ */
4
+ export * from "@distilled.cloud/core/traits";
5
+ //# sourceMappingURL=traits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traits.js","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,8BAA8B,CAAC"}