@coinbase-sample/prime-sdk-ts 0.3.0 → 0.3.1

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 (318) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/index.js +3 -1
  3. package/dist/model/StakingInitiateResponse.js +21 -0
  4. package/dist/model/StakingInputs.js +21 -0
  5. package/dist/model/StakingUnstakeResponse.js +21 -0
  6. package/dist/{addressBooks/service.js → staking/index.js} +11 -9
  7. package/dist/{client.d.ts → types/client.d.ts} +1 -1
  8. package/dist/{index.d.ts → types/index.d.ts} +2 -0
  9. package/dist/{model → types/model}/CreateOnchainTransactionRequestEvmParams.d.ts +9 -1
  10. package/dist/{model → types/model}/RpcConfig.d.ts +1 -1
  11. package/dist/types/model/StakingInitiateRequest.d.ts +27 -0
  12. package/dist/types/model/StakingInitiateResponse.d.ts +33 -0
  13. package/dist/types/model/StakingInputs.d.ts +25 -0
  14. package/dist/types/model/StakingUnstakeResponse.d.ts +33 -0
  15. package/dist/types/staking/index.d.ts +29 -0
  16. package/dist/types/staking/types.d.ts +28 -0
  17. package/package.json +3 -2
  18. package/dist/activities/service.d.ts +0 -18
  19. package/dist/activities/service.js +0 -54
  20. package/dist/addressBooks/service.d.ts +0 -11
  21. package/dist/allocations/service.d.ts +0 -14
  22. package/dist/allocations/service.js +0 -65
  23. package/dist/assets/service.d.ts +0 -10
  24. package/dist/assets/service.js +0 -27
  25. package/dist/invoices/service.d.ts +0 -10
  26. package/dist/invoices/service.js +0 -27
  27. package/dist/model/assets.d.ts +0 -13
  28. package/dist/model/assets.js +0 -2
  29. package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +0 -23
  30. package/dist/model/enums/ActivityType.d.ts +0 -63
  31. package/dist/model/enums/ActivityType.js +0 -67
  32. package/dist/model/services/activitityService.d.ts +0 -33
  33. package/dist/model/services/activitityService.js +0 -2
  34. package/dist/model/services/addressBookService.d.ts +0 -14
  35. package/dist/model/services/addressBookService.js +0 -2
  36. package/dist/model/services/allocationService.d.ts +0 -24
  37. package/dist/model/services/allocationService.js +0 -2
  38. package/dist/model/services/assetService.d.ts +0 -5
  39. package/dist/model/services/assetService.js +0 -2
  40. package/dist/model/services/balanceService.d.ts +0 -24
  41. package/dist/model/services/balanceService.js +0 -2
  42. package/dist/model/services/commissionService.d.ts +0 -5
  43. package/dist/model/services/commissionService.js +0 -2
  44. package/dist/model/services/invoiceService.d.ts +0 -5
  45. package/dist/model/services/invoiceService.js +0 -2
  46. package/dist/model/services/orderService.d.ts +0 -62
  47. package/dist/model/services/orderService.js +0 -2
  48. package/dist/model/services/pagination.d.ts +0 -9
  49. package/dist/model/services/pagination.js +0 -2
  50. package/dist/model/services/paymentMethodsService.d.ts +0 -10
  51. package/dist/model/services/paymentMethodsService.js +0 -2
  52. package/dist/model/services/portfolioService.d.ts +0 -15
  53. package/dist/model/services/portfolioService.js +0 -2
  54. package/dist/model/services/productService.d.ts +0 -6
  55. package/dist/model/services/productService.js +0 -2
  56. package/dist/model/services/shared.d.ts +0 -6
  57. package/dist/model/services/shared.js +0 -2
  58. package/dist/model/services/transactionService.d.ts +0 -47
  59. package/dist/model/services/transactionService.js +0 -2
  60. package/dist/model/services/usersService.d.ts +0 -9
  61. package/dist/model/services/usersService.js +0 -2
  62. package/dist/model/services/walletService.d.ts +0 -27
  63. package/dist/model/services/walletService.js +0 -2
  64. package/dist/onchainAddressGroups/index.d.ts +0 -27
  65. package/dist/onchainAddressGroups/index.js +0 -27
  66. package/dist/onchainAddressGroups/types.d.ts +0 -20
  67. package/dist/paymentMethods/service.d.ts +0 -11
  68. package/dist/paymentMethods/service.js +0 -36
  69. package/dist/portfolio/service.d.ts +0 -12
  70. package/dist/portfolio/service.js +0 -42
  71. package/dist/users/service.d.ts +0 -11
  72. package/dist/users/service.js +0 -36
  73. /package/dist/model/{changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js → Portfolio.js} +0 -0
  74. /package/dist/model/{portfolio.js → StakingInitiateRequest.js} +0 -0
  75. /package/dist/{onchainAddressGroups → staking}/types.js +0 -0
  76. /package/dist/{activities → types/activities}/index.d.ts +0 -0
  77. /package/dist/{activities → types/activities}/types.d.ts +0 -0
  78. /package/dist/{addressBooks → types/addressBooks}/index.d.ts +0 -0
  79. /package/dist/{addressBooks → types/addressBooks}/types.d.ts +0 -0
  80. /package/dist/{allocations → types/allocations}/index.d.ts +0 -0
  81. /package/dist/{allocations → types/allocations}/types.d.ts +0 -0
  82. /package/dist/{assets → types/assets}/index.d.ts +0 -0
  83. /package/dist/{assets → types/assets}/types.d.ts +0 -0
  84. /package/dist/{balances → types/balances}/index.d.ts +0 -0
  85. /package/dist/{balances → types/balances}/types.d.ts +0 -0
  86. /package/dist/{commission → types/commission}/index.d.ts +0 -0
  87. /package/dist/{commission → types/commission}/types.d.ts +0 -0
  88. /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
  89. /package/dist/{credentials → types/credentials}/index.d.ts +0 -0
  90. /package/dist/{errors → types/errors}/index.d.ts +0 -0
  91. /package/dist/{financing → types/financing}/index.d.ts +0 -0
  92. /package/dist/{financing → types/financing}/types.d.ts +0 -0
  93. /package/dist/{futures → types/futures}/index.d.ts +0 -0
  94. /package/dist/{futures → types/futures}/types.d.ts +0 -0
  95. /package/dist/{invoices → types/invoices}/index.d.ts +0 -0
  96. /package/dist/{invoices → types/invoices}/types.d.ts +0 -0
  97. /package/dist/{model → types/model}/AcceptQuoteRequest.d.ts +0 -0
  98. /package/dist/{model → types/model}/AcceptQuoteResponse.d.ts +0 -0
  99. /package/dist/{model → types/model}/Accrual.d.ts +0 -0
  100. /package/dist/{model → types/model}/Activity.d.ts +0 -0
  101. /package/dist/{model → types/model}/ActivityCreationResponse.d.ts +0 -0
  102. /package/dist/{model → types/model}/ActivityMetadataAccount.d.ts +0 -0
  103. /package/dist/{model → types/model}/ActivityMetadataConsensus.d.ts +0 -0
  104. /package/dist/{model → types/model}/ActivityMetadataTransactions.d.ts +0 -0
  105. /package/dist/{model → types/model}/AddressBookEntry.d.ts +0 -0
  106. /package/dist/{model → types/model}/AddressEntry.d.ts +0 -0
  107. /package/dist/{model → types/model}/AddressGroup.d.ts +0 -0
  108. /package/dist/{model → types/model}/AggregatedFiatBalance.d.ts +0 -0
  109. /package/dist/{model → types/model}/Allocation.d.ts +0 -0
  110. /package/dist/{model → types/model}/AllocationLeg.d.ts +0 -0
  111. /package/dist/{model → types/model}/AmountDue.d.ts +0 -0
  112. /package/dist/{model → types/model}/Asset.d.ts +0 -0
  113. /package/dist/{model → types/model}/AssetBalance.d.ts +0 -0
  114. /package/dist/{model → types/model}/AssetChange.d.ts +0 -0
  115. /package/dist/{model → types/model}/Balance.d.ts +0 -0
  116. /package/dist/{model → types/model}/BlockchainAddress.d.ts +0 -0
  117. /package/dist/{model → types/model}/BuyingPower.d.ts +0 -0
  118. /package/dist/{model → types/model}/CancelFuturesSweepResponse.d.ts +0 -0
  119. /package/dist/{model → types/model}/CancelOrderResponse.d.ts +0 -0
  120. /package/dist/{model → types/model}/Commission.d.ts +0 -0
  121. /package/dist/{model → types/model}/Conversion.d.ts +0 -0
  122. /package/dist/{model → types/model}/ConversionDetail.d.ts +0 -0
  123. /package/dist/{model → types/model}/CreateAddressGroup.d.ts +0 -0
  124. /package/dist/{model → types/model}/CreateAllocationRequest.d.ts +0 -0
  125. /package/dist/{model → types/model}/CreateAllocationResponse.d.ts +0 -0
  126. /package/dist/{model → types/model}/CreateAllocationResponseBody.d.ts +0 -0
  127. /package/dist/{model → types/model}/CreateConversionRequest.d.ts +0 -0
  128. /package/dist/{model → types/model}/CreateConversionResponse.d.ts +0 -0
  129. /package/dist/{model → types/model}/CreateNetAllocationResponse.d.ts +0 -0
  130. /package/dist/{model → types/model}/CreateNetAllocationResponseBody.d.ts +0 -0
  131. /package/dist/{model → types/model}/CreateNewLocatesRequest.d.ts +0 -0
  132. /package/dist/{model → types/model}/CreateNewLocatesResponse.d.ts +0 -0
  133. /package/dist/{model → types/model}/CreateOnchainTransactionRequest.d.ts +0 -0
  134. /package/dist/{model → types/model}/CreateOnchainTransactionResponse.d.ts +0 -0
  135. /package/dist/{model → types/model}/CreateOrderRequest.d.ts +0 -0
  136. /package/dist/{model → types/model}/CreateOrderResponse.d.ts +0 -0
  137. /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryRequest.d.ts +0 -0
  138. /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryResponse.d.ts +0 -0
  139. /package/dist/{model → types/model}/CreateWalletRequest.d.ts +0 -0
  140. /package/dist/{model → types/model}/CreateWalletResponse.d.ts +0 -0
  141. /package/dist/{model → types/model}/CreateWalletTransferResponse.d.ts +0 -0
  142. /package/dist/{model → types/model}/CreateWalletWithdrawalRequest.d.ts +0 -0
  143. /package/dist/{model → types/model}/CreateWalletWithdrawalResponse.d.ts +0 -0
  144. /package/dist/{model → types/model}/DefiBalance.d.ts +0 -0
  145. /package/dist/{model → types/model}/DestinationAlloc.d.ts +0 -0
  146. /package/dist/{model → types/model}/DisplayUser.d.ts +0 -0
  147. /package/dist/{model → types/model}/EntityBalance.d.ts +0 -0
  148. /package/dist/{model → types/model}/EntityUser.d.ts +0 -0
  149. /package/dist/{model → types/model}/EstimatedNetworkFees.d.ts +0 -0
  150. /package/dist/{model → types/model}/ExistingLocate.d.ts +0 -0
  151. /package/dist/{model → types/model}/FcmFuturesSweep.d.ts +0 -0
  152. /package/dist/{model → types/model}/FcmFuturesSweepRequestAmount.d.ts +0 -0
  153. /package/dist/{model → types/model}/FcmPosition.d.ts +0 -0
  154. /package/dist/{model → types/model}/Fill.d.ts +0 -0
  155. /package/dist/{model → types/model}/GetActivityResponse.d.ts +0 -0
  156. /package/dist/{model → types/model}/GetAllocationResponse.d.ts +0 -0
  157. /package/dist/{model → types/model}/GetAllocationsByClientNettingIdResponse.d.ts +0 -0
  158. /package/dist/{model → types/model}/GetBuyingPowerResponse.d.ts +0 -0
  159. /package/dist/{model → types/model}/GetEntityActivitiesResponse.d.ts +0 -0
  160. /package/dist/{model → types/model}/GetEntityAssetsResponse.d.ts +0 -0
  161. /package/dist/{model → types/model}/GetEntityPaymentMethodDetailsResponse.d.ts +0 -0
  162. /package/dist/{model → types/model}/GetEntityPaymentMethodsResponse.d.ts +0 -0
  163. /package/dist/{model → types/model}/GetEntityUsersResponse.d.ts +0 -0
  164. /package/dist/{model → types/model}/GetExistingLocatesResponse.d.ts +0 -0
  165. /package/dist/{model → types/model}/GetFcmBalanceResponse.d.ts +0 -0
  166. /package/dist/{model → types/model}/GetFuturesSweepsResponse.d.ts +0 -0
  167. /package/dist/{model → types/model}/GetInterestAccrualsResponse.d.ts +0 -0
  168. /package/dist/{model → types/model}/GetInvoicesResponse.d.ts +0 -0
  169. /package/dist/{model → types/model}/GetLocateAvailabilitiesResponse.d.ts +0 -0
  170. /package/dist/{model → types/model}/GetMarginConversionsResponse.d.ts +0 -0
  171. /package/dist/{model → types/model}/GetMarginInformationResponse.d.ts +0 -0
  172. /package/dist/{model → types/model}/GetMarginSummariesResponse.d.ts +0 -0
  173. /package/dist/{model → types/model}/GetOpenOrdersResponse.d.ts +0 -0
  174. /package/dist/{model → types/model}/GetOrderFillsResponse.d.ts +0 -0
  175. /package/dist/{model → types/model}/GetOrderResponse.d.ts +0 -0
  176. /package/dist/{model → types/model}/GetOrdersResponse.d.ts +0 -0
  177. /package/dist/{model → types/model}/GetPortfolioActivitiesResponse.d.ts +0 -0
  178. /package/dist/{model → types/model}/GetPortfolioActivityResponse.d.ts +0 -0
  179. /package/dist/{model → types/model}/GetPortfolioAddressBookResponse.d.ts +0 -0
  180. /package/dist/{model → types/model}/GetPortfolioAllocationsResponse.d.ts +0 -0
  181. /package/dist/{model → types/model}/GetPortfolioBalancesResponse.d.ts +0 -0
  182. /package/dist/{model → types/model}/GetPortfolioCommissionResponse.d.ts +0 -0
  183. /package/dist/{model → types/model}/GetPortfolioFillsResponse.d.ts +0 -0
  184. /package/dist/{model → types/model}/GetPortfolioInterestAccrualsResponse.d.ts +0 -0
  185. /package/dist/{model → types/model}/GetPortfolioProductsResponse.d.ts +0 -0
  186. /package/dist/{model → types/model}/GetPortfolioResponse.d.ts +0 -0
  187. /package/dist/{model → types/model}/GetPortfolioTransactionsResponse.d.ts +0 -0
  188. /package/dist/{model → types/model}/GetPortfolioUsersResponse.d.ts +0 -0
  189. /package/dist/{model → types/model}/GetPortfoliosResponse.d.ts +0 -0
  190. /package/dist/{model → types/model}/GetPositionsResponse.d.ts +0 -0
  191. /package/dist/{model → types/model}/GetPostTradeCreditResponse.d.ts +0 -0
  192. /package/dist/{model → types/model}/GetTFTieredPricingFeesResponse.d.ts +0 -0
  193. /package/dist/{model → types/model}/GetTransactionResponse.d.ts +0 -0
  194. /package/dist/{model → types/model}/GetWalletAddressesResponse.d.ts +0 -0
  195. /package/dist/{model → types/model}/GetWalletBalanceResponse.d.ts +0 -0
  196. /package/dist/{model → types/model}/GetWalletDepositInstructionsResponse.d.ts +0 -0
  197. /package/dist/{model → types/model}/GetWalletResponse.d.ts +0 -0
  198. /package/dist/{model → types/model}/GetWalletTransactionsResponse.d.ts +0 -0
  199. /package/dist/{model → types/model}/GetWalletsResponse.d.ts +0 -0
  200. /package/dist/{model → types/model}/GetWithdrawalPowerResponse.d.ts +0 -0
  201. /package/dist/{model → types/model}/Invoice.d.ts +0 -0
  202. /package/dist/{model → types/model}/InvoiceItem.d.ts +0 -0
  203. /package/dist/{model → types/model}/ListAggregateEntityPositionsResponse.d.ts +0 -0
  204. /package/dist/{model → types/model}/ListEntityBalancesResponse.d.ts +0 -0
  205. /package/dist/{model → types/model}/ListEntityPositionsResponse.d.ts +0 -0
  206. /package/dist/{model → types/model}/ListOnchainAddressGroupsResponse.d.ts +0 -0
  207. /package/dist/{model → types/model}/ListWeb3WalletBalancesResponse.d.ts +0 -0
  208. /package/dist/{model → types/model}/LoanInfo.d.ts +0 -0
  209. /package/dist/{model → types/model}/Locate.d.ts +0 -0
  210. /package/dist/{model → types/model}/MarginAddOn.d.ts +0 -0
  211. /package/dist/{model → types/model}/MarginCallRecord.d.ts +0 -0
  212. /package/dist/{model → types/model}/MarginInformation.d.ts +0 -0
  213. /package/dist/{model → types/model}/MarginSummary.d.ts +0 -0
  214. /package/dist/{model → types/model}/MarginSummaryHistorical.d.ts +0 -0
  215. /package/dist/{model → types/model}/MarketRate.d.ts +0 -0
  216. /package/dist/{model → types/model}/MatchMetadata.d.ts +0 -0
  217. /package/dist/{model → types/model}/NFTCollection.d.ts +0 -0
  218. /package/dist/{model → types/model}/NFTItem.d.ts +0 -0
  219. /package/dist/{model → types/model}/Network.d.ts +0 -0
  220. /package/dist/{model → types/model}/NetworkDetails.d.ts +0 -0
  221. /package/dist/{model → types/model}/OnchainTransactionDetails.d.ts +0 -0
  222. /package/dist/{model → types/model}/Order.d.ts +0 -0
  223. /package/dist/{model → types/model}/OrderPreviewRequest.d.ts +0 -0
  224. /package/dist/{model → types/model}/PMAssetInfo.d.ts +0 -0
  225. /package/dist/{model → types/model}/PaginatedResponse.d.ts +0 -0
  226. /package/dist/{model → types/model}/PaymentMethodDestination.d.ts +0 -0
  227. /package/dist/{model → types/model}/PaymentMethodDetails.d.ts +0 -0
  228. /package/dist/{model → types/model}/PaymentMethodSummary.d.ts +0 -0
  229. /package/dist/{model/portfolio.d.ts → types/model/Portfolio.d.ts} +0 -0
  230. /package/dist/{model → types/model}/PortfolioUser.d.ts +0 -0
  231. /package/dist/{model → types/model}/Position.d.ts +0 -0
  232. /package/dist/{model → types/model}/PositionReference.d.ts +0 -0
  233. /package/dist/{model → types/model}/PostOrderPreviewResponse.d.ts +0 -0
  234. /package/dist/{model → types/model}/PostTradeCreditInformation.d.ts +0 -0
  235. /package/dist/{model → types/model}/Product.d.ts +0 -0
  236. /package/dist/{model → types/model}/QuoteResponse.d.ts +0 -0
  237. /package/dist/{model → types/model}/RFQ.d.ts +0 -0
  238. /package/dist/{model → types/model}/RFQProductDetails.d.ts +0 -0
  239. /package/dist/{model → types/model}/RiskAssessment.d.ts +0 -0
  240. /package/dist/{model → types/model}/ScheduleFuturesSweepRequest.d.ts +0 -0
  241. /package/dist/{model → types/model}/ScheduleFuturesSweepResponse.d.ts +0 -0
  242. /package/dist/{model → types/model}/SetAutoSweepRequest.d.ts +0 -0
  243. /package/dist/{model → types/model}/SetAutoSweepResponse.d.ts +0 -0
  244. /package/dist/{model → types/model}/ShortCollateral.d.ts +0 -0
  245. /package/dist/{model → types/model}/TieredPricingFee.d.ts +0 -0
  246. /package/dist/{model → types/model}/Transaction.d.ts +0 -0
  247. /package/dist/{model → types/model}/TransactionMetadata.d.ts +0 -0
  248. /package/dist/{model → types/model}/TransferLocation.d.ts +0 -0
  249. /package/dist/{model → types/model}/UserAction.d.ts +0 -0
  250. /package/dist/{model → types/model}/Wallet.d.ts +0 -0
  251. /package/dist/{model → types/model}/WalletCryptoDepositInstructions.d.ts +0 -0
  252. /package/dist/{model → types/model}/WalletFiatDepositInstructions.d.ts +0 -0
  253. /package/dist/{model → types/model}/Web3Asset.d.ts +0 -0
  254. /package/dist/{model → types/model}/Web3Balance.d.ts +0 -0
  255. /package/dist/{model → types/model}/Web3TransactionMetadata.d.ts +0 -0
  256. /package/dist/{model → types/model}/WithdrawalPower.d.ts +0 -0
  257. /package/dist/{model → types/model}/createATransferBetweenTwoWallets.d.ts +0 -0
  258. /package/dist/{model → types/model}/enums/Action.d.ts +0 -0
  259. /package/dist/{model → types/model}/enums/ActivityCategory.d.ts +0 -0
  260. /package/dist/{model → types/model}/enums/ActivityLevel.d.ts +0 -0
  261. /package/dist/{model → types/model}/enums/ActivitySecondaryType.d.ts +0 -0
  262. /package/dist/{model → types/model}/enums/ActivityStatus.d.ts +0 -0
  263. /package/dist/{model → types/model}/enums/AddressBookType.d.ts +0 -0
  264. /package/dist/{model → types/model}/enums/AllocationSizeType.d.ts +0 -0
  265. /package/dist/{model → types/model}/enums/AllocationStatus.d.ts +0 -0
  266. /package/dist/{model → types/model}/enums/AssetChangeType.d.ts +0 -0
  267. /package/dist/{model → types/model}/enums/Benchmark.d.ts +0 -0
  268. /package/dist/{model → types/model}/enums/CustodyActivityType.d.ts +0 -0
  269. /package/dist/{model → types/model}/enums/DestinationType.d.ts +0 -0
  270. /package/dist/{model → types/model}/enums/FcmFuturesSweepStatus.d.ts +0 -0
  271. /package/dist/{model → types/model}/enums/FcmPositionSide.d.ts +0 -0
  272. /package/dist/{model → types/model}/enums/HierarchyType.d.ts +0 -0
  273. /package/dist/{model → types/model}/enums/InvoiceState.d.ts +0 -0
  274. /package/dist/{model → types/model}/enums/InvoiceType.d.ts +0 -0
  275. /package/dist/{model → types/model}/enums/LoanType.d.ts +0 -0
  276. /package/dist/{model → types/model}/enums/MarginAddOnType.d.ts +0 -0
  277. /package/dist/{model → types/model}/enums/NetworkFamily.d.ts +0 -0
  278. /package/dist/{model → types/model}/enums/NetworkType.d.ts +0 -0
  279. /package/dist/{model → types/model}/enums/OrderSide.d.ts +0 -0
  280. /package/dist/{model → types/model}/enums/OrderStatus.d.ts +0 -0
  281. /package/dist/{model → types/model}/enums/OrderType.d.ts +0 -0
  282. /package/dist/{model → types/model}/enums/PaymentMethodType.d.ts +0 -0
  283. /package/dist/{model → types/model}/enums/PortfolioBalanceType.d.ts +0 -0
  284. /package/dist/{model → types/model}/enums/PositionReferenceType.d.ts +0 -0
  285. /package/dist/{model → types/model}/enums/PrimeActivityType.d.ts +0 -0
  286. /package/dist/{model → types/model}/enums/ProductPermissions.d.ts +0 -0
  287. /package/dist/{model → types/model}/enums/RateType.d.ts +0 -0
  288. /package/dist/{model → types/model}/enums/SigningStatus.d.ts +0 -0
  289. /package/dist/{model → types/model}/enums/SortDirection.d.ts +0 -0
  290. /package/dist/{model → types/model}/enums/TimeInForceType.d.ts +0 -0
  291. /package/dist/{model → types/model}/enums/TransactionStatus.d.ts +0 -0
  292. /package/dist/{model → types/model}/enums/TransactionType.d.ts +0 -0
  293. /package/dist/{model → types/model}/enums/TransferLocationType.d.ts +0 -0
  294. /package/dist/{model → types/model}/enums/UserRole.d.ts +0 -0
  295. /package/dist/{model → types/model}/enums/VisibilityStatus.d.ts +0 -0
  296. /package/dist/{model → types/model}/enums/WalletDepositInstructionType.d.ts +0 -0
  297. /package/dist/{model → types/model}/enums/WalletType.d.ts +0 -0
  298. /package/dist/{model → types/model}/enums/WalletVisibility.d.ts +0 -0
  299. /package/dist/{onchainAddressBook → types/onchainAddressBook}/index.d.ts +0 -0
  300. /package/dist/{onchainAddressBook → types/onchainAddressBook}/types.d.ts +0 -0
  301. /package/dist/{orders → types/orders}/index.d.ts +0 -0
  302. /package/dist/{orders → types/orders}/types.d.ts +0 -0
  303. /package/dist/{paymentMethods → types/paymentMethods}/index.d.ts +0 -0
  304. /package/dist/{paymentMethods → types/paymentMethods}/types.d.ts +0 -0
  305. /package/dist/{portfolios → types/portfolios}/index.d.ts +0 -0
  306. /package/dist/{portfolios → types/portfolios}/types.d.ts +0 -0
  307. /package/dist/{positions → types/positions}/index.d.ts +0 -0
  308. /package/dist/{positions → types/positions}/types.d.ts +0 -0
  309. /package/dist/{products → types/products}/index.d.ts +0 -0
  310. /package/dist/{products → types/products}/types.d.ts +0 -0
  311. /package/dist/{shared → types/shared}/pagination.d.ts +0 -0
  312. /package/dist/{shared → types/shared}/toCamelCase.d.ts +0 -0
  313. /package/dist/{transactions → types/transactions}/index.d.ts +0 -0
  314. /package/dist/{transactions → types/transactions}/types.d.ts +0 -0
  315. /package/dist/{users → types/users}/index.d.ts +0 -0
  316. /package/dist/{users → types/users}/types.d.ts +0 -0
  317. /package/dist/{wallets → types/wallets}/index.d.ts +0 -0
  318. /package/dist/{wallets → types/wallets}/types.d.ts +0 -0
