@coinbase-sample/prime-sdk-ts 0.1.0 → 0.2.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.
- package/dist/futures/index.d.ts +37 -0
- package/dist/futures/index.js +95 -0
- package/dist/futures/types.d.ts +48 -0
- package/dist/futures/types.js +2 -0
- package/dist/index.d.ts +14 -12
- package/dist/index.js +5 -1
- package/dist/model/AcceptQuoteRequest.d.ts +32 -0
- package/dist/model/AcceptQuoteRequest.js +21 -0
- package/dist/model/AcceptQuoteResponse.d.ts +22 -0
- package/dist/model/AcceptQuoteResponse.js +21 -0
- package/dist/model/Activity.d.ts +3 -3
- package/dist/model/Activity.js +2 -2
- package/dist/model/ActivityCreationResponse.d.ts +25 -0
- package/dist/model/ActivityCreationResponse.js +21 -0
- package/dist/model/ActivityMetadataAccount.d.ts +2 -2
- package/dist/model/ActivityMetadataAccount.js +2 -2
- package/dist/model/ActivityMetadataConsensus.d.ts +2 -2
- package/dist/model/ActivityMetadataConsensus.js +2 -2
- package/dist/model/ActivityMetadataTransactions.d.ts +2 -2
- package/dist/model/ActivityMetadataTransactions.js +2 -2
- package/dist/model/AddressBookEntry.d.ts +2 -2
- package/dist/model/AddressBookEntry.js +2 -2
- package/dist/model/AddressEntry.d.ts +27 -0
- package/dist/model/AddressEntry.js +21 -0
- package/dist/model/AddressGroup.d.ts +27 -0
- package/dist/model/AddressGroup.js +21 -0
- package/dist/model/AggregatedFiatBalance.d.ts +2 -2
- package/dist/model/AggregatedFiatBalance.js +2 -2
- package/dist/model/Allocation.d.ts +2 -2
- package/dist/model/Allocation.js +2 -2
- package/dist/model/AllocationLeg.d.ts +2 -2
- package/dist/model/AllocationLeg.js +2 -2
- package/dist/model/AmountDue.d.ts +2 -2
- package/dist/model/AmountDue.js +2 -2
- package/dist/model/Asset.d.ts +7 -2
- package/dist/model/Asset.js +2 -2
- package/dist/model/AssetChange.d.ts +2 -2
- package/dist/model/AssetChange.js +2 -2
- package/dist/model/Balance.d.ts +2 -2
- package/dist/model/Balance.js +2 -2
- package/dist/model/BlockchainAddress.d.ts +10 -2
- package/dist/model/BlockchainAddress.js +2 -2
- package/dist/model/CancelFuturesSweepResponse.d.ts +29 -0
- package/dist/model/CancelFuturesSweepResponse.js +21 -0
- package/dist/model/CancelOrderResponse.d.ts +2 -2
- package/dist/model/CancelOrderResponse.js +2 -2
- package/dist/model/Commission.d.ts +2 -2
- package/dist/model/Commission.js +2 -2
- package/dist/model/CreateAddressGroup.d.ts +26 -0
- package/dist/model/CreateAddressGroup.js +21 -0
- package/dist/model/CreateAllocationRequest.d.ts +2 -2
- package/dist/model/CreateAllocationRequest.js +2 -2
- package/dist/model/CreateAllocationResponse.d.ts +2 -2
- package/dist/model/CreateAllocationResponse.js +2 -2
- package/dist/model/CreateAllocationResponseBody.d.ts +2 -2
- package/dist/model/CreateAllocationResponseBody.js +2 -2
- package/dist/model/CreateConversionRequest.d.ts +2 -2
- package/dist/model/CreateConversionRequest.js +2 -2
- package/dist/model/CreateConversionResponse.d.ts +2 -2
- package/dist/model/CreateConversionResponse.js +2 -2
- package/dist/model/CreateNetAllocationResponse.d.ts +2 -2
- package/dist/model/CreateNetAllocationResponse.js +2 -2
- package/dist/model/CreateNetAllocationResponseBody.d.ts +2 -2
- package/dist/model/CreateNetAllocationResponseBody.js +2 -2
- package/dist/model/CreateOnchainTransactionRequest.d.ts +29 -0
- package/dist/model/CreateOnchainTransactionRequest.js +21 -0
- package/dist/model/CreateOnchainTransactionRequestEvmParams.d.ts +33 -0
- package/dist/model/CreateOnchainTransactionRequestEvmParams.js +21 -0
- package/dist/model/CreateOnchainTransactionResponse.d.ts +25 -0
- package/dist/model/CreateOnchainTransactionResponse.js +21 -0
- package/dist/model/CreateOrderRequest.d.ts +2 -2
- package/dist/model/CreateOrderRequest.js +2 -2
- package/dist/model/CreateOrderResponse.d.ts +2 -2
- package/dist/model/CreateOrderResponse.js +2 -2
- package/dist/model/CreatePortfolioAddressBookEntryRequest.d.ts +2 -2
- package/dist/model/CreatePortfolioAddressBookEntryRequest.js +2 -2
- package/dist/model/CreatePortfolioAddressBookEntryResponse.d.ts +3 -3
- package/dist/model/CreatePortfolioAddressBookEntryResponse.js +2 -2
- package/dist/model/CreateWalletRequest.d.ts +6 -2
- package/dist/model/CreateWalletRequest.js +2 -2
- package/dist/model/CreateWalletResponse.d.ts +4 -2
- package/dist/model/CreateWalletResponse.js +2 -2
- package/dist/model/CreateWalletTransferResponse.d.ts +2 -2
- package/dist/model/CreateWalletTransferResponse.js +2 -2
- package/dist/model/CreateWalletWithdrawalRequest.d.ts +2 -2
- package/dist/model/CreateWalletWithdrawalRequest.js +2 -2
- package/dist/model/CreateWalletWithdrawalResponse.d.ts +2 -2
- package/dist/model/CreateWalletWithdrawalResponse.js +2 -2
- package/dist/model/DefiBalance.d.ts +2 -2
- package/dist/model/DefiBalance.js +2 -2
- package/dist/model/DestinationAlloc.d.ts +2 -2
- package/dist/model/DestinationAlloc.js +2 -2
- package/dist/model/DisplayUser.d.ts +2 -2
- package/dist/model/DisplayUser.js +2 -2
- package/dist/model/EntityUser.d.ts +2 -2
- package/dist/model/EntityUser.js +2 -2
- package/dist/model/EstimatedNetworkFees.d.ts +2 -2
- package/dist/model/EstimatedNetworkFees.js +2 -2
- package/dist/model/FcmFuturesSweep.d.ts +37 -0
- package/dist/model/FcmFuturesSweep.js +21 -0
- package/dist/model/FcmFuturesSweepRequestAmount.d.ts +29 -0
- package/dist/model/FcmFuturesSweepRequestAmount.js +21 -0
- package/dist/model/FcmPosition.d.ts +51 -0
- package/dist/model/FcmPosition.js +21 -0
- package/dist/model/Fill.d.ts +2 -2
- package/dist/model/Fill.js +2 -2
- package/dist/model/GetActivityResponse.d.ts +2 -2
- package/dist/model/GetActivityResponse.js +2 -2
- package/dist/model/GetAllocationResponse.d.ts +2 -2
- package/dist/model/GetAllocationResponse.js +2 -2
- package/dist/model/GetAllocationsByClientNettingIdResponse.d.ts +2 -2
- package/dist/model/GetAllocationsByClientNettingIdResponse.js +2 -2
- package/dist/model/GetEntityActivitiesResponse.d.ts +2 -2
- package/dist/model/GetEntityActivitiesResponse.js +2 -2
- package/dist/model/GetEntityAssetsResponse.d.ts +2 -2
- package/dist/model/GetEntityAssetsResponse.js +2 -2
- package/dist/model/GetEntityPaymentMethodDetailsResponse.d.ts +2 -2
- package/dist/model/GetEntityPaymentMethodDetailsResponse.js +2 -2
- package/dist/model/GetEntityPaymentMethodsResponse.d.ts +2 -2
- package/dist/model/GetEntityPaymentMethodsResponse.js +2 -2
- package/dist/model/GetEntityUsersResponse.d.ts +2 -2
- package/dist/model/GetEntityUsersResponse.js +2 -2
- package/dist/model/GetFcmBalanceResponse.d.ts +57 -0
- package/dist/model/GetFcmBalanceResponse.js +21 -0
- package/dist/model/GetFuturesSweepsResponse.d.ts +24 -0
- package/dist/model/GetFuturesSweepsResponse.js +21 -0
- package/dist/model/GetInvoicesResponse.d.ts +2 -2
- package/dist/model/GetInvoicesResponse.js +2 -2
- package/dist/model/GetOpenOrdersResponse.d.ts +2 -2
- package/dist/model/GetOpenOrdersResponse.js +2 -2
- package/dist/model/GetOrderFillsResponse.d.ts +2 -2
- package/dist/model/GetOrderFillsResponse.js +2 -2
- package/dist/model/GetOrderResponse.d.ts +2 -2
- package/dist/model/GetOrderResponse.js +2 -2
- package/dist/model/GetOrdersResponse.d.ts +2 -2
- package/dist/model/GetOrdersResponse.js +2 -2
- package/dist/model/GetPortfolioActivitiesResponse.d.ts +2 -2
- package/dist/model/GetPortfolioActivitiesResponse.js +2 -2
- package/dist/model/GetPortfolioActivityResponse.d.ts +2 -2
- package/dist/model/GetPortfolioActivityResponse.js +2 -2
- package/dist/model/GetPortfolioAddressBookResponse.d.ts +2 -2
- package/dist/model/GetPortfolioAddressBookResponse.js +2 -2
- package/dist/model/GetPortfolioAllocationsResponse.d.ts +2 -2
- package/dist/model/GetPortfolioAllocationsResponse.js +2 -2
- package/dist/model/GetPortfolioBalancesResponse.d.ts +3 -2
- package/dist/model/GetPortfolioBalancesResponse.js +2 -2
- package/dist/model/GetPortfolioCommissionResponse.d.ts +2 -2
- package/dist/model/GetPortfolioCommissionResponse.js +2 -2
- package/dist/model/GetPortfolioFillsResponse.d.ts +2 -2
- package/dist/model/GetPortfolioFillsResponse.js +2 -2
- package/dist/model/GetPortfolioProductsResponse.d.ts +2 -2
- package/dist/model/GetPortfolioProductsResponse.js +2 -2
- package/dist/model/GetPortfolioResponse.d.ts +2 -2
- package/dist/model/GetPortfolioResponse.js +2 -2
- package/dist/model/GetPortfolioTransactionsResponse.d.ts +2 -2
- package/dist/model/GetPortfolioTransactionsResponse.js +2 -2
- package/dist/model/GetPortfolioUsersResponse.d.ts +2 -2
- package/dist/model/GetPortfolioUsersResponse.js +2 -2
- package/dist/model/GetPortfoliosResponse.d.ts +2 -2
- package/dist/model/GetPortfoliosResponse.js +2 -2
- package/dist/model/GetPositionsResponse.d.ts +27 -0
- package/dist/model/GetPositionsResponse.js +21 -0
- package/dist/model/GetPostTradeCreditResponse.d.ts +2 -2
- package/dist/model/GetPostTradeCreditResponse.js +2 -2
- package/dist/model/GetTransactionResponse.d.ts +2 -2
- package/dist/model/GetTransactionResponse.js +2 -2
- package/dist/model/GetWalletAddressesResponse.d.ts +25 -0
- package/dist/model/GetWalletAddressesResponse.js +21 -0
- package/dist/model/GetWalletBalanceResponse.d.ts +2 -2
- package/dist/model/GetWalletBalanceResponse.js +2 -2
- package/dist/model/GetWalletDepositInstructionsResponse.d.ts +2 -2
- package/dist/model/GetWalletDepositInstructionsResponse.js +2 -2
- package/dist/model/GetWalletResponse.d.ts +2 -2
- package/dist/model/GetWalletResponse.js +2 -2
- package/dist/model/GetWalletTransactionsResponse.d.ts +2 -2
- package/dist/model/GetWalletTransactionsResponse.js +2 -2
- package/dist/model/GetWalletsResponse.d.ts +2 -2
- package/dist/model/GetWalletsResponse.js +2 -2
- package/dist/model/Invoice.d.ts +2 -2
- package/dist/model/Invoice.js +2 -2
- package/dist/model/InvoiceItem.d.ts +2 -2
- package/dist/model/InvoiceItem.js +2 -2
- package/dist/model/ListOnchainAddressGroupsResponse.d.ts +23 -0
- package/dist/model/ListOnchainAddressGroupsResponse.js +21 -0
- package/dist/model/ListWeb3WalletBalancesResponse.d.ts +2 -2
- package/dist/model/ListWeb3WalletBalancesResponse.js +2 -2
- package/dist/model/MatchMetadata.d.ts +2 -2
- package/dist/model/MatchMetadata.js +2 -2
- package/dist/model/NFTCollection.d.ts +2 -2
- package/dist/model/NFTCollection.js +2 -2
- package/dist/model/NFTItem.d.ts +2 -2
- package/dist/model/NFTItem.js +2 -2
- package/dist/model/Network.d.ts +29 -0
- package/dist/model/Network.js +21 -0
- package/dist/model/NetworkDetails.d.ts +55 -0
- package/dist/model/NetworkDetails.js +21 -0
- package/dist/model/OnchainTransactionDetails.d.ts +53 -0
- package/dist/model/OnchainTransactionDetails.js +21 -0
- package/dist/model/Order.d.ts +6 -2
- package/dist/model/Order.js +2 -2
- package/dist/model/OrderPreviewRequest.d.ts +2 -2
- package/dist/model/OrderPreviewRequest.js +2 -2
- package/dist/model/PaginatedResponse.d.ts +2 -2
- package/dist/model/PaginatedResponse.js +2 -2
- package/dist/model/PaymentMethodDestination.d.ts +2 -2
- package/dist/model/PaymentMethodDestination.js +2 -2
- package/dist/model/PaymentMethodDetails.d.ts +2 -2
- package/dist/model/PaymentMethodDetails.js +2 -2
- package/dist/model/PaymentMethodSummary.d.ts +2 -2
- package/dist/model/PaymentMethodSummary.js +2 -2
- package/dist/model/PortfolioUser.d.ts +2 -2
- package/dist/model/PortfolioUser.js +2 -2
- package/dist/model/PostOrderPreviewResponse.d.ts +2 -2
- package/dist/model/PostOrderPreviewResponse.js +2 -2
- package/dist/model/PostTradeCreditInformation.d.ts +2 -2
- package/dist/model/PostTradeCreditInformation.js +2 -2
- package/dist/model/Product.d.ts +2 -2
- package/dist/model/Product.js +2 -2
- package/dist/model/QuoteResponse.d.ts +26 -0
- package/dist/model/QuoteResponse.js +21 -0
- package/dist/model/RFQ.d.ts +34 -0
- package/dist/model/RFQ.js +21 -0
- package/dist/model/RiskAssessment.d.ts +29 -0
- package/dist/model/RiskAssessment.js +21 -0
- package/dist/model/RpcConfig.d.ts +29 -0
- package/dist/model/RpcConfig.js +21 -0
- package/dist/model/ScheduleFuturesSweepRequest.d.ts +29 -0
- package/dist/model/ScheduleFuturesSweepRequest.js +21 -0
- package/dist/model/ScheduleFuturesSweepResponse.d.ts +29 -0
- package/dist/model/ScheduleFuturesSweepResponse.js +21 -0
- package/dist/model/SetAutoSweepRequest.d.ts +25 -0
- package/dist/model/SetAutoSweepRequest.js +21 -0
- package/dist/model/SetAutoSweepResponse.d.ts +25 -0
- package/dist/model/SetAutoSweepResponse.js +21 -0
- package/dist/model/Transaction.d.ts +7 -3
- package/dist/model/Transaction.js +2 -2
- package/dist/model/TransactionMetadata.d.ts +4 -2
- package/dist/model/TransactionMetadata.js +2 -2
- package/dist/model/TransferLocation.d.ts +2 -2
- package/dist/model/TransferLocation.js +2 -2
- package/dist/model/UserAction.d.ts +2 -2
- package/dist/model/UserAction.js +2 -2
- package/dist/model/Wallet.d.ts +6 -2
- package/dist/model/Wallet.js +2 -2
- package/dist/model/WalletCryptoDepositInstructions.d.ts +4 -2
- package/dist/model/WalletCryptoDepositInstructions.js +2 -2
- package/dist/model/WalletFiatDepositInstructions.d.ts +2 -2
- package/dist/model/WalletFiatDepositInstructions.js +2 -2
- package/dist/model/Web3Asset.d.ts +2 -2
- package/dist/model/Web3Asset.js +2 -2
- package/dist/model/Web3Balance.d.ts +2 -2
- package/dist/model/Web3Balance.js +2 -2
- package/dist/model/Web3TransactionMetadata.d.ts +30 -0
- package/dist/model/Web3TransactionMetadata.js +21 -0
- package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +23 -0
- package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js +21 -0
- package/dist/model/createATransferBetweenTwoWallets.d.ts +2 -2
- package/dist/model/createATransferBetweenTwoWallets.js +2 -2
- package/dist/model/enums/Action.d.ts +2 -2
- package/dist/model/enums/Action.js +2 -2
- package/dist/model/enums/ActivityCategory.d.ts +2 -2
- package/dist/model/enums/ActivityCategory.js +2 -2
- package/dist/model/enums/ActivityLevel.d.ts +2 -2
- package/dist/model/enums/ActivityLevel.js +2 -2
- package/dist/model/enums/ActivitySecondaryType.d.ts +2 -2
- package/dist/model/enums/ActivitySecondaryType.js +2 -2
- package/dist/model/enums/ActivityStatus.d.ts +2 -2
- package/dist/model/enums/ActivityStatus.js +2 -2
- package/dist/model/enums/ActivityType.d.ts +2 -2
- package/dist/model/enums/ActivityType.js +2 -2
- package/dist/model/enums/AddressBookType.d.ts +2 -2
- package/dist/model/enums/AddressBookType.js +2 -2
- package/dist/model/enums/AllocationSizeType.d.ts +2 -2
- package/dist/model/enums/AllocationSizeType.js +2 -2
- package/dist/model/enums/AllocationStatus.d.ts +2 -2
- package/dist/model/enums/AllocationStatus.js +2 -2
- package/dist/model/enums/AssetChangeType.d.ts +2 -2
- package/dist/model/enums/AssetChangeType.js +2 -2
- package/dist/model/enums/CustodyActivityType.d.ts +51 -0
- package/dist/model/enums/CustodyActivityType.js +55 -0
- package/dist/model/enums/DestinationType.d.ts +2 -2
- package/dist/model/enums/DestinationType.js +2 -2
- package/dist/model/enums/FcmFuturesSweepStatus.d.ts +26 -0
- package/dist/model/enums/FcmFuturesSweepStatus.js +30 -0
- package/dist/model/enums/FcmPositionSide.d.ts +24 -0
- package/dist/model/enums/FcmPositionSide.js +28 -0
- package/dist/model/enums/HierarchyType.d.ts +2 -2
- package/dist/model/enums/HierarchyType.js +2 -2
- package/dist/model/enums/InvoiceState.d.ts +2 -2
- package/dist/model/enums/InvoiceState.js +2 -2
- package/dist/model/enums/InvoiceType.d.ts +2 -2
- package/dist/model/enums/InvoiceType.js +2 -2
- package/dist/model/enums/NetworkFamily.d.ts +24 -0
- package/dist/model/enums/NetworkFamily.js +28 -0
- package/dist/model/enums/NetworkType.d.ts +23 -0
- package/dist/model/enums/NetworkType.js +27 -0
- package/dist/model/enums/OrderSide.d.ts +2 -2
- package/dist/model/enums/OrderSide.js +2 -2
- package/dist/model/enums/OrderStatus.d.ts +2 -2
- package/dist/model/enums/OrderStatus.js +2 -2
- package/dist/model/enums/OrderType.d.ts +5 -4
- package/dist/model/enums/OrderType.js +4 -3
- package/dist/model/enums/PaymentMethodType.d.ts +2 -2
- package/dist/model/enums/PaymentMethodType.js +2 -2
- package/dist/model/enums/PortfolioBalanceType.d.ts +4 -3
- package/dist/model/enums/PortfolioBalanceType.js +3 -2
- package/dist/model/enums/PrimeActivityType.d.ts +63 -0
- package/dist/model/enums/PrimeActivityType.js +67 -0
- package/dist/model/enums/ProductPermissions.d.ts +2 -2
- package/dist/model/enums/ProductPermissions.js +2 -2
- package/dist/model/enums/SigningStatus.d.ts +24 -0
- package/dist/model/enums/SigningStatus.js +28 -0
- package/dist/model/enums/SortDirection.d.ts +2 -2
- package/dist/model/enums/SortDirection.js +2 -2
- package/dist/model/enums/TimeInForceType.d.ts +2 -2
- package/dist/model/enums/TimeInForceType.js +2 -2
- package/dist/model/enums/TransactionStatus.d.ts +2 -2
- package/dist/model/enums/TransactionStatus.js +2 -2
- package/dist/model/enums/TransactionType.d.ts +5 -4
- package/dist/model/enums/TransactionType.js +4 -3
- package/dist/model/enums/TransferLocationType.d.ts +2 -2
- package/dist/model/enums/TransferLocationType.js +2 -2
- package/dist/model/enums/UserRole.d.ts +2 -2
- package/dist/model/enums/UserRole.js +2 -2
- package/dist/model/enums/VisibilityStatus.d.ts +2 -2
- package/dist/model/enums/VisibilityStatus.js +2 -2
- package/dist/model/enums/WalletDepositInstructionType.d.ts +5 -4
- package/dist/model/enums/WalletDepositInstructionType.js +4 -3
- package/dist/model/enums/WalletType.d.ts +5 -5
- package/dist/model/enums/WalletType.js +4 -4
- package/dist/model/enums/WalletVisibility.d.ts +24 -0
- package/dist/model/enums/WalletVisibility.js +28 -0
- package/dist/model/portfolio.d.ts +2 -2
- package/dist/model/portfolio.js +2 -2
- package/dist/onchainAddressBook/index.d.ts +33 -0
- package/dist/onchainAddressBook/index.js +75 -0
- package/dist/onchainAddressBook/types.d.ts +35 -0
- package/dist/onchainAddressBook/types.js +2 -0
- package/dist/onchainAddressGroups/index.d.ts +27 -0
- package/dist/onchainAddressGroups/index.js +27 -0
- package/dist/onchainAddressGroups/types.d.ts +20 -0
- package/dist/onchainAddressGroups/types.js +2 -0
- package/dist/orders/index.d.ts +5 -1
- package/dist/orders/index.js +22 -0
- package/dist/orders/types.d.ts +11 -0
- package/dist/transactions/index.d.ts +3 -1
- package/dist/transactions/index.js +12 -0
- package/dist/transactions/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
|
+
import { CoinbasePrimeClient } from '../client';
|
|
18
|
+
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
|
+
import { ListEntityFuturesSweeps, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweep, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse } from './types';
|
|
20
|
+
export interface IFuturesService {
|
|
21
|
+
listEntitySweeps(request: ListEntityFuturesSweeps, 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: UpdateEntityFuturesAutoSweep, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
26
|
+
cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
27
|
+
}
|
|
28
|
+
export declare class FuturesService implements IFuturesService {
|
|
29
|
+
private client;
|
|
30
|
+
constructor(client: CoinbasePrimeClient);
|
|
31
|
+
listEntitySweeps(request: ListEntityFuturesSweeps, 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: UpdateEntityFuturesAutoSweep, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
36
|
+
cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.FuturesService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
29
|
+
class FuturesService {
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
listEntitySweeps(request, options) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const response = yield this.client.request({
|
|
36
|
+
url: `entities/${request.entityId}/futures/sweeps`,
|
|
37
|
+
callOptions: options,
|
|
38
|
+
});
|
|
39
|
+
return response.data;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
getEntityBalance(request, options) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const response = yield this.client.request({
|
|
45
|
+
url: `entities/${request.entityId}/futures/balance_summary`,
|
|
46
|
+
callOptions: options,
|
|
47
|
+
});
|
|
48
|
+
return response.data;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
getEntityPositions(request, options) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const queryParams = Object.assign(Object.assign({}, request), { entityId: undefined });
|
|
54
|
+
const response = yield this.client.request({
|
|
55
|
+
url: `entities/${request.entityId}/futures/positions`,
|
|
56
|
+
queryParams,
|
|
57
|
+
callOptions: options,
|
|
58
|
+
});
|
|
59
|
+
return response.data;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
scheduleEntitySweep(request, options) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.client.request({
|
|
65
|
+
url: `entities/${request.entityId}/futures/sweeps`,
|
|
66
|
+
method: core_ts_1.Method.POST,
|
|
67
|
+
bodyParams: Object.assign(Object.assign({}, request), { entityId: undefined }),
|
|
68
|
+
callOptions: options,
|
|
69
|
+
});
|
|
70
|
+
return response.data;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
updateEntityAutoSweep(request, options) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const response = yield this.client.request({
|
|
76
|
+
url: `entities/${request.entityId}/futures/auto_sweep`,
|
|
77
|
+
method: core_ts_1.Method.POST,
|
|
78
|
+
bodyParams: Object.assign(Object.assign({}, request), { entityId: undefined }),
|
|
79
|
+
callOptions: options,
|
|
80
|
+
});
|
|
81
|
+
return response.data;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
cancelEntitySweep(request, options) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const response = yield this.client.request({
|
|
87
|
+
url: `entities/${request.entityId}/futures/sweeps`,
|
|
88
|
+
method: core_ts_1.Method.DELETE,
|
|
89
|
+
callOptions: options,
|
|
90
|
+
});
|
|
91
|
+
return response.data;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.FuturesService = FuturesService;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { 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';
|
|
23
|
+
export type ListEntityFuturesSweeps = {
|
|
24
|
+
entityId: string;
|
|
25
|
+
};
|
|
26
|
+
export type ListEntityFuturesSweepsResponse = GetFuturesSweepsResponse;
|
|
27
|
+
export type GetEntityFuturesBalanceRequest = {
|
|
28
|
+
entityId: string;
|
|
29
|
+
};
|
|
30
|
+
export type GetEntityFuturesBalanceResponse = GetFcmBalanceResponse;
|
|
31
|
+
export type GetEntityFuturesPositionsRequest = {
|
|
32
|
+
entityId: string;
|
|
33
|
+
productId?: string;
|
|
34
|
+
};
|
|
35
|
+
export type GetEntityFuturesPositionsResponse = GetPositionsResponse;
|
|
36
|
+
export type UpdateEntityFuturesAutoSweep = {
|
|
37
|
+
entityId: string;
|
|
38
|
+
autoSweep: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type UpdateEntityFuturesAutoSweepResponse = SetAutoSweepResponse;
|
|
41
|
+
export type ScheduleEntityFuturesSweepRequest = ScheduleFuturesSweepRequest & {
|
|
42
|
+
entityId: string;
|
|
43
|
+
};
|
|
44
|
+
export type ScheduleEntityFuturesSweepResponse = ScheduleFuturesSweepResponse;
|
|
45
|
+
export type CancelEntitySweepRequest = {
|
|
46
|
+
entityId: string;
|
|
47
|
+
};
|
|
48
|
+
export type CancelEntitySweepResponse = CancelFuturesSweepResponse;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,16 +16,18 @@
|
|
|
16
16
|
export { CoinbasePrimeClient } from './client';
|
|
17
17
|
export { CoinbasePrimeCredentials } from './credentials';
|
|
18
18
|
export { ActivitiesService, IActivitiesService } from './activities';
|
|
19
|
-
export { AddressBooksService } from './addressBooks';
|
|
20
|
-
export { AllocationService } from './allocations';
|
|
19
|
+
export { AddressBooksService, IAddressBooksService } from './addressBooks';
|
|
20
|
+
export { AllocationService, IAllocationService } from './allocations';
|
|
21
21
|
export { AssetsService, IAssetsService } from './assets';
|
|
22
|
-
export { BalancesService } from './balances';
|
|
23
|
-
export { CommissionService } from './commission';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
22
|
+
export { BalancesService, IBalancesService } from './balances';
|
|
23
|
+
export { CommissionService, ICommissionService } from './commission';
|
|
24
|
+
export { FuturesService, IFuturesService } from './futures';
|
|
25
|
+
export { InvoicesService, IInvoicesService } from './invoices';
|
|
26
|
+
export { OnchainAddressBookService } from './onchainAddressBook';
|
|
27
|
+
export { OrdersService, IOrdersService } from './orders';
|
|
28
|
+
export { PaymentMethodsService, IPaymentMethodsService, } from './paymentMethods';
|
|
29
|
+
export { PortfoliosService, IPortfoliosService } from './portfolios';
|
|
30
|
+
export { ProductsService, IProductsService } from './products';
|
|
31
|
+
export { TransactionsService, ITransactionsService } from './transactions';
|
|
32
|
+
export { UsersService, IUsersService } from './users';
|
|
33
|
+
export { WalletsService, IWalletsService } from './wallets';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.ProductsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.InvoicesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
|
|
3
|
+
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.ProductsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Copyright 2024-present Coinbase Global, Inc.
|
|
6
6
|
*
|
|
@@ -32,8 +32,12 @@ var balances_1 = require("./balances");
|
|
|
32
32
|
Object.defineProperty(exports, "BalancesService", { enumerable: true, get: function () { return balances_1.BalancesService; } });
|
|
33
33
|
var commission_1 = require("./commission");
|
|
34
34
|
Object.defineProperty(exports, "CommissionService", { enumerable: true, get: function () { return commission_1.CommissionService; } });
|
|
35
|
+
var futures_1 = require("./futures");
|
|
36
|
+
Object.defineProperty(exports, "FuturesService", { enumerable: true, get: function () { return futures_1.FuturesService; } });
|
|
35
37
|
var invoices_1 = require("./invoices");
|
|
36
38
|
Object.defineProperty(exports, "InvoicesService", { enumerable: true, get: function () { return invoices_1.InvoicesService; } });
|
|
39
|
+
var onchainAddressBook_1 = require("./onchainAddressBook");
|
|
40
|
+
Object.defineProperty(exports, "OnchainAddressBookService", { enumerable: true, get: function () { return onchainAddressBook_1.OnchainAddressBookService; } });
|
|
37
41
|
var orders_1 = require("./orders");
|
|
38
42
|
Object.defineProperty(exports, "OrdersService", { enumerable: true, get: function () { return orders_1.OrdersService; } });
|
|
39
43
|
var paymentMethods_1 = require("./paymentMethods");
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { OrderSide } from './enums/OrderSide';
|
|
21
|
+
export type AcceptQuoteRequest = {
|
|
22
|
+
productId: string;
|
|
23
|
+
side: OrderSide;
|
|
24
|
+
/**
|
|
25
|
+
* A client-generated ID used for reference purposes (note: order will be rejected if this ID is not unique among all currently active orders)
|
|
26
|
+
*/
|
|
27
|
+
clientOrderId: string;
|
|
28
|
+
/**
|
|
29
|
+
* A quote id that was returned from the quote request
|
|
30
|
+
*/
|
|
31
|
+
quoteId: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,22 @@
|
|
|
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 AcceptQuoteResponse = {
|
|
21
|
+
orderId?: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/model/Activity.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -22,7 +22,7 @@ import { ActivityMetadataAccount } from './ActivityMetadataAccount';
|
|
|
22
22
|
import { ActivityMetadataTransactions } from './ActivityMetadataTransactions';
|
|
23
23
|
import { ActivitySecondaryType } from './enums/ActivitySecondaryType';
|
|
24
24
|
import { ActivityStatus } from './enums/ActivityStatus';
|
|
25
|
-
import { ActivityType } from './enums/
|
|
25
|
+
import { ActivityType } from './enums/PrimeActivityType';
|
|
26
26
|
import { HierarchyType } from './enums/HierarchyType';
|
|
27
27
|
import { UserAction } from './UserAction';
|
|
28
28
|
export type Activity = {
|
package/dist/model/Activity.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -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
|
+
import { ActivityType } from './enums/CustodyActivityType';
|
|
21
|
+
export type ActivityCreationResponse = {
|
|
22
|
+
activityType: ActivityType;
|
|
23
|
+
numApprovalsRemaining: number;
|
|
24
|
+
activityId: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|
|
@@ -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
|
+
export type AddressEntry = {
|
|
21
|
+
name?: string;
|
|
22
|
+
address?: string;
|
|
23
|
+
/**
|
|
24
|
+
* List of compatible chain IDs for a given address, empty for Solana. Ex: 1 for ETH Mainnet or 8453 for Base. Find more [here](https://chainlist.org/).
|
|
25
|
+
*/
|
|
26
|
+
chainIds?: Array<string>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,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 { AddressEntry } from './AddressEntry';
|
|
21
|
+
import { NetworkType } from './enums/NetworkType';
|
|
22
|
+
export type AddressGroup = {
|
|
23
|
+
id?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
networkType?: NetworkType;
|
|
26
|
+
addresses?: Array<AddressEntry>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
* you may not use this file except in compliance with the License.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
4
4
|
*
|
|
5
|
-
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
8
|
* you may not use this file except in compliance with the License.
|