@northstake/northstakeapi 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/.openapi-generator/FILES +13 -16
  2. package/api/depositAddressesApi.ts +4 -4
  3. package/api/linkedWalletsApi.ts +2 -2
  4. package/api/managedUsersApi.ts +28 -28
  5. package/api/managedUsersDepositAddressesApi.ts +5 -5
  6. package/api/managedUsersLinkedWalletsApi.ts +15 -15
  7. package/api/managedUsersOrdersApi.ts +16 -16
  8. package/api/managedUsersPortfolioApi.ts +2 -2
  9. package/api/managedUsersTransactionsApi.ts +11 -11
  10. package/api/managedUsersValidatorsApi.ts +2 -2
  11. package/api/ordersApi.ts +7 -7
  12. package/api/transactionsApi.ts +6 -6
  13. package/api/validatorMarketplaceBuyersApi.ts +3 -3
  14. package/api/validatorMarketplaceSellersApi.ts +3 -3
  15. package/api/validatorsApi.ts +5 -5
  16. package/api.ts +13 -16
  17. package/dist/api/depositAddressesApi.d.ts +3 -3
  18. package/dist/api/depositAddressesApi.js +1 -1
  19. package/dist/api/linkedWalletsApi.d.ts +2 -2
  20. package/dist/api/managedUsersApi.d.ts +11 -11
  21. package/dist/api/managedUsersApi.js +24 -24
  22. package/dist/api/managedUsersDepositAddressesApi.d.ts +3 -3
  23. package/dist/api/managedUsersDepositAddressesApi.js +3 -3
  24. package/dist/api/managedUsersLinkedWalletsApi.d.ts +6 -6
  25. package/dist/api/managedUsersLinkedWalletsApi.js +13 -13
  26. package/dist/api/managedUsersOrdersApi.d.ts +6 -6
  27. package/dist/api/managedUsersOrdersApi.js +15 -15
  28. package/dist/api/managedUsersPortfolioApi.d.ts +1 -1
  29. package/dist/api/managedUsersPortfolioApi.js +2 -2
  30. package/dist/api/managedUsersTransactionsApi.d.ts +7 -7
  31. package/dist/api/managedUsersTransactionsApi.js +5 -5
  32. package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
  33. package/dist/api/managedUsersValidatorsApi.js +2 -2
  34. package/dist/api/ordersApi.d.ts +3 -3
  35. package/dist/api/ordersApi.js +6 -6
  36. package/dist/api/transactionsApi.d.ts +4 -4
  37. package/dist/api/transactionsApi.js +2 -2
  38. package/dist/api/validatorMarketplaceBuyersApi.d.ts +2 -2
  39. package/dist/api/validatorMarketplaceBuyersApi.js +1 -1
  40. package/dist/api/validatorMarketplaceSellersApi.d.ts +2 -2
  41. package/dist/api/validatorMarketplaceSellersApi.js +1 -1
  42. package/dist/api/validatorsApi.d.ts +3 -3
  43. package/dist/api/validatorsApi.js +2 -2
  44. package/dist/api.d.ts +13 -16
  45. package/dist/api.js +13 -16
  46. package/dist/model/accountEntity.d.ts +2 -0
  47. package/dist/model/accountEntity.js +5 -0
  48. package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
  49. package/dist/model/{addLinkedWalletForManagedUserRequest.js → addLinkedWalletForUserRequest.js} +7 -7
  50. package/dist/model/addLinkedWalletRequest.d.ts +2 -2
  51. package/dist/model/addLinkedWalletRequest.js +1 -1
  52. package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -1
  53. package/dist/model/depositAccount.d.ts +2 -2
  54. package/dist/model/depositAccount.js +1 -1
  55. package/dist/model/{depositAddressesForManagedUserResponse.d.ts → depositAddressesForUserResponse.d.ts} +1 -1
  56. package/dist/model/{depositAddressesForManagedUserResponse.js → depositAddressesForUserResponse.js} +6 -6
  57. package/dist/model/models.d.ts +13 -16
  58. package/dist/model/models.js +23 -40
  59. package/dist/model/{newOrderRequest.d.ts → order.d.ts} +8 -14
  60. package/dist/model/{newOrderRequest.js → order.js} +7 -7
  61. package/dist/model/orderDocument.d.ts +2 -2
  62. package/dist/model/orderDocument.js +1 -1
  63. package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.d.ts} +4 -1
  64. package/dist/model/portfolioEntity.d.ts +2 -2
  65. package/dist/model/portfolioEntity.js +1 -1
  66. package/dist/model/rFQDocumentBase.d.ts +2 -2
  67. package/dist/model/rFQDocumentBase.js +1 -1
  68. package/dist/model/rFQDocumentBuyer.d.ts +2 -2
  69. package/dist/model/rFQDocumentBuyer.js +1 -1
  70. package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
  71. package/dist/model/rFQDocumentSeller.d.ts +2 -2
  72. package/dist/model/rFQDocumentSeller.js +1 -1
  73. package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -1
  74. package/dist/model/rFQDocumentStatus.d.ts +12 -0
  75. package/dist/model/{baseOrder.d.ts → smartContract.d.ts} +12 -18
  76. package/dist/model/smartContract.js +56 -0
  77. package/dist/model/transaction.d.ts +4 -4
  78. package/dist/model/transaction.js +2 -2
  79. package/dist/model/{transactionEventTypeEnum.d.ts → transactionEventType.d.ts} +1 -1
  80. package/dist/model/{transactionsForManagedUser.d.ts → transactionsforUser.d.ts} +1 -1
  81. package/dist/model/{transactionsForManagedUser.js → transactionsforUser.js} +6 -6
  82. package/dist/model/validatorContractType.d.ts +12 -0
  83. package/dist/model/validatorInfoValidatorType.d.ts +2 -2
  84. package/dist/model/validatorInfoValidatorType.js +1 -1
  85. package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
  86. package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
  87. package/dist/model/{validatorKeyHolderEnum.d.ts → validatorKeyHolder.d.ts} +1 -1
  88. package/dist/model/validatorKeyHolder.js +13 -0
  89. package/model/accountEntity.ts +7 -0
  90. package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +6 -6
  91. package/model/addLinkedWalletRequest.ts +3 -3
  92. package/model/{tokenEnum.ts → asset.ts} +1 -1
  93. package/model/depositAccount.ts +3 -3
  94. package/model/{depositAddressesForManagedUserResponse.ts → depositAddressesForUserResponse.ts} +2 -2
  95. package/model/models.ts +33 -55
  96. package/model/{stakeOrder.ts → order.ts} +19 -19
  97. package/model/orderDocument.ts +3 -3
  98. package/model/orderType.ts +21 -0
  99. package/model/portfolioEntity.ts +3 -3
  100. package/model/rFQDocumentBase.ts +3 -3
  101. package/model/rFQDocumentBuyer.ts +3 -3
  102. package/model/{rFQDocumentBuyerStatusFilterEnum.ts → rFQDocumentBuyerStatusFilter.ts} +1 -1
  103. package/model/rFQDocumentSeller.ts +3 -3
  104. package/model/{rFQDocumentSellerStatusFilterEnum.ts → rFQDocumentSellerStatusFilter.ts} +1 -1
  105. package/model/{rFQDocumentStatusEnum.ts → rFQDocumentStatus.ts} +1 -1
  106. package/model/smartContract.ts +67 -0
  107. package/model/transaction.ts +6 -6
  108. package/model/{transactionEventTypeEnum.ts → transactionEventType.ts} +1 -1
  109. package/model/{transactionsForManagedUser.ts → transactionsforUser.ts} +2 -2
  110. package/model/{validatorContractTypeEnum.ts → validatorContractType.ts} +1 -1
  111. package/model/validatorInfoValidatorType.ts +3 -3
  112. package/model/validatorInfoValidatorTypeContract.ts +3 -3
  113. package/model/{validatorKeyHolderEnum.ts → validatorKeyHolder.ts} +1 -1
  114. package/package.json +2 -2
  115. package/dist/model/baseOrder.js +0 -38
  116. package/dist/model/createOrderForManagedUserRequest.d.ts +0 -48
  117. package/dist/model/createOrderForManagedUserRequest.js +0 -48
  118. package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -12
  119. package/dist/model/stakeOrder.d.ts +0 -44
  120. package/dist/model/stakeOrder.js +0 -46
  121. package/dist/model/unstakeOrder.d.ts +0 -42
  122. package/dist/model/unstakeOrder.js +0 -38
  123. package/dist/model/validatorContractTypeEnum.d.ts +0 -12
  124. package/dist/model/withdrawalOrder.d.ts +0 -46
  125. package/dist/model/withdrawalOrder.js +0 -43
  126. package/model/baseOrder.ts +0 -61
  127. package/model/createOrderForManagedUserRequest.ts +0 -80
  128. package/model/newOrderRequest.ts +0 -80
  129. package/model/unstakeOrder.ts +0 -61
  130. package/model/withdrawalOrder.ts +0 -70
  131. /package/dist/model/{rFQDocumentBuyerStatusFilterEnum.js → asset.js} +0 -0
  132. /package/dist/model/{rFQDocumentSellerStatusFilterEnum.js → orderType.js} +0 -0
  133. /package/dist/model/{rFQDocumentStatusEnum.js → rFQDocumentBuyerStatusFilter.js} +0 -0
  134. /package/dist/model/{tokenEnum.js → rFQDocumentSellerStatusFilter.js} +0 -0
  135. /package/dist/model/{transactionEventTypeEnum.js → rFQDocumentStatus.js} +0 -0
  136. /package/dist/model/{validatorContractTypeEnum.js → transactionEventType.js} +0 -0
  137. /package/dist/model/{validatorKeyHolderEnum.js → validatorContractType.js} +0 -0
@@ -80,9 +80,9 @@ class ManagedUsersLinkedWalletsApi {
80
80
  *
81
81
  * @summary Add a new linked wallet for a managed user
82
82
  * @param userId The unique identifier for the managed user
83
- * @param addLinkedWalletForManagedUserRequest
83
+ * @param addLinkedWalletForUserRequest
84
84
  */
85
- async addLinkedWalletForManagedUser(userId, addLinkedWalletForManagedUserRequest, options = { headers: {} }) {
85
+ async addLinkedWalletForUser(userId, addLinkedWalletForUserRequest, options = { headers: {} }) {
86
86
  const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets'
87
87
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
88
88
  let localVarQueryParameters = {};
@@ -97,11 +97,11 @@ class ManagedUsersLinkedWalletsApi {
97
97
  let localVarFormParams = {};
98
98
  // Verify required parameter 'userId' is not null or undefined
99
99
  if (userId === null || userId === undefined) {
100
- throw new Error('Required parameter "userId" was null or undefined when calling addLinkedWalletForManagedUser.');
100
+ throw new Error('Required parameter "userId" was null or undefined when calling addLinkedWalletForUser.');
101
101
  }
102
- // Verify required parameter 'addLinkedWalletForManagedUserRequest' is not null or undefined
103
- if (addLinkedWalletForManagedUserRequest === null || addLinkedWalletForManagedUserRequest === undefined) {
104
- throw new Error('Required parameter "addLinkedWalletForManagedUserRequest" was null or undefined when calling addLinkedWalletForManagedUser.');
102
+ // Verify required parameter 'addLinkedWalletForUserRequest' is not null or undefined
103
+ if (addLinkedWalletForUserRequest === null || addLinkedWalletForUserRequest === undefined) {
104
+ throw new Error('Required parameter "addLinkedWalletForUserRequest" was null or undefined when calling addLinkedWalletForUser.');
105
105
  }
106
106
  Object.assign(localVarHeaderParams, options.headers);
107
107
  let localVarUseFormData = false;
@@ -112,7 +112,7 @@ class ManagedUsersLinkedWalletsApi {
112
112
  uri: localVarPath,
113
113
  useQuerystring: this._useQuerystring,
114
114
  json: true,
115
- body: models_1.ObjectSerializer.serialize(addLinkedWalletForManagedUserRequest, "AddLinkedWalletForManagedUserRequest")
115
+ body: models_1.ObjectSerializer.serialize(addLinkedWalletForUserRequest, "AddLinkedWalletForUserRequest")
116
116
  };
117
117
  let authenticationPromise = Promise.resolve();
118
118
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -155,7 +155,7 @@ class ManagedUsersLinkedWalletsApi {
155
155
  * @param walletAddress The wallet address of the linked wallet to delete
156
156
  * @param walletType
157
157
  */
158
- async deleteLinkedWalletForManagedUser(userId, walletAddress, walletType, options = { headers: {} }) {
158
+ async deleteLinkedWalletForUser(userId, walletAddress, walletType, options = { headers: {} }) {
159
159
  const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{walletType}/{walletAddress}'
160
160
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
161
161
  .replace('{' + 'walletAddress' + '}', encodeURIComponent(String(walletAddress)))
@@ -172,15 +172,15 @@ class ManagedUsersLinkedWalletsApi {
172
172
  let localVarFormParams = {};
173
173
  // Verify required parameter 'userId' is not null or undefined
174
174
  if (userId === null || userId === undefined) {
175
- throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForManagedUser.');
175
+ throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForUser.');
176
176
  }
177
177
  // Verify required parameter 'walletAddress' is not null or undefined
178
178
  if (walletAddress === null || walletAddress === undefined) {
179
- throw new Error('Required parameter "walletAddress" was null or undefined when calling deleteLinkedWalletForManagedUser.');
179
+ throw new Error('Required parameter "walletAddress" was null or undefined when calling deleteLinkedWalletForUser.');
180
180
  }
181
181
  // Verify required parameter 'walletType' is not null or undefined
182
182
  if (walletType === null || walletType === undefined) {
183
- throw new Error('Required parameter "walletType" was null or undefined when calling deleteLinkedWalletForManagedUser.');
183
+ throw new Error('Required parameter "walletType" was null or undefined when calling deleteLinkedWalletForUser.');
184
184
  }
185
185
  Object.assign(localVarHeaderParams, options.headers);
186
186
  let localVarUseFormData = false;
@@ -231,7 +231,7 @@ class ManagedUsersLinkedWalletsApi {
231
231
  * @summary List linked wallets for a managed user
232
232
  * @param userId The unique identifier for the managed user
233
233
  */
234
- async listLinkedWalletsForManagedUser(userId, options = { headers: {} }) {
234
+ async listLinkedWalletsForUser(userId, options = { headers: {} }) {
235
235
  const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets'
236
236
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
237
237
  let localVarQueryParameters = {};
@@ -246,7 +246,7 @@ class ManagedUsersLinkedWalletsApi {
246
246
  let localVarFormParams = {};
247
247
  // Verify required parameter 'userId' is not null or undefined
248
248
  if (userId === null || userId === undefined) {
249
- throw new Error('Required parameter "userId" was null or undefined when calling listLinkedWalletsForManagedUser.');
249
+ throw new Error('Required parameter "userId" was null or undefined when calling listLinkedWalletsForUser.');
250
250
  }
251
251
  Object.assign(localVarHeaderParams, options.headers);
252
252
  let localVarUseFormData = false;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CreateOrderForManagedUserRequest } from '../model/createOrderForManagedUserRequest';
12
+ import { Order } from '../model/order';
13
13
  import { OrderDocument } from '../model/orderDocument';
14
14
  import { Authentication, Interceptor } from '../model/models';
15
15
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
@@ -42,7 +42,7 @@ export declare class ManagedUsersOrdersApi {
42
42
  * @param userId
43
43
  * @param orderId
44
44
  */
45
- cancelOrderForManagedUser(userId: string, orderId: string, options?: {
45
+ cancelOrderForUser(userId: string, orderId: string, options?: {
46
46
  headers: {
47
47
  [name: string]: string;
48
48
  };
@@ -54,9 +54,9 @@ export declare class ManagedUsersOrdersApi {
54
54
  * 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.
55
55
  * @summary Create an order on behalf of a managed user
56
56
  * @param userId
57
- * @param createOrderForManagedUserRequest
57
+ * @param order
58
58
  */
59
- createOrderForManagedUser(userId: string, createOrderForManagedUserRequest: CreateOrderForManagedUserRequest, options?: {
59
+ createOrderForUser(userId: string, order: Order, options?: {
60
60
  headers: {
61
61
  [name: string]: string;
62
62
  };
@@ -69,7 +69,7 @@ export declare class ManagedUsersOrdersApi {
69
69
  * @summary Get all orders for a particular managed user
70
70
  * @param userId
71
71
  */
72
- getAllOrdersForManagedUser(userId: string, options?: {
72
+ getAllOrdersForUser(userId: string, options?: {
73
73
  headers: {
74
74
  [name: string]: string;
75
75
  };
@@ -83,7 +83,7 @@ export declare class ManagedUsersOrdersApi {
83
83
  * @param userId
84
84
  * @param orderId
85
85
  */
86
- getOrderDetailsForManagedUser(userId: string, orderId: string, options?: {
86
+ getOrderDetailsForUser(userId: string, orderId: string, options?: {
87
87
  headers: {
88
88
  [name: string]: string;
89
89
  };
@@ -82,7 +82,7 @@ class ManagedUsersOrdersApi {
82
82
  * @param userId
83
83
  * @param orderId
84
84
  */
85
- async cancelOrderForManagedUser(userId, orderId, options = { headers: {} }) {
85
+ async cancelOrderForUser(userId, orderId, options = { headers: {} }) {
86
86
  const localVarPath = this.basePath + '/managedUsers/{userId}/orders/{orderId}'
87
87
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
88
88
  .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId)));
@@ -98,11 +98,11 @@ class ManagedUsersOrdersApi {
98
98
  let localVarFormParams = {};
99
99
  // Verify required parameter 'userId' is not null or undefined
100
100
  if (userId === null || userId === undefined) {
101
- throw new Error('Required parameter "userId" was null or undefined when calling cancelOrderForManagedUser.');
101
+ throw new Error('Required parameter "userId" was null or undefined when calling cancelOrderForUser.');
102
102
  }
103
103
  // Verify required parameter 'orderId' is not null or undefined
104
104
  if (orderId === null || orderId === undefined) {
105
- throw new Error('Required parameter "orderId" was null or undefined when calling cancelOrderForManagedUser.');
105
+ throw new Error('Required parameter "orderId" was null or undefined when calling cancelOrderForUser.');
106
106
  }
107
107
  Object.assign(localVarHeaderParams, options.headers);
108
108
  let localVarUseFormData = false;
@@ -152,9 +152,9 @@ class ManagedUsersOrdersApi {
152
152
  * 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.
153
153
  * @summary Create an order on behalf of a managed user
154
154
  * @param userId
155
- * @param createOrderForManagedUserRequest
155
+ * @param order
156
156
  */
157
- async createOrderForManagedUser(userId, createOrderForManagedUserRequest, options = { headers: {} }) {
157
+ async createOrderForUser(userId, order, options = { headers: {} }) {
158
158
  const localVarPath = this.basePath + '/managedUsers/{userId}/orders'
159
159
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
160
160
  let localVarQueryParameters = {};
@@ -169,11 +169,11 @@ class ManagedUsersOrdersApi {
169
169
  let localVarFormParams = {};
170
170
  // Verify required parameter 'userId' is not null or undefined
171
171
  if (userId === null || userId === undefined) {
172
- throw new Error('Required parameter "userId" was null or undefined when calling createOrderForManagedUser.');
172
+ throw new Error('Required parameter "userId" was null or undefined when calling createOrderForUser.');
173
173
  }
174
- // Verify required parameter 'createOrderForManagedUserRequest' is not null or undefined
175
- if (createOrderForManagedUserRequest === null || createOrderForManagedUserRequest === undefined) {
176
- throw new Error('Required parameter "createOrderForManagedUserRequest" was null or undefined when calling createOrderForManagedUser.');
174
+ // Verify required parameter 'order' is not null or undefined
175
+ if (order === null || order === undefined) {
176
+ throw new Error('Required parameter "order" was null or undefined when calling createOrderForUser.');
177
177
  }
178
178
  Object.assign(localVarHeaderParams, options.headers);
179
179
  let localVarUseFormData = false;
@@ -184,7 +184,7 @@ class ManagedUsersOrdersApi {
184
184
  uri: localVarPath,
185
185
  useQuerystring: this._useQuerystring,
186
186
  json: true,
187
- body: models_1.ObjectSerializer.serialize(createOrderForManagedUserRequest, "CreateOrderForManagedUserRequest")
187
+ body: models_1.ObjectSerializer.serialize(order, "Order")
188
188
  };
189
189
  let authenticationPromise = Promise.resolve();
190
190
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -226,7 +226,7 @@ class ManagedUsersOrdersApi {
226
226
  * @summary Get all orders for a particular managed user
227
227
  * @param userId
228
228
  */
229
- async getAllOrdersForManagedUser(userId, options = { headers: {} }) {
229
+ async getAllOrdersForUser(userId, options = { headers: {} }) {
230
230
  const localVarPath = this.basePath + '/managedUsers/{userId}/orders'
231
231
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
232
232
  let localVarQueryParameters = {};
@@ -241,7 +241,7 @@ class ManagedUsersOrdersApi {
241
241
  let localVarFormParams = {};
242
242
  // Verify required parameter 'userId' is not null or undefined
243
243
  if (userId === null || userId === undefined) {
244
- throw new Error('Required parameter "userId" was null or undefined when calling getAllOrdersForManagedUser.');
244
+ throw new Error('Required parameter "userId" was null or undefined when calling getAllOrdersForUser.');
245
245
  }
246
246
  Object.assign(localVarHeaderParams, options.headers);
247
247
  let localVarUseFormData = false;
@@ -294,7 +294,7 @@ class ManagedUsersOrdersApi {
294
294
  * @param userId
295
295
  * @param orderId
296
296
  */
297
- async getOrderDetailsForManagedUser(userId, orderId, options = { headers: {} }) {
297
+ async getOrderDetailsForUser(userId, orderId, options = { headers: {} }) {
298
298
  const localVarPath = this.basePath + '/managedUsers/{userId}/orders/{orderId}'
299
299
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
300
300
  .replace('{' + 'orderId' + '}', encodeURIComponent(String(orderId)));
@@ -310,11 +310,11 @@ class ManagedUsersOrdersApi {
310
310
  let localVarFormParams = {};
311
311
  // Verify required parameter 'userId' is not null or undefined
312
312
  if (userId === null || userId === undefined) {
313
- throw new Error('Required parameter "userId" was null or undefined when calling getOrderDetailsForManagedUser.');
313
+ throw new Error('Required parameter "userId" was null or undefined when calling getOrderDetailsForUser.');
314
314
  }
315
315
  // Verify required parameter 'orderId' is not null or undefined
316
316
  if (orderId === null || orderId === undefined) {
317
- throw new Error('Required parameter "orderId" was null or undefined when calling getOrderDetailsForManagedUser.');
317
+ throw new Error('Required parameter "orderId" was null or undefined when calling getOrderDetailsForUser.');
318
318
  }
319
319
  Object.assign(localVarHeaderParams, options.headers);
320
320
  let localVarUseFormData = false;
@@ -40,7 +40,7 @@ export declare class ManagedUsersPortfolioApi {
40
40
  * @summary Account portfolio overview for a managed user
41
41
  * @param userId
42
42
  */
43
- getPortfolioForManagedUser(userId: string, options?: {
43
+ getPortfolioForUser(userId: string, options?: {
44
44
  headers: {
45
45
  [name: string]: string;
46
46
  };
@@ -81,7 +81,7 @@ class ManagedUsersPortfolioApi {
81
81
  * @summary Account portfolio overview for a managed user
82
82
  * @param userId
83
83
  */
84
- async getPortfolioForManagedUser(userId, options = { headers: {} }) {
84
+ async getPortfolioForUser(userId, options = { headers: {} }) {
85
85
  const localVarPath = this.basePath + '/managedUsers/{userId}/portfolio'
86
86
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
87
87
  let localVarQueryParameters = {};
@@ -96,7 +96,7 @@ class ManagedUsersPortfolioApi {
96
96
  let localVarFormParams = {};
97
97
  // Verify required parameter 'userId' is not null or undefined
98
98
  if (userId === null || userId === undefined) {
99
- throw new Error('Required parameter "userId" was null or undefined when calling getPortfolioForManagedUser.');
99
+ throw new Error('Required parameter "userId" was null or undefined when calling getPortfolioForUser.');
100
100
  }
101
101
  Object.assign(localVarHeaderParams, options.headers);
102
102
  let localVarUseFormData = false;
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TokenEnum } from '../model/tokenEnum';
13
- import { TransactionEventTypeEnum } from '../model/transactionEventTypeEnum';
14
- import { TransactionsForManagedUser } from '../model/transactionsForManagedUser';
12
+ import { Asset } from '../model/asset';
13
+ import { TransactionEventType } from '../model/transactionEventType';
14
+ import { TransactionsforUser } from '../model/transactionsforUser';
15
15
  import { Authentication, Interceptor } from '../model/models';
16
16
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
17
17
  export declare enum ManagedUsersTransactionsApiApiKeys {
@@ -21,8 +21,8 @@ export interface ManagedUsersTransactionsApiParams {
21
21
  userId: string;
22
22
  startDate?: string;
23
23
  endDate?: string;
24
- type?: TransactionEventTypeEnum;
25
- asset?: TokenEnum;
24
+ type?: TransactionEventType;
25
+ asset?: Asset;
26
26
  page?: number;
27
27
  limit?: number;
28
28
  }
@@ -57,12 +57,12 @@ export declare class ManagedUsersTransactionsApi {
57
57
  * @param page Transaction list page number
58
58
  * @param limit Number of transactions to return per page
59
59
  */
60
- getTransactionsForManagedUser(params: ManagedUsersTransactionsApiParams, options?: {
60
+ getTransactionsForUser(params: ManagedUsersTransactionsApiParams, options?: {
61
61
  headers: {
62
62
  [name: string]: string;
63
63
  };
64
64
  }): Promise<{
65
- body: TransactionsForManagedUser;
65
+ body: TransactionsforUser;
66
66
  status: number;
67
67
  }>;
68
68
  }
@@ -87,7 +87,7 @@ class ManagedUsersTransactionsApi {
87
87
  * @param page Transaction list page number
88
88
  * @param limit Number of transactions to return per page
89
89
  */
90
- async getTransactionsForManagedUser(params, options = { headers: {} }) {
90
+ async getTransactionsForUser(params, options = { headers: {} }) {
91
91
  const localVarPath = this.basePath + '/managedUsers/{userId}/transactions'
92
92
  .replace('{' + 'userId' + '}', encodeURIComponent(String(params === null || params === void 0 ? void 0 : params.userId)));
93
93
  let localVarQueryParameters = {};
@@ -102,7 +102,7 @@ class ManagedUsersTransactionsApi {
102
102
  let localVarFormParams = {};
103
103
  // Verify required parameter 'userId' is not null or undefined
104
104
  if ((params === null || params === void 0 ? void 0 : params.userId) === null || (params === null || params === void 0 ? void 0 : params.userId) === undefined) {
105
- throw new Error('Required parameter "userId" was null or undefined when calling getTransactionsForManagedUser.');
105
+ throw new Error('Required parameter "userId" was null or undefined when calling getTransactionsForUser.');
106
106
  }
107
107
  if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
108
108
  localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
@@ -111,10 +111,10 @@ class ManagedUsersTransactionsApi {
111
111
  localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
112
112
  }
113
113
  if ((params === null || params === void 0 ? void 0 : params.type) !== undefined) {
114
- localVarQueryParameters['type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.type, "TransactionEventTypeEnum");
114
+ localVarQueryParameters['type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.type, "TransactionEventType");
115
115
  }
116
116
  if ((params === null || params === void 0 ? void 0 : params.asset) !== undefined) {
117
- localVarQueryParameters['asset'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.asset, "TokenEnum");
117
+ localVarQueryParameters['asset'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.asset, "Asset");
118
118
  }
119
119
  if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
120
120
  localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
@@ -155,7 +155,7 @@ class ManagedUsersTransactionsApi {
155
155
  }
156
156
  else {
157
157
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
158
- body = models_1.ObjectSerializer.deserialize(body, "TransactionsForManagedUser");
158
+ body = models_1.ObjectSerializer.deserialize(body, "TransactionsforUser");
159
159
  resolve({ body: body, status: response.statusCode });
160
160
  }
161
161
  else {
@@ -40,7 +40,7 @@ export declare class ManagedUsersValidatorsApi {
40
40
  * @summary Get all validators associated with the managed user
41
41
  * @param userId
42
42
  */
43
- getValidatorsForManagedUser(userId: string, options?: {
43
+ getValidatorsForUser(userId: string, options?: {
44
44
  headers: {
45
45
  [name: string]: string;
46
46
  };
@@ -81,7 +81,7 @@ class ManagedUsersValidatorsApi {
81
81
  * @summary Get all validators associated with the managed user
82
82
  * @param userId
83
83
  */
84
- async getValidatorsForManagedUser(userId, options = { headers: {} }) {
84
+ async getValidatorsForUser(userId, options = { headers: {} }) {
85
85
  const localVarPath = this.basePath + '/managedUsers/{userId}/validators'
86
86
  .replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
87
87
  let localVarQueryParameters = {};
@@ -96,7 +96,7 @@ class ManagedUsersValidatorsApi {
96
96
  let localVarFormParams = {};
97
97
  // Verify required parameter 'userId' is not null or undefined
98
98
  if (userId === null || userId === undefined) {
99
- throw new Error('Required parameter "userId" was null or undefined when calling getValidatorsForManagedUser.');
99
+ throw new Error('Required parameter "userId" was null or undefined when calling getValidatorsForUser.');
100
100
  }
101
101
  Object.assign(localVarHeaderParams, options.headers);
102
102
  let localVarUseFormData = false;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { NewOrderRequest } from '../model/newOrderRequest';
12
+ import { Order } from '../model/order';
13
13
  import { OrderDocument } from '../model/orderDocument';
14
14
  import { Authentication, Interceptor } from '../model/models';
15
15
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
@@ -52,9 +52,9 @@ export declare class OrdersApi {
52
52
  /**
53
53
  * 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.
54
54
  * @summary Create a new order
55
- * @param newOrderRequest
55
+ * @param order
56
56
  */
57
- createNewOrder(newOrderRequest: NewOrderRequest, options?: {
57
+ createNewOrder(order: Order, options?: {
58
58
  headers: {
59
59
  [name: string]: string;
60
60
  };
@@ -138,9 +138,9 @@ class OrdersApi {
138
138
  /**
139
139
  * 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.
140
140
  * @summary Create a new order
141
- * @param newOrderRequest
141
+ * @param order
142
142
  */
143
- async createNewOrder(newOrderRequest, options = { headers: {} }) {
143
+ async createNewOrder(order, options = { headers: {} }) {
144
144
  const localVarPath = this.basePath + '/orders';
145
145
  let localVarQueryParameters = {};
146
146
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -152,9 +152,9 @@ class OrdersApi {
152
152
  localVarHeaderParams.Accept = produces.join(',');
153
153
  }
154
154
  let localVarFormParams = {};
155
- // Verify required parameter 'newOrderRequest' is not null or undefined
156
- if (newOrderRequest === null || newOrderRequest === undefined) {
157
- throw new Error('Required parameter "newOrderRequest" was null or undefined when calling createNewOrder.');
155
+ // Verify required parameter 'order' is not null or undefined
156
+ if (order === null || order === undefined) {
157
+ throw new Error('Required parameter "order" was null or undefined when calling createNewOrder.');
158
158
  }
159
159
  Object.assign(localVarHeaderParams, options.headers);
160
160
  let localVarUseFormData = false;
@@ -165,7 +165,7 @@ class OrdersApi {
165
165
  uri: localVarPath,
166
166
  useQuerystring: this._useQuerystring,
167
167
  json: true,
168
- body: models_1.ObjectSerializer.serialize(newOrderRequest, "NewOrderRequest")
168
+ body: models_1.ObjectSerializer.serialize(order, "Order")
169
169
  };
170
170
  let authenticationPromise = Promise.resolve();
171
171
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Asset } from '../model/asset';
12
13
  import { GetTransactionsResponse } from '../model/getTransactionsResponse';
13
- import { TokenEnum } from '../model/tokenEnum';
14
- import { TransactionEventTypeEnum } from '../model/transactionEventTypeEnum';
14
+ import { TransactionEventType } from '../model/transactionEventType';
15
15
  import { Authentication, Interceptor } from '../model/models';
16
16
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
17
17
  export declare enum TransactionsApiApiKeys {
@@ -20,8 +20,8 @@ export declare enum TransactionsApiApiKeys {
20
20
  export interface TransactionsApiParams {
21
21
  startDate?: string;
22
22
  endDate?: string;
23
- type?: TransactionEventTypeEnum;
24
- asset?: TokenEnum;
23
+ type?: TransactionEventType;
24
+ asset?: Asset;
25
25
  page?: number;
26
26
  limit?: number;
27
27
  }
@@ -105,10 +105,10 @@ class TransactionsApi {
105
105
  localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
106
106
  }
107
107
  if ((params === null || params === void 0 ? void 0 : params.type) !== undefined) {
108
- localVarQueryParameters['type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.type, "TransactionEventTypeEnum");
108
+ localVarQueryParameters['type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.type, "TransactionEventType");
109
109
  }
110
110
  if ((params === null || params === void 0 ? void 0 : params.asset) !== undefined) {
111
- localVarQueryParameters['asset'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.asset, "TokenEnum");
111
+ localVarQueryParameters['asset'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.asset, "Asset");
112
112
  }
113
113
  if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
114
114
  localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
13
13
  import { RFQDocumentBuyer } from '../model/rFQDocumentBuyer';
14
- import { RFQDocumentBuyerStatusFilterEnum } from '../model/rFQDocumentBuyerStatusFilterEnum';
14
+ import { RFQDocumentBuyerStatusFilter } from '../model/rFQDocumentBuyerStatusFilter';
15
15
  import { SubmittedQuote } from '../model/submittedQuote';
16
16
  import { Authentication, Interceptor } from '../model/models';
17
17
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
@@ -56,7 +56,7 @@ export declare class ValidatorMarketplaceBuyersApi {
56
56
  * @summary List RFQs
57
57
  * @param status Filter by RFQ status
58
58
  */
59
- listRFQDocumentsForBuyer(status?: RFQDocumentBuyerStatusFilterEnum, options?: {
59
+ listRFQDocumentsForBuyer(status?: RFQDocumentBuyerStatusFilter, options?: {
60
60
  headers: {
61
61
  [name: string]: string;
62
62
  };
@@ -161,7 +161,7 @@ class ValidatorMarketplaceBuyersApi {
161
161
  }
162
162
  let localVarFormParams = {};
163
163
  if (status !== undefined) {
164
- localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "RFQDocumentBuyerStatusFilterEnum");
164
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "RFQDocumentBuyerStatusFilter");
165
165
  }
166
166
  Object.assign(localVarHeaderParams, options.headers);
167
167
  let localVarUseFormData = false;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { CreateRFQRequest } from '../model/createRFQRequest';
13
13
  import { RFQDocumentSeller } from '../model/rFQDocumentSeller';
14
- import { RFQDocumentSellerStatusFilterEnum } from '../model/rFQDocumentSellerStatusFilterEnum';
14
+ import { RFQDocumentSellerStatusFilter } from '../model/rFQDocumentSellerStatusFilter';
15
15
  import { RegisterWithdrawalRecipientSettlementRequest } from '../model/registerWithdrawalRecipientSettlementRequest';
16
16
  import { Authentication, Interceptor } from '../model/models';
17
17
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
@@ -83,7 +83,7 @@ export declare class ValidatorMarketplaceSellersApi {
83
83
  * @summary List all RFQs posted by the seller with optional status filter
84
84
  * @param status Filter by RFQ status
85
85
  */
86
- listRFQs(status?: RFQDocumentSellerStatusFilterEnum, options?: {
86
+ listRFQs(status?: RFQDocumentSellerStatusFilter, options?: {
87
87
  headers: {
88
88
  [name: string]: string;
89
89
  };
@@ -300,7 +300,7 @@ class ValidatorMarketplaceSellersApi {
300
300
  }
301
301
  let localVarFormParams = {};
302
302
  if (status !== undefined) {
303
- localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "RFQDocumentSellerStatusFilterEnum");
303
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "RFQDocumentSellerStatusFilter");
304
304
  }
305
305
  Object.assign(localVarHeaderParams, options.headers);
306
306
  let localVarUseFormData = false;
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ValidatorContractTypeEnum } from '../model/validatorContractTypeEnum';
12
+ import { ValidatorContractType } from '../model/validatorContractType';
13
13
  import { ValidatorInfo } from '../model/validatorInfo';
14
- import { ValidatorKeyHolderEnum } from '../model/validatorKeyHolderEnum';
14
+ import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
15
15
  import { Authentication, Interceptor } from '../model/models';
16
16
  import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
17
17
  export declare enum ValidatorsApiApiKeys {
@@ -43,7 +43,7 @@ export declare class ValidatorsApi {
43
43
  * @param keyHolder Filter by key holder
44
44
  * @param contractType Filter by contract type
45
45
  */
46
- getValidators(keyHolder?: ValidatorKeyHolderEnum, contractType?: ValidatorContractTypeEnum, options?: {
46
+ getValidators(keyHolder?: ValidatorKeyHolder, contractType?: ValidatorContractType, options?: {
47
47
  headers: {
48
48
  [name: string]: string;
49
49
  };
@@ -95,10 +95,10 @@ class ValidatorsApi {
95
95
  }
96
96
  let localVarFormParams = {};
97
97
  if (keyHolder !== undefined) {
98
- localVarQueryParameters['key_holder'] = models_1.ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolderEnum");
98
+ localVarQueryParameters['key_holder'] = models_1.ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolder");
99
99
  }
100
100
  if (contractType !== undefined) {
101
- localVarQueryParameters['contract_type'] = models_1.ObjectSerializer.serialize(contractType, "ValidatorContractTypeEnum");
101
+ localVarQueryParameters['contract_type'] = models_1.ObjectSerializer.serialize(contractType, "ValidatorContractType");
102
102
  }
103
103
  Object.assign(localVarHeaderParams, options.headers);
104
104
  let localVarUseFormData = false;