@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
@@ -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.OnchainAddressGroupsService = void 0;
13
- class OnchainAddressGroupsService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- listEntityPaymentMethods(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `portfolios/${request.portfolioId}/onchain_address_groups`,
21
- callOptions: options,
22
- });
23
- return response.data;
24
- });
25
- }
26
- }
27
- exports.OnchainAddressGroupsService = OnchainAddressGroupsService;
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright 2024-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 { ListOnchainAddressGroupsResponse as listInt } from '../model/ListOnchainAddressGroupsResponse';
17
- export type ListOnchainAddressGroupsRequest = {
18
- portfolioId: string;
19
- };
20
- export type ListOnchainAddressGroupsResponse = listInt;
@@ -1,11 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { ListEntityPaymentMethodsRequest, ListEntityPaymentMethodsResponse, GetPaymentMethodRequest, GetPaymentMethodResponse } from '../model/services/paymentMethodsService';
4
- export interface PaymentMethodService {
5
- listEntityPaymentMethods(request: ListEntityPaymentMethodsRequest): Promise<ListEntityPaymentMethodsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- getPaymentMethod(request: GetPaymentMethodRequest): Promise<GetPaymentMethodResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- }
8
- export declare class PaymentMethodService implements PaymentMethodService {
9
- private client;
10
- constructor(client: CoinbasePrimeClient);
11
- }
@@ -1,36 +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.PaymentMethodService = void 0;
13
- class PaymentMethodService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- listEntityPaymentMethods(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `entities/${request.entityId}/payment-methods`,
21
- callOptions: options,
22
- });
23
- return response.data;
24
- });
25
- }
26
- getPaymentMethod(request, options) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const response = yield this.client.request({
29
- url: `entities/${request.entityId}/payment-methods`,
30
- callOptions: options,
31
- });
32
- return response.data;
33
- });
34
- }
35
- }
36
- exports.PaymentMethodService = PaymentMethodService;
@@ -1,12 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { GetPortfolioRequest, GetPortfolioResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, ListPortfoliosResponse } from '../model/services/portfolioService';
4
- export interface PortfolioService {
5
- getPortfolio(request: GetPortfolioRequest): Promise<GetPortfolioResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- getPortfolioCredit(request: GetPortfolioCreditRequest): Promise<GetPortfolioCreditResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- listPortfolios(): Promise<ListPortfoliosResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
8
- }
9
- export declare class PortfolioService implements PortfolioService {
10
- private client;
11
- constructor(client: CoinbasePrimeClient);
12
- }
@@ -1,42 +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.PortfolioService = void 0;
13
- class PortfolioService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- getPortfolio(request) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `portfolios/${request.portfolioId}`,
21
- });
22
- return response.data;
23
- });
24
- }
25
- getPortfolioCredit(request) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const response = yield this.client.request({
28
- url: `portfolios/${request.portfolioId}/credit`,
29
- });
30
- return response.data;
31
- });
32
- }
33
- listPortfolios() {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- const response = yield this.client.request({
36
- url: `portfolios`,
37
- });
38
- return response.data;
39
- });
40
- }
41
- }
42
- exports.PortfolioService = PortfolioService;
@@ -1,11 +0,0 @@
1
- import { CoinbasePrimeClient } from '../client';
2
- import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
3
- import { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse } from '../model/services/usersService';
4
- export interface UserService {
5
- listUsers(request: ListUsersRequest): Promise<ListUsersResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
6
- listPortfolioUsers(request: ListPortfolioUsersRequest): Promise<ListPortfolioUsersResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
7
- }
8
- export declare class UserService implements UserService {
9
- private client;
10
- constructor(client: CoinbasePrimeClient);
11
- }
@@ -1,36 +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.UserService = void 0;
13
- class UserService {
14
- constructor(client) {
15
- this.client = client;
16
- }
17
- listUsers(request, options) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- const response = yield this.client.request({
20
- url: `entities/${request.entityId}/users`,
21
- callOptions: options,
22
- });
23
- return response.data;
24
- });
25
- }
26
- listPortfolioUsers(request, options) {
27
- return __awaiter(this, void 0, void 0, function* () {
28
- const response = yield this.client.request({
29
- url: `portfolios/${request.portfolioId}/users`,
30
- callOptions: options,
31
- });
32
- return response.data;
33
- });
34
- }
35
- }
36
- exports.UserService = UserService;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes