@coinbase/cdp-sdk 1.29.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/_cjs/accounts/evm/networkCapabilities.js +101 -0
  3. package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
  4. package/_cjs/accounts/evm/toEvmServerAccount.js +11 -0
  5. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
  6. package/_cjs/accounts/evm/toEvmSmartAccount.js +11 -0
  7. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  8. package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js +10 -0
  9. package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  10. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +10 -0
  11. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  12. package/_cjs/accounts/solana/toSolanaAccount.js +11 -1
  13. package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
  14. package/_cjs/actions/evm/getUserOperation.js +1 -0
  15. package/_cjs/actions/evm/getUserOperation.js.map +1 -1
  16. package/_cjs/actions/evm/spend-permissions/account.use.js +33 -0
  17. package/_cjs/actions/evm/spend-permissions/account.use.js.map +1 -0
  18. package/_cjs/actions/evm/spend-permissions/smartAccount.use.js +35 -0
  19. package/_cjs/actions/evm/spend-permissions/smartAccount.use.js.map +1 -0
  20. package/_cjs/actions/evm/spend-permissions/types.js +3 -0
  21. package/_cjs/actions/evm/spend-permissions/types.js.map +1 -0
  22. package/_cjs/actions/solana/sendTransaction.js +1 -0
  23. package/_cjs/actions/solana/sendTransaction.js.map +1 -1
  24. package/_cjs/actions/solana/signTransaction.js +1 -0
  25. package/_cjs/actions/solana/signTransaction.js.map +1 -1
  26. package/_cjs/auth/hooks/axios/withAuth.js +3 -0
  27. package/_cjs/auth/hooks/axios/withAuth.js.map +1 -1
  28. package/_cjs/auth/utils/http.js +2 -1
  29. package/_cjs/auth/utils/http.js.map +1 -1
  30. package/_cjs/client/evm/evm.js +51 -1
  31. package/_cjs/client/evm/evm.js.map +1 -1
  32. package/_cjs/client/solana/solana.js.map +1 -1
  33. package/_cjs/index.js +5 -1
  34. package/_cjs/index.js.map +1 -1
  35. package/_cjs/openapi-client/cdpApiClient.js +37 -0
  36. package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
  37. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +29 -2
  38. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  39. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +35 -1
  40. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  41. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +160 -1
  42. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -1
  43. package/_cjs/openapi-client/generated/index.msw.js +1 -0
  44. package/_cjs/openapi-client/generated/index.msw.js.map +1 -1
  45. package/_cjs/openapi-client/generated/onramp/onramp.js +30 -0
  46. package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -0
  47. package/_cjs/openapi-client/generated/onramp/onramp.msw.js +98 -0
  48. package/_cjs/openapi-client/generated/onramp/onramp.msw.js.map +1 -0
  49. package/_cjs/openapi-client/index.js +1 -0
  50. package/_cjs/openapi-client/index.js.map +1 -1
  51. package/_cjs/spend-permissions/constants.js +716 -0
  52. package/_cjs/spend-permissions/constants.js.map +1 -0
  53. package/_cjs/spend-permissions/types.js +3 -0
  54. package/_cjs/spend-permissions/types.js.map +1 -0
  55. package/_cjs/version.js +1 -1
  56. package/_esm/accounts/evm/networkCapabilities.js +101 -0
  57. package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
  58. package/_esm/accounts/evm/toEvmServerAccount.js +11 -0
  59. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  60. package/_esm/accounts/evm/toEvmSmartAccount.js +11 -0
  61. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  62. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +10 -0
  63. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  64. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +10 -0
  65. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  66. package/_esm/accounts/solana/toSolanaAccount.js +11 -1
  67. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  68. package/_esm/actions/evm/getUserOperation.js +1 -0
  69. package/_esm/actions/evm/getUserOperation.js.map +1 -1
  70. package/_esm/actions/evm/spend-permissions/account.use.js +30 -0
  71. package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -0
  72. package/_esm/actions/evm/spend-permissions/smartAccount.use.js +32 -0
  73. package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -0
  74. package/_esm/actions/evm/spend-permissions/types.js +2 -0
  75. package/_esm/actions/evm/spend-permissions/types.js.map +1 -0
  76. package/_esm/actions/solana/sendTransaction.js +1 -0
  77. package/_esm/actions/solana/sendTransaction.js.map +1 -1
  78. package/_esm/actions/solana/signTransaction.js +1 -0
  79. package/_esm/actions/solana/signTransaction.js.map +1 -1
  80. package/_esm/auth/hooks/axios/withAuth.js +3 -0
  81. package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
  82. package/_esm/auth/utils/http.js +2 -1
  83. package/_esm/auth/utils/http.js.map +1 -1
  84. package/_esm/client/evm/evm.js +51 -1
  85. package/_esm/client/evm/evm.js.map +1 -1
  86. package/_esm/client/solana/solana.js +2 -2
  87. package/_esm/client/solana/solana.js.map +1 -1
  88. package/_esm/index.js +2 -1
  89. package/_esm/index.js.map +1 -1
  90. package/_esm/openapi-client/cdpApiClient.js +4 -0
  91. package/_esm/openapi-client/cdpApiClient.js.map +1 -1
  92. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +28 -1
  93. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  94. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +31 -0
  95. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  96. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +153 -0
  97. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -1
  98. package/_esm/openapi-client/generated/index.msw.js +1 -0
  99. package/_esm/openapi-client/generated/index.msw.js.map +1 -1
  100. package/_esm/openapi-client/generated/onramp/onramp.js +25 -0
  101. package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -0
  102. package/_esm/openapi-client/generated/onramp/onramp.msw.js +90 -0
  103. package/_esm/openapi-client/generated/onramp/onramp.msw.js.map +1 -0
  104. package/_esm/openapi-client/index.js +1 -0
  105. package/_esm/openapi-client/index.js.map +1 -1
  106. package/_esm/spend-permissions/constants.js +713 -0
  107. package/_esm/spend-permissions/constants.js.map +1 -0
  108. package/_esm/spend-permissions/types.js +2 -0
  109. package/_esm/spend-permissions/types.js.map +1 -0
  110. package/_esm/version.js +1 -1
  111. package/_types/accounts/evm/networkCapabilities.d.ts +101 -0
  112. package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
  113. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  114. package/_types/accounts/evm/toEvmSmartAccount.d.ts +1 -1
  115. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  116. package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
  117. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  118. package/_types/accounts/evm/types.d.ts +6 -0
  119. package/_types/accounts/evm/types.d.ts.map +1 -1
  120. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  121. package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
  122. package/_types/actions/evm/spend-permissions/account.use.d.ts +15 -0
  123. package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -0
  124. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts +15 -0
  125. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -0
  126. package/_types/actions/evm/spend-permissions/types.d.ts +13 -0
  127. package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -0
  128. package/_types/actions/evm/types.d.ts +75 -0
  129. package/_types/actions/evm/types.d.ts.map +1 -1
  130. package/_types/actions/solana/sendTransaction.d.ts +8 -2
  131. package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
  132. package/_types/actions/solana/signTransaction.d.ts +8 -2
  133. package/_types/actions/solana/signTransaction.d.ts.map +1 -1
  134. package/_types/actions/solana/types.d.ts +38 -3
  135. package/_types/actions/solana/types.d.ts.map +1 -1
  136. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
  137. package/_types/auth/utils/http.d.ts.map +1 -1
  138. package/_types/client/evm/evm.d.ts +19 -1
  139. package/_types/client/evm/evm.d.ts.map +1 -1
  140. package/_types/client/evm/evm.types.d.ts +49 -2
  141. package/_types/client/evm/evm.types.d.ts.map +1 -1
  142. package/_types/client/solana/solana.d.ts +5 -3
  143. package/_types/client/solana/solana.d.ts.map +1 -1
  144. package/_types/index.d.ts +3 -1
  145. package/_types/index.d.ts.map +1 -1
  146. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
  147. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +269 -5
  148. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  149. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +19 -1
  150. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  151. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +7 -1
  152. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +1 -1
  153. package/_types/openapi-client/generated/index.msw.d.ts +1 -0
  154. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -1
  155. package/_types/openapi-client/generated/onramp/onramp.d.ts +28 -0
  156. package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -0
  157. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts +8 -0
  158. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts.map +1 -0
  159. package/_types/openapi-client/index.d.ts +7 -0
  160. package/_types/openapi-client/index.d.ts.map +1 -1
  161. package/_types/spend-permissions/constants.d.ts +1357 -0
  162. package/_types/spend-permissions/constants.d.ts.map +1 -0
  163. package/_types/spend-permissions/types.d.ts +30 -0
  164. package/_types/spend-permissions/types.d.ts.map +1 -0
  165. package/_types/version.d.ts +1 -1
  166. package/accounts/evm/networkCapabilities.ts +101 -0
  167. package/accounts/evm/toEvmServerAccount.ts +15 -0
  168. package/accounts/evm/toEvmSmartAccount.ts +19 -4
  169. package/accounts/evm/toNetworkScopedEvmServerAccount.ts +15 -0
  170. package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +15 -0
  171. package/accounts/evm/types.ts +18 -0
  172. package/accounts/solana/toSolanaAccount.ts +17 -3
  173. package/actions/evm/getUserOperation.ts +1 -0
  174. package/actions/evm/spend-permissions/account.use.ts +48 -0
  175. package/actions/evm/spend-permissions/smartAccount.use.ts +49 -0
  176. package/actions/evm/spend-permissions/types.ts +13 -0
  177. package/actions/evm/types.ts +81 -0
  178. package/actions/solana/sendTransaction.ts +10 -2
  179. package/actions/solana/signTransaction.ts +10 -2
  180. package/actions/solana/types.ts +44 -2
  181. package/auth/hooks/axios/withAuth.ts +3 -0
  182. package/auth/utils/http.ts +2 -1
  183. package/client/evm/evm.ts +61 -1
  184. package/client/evm/evm.types.ts +55 -0
  185. package/client/solana/solana.ts +10 -5
  186. package/index.ts +6 -1
  187. package/openapi-client/cdpApiClient.ts +5 -0
  188. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +300 -5
  189. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +203 -0
  190. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +65 -0
  191. package/openapi-client/generated/index.msw.ts +1 -0
  192. package/openapi-client/generated/onramp/onramp.msw.ts +135 -0
  193. package/openapi-client/generated/onramp/onramp.ts +54 -0
  194. package/openapi-client/index.ts +1 -0
  195. package/package.json +2 -1
  196. package/spend-permissions/constants.ts +713 -0
  197. package/spend-permissions/types.ts +42 -0
  198. package/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../actions/solana/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAE5F;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAA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;IAEpF;;;;;;;;;;;;;;OAcG;IACH,2BAA2B,CACzB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"withAuth.d.ts","sourceRoot":"","sources":["../../../../auth/hooks/axios/withAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAKpD,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,sBAAsB,iBA+EnF"}
