@coinbase-sample/prime-sdk-ts 0.3.0 → 0.4.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 (325) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/index.js +18 -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/model/enums/index.js +85 -0
  7. package/dist/{addressBooks/service.js → staking/index.js} +11 -9
  8. package/dist/{activities → types/activities}/index.d.ts +8 -9
  9. package/dist/{activities → types/activities}/types.d.ts +6 -9
  10. package/dist/{addressBooks → types/addressBooks}/index.d.ts +4 -5
  11. package/dist/{addressBooks → types/addressBooks}/types.d.ts +4 -5
  12. package/dist/{allocations → types/allocations}/index.d.ts +10 -11
  13. package/dist/types/allocations/types.d.ts +42 -0
  14. package/dist/{assets → types/assets}/index.d.ts +2 -3
  15. package/dist/{assets → types/assets}/types.d.ts +3 -2
  16. package/dist/{balances → types/balances}/index.d.ts +8 -9
  17. package/dist/{balances → types/balances}/types.d.ts +7 -10
  18. package/dist/{client.d.ts → types/client.d.ts} +1 -1
  19. package/dist/{commission → types/commission}/index.d.ts +2 -3
  20. package/dist/{commission → types/commission}/types.d.ts +3 -2
  21. package/dist/{financing → types/financing}/index.d.ts +24 -25
  22. package/dist/{financing → types/financing}/types.d.ts +14 -23
  23. package/dist/{futures → types/futures}/index.d.ts +12 -13
  24. package/dist/{futures → types/futures}/types.d.ts +8 -13
  25. package/dist/{index.d.ts → types/index.d.ts} +4 -0
  26. package/dist/{invoices → types/invoices}/index.d.ts +2 -3
  27. package/dist/{invoices → types/invoices}/types.d.ts +3 -2
  28. package/dist/{model → types/model}/CreateOnchainTransactionRequestEvmParams.d.ts +9 -1
  29. package/dist/{model → types/model}/RpcConfig.d.ts +1 -1
  30. package/dist/types/model/StakingInitiateRequest.d.ts +27 -0
  31. package/dist/types/model/StakingInitiateResponse.d.ts +33 -0
  32. package/dist/types/model/StakingInputs.d.ts +25 -0
  33. package/dist/types/model/StakingUnstakeResponse.d.ts +33 -0
  34. package/dist/types/model/enums/index.d.ts +41 -0
  35. package/dist/types/model/index.d.ts +167 -0
  36. package/dist/{onchainAddressBook → types/onchainAddressBook}/index.d.ts +8 -9
  37. package/dist/{onchainAddressBook → types/onchainAddressBook}/types.d.ts +6 -7
  38. package/dist/{orders → types/orders}/index.d.ts +20 -21
  39. package/dist/{orders → types/orders}/types.d.ts +13 -26
  40. package/dist/{paymentMethods → types/paymentMethods}/index.d.ts +4 -5
  41. package/dist/{paymentMethods → types/paymentMethods}/types.d.ts +4 -4
  42. package/dist/{portfolios → types/portfolios}/index.d.ts +3 -4
  43. package/dist/{portfolios → types/portfolios}/types.d.ts +5 -6
  44. package/dist/{positions → types/positions}/index.d.ts +4 -5
  45. package/dist/types/positions/types.d.ts +29 -0
  46. package/dist/{products → types/products}/index.d.ts +2 -3
  47. package/dist/{products → types/products}/types.d.ts +3 -2
  48. package/dist/types/shared/brand.d.ts +3 -0
  49. package/dist/types/staking/index.d.ts +28 -0
  50. package/dist/types/staking/types.d.ts +27 -0
  51. package/dist/{transactions → types/transactions}/index.d.ts +14 -15
  52. package/dist/types/transactions/types.d.ts +60 -0
  53. package/dist/{users → types/users}/index.d.ts +4 -5
  54. package/dist/{users → types/users}/types.d.ts +4 -3
  55. package/dist/{wallets → types/wallets}/index.d.ts +12 -13
  56. package/dist/{wallets → types/wallets}/types.d.ts +9 -15
  57. package/package.json +3 -2
  58. package/dist/activities/service.d.ts +0 -18
  59. package/dist/activities/service.js +0 -54
  60. package/dist/addressBooks/service.d.ts +0 -11
  61. package/dist/allocations/service.d.ts +0 -14
  62. package/dist/allocations/service.js +0 -65
  63. package/dist/allocations/types.d.ts +0 -46
  64. package/dist/assets/service.d.ts +0 -10
  65. package/dist/assets/service.js +0 -27
  66. package/dist/invoices/service.d.ts +0 -10
  67. package/dist/invoices/service.js +0 -27
  68. package/dist/model/assets.d.ts +0 -13
  69. package/dist/model/assets.js +0 -2
  70. package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +0 -23
  71. package/dist/model/enums/ActivityType.d.ts +0 -63
  72. package/dist/model/enums/ActivityType.js +0 -67
  73. package/dist/model/services/activitityService.d.ts +0 -33
  74. package/dist/model/services/addressBookService.d.ts +0 -14
  75. package/dist/model/services/allocationService.d.ts +0 -24
  76. package/dist/model/services/allocationService.js +0 -2
  77. package/dist/model/services/assetService.d.ts +0 -5
  78. package/dist/model/services/assetService.js +0 -2
  79. package/dist/model/services/balanceService.d.ts +0 -24
  80. package/dist/model/services/balanceService.js +0 -2
  81. package/dist/model/services/commissionService.d.ts +0 -5
  82. package/dist/model/services/commissionService.js +0 -2
  83. package/dist/model/services/invoiceService.d.ts +0 -5
  84. package/dist/model/services/invoiceService.js +0 -2
  85. package/dist/model/services/orderService.d.ts +0 -62
  86. package/dist/model/services/orderService.js +0 -2
  87. package/dist/model/services/pagination.d.ts +0 -9
  88. package/dist/model/services/pagination.js +0 -2
  89. package/dist/model/services/paymentMethodsService.d.ts +0 -10
  90. package/dist/model/services/paymentMethodsService.js +0 -2
  91. package/dist/model/services/portfolioService.d.ts +0 -15
  92. package/dist/model/services/portfolioService.js +0 -2
  93. package/dist/model/services/productService.d.ts +0 -6
  94. package/dist/model/services/productService.js +0 -2
  95. package/dist/model/services/shared.d.ts +0 -6
  96. package/dist/model/services/shared.js +0 -2
  97. package/dist/model/services/transactionService.d.ts +0 -47
  98. package/dist/model/services/transactionService.js +0 -2
  99. package/dist/model/services/usersService.d.ts +0 -9
  100. package/dist/model/services/usersService.js +0 -2
  101. package/dist/model/services/walletService.d.ts +0 -27
  102. package/dist/model/services/walletService.js +0 -2
  103. package/dist/onchainAddressGroups/index.d.ts +0 -27
  104. package/dist/onchainAddressGroups/index.js +0 -27
  105. package/dist/onchainAddressGroups/types.d.ts +0 -20
  106. package/dist/paymentMethods/service.d.ts +0 -11
  107. package/dist/paymentMethods/service.js +0 -36
  108. package/dist/portfolio/service.d.ts +0 -12
  109. package/dist/portfolio/service.js +0 -42
  110. package/dist/positions/types.d.ts +0 -14
  111. package/dist/transactions/types.d.ts +0 -69
  112. package/dist/users/service.d.ts +0 -11
  113. package/dist/users/service.js +0 -36
  114. /package/dist/model/{changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js → Portfolio.js} +0 -0
  115. /package/dist/model/{portfolio.js → StakingInitiateRequest.js} +0 -0
  116. /package/dist/model/{services/activitityService.js → index.js} +0 -0
  117. /package/dist/{model/services/addressBookService.js → shared/brand.js} +0 -0
  118. /package/dist/{onchainAddressGroups → staking}/types.js +0 -0
  119. /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
  120. /package/dist/{credentials → types/credentials}/index.d.ts +0 -0
  121. /package/dist/{errors → types/errors}/index.d.ts +0 -0
  122. /package/dist/{model → types/model}/AcceptQuoteRequest.d.ts +0 -0
  123. /package/dist/{model → types/model}/AcceptQuoteResponse.d.ts +0 -0
  124. /package/dist/{model → types/model}/Accrual.d.ts +0 -0
  125. /package/dist/{model → types/model}/Activity.d.ts +0 -0
  126. /package/dist/{model → types/model}/ActivityCreationResponse.d.ts +0 -0
  127. /package/dist/{model → types/model}/ActivityMetadataAccount.d.ts +0 -0
  128. /package/dist/{model → types/model}/ActivityMetadataConsensus.d.ts +0 -0
  129. /package/dist/{model → types/model}/ActivityMetadataTransactions.d.ts +0 -0
  130. /package/dist/{model → types/model}/AddressBookEntry.d.ts +0 -0
  131. /package/dist/{model → types/model}/AddressEntry.d.ts +0 -0
  132. /package/dist/{model → types/model}/AddressGroup.d.ts +0 -0
  133. /package/dist/{model → types/model}/AggregatedFiatBalance.d.ts +0 -0
  134. /package/dist/{model → types/model}/Allocation.d.ts +0 -0
  135. /package/dist/{model → types/model}/AllocationLeg.d.ts +0 -0
  136. /package/dist/{model → types/model}/AmountDue.d.ts +0 -0
  137. /package/dist/{model → types/model}/Asset.d.ts +0 -0
  138. /package/dist/{model → types/model}/AssetBalance.d.ts +0 -0
  139. /package/dist/{model → types/model}/AssetChange.d.ts +0 -0
  140. /package/dist/{model → types/model}/Balance.d.ts +0 -0
  141. /package/dist/{model → types/model}/BlockchainAddress.d.ts +0 -0
  142. /package/dist/{model → types/model}/BuyingPower.d.ts +0 -0
  143. /package/dist/{model → types/model}/CancelFuturesSweepResponse.d.ts +0 -0
  144. /package/dist/{model → types/model}/CancelOrderResponse.d.ts +0 -0
  145. /package/dist/{model → types/model}/Commission.d.ts +0 -0
  146. /package/dist/{model → types/model}/Conversion.d.ts +0 -0
  147. /package/dist/{model → types/model}/ConversionDetail.d.ts +0 -0
  148. /package/dist/{model → types/model}/CreateAddressGroup.d.ts +0 -0
  149. /package/dist/{model → types/model}/CreateAllocationRequest.d.ts +0 -0
  150. /package/dist/{model → types/model}/CreateAllocationResponse.d.ts +0 -0
  151. /package/dist/{model → types/model}/CreateAllocationResponseBody.d.ts +0 -0
  152. /package/dist/{model → types/model}/CreateConversionRequest.d.ts +0 -0
  153. /package/dist/{model → types/model}/CreateConversionResponse.d.ts +0 -0
  154. /package/dist/{model → types/model}/CreateNetAllocationResponse.d.ts +0 -0
  155. /package/dist/{model → types/model}/CreateNetAllocationResponseBody.d.ts +0 -0
  156. /package/dist/{model → types/model}/CreateNewLocatesRequest.d.ts +0 -0
  157. /package/dist/{model → types/model}/CreateNewLocatesResponse.d.ts +0 -0
  158. /package/dist/{model → types/model}/CreateOnchainTransactionRequest.d.ts +0 -0
  159. /package/dist/{model → types/model}/CreateOnchainTransactionResponse.d.ts +0 -0
  160. /package/dist/{model → types/model}/CreateOrderRequest.d.ts +0 -0
  161. /package/dist/{model → types/model}/CreateOrderResponse.d.ts +0 -0
  162. /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryRequest.d.ts +0 -0
  163. /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryResponse.d.ts +0 -0
  164. /package/dist/{model → types/model}/CreateWalletRequest.d.ts +0 -0
  165. /package/dist/{model → types/model}/CreateWalletResponse.d.ts +0 -0
  166. /package/dist/{model → types/model}/CreateWalletTransferResponse.d.ts +0 -0
  167. /package/dist/{model → types/model}/CreateWalletWithdrawalRequest.d.ts +0 -0
  168. /package/dist/{model → types/model}/CreateWalletWithdrawalResponse.d.ts +0 -0
  169. /package/dist/{model → types/model}/DefiBalance.d.ts +0 -0
  170. /package/dist/{model → types/model}/DestinationAlloc.d.ts +0 -0
  171. /package/dist/{model → types/model}/DisplayUser.d.ts +0 -0
  172. /package/dist/{model → types/model}/EntityBalance.d.ts +0 -0
  173. /package/dist/{model → types/model}/EntityUser.d.ts +0 -0
  174. /package/dist/{model → types/model}/EstimatedNetworkFees.d.ts +0 -0
  175. /package/dist/{model → types/model}/ExistingLocate.d.ts +0 -0
  176. /package/dist/{model → types/model}/FcmFuturesSweep.d.ts +0 -0
  177. /package/dist/{model → types/model}/FcmFuturesSweepRequestAmount.d.ts +0 -0
  178. /package/dist/{model → types/model}/FcmPosition.d.ts +0 -0
  179. /package/dist/{model → types/model}/Fill.d.ts +0 -0
  180. /package/dist/{model → types/model}/GetActivityResponse.d.ts +0 -0
  181. /package/dist/{model → types/model}/GetAllocationResponse.d.ts +0 -0
  182. /package/dist/{model → types/model}/GetAllocationsByClientNettingIdResponse.d.ts +0 -0
  183. /package/dist/{model → types/model}/GetBuyingPowerResponse.d.ts +0 -0
  184. /package/dist/{model → types/model}/GetEntityActivitiesResponse.d.ts +0 -0
  185. /package/dist/{model → types/model}/GetEntityAssetsResponse.d.ts +0 -0
  186. /package/dist/{model → types/model}/GetEntityPaymentMethodDetailsResponse.d.ts +0 -0
  187. /package/dist/{model → types/model}/GetEntityPaymentMethodsResponse.d.ts +0 -0
  188. /package/dist/{model → types/model}/GetEntityUsersResponse.d.ts +0 -0
  189. /package/dist/{model → types/model}/GetExistingLocatesResponse.d.ts +0 -0
  190. /package/dist/{model → types/model}/GetFcmBalanceResponse.d.ts +0 -0
  191. /package/dist/{model → types/model}/GetFuturesSweepsResponse.d.ts +0 -0
  192. /package/dist/{model → types/model}/GetInterestAccrualsResponse.d.ts +0 -0
  193. /package/dist/{model → types/model}/GetInvoicesResponse.d.ts +0 -0
  194. /package/dist/{model → types/model}/GetLocateAvailabilitiesResponse.d.ts +0 -0
  195. /package/dist/{model → types/model}/GetMarginConversionsResponse.d.ts +0 -0
  196. /package/dist/{model → types/model}/GetMarginInformationResponse.d.ts +0 -0
  197. /package/dist/{model → types/model}/GetMarginSummariesResponse.d.ts +0 -0
  198. /package/dist/{model → types/model}/GetOpenOrdersResponse.d.ts +0 -0
  199. /package/dist/{model → types/model}/GetOrderFillsResponse.d.ts +0 -0
  200. /package/dist/{model → types/model}/GetOrderResponse.d.ts +0 -0
  201. /package/dist/{model → types/model}/GetOrdersResponse.d.ts +0 -0
  202. /package/dist/{model → types/model}/GetPortfolioActivitiesResponse.d.ts +0 -0
  203. /package/dist/{model → types/model}/GetPortfolioActivityResponse.d.ts +0 -0
  204. /package/dist/{model → types/model}/GetPortfolioAddressBookResponse.d.ts +0 -0
  205. /package/dist/{model → types/model}/GetPortfolioAllocationsResponse.d.ts +0 -0
  206. /package/dist/{model → types/model}/GetPortfolioBalancesResponse.d.ts +0 -0
  207. /package/dist/{model → types/model}/GetPortfolioCommissionResponse.d.ts +0 -0
  208. /package/dist/{model → types/model}/GetPortfolioFillsResponse.d.ts +0 -0
  209. /package/dist/{model → types/model}/GetPortfolioInterestAccrualsResponse.d.ts +0 -0
  210. /package/dist/{model → types/model}/GetPortfolioProductsResponse.d.ts +0 -0
  211. /package/dist/{model → types/model}/GetPortfolioResponse.d.ts +0 -0
  212. /package/dist/{model → types/model}/GetPortfolioTransactionsResponse.d.ts +0 -0
  213. /package/dist/{model → types/model}/GetPortfolioUsersResponse.d.ts +0 -0
  214. /package/dist/{model → types/model}/GetPortfoliosResponse.d.ts +0 -0
  215. /package/dist/{model → types/model}/GetPositionsResponse.d.ts +0 -0
  216. /package/dist/{model → types/model}/GetPostTradeCreditResponse.d.ts +0 -0
  217. /package/dist/{model → types/model}/GetTFTieredPricingFeesResponse.d.ts +0 -0
  218. /package/dist/{model → types/model}/GetTransactionResponse.d.ts +0 -0
  219. /package/dist/{model → types/model}/GetWalletAddressesResponse.d.ts +0 -0
  220. /package/dist/{model → types/model}/GetWalletBalanceResponse.d.ts +0 -0
  221. /package/dist/{model → types/model}/GetWalletDepositInstructionsResponse.d.ts +0 -0
  222. /package/dist/{model → types/model}/GetWalletResponse.d.ts +0 -0
  223. /package/dist/{model → types/model}/GetWalletTransactionsResponse.d.ts +0 -0
  224. /package/dist/{model → types/model}/GetWalletsResponse.d.ts +0 -0
  225. /package/dist/{model → types/model}/GetWithdrawalPowerResponse.d.ts +0 -0
  226. /package/dist/{model → types/model}/Invoice.d.ts +0 -0
  227. /package/dist/{model → types/model}/InvoiceItem.d.ts +0 -0
  228. /package/dist/{model → types/model}/ListAggregateEntityPositionsResponse.d.ts +0 -0
  229. /package/dist/{model → types/model}/ListEntityBalancesResponse.d.ts +0 -0
  230. /package/dist/{model → types/model}/ListEntityPositionsResponse.d.ts +0 -0
  231. /package/dist/{model → types/model}/ListOnchainAddressGroupsResponse.d.ts +0 -0
  232. /package/dist/{model → types/model}/ListWeb3WalletBalancesResponse.d.ts +0 -0
  233. /package/dist/{model → types/model}/LoanInfo.d.ts +0 -0
  234. /package/dist/{model → types/model}/Locate.d.ts +0 -0
  235. /package/dist/{model → types/model}/MarginAddOn.d.ts +0 -0
  236. /package/dist/{model → types/model}/MarginCallRecord.d.ts +0 -0
  237. /package/dist/{model → types/model}/MarginInformation.d.ts +0 -0
  238. /package/dist/{model → types/model}/MarginSummary.d.ts +0 -0
  239. /package/dist/{model → types/model}/MarginSummaryHistorical.d.ts +0 -0
  240. /package/dist/{model → types/model}/MarketRate.d.ts +0 -0
  241. /package/dist/{model → types/model}/MatchMetadata.d.ts +0 -0
  242. /package/dist/{model → types/model}/NFTCollection.d.ts +0 -0
  243. /package/dist/{model → types/model}/NFTItem.d.ts +0 -0
  244. /package/dist/{model → types/model}/Network.d.ts +0 -0
  245. /package/dist/{model → types/model}/NetworkDetails.d.ts +0 -0
  246. /package/dist/{model → types/model}/OnchainTransactionDetails.d.ts +0 -0
  247. /package/dist/{model → types/model}/Order.d.ts +0 -0
  248. /package/dist/{model → types/model}/OrderPreviewRequest.d.ts +0 -0
  249. /package/dist/{model → types/model}/PMAssetInfo.d.ts +0 -0
  250. /package/dist/{model → types/model}/PaginatedResponse.d.ts +0 -0
  251. /package/dist/{model → types/model}/PaymentMethodDestination.d.ts +0 -0
  252. /package/dist/{model → types/model}/PaymentMethodDetails.d.ts +0 -0
  253. /package/dist/{model → types/model}/PaymentMethodSummary.d.ts +0 -0
  254. /package/dist/{model/portfolio.d.ts → types/model/Portfolio.d.ts} +0 -0
  255. /package/dist/{model → types/model}/PortfolioUser.d.ts +0 -0
  256. /package/dist/{model → types/model}/Position.d.ts +0 -0
  257. /package/dist/{model → types/model}/PositionReference.d.ts +0 -0
  258. /package/dist/{model → types/model}/PostOrderPreviewResponse.d.ts +0 -0
  259. /package/dist/{model → types/model}/PostTradeCreditInformation.d.ts +0 -0
  260. /package/dist/{model → types/model}/Product.d.ts +0 -0
  261. /package/dist/{model → types/model}/QuoteResponse.d.ts +0 -0
  262. /package/dist/{model → types/model}/RFQ.d.ts +0 -0
  263. /package/dist/{model → types/model}/RFQProductDetails.d.ts +0 -0
  264. /package/dist/{model → types/model}/RiskAssessment.d.ts +0 -0
  265. /package/dist/{model → types/model}/ScheduleFuturesSweepRequest.d.ts +0 -0
  266. /package/dist/{model → types/model}/ScheduleFuturesSweepResponse.d.ts +0 -0
  267. /package/dist/{model → types/model}/SetAutoSweepRequest.d.ts +0 -0
  268. /package/dist/{model → types/model}/SetAutoSweepResponse.d.ts +0 -0
  269. /package/dist/{model → types/model}/ShortCollateral.d.ts +0 -0
  270. /package/dist/{model → types/model}/TieredPricingFee.d.ts +0 -0
  271. /package/dist/{model → types/model}/Transaction.d.ts +0 -0
  272. /package/dist/{model → types/model}/TransactionMetadata.d.ts +0 -0
  273. /package/dist/{model → types/model}/TransferLocation.d.ts +0 -0
  274. /package/dist/{model → types/model}/UserAction.d.ts +0 -0
  275. /package/dist/{model → types/model}/Wallet.d.ts +0 -0
  276. /package/dist/{model → types/model}/WalletCryptoDepositInstructions.d.ts +0 -0
  277. /package/dist/{model → types/model}/WalletFiatDepositInstructions.d.ts +0 -0
  278. /package/dist/{model → types/model}/Web3Asset.d.ts +0 -0
  279. /package/dist/{model → types/model}/Web3Balance.d.ts +0 -0
  280. /package/dist/{model → types/model}/Web3TransactionMetadata.d.ts +0 -0
  281. /package/dist/{model → types/model}/WithdrawalPower.d.ts +0 -0
  282. /package/dist/{model → types/model}/createATransferBetweenTwoWallets.d.ts +0 -0
  283. /package/dist/{model → types/model}/enums/Action.d.ts +0 -0
  284. /package/dist/{model → types/model}/enums/ActivityCategory.d.ts +0 -0
  285. /package/dist/{model → types/model}/enums/ActivityLevel.d.ts +0 -0
  286. /package/dist/{model → types/model}/enums/ActivitySecondaryType.d.ts +0 -0
  287. /package/dist/{model → types/model}/enums/ActivityStatus.d.ts +0 -0
  288. /package/dist/{model → types/model}/enums/AddressBookType.d.ts +0 -0
  289. /package/dist/{model → types/model}/enums/AllocationSizeType.d.ts +0 -0
  290. /package/dist/{model → types/model}/enums/AllocationStatus.d.ts +0 -0
  291. /package/dist/{model → types/model}/enums/AssetChangeType.d.ts +0 -0
  292. /package/dist/{model → types/model}/enums/Benchmark.d.ts +0 -0
  293. /package/dist/{model → types/model}/enums/CustodyActivityType.d.ts +0 -0
  294. /package/dist/{model → types/model}/enums/DestinationType.d.ts +0 -0
  295. /package/dist/{model → types/model}/enums/FcmFuturesSweepStatus.d.ts +0 -0
  296. /package/dist/{model → types/model}/enums/FcmPositionSide.d.ts +0 -0
  297. /package/dist/{model → types/model}/enums/HierarchyType.d.ts +0 -0
  298. /package/dist/{model → types/model}/enums/InvoiceState.d.ts +0 -0
  299. /package/dist/{model → types/model}/enums/InvoiceType.d.ts +0 -0
  300. /package/dist/{model → types/model}/enums/LoanType.d.ts +0 -0
  301. /package/dist/{model → types/model}/enums/MarginAddOnType.d.ts +0 -0
  302. /package/dist/{model → types/model}/enums/NetworkFamily.d.ts +0 -0
  303. /package/dist/{model → types/model}/enums/NetworkType.d.ts +0 -0
  304. /package/dist/{model → types/model}/enums/OrderSide.d.ts +0 -0
  305. /package/dist/{model → types/model}/enums/OrderStatus.d.ts +0 -0
  306. /package/dist/{model → types/model}/enums/OrderType.d.ts +0 -0
  307. /package/dist/{model → types/model}/enums/PaymentMethodType.d.ts +0 -0
  308. /package/dist/{model → types/model}/enums/PortfolioBalanceType.d.ts +0 -0
  309. /package/dist/{model → types/model}/enums/PositionReferenceType.d.ts +0 -0
  310. /package/dist/{model → types/model}/enums/PrimeActivityType.d.ts +0 -0
  311. /package/dist/{model → types/model}/enums/ProductPermissions.d.ts +0 -0
  312. /package/dist/{model → types/model}/enums/RateType.d.ts +0 -0
  313. /package/dist/{model → types/model}/enums/SigningStatus.d.ts +0 -0
  314. /package/dist/{model → types/model}/enums/SortDirection.d.ts +0 -0
  315. /package/dist/{model → types/model}/enums/TimeInForceType.d.ts +0 -0
  316. /package/dist/{model → types/model}/enums/TransactionStatus.d.ts +0 -0
  317. /package/dist/{model → types/model}/enums/TransactionType.d.ts +0 -0
  318. /package/dist/{model → types/model}/enums/TransferLocationType.d.ts +0 -0
  319. /package/dist/{model → types/model}/enums/UserRole.d.ts +0 -0
  320. /package/dist/{model → types/model}/enums/VisibilityStatus.d.ts +0 -0
  321. /package/dist/{model → types/model}/enums/WalletDepositInstructionType.d.ts +0 -0
  322. /package/dist/{model → types/model}/enums/WalletType.d.ts +0 -0
  323. /package/dist/{model → types/model}/enums/WalletVisibility.d.ts +0 -0
  324. /package/dist/{shared → types/shared}/pagination.d.ts +0 -0
  325. /package/dist/{shared → types/shared}/toCamelCase.d.ts +0 -0
