@coinbase/cdp-sdk 1.29.0 → 1.30.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 (206) hide show
  1. package/CHANGELOG.md +10 -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/generated/coinbaseDeveloperPlatformAPIs.schemas.js +41 -3
  36. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  37. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +14 -1
  38. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  39. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +72 -1
  40. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -1
  41. package/_cjs/openapi-client/generated/index.msw.js +2 -0
  42. package/_cjs/openapi-client/generated/index.msw.js.map +1 -1
  43. package/_cjs/openapi-client/generated/onramp/onramp.js +30 -0
  44. package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -0
  45. package/_cjs/openapi-client/generated/onramp/onramp.msw.js +98 -0
  46. package/_cjs/openapi-client/generated/onramp/onramp.msw.js.map +1 -0
  47. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js +15 -0
  48. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -0
  49. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +69 -0
  50. package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +1 -0
  51. package/_cjs/openapi-client/index.js +2 -0
  52. package/_cjs/openapi-client/index.js.map +1 -1
  53. package/_cjs/spend-permissions/constants.js +716 -0
  54. package/_cjs/spend-permissions/constants.js.map +1 -0
  55. package/_cjs/spend-permissions/types.js +3 -0
  56. package/_cjs/spend-permissions/types.js.map +1 -0
  57. package/_cjs/version.js +1 -1
  58. package/_esm/accounts/evm/networkCapabilities.js +101 -0
  59. package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
  60. package/_esm/accounts/evm/toEvmServerAccount.js +11 -0
  61. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  62. package/_esm/accounts/evm/toEvmSmartAccount.js +11 -0
  63. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  64. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +10 -0
  65. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  66. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +10 -0
  67. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  68. package/_esm/accounts/solana/toSolanaAccount.js +11 -1
  69. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  70. package/_esm/actions/evm/getUserOperation.js +1 -0
  71. package/_esm/actions/evm/getUserOperation.js.map +1 -1
  72. package/_esm/actions/evm/spend-permissions/account.use.js +30 -0
  73. package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -0
  74. package/_esm/actions/evm/spend-permissions/smartAccount.use.js +32 -0
  75. package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -0
  76. package/_esm/actions/evm/spend-permissions/types.js +2 -0
  77. package/_esm/actions/evm/spend-permissions/types.js.map +1 -0
  78. package/_esm/actions/solana/sendTransaction.js +1 -0
  79. package/_esm/actions/solana/sendTransaction.js.map +1 -1
  80. package/_esm/actions/solana/signTransaction.js +1 -0
  81. package/_esm/actions/solana/signTransaction.js.map +1 -1
  82. package/_esm/auth/hooks/axios/withAuth.js +3 -0
  83. package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
  84. package/_esm/auth/utils/http.js +2 -1
  85. package/_esm/auth/utils/http.js.map +1 -1
  86. package/_esm/client/evm/evm.js +51 -1
  87. package/_esm/client/evm/evm.js.map +1 -1
  88. package/_esm/client/solana/solana.js +2 -2
  89. package/_esm/client/solana/solana.js.map +1 -1
  90. package/_esm/index.js +2 -1
  91. package/_esm/index.js.map +1 -1
  92. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +39 -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 +12 -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 +69 -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 +2 -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/generated/x402-facilitator/x402-facilitator.js +11 -0
  105. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -0
  106. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +63 -0
  107. package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +1 -0
  108. package/_esm/openapi-client/index.js +2 -0
  109. package/_esm/openapi-client/index.js.map +1 -1
  110. package/_esm/spend-permissions/constants.js +713 -0
  111. package/_esm/spend-permissions/constants.js.map +1 -0
  112. package/_esm/spend-permissions/types.js +2 -0
  113. package/_esm/spend-permissions/types.js.map +1 -0
  114. package/_esm/version.js +1 -1
  115. package/_types/accounts/evm/networkCapabilities.d.ts +101 -0
  116. package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
  117. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  118. package/_types/accounts/evm/toEvmSmartAccount.d.ts +1 -1
  119. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  120. package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
  121. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  122. package/_types/accounts/evm/types.d.ts +6 -0
  123. package/_types/accounts/evm/types.d.ts.map +1 -1
  124. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  125. package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
  126. package/_types/actions/evm/spend-permissions/account.use.d.ts +15 -0
  127. package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -0
  128. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts +15 -0
  129. package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -0
  130. package/_types/actions/evm/spend-permissions/types.d.ts +13 -0
  131. package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -0
  132. package/_types/actions/evm/types.d.ts +75 -0
  133. package/_types/actions/evm/types.d.ts.map +1 -1
  134. package/_types/actions/solana/sendTransaction.d.ts +8 -2
  135. package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
  136. package/_types/actions/solana/signTransaction.d.ts +8 -2
  137. package/_types/actions/solana/signTransaction.d.ts.map +1 -1
  138. package/_types/actions/solana/types.d.ts +38 -3
  139. package/_types/actions/solana/types.d.ts.map +1 -1
  140. package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
  141. package/_types/auth/utils/http.d.ts.map +1 -1
  142. package/_types/client/evm/evm.d.ts +19 -1
  143. package/_types/client/evm/evm.d.ts.map +1 -1
  144. package/_types/client/evm/evm.types.d.ts +29 -2
  145. package/_types/client/evm/evm.types.d.ts.map +1 -1
  146. package/_types/client/solana/solana.d.ts +5 -3
  147. package/_types/client/solana/solana.d.ts.map +1 -1
  148. package/_types/index.d.ts +3 -1
  149. package/_types/index.d.ts.map +1 -1
  150. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +333 -1
  151. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  152. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +7 -1
  153. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  154. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +2 -0
  155. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +1 -1
  156. package/_types/openapi-client/generated/index.msw.d.ts +2 -0
  157. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -1
  158. package/_types/openapi-client/generated/onramp/onramp.d.ts +28 -0
  159. package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -0
  160. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts +8 -0
  161. package/_types/openapi-client/generated/onramp/onramp.msw.d.ts.map +1 -0
  162. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +20 -0
  163. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -0
  164. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts +6 -0
  165. package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts.map +1 -0
  166. package/_types/openapi-client/index.d.ts +4 -0
  167. package/_types/openapi-client/index.d.ts.map +1 -1
  168. package/_types/spend-permissions/constants.d.ts +1357 -0
  169. package/_types/spend-permissions/constants.d.ts.map +1 -0
  170. package/_types/spend-permissions/types.d.ts +30 -0
  171. package/_types/spend-permissions/types.d.ts.map +1 -0
  172. package/_types/version.d.ts +1 -1
  173. package/accounts/evm/networkCapabilities.ts +101 -0
  174. package/accounts/evm/toEvmServerAccount.ts +15 -0
  175. package/accounts/evm/toEvmSmartAccount.ts +19 -4
  176. package/accounts/evm/toNetworkScopedEvmServerAccount.ts +15 -0
  177. package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +15 -0
  178. package/accounts/evm/types.ts +18 -0
  179. package/accounts/solana/toSolanaAccount.ts +17 -3
  180. package/actions/evm/getUserOperation.ts +1 -0
  181. package/actions/evm/spend-permissions/account.use.ts +48 -0
  182. package/actions/evm/spend-permissions/smartAccount.use.ts +49 -0
  183. package/actions/evm/spend-permissions/types.ts +13 -0
  184. package/actions/evm/types.ts +81 -0
  185. package/actions/solana/sendTransaction.ts +10 -2
  186. package/actions/solana/signTransaction.ts +10 -2
  187. package/actions/solana/types.ts +44 -2
  188. package/auth/hooks/axios/withAuth.ts +3 -0
  189. package/auth/utils/http.ts +2 -1
  190. package/client/evm/evm.ts +61 -1
  191. package/client/evm/evm.types.ts +31 -0
  192. package/client/solana/solana.ts +10 -5
  193. package/index.ts +6 -1
  194. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +375 -1
  195. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +85 -0
  196. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +23 -0
  197. package/openapi-client/generated/index.msw.ts +2 -0
  198. package/openapi-client/generated/onramp/onramp.msw.ts +135 -0
  199. package/openapi-client/generated/onramp/onramp.ts +54 -0
  200. package/openapi-client/generated/x402-facilitator/x402-facilitator.msw.ts +85 -0
  201. package/openapi-client/generated/x402-facilitator/x402-facilitator.ts +34 -0
  202. package/openapi-client/index.ts +2 -0
  203. package/package.json +1 -1
  204. package/spend-permissions/constants.ts +713 -0
  205. package/spend-permissions/types.ts +42 -0
  206. 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;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Aa,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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AM,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,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,+BAA+B,EAC/B,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,aAAa,EACb,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAEL,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAEL,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2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AO,EAAE,wBAAwB,CAAC,OAAO,EAAE,CAAC,GAC3C,OAAO,CAAC,2BAA2B,CAAC;IAiBvC;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAkBlE;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IAkBxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IA6B5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,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" | "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,16 @@ 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
+ }
192
203
  /**
193
204
  * Options for getting a user operation.
194
205
  */
@@ -244,6 +255,10 @@ export interface UserOperation {
244
255
  * 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
256
  */
246
257
  transactionHash?: Hex;
258
+ /**
259
+ * The receipts associated with the broadcasted user operation.
260
+ */
261
+ receipts?: UserOperationReceipt[];
247
262
  }
248
263
  /**
249
264
  * Options for creating an EVM server account.
@@ -315,6 +330,12 @@ export interface GetOrCreateSmartAccountOptions {
315
330
  name: string;
316
331
  /** The owner of the account. */
317
332
  owner: Account;
333
+ /**
334
+ * @deprecated Experimental! This method name will change, and is subject to other breaking changes.
335
+ *
336
+ * The flag to enable spend permission.
337
+ */
338
+ __experimental_enableSpendPermission?: boolean;
318
339
  }
319
340
  /**
320
341
  * Options for listing EVM accounts.
@@ -401,6 +422,12 @@ export interface CreateSmartAccountOptions {
401
422
  idempotencyKey?: string;
402
423
  /** The name of the account. */
403
424
  name?: string;
425
+ /**
426
+ * @deprecated Experimental! This method name will change, and is subject to other breaking changes.
427
+ *
428
+ * The flag to enable spend permission.
429
+ */
430
+ __experimental_enableSpendPermission?: boolean;
404
431
  }
405
432
  /**
406
433
  * 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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AAU;IACzB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,oGAAoG;IACpG,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,kFAAkF;IAClF,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+BAA+B;IAC/B,UAAU,EAAE,GAAG,CAAC;IAChB,wBAAwB;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AACtD,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AACpD,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAC/D,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,uCAAuC;IACtD,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,SAAS,EAAE,aAAa,CAAC;IACzB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,cAAc,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,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAgB/D;;GAEG;AACH,qBAAa,YAAa,YAAW,qBAAqB;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,a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G;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,CAAC;AACpE,OAAO,EACL,4BAA4B,IAAI,yBAAyB,EACzD,gCAAgC,IAAI,6BAA6B,GAClE,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,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,41 @@ 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;
201
254
  }
202
255
  /**
203
256
  * The network on which to perform the swap.
@@ -1213,6 +1266,131 @@ export interface SolanaTokenBalance {
1213
1266
  amount: SolanaTokenAmount;
1214
1267
  token: SolanaToken;
1215
1268
  }
1269
+ /**
1270
+ * The version of the x402 protocol.
1271
+ */
1272
+ export type X402Version = (typeof X402Version)[keyof typeof X402Version];
1273
+ export declare const X402Version: {
1274
+ readonly NUMBER_1: 1;
1275
+ };
1276
+ /**
1277
+ * The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`.
1278
+ */
1279
+ export type X402PaymentRequirementsScheme = (typeof X402PaymentRequirementsScheme)[keyof typeof X402PaymentRequirementsScheme];
1280
+ export declare const X402PaymentRequirementsScheme: {
1281
+ readonly exact: "exact";
1282
+ };
1283
+ /**
1284
+ * The network of the blockchain to send payment on.
1285
+ */
1286
+ export type X402PaymentRequirementsNetwork = (typeof X402PaymentRequirementsNetwork)[keyof typeof X402PaymentRequirementsNetwork];
1287
+ export declare const X402PaymentRequirementsNetwork: {
1288
+ readonly "base-sepolia": "base-sepolia";
1289
+ readonly base: "base";
1290
+ };
1291
+ /**
1292
+ * The optional JSON schema describing the resource output.
1293
+ */
1294
+ export type X402PaymentRequirementsOutputSchema = {
1295
+ [key: string]: unknown;
1296
+ };
1297
+ /**
1298
+ * The optional additional scheme-specific payment info.
1299
+ */
1300
+ export type X402PaymentRequirementsExtra = {
1301
+ [key: string]: unknown;
1302
+ };
1303
+ /**
1304
+ * The x402 protocol payment requirements that the resource server expects the client's payment payload to meet.
1305
+ */
1306
+ export interface X402PaymentRequirements {
1307
+ /** The scheme of the payment protocol to use. Currently, the only supported scheme is `exact`. */
1308
+ scheme: X402PaymentRequirementsScheme;
1309
+ /** The network of the blockchain to send payment on. */
1310
+ network: X402PaymentRequirementsNetwork;
1311
+ /** The maximum amount required to pay for the resource in atomic units of the payment asset. */
1312
+ maxAmountRequired: string;
1313
+ /** The URL of the resource to pay for. */
1314
+ resource: string;
1315
+ /** The description of the resource. */
1316
+ description: string;
1317
+ /** The MIME type of the resource response. */
1318
+ mimeType: string;
1319
+ /** The optional JSON schema describing the resource output. */
1320
+ outputSchema?: X402PaymentRequirementsOutputSchema;
1321
+ /**
1322
+ * The destination to pay value to.
1323
+
1324
+ For EVM networks, payTo will be a 0x-prefixed, checksum EVM address.
1325
+
1326
+ For Solana-based networks, payTo will be a base58-encoded Solana address.
1327
+ * @pattern ^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
1328
+ */
1329
+ payTo: string;
1330
+ /** The maximum time in seconds for the resource server to respond. */
1331
+ maxTimeoutSeconds: number;
1332
+ /**
1333
+ * The asset to pay with.
1334
+
1335
+ For EVM networks, the asset will be a 0x-prefixed, checksum EVM address.
1336
+
1337
+ For Solana-based networks, the asset will be a base58-encoded Solana address.
1338
+ * @pattern ^0x[a-fA-F0-9]{40}|[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
1339
+ */
1340
+ asset: string;
1341
+ /** The optional additional scheme-specific payment info. */
1342
+ extra?: X402PaymentRequirementsExtra;
1343
+ }
1344
+ /**
1345
+ * Communication protocol (e.g., "http", "mcp").
1346
+ */
1347
+ export type X402DiscoveryResourceType = (typeof X402DiscoveryResourceType)[keyof typeof X402DiscoveryResourceType];
1348
+ export declare const X402DiscoveryResourceType: {
1349
+ readonly http: "http";
1350
+ };
1351
+ /**
1352
+ * Additional metadata as a JSON object.
1353
+ */
1354
+ export type X402DiscoveryResourceMetadata = {
1355
+ [key: string]: unknown;
1356
+ };
1357
+ /**
1358
+ * A single discovered x402 resource.
1359
+ */
1360
+ export interface X402DiscoveryResource {
1361
+ /** The normalized resource identifier. */
1362
+ resource: string;
1363
+ /** Communication protocol (e.g., "http", "mcp"). */
1364
+ type: X402DiscoveryResourceType;
1365
+ x402Version: X402Version;
1366
+ /** Payment requirements as an array of JSON objects. */
1367
+ accepts?: X402PaymentRequirements[];
1368
+ /** Timestamp of the last update. */
1369
+ lastUpdated: string;
1370
+ /** Additional metadata as a JSON object. */
1371
+ metadata?: X402DiscoveryResourceMetadata;
1372
+ }
1373
+ /**
1374
+ * Pagination information for the response.
1375
+ */
1376
+ export type X402DiscoveryResourcesResponsePagination = {
1377
+ /** The number of discovered x402 resources to return per page. */
1378
+ limit?: number;
1379
+ /** The offset of the first discovered x402 resource to return. */
1380
+ offset?: number;
1381
+ /** The total number of discovered x402 resources. */
1382
+ total?: number;
1383
+ };
1384
+ /**
1385
+ * Response containing discovered x402 resources.
1386
+ */
1387
+ export interface X402DiscoveryResourcesResponse {
1388
+ x402Version: X402Version;
1389
+ /** List of discovered x402 resources. */
1390
+ items: X402DiscoveryResource[];
1391
+ /** Pagination information for the response. */
1392
+ pagination: X402DiscoveryResourcesResponsePagination;
1393
+ }
1216
1394
  /**
1217
1395
  * The action of the payment method.
1218
1396
  */