1
+ {"version":3,"file":"withAuth.d.ts","sourceRoot":"","sources":["../../../../auth/hooks/axios/withAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,OAAO,CAAC;AAKpD,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,sBAAsB,iBAkFnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../auth/utils/http.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCjC;AAeD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAYlF"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../auth/utils/http.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCjC;AAgBD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAYlF"}
@@ -1,4 +1,4 @@
1
- import { CreateServerAccountOptions, CreateSmartAccountOptions, CreateSwapQuoteOptions, CreateSwapQuoteResult, EvmClientInterface, ExportServerAccountOptions, GetOrCreateServerAccountOptions, GetOrCreateSmartAccountOptions, GetServerAccountOptions, GetSmartAccountOptions, GetSwapPriceOptions, GetSwapPriceResult, GetUserOperationOptions, ImportServerAccountOptions, ListServerAccountResult, ListServerAccountsOptions, ListSmartAccountResult, ListSmartAccountsOptions, PrepareUserOperationOptions, ServerAccount, SignatureResult, SignHashOptions, SignMessageOptions, SignTransactionOptions, SignTypedDataOptions, SmartAccount, SwapUnavailableResult, UpdateEvmAccountOptions, UpdateEvmSmartAccountOptions, UserOperation, WaitForUserOperationOptions } from "./evm.types.js";
1
+ import { CreateServerAccountOptions, CreateSmartAccountOptions, CreateSpendPermissionOptions, CreateSwapQuoteOptions, CreateSwapQuoteResult, EvmClientInterface, ExportServerAccountOptions, GetOrCreateServerAccountOptions, GetOrCreateSmartAccountOptions, GetServerAccountOptions, GetSmartAccountOptions, GetSwapPriceOptions, GetSwapPriceResult, GetUserOperationOptions, ImportServerAccountOptions, ListServerAccountResult, ListServerAccountsOptions, ListSmartAccountResult, ListSmartAccountsOptions, PrepareUserOperationOptions, ServerAccount, SignatureResult, SignHashOptions, SignMessageOptions, SignTransactionOptions, SignTypedDataOptions, SmartAccount, SwapUnavailableResult, UpdateEvmAccountOptions, UpdateEvmSmartAccountOptions, UserOperation, WaitForUserOperationOptions } from "./evm.types.js";
2
2
  import { ListTokenBalancesOptions, ListTokenBalancesResult } from "../../actions/evm/listTokenBalances.js";
3
3
  import { RequestFaucetOptions, RequestFaucetResult } from "../../actions/evm/requestFaucet.js";
4
4
  import { SendUserOperationOptions, SendUserOperationReturnType } from "../../actions/evm/sendUserOperation.js";
@@ -158,6 +158,24 @@ export declare class EvmClient implements EvmClientInterface {
158
158
  * ```
159
159
  */
160
160
  createSmartAccount(options: CreateSmartAccountOptions): Promise<SmartAccount>;
161
+ /**
162
+ * Creates a spend permission for a smart account.
163
+ *
164
+ * @param {CreateSpendPermissionOptions} options - Parameters for creating the spend permission.
165
+ * @param {SpendPermission} options.spendPermission - The spend permission to create.
166
+ * @param {string} [options.idempotencyKey] - The idempotency key to use for the spend permission.
167
+ *
168
+ * @returns A promise that resolves to the spend permission.
169
+ *
170
+ * @example
171
+ * ```ts
172
+ * const userOperation = await cdp.evm.createSpendPermission({
173
+ * spendPermission,
174
+ * network: "base-sepolia",
175
+ * });
176
+ * ```
177
+ */
178
+ createSpendPermission(options: CreateSpendPermissionOptions): Promise<UserOperation>;
161
179
  /**
162
180
  * Gets a CDP EVM account.
163
181
  *
@@ -1 +1 @@
1
- {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../client/evm/evm.ts"],"names":[],"mappings":"AAIA,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,OAAO,CAAC,eAAe,CAAC;IAkBhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAoB7E;;;;;;;;;;;OAWG;IACG,kBAAkB,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC;IAqBtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,oBAAoB,CACxB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,8BAA8B,CAAC;CAS3C"}
@@ -1,17 +1,18 @@
1
+ import { SpendPermission } from "../../spend-permissions/types.js";
1
2
  import type { EvmAccount as Account, EvmServerAccount as ServerAccount, EvmSmartAccount as SmartAccount } from "../../accounts/evm/types.js";
2
3
  import type { ListTokenBalancesOptions, ListTokenBalancesResult } from "../../actions/evm/listTokenBalances.js";
3
4
  import type { RequestFaucetOptions, RequestFaucetResult } from "../../actions/evm/requestFaucet.js";
4
5
  import type { TransactionResult, SendTransactionOptions } from "../../actions/evm/sendTransaction.js";
5
6
  import type { SendUserOperationOptions, SendUserOperationReturnType } from "../../actions/evm/sendUserOperation.js";
6
7
  import type { SmartAccountActions } from "../../actions/evm/types.js";
7
- import type { EvmSwapsNetwork, EvmUserOperationNetwork, EvmUserOperationStatus, OpenApiEvmMethods, UpdateEvmAccountBody as UpdateEvmAccount, UpdateEvmSmartAccountBody as UpdateEvmSmartAccount } from "../../openapi-client/index.js";
8
+ import type { EvmSwapsNetwork, EvmUserOperationNetwork, EvmUserOperationStatus, OpenApiEvmMethods, UpdateEvmAccountBody as UpdateEvmAccount, UpdateEvmSmartAccountBody as UpdateEvmSmartAccount, UserOperationReceipt } from "../../openapi-client/index.js";
8
9
  import type { Calls } from "../../types/calls.js";
9
10
  import type { Address, EIP712Message, Hex } from "../../types/misc.js";
10
11
  import type { WaitOptions } from "../../utils/wait.js";
11
12
  /**
12
13
  * The EvmClient type, where all OpenApiEvmMethods methods are wrapped.
13
14
  */
14
- export type EvmClientInterface = Omit<typeof OpenApiEvmMethods, "createEvmAccount" | "createEvmSmartAccount" | "importEvmAccount" | "exportEvmAccount" | "exportEvmAccountByName" | "getEvmAccount" | "getEvmAccountByName" | "getEvmSmartAccount" | "getEvmSmartAccountByName" | "getEvmSwapPrice" | "createEvmSwapQuote" | "getUserOperation" | "updateEvmAccount" | "listEvmAccounts" | "listEvmSmartAccounts" | "listEvmTokenBalances" | "prepareUserOperation" | "requestEvmFaucet" | "sendUserOperation" | "signEvmHash" | "signEvmMessage" | "signEvmTransaction" | "signEvmTypedData" | "sendEvmTransaction" | "signEvmTypedData" | "updateEvmAccount" | "exportEvmAccount" | "exportEvmAccountByName" | "updateEvmSmartAccount"> & {
15
+ export type EvmClientInterface = Omit<typeof OpenApiEvmMethods, "createEvmAccount" | "createEvmSmartAccount" | "createSpendPermission" | "listSpendPermissions" | "revokeSpendPermission" | "importEvmAccount" | "exportEvmAccount" | "exportEvmAccountByName" | "getEvmAccount" | "getEvmAccountByName" | "getEvmSmartAccount" | "getEvmSmartAccountByName" | "getEvmSwapPrice" | "createEvmSwapQuote" | "getUserOperation" | "updateEvmAccount" | "listEvmAccounts" | "listEvmSmartAccounts" | "listEvmTokenBalances" | "prepareUserOperation" | "requestEvmFaucet" | "sendUserOperation" | "signEvmHash" | "signEvmMessage" | "signEvmTransaction" | "signEvmTypedData" | "sendEvmTransaction" | "signEvmTypedData" | "updateEvmAccount" | "exportEvmAccount" | "exportEvmAccountByName" | "updateEvmSmartAccount"> & {
15
16
  createAccount: (options: CreateServerAccountOptions) => Promise<ServerAccount>;
16
17
  createSmartAccount: (options: CreateSmartAccountOptions) => Promise<SmartAccount>;
17
18
  importAccount: (options: ImportServerAccountOptions) => Promise<ServerAccount>;
@@ -189,6 +190,36 @@ export interface CreateSwapQuoteResult {
189
190
  */
190
191
  execute: (options?: ExecuteSwapQuoteOptions) => Promise<ExecuteSwapQuoteResult>;
191
192
  }
193
+ export interface CreateSpendPermissionOptions {
194
+ /** The spend permission. */
195
+ spendPermission: SpendPermission;
196
+ /** The network. */
197
+ network: EvmUserOperationNetwork;
198
+ /** The paymaster URL. */
199
+ paymasterUrl?: string;
200
+ /** The idempotency key. */
201
+ idempotencyKey?: string;
202
+ }
203
+ export interface ListSpendPermissionsOptions {
204
+ /** The address of the smart account. */
205
+ address: Address;
206
+ /** The page size to paginate through the spend permissions. */
207
+ pageSize?: number;
208
+ /** The page token to paginate through the spend permissions. */
209
+ pageToken?: string;
210
+ }
211
+ export interface RevokeSpendPermissionOptions {
212
+ /** The address of the smart account. */
213
+ address: Address;
214
+ /** The hash of the spend permission to revoke. */
215
+ permissionHash: Hex;
216
+ /** The network. */
217
+ network: EvmUserOperationNetwork;
218
+ /** The paymaster URL. */
219
+ paymasterUrl?: string;
220
+ /** The idempotency key. */
221
+ idempotencyKey?: string;
222
+ }
192
223
  /**
193
224
  * Options for getting a user operation.
194
225
  */
@@ -244,6 +275,10 @@ export interface UserOperation {
244
275
  * The hash of the transaction that included this particular user operation. This gets set after the user operation is broadcasted and the transaction is included in a block.
245
276
  */
246
277
  transactionHash?: Hex;
278
+ /**
279
+ * The receipts associated with the broadcasted user operation.
280
+ */
281
+ receipts?: UserOperationReceipt[];
247
282
  }
248
283
  /**
249
284
  * Options for creating an EVM server account.
@@ -315,6 +350,12 @@ export interface GetOrCreateSmartAccountOptions {
315
350
  name: string;
316
351
  /** The owner of the account. */
317
352
  owner: Account;
353
+ /**
354
+ * @deprecated Experimental! This method name will change, and is subject to other breaking changes.
355
+ *
356
+ * The flag to enable spend permission.
357
+ */
358
+ __experimental_enableSpendPermission?: boolean;
318
359
  }
319
360
  /**
320
361
  * Options for listing EVM accounts.
@@ -401,6 +442,12 @@ export interface CreateSmartAccountOptions {
401
442
  idempotencyKey?: string;
402
443
  /** The name of the account. */
403
444
  name?: string;
445
+ /**
446
+ * @deprecated Experimental! This method name will change, and is subject to other breaking changes.
447
+ *
448
+ * The flag to enable spend permission.
449
+ */
450
+ __experimental_enableSpendPermission?: boolean;
404
451
  }
405
452
  /**
406
453
  * Options for signing an EVM hash.
@@ -1 +1 @@
1
- {"version":3,"file":"evm.types.d.ts","sourceRoot":"","sources":["../../../client/evm/evm.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,OAAO,EACrB,gBAAgB,IAAI,aAAa,EACjC,eAAe,IAAI,YAAY,EAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,IAAI,gBAAgB,EACxC,yBAAyB,IAAI,qBAAqB,EACnD,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,OAAO,iBAAiB,EACtB,kBAAkB,GAClB,uBAAuB,GACvB,kBAAkB,GAClB,kBAAkB,GAClB,wBAAwB,GACxB,eAAe,GACf,qBAAqB,GACrB,oBAAoB,GACpB,0BAA0B,GAC1B,iBAAiB,GACjB,oBA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c,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1,5 +1,7 @@
1
- import { CreateAccountOptions, ExportAccountOptions, GetAccountOptions, GetOrCreateAccountOptions, ImportAccountOptions, ListAccountsOptions, ListAccountsResult, ListTokenBalancesOptions, ListTokenBalancesResult, RequestFaucetOptions, SendTransactionOptions, SignatureResult, SignMessageOptions, SignTransactionOptions, SolanaClientInterface, TransactionResult, UpdateSolanaAccountOptions } from "./solana.types.js";
1
+ import { CreateAccountOptions, ExportAccountOptions, GetAccountOptions, GetOrCreateAccountOptions, ImportAccountOptions, ListAccountsOptions, ListAccountsResult, ListTokenBalancesOptions, ListTokenBalancesResult, RequestFaucetOptions, SendTransactionOptions, SignatureResult, SignMessageOptions, SignTransactionOptions, SolanaClientInterface, UpdateSolanaAccountOptions } from "./solana.types.js";
2
2
  import { SolanaAccount } from "../../accounts/solana/types.js";
3
+ import { type SendTransactionResult } from "../../actions/solana/sendTransaction.js";
4
+ import { type SignTransactionResult } from "../../actions/solana/signTransaction.js";
3
5
  /**
4
6
  * The namespace containing all Solana methods.
5
7
  */
@@ -245,7 +247,7 @@ export declare class SolanaClient implements SolanaClientInterface {
245
247
  * });
246
248
  * ```
247
249
  */
248
- signTransaction(options: SignTransactionOptions): Promise<SignatureResult>;
250
+ signTransaction(options: SignTransactionOptions): Promise<SignTransactionResult>;
249
251
  /**
250
252
  * Updates a CDP Solana account.
251
253
  *
@@ -306,7 +308,7 @@ export declare class SolanaClient implements SolanaClientInterface {
306
308
  * });
307
309
  * ```
308
310
  */
309
- sendTransaction(options: SendTransactionOptions): Promise<TransactionResult>;
311
+ sendTransaction(options: SendTransactionOptions): Promise<SendTransactionResult>;
310
312
  /**
311
313
  * Lists the token balances for a Solana account.
312
314
  *
@@ -1 +1 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../client/solana/solana.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,yB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAkD1E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IA2BpE;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IA+BpF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyBlF;;;;;;;;;;;;;;;;;OAiBG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAS5E;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IASxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAStF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC;IAqBhF;;;;;;;;;;;;;;;;;OAiBG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAYtF;;;;;;;;;;;;;;;;OAgBG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAmC7F"}
package/_types/index.d.ts CHANGED
@@ -3,5 +3,7 @@ export type { EvmServerAccount, EvmSmartAccount } from "./accounts/evm/types.js"
3
3
  export type { Policy } from "./policies/types.js";
4
4
  export { CreatePolicyBodySchema, UpdatePolicyBodySchema, type CreatePolicyBody, type UpdatePolicyBody, } from "./policies/schema.js";
5
5
  export { NetworkError } from "./openapi-client/errors.js";
6
- export { parseEther } from "viem";
6
+ export type { SpendPermission } from "./spend-permissions/types.js";
7
+ export { SPEND_PERMISSION_MANAGER_ABI as spendPermissionManagerAbi, SPEND_PERMISSION_MANAGER_ADDRESS as spendPermissionManagerAddress, } from "./spend-permissions/constants.js";
8
+ export { parseEther, parseUnits } from "viem";
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACjF,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACjF,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,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oot":"","sources":["../../openapi-client/cdpApiClient.ts"],"names":[],"mappings":"AACA,OAAc,EAAiB,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAOjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF,eAAO,IAAI,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SACxE,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,UAAU,SAyB5C,CAAC;AA0BF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAU,CAAC,EAClC,QAAQ,kBAAkB,EAC1B,iBAAiB,MAAM,KACtB,OAAO,CAAC,CAAC,CAkLX,CAAC"}
@@ -58,7 +58,7 @@ export declare const ErrorType: {
58
58
  readonly guest_region_forbidden: "guest_region_forbidden";
59
59
  readonly guest_transaction_limit: "guest_transaction_limit";
60
60
  readonly guest_transaction_count: "guest_transaction_count";
61
- readonly guest_phone_number_verification_expired: "guest_phone_number_verification_expired";
61
+ readonly phone_number_verification_expired: "phone_number_verification_expired";
62
62
  };
63
63
  /**
64
64
  * An error response including the code for the type of error and a human-readable message describing the error.
@@ -170,6 +170,24 @@ export interface EvmCall {
170
170
  */
171
171
  data: string;
172
172
  }
173
+ /**
174
+ * The revert data if the user operation has reverted.
175
+ */
176
+ export interface UserOperationReceiptRevert {
177
+ /**
178
+ * The 0x-prefixed raw hex string.
179
+ * @pattern ^0x[0-9a-fA-F]*$
180
+ */
181
+ data: string;
182
+ /** Human-readable revert reason if able to decode. */
183
+ message: string;
184
+ }
185
+ /**
186
+ * The receipt that contains information about the execution of user operation.
187
+ */
188
+ export interface UserOperationReceipt {
189
+ revert?: UserOperationReceiptRevert;
190
+ }
173
191
  /**
174
192
  * The status of the user operation.
175
193
  */
@@ -198,6 +216,92 @@ export interface EvmUserOperation {
198
216
  * @pattern ^0x[0-9a-fA-F]{64}$|^$
199
217
  */
200
218
  transactionHash?: string;
219
+ /** The list of receipts associated with the user operation. */
220
+ receipts?: UserOperationReceipt[];
221
+ }
222
+ export interface CreateSpendPermissionRequest {
223
+ /** The network of the spend permission. */
224
+ network: string;
225
+ /**
226
+ * Smart account this spend permission is valid for.
227
+ * @pattern ^0x[a-fA-F0-9]{40}$
228
+ */
229
+ account: string;
230
+ /**
231
+ * Entity that can spend account's tokens.
232
+ * @pattern ^0x[a-fA-F0-9]{40}$
233
+ */
234
+ spender: string;
235
+ /**
236
+ * Token address (ERC-7528 native token address or ERC-20 contract).
237
+ * @pattern ^0x[a-fA-F0-9]{40}$
238
+ */
239
+ token: string;
240
+ /** Maximum allowed value to spend, in atomic units for the specified token, within each period. */
241
+ allowance: string;
242
+ /** Time duration for resetting used allowance on a recurring basis (seconds). */
243
+ period: string;
244
+ /** The start time for this spend permission, in Unix seconds. */
245
+ start: string;
246
+ /** The expiration time for this spend permission, in Unix seconds. */
247
+ end: string;
248
+ /** An arbitrary salt to differentiate unique spend permissions with otherwise identical data. */
249
+ salt?: string;
250
+ /** Arbitrary data to include in the permission. */
251
+ extraData?: string;
252
+ /** The paymaster URL of the spend permission. */
253
+ paymasterUrl?: string;
254
+ }
255
+ /**
256
+ * The core spend permission.
257
+ */
258
+ export interface SpendPermission {
259
+ /**
260
+ * Smart account this spend permission is valid for.
261
+ * @pattern ^0x[a-fA-F0-9]{40}$
262
+ */
263
+ account: string;
264
+ /**
265
+ * Entity that can spend account's tokens.
266
+ * @pattern ^0x[a-fA-F0-9]{40}$
267
+ */
268
+ spender: string;
269
+ /**
270
+ * Token address (ERC-7528 native token address or ERC-20 contract).
271
+ * @pattern ^0x[a-fA-F0-9]{40}$
272
+ */
273
+ token: string;
274
+ /** Maximum allowed value to spend, in atomic units for the specified token, within each period. */
275
+ allowance: string;
276
+ /** Time duration for resetting used allowance on a recurring basis (seconds). */
277
+ period?: string;
278
+ /** The start time for this spend permission, in Unix seconds. */
279
+ start?: string;
280
+ /** The expiration time for this spend permission, in Unix seconds. */
281
+ end?: string;
282
+ /** An arbitrary salt to differentiate unique spend permissions with otherwise identical data. */
283
+ salt?: string;
284
+ /** Arbitrary data to include in the permission. */
285
+ extraData?: string;
286
+ }
287
+ export interface SpendPermissionResponseObject {
288
+ permission?: SpendPermission;
289
+ /** Unique hash identifier for this permission. */
290
+ permissionHash?: string;
291
+ /** Whether this permission has been revoked. */
292
+ revoked?: boolean;
293
+ /** The UTC ISO 8601 timestamp when the permission was revoked (if applicable). */
294
+ revokedAt?: string;
295
+ /** The UTC ISO 8601 timestamp when the permission was created. */
296
+ createdAt?: string;
297
+ }
298
+ export interface RevokeSpendPermissionRequest {
299
+ /** The network of the spend permission. */
300
+ network: string;
301
+ /** The hash of the spend permission to revoke. */
302
+ permissionHash: string;
303
+ /** The paymaster URL of the spend permission. */
304
+ paymasterUrl?: string;
201
305
  }
202
306
  /**
203
307
  * The network on which to perform the swap.
@@ -206,6 +310,8 @@ export type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmSwapsNetw
206
310
  export declare const EvmSwapsNetwork: {
207
311
  readonly base: "base";
208
312
  readonly ethereum: "ethereum";
313
+ readonly arbitrum: "arbitrum";
314
+ readonly optimism: "optimism";
209
315
  };
210
316
  /**
211
317
  * The 0x-prefixed contract address of the token to receive.
@@ -995,7 +1101,7 @@ export declare const SolAddressCriterionType: {
995
1101
  readonly solAddress: "solAddress";
996
1102
  };
997
1103
  /**
998
- * The operator to use for the comparison. Each of the addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the addresses field will be on the right-hand side.
1104
+ * The operator to use for the comparison. Each of the native transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
999
1105
  */
1000
1106
  export type SolAddressCriterionOperator = (typeof SolAddressCriterionOperator)[keyof typeof SolAddressCriterionOperator];
1001
1107
  export declare const SolAddressCriterionOperator: {
@@ -1003,14 +1109,14 @@ export declare const SolAddressCriterionOperator: {
1003
1109
  readonly not_in: "not in";
1004
1110
  };
1005
1111
  /**
1006
- * The criterion for the recipient addresses of a Solana transaction.
1112
+ * The criterion for the recipient addresses of a Solana transaction's native transfer instruction.
1007
1113
  */
1008
1114
  export interface SolAddressCriterion {
1009
1115
  /** The type of criterion to use. This should be `solAddress`. */
1010
1116
  type: SolAddressCriterionType;
1011
- /** The Solana addresses that are compared to the list of addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array. */
1117
+ /** The Solana addresses that are compared to the list of native transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array. */
1012
1118
  addresses: string[];
1013
- /** The operator to use for the comparison. Each of the addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the addresses field will be on the right-hand side. */
1119
+ /** The operator to use for the comparison. Each of the native transfer recipient addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side. */
1014
1120
  operator: SolAddressCriterionOperator;
1015
1121
  }
1016
1122
  /**
@@ -1413,6 +1519,93 @@ export interface Transfer {
1413
1519
  /** The transaction hash or transaction signature of the transfer. */
1414
1520
  transactionHash?: string;
1415
1521
  }
1522
+ /**
1523
+ * The type of payment method to be used to complete the order.
1524
+ */
1525
+ export type OnrampPaymentMethodTypeId = (typeof OnrampPaymentMethodTypeId)[keyof typeof OnrampPaymentMethodTypeId];
1526
+ export declare const OnrampPaymentMethodTypeId: {
1527
+ readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
1528
+ };
1529
+ /**
1530
+ * The type of fee.
1531
+ */
1532
+ export type OnrampOrderFeeType = (typeof OnrampOrderFeeType)[keyof typeof OnrampOrderFeeType];
1533
+ export declare const OnrampOrderFeeType: {
1534
+ readonly FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK";
1535
+ readonly FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE";
1536
+ };
1537
+ /**
1538
+ * A fee associated with an order.
1539
+ */
1540
+ export interface OnrampOrderFee {
1541
+ /** The type of fee. */
1542
+ type: OnrampOrderFeeType;
1543
+ /** The amount of the fee. */
1544
+ amount: string;
1545
+ /** The currency of the fee. */
1546
+ currency: string;
1547
+ }
1548
+ /**
1549
+ * The status of an onramp order.
1550
+ */
1551
+ export type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
1552
+ export declare const OnrampOrderStatus: {
1553
+ readonly ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH";
1554
+ readonly ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT";
1555
+ readonly ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING";
1556
+ readonly ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED";
1557
+ readonly ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED";
1558
+ };
1559
+ /**
1560
+ * An Onramp order.
1561
+ */
1562
+ export interface OnrampOrder {
1563
+ /** The ID of the onramp order. */
1564
+ orderId: string;
1565
+ /** The total amount of fiat to be paid, inclusive of any fees. */
1566
+ paymentTotal: string;
1567
+ /** The amount of fiat to be converted to crypto. */
1568
+ paymentSubtotal: string;
1569
+ /** The fiat currency to be converted to crypto. */
1570
+ paymentCurrency: string;
1571
+ paymentMethod: OnrampPaymentMethodTypeId;
1572
+ /** The amount of crypto to be purchased. */
1573
+ purchaseAmount: string;
1574
+ /** The crypto currency to be purchased. */
1575
+ purchaseCurrency: string;
1576
+ /** The fees associated with the order. */
1577
+ fees: OnrampOrderFee[];
1578
+ /** The exchange rate used to convert fiat to crypto i.e. the crypto value of one fiat. */
1579
+ exchangeRate: string;
1580
+ /** The destination address to send the crypto to. */
1581
+ destinationAddress: string;
1582
+ /** The network to send the crypto on. */
1583
+ destinationNetwork: string;
1584
+ status: OnrampOrderStatus;
1585
+ /** The transaction hash of the order (only available once crypto has been sent). */
1586
+ txHash?: string;
1587
+ /** The date and time the order was created. */
1588
+ createdAt: string;
1589
+ /** The date and time the order was last updated. */
1590
+ updatedAt: string;
1591
+ }
1592
+ /**
1593
+ * The type of payment link.
1594
+ */
1595
+ export type OnrampPaymentLinkType = (typeof OnrampPaymentLinkType)[keyof typeof OnrampPaymentLinkType];
1596
+ export declare const OnrampPaymentLinkType: {
1597
+ readonly PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
1598
+ };
1599
+ /**
1600
+ * A payment link to pay for an order.
1601
+
1602
+ Please refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/onramp-overview) for details on how to integrate with the different payment link types.
1603
+ */
1604
+ export interface OnrampPaymentLink {
1605
+ /** The URL to the hosted widget the user should be redirected to. For certain payment link types you can append your own redirect_url query parameter to this URL to ensure the user is redirected back to your app after the widget completes. */
1606
+ url: string;
1607
+ paymentLinkType: OnrampPaymentLinkType;
1608
+ }
1416
1609
  /**
1417
1610
  * Internal server error.
1418
1611
  */
@@ -1437,6 +1630,14 @@ export type IdempotencyErrorResponse = Error;
1437
1630
  * The resource already exists.
1438
1631
  */
1439
1632
  export type AlreadyExistsErrorResponse = Error;
1633
+ /**
1634
+ * Unauthorized.
1635
+ */
1636
+ export type UnauthorizedErrorResponse = Error;
1637
+ /**
1638
+ * Rate limit exceeded.
1639
+ */
1640
+ export type RateLimitExceededResponse = Error;
1440
1641
  /**
1441
1642
  * A JWT signed using your Wallet Secret, encoded in base64. Refer to the
1442
1643
  [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
@@ -1503,6 +1704,10 @@ export declare const SendEvmTransactionBodyNetwork: {
1503
1704
  readonly "base-sepolia": "base-sepolia";
1504
1705
  readonly ethereum: "ethereum";
1505
1706
  readonly "ethereum-sepolia": "ethereum-sepolia";
1707
+ readonly avalanche: "avalanche";
1708
+ readonly polygon: "polygon";
1709
+ readonly optimism: "optimism";
1710
+ readonly arbitrum: "arbitrum";
1506
1711
  };
1507
1712
  export type SendEvmTransactionBody = {
1508
1713
  /** The network to send the transaction to. */
@@ -1620,6 +1825,21 @@ export type SendUserOperationBody = {
1620
1825
  /** The hex-encoded signature of the user operation. This should be a 65-byte signature consisting of the `r`, `s`, and `v` values of the ECDSA signature. Note that the `v` value should conform to the `personal_sign` standard, which means it should be 27 or 28. */
1621
1826
  signature: string;
1622
1827
  };
1828
+ export type ListSpendPermissionsParams = {
1829
+ /**
1830
+ * The number of spend permissions to return per page.
1831
+ */
1832
+ pageSize?: number;
1833
+ /**
1834
+ * The token for the next page of spend permissions. Will be empty if there are no more spend permissions to fetch.
1835
+ */
1836
+ pageToken?: string;
1837
+ };
1838
+ export type ListSpendPermissions200AllOf = {
1839
+ /** The spend permissions for the smart account. */
1840
+ spendPermissions: SpendPermissionResponseObject[];
1841
+ };
1842
+ export type ListSpendPermissions200 = ListSpendPermissions200AllOf & ListResponse;
1623
1843
  export type GetEvmSwapPriceParams = {
1624
1844
  network: EvmSwapsNetwork;
1625
1845
  toToken: ToToken;
@@ -1949,4 +2169,48 @@ export type CreatePaymentTransferQuoteBody = {
1949
2169
  export type CreatePaymentTransferQuote201 = {
1950
2170
  transfer: Transfer;
1951
2171
  };
2172
+ export type CreateOnrampOrderBody = {
2173
+ /** The timestamp of when the user acknowledged that by using Coinbase Onramp they are accepting the Coinbase Terms (https://www.coinbase.com/legal/guest-checkout/us), User Agreement (https://www.coinbase.com/legal/user_agreement), and Privacy Policy (https://www.coinbase.com/legal/privacy). */
2174
+ agreementAcceptedAt: string;
2175
+ /** The address the purchased crypto will be sent to. */
2176
+ destinationAddress: string;
2177
+ /** The name of the crypto network the purchased currency will be sent on.
2178
+
2179
+ Use the [Onramp Buy Options API](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-buy-options) to discover the supported networks for your user's location. */
2180
+ destinationNetwork: string;
2181
+ /** The verified email address of the user requesting the onramp transaction. This email must be verified by your app (via OTP) before being used with the Onramp API. */
2182
+ email: string;
2183
+ /** If true, this API will return a quote without creating any transaction. */
2184
+ isQuote?: boolean;
2185
+ /** Optional partner order reference ID. */
2186
+ partnerOrderRef?: string;
2187
+ /** A unique string that represents the user in your app. This can be used to link individual transactions together so you can retrieve the transaction history for your users. Prefix this string with “sandbox-” (e.g. "sandbox-user-1234") to perform a sandbox transaction which will allow you to test your integration without any real transfer of funds.
2188
+
2189
+ This value can be used with with [Onramp User Transactions API](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-onramp-transactions-by-id) to retrieve all transactions created by the user. */
2190
+ partnerUserRef: string;
2191
+ /** A string representing the amount of fiat the user wishes to pay in exchange for crypto. When using this parameter, the returned quote will be inclusive of fees i.e. the user will pay this exact amount of the payment currency. */
2192
+ paymentAmount?: string;
2193
+ /** The fiat currency to be converted to crypto. */
2194
+ paymentCurrency: string;
2195
+ paymentMethod: OnrampPaymentMethodTypeId;
2196
+ /** The phone number of the user requesting the onramp transaction in E.164 format. This phone number must be verified by your app (via OTP) before being used with the Onramp API.
2197
+
2198
+ Please refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api) for more details on phone number verification requirements and best practices. */
2199
+ phoneNumber: string;
2200
+ /** Timestamp of when the user's phone number was verified via OTP. User phone number must be verified every 60 days. If this timestamp is older than 60 days, an error will be returned. */
2201
+ phoneNumberVerifiedAt: string;
2202
+ /** A string representing the amount of crypto the user wishes to purchase. When using this parameter the returned quote will be exclusive of fees i.e. the user will receive this exact amount of the purchase currency. */
2203
+ purchaseAmount?: string;
2204
+ /** The ticker (e.g. `BTC`, `USDC`, `SOL`) or the Coinbase UUID (e.g. `d85dce9b-5b73-5c3c-8978-522ce1d1c1b4`) of the crypto asset to be purchased.
2205
+
2206
+ Use the [Onramp Buy Options API](https://docs.cdp.coinbase.com/api-reference/rest-api/onramp-offramp/get-buy-options) to discover the supported purchase currencies for your user's location. */
2207
+ purchaseCurrency: string;
2208
+ };
2209
+ export type CreateOnrampOrder201 = {
2210
+ order: OnrampOrder;
2211
+ paymentLink?: OnrampPaymentLink;
2212
+ };
2213
+ export type GetOnrampOrderById200 = {
2214
+ order: OnrampOrder;
2215
+ };
1952
2216
  //# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.d.ts.map