@@ -15,35 +15,34 @@
15
15
  */
16
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
17
17
  import { CoinbasePrimeClient } from '../client';
18
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
19
18
  import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse } from './types';
20
19
  export interface IFinancingService {
21
- listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
22
- listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
23
- listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
24
- listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
25
- listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
26
- getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
27
- getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
28
- getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
29
- getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
30
- getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
31
- getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
32
- createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
20
+ listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse>;
21
+ listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse>;
22
+ listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse>;
23
+ listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse>;
24
+ listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse>;
25
+ getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse>;
26
+ getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse>;
27
+ getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse>;
28
+ getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse>;
29
+ getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse>;
30
+ getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse>;
31
+ createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
33
32
  }
34
33
  export declare class FinancingService implements IFinancingService {
35
34
  private client;
36
35
  constructor(client: CoinbasePrimeClient);
37
- listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
38
- listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
39
- listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
40
- listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
41
- listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
42
- getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
43
- getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
44
- getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
45
- getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
46
- getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
47
- getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
48
- createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
36
+ listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse>;
37
+ listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse>;
38
+ listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse>;
39
+ listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse>;
40
+ listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse>;
41
+ getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse>;
42
+ getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse>;
43
+ getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse>;
44
+ getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse>;
45
+ getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse>;
46
+ getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse>;
47
+ createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
49
48
  }