@@ -1413,6 +1591,93 @@ export interface Transfer {
1413
1591
  /** The transaction hash or transaction signature of the transfer. */
1414
1592
  transactionHash?: string;
1415
1593
  }
1594
+ /**
1595
+ * The type of payment method to be used to complete the order.
1596
+ */
1597
+ export type OnrampPaymentMethodTypeId = (typeof OnrampPaymentMethodTypeId)[keyof typeof OnrampPaymentMethodTypeId];
1598
+ export declare const OnrampPaymentMethodTypeId: {
1599
+ readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
1600
+ };
1601
+ /**
1602
+ * The type of fee.
1603
+ */
1604
+ export type OnrampOrderFeeType = (typeof OnrampOrderFeeType)[keyof typeof OnrampOrderFeeType];
1605
+ export declare const OnrampOrderFeeType: {
1606
+ readonly FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK";
1607
+ readonly FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE";
1608
+ };
1609
+ /**
1610
+ * A fee associated with an order.
1611
+ */
1612
+ export interface OnrampOrderFee {
1613
+ /** The type of fee. */
1614
+ type: OnrampOrderFeeType;
1615
+ /** The amount of the fee. */
1616
+ amount: string;
1617
+ /** The currency of the fee. */
1618
+ currency: string;
1619
+ }
1620
+ /**
1621
+ * The status of an onramp order.
1622
+ */
1623
+ export type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
1624
+ export declare const OnrampOrderStatus: {
1625
+ readonly ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH";
1626
+ readonly ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT";
1627
+ readonly ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING";
1628
+ readonly ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED";
1629
+ readonly ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED";
1630
+ };
1631
+ /**
1632
+ * An Onramp order.
1633
+ */
1634
+ export interface OnrampOrder {
1635
+ /** The ID of the onramp order. */
1636
+ orderId: string;
1637
+ /** The total amount of fiat to be paid. */
1638
+ paymentTotal: string;
1639
+ /** The amount of fiat to be converted to crypto. */
1640
+ paymentSubtotal: unknown;
1641
+ /** The fiat currency to be converted to crypto. */
1642
+ paymentCurrency: string;
1643
+ paymentMethod: OnrampPaymentMethodTypeId;
1644
+ /** The amount of crypto to be purchased. */
1645
+ purchaseAmount: string;
1646
+ /** The crypto currency to be purchased. */
1647
+ purchaseCurrency: string;
1648
+ /** The fees associated with the order. */
1649
+ fees: OnrampOrderFee[];
1650
+ /** The exchange rate used to convert fiat to crypto. */
1651
+ exchangeRate: string;
1652
+ /** The destination address to send the crypto to. */
1653
+ destinationAddress: string;
1654
+ /** The network to send the crypto on. */
1655
+ destinationNetwork: string;
1656
+ status: OnrampOrderStatus;
1657
+ /** The transaction hash of the order (only available once crypto has been sent). */
1658
+ txHash?: string;
1659
+ /** The date and time the order was created. */
1660
+ createdAt: string;
1661
+ /** The date and time the order was last updated. */
1662
+ updatedAt: string;
1663
+ }
1664
+ /**
1665
+ * The type of payment link.
1666
+ */
1667
+ export type OnrampPaymentLinkType = (typeof OnrampPaymentLinkType)[keyof typeof OnrampPaymentLinkType];
1668
+ export declare const OnrampPaymentLinkType: {
1669
+ readonly PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
1670
+ };
1671
+ /**
1672
+ * A payment link to pay for an order.
1673
+
1674
+ 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.
1675
+ */
1676
+ export interface OnrampPaymentLink {
1677
+ /** The URL to the hosted widget the user should be redirected to, append your own redirect_url query parameter to this URL to ensure the user is redirected back to your app after the widget completes. */
1678
+ url: string;
1679
+ paymentLinkType: OnrampPaymentLinkType;
1680
+ }
1416
1681
  /**
1417
1682
  * Internal server error.
1418
1683
  */
@@ -1437,6 +1702,14 @@ export type IdempotencyErrorResponse = Error;
1437
1702
  * The resource already exists.
1438
1703
  */
1439
1704
  export type AlreadyExistsErrorResponse = Error;
1705
+ /**
1706
+ * Unauthorized.
1707
+ */
1708
+ export type UnauthorizedErrorResponse = Error;
1709
+ /**
1710
+ * Rate limit exceeded.
1711
+ */
1712
+ export type RateLimitExceededResponse = Error;
1440
1713
  /**
1441
1714
  * A JWT signed using your Wallet Secret, encoded in base64. Refer to the
1442
1715
  [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
@@ -1912,6 +2185,21 @@ export type ListSolanaTokenBalances200AllOf = {
1912
2185
  balances: SolanaTokenBalance[];
1913
2186
  };
1914
2187
  export type ListSolanaTokenBalances200 = ListSolanaTokenBalances200AllOf & ListResponse;
2188
+ export type ListX402DiscoveryResourcesParams = {
2189
+ /**
2190
+ * Filter by protocol type (e.g., "http", "mcp").
2191
+ Currently, the only supported protocol type is "http".
2192
+ */
2193
+ type?: string;
2194
+ /**
2195
+ * The number of discovered x402 resources to return per page.
2196
+ */
2197
+ limit?: number;
2198
+ /**
2199
+ * The offset of the first discovered x402 resource to return.
2200
+ */
2201
+ offset?: number;
2202
+ };
1915
2203
  export type GetCryptoRailsParams = {
1916
2204
  /**
1917
2205
  * Comma separated list of networks to filter the rails by.
@@ -1949,4 +2237,48 @@ export type CreatePaymentTransferQuoteBody = {
1949
2237
  export type CreatePaymentTransferQuote201 = {
1950
2238
  transfer: Transfer;
1951
2239
  };
2240
+ export type CreateOnrampOrderBody = {
2241
+ /** The timestamp of the time the user acknowledged they are accepting the Coinbase service agreement (https://www.coinbase.com/legal/guest-checkout/us) by using Coinbase Onramp. */
2242
+ agreementAcceptedAt: string;
2243
+ /** The address the purchased crypto will be sent to. */
2244
+ destinationAddress: string;
2245
+ /** The name of the crypto network the purchased currency will be sent on.
2246
+
2247
+ 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. */
2248
+ destinationNetwork: string;
2249
+ /** The email address of the user requesting the onramp transaction. */
2250
+ email: string;
2251
+ /** If true, this API will return a quote without creating any transaction. */
2252
+ isQuote?: boolean;
2253
+ /** Optional partner order reference ID. */
2254
+ partnerOrderRef?: string;
2255
+ /** 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-” to perform a sandbox transaction which will allow you to test your integration without any real transfer of funds.
2256
+
2257
+ 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. */
2258
+ partnerUserRef: string;
2259
+ /** 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. */
2260
+ paymentAmount?: string;
2261
+ /** The fiat currency to be converted to crypto. */
2262
+ paymentCurrency: string;
2263
+ paymentMethod: OnrampPaymentMethodTypeId;
2264
+ /** 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.
2265
+
2266
+ Please refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/onramp-overview) for more details on phone number verification requirements and best practices. */
2267
+ phoneNumber: string;
2268
+ /** 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. */
2269
+ phoneNumberVerifiedAt: string;
2270
+ /** 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 exclusive of fees i.e. the user will receive this exact amount of the purchase currency. */
2271
+ purchaseAmount?: string;
2272
+ /** The ticker (e.g. `BTC`, `USDC`) or the UUID (e.g. `d85dce9b-5b73-5c3c-8978-522ce1d1c1b4`) of crypto asset to be purchased.
2273
+
2274
+ 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. */
2275
+ purchaseCurrency: string;
2276
+ };
2277
+ export type CreateOnrampOrder201 = {
2278
+ order: OnrampOrder;
2279
+ paymentLink?: OnrampPaymentLink;
2280
+ };
2281
+ export type GetOnrampOrderById200 = {
2282
+ order: OnrampOrder;
2283
+ };
1952
2284
  //# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.d.ts.map