package/dist/client.js CHANGED
@@ -16,10 +16,10 @@ exports.CoinbasePrimeClient = void 0;
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- const dist_1 = require("../../core-ts/dist");
19
+ const core_ts_1 = require("@coinbase-sample/core-ts");
20
20
  const constants_1 = require("./constants");
21
21
  const toCamelCase_1 = require("./shared/toCamelCase");
22
- class CoinbasePrimeClient extends dist_1.CoinbaseClient {
22
+ class CoinbasePrimeClient extends core_ts_1.CoinbaseClient {
23
23
  constructor(credentials, apiBasePath) {
24
24
  super(apiBasePath !== null && apiBasePath !== void 0 ? apiBasePath : constants_1.API_BASE_PATH, credentials, constants_1.USER_AGENT);
25
25
  // transform the response data to camelCase
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
3
+ exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
4
4
  /**
5
5
  * Copyright 2024-present Coinbase Global, Inc.
6
6
  *
@@ -48,6 +48,8 @@ var positions_1 = require("./positions");
48
48
  Object.defineProperty(exports, "PositionsService", { enumerable: true, get: function () { return positions_1.PositionsService; } });
49
49
  var products_1 = require("./products");
50
50
  Object.defineProperty(exports, "ProductsService", { enumerable: true, get: function () { return products_1.ProductsService; } });
51
+ var staking_1 = require("./staking");
52
+ Object.defineProperty(exports, "StakingService", { enumerable: true, get: function () { return staking_1.StakingService; } });
51
53
  var transactions_1 = require("./transactions");
52
54
  Object.defineProperty(exports, "TransactionsService", { enumerable: true, get: function () { return transactions_1.TransactionsService; } });
53
55
  var users_1 = require("./users");
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,30 +9,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AssetService = void 0;
13
- class AssetService {
12
+ exports.StakingService = void 0;
13
+ class StakingService {
14
14
  constructor(client) {
15
15
  this.client = client;
16
16
  }
17
- listAddressBooks(request, options) {
17
+ createStake(request, options) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
+ const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
19
20
  const response = yield this.client.request({
20
- url: `portfolios/${request.portfolioId}/address_book`,
21
+ url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/initiate`,
22
+ queryParams,
21
23
  callOptions: options,
22
24
  });
23
25
  return response.data;
24
26
  });
25
27
  }
26
- createAddressBook(request, options) {
28
+ createUnstake(request, options) {
27
29
  return __awaiter(this, void 0, void 0, function* () {
28
- const bodyParams = Object.assign(Object.assign({}, request), { portfolioId: null });
30
+ const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
29
31
  const response = yield this.client.request({
30
- url: `portfolios/${request.portfolioId}/address_book`,
31
- bodyParams,
32
+ url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/unstake`,
33
+ queryParams,
32
34
  callOptions: options,
33
35
  });
34
36
  return response.data;
35
37
  });
36
38
  }
37
39
  }
38
- exports.AssetService = AssetService;
40
+ exports.StakingService = StakingService;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { CoinbaseClient } from '../../core-ts/dist';
16
+ import { CoinbaseClient } from '@coinbase-sample/core-ts';
17
17
  import { CoinbasePrimeCredentials } from './credentials';
18
18
  export declare class CoinbasePrimeClient extends CoinbaseClient {
19
19
  constructor(credentials?: CoinbasePrimeCredentials, apiBasePath?: string);
@@ -29,6 +29,7 @@ export { PaymentMethodsService, IPaymentMethodsService, } from './paymentMethods
29
29
  export { PortfoliosService, IPortfoliosService } from './portfolios';
30
30
  export { PositionsService, IPositionsService } from './positions';
31
31
  export { ProductsService, IProductsService } from './products';
32
+ export { StakingService, IStakingService } from './staking';
32
33
  export { TransactionsService, ITransactionsService } from './transactions';
33
34
  export { UsersService, IUsersService } from './users';
34
35
  export { WalletsService, IWalletsService } from './wallets';
@@ -47,6 +48,7 @@ export type { GetPaymentMethodRequest, GetPaymentMethodResponse, ListEntityPayme
47
48
  export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, } from './portfolios/types';
48
49
  export type { ListAggregateEntityPositionsRequest, ListAggregateEntityPositionsResponse, ListEntityPositionsRequest, ListEntityPositionsResponse, } from './positions/types';
49
50
  export type { ListProductsRequest, ListProductsResponse, } from './products/types';
51
+ export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, } from './staking/types';
50
52
  export type { CreateConversionRequest, CreateConversionResponse, CreateOnchainTransactionRequest, CreateOnchainTransactionResponse, CreateTransferRequest, CreateTransferResponse, CreateWithdrawalRequest, CreateWithdrawalResponse, GetTransactionRequest, GetTransactionResponse, ListPortfolioTransactionsRequest, ListPortfolioTransactionsResponse, ListWalletTransactionsRequest, ListWalletTransactionsResponse, } from './transactions/types';
51
53
  export type { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse, } from './users/types';
52
54
  export type { CreateWalletRequest, CreateWalletResponse, CreateWalletDepositAddressRequest, CreateWalletDepositAddressResponse, GetWalletDepositInstructionsRequest, GetWalletDepositInstructionsResponse, GetWalletRequest, GetWalletResponse, ListWalletAddressesRequest, ListWalletAddressesResponse, ListWalletsRequest, ListWalletsResponse, } from './wallets/types';
@@ -23,11 +23,19 @@ export type CreateOnchainTransactionRequestEvmParams = {
23
23
  */
24
24
  disableDynamicGas?: boolean;
25
25
  /**
26
- * Transaction ID to replace (for speed-up/cancel operations). Common use cases: 1) Gas Price Adjustments: When a transaction is stuck due to low gas price, a new transaction with the same nonce but higher gas price can be submitted to replace it. 2) Transaction Cancellation: A user might want to cancel a pending transaction by replacing it with a new transaction (often a 0-value transfer to themselves with higher gas price).
26
+ * Option to disable dynamic nonce when creating a transaction. Defaults to false.
27
+ */
28
+ disableDynamicNonce?: boolean;
29
+ /**
30
+ * Transaction ID to replace (for speed-up/cancel operations). Common use cases: 1) Gas Price Adjustments: When a transaction is stuck due to low gas price, a new transaction with the same nonce but higher gas price can be submitted to replace it. 2) Transaction Cancellation: A user might want to cancel a pending transaction by replacing it with a new transaction (often a 0-value transfer to themselves with higher gas price). Note: When using this field, the disable_dynamic_nonce option must be set to false because the nonce will be automatically managed by the system.
27
31
  */
28
32
  replacedTransactionId?: string;
29
33
  /**
30
34
  * Chain ID for EVM transactions. (EVM-only)
31
35
  */
32
36
  chainId?: string;
37
+ /**
38
+ * Network name for EVM transactions. (EVM-only)
39
+ */
40
+ networkName?: string;
33
41
  };
@@ -23,7 +23,7 @@ export type RpcConfig = {
23
23
  */
24
24
  skipBroadcast?: boolean;
25
25
  /**
26
- * Custom blockchain node URL. Currently only usable for Flashbots RPC endpoint for ETH mainnet (https://rpc.flashbots.net/fast).
26
+ * Custom blockchain node RPC URL. (EVM-only)
27
27
  */
28
28
  url?: string;
29
29
  };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { StakingInputs } from './StakingInputs';
21
+ export type StakingInitiateRequest = {
22
+ /**
23
+ * The client generated idempotency key for requested execution. Subsequent requests using the same key will fail
24
+ */
25
+ idempotencyKey: string;
26
+ inputs?: StakingInputs;
27
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ export type StakingInitiateResponse = {
21
+ /**
22
+ * The wallet ID
23
+ */
24
+ walletId: string;
25
+ /**
26
+ * ID of the newly created transaction, can be used to fetch details of the current state of execution
27
+ */
28
+ transactionId: string;
29
+ /**
30
+ * The ID for the activity generated for this request
31
+ */
32
+ activityId: string;
33
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ export type StakingInputs = {
21
+ /**
22
+ * Optional amount to stake or unstake. If omitted, the wallet will stake or unstake the maximum amount available
23
+ */
24
+ amount?: string;
25
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ export type StakingUnstakeResponse = {
21
+ /**
22
+ * The wallet ID
23
+ */
24
+ walletId: string;
25
+ /**
26
+ * ID of the newly created transaction, can be used to fetch details of the current state of execution
27
+ */
28
+ transactionId: string;
29
+ /**
30
+ * The ID for the activity generated for this request
31
+ */
32
+ activityId: string;
33
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
17
+ import { CoinbasePrimeClient } from '../client';
18
+ import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
19
+ import { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse } from './types';
20
+ export interface IStakingService {
21
+ createStake(request: CreateStakeRequest, options?: CoinbaseCallOptions): Promise<CreateStakeResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
22
+ createUnstake(request: CreateUnstakeRequest, options?: CoinbaseCallOptions): Promise<CreateUnstakeResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
23
+ }
24
+ export declare class StakingService implements IStakingService {
25
+ private client;
26
+ constructor(client: CoinbasePrimeClient);
27
+ createStake(request: CreateStakeRequest, options?: CoinbaseCallOptions): Promise<CreateStakeResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
28
+ createUnstake(request: CreateUnstakeRequest, options?: CoinbaseCallOptions): Promise<CreateUnstakeResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
29
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright 2025-present Coinbase Global, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { StakingInitiateResponse } from 'src/model/StakingInitiateResponse';
17
+ import { StakingInitiateRequest } from 'src/model/StakingInitiateRequest';
18
+ import { StakingUnstakeResponse } from 'src/model/StakingUnstakeResponse';
19
+ export type CreateStakeRequest = StakingInitiateRequest & {
20
+ portfolioId: string;
21
+ walletId: string;
22
+ };
23
+ export type CreateStakeResponse = StakingInitiateResponse;
24
+ export type CreateUnstakeRequest = StakingInitiateRequest & {
25
+ portfolioId: string;
26
+ walletId: string;
27
+ };
28
+ export type CreateUnstakeResponse = StakingUnstakeResponse;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@coinbase-sample/prime-sdk-ts",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "main": "dist/index.js",
5
+ "types": "dist/types/index.d.ts",
5
6
  "scripts": {
6
7
  "test": "echo \"Error: no test specified\" && exit 1",
7
8
  "build": "tsc",
@@ -34,6 +35,6 @@
34
35
  "typescript": "^5.8.3"
35
36
  },
36
37
  "dependencies": {
37
- "@coinbase-sample/core-ts": "^0.1.0"
38
+ "@coinbase-sample/core-ts": "^0.1.4"
38
39
  }
39
40
  }
@@ -1,18 +0,0 @@
1
- import { CoinbaseCallOptions } from '../../../core-ts/dist';
2
- import { CoinbasePrimeClient } from '../client';
3
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
4
- import { GetActivityRequest, GetActivityResponse, GetPortfolioActivitiesRequest, GetPortfolioActivityResponse, ListPortfolioActivitiesRequest, ListPortfolioActivitiesResponse, ListEntityActivitiesRequest, ListEntityActivitiesResponse } from '../model/services/activitityService';
5
- export interface ActivitiesService {
6
- getActivity(request: GetActivityRequest): Promise<GetActivityResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- getPortfolioActivity(request: GetPortfolioActivitiesRequest): Promise<GetPortfolioActivityResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
8
- listEntityActivities(request: ListEntityActivitiesRequest): Promise<ListEntityActivitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
9
- listPortfolioActivities(request: ListPortfolioActivitiesRequest): Promise<ListPortfolioActivitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
10
- }
11
- export declare class AssetService implements AssetService {
12
- private client;
13
- constructor(client: CoinbasePrimeClient);
14
- getActivity(request: GetActivityRequest, options?: CoinbaseCallOptions): Promise<GetActivityResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
15
- getPortfolioActivity(request: GetPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioActivityResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
16
- listEntityActivities(request: ListEntityActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListEntityActivitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
17
- listPortfolioActivities(request: ListPortfolioActivitiesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioActivitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
18
- }
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AssetService = void 0;
13
- class AssetService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- getActivity(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `activities/${request.activityId}`,
21
- callOptions: options,
22
- });
23
- return response.data;
24
- });
25
- }
26
- getPortfolioActivity(request, options) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const response = yield this.client.request({
29
- url: `portfolios/${request.portfolioId}/activities/${request.activityId}`,
30
- callOptions: options,
31
- });
32
- return response.data;
33
- });
34
- }
35
- listEntityActivities(request, options) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- const response = yield this.client.request({
38
- url: `entities/${request.entityId}/activities`,
39
- callOptions: options,
40
- });
41
- return response.data;
42
- });
43
- }
44
- listPortfolioActivities(request, options) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- const response = yield this.client.request({
47
- url: `portfolios/${request.portfolioId}/activities/${request.activityId}`,
48
- callOptions: options,
49
- });
50
- return response.data;
51
- });
52
- }
53
- }
54
- exports.AssetService = AssetService;
@@ -1,11 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { ListAddressBooksRequest, ListAddressBooksResponse, CreateAddressBookRequest, CreateAddressBookResponse } from '../model/services/addressBookService';
4
- export interface AssetService {
5
- listAddressBooks(request: ListAddressBooksRequest): Promise<ListAddressBooksResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- createAddressBook(request: CreateAddressBookRequest): Promise<CreateAddressBookResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- }
8
- export declare class AssetService implements AssetService {
9
- private client;
10
- constructor(client: CoinbasePrimeClient);
11
- }
@@ -1,14 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, ListNetAllocationsResponse, GetAllocationRequest, GetAllocationResponse } from '../model/services/allocationService';
4
- export interface AssetService {
5
- createAllocation(request: CreateAllocationRequest): Promise<CreateAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- createNetAllocation(request: CreateNetAllocationRequest): Promise<CreateNetAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- listPortfolioAllocations(request: ListPortfolioAllocationsRequest): Promise<ListPortfolioAllocationsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
8
- listNetAllocations(request: CreateNetAllocationRequest): Promise<ListNetAllocationsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
9
- getAllocation(request: GetAllocationRequest): Promise<GetAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
10
- }
11
- export declare class AssetService implements AssetService {
12
- private client;
13
- constructor(client: CoinbasePrimeClient);
14
- }
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AssetService = void 0;
13
- class AssetService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- createAllocation(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `allocations`,
21
- bodyParams: request,
22
- callOptions: options,
23
- });
24
- return response.data;
25
- });
26
- }
27
- createNetAllocation(request, options) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const response = yield this.client.request({
30
- url: `allocations/net`,
31
- bodyParams: request,
32
- callOptions: options,
33
- });
34
- return response.data;
35
- });
36
- }
37
- listPortfolioAllocations(request, options) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield this.client.request({
40
- url: `portfolios/${request.portfolioId}/allocations`,
41
- callOptions: options,
42
- });
43
- return response.data;
44
- });
45
- }
46
- listNetAllocations(request, options) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- const response = yield this.client.request({
49
- url: `portfolios/${request.portfolioId}/allocations/net/${request.nettingId}`,
50
- callOptions: options,
51
- });
52
- return response.data;
53
- });
54
- }
55
- getAllocation(request, options) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- const response = yield this.client.request({
58
- url: `portfolios/${request.portfolioId}/allocations/${request.allocationId}`,
59
- callOptions: options,
60
- });
61
- return response.data;
62
- });
63
- }
64
- }
65
- exports.AssetService = AssetService;
@@ -1,10 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { ListAssetsRequest, ListAssetsResponse } from '../model/services/assetService';
4
- export interface AssetService {
5
- listAssets(request: ListAssetsRequest): Promise<ListAssetsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- }
7
- export declare class AssetService implements AssetService {
8
- private client;
9
- constructor(client: CoinbasePrimeClient);
10
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AssetService = void 0;
13
- class AssetService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- listAssets(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `entities/${request.entityId}/assets`,
21
- callOptions: options,
22
- });
23
- return response.data;
24
- });
25
- }
26
- }
27
- exports.AssetService = AssetService;
@@ -1,10 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { ListInvoicesRequest, ListInvoicesResponse } from '../model/services/invoiceService';
4
- export interface InvoicesService {
5
- listInvoicess(request: ListInvoicesRequest): Promise<ListInvoicesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- }
7
- export declare class InvoicesService implements InvoicesService {
8
- private client;
9
- constructor(client: CoinbasePrimeClient);
10
- }