@@ -13,82 +13,73 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { GetExistingLocatesResponse } from '../model/GetExistingLocatesResponse';
17
- import { GetInterestAccrualsResponse } from '../model/GetInterestAccrualsResponse';
18
- import { GetLocateAvailabilitiesResponse } from '../model/GetLocateAvailabilitiesResponse';
19
- import { GetMarginConversionsResponse } from '../model/GetMarginConversionsResponse';
20
- import { GetMarginSummariesResponse } from '../model/GetMarginSummariesResponse';
21
- import { GetMarginInformationResponse as internalGetMarginInformationResponse } from '../model/GetMarginInformationResponse';
22
- import { GetBuyingPowerResponse } from '../model/GetBuyingPowerResponse';
23
- import { GetPostTradeCreditResponse } from '../model/GetPostTradeCreditResponse';
24
- import { GetTFTieredPricingFeesResponse } from '../model/GetTFTieredPricingFeesResponse';
25
- import { GetWithdrawalPowerResponse } from '../model/GetWithdrawalPowerResponse';
26
- import { CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/CreateNewLocatesResponse';
16
+ import { Brand } from 'src/shared/brand';
17
+ import { GetExistingLocatesResponse, GetInterestAccrualsResponse, GetLocateAvailabilitiesResponse, GetMarginConversionsResponse, GetMarginSummariesResponse, GetMarginInformationResponse as internalGetMarginInformationResponse, GetBuyingPowerResponse, GetPostTradeCreditResponse, GetTFTieredPricingFeesResponse, GetWithdrawalPowerResponse, CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/';
27
18
  export type ListExistingLocatesRequest = {
28
19
  portfolioId: string;
29
20
  locateIds?: string[];
30
21
  conversionDate?: string;
31
22
  locateDate?: string;
32
23
  };
33
- export type ListExistingLocatesResponse = GetExistingLocatesResponse;
24
+ export type ListExistingLocatesResponse = Brand<GetExistingLocatesResponse, 'ListExistingLocatesResponse'>;
34
25
  export type ListInterestAccrualsRequest = {
35
26
  entityId: string;
36
27
  portfolioId?: string;
37
28
  startDate?: string;
38
29
  endDate?: string;
39
30
  };
40
- export type ListInterestAccrualsResponse = GetInterestAccrualsResponse;
31
+ export type ListInterestAccrualsResponse = Brand<GetInterestAccrualsResponse, 'ListInterestAccrualsResponse'>;
41
32
  export type ListPortfolioInterestAccrualsRequest = {
42
33
  portfolioId: string;
43
34
  startDate?: string;
44
35
  endDate?: string;
45
36
  };
46
- export type ListPortfolioInterestAccrualsResponse = GetInterestAccrualsResponse;
37
+ export type ListPortfolioInterestAccrualsResponse = Brand<GetInterestAccrualsResponse, 'ListPortfolioInterestAccrualsResponse'>;
47
38
  export type ListMarginCallSummariesRequest = {
48
39
  entityId: string;
49
40
  startDate?: string;
50
41
  endDate?: string;
51
42
  };
52
- export type ListMarginCallSummariesResponse = GetMarginSummariesResponse;
43
+ export type ListMarginCallSummariesResponse = Brand<GetMarginSummariesResponse, 'ListMarginCallSummariesResponse'>;
53
44
  export type ListMarginConversionsRequest = {
54
45
  portfolioId: string;
55
46
  startDate?: string;
56
47
  endDate?: string;
57
48
  };
58
- export type ListMarginConversionsResponse = GetMarginConversionsResponse;
49
+ export type ListMarginConversionsResponse = Brand<GetMarginConversionsResponse, 'ListMarginConversionsResponse'>;
59
50
  export type GetEntityLocateAvailabilitiesRequest = {
60
51
  entityId: string;
61
52
  locateDate?: string;
62
53
  };
63
- export type GetEntityLocateAvailabilitiesResponse = GetLocateAvailabilitiesResponse;
54
+ export type GetEntityLocateAvailabilitiesResponse = Brand<GetLocateAvailabilitiesResponse, 'GetEntityLocateAvailabilitiesResponse'>;
64
55
  export type GetMarginInformationRequest = {
65
56
  entityId: string;
66
57
  };
67
- export type GetMarginInformationResponse = internalGetMarginInformationResponse;
58
+ export type GetMarginInformationResponse = Brand<internalGetMarginInformationResponse, 'GetMarginInformationResponse'>;
68
59
  export type GetPortfolioBuyingPowerRequest = {
69
60
  portfolioId: string;
70
61
  baseCurrency: string;
71
62
  quoteCurrency: string;
72
63
  };
73
- export type GetPortfolioBuyingPowerResponse = GetBuyingPowerResponse;
64
+ export type GetPortfolioBuyingPowerResponse = Brand<GetBuyingPowerResponse, 'GetPortfolioBuyingPowerResponse'>;
74
65
  export type GetPortfolioCreditInformationRequest = {
75
66
  portfolioId: string;
76
67
  };
77
- export type GetPortfolioCreditInformationResponse = GetPostTradeCreditResponse;
68
+ export type GetPortfolioCreditInformationResponse = Brand<GetPostTradeCreditResponse, 'GetPortfolioCreditInformationResponse'>;
78
69
  export type GetPortfolioWithdrawalPowerRequest = {
79
70
  portfolioId: string;
80
71
  symbol: string;
81
72
  };
82
- export type GetPortfolioWithdrawalPowerResponse = GetWithdrawalPowerResponse;
73
+ export type GetPortfolioWithdrawalPowerResponse = Brand<GetWithdrawalPowerResponse, 'GetPortfolioWithdrawalPowerResponse'>;
83
74
  export type GetTieredPricingFeesRequest = {
84
75
  entityId: string;
85
76
  effectiveAt?: string;
86
77
  };
87
- export type GetTieredPricingFeesResponse = GetTFTieredPricingFeesResponse;
78
+ export type GetTieredPricingFeesResponse = Brand<GetTFTieredPricingFeesResponse, 'GetTieredPricingFeesResponse'>;
88
79
  export type CreateNewLocatesRequest = {
89
80
  portfolioId: string;
90
81
  symbol?: string;
91
82
  amount?: string;
92
83
  locateDate?: string;
93
84
  };
94
- export type CreateNewLocatesResponse = internalCreateNewLocatesResponse;
85
+ export type CreateNewLocatesResponse = Brand<internalCreateNewLocatesResponse, 'CreateNewLocatesResponse'>;
@@ -15,23 +15,22 @@
15
15
  */
16
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
17
17
  import { CoinbasePrimeClient } from '../client';
18
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
19
18
  import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse } from './types';
20
19
  export interface IFuturesService {
21
- listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
22
- getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
23
- getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
24
- scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
25
- updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
26
- cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
20
+ listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse>;
21
+ getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse>;
22
+ getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse>;
23
+ scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse>;
24
+ updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse>;
25
+ cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse>;
27
26
  }
28
27
  export declare class FuturesService implements IFuturesService {
29
28
  private client;
30
29
  constructor(client: CoinbasePrimeClient);
31
- listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
32
- getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
33
- getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
34
- scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
35
- updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
36
- cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
30
+ listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse>;
31
+ getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse>;
32
+ getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse>;
33
+ scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse>;
34
+ updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse>;
35
+ cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse>;
37
36
  }
@@ -13,36 +13,31 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { GetFcmBalanceResponse } from '../model/GetFcmBalanceResponse';
17
- import { GetFuturesSweepsResponse } from '../model/GetFuturesSweepsResponse';
18
- import { GetPositionsResponse } from '../model/GetPositionsResponse';
19
- import { SetAutoSweepResponse } from '../model/SetAutoSweepResponse';
20
- import { ScheduleFuturesSweepRequest } from '../model/ScheduleFuturesSweepRequest';
21
- import { ScheduleFuturesSweepResponse } from '../model/ScheduleFuturesSweepResponse';
22
- import { CancelFuturesSweepResponse } from '../model/CancelFuturesSweepResponse';
16
+ import { Brand } from 'src/shared/brand';
17
+ import { GetFcmBalanceResponse, GetFuturesSweepsResponse, GetPositionsResponse, SetAutoSweepResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesSweepResponse } from '../model/';
23
18
  export type ListEntityFuturesSweepsRequest = {
24
19
  entityId: string;
25
20
  };
26
- export type ListEntityFuturesSweepsResponse = GetFuturesSweepsResponse;
21
+ export type ListEntityFuturesSweepsResponse = Brand<GetFuturesSweepsResponse, 'ListEntityFuturesSweepsResponse'>;
27
22
  export type GetEntityFuturesBalanceRequest = {
28
23
  entityId: string;
29
24
  };
30
- export type GetEntityFuturesBalanceResponse = GetFcmBalanceResponse;
25
+ export type GetEntityFuturesBalanceResponse = Brand<GetFcmBalanceResponse, 'GetEntityFuturesBalanceResponse'>;
31
26
  export type GetEntityFuturesPositionsRequest = {
32
27
  entityId: string;
33
28
  productId?: string;
34
29
  };
35
- export type GetEntityFuturesPositionsResponse = GetPositionsResponse;
30
+ export type GetEntityFuturesPositionsResponse = Brand<GetPositionsResponse, 'GetEntityFuturesPositionsResponse'>;
36
31
  export type UpdateEntityFuturesAutoSweepRequest = {
37
32
  entityId: string;
38
33
  autoSweep: boolean;
39
34
  };
40
- export type UpdateEntityFuturesAutoSweepResponse = SetAutoSweepResponse;
35
+ export type UpdateEntityFuturesAutoSweepResponse = Brand<SetAutoSweepResponse, 'UpdateEntityFuturesAutoSweepResponse'>;
41
36
  export type ScheduleEntityFuturesSweepRequest = ScheduleFuturesSweepRequest & {
42
37
  entityId: string;
43
38
  };
44
- export type ScheduleEntityFuturesSweepResponse = ScheduleFuturesSweepResponse;
39
+ export type ScheduleEntityFuturesSweepResponse = Brand<ScheduleFuturesSweepResponse, 'ScheduleEntityFuturesSweepResponse'>;
45
40
  export type CancelEntitySweepRequest = {
46
41
  entityId: string;
47
42
  };
48
- export type CancelEntitySweepResponse = CancelFuturesSweepResponse;
43
+ export type CancelEntitySweepResponse = Brand<CancelFuturesSweepResponse, 'CancelEntitySweepResponse'>;
@@ -29,9 +29,12 @@ 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';
36
+ export type * from './model/';
37
+ export * from './model/enums/';
35
38
  export type { GetActivityRequest, GetActivityResponse, GetPortfolioActivitiesRequest, GetPortfolioActivityResponse, ListEntityActivitiesRequest, ListEntityActivitiesResponse, ListPortfolioActivitiesRequest, ListPortfolioActivitiesResponse, } from './activities/types';
36
39
  export type { CreateAddressBookRequest, CreateAddressBookResponse, ListAddressBooksRequest, ListAddressBooksResponse, } from './addressBooks/types';
37
40
  export type { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListNetAllocationsRequest, ListNetAllocationsResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, GetAllocationRequest, GetAllocationResponse, } from './allocations/types';
@@ -47,6 +50,7 @@ export type { GetPaymentMethodRequest, GetPaymentMethodResponse, ListEntityPayme
47
50
  export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, } from './portfolios/types';
48
51
  export type { ListAggregateEntityPositionsRequest, ListAggregateEntityPositionsResponse, ListEntityPositionsRequest, ListEntityPositionsResponse, } from './positions/types';
49
52
  export type { ListProductsRequest, ListProductsResponse, } from './products/types';
53
+ export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, } from './staking/types';
50
54
  export type { CreateConversionRequest, CreateConversionResponse, CreateOnchainTransactionRequest, CreateOnchainTransactionResponse, CreateTransferRequest, CreateTransferResponse, CreateWithdrawalRequest, CreateWithdrawalResponse, GetTransactionRequest, GetTransactionResponse, ListPortfolioTransactionsRequest, ListPortfolioTransactionsResponse, ListWalletTransactionsRequest, ListWalletTransactionsResponse, } from './transactions/types';
51
55
  export type { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse, } from './users/types';
52
56
  export type { CreateWalletRequest, CreateWalletResponse, CreateWalletDepositAddressRequest, CreateWalletDepositAddressResponse, GetWalletDepositInstructionsRequest, GetWalletDepositInstructionsResponse, GetWalletRequest, GetWalletResponse, ListWalletAddressesRequest, ListWalletAddressesResponse, ListWalletsRequest, ListWalletsResponse, } from './wallets/types';
@@ -15,13 +15,12 @@
15
15
  */
16
16
  import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
17
17
  import { CoinbasePrimeClient } from '../client';
18
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
19
18
  import { ListInvoicesRequest, ListInvoicesResponse } from './types';
20
19
  export interface IInvoicesService {
21
- listInvoicess(request: ListInvoicesRequest, options?: CoinbaseCallOptions): Promise<ListInvoicesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
20
+ listInvoicess(request: ListInvoicesRequest, options?: CoinbaseCallOptions): Promise<ListInvoicesResponse>;
22
21
  }
23
22
  export declare class InvoicesService implements IInvoicesService {
24
23
  private client;
25
24
  constructor(client: CoinbasePrimeClient);
26
- listInvoicess(request: ListInvoicesRequest, options?: CoinbaseCallOptions): Promise<ListInvoicesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
25
+ listInvoicess(request: ListInvoicesRequest, options?: CoinbaseCallOptions): Promise<ListInvoicesResponse>;
27
26
  }
@@ -13,8 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { GetInvoicesResponse } from '../model/GetInvoicesResponse';
16
+ import { Brand } from 'src/shared/brand';
17
+ import { GetInvoicesResponse } from '../model/';
17
18
  export type ListInvoicesRequest = {
18
19
  entityId: string;
19
20
  };
20
- export type ListInvoicesResponse = GetInvoicesResponse;
21
+ export type ListInvoicesResponse = Brand<GetInvoicesResponse, 'ListInvoicesResponse'>;
@@ -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,41 @@
1
+ export { ActivityType as CustodyActivityType } from './CustodyActivityType';
2
+ export { AddressBookType } from './AddressBookType';
3
+ export { Action } from './Action';
4
+ export { ActivityCategory } from './ActivityCategory';
5
+ export { ActivityLevel } from './ActivityLevel';
6
+ export { ActivitySecondaryType } from './ActivitySecondaryType';
7
+ export { ActivityStatus } from './ActivityStatus';
8
+ export { ActivityType as PrimeActivityType } from './PrimeActivityType';
9
+ export { AllocationSizeType } from './AllocationSizeType';
10
+ export { AllocationStatus } from './AllocationStatus';
11
+ export { AssetChangeType } from './AssetChangeType';
12
+ export { Benchmark } from './Benchmark';
13
+ export { DestinationType } from './DestinationType';
14
+ export { FcmFuturesSweepStatus } from './FcmFuturesSweepStatus';
15
+ export { FcmPositionSide } from './FcmPositionSide';
16
+ export { HierarchyType } from './HierarchyType';
17
+ export { InvoiceState } from './InvoiceState';
18
+ export { InvoiceType } from './InvoiceType';
19
+ export { LoanType } from './LoanType';
20
+ export { MarginAddOnType } from './MarginAddOnType';
21
+ export { NetworkFamily } from './NetworkFamily';
22
+ export { NetworkType } from './NetworkType';
23
+ export { OrderSide } from './OrderSide';
24
+ export { OrderStatus } from './OrderStatus';
25
+ export { OrderType } from './OrderType';
26
+ export { PaymentMethodType } from './PaymentMethodType';
27
+ export { PortfolioBalanceType } from './PortfolioBalanceType';
28
+ export { PositionReferenceType } from './PositionReferenceType';
29
+ export { ProductPermissions } from './ProductPermissions';
30
+ export { RateType } from './RateType';
31
+ export { SigningStatus } from './SigningStatus';
32
+ export { SortDirection } from './SortDirection';
33
+ export { TimeInForceType } from './TimeInForceType';
34
+ export { TransactionStatus } from './TransactionStatus';
35
+ export { TransactionType } from './TransactionType';
36
+ export { TransferLocationType } from './TransferLocationType';
37
+ export { UserRole } from './UserRole';
38
+ export { VisibilityStatus } from './VisibilityStatus';
39
+ export { WalletDepositInstructionType } from './WalletDepositInstructionType';
40
+ export { WalletType } from './WalletType';
41
+ export { WalletVisibility } from './WalletVisibility';