@northstake/northstakeapi 1.0.22 → 1.0.24
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 +12 -0
- package/.openapi-generator/VERSION +1 -1
- package/api/accountApiKeysApi.ts +346 -0
- package/api/apis.ts +5 -1
- package/api/managedUsersValidatorsApi.ts +116 -0
- package/api/validatorMarketplaceFacilitatorApi.ts +360 -0
- package/api/validatorsApi.ts +109 -0
- package/api.ts +18 -0
- package/dist/api/accountApiKeysApi.d.ts +77 -0
- package/dist/api/accountApiKeysApi.js +266 -0
- package/dist/api/apis.d.ts +5 -1
- package/dist/api/apis.js +5 -1
- package/dist/api/managedUsersValidatorsApi.d.ts +27 -0
- package/dist/api/managedUsersValidatorsApi.js +87 -0
- package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +80 -0
- package/dist/api/validatorMarketplaceFacilitatorApi.js +280 -0
- package/dist/api/validatorsApi.d.ts +25 -0
- package/dist/api/validatorsApi.js +81 -0
- package/dist/api.d.ts +14 -0
- package/dist/api.js +16 -0
- package/dist/model/apiKey.d.ts +54 -0
- package/dist/model/apiKey.js +53 -0
- package/dist/model/generateApiKeyRequest.d.ts +43 -0
- package/dist/model/generateApiKeyRequest.js +43 -0
- package/dist/model/getMarketplaceMetadata200Response.d.ts +36 -0
- package/dist/model/getMarketplaceMetadata200Response.js +38 -0
- package/dist/model/getWithdrawalsResponse.d.ts +38 -0
- package/dist/model/getWithdrawalsResponse.js +43 -0
- package/dist/model/listAllRFQsForFacilitator200Response.d.ts +38 -0
- package/dist/model/listAllRFQsForFacilitator200Response.js +43 -0
- package/dist/model/models.d.ts +10 -0
- package/dist/model/models.js +32 -0
- package/dist/model/rFQBidFacilitator.d.ts +27 -0
- package/dist/model/rFQBidFacilitator.js +38 -0
- package/dist/model/rFQDocumentFacilitator.d.ts +38 -0
- package/dist/model/rFQDocumentFacilitator.js +53 -0
- package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +12 -0
- package/dist/model/rFQDocumentFacilitatorStatusFilter.js +13 -0
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +27 -0
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +38 -0
- package/dist/model/rFQDocumentSeller.d.ts +1 -0
- package/dist/model/rFQDocumentSeller.js +5 -0
- package/dist/model/validatorWithdrawal.d.ts +39 -0
- package/dist/model/validatorWithdrawal.js +68 -0
- package/model/apiKey.ts +88 -0
- package/model/generateApiKeyRequest.ts +66 -0
- package/model/getMarketplaceMetadata200Response.ts +52 -0
- package/model/getWithdrawalsResponse.ts +59 -0
- package/model/listAllRFQsForFacilitator200Response.ts +59 -0
- package/model/models.ts +53 -0
- package/model/rFQBidFacilitator.ts +43 -0
- package/model/rFQDocumentFacilitator.ts +74 -0
- package/model/rFQDocumentFacilitatorStatusFilter.ts +18 -0
- package/model/rFQDocumentFacilitatorValidatorsInner.ts +43 -0
- package/model/rFQDocumentSeller.ts +6 -0
- package/model/validatorWithdrawal.ts +86 -0
- package/package.json +3 -3
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AccountApiKeysApi = exports.AccountApiKeysApiApiKeys = void 0;
|
|
18
|
+
const request_1 = __importDefault(require("request"));
|
|
19
|
+
const models_1 = require("../model/models");
|
|
20
|
+
const models_2 = require("../model/models");
|
|
21
|
+
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
22
|
+
// ===============================================
|
|
23
|
+
// This file is autogenerated - Please do not edit
|
|
24
|
+
// ===============================================
|
|
25
|
+
var AccountApiKeysApiApiKeys;
|
|
26
|
+
(function (AccountApiKeysApiApiKeys) {
|
|
27
|
+
AccountApiKeysApiApiKeys[AccountApiKeysApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
+
})(AccountApiKeysApiApiKeys || (exports.AccountApiKeysApiApiKeys = AccountApiKeysApiApiKeys = {}));
|
|
29
|
+
class AccountApiKeysApi {
|
|
30
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
+
this._basePath = defaultBasePath;
|
|
32
|
+
this._defaultHeaders = {};
|
|
33
|
+
this._useQuerystring = false;
|
|
34
|
+
this.authentications = {
|
|
35
|
+
'default': new models_2.JWTAuth('your_api_key', 'your_private_key'),
|
|
36
|
+
'bearerTokenAuth': new models_2.HttpBearerAuth(),
|
|
37
|
+
'ApiKeyAuth': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
38
|
+
};
|
|
39
|
+
this.interceptors = [];
|
|
40
|
+
if (password) {
|
|
41
|
+
if (basePath) {
|
|
42
|
+
this.basePath = basePath;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (basePathOrUsername) {
|
|
47
|
+
this.basePath = basePathOrUsername;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
set useQuerystring(value) {
|
|
52
|
+
this._useQuerystring = value;
|
|
53
|
+
}
|
|
54
|
+
set basePath(basePath) {
|
|
55
|
+
this._basePath = basePath;
|
|
56
|
+
}
|
|
57
|
+
set defaultHeaders(defaultHeaders) {
|
|
58
|
+
this._defaultHeaders = defaultHeaders;
|
|
59
|
+
}
|
|
60
|
+
get defaultHeaders() {
|
|
61
|
+
return this._defaultHeaders;
|
|
62
|
+
}
|
|
63
|
+
get basePath() {
|
|
64
|
+
return this._basePath;
|
|
65
|
+
}
|
|
66
|
+
setDefaultAuthentication(auth) {
|
|
67
|
+
this.authentications.default = auth;
|
|
68
|
+
}
|
|
69
|
+
setApiKey(key, value) {
|
|
70
|
+
this.authentications[AccountApiKeysApiApiKeys[key]].apiKey = value;
|
|
71
|
+
}
|
|
72
|
+
set accessToken(accessToken) {
|
|
73
|
+
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
74
|
+
}
|
|
75
|
+
addInterceptor(interceptor) {
|
|
76
|
+
this.interceptors.push(interceptor);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Delete an API key
|
|
81
|
+
* @param apiKeyId The ID of the API key to delete
|
|
82
|
+
*/
|
|
83
|
+
async deleteApiKey(apiKeyId, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + '/account/apiKeys/{apiKeyId}'
|
|
85
|
+
.replace('{' + 'apiKeyId' + '}', encodeURIComponent(String(apiKeyId)));
|
|
86
|
+
let localVarQueryParameters = {};
|
|
87
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
88
|
+
let localVarFormParams = {};
|
|
89
|
+
// Verify required parameter 'apiKeyId' is not null or undefined
|
|
90
|
+
if (apiKeyId === null || apiKeyId === undefined) {
|
|
91
|
+
throw new Error('Required parameter "apiKeyId" was null or undefined when calling deleteApiKey.');
|
|
92
|
+
}
|
|
93
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
94
|
+
let localVarUseFormData = false;
|
|
95
|
+
let localVarRequestOptions = {
|
|
96
|
+
method: 'DELETE',
|
|
97
|
+
qs: localVarQueryParameters,
|
|
98
|
+
headers: localVarHeaderParams,
|
|
99
|
+
uri: localVarPath,
|
|
100
|
+
useQuerystring: this._useQuerystring,
|
|
101
|
+
json: true,
|
|
102
|
+
};
|
|
103
|
+
let authenticationPromise = Promise.resolve();
|
|
104
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
105
|
+
let interceptorPromise = authenticationPromise;
|
|
106
|
+
for (const interceptor of this.interceptors) {
|
|
107
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
108
|
+
}
|
|
109
|
+
return interceptorPromise.then(() => {
|
|
110
|
+
if (Object.keys(localVarFormParams).length) {
|
|
111
|
+
if (localVarUseFormData) {
|
|
112
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return new Promise((resolve, reject) => {
|
|
119
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
120
|
+
if (error) {
|
|
121
|
+
console.error('API call error:', error);
|
|
122
|
+
reject(error);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
126
|
+
resolve({ body: body, status: response.statusCode });
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
console.error('API response error:', response.statusCode);
|
|
130
|
+
resolve({ body: body, status: response.statusCode });
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Allows a user to generate a new API key with specific rights and restrictions.
|
|
139
|
+
* @summary Generate a new API key
|
|
140
|
+
* @param generateApiKeyRequest
|
|
141
|
+
*/
|
|
142
|
+
async generateApiKey(generateApiKeyRequest, options = { headers: {} }) {
|
|
143
|
+
const localVarPath = this.basePath + '/account/apiKeys';
|
|
144
|
+
let localVarQueryParameters = {};
|
|
145
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
146
|
+
const produces = ['application/json'];
|
|
147
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
148
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
152
|
+
}
|
|
153
|
+
let localVarFormParams = {};
|
|
154
|
+
// Verify required parameter 'generateApiKeyRequest' is not null or undefined
|
|
155
|
+
if (generateApiKeyRequest === null || generateApiKeyRequest === undefined) {
|
|
156
|
+
throw new Error('Required parameter "generateApiKeyRequest" was null or undefined when calling generateApiKey.');
|
|
157
|
+
}
|
|
158
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
159
|
+
let localVarUseFormData = false;
|
|
160
|
+
let localVarRequestOptions = {
|
|
161
|
+
method: 'POST',
|
|
162
|
+
qs: localVarQueryParameters,
|
|
163
|
+
headers: localVarHeaderParams,
|
|
164
|
+
uri: localVarPath,
|
|
165
|
+
useQuerystring: this._useQuerystring,
|
|
166
|
+
json: true,
|
|
167
|
+
body: models_1.ObjectSerializer.serialize(generateApiKeyRequest, "GenerateApiKeyRequest")
|
|
168
|
+
};
|
|
169
|
+
let authenticationPromise = Promise.resolve();
|
|
170
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
171
|
+
let interceptorPromise = authenticationPromise;
|
|
172
|
+
for (const interceptor of this.interceptors) {
|
|
173
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
174
|
+
}
|
|
175
|
+
return interceptorPromise.then(() => {
|
|
176
|
+
if (Object.keys(localVarFormParams).length) {
|
|
177
|
+
if (localVarUseFormData) {
|
|
178
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return new Promise((resolve, reject) => {
|
|
185
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
186
|
+
if (error) {
|
|
187
|
+
console.error('API call error:', error);
|
|
188
|
+
reject(error);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
192
|
+
body = models_1.ObjectSerializer.deserialize(body, "ApiKey");
|
|
193
|
+
resolve({ body: body, status: response.statusCode });
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
console.error('API response error:', response.statusCode);
|
|
197
|
+
resolve({ body: body, status: response.statusCode });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @summary List all API keys
|
|
207
|
+
*/
|
|
208
|
+
async listApiKeys(options = { headers: {} }) {
|
|
209
|
+
const localVarPath = this.basePath + '/account/apiKeys';
|
|
210
|
+
let localVarQueryParameters = {};
|
|
211
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
212
|
+
const produces = ['application/json'];
|
|
213
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
214
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
218
|
+
}
|
|
219
|
+
let localVarFormParams = {};
|
|
220
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
221
|
+
let localVarUseFormData = false;
|
|
222
|
+
let localVarRequestOptions = {
|
|
223
|
+
method: 'GET',
|
|
224
|
+
qs: localVarQueryParameters,
|
|
225
|
+
headers: localVarHeaderParams,
|
|
226
|
+
uri: localVarPath,
|
|
227
|
+
useQuerystring: this._useQuerystring,
|
|
228
|
+
json: true,
|
|
229
|
+
};
|
|
230
|
+
let authenticationPromise = Promise.resolve();
|
|
231
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
232
|
+
let interceptorPromise = authenticationPromise;
|
|
233
|
+
for (const interceptor of this.interceptors) {
|
|
234
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
235
|
+
}
|
|
236
|
+
return interceptorPromise.then(() => {
|
|
237
|
+
if (Object.keys(localVarFormParams).length) {
|
|
238
|
+
if (localVarUseFormData) {
|
|
239
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return new Promise((resolve, reject) => {
|
|
246
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
247
|
+
if (error) {
|
|
248
|
+
console.error('API call error:', error);
|
|
249
|
+
reject(error);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
253
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<ApiKey>");
|
|
254
|
+
resolve({ body: body, status: response.statusCode });
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
console.error('API response error:', response.statusCode);
|
|
258
|
+
resolve({ body: body, status: response.statusCode });
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
exports.AccountApiKeysApi = AccountApiKeysApi;
|
package/dist/api/apis.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './accountApi';
|
|
2
2
|
import { AccountApi } from './accountApi';
|
|
3
|
+
export * from './accountApiKeysApi';
|
|
4
|
+
import { AccountApiKeysApi } from './accountApiKeysApi';
|
|
3
5
|
export * from './depositAddressesApi';
|
|
4
6
|
import { DepositAddressesApi } from './depositAddressesApi';
|
|
5
7
|
export * from './linkedWalletsApi';
|
|
@@ -26,6 +28,8 @@ export * from './transactionsApi';
|
|
|
26
28
|
import { TransactionsApi } from './transactionsApi';
|
|
27
29
|
export * from './validatorMarketplaceBuyersApi';
|
|
28
30
|
import { ValidatorMarketplaceBuyersApi } from './validatorMarketplaceBuyersApi';
|
|
31
|
+
export * from './validatorMarketplaceFacilitatorApi';
|
|
32
|
+
import { ValidatorMarketplaceFacilitatorApi } from './validatorMarketplaceFacilitatorApi';
|
|
29
33
|
export * from './validatorMarketplaceSellersApi';
|
|
30
34
|
import { ValidatorMarketplaceSellersApi } from './validatorMarketplaceSellersApi';
|
|
31
35
|
export * from './validatorMarketplaceWebhooksApi';
|
|
@@ -40,4 +44,4 @@ export declare class HttpError extends Error {
|
|
|
40
44
|
constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
|
|
41
45
|
}
|
|
42
46
|
export { RequestFile } from '../model/models';
|
|
43
|
-
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)[];
|
|
47
|
+
export declare const APIS: (typeof AccountApiKeysApi | 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 ValidatorMarketplaceFacilitatorApi | typeof ValidatorMarketplaceSellersApi | typeof ValidatorMarketplaceWebhooksApi | typeof ValidatorsApi | typeof AccountApi)[];
|
package/dist/api/apis.js
CHANGED
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.APIS = exports.HttpError = void 0;
|
|
18
18
|
__exportStar(require("./accountApi"), exports);
|
|
19
19
|
const accountApi_1 = require("./accountApi");
|
|
20
|
+
__exportStar(require("./accountApiKeysApi"), exports);
|
|
21
|
+
const accountApiKeysApi_1 = require("./accountApiKeysApi");
|
|
20
22
|
__exportStar(require("./depositAddressesApi"), exports);
|
|
21
23
|
const depositAddressesApi_1 = require("./depositAddressesApi");
|
|
22
24
|
__exportStar(require("./linkedWalletsApi"), exports);
|
|
@@ -43,6 +45,8 @@ __exportStar(require("./transactionsApi"), exports);
|
|
|
43
45
|
const transactionsApi_1 = require("./transactionsApi");
|
|
44
46
|
__exportStar(require("./validatorMarketplaceBuyersApi"), exports);
|
|
45
47
|
const validatorMarketplaceBuyersApi_1 = require("./validatorMarketplaceBuyersApi");
|
|
48
|
+
__exportStar(require("./validatorMarketplaceFacilitatorApi"), exports);
|
|
49
|
+
const validatorMarketplaceFacilitatorApi_1 = require("./validatorMarketplaceFacilitatorApi");
|
|
46
50
|
__exportStar(require("./validatorMarketplaceSellersApi"), exports);
|
|
47
51
|
const validatorMarketplaceSellersApi_1 = require("./validatorMarketplaceSellersApi");
|
|
48
52
|
__exportStar(require("./validatorMarketplaceWebhooksApi"), exports);
|
|
@@ -59,4 +63,4 @@ class HttpError extends Error {
|
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
exports.HttpError = HttpError;
|
|
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];
|
|
66
|
+
exports.APIS = [accountApi_1.AccountApi, accountApiKeysApi_1.AccountApiKeysApi, 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, validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi, validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi, validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi, validatorsApi_1.ValidatorsApi];
|
|
@@ -9,12 +9,21 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { GetWithdrawalsResponse } from '../model/getWithdrawalsResponse';
|
|
12
13
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
13
14
|
import { Authentication, Interceptor } from '../model/models';
|
|
14
15
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
15
16
|
export declare enum ManagedUsersValidatorsApiApiKeys {
|
|
16
17
|
ApiKeyAuth = 0
|
|
17
18
|
}
|
|
19
|
+
export interface ManagedUsersValidatorsApiParams {
|
|
20
|
+
userId: string;
|
|
21
|
+
startDate?: string;
|
|
22
|
+
endDate?: string;
|
|
23
|
+
page?: number;
|
|
24
|
+
limit?: number;
|
|
25
|
+
validatorIndices?: string;
|
|
26
|
+
}
|
|
18
27
|
export declare class ManagedUsersValidatorsApi {
|
|
19
28
|
protected _basePath: string;
|
|
20
29
|
protected _defaultHeaders: any;
|
|
@@ -35,6 +44,24 @@ export declare class ManagedUsersValidatorsApi {
|
|
|
35
44
|
setApiKey(key: ManagedUsersValidatorsApiApiKeys, value: string): void;
|
|
36
45
|
set accessToken(accessToken: string | (() => string));
|
|
37
46
|
addInterceptor(interceptor: Interceptor): void;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a paginated list of validator withdrawals for a specific managed user. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
49
|
+
* @summary Get a list of validator withdrawals for a managed user
|
|
50
|
+
* @param userId
|
|
51
|
+
* @param startDate Start date for filtering withdrawal statistics
|
|
52
|
+
* @param endDate End date for filtering withdrawal statistics
|
|
53
|
+
* @param page Withdrawal list page number
|
|
54
|
+
* @param limit Number of withdrawals to return per page
|
|
55
|
+
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
56
|
+
*/
|
|
57
|
+
getValidatorWithdrawalsForUser(params?: ManagedUsersValidatorsApiParams, options?: {
|
|
58
|
+
headers: {
|
|
59
|
+
[name: string]: string;
|
|
60
|
+
};
|
|
61
|
+
}): Promise<{
|
|
62
|
+
body: GetWithdrawalsResponse;
|
|
63
|
+
status: number;
|
|
64
|
+
}>;
|
|
38
65
|
/**
|
|
39
66
|
*
|
|
40
67
|
* @summary Get all validators associated with the managed user
|
|
@@ -75,6 +75,93 @@ class ManagedUsersValidatorsApi {
|
|
|
75
75
|
addInterceptor(interceptor) {
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves a paginated list of validator withdrawals for a specific managed user. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
80
|
+
* @summary Get a list of validator withdrawals for a managed user
|
|
81
|
+
* @param userId
|
|
82
|
+
* @param startDate Start date for filtering withdrawal statistics
|
|
83
|
+
* @param endDate End date for filtering withdrawal statistics
|
|
84
|
+
* @param page Withdrawal list page number
|
|
85
|
+
* @param limit Number of withdrawals to return per page
|
|
86
|
+
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
87
|
+
*/
|
|
88
|
+
async getValidatorWithdrawalsForUser(params, options = { headers: {} }) {
|
|
89
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/validators/withdrawals'
|
|
90
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(params === null || params === void 0 ? void 0 : params.userId)));
|
|
91
|
+
let localVarQueryParameters = {};
|
|
92
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
93
|
+
const produces = ['application/json'];
|
|
94
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
95
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
99
|
+
}
|
|
100
|
+
let localVarFormParams = {};
|
|
101
|
+
// Verify required parameter 'userId' is not null or undefined
|
|
102
|
+
if ((params === null || params === void 0 ? void 0 : params.userId) === null || (params === null || params === void 0 ? void 0 : params.userId) === undefined) {
|
|
103
|
+
throw new Error('Required parameter "userId" was null or undefined when calling getValidatorWithdrawalsForUser.');
|
|
104
|
+
}
|
|
105
|
+
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
106
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
107
|
+
}
|
|
108
|
+
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
109
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
110
|
+
}
|
|
111
|
+
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
112
|
+
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
113
|
+
}
|
|
114
|
+
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
115
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
116
|
+
}
|
|
117
|
+
if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
|
|
118
|
+
localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
|
|
119
|
+
}
|
|
120
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
121
|
+
let localVarUseFormData = false;
|
|
122
|
+
let localVarRequestOptions = {
|
|
123
|
+
method: 'GET',
|
|
124
|
+
qs: localVarQueryParameters,
|
|
125
|
+
headers: localVarHeaderParams,
|
|
126
|
+
uri: localVarPath,
|
|
127
|
+
useQuerystring: this._useQuerystring,
|
|
128
|
+
json: true,
|
|
129
|
+
};
|
|
130
|
+
let authenticationPromise = Promise.resolve();
|
|
131
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
132
|
+
let interceptorPromise = authenticationPromise;
|
|
133
|
+
for (const interceptor of this.interceptors) {
|
|
134
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
135
|
+
}
|
|
136
|
+
return interceptorPromise.then(() => {
|
|
137
|
+
if (Object.keys(localVarFormParams).length) {
|
|
138
|
+
if (localVarUseFormData) {
|
|
139
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return new Promise((resolve, reject) => {
|
|
146
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
147
|
+
if (error) {
|
|
148
|
+
console.error('API call error:', error);
|
|
149
|
+
reject(error);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
153
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetWithdrawalsResponse");
|
|
154
|
+
resolve({ body: body, status: response.statusCode });
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
console.error('API response error:', response.statusCode);
|
|
158
|
+
resolve({ body: body, status: response.statusCode });
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
78
165
|
/**
|
|
79
166
|
*
|
|
80
167
|
* @summary Get all validators associated with the managed user
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { GetMarketplaceMetadata200Response } from '../model/getMarketplaceMetadata200Response';
|
|
13
|
+
import { ListAllRFQsForFacilitator200Response } from '../model/listAllRFQsForFacilitator200Response';
|
|
14
|
+
import { RFQDocumentFacilitator } from '../model/rFQDocumentFacilitator';
|
|
15
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
16
|
+
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
|
+
export declare enum ValidatorMarketplaceFacilitatorApiApiKeys {
|
|
18
|
+
ApiKeyAuth = 0
|
|
19
|
+
}
|
|
20
|
+
export declare class ValidatorMarketplaceFacilitatorApi {
|
|
21
|
+
protected _basePath: string;
|
|
22
|
+
protected _defaultHeaders: any;
|
|
23
|
+
protected _useQuerystring: boolean;
|
|
24
|
+
protected authentications: {
|
|
25
|
+
default: Authentication;
|
|
26
|
+
bearerTokenAuth: HttpBearerAuth;
|
|
27
|
+
ApiKeyAuth: ApiKeyAuth;
|
|
28
|
+
};
|
|
29
|
+
protected interceptors: Interceptor[];
|
|
30
|
+
constructor(basePath?: string);
|
|
31
|
+
set useQuerystring(value: boolean);
|
|
32
|
+
set basePath(basePath: string);
|
|
33
|
+
set defaultHeaders(defaultHeaders: any);
|
|
34
|
+
get defaultHeaders(): any;
|
|
35
|
+
get basePath(): string;
|
|
36
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
37
|
+
setApiKey(key: ValidatorMarketplaceFacilitatorApiApiKeys, value: string): void;
|
|
38
|
+
set accessToken(accessToken: string | (() => string));
|
|
39
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves metadata information for the entire marketplace.
|
|
42
|
+
* @summary Get metadata for the entire marketplace
|
|
43
|
+
*/
|
|
44
|
+
getMarketplaceMetadata(options?: {
|
|
45
|
+
headers: {
|
|
46
|
+
[name: string]: string;
|
|
47
|
+
};
|
|
48
|
+
}): Promise<{
|
|
49
|
+
body: GetMarketplaceMetadata200Response;
|
|
50
|
+
status: number;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves detailed information about an RFQ by its ID.
|
|
54
|
+
* @summary Get detailed information about a specific RFQ
|
|
55
|
+
* @param rfqId The unique identifier of the RFQ
|
|
56
|
+
*/
|
|
57
|
+
getRFQDetailsForFacilitator(rfqId: string, options?: {
|
|
58
|
+
headers: {
|
|
59
|
+
[name: string]: string;
|
|
60
|
+
};
|
|
61
|
+
}): Promise<{
|
|
62
|
+
body: RFQDocumentFacilitator;
|
|
63
|
+
status: number;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a list of all RFQs available in the Northstake marketplace.
|
|
67
|
+
* @summary List all RFQs in the marketplace
|
|
68
|
+
* @param status
|
|
69
|
+
* @param page
|
|
70
|
+
* @param limit
|
|
71
|
+
*/
|
|
72
|
+
listAllRFQsForFacilitator(status?: 'active' | 'expired' | 'finished', page?: number, limit?: number, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
body: ListAllRFQsForFacilitator200Response;
|
|
78
|
+
status: number;
|
|
79
|
+
}>;
|
|
80
|
+
}
|