@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.
- package/dist/client.js +2 -2
- package/dist/index.js +18 -1
- package/dist/model/StakingInitiateResponse.js +21 -0
- package/dist/model/StakingInputs.js +21 -0
- package/dist/model/StakingUnstakeResponse.js +21 -0
- package/dist/model/enums/index.js +85 -0
- package/dist/{addressBooks/service.js → staking/index.js} +11 -9
- package/dist/{activities → types/activities}/index.d.ts +8 -9
- package/dist/{activities → types/activities}/types.d.ts +6 -9
- package/dist/{addressBooks → types/addressBooks}/index.d.ts +4 -5
- package/dist/{addressBooks → types/addressBooks}/types.d.ts +4 -5
- package/dist/{allocations → types/allocations}/index.d.ts +10 -11
- package/dist/types/allocations/types.d.ts +42 -0
- package/dist/{assets → types/assets}/index.d.ts +2 -3
- package/dist/{assets → types/assets}/types.d.ts +3 -2
- package/dist/{balances → types/balances}/index.d.ts +8 -9
- package/dist/{balances → types/balances}/types.d.ts +7 -10
- package/dist/{client.d.ts → types/client.d.ts} +1 -1
- package/dist/{commission → types/commission}/index.d.ts +2 -3
- package/dist/{commission → types/commission}/types.d.ts +3 -2
- package/dist/{financing → types/financing}/index.d.ts +24 -25
- package/dist/{financing → types/financing}/types.d.ts +14 -23
- package/dist/{futures → types/futures}/index.d.ts +12 -13
- package/dist/{futures → types/futures}/types.d.ts +8 -13
- package/dist/{index.d.ts → types/index.d.ts} +4 -0
- package/dist/{invoices → types/invoices}/index.d.ts +2 -3
- package/dist/{invoices → types/invoices}/types.d.ts +3 -2
- package/dist/{model → types/model}/CreateOnchainTransactionRequestEvmParams.d.ts +9 -1
- package/dist/{model → types/model}/RpcConfig.d.ts +1 -1
- package/dist/types/model/StakingInitiateRequest.d.ts +27 -0
- package/dist/types/model/StakingInitiateResponse.d.ts +33 -0
- package/dist/types/model/StakingInputs.d.ts +25 -0
- package/dist/types/model/StakingUnstakeResponse.d.ts +33 -0
- package/dist/types/model/enums/index.d.ts +41 -0
- package/dist/types/model/index.d.ts +167 -0
- package/dist/{onchainAddressBook → types/onchainAddressBook}/index.d.ts +8 -9
- package/dist/{onchainAddressBook → types/onchainAddressBook}/types.d.ts +6 -7
- package/dist/{orders → types/orders}/index.d.ts +20 -21
- package/dist/{orders → types/orders}/types.d.ts +13 -26
- package/dist/{paymentMethods → types/paymentMethods}/index.d.ts +4 -5
- package/dist/{paymentMethods → types/paymentMethods}/types.d.ts +4 -4
- package/dist/{portfolios → types/portfolios}/index.d.ts +3 -4
- package/dist/{portfolios → types/portfolios}/types.d.ts +5 -6
- package/dist/{positions → types/positions}/index.d.ts +4 -5
- package/dist/types/positions/types.d.ts +29 -0
- package/dist/{products → types/products}/index.d.ts +2 -3
- package/dist/{products → types/products}/types.d.ts +3 -2
- package/dist/types/shared/brand.d.ts +3 -0
- package/dist/types/staking/index.d.ts +28 -0
- package/dist/types/staking/types.d.ts +27 -0
- package/dist/{transactions → types/transactions}/index.d.ts +14 -15
- package/dist/types/transactions/types.d.ts +60 -0
- package/dist/{users → types/users}/index.d.ts +4 -5
- package/dist/{users → types/users}/types.d.ts +4 -3
- package/dist/{wallets → types/wallets}/index.d.ts +12 -13
- package/dist/{wallets → types/wallets}/types.d.ts +9 -15
- package/package.json +3 -2
- package/dist/activities/service.d.ts +0 -18
- package/dist/activities/service.js +0 -54
- package/dist/addressBooks/service.d.ts +0 -11
- package/dist/allocations/service.d.ts +0 -14
- package/dist/allocations/service.js +0 -65
- package/dist/allocations/types.d.ts +0 -46
- package/dist/assets/service.d.ts +0 -10
- package/dist/assets/service.js +0 -27
- package/dist/invoices/service.d.ts +0 -10
- package/dist/invoices/service.js +0 -27
- package/dist/model/assets.d.ts +0 -13
- package/dist/model/assets.js +0 -2
- package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +0 -23
- package/dist/model/enums/ActivityType.d.ts +0 -63
- package/dist/model/enums/ActivityType.js +0 -67
- package/dist/model/services/activitityService.d.ts +0 -33
- package/dist/model/services/addressBookService.d.ts +0 -14
- package/dist/model/services/allocationService.d.ts +0 -24
- package/dist/model/services/allocationService.js +0 -2
- package/dist/model/services/assetService.d.ts +0 -5
- package/dist/model/services/assetService.js +0 -2
- package/dist/model/services/balanceService.d.ts +0 -24
- package/dist/model/services/balanceService.js +0 -2
- package/dist/model/services/commissionService.d.ts +0 -5
- package/dist/model/services/commissionService.js +0 -2
- package/dist/model/services/invoiceService.d.ts +0 -5
- package/dist/model/services/invoiceService.js +0 -2
- package/dist/model/services/orderService.d.ts +0 -62
- package/dist/model/services/orderService.js +0 -2
- package/dist/model/services/pagination.d.ts +0 -9
- package/dist/model/services/pagination.js +0 -2
- package/dist/model/services/paymentMethodsService.d.ts +0 -10
- package/dist/model/services/paymentMethodsService.js +0 -2
- package/dist/model/services/portfolioService.d.ts +0 -15
- package/dist/model/services/portfolioService.js +0 -2
- package/dist/model/services/productService.d.ts +0 -6
- package/dist/model/services/productService.js +0 -2
- package/dist/model/services/shared.d.ts +0 -6
- package/dist/model/services/shared.js +0 -2
- package/dist/model/services/transactionService.d.ts +0 -47
- package/dist/model/services/transactionService.js +0 -2
- package/dist/model/services/usersService.d.ts +0 -9
- package/dist/model/services/usersService.js +0 -2
- package/dist/model/services/walletService.d.ts +0 -27
- package/dist/model/services/walletService.js +0 -2
- package/dist/onchainAddressGroups/index.d.ts +0 -27
- package/dist/onchainAddressGroups/index.js +0 -27
- package/dist/onchainAddressGroups/types.d.ts +0 -20
- package/dist/paymentMethods/service.d.ts +0 -11
- package/dist/paymentMethods/service.js +0 -36
- package/dist/portfolio/service.d.ts +0 -12
- package/dist/portfolio/service.js +0 -42
- package/dist/positions/types.d.ts +0 -14
- package/dist/transactions/types.d.ts +0 -69
- package/dist/users/service.d.ts +0 -11
- package/dist/users/service.js +0 -36
- /package/dist/model/{changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js → Portfolio.js} +0 -0
- /package/dist/model/{portfolio.js → StakingInitiateRequest.js} +0 -0
- /package/dist/model/{services/activitityService.js → index.js} +0 -0
- /package/dist/{model/services/addressBookService.js → shared/brand.js} +0 -0
- /package/dist/{onchainAddressGroups → staking}/types.js +0 -0
- /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
- /package/dist/{credentials → types/credentials}/index.d.ts +0 -0
- /package/dist/{errors → types/errors}/index.d.ts +0 -0
- /package/dist/{model → types/model}/AcceptQuoteRequest.d.ts +0 -0
- /package/dist/{model → types/model}/AcceptQuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Accrual.d.ts +0 -0
- /package/dist/{model → types/model}/Activity.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityCreationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataAccount.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataConsensus.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataTransactions.d.ts +0 -0
- /package/dist/{model → types/model}/AddressBookEntry.d.ts +0 -0
- /package/dist/{model → types/model}/AddressEntry.d.ts +0 -0
- /package/dist/{model → types/model}/AddressGroup.d.ts +0 -0
- /package/dist/{model → types/model}/AggregatedFiatBalance.d.ts +0 -0
- /package/dist/{model → types/model}/Allocation.d.ts +0 -0
- /package/dist/{model → types/model}/AllocationLeg.d.ts +0 -0
- /package/dist/{model → types/model}/AmountDue.d.ts +0 -0
- /package/dist/{model → types/model}/Asset.d.ts +0 -0
- /package/dist/{model → types/model}/AssetBalance.d.ts +0 -0
- /package/dist/{model → types/model}/AssetChange.d.ts +0 -0
- /package/dist/{model → types/model}/Balance.d.ts +0 -0
- /package/dist/{model → types/model}/BlockchainAddress.d.ts +0 -0
- /package/dist/{model → types/model}/BuyingPower.d.ts +0 -0
- /package/dist/{model → types/model}/CancelFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CancelOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Commission.d.ts +0 -0
- /package/dist/{model → types/model}/Conversion.d.ts +0 -0
- /package/dist/{model → types/model}/ConversionDetail.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAddressGroup.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNewLocatesRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNewLocatesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOrderRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletTransferResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalResponse.d.ts +0 -0
- /package/dist/{model → types/model}/DefiBalance.d.ts +0 -0
- /package/dist/{model → types/model}/DestinationAlloc.d.ts +0 -0
- /package/dist/{model → types/model}/DisplayUser.d.ts +0 -0
- /package/dist/{model → types/model}/EntityBalance.d.ts +0 -0
- /package/dist/{model → types/model}/EntityUser.d.ts +0 -0
- /package/dist/{model → types/model}/EstimatedNetworkFees.d.ts +0 -0
- /package/dist/{model → types/model}/ExistingLocate.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweep.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweepRequestAmount.d.ts +0 -0
- /package/dist/{model → types/model}/FcmPosition.d.ts +0 -0
- /package/dist/{model → types/model}/Fill.d.ts +0 -0
- /package/dist/{model → types/model}/GetActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationsByClientNettingIdResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetBuyingPowerResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityAssetsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodDetailsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetExistingLocatesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFcmBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFuturesSweepsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetInterestAccrualsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetInvoicesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetLocateAvailabilitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginConversionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginInformationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetMarginSummariesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOpenOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAddressBookResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAllocationsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioCommissionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioInterestAccrualsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioProductsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfoliosResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPostTradeCreditResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetTFTieredPricingFeesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletAddressesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletDepositInstructionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWithdrawalPowerResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Invoice.d.ts +0 -0
- /package/dist/{model → types/model}/InvoiceItem.d.ts +0 -0
- /package/dist/{model → types/model}/ListAggregateEntityPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListEntityBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListEntityPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListOnchainAddressGroupsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListWeb3WalletBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/LoanInfo.d.ts +0 -0
- /package/dist/{model → types/model}/Locate.d.ts +0 -0
- /package/dist/{model → types/model}/MarginAddOn.d.ts +0 -0
- /package/dist/{model → types/model}/MarginCallRecord.d.ts +0 -0
- /package/dist/{model → types/model}/MarginInformation.d.ts +0 -0
- /package/dist/{model → types/model}/MarginSummary.d.ts +0 -0
- /package/dist/{model → types/model}/MarginSummaryHistorical.d.ts +0 -0
- /package/dist/{model → types/model}/MarketRate.d.ts +0 -0
- /package/dist/{model → types/model}/MatchMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/NFTCollection.d.ts +0 -0
- /package/dist/{model → types/model}/NFTItem.d.ts +0 -0
- /package/dist/{model → types/model}/Network.d.ts +0 -0
- /package/dist/{model → types/model}/NetworkDetails.d.ts +0 -0
- /package/dist/{model → types/model}/OnchainTransactionDetails.d.ts +0 -0
- /package/dist/{model → types/model}/Order.d.ts +0 -0
- /package/dist/{model → types/model}/OrderPreviewRequest.d.ts +0 -0
- /package/dist/{model → types/model}/PMAssetInfo.d.ts +0 -0
- /package/dist/{model → types/model}/PaginatedResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDestination.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDetails.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodSummary.d.ts +0 -0
- /package/dist/{model/portfolio.d.ts → types/model/Portfolio.d.ts} +0 -0
- /package/dist/{model → types/model}/PortfolioUser.d.ts +0 -0
- /package/dist/{model → types/model}/Position.d.ts +0 -0
- /package/dist/{model → types/model}/PositionReference.d.ts +0 -0
- /package/dist/{model → types/model}/PostOrderPreviewResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PostTradeCreditInformation.d.ts +0 -0
- /package/dist/{model → types/model}/Product.d.ts +0 -0
- /package/dist/{model → types/model}/QuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/RFQ.d.ts +0 -0
- /package/dist/{model → types/model}/RFQProductDetails.d.ts +0 -0
- /package/dist/{model → types/model}/RiskAssessment.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ShortCollateral.d.ts +0 -0
- /package/dist/{model → types/model}/TieredPricingFee.d.ts +0 -0
- /package/dist/{model → types/model}/Transaction.d.ts +0 -0
- /package/dist/{model → types/model}/TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/TransferLocation.d.ts +0 -0
- /package/dist/{model → types/model}/UserAction.d.ts +0 -0
- /package/dist/{model → types/model}/Wallet.d.ts +0 -0
- /package/dist/{model → types/model}/WalletCryptoDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/WalletFiatDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Asset.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Balance.d.ts +0 -0
- /package/dist/{model → types/model}/Web3TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/WithdrawalPower.d.ts +0 -0
- /package/dist/{model → types/model}/createATransferBetweenTwoWallets.d.ts +0 -0
- /package/dist/{model → types/model}/enums/Action.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityCategory.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityLevel.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivitySecondaryType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AddressBookType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationSizeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AssetChangeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/Benchmark.d.ts +0 -0
- /package/dist/{model → types/model}/enums/CustodyActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/DestinationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmFuturesSweepStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmPositionSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/HierarchyType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceState.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/LoanType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/MarginAddOnType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/NetworkFamily.d.ts +0 -0
- /package/dist/{model → types/model}/enums/NetworkType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PaymentMethodType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PortfolioBalanceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PositionReferenceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PrimeActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ProductPermissions.d.ts +0 -0
- /package/dist/{model → types/model}/enums/RateType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SigningStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SortDirection.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TimeInForceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransferLocationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/UserRole.d.ts +0 -0
- /package/dist/{model → types/model}/enums/VisibilityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletDepositInstructionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletVisibility.d.ts +0 -0
- /package/dist/{shared → types/shared}/pagination.d.ts +0 -0
- /package/dist/{shared → types/shared}/toCamelCase.d.ts +0 -0
|
@@ -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,14 +0,0 @@
|
|
|
1
|
-
import { ListAggregateEntityPositionsResponse as ListAggregateEntityPositionsInt } from '../model/ListAggregateEntityPositionsResponse';
|
|
2
|
-
import { ListEntityPositionsResponse as ListEntityPositionsInt } from '../model/ListEntityPositionsResponse';
|
|
3
|
-
export type ListAggregateEntityPositionsRequest = {
|
|
4
|
-
entityId: string;
|
|
5
|
-
cursor?: string;
|
|
6
|
-
limit?: number;
|
|
7
|
-
};
|
|
8
|
-
export type ListAggregateEntityPositionsResponse = ListAggregateEntityPositionsInt;
|
|
9
|
-
export type ListEntityPositionsRequest = {
|
|
10
|
-
entityId: string;
|
|
11
|
-
cursor?: string;
|
|
12
|
-
limit?: number;
|
|
13
|
-
};
|
|
14
|
-
export type ListEntityPositionsResponse = ListEntityPositionsInt;
|
|
@@ -1,69 +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 { TransactionType } from '../model/enums/TransactionType';
|
|
17
|
-
import { GetPortfolioTransactionsResponse } from '../model/GetPortfolioTransactionsResponse';
|
|
18
|
-
import { GetWalletTransactionsResponse } from '../model/GetWalletTransactionsResponse';
|
|
19
|
-
import { GetTransactionResponse as internalGet } from '../model/GetTransactionResponse';
|
|
20
|
-
import { CreateConversionRequest as internalCreateConversion } from '../model/CreateConversionRequest';
|
|
21
|
-
import { CreateConversionResponse as internalCreateConversionResp } from '../model/CreateConversionResponse';
|
|
22
|
-
import { CreateATransferBetweenTwoWallets } from '../model/createATransferBetweenTwoWallets';
|
|
23
|
-
import { CreateWalletWithdrawalRequest } from '../model/CreateWalletWithdrawalRequest';
|
|
24
|
-
import { CreateWalletWithdrawalResponse } from '../model/CreateWalletWithdrawalResponse';
|
|
25
|
-
import { Pagination } from '../shared/pagination';
|
|
26
|
-
import { CreateWalletTransferResponse } from '../model/CreateWalletTransferResponse';
|
|
27
|
-
import { CreateOnchainTransactionRequest as internalCreate } from '../model/CreateOnchainTransactionRequest';
|
|
28
|
-
import { CreateOnchainTransactionResponse as internalCreateResp } from '../model/CreateOnchainTransactionResponse';
|
|
29
|
-
export type ListPortfolioTransactionsRequest = Pagination & {
|
|
30
|
-
portfolioId: string;
|
|
31
|
-
symbols?: string[];
|
|
32
|
-
types?: TransactionType[];
|
|
33
|
-
startTime?: string;
|
|
34
|
-
endTime?: string;
|
|
35
|
-
};
|
|
36
|
-
export type ListPortfolioTransactionsResponse = GetPortfolioTransactionsResponse;
|
|
37
|
-
export type ListWalletTransactionsRequest = Pagination & {
|
|
38
|
-
portfolioId: string;
|
|
39
|
-
walletId: string;
|
|
40
|
-
types?: TransactionType[];
|
|
41
|
-
startTime?: string;
|
|
42
|
-
endTime?: string;
|
|
43
|
-
};
|
|
44
|
-
export type ListWalletTransactionsResponse = GetWalletTransactionsResponse;
|
|
45
|
-
export type GetTransactionRequest = {
|
|
46
|
-
portfolioId: string;
|
|
47
|
-
transactionId: string;
|
|
48
|
-
};
|
|
49
|
-
export type GetTransactionResponse = internalGet;
|
|
50
|
-
export type CreateConversionRequest = internalCreateConversion & {
|
|
51
|
-
portfolioId: string;
|
|
52
|
-
walletId: string;
|
|
53
|
-
};
|
|
54
|
-
export type CreateConversionResponse = internalCreateConversionResp;
|
|
55
|
-
export type CreateTransferRequest = CreateATransferBetweenTwoWallets & {
|
|
56
|
-
portfolioId: string;
|
|
57
|
-
walletId: string;
|
|
58
|
-
};
|
|
59
|
-
export type CreateTransferResponse = CreateWalletTransferResponse;
|
|
60
|
-
export type CreateWithdrawalRequest = CreateWalletWithdrawalRequest & {
|
|
61
|
-
portfolioId: string;
|
|
62
|
-
walletId: string;
|
|
63
|
-
};
|
|
64
|
-
export type CreateWithdrawalResponse = CreateWalletWithdrawalResponse;
|
|
65
|
-
export type CreateOnchainTransactionRequest = internalCreate & {
|
|
66
|
-
portfolioId: string;
|
|
67
|
-
walletId: string;
|
|
68
|
-
};
|
|
69
|
-
export type CreateOnchainTransactionResponse = internalCreateResp;
|
package/dist/users/service.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/users/service.js
DELETED
|
@@ -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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|