@northstake/northstakeapi 1.0.13 → 1.0.15
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/.openapi-generator/FILES +19 -22
- package/api/apis.ts +1 -3
- package/api/depositAddressesApi.ts +15 -15
- package/api/linkedWalletsApi.ts +8 -8
- package/api/managedUsersApi.ts +31 -31
- package/api/managedUsersDepositAddressesApi.ts +6 -6
- package/api/managedUsersLinkedWalletsApi.ts +20 -20
- package/api/managedUsersOrdersApi.ts +16 -16
- package/api/managedUsersPortfolioApi.ts +3 -3
- package/api/managedUsersTransactionsApi.ts +11 -11
- package/api/managedUsersValidatorsApi.ts +2 -2
- package/api/ordersApi.ts +7 -7
- package/api/transactionsApi.ts +6 -6
- package/api/validatorMarketplaceBuyersApi.ts +3 -3
- package/api/validatorMarketplaceSellersApi.ts +3 -3
- package/api/validatorsApi.ts +5 -5
- package/api.ts +19 -25
- package/dist/api/apis.d.ts +1 -3
- package/dist/api/apis.js +1 -3
- package/dist/api/depositAddressesApi.d.ts +7 -7
- package/dist/api/depositAddressesApi.js +10 -10
- package/dist/api/linkedWalletsApi.d.ts +3 -3
- package/dist/api/linkedWalletsApi.js +7 -7
- package/dist/api/managedUsersApi.d.ts +14 -14
- package/dist/api/managedUsersApi.js +26 -26
- package/dist/api/managedUsersDepositAddressesApi.d.ts +4 -4
- package/dist/api/managedUsersDepositAddressesApi.js +4 -4
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +7 -7
- package/dist/api/managedUsersLinkedWalletsApi.js +18 -18
- package/dist/api/managedUsersOrdersApi.d.ts +6 -6
- package/dist/api/managedUsersOrdersApi.js +15 -15
- package/dist/api/managedUsersPortfolioApi.d.ts +2 -2
- package/dist/api/managedUsersPortfolioApi.js +3 -3
- package/dist/api/managedUsersTransactionsApi.d.ts +7 -7
- package/dist/api/managedUsersTransactionsApi.js +5 -5
- package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
- package/dist/api/managedUsersValidatorsApi.js +2 -2
- package/dist/api/ordersApi.d.ts +3 -3
- package/dist/api/ordersApi.js +6 -6
- package/dist/api/transactionsApi.d.ts +4 -4
- package/dist/api/transactionsApi.js +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.js +1 -1
- package/dist/api/validatorMarketplaceSellersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceSellersApi.js +1 -1
- package/dist/api/validatorsApi.d.ts +3 -3
- package/dist/api/validatorsApi.js +2 -2
- package/dist/api.d.ts +19 -23
- package/dist/api.js +19 -24
- package/dist/model/{settlementStepAcceptedQuote.d.ts → acceptedQuote.d.ts} +4 -4
- package/dist/model/{settlementStepAcceptedQuote.js → acceptedQuote.js} +6 -6
- package/dist/model/accountEntity.d.ts +3 -1
- package/dist/model/accountEntity.js +5 -0
- package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
- package/dist/model/{baseOrder.js → addLinkedWalletForUserRequest.js} +10 -15
- package/dist/model/addLinkedWalletRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletRequest.js +3 -3
- package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -1
- package/dist/model/{depositAccount.d.ts → depositAddress.d.ts} +6 -6
- package/dist/model/{depositAccount.js → depositAddress.js} +8 -8
- package/dist/model/{depositAddressesForManagedUserResponse.d.ts → depositAddressesForUserResponse.d.ts} +3 -3
- package/dist/model/{depositAddressesForManagedUserResponse.js → depositAddressesForUserResponse.js} +7 -7
- package/dist/model/{settlementStepEscrowPayment.d.ts → escrowPayment.d.ts} +1 -1
- package/dist/model/{settlementStepEscrowPayment.js → escrowPayment.js} +6 -6
- package/dist/model/{settlementStepEscrowReleased.d.ts → escrowReleased.d.ts} +1 -1
- package/dist/model/{settlementStepEscrowReleased.js → escrowReleased.js} +6 -6
- package/dist/model/managedUserDetails.d.ts +31 -0
- package/dist/model/managedUserDetails.js +41 -0
- package/dist/model/models.d.ts +19 -21
- package/dist/model/models.js +42 -56
- package/dist/model/{unstakeOrder.d.ts → order.d.ts} +12 -12
- package/dist/model/{newOrderRequest.js → order.js} +7 -7
- package/dist/model/orderDocument.d.ts +4 -4
- package/dist/model/orderDocument.js +1 -1
- package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.d.ts} +4 -1
- package/dist/model/portfolioEntity.d.ts +2 -2
- package/dist/model/portfolioEntity.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +2 -2
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +2 -2
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
- package/dist/model/rFQDocumentSeller.d.ts +2 -2
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +12 -0
- package/dist/model/settlementSteps.d.ts +8 -8
- package/dist/model/settlementSteps.js +4 -4
- package/dist/model/smartContract.d.ts +36 -0
- package/dist/model/smartContract.js +56 -0
- package/dist/model/transaction.d.ts +4 -4
- package/dist/model/transaction.js +2 -2
- package/dist/model/{transactionEventTypeEnum.d.ts → transactionEventType.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.d.ts → transactionsforUser.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.js → transactionsforUser.js} +6 -6
- package/dist/model/validatorContractType.d.ts +12 -0
- package/dist/model/validatorInfo.d.ts +5 -5
- package/dist/model/validatorInfo.js +3 -3
- package/dist/model/validatorInfoValidatorType.d.ts +2 -2
- package/dist/model/validatorInfoValidatorType.js +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
- package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
- package/dist/model/{validatorKeyHolderEnum.d.ts → validatorKeyHolder.d.ts} +1 -1
- package/dist/model/validatorKeyHolder.js +13 -0
- package/dist/model/wallet.d.ts +5 -2
- package/dist/model/wallet.js +4 -4
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.d.ts → withdrawalRecipientSettlement.d.ts} +1 -1
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.js → withdrawalRecipientSettlement.js} +6 -6
- package/model/{settlementStepAcceptedQuote.ts → acceptedQuote.ts} +5 -5
- package/model/accountEntity.ts +8 -1
- package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +8 -8
- package/model/addLinkedWalletRequest.ts +5 -5
- package/model/{tokenEnum.ts → asset.ts} +1 -1
- package/model/{depositAccount.ts → depositAddress.ts} +8 -8
- package/model/{depositAddressesForManagedUserResponse.ts → depositAddressesForUserResponse.ts} +5 -5
- package/model/{settlementStepEscrowPayment.ts → escrowPayment.ts} +2 -2
- package/model/{settlementStepEscrowReleased.ts → escrowReleased.ts} +2 -2
- package/model/managedUserDetails.ts +47 -0
- package/model/models.ts +60 -77
- package/model/{withdrawalOrder.ts → order.ts} +16 -18
- package/model/orderDocument.ts +5 -5
- package/model/orderType.ts +21 -0
- package/model/portfolioEntity.ts +3 -3
- package/model/rFQDocumentBase.ts +3 -3
- package/model/rFQDocumentBuyer.ts +3 -3
- package/model/{rFQDocumentBuyerStatusFilterEnum.ts → rFQDocumentBuyerStatusFilter.ts} +1 -1
- package/model/rFQDocumentSeller.ts +3 -3
- package/model/{rFQDocumentSellerStatusFilterEnum.ts → rFQDocumentSellerStatusFilter.ts} +1 -1
- package/model/{rFQDocumentStatusEnum.ts → rFQDocumentStatus.ts} +1 -1
- package/model/settlementSteps.ts +12 -12
- package/model/smartContract.ts +67 -0
- package/model/transaction.ts +6 -6
- package/model/{transactionEventTypeEnum.ts → transactionEventType.ts} +1 -1
- package/model/{transactionsForManagedUser.ts → transactionsforUser.ts} +2 -2
- package/model/{validatorContractTypeEnum.ts → validatorContractType.ts} +1 -1
- package/model/validatorInfo.ts +8 -8
- package/model/validatorInfoValidatorType.ts +3 -3
- package/model/validatorInfoValidatorTypeContract.ts +3 -3
- package/model/{validatorKeyHolderEnum.ts → validatorKeyHolder.ts} +1 -1
- package/model/wallet.ts +8 -5
- package/model/{settlementStepWithdrawalRecipientSettlement.ts → withdrawalRecipientSettlement.ts} +2 -2
- package/package.json +2 -2
- package/api/liquidityProviderApi.ts +0 -178
- package/dist/api/liquidityProviderApi.d.ts +0 -49
- package/dist/api/liquidityProviderApi.js +0 -139
- package/dist/model/addLinkedWalletForManagedUserRequest.js +0 -33
- package/dist/model/baseOrder.d.ts +0 -42
- package/dist/model/createOrderForManagedUserRequest.d.ts +0 -48
- package/dist/model/createOrderForManagedUserRequest.js +0 -48
- package/dist/model/newOrderRequest.d.ts +0 -48
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -12
- package/dist/model/stakeOrder.d.ts +0 -44
- package/dist/model/stakeOrder.js +0 -46
- package/dist/model/unstakeOrder.js +0 -38
- package/dist/model/validatorContractTypeEnum.d.ts +0 -12
- package/dist/model/withdrawalOrder.d.ts +0 -46
- package/dist/model/withdrawalOrder.js +0 -43
- package/model/baseOrder.ts +0 -61
- package/model/createOrderForManagedUserRequest.ts +0 -80
- package/model/newOrderRequest.ts +0 -80
- package/model/stakeOrder.ts +0 -68
- package/model/unstakeOrder.ts +0 -61
- /package/dist/model/{rFQDocumentBuyerStatusFilterEnum.js → asset.js} +0 -0
- /package/dist/model/{rFQDocumentSellerStatusFilterEnum.js → orderType.js} +0 -0
- /package/dist/model/{rFQDocumentStatusEnum.js → rFQDocumentBuyerStatusFilter.js} +0 -0
- /package/dist/model/{tokenEnum.js → rFQDocumentSellerStatusFilter.js} +0 -0
- /package/dist/model/{transactionEventTypeEnum.js → rFQDocumentStatus.js} +0 -0
- /package/dist/model/{validatorContractTypeEnum.js → transactionEventType.js} +0 -0
- /package/dist/model/{validatorKeyHolderEnum.js → validatorContractType.js} +0 -0
|
@@ -15,8 +15,8 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { CreateOrderForManagedUserRequest } from '../model/createOrderForManagedUserRequest';
|
|
19
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
+
import { Order } from '../model/order';
|
|
20
20
|
import { OrderDocument } from '../model/orderDocument';
|
|
21
21
|
|
|
22
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -109,7 +109,7 @@ export class ManagedUsersOrdersApi {
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
public async
|
|
112
|
+
public async cancelOrderForUser (userId: string, orderId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
113
113
|
|
|
114
114
|
const localVarPath = this.basePath + '/managedUsers/{userId}/orders/{orderId}'
|
|
115
115
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
@@ -128,11 +128,11 @@ export class ManagedUsersOrdersApi {
|
|
|
128
128
|
|
|
129
129
|
// Verify required parameter 'userId' is not null or undefined
|
|
130
130
|
if (userId === null || userId === undefined) {
|
|
131
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
131
|
+
throw new Error('Required parameter "userId" was null or undefined when calling cancelOrderForUser.');
|
|
132
132
|
}
|
|
133
133
|
// Verify required parameter 'orderId' is not null or undefined
|
|
134
134
|
if (orderId === null || orderId === undefined) {
|
|
135
|
-
throw new Error('Required parameter "orderId" was null or undefined when calling
|
|
135
|
+
throw new Error('Required parameter "orderId" was null or undefined when calling cancelOrderForUser.');
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
|
|
@@ -193,14 +193,14 @@ export class ManagedUsersOrdersApi {
|
|
|
193
193
|
* This endpoint allows the client to create a staking, unstaking, or withdrawal order on behalf of a managed user. One key feature of this endpoint is the ability to include an optional `validatorKey` field when creating a staking order. ### Including a Validator Key (Ethereum only) By including a `validatorKey` in the staking order, the client specifies a pre-generated and signed Ethereum validator key that should be used for the staking transaction. This key must meet all required security and operational standards, as it will be directly used for staking on the Ethereum blockchain. The `validatorKey` object includes cryptographic details such as the keystore information, public key, and the cryptographic path. Including this key is beneficial for users who prefer to maintain a level of control over their staking operations and ensure that their specific validators are utilized. ### Without a Validator Key If no `validatorKey` is provided, Northstake handles the staking operation internally. This process requires that the managed user\'s account must have sufficient balance in their deposit account to cover the staking transaction and any associated fees. In this case, Northstake will generate the necessary validator keys, handle the cryptographic operations, and ensure the validator is registered correctly on the blockchain. ### Usage Scenarios - **With Validator Key**: Ensures that a specific, pre-approved validator key is used, providing transparency and control to the user. - **Without Validator Key**: Ideal for users who prefer a hands-off approach, allowing Northstake to manage the technical and operational complexities of staking on their behalf. Clients are advised to ensure that all provided validator keys are secure and generated according to best security practices. Improper handling or exposure of validator keys can lead to significant security risks, including loss of staked assets.
|
|
194
194
|
* @summary Create an order on behalf of a managed user
|
|
195
195
|
* @param userId
|
|
196
|
-
* @param
|
|
196
|
+
* @param order
|
|
197
197
|
*/
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
public async
|
|
203
|
+
public async createOrderForUser (userId: string, order: Order, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrderDocument, status: number }> {
|
|
204
204
|
|
|
205
205
|
const localVarPath = this.basePath + '/managedUsers/{userId}/orders'
|
|
206
206
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
@@ -218,11 +218,11 @@ export class ManagedUsersOrdersApi {
|
|
|
218
218
|
|
|
219
219
|
// Verify required parameter 'userId' is not null or undefined
|
|
220
220
|
if (userId === null || userId === undefined) {
|
|
221
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
221
|
+
throw new Error('Required parameter "userId" was null or undefined when calling createOrderForUser.');
|
|
222
222
|
}
|
|
223
|
-
// Verify required parameter '
|
|
224
|
-
if (
|
|
225
|
-
throw new Error('Required parameter "
|
|
223
|
+
// Verify required parameter 'order' is not null or undefined
|
|
224
|
+
if (order === null || order === undefined) {
|
|
225
|
+
throw new Error('Required parameter "order" was null or undefined when calling createOrderForUser.');
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
|
|
@@ -244,7 +244,7 @@ export class ManagedUsersOrdersApi {
|
|
|
244
244
|
uri: localVarPath,
|
|
245
245
|
useQuerystring: this._useQuerystring,
|
|
246
246
|
json: true,
|
|
247
|
-
body: ObjectSerializer.serialize(
|
|
247
|
+
body: ObjectSerializer.serialize(order, "Order")
|
|
248
248
|
};
|
|
249
249
|
|
|
250
250
|
let authenticationPromise = Promise.resolve();
|
|
@@ -291,7 +291,7 @@ export class ManagedUsersOrdersApi {
|
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
|
|
294
|
-
public async
|
|
294
|
+
public async getAllOrdersForUser (userId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<OrderDocument>, status: number }> {
|
|
295
295
|
|
|
296
296
|
const localVarPath = this.basePath + '/managedUsers/{userId}/orders'
|
|
297
297
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
@@ -309,7 +309,7 @@ export class ManagedUsersOrdersApi {
|
|
|
309
309
|
|
|
310
310
|
// Verify required parameter 'userId' is not null or undefined
|
|
311
311
|
if (userId === null || userId === undefined) {
|
|
312
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
312
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getAllOrdersForUser.');
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
|
|
@@ -378,7 +378,7 @@ export class ManagedUsersOrdersApi {
|
|
|
378
378
|
|
|
379
379
|
|
|
380
380
|
|
|
381
|
-
public async
|
|
381
|
+
public async getOrderDetailsForUser (userId: string, orderId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrderDocument, status: number }> {
|
|
382
382
|
|
|
383
383
|
const localVarPath = this.basePath + '/managedUsers/{userId}/orders/{orderId}'
|
|
384
384
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
@@ -397,11 +397,11 @@ export class ManagedUsersOrdersApi {
|
|
|
397
397
|
|
|
398
398
|
// Verify required parameter 'userId' is not null or undefined
|
|
399
399
|
if (userId === null || userId === undefined) {
|
|
400
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
400
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getOrderDetailsForUser.');
|
|
401
401
|
}
|
|
402
402
|
// Verify required parameter 'orderId' is not null or undefined
|
|
403
403
|
if (orderId === null || orderId === undefined) {
|
|
404
|
-
throw new Error('Required parameter "orderId" was null or undefined when calling
|
|
404
|
+
throw new Error('Required parameter "orderId" was null or undefined when calling getOrderDetailsForUser.');
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
|
|
@@ -99,7 +99,7 @@ export class ManagedUsersPortfolioApi {
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
|
-
* @summary
|
|
102
|
+
* @summary Portfolio overview for a managed user
|
|
103
103
|
* @param userId
|
|
104
104
|
*/
|
|
105
105
|
|
|
@@ -107,7 +107,7 @@ export class ManagedUsersPortfolioApi {
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
public async
|
|
110
|
+
public async getPortfolioForUser (userId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<PortfolioEntity>, status: number }> {
|
|
111
111
|
|
|
112
112
|
const localVarPath = this.basePath + '/managedUsers/{userId}/portfolio'
|
|
113
113
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
@@ -125,7 +125,7 @@ export class ManagedUsersPortfolioApi {
|
|
|
125
125
|
|
|
126
126
|
// Verify required parameter 'userId' is not null or undefined
|
|
127
127
|
if (userId === null || userId === undefined) {
|
|
128
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
128
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getPortfolioForUser.');
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
|
|
@@ -15,10 +15,10 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { Asset } from '../model/asset';
|
|
18
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { TransactionsForManagedUser } from '../model/transactionsForManagedUser';
|
|
20
|
+
import { TransactionEventType } from '../model/transactionEventType';
|
|
21
|
+
import { TransactionsforUser } from '../model/transactionsforUser';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -41,8 +41,8 @@ export interface ManagedUsersTransactionsApiParams {
|
|
|
41
41
|
userId: string;
|
|
42
42
|
startDate?: string;
|
|
43
43
|
endDate?: string;
|
|
44
|
-
type?:
|
|
45
|
-
asset?:
|
|
44
|
+
type?: TransactionEventType;
|
|
45
|
+
asset?: Asset;
|
|
46
46
|
page?: number;
|
|
47
47
|
limit?: number;
|
|
48
48
|
}
|
|
@@ -125,7 +125,7 @@ export class ManagedUsersTransactionsApi {
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
public async
|
|
128
|
+
public async getTransactionsForUser(params: ManagedUsersTransactionsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: TransactionsforUser, status: number }> {
|
|
129
129
|
|
|
130
130
|
const localVarPath = this.basePath + '/managedUsers/{userId}/transactions'
|
|
131
131
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(params?.userId)));
|
|
@@ -143,7 +143,7 @@ export class ManagedUsersTransactionsApi {
|
|
|
143
143
|
|
|
144
144
|
// Verify required parameter 'userId' is not null or undefined
|
|
145
145
|
if (params?.userId === null || params?.userId === undefined) {
|
|
146
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
146
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getTransactionsForUser.');
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
|
|
@@ -155,10 +155,10 @@ export class ManagedUsersTransactionsApi {
|
|
|
155
155
|
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(params?.endDate, "string");
|
|
156
156
|
}
|
|
157
157
|
if (params?.type !== undefined) {
|
|
158
|
-
localVarQueryParameters['type'] = ObjectSerializer.serialize(params?.type, "
|
|
158
|
+
localVarQueryParameters['type'] = ObjectSerializer.serialize(params?.type, "TransactionEventType");
|
|
159
159
|
}
|
|
160
160
|
if (params?.asset !== undefined) {
|
|
161
|
-
localVarQueryParameters['asset'] = ObjectSerializer.serialize(params?.asset, "
|
|
161
|
+
localVarQueryParameters['asset'] = ObjectSerializer.serialize(params?.asset, "Asset");
|
|
162
162
|
}
|
|
163
163
|
if (params?.page !== undefined) {
|
|
164
164
|
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
@@ -201,14 +201,14 @@ export class ManagedUsersTransactionsApi {
|
|
|
201
201
|
localVarRequestOptions.form = localVarFormParams;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
return new Promise<{ body:
|
|
204
|
+
return new Promise<{ body: TransactionsforUser, status: number }>((resolve, reject) => {
|
|
205
205
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
206
206
|
if (error) {
|
|
207
207
|
console.error('API call error:', error);
|
|
208
208
|
reject(error);
|
|
209
209
|
} else {
|
|
210
210
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
211
|
-
body = ObjectSerializer.deserialize(body, "
|
|
211
|
+
body = ObjectSerializer.deserialize(body, "TransactionsforUser");
|
|
212
212
|
resolve({ body: body, status: response.statusCode });
|
|
213
213
|
} else {
|
|
214
214
|
console.error('API response error:', response.statusCode);
|
|
@@ -107,7 +107,7 @@ export class ManagedUsersValidatorsApi {
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
public async
|
|
110
|
+
public async getValidatorsForUser (userId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<ValidatorInfo>, status: number }> {
|
|
111
111
|
|
|
112
112
|
const localVarPath = this.basePath + '/managedUsers/{userId}/validators'
|
|
113
113
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
@@ -125,7 +125,7 @@ export class ManagedUsersValidatorsApi {
|
|
|
125
125
|
|
|
126
126
|
// Verify required parameter 'userId' is not null or undefined
|
|
127
127
|
if (userId === null || userId === undefined) {
|
|
128
|
-
throw new Error('Required parameter "userId" was null or undefined when calling
|
|
128
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getValidatorsForUser.');
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
|
package/api/ordersApi.ts
CHANGED
|
@@ -16,7 +16,7 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import {
|
|
19
|
+
import { Order } from '../model/order';
|
|
20
20
|
import { OrderDocument } from '../model/orderDocument';
|
|
21
21
|
|
|
22
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -180,14 +180,14 @@ export class OrdersApi {
|
|
|
180
180
|
/**
|
|
181
181
|
* This endpoint allows the client to create staking, unstaking, or withdrawal orders. One key feature of this endpoint is the ability to include an optional `validatorKey` field when creating a staking order. ### Including a Validator Key By including a `validatorKey` in the staking order, the client specifies a pre-generated and signed Ethereum validator key that should be used for the staking transaction. This key must meet all required security and operational standards, as it will be directly used for staking on the Ethereum blockchain. ### Without a Validator Key If no `validatorKey` is provided, the client must specify the amount to stake. Northstake handles the staking operation internally, requiring the managed user\'s account to have sufficient balance to cover the transaction and any associated fees.
|
|
182
182
|
* @summary Create a new order
|
|
183
|
-
* @param
|
|
183
|
+
* @param order
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
public async createNewOrder (
|
|
190
|
+
public async createNewOrder (order: Order, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: OrderDocument, status: number }> {
|
|
191
191
|
|
|
192
192
|
const localVarPath = this.basePath + '/orders';
|
|
193
193
|
|
|
@@ -202,9 +202,9 @@ export class OrdersApi {
|
|
|
202
202
|
let localVarFormParams: any = {};
|
|
203
203
|
|
|
204
204
|
|
|
205
|
-
// Verify required parameter '
|
|
206
|
-
if (
|
|
207
|
-
throw new Error('Required parameter "
|
|
205
|
+
// Verify required parameter 'order' is not null or undefined
|
|
206
|
+
if (order === null || order === undefined) {
|
|
207
|
+
throw new Error('Required parameter "order" was null or undefined when calling createNewOrder.');
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
|
|
@@ -226,7 +226,7 @@ export class OrdersApi {
|
|
|
226
226
|
uri: localVarPath,
|
|
227
227
|
useQuerystring: this._useQuerystring,
|
|
228
228
|
json: true,
|
|
229
|
-
body: ObjectSerializer.serialize(
|
|
229
|
+
body: ObjectSerializer.serialize(order, "Order")
|
|
230
230
|
};
|
|
231
231
|
|
|
232
232
|
let authenticationPromise = Promise.resolve();
|
package/api/transactionsApi.ts
CHANGED
|
@@ -15,10 +15,10 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { Asset } from '../model/asset';
|
|
18
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
20
|
import { GetTransactionsResponse } from '../model/getTransactionsResponse';
|
|
20
|
-
import {
|
|
21
|
-
import { TransactionEventTypeEnum } from '../model/transactionEventTypeEnum';
|
|
21
|
+
import { TransactionEventType } from '../model/transactionEventType';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -40,8 +40,8 @@ export enum TransactionsApiApiKeys {
|
|
|
40
40
|
export interface TransactionsApiParams {
|
|
41
41
|
startDate?: string;
|
|
42
42
|
endDate?: string;
|
|
43
|
-
type?:
|
|
44
|
-
asset?:
|
|
43
|
+
type?: TransactionEventType;
|
|
44
|
+
asset?: Asset;
|
|
45
45
|
page?: number;
|
|
46
46
|
limit?: number;
|
|
47
47
|
}
|
|
@@ -148,10 +148,10 @@ export class TransactionsApi {
|
|
|
148
148
|
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(params?.endDate, "string");
|
|
149
149
|
}
|
|
150
150
|
if (params?.type !== undefined) {
|
|
151
|
-
localVarQueryParameters['type'] = ObjectSerializer.serialize(params?.type, "
|
|
151
|
+
localVarQueryParameters['type'] = ObjectSerializer.serialize(params?.type, "TransactionEventType");
|
|
152
152
|
}
|
|
153
153
|
if (params?.asset !== undefined) {
|
|
154
|
-
localVarQueryParameters['asset'] = ObjectSerializer.serialize(params?.asset, "
|
|
154
|
+
localVarQueryParameters['asset'] = ObjectSerializer.serialize(params?.asset, "Asset");
|
|
155
155
|
}
|
|
156
156
|
if (params?.page !== undefined) {
|
|
157
157
|
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
@@ -18,7 +18,7 @@ import http from 'http';
|
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
19
|
import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
|
|
20
20
|
import { RFQDocumentBuyer } from '../model/rFQDocumentBuyer';
|
|
21
|
-
import {
|
|
21
|
+
import { RFQDocumentBuyerStatusFilter } from '../model/rFQDocumentBuyerStatusFilter';
|
|
22
22
|
import { SubmittedQuote } from '../model/submittedQuote';
|
|
23
23
|
|
|
24
24
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -196,7 +196,7 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
|
|
199
|
-
public async listRFQDocumentsForBuyer (status?:
|
|
199
|
+
public async listRFQDocumentsForBuyer (status?: RFQDocumentBuyerStatusFilter, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<RFQDocumentBuyer>, status: number }> {
|
|
200
200
|
|
|
201
201
|
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents';
|
|
202
202
|
|
|
@@ -215,7 +215,7 @@ export class ValidatorMarketplaceBuyersApi {
|
|
|
215
215
|
|
|
216
216
|
|
|
217
217
|
if (status !== undefined) {
|
|
218
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "
|
|
218
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentBuyerStatusFilter");
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
|
|
@@ -18,7 +18,7 @@ import http from 'http';
|
|
|
18
18
|
import { CreateRFQRequest } from '../model/createRFQRequest';
|
|
19
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
20
20
|
import { RFQDocumentSeller } from '../model/rFQDocumentSeller';
|
|
21
|
-
import {
|
|
21
|
+
import { RFQDocumentSellerStatusFilter } from '../model/rFQDocumentSellerStatusFilter';
|
|
22
22
|
import { RegisterWithdrawalRecipientSettlementRequest } from '../model/registerWithdrawalRecipientSettlementRequest';
|
|
23
23
|
|
|
24
24
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -373,7 +373,7 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
373
373
|
|
|
374
374
|
|
|
375
375
|
|
|
376
|
-
public async listRFQs (status?:
|
|
376
|
+
public async listRFQs (status?: RFQDocumentSellerStatusFilter, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<RFQDocumentSeller>, status: number }> {
|
|
377
377
|
|
|
378
378
|
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
379
379
|
|
|
@@ -392,7 +392,7 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
if (status !== undefined) {
|
|
395
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "
|
|
395
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentSellerStatusFilter");
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
|
package/api/validatorsApi.ts
CHANGED
|
@@ -16,9 +16,9 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import {
|
|
19
|
+
import { ValidatorContractType } from '../model/validatorContractType';
|
|
20
20
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
21
|
-
import {
|
|
21
|
+
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -110,7 +110,7 @@ export class ValidatorsApi {
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
public async getValidators (keyHolder?:
|
|
113
|
+
public async getValidators (keyHolder?: ValidatorKeyHolder, contractType?: ValidatorContractType, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<ValidatorInfo>, status: number }> {
|
|
114
114
|
|
|
115
115
|
const localVarPath = this.basePath + '/validators';
|
|
116
116
|
|
|
@@ -129,10 +129,10 @@ export class ValidatorsApi {
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
if (keyHolder !== undefined) {
|
|
132
|
-
localVarQueryParameters['key_holder'] = ObjectSerializer.serialize(keyHolder, "
|
|
132
|
+
localVarQueryParameters['key_holder'] = ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolder");
|
|
133
133
|
}
|
|
134
134
|
if (contractType !== undefined) {
|
|
135
|
-
localVarQueryParameters['contract_type'] = ObjectSerializer.serialize(contractType, "
|
|
135
|
+
localVarQueryParameters['contract_type'] = ObjectSerializer.serialize(contractType, "ValidatorContractType");
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
|
package/api.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { JWTAuth } from './model/models';
|
|
|
3
3
|
import { AccountApi } from './api/accountApi';
|
|
4
4
|
import { DepositAddressesApi } from './api/depositAddressesApi';
|
|
5
5
|
import { LinkedWalletsApi } from './api/linkedWalletsApi';
|
|
6
|
-
import { LiquidityProviderApi } from './api/liquidityProviderApi';
|
|
7
6
|
import { ManagedUsersApi } from './api/managedUsersApi';
|
|
8
7
|
import { ManagedUsersDepositAddressesApi } from './api/managedUsersDepositAddressesApi';
|
|
9
8
|
import { ManagedUsersLinkedWalletsApi } from './api/managedUsersLinkedWalletsApi';
|
|
@@ -18,17 +17,19 @@ import { ValidatorMarketplaceBuyersApi } from './api/validatorMarketplaceBuyersA
|
|
|
18
17
|
import { ValidatorMarketplaceSellersApi } from './api/validatorMarketplaceSellersApi';
|
|
19
18
|
import { ValidatorMarketplaceWebhooksApi } from './api/validatorMarketplaceWebhooksApi';
|
|
20
19
|
import { ValidatorsApi } from './api/validatorsApi';
|
|
20
|
+
export * from './model/./acceptedQuote';
|
|
21
21
|
export * from './model/./accountEntity';
|
|
22
|
-
export * from './model/./
|
|
22
|
+
export * from './model/./addLinkedWalletForUserRequest';
|
|
23
23
|
export * from './model/./addLinkedWalletRequest';
|
|
24
24
|
export * from './model/./allManagedUsersResponse';
|
|
25
|
-
export * from './model/./
|
|
25
|
+
export * from './model/./asset';
|
|
26
26
|
export * from './model/./createManagedUserRequest';
|
|
27
|
-
export * from './model/./createOrderForManagedUserRequest';
|
|
28
27
|
export * from './model/./createRFQRequest';
|
|
29
|
-
export * from './model/./
|
|
30
|
-
export * from './model/./
|
|
28
|
+
export * from './model/./depositAddress';
|
|
29
|
+
export * from './model/./depositAddressesForUserResponse';
|
|
31
30
|
export * from './model/./errorResponse';
|
|
31
|
+
export * from './model/./escrowPayment';
|
|
32
|
+
export * from './model/./escrowReleased';
|
|
32
33
|
export * from './model/./ethereumValidatorKey';
|
|
33
34
|
export * from './model/./ethereumValidatorKeyKeystore';
|
|
34
35
|
export * from './model/./ethereumValidatorKeyKeystoreCrypto';
|
|
@@ -41,9 +42,11 @@ export * from './model/./exitEstimateBase';
|
|
|
41
42
|
export * from './model/./exitEstimateSeller';
|
|
42
43
|
export * from './model/./getTransactionsResponse';
|
|
43
44
|
export * from './model/./managedUser';
|
|
44
|
-
export * from './model/./
|
|
45
|
+
export * from './model/./managedUserDetails';
|
|
46
|
+
export * from './model/./order';
|
|
45
47
|
export * from './model/./orderDocument';
|
|
46
48
|
export * from './model/./orderDocumentSteps';
|
|
49
|
+
export * from './model/./orderType';
|
|
47
50
|
export * from './model/./orderUpdatePayload';
|
|
48
51
|
export * from './model/./portfolioEntity';
|
|
49
52
|
export * from './model/./provideEscrowHashForRFQDocumentRequest';
|
|
@@ -53,38 +56,32 @@ export * from './model/./rFQDocumentBase';
|
|
|
53
56
|
export * from './model/./rFQDocumentBaseUniqueEscrowVault';
|
|
54
57
|
export * from './model/./rFQDocumentBuyer';
|
|
55
58
|
export * from './model/./rFQDocumentBuyerAllOfValidators';
|
|
56
|
-
export * from './model/./
|
|
59
|
+
export * from './model/./rFQDocumentBuyerStatusFilter';
|
|
57
60
|
export * from './model/./rFQDocumentSeller';
|
|
58
61
|
export * from './model/./rFQDocumentSellerAllOfValidators';
|
|
59
|
-
export * from './model/./
|
|
60
|
-
export * from './model/./
|
|
62
|
+
export * from './model/./rFQDocumentSellerStatusFilter';
|
|
63
|
+
export * from './model/./rFQDocumentStatus';
|
|
61
64
|
export * from './model/./rFQDocumentUpdate';
|
|
62
65
|
export * from './model/./rFQUpdatePayload';
|
|
63
66
|
export * from './model/./rFQWebhookEventType';
|
|
64
67
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
65
|
-
export * from './model/./settlementStepAcceptedQuote';
|
|
66
|
-
export * from './model/./settlementStepEscrowPayment';
|
|
67
|
-
export * from './model/./settlementStepEscrowReleased';
|
|
68
|
-
export * from './model/./settlementStepWithdrawalRecipientSettlement';
|
|
69
68
|
export * from './model/./settlementSteps';
|
|
70
|
-
export * from './model/./
|
|
69
|
+
export * from './model/./smartContract';
|
|
71
70
|
export * from './model/./stakeStep';
|
|
72
71
|
export * from './model/./stakeStepElement';
|
|
73
72
|
export * from './model/./stepStatus';
|
|
74
73
|
export * from './model/./submittedQuote';
|
|
75
|
-
export * from './model/./tokenEnum';
|
|
76
74
|
export * from './model/./transaction';
|
|
77
|
-
export * from './model/./
|
|
78
|
-
export * from './model/./
|
|
79
|
-
export * from './model/./unstakeOrder';
|
|
75
|
+
export * from './model/./transactionEventType';
|
|
76
|
+
export * from './model/./transactionsforUser';
|
|
80
77
|
export * from './model/./unstakeStep';
|
|
81
78
|
export * from './model/./unstakeStepElement';
|
|
82
79
|
export * from './model/./unstakeStepType';
|
|
83
|
-
export * from './model/./
|
|
80
|
+
export * from './model/./validatorContractType';
|
|
84
81
|
export * from './model/./validatorInfo';
|
|
85
82
|
export * from './model/./validatorInfoValidatorType';
|
|
86
83
|
export * from './model/./validatorInfoValidatorTypeContract';
|
|
87
|
-
export * from './model/./
|
|
84
|
+
export * from './model/./validatorKeyHolder';
|
|
88
85
|
export * from './model/./wallet';
|
|
89
86
|
export * from './model/./webHookLookupAnswer';
|
|
90
87
|
export * from './model/./webhookPayload';
|
|
@@ -104,7 +101,7 @@ export * from './model/./webhookPayloadRFQValidatorExitedDetails';
|
|
|
104
101
|
export * from './model/./webhookPayloadRFQValidatorWithdrawalChange';
|
|
105
102
|
export * from './model/./webhookRegistration';
|
|
106
103
|
export * from './model/./webhookRegistrationDetails';
|
|
107
|
-
export * from './model/./
|
|
104
|
+
export * from './model/./withdrawalRecipientSettlement';
|
|
108
105
|
export * from './model/./withdrawalStep';
|
|
109
106
|
export * from './model/./withdrawalStepElement';
|
|
110
107
|
export * from './model/./withdrawalStepType';
|
|
@@ -119,8 +116,6 @@ export class NorthstakeApi {
|
|
|
119
116
|
this.depositAddresses.setDefaultAuthentication(jwtAuth);
|
|
120
117
|
this.linkedWallets = new LinkedWalletsApi(basePath);
|
|
121
118
|
this.linkedWallets.setDefaultAuthentication(jwtAuth);
|
|
122
|
-
this.liquidityProvider = new LiquidityProviderApi(basePath);
|
|
123
|
-
this.liquidityProvider.setDefaultAuthentication(jwtAuth);
|
|
124
119
|
this.managedUsers = new ManagedUsersApi(basePath);
|
|
125
120
|
this.managedUsers.setDefaultAuthentication(jwtAuth);
|
|
126
121
|
this.managedUsersDepositAddresses = new ManagedUsersDepositAddressesApi(basePath);
|
|
@@ -153,7 +148,6 @@ export class NorthstakeApi {
|
|
|
153
148
|
public account: AccountApi;
|
|
154
149
|
public depositAddresses: DepositAddressesApi;
|
|
155
150
|
public linkedWallets: LinkedWalletsApi;
|
|
156
|
-
public liquidityProvider: LiquidityProviderApi;
|
|
157
151
|
public managedUsers: ManagedUsersApi;
|
|
158
152
|
public managedUsersDepositAddresses: ManagedUsersDepositAddressesApi;
|
|
159
153
|
public managedUsersLinkedWallets: ManagedUsersLinkedWalletsApi;
|
package/dist/api/apis.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ export * from './depositAddressesApi';
|
|
|
5
5
|
import { DepositAddressesApi } from './depositAddressesApi';
|
|
6
6
|
export * from './linkedWalletsApi';
|
|
7
7
|
import { LinkedWalletsApi } from './linkedWalletsApi';
|
|
8
|
-
export * from './liquidityProviderApi';
|
|
9
|
-
import { LiquidityProviderApi } from './liquidityProviderApi';
|
|
10
8
|
export * from './managedUsersApi';
|
|
11
9
|
import { ManagedUsersApi } from './managedUsersApi';
|
|
12
10
|
export * from './managedUsersDepositAddressesApi';
|
|
@@ -43,4 +41,4 @@ export declare class HttpError extends Error {
|
|
|
43
41
|
constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
|
|
44
42
|
}
|
|
45
43
|
export { RequestFile } from '../model/models';
|
|
46
|
-
export declare const APIS: (typeof DepositAddressesApi | typeof LinkedWalletsApi | typeof
|
|
44
|
+
export declare const APIS: (typeof DepositAddressesApi | typeof LinkedWalletsApi | typeof ManagedUsersApi | typeof ManagedUsersDepositAddressesApi | typeof ManagedUsersLinkedWalletsApi | typeof ManagedUsersOrdersApi | typeof ManagedUsersPortfolioApi | typeof ManagedUsersTransactionsApi | typeof ManagedUsersValidatorsApi | typeof OrdersApi | typeof PortfolioApi | typeof TransactionsApi | typeof ValidatorMarketplaceBuyersApi | typeof ValidatorMarketplaceSellersApi | typeof ValidatorMarketplaceWebhooksApi | typeof ValidatorsApi | typeof AccountApi)[];
|
package/dist/api/apis.js
CHANGED
|
@@ -21,8 +21,6 @@ __exportStar(require("./depositAddressesApi"), exports);
|
|
|
21
21
|
const depositAddressesApi_1 = require("./depositAddressesApi");
|
|
22
22
|
__exportStar(require("./linkedWalletsApi"), exports);
|
|
23
23
|
const linkedWalletsApi_1 = require("./linkedWalletsApi");
|
|
24
|
-
__exportStar(require("./liquidityProviderApi"), exports);
|
|
25
|
-
const liquidityProviderApi_1 = require("./liquidityProviderApi");
|
|
26
24
|
__exportStar(require("./managedUsersApi"), exports);
|
|
27
25
|
const managedUsersApi_1 = require("./managedUsersApi");
|
|
28
26
|
__exportStar(require("./managedUsersDepositAddressesApi"), exports);
|
|
@@ -61,4 +59,4 @@ class HttpError extends Error {
|
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
exports.HttpError = HttpError;
|
|
64
|
-
exports.APIS = [accountApi_1.AccountApi, depositAddressesApi_1.DepositAddressesApi, linkedWalletsApi_1.LinkedWalletsApi,
|
|
62
|
+
exports.APIS = [accountApi_1.AccountApi, depositAddressesApi_1.DepositAddressesApi, linkedWalletsApi_1.LinkedWalletsApi, managedUsersApi_1.ManagedUsersApi, managedUsersDepositAddressesApi_1.ManagedUsersDepositAddressesApi, managedUsersLinkedWalletsApi_1.ManagedUsersLinkedWalletsApi, managedUsersOrdersApi_1.ManagedUsersOrdersApi, managedUsersPortfolioApi_1.ManagedUsersPortfolioApi, managedUsersTransactionsApi_1.ManagedUsersTransactionsApi, managedUsersValidatorsApi_1.ManagedUsersValidatorsApi, ordersApi_1.OrdersApi, portfolioApi_1.PortfolioApi, transactionsApi_1.TransactionsApi, validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi, validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi, validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi, validatorsApi_1.ValidatorsApi];
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { Asset } from '../model/asset';
|
|
13
|
+
import { DepositAddress } from '../model/depositAddress';
|
|
14
14
|
import { Authentication, Interceptor } from '../model/models';
|
|
15
15
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
16
16
|
export declare enum DepositAddressesApiApiKeys {
|
|
@@ -38,15 +38,15 @@ export declare class DepositAddressesApi {
|
|
|
38
38
|
addInterceptor(interceptor: Interceptor): void;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @summary Get deposit address by
|
|
42
|
-
* @param
|
|
41
|
+
* @summary Get deposit address by asset
|
|
42
|
+
* @param asset Asset to fetch the deposit address for
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
getDepositAddressByAsset(asset: Asset, options?: {
|
|
45
45
|
headers: {
|
|
46
46
|
[name: string]: string;
|
|
47
47
|
};
|
|
48
48
|
}): Promise<{
|
|
49
|
-
body:
|
|
49
|
+
body: DepositAddress;
|
|
50
50
|
status: number;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
@@ -58,7 +58,7 @@ export declare class DepositAddressesApi {
|
|
|
58
58
|
[name: string]: string;
|
|
59
59
|
};
|
|
60
60
|
}): Promise<{
|
|
61
|
-
body: Array<
|
|
61
|
+
body: Array<DepositAddress>;
|
|
62
62
|
status: number;
|
|
63
63
|
}>;
|
|
64
64
|
}
|