@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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/accountApiKeysApi.ts +346 -0
  4. package/api/apis.ts +5 -1
  5. package/api/managedUsersValidatorsApi.ts +116 -0
  6. package/api/validatorMarketplaceFacilitatorApi.ts +360 -0
  7. package/api/validatorsApi.ts +109 -0
  8. package/api.ts +18 -0
  9. package/dist/api/accountApiKeysApi.d.ts +77 -0
  10. package/dist/api/accountApiKeysApi.js +266 -0
  11. package/dist/api/apis.d.ts +5 -1
  12. package/dist/api/apis.js +5 -1
  13. package/dist/api/managedUsersValidatorsApi.d.ts +27 -0
  14. package/dist/api/managedUsersValidatorsApi.js +87 -0
  15. package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +80 -0
  16. package/dist/api/validatorMarketplaceFacilitatorApi.js +280 -0
  17. package/dist/api/validatorsApi.d.ts +25 -0
  18. package/dist/api/validatorsApi.js +81 -0
  19. package/dist/api.d.ts +14 -0
  20. package/dist/api.js +16 -0
  21. package/dist/model/apiKey.d.ts +54 -0
  22. package/dist/model/apiKey.js +53 -0
  23. package/dist/model/generateApiKeyRequest.d.ts +43 -0
  24. package/dist/model/generateApiKeyRequest.js +43 -0
  25. package/dist/model/getMarketplaceMetadata200Response.d.ts +36 -0
  26. package/dist/model/getMarketplaceMetadata200Response.js +38 -0
  27. package/dist/model/getWithdrawalsResponse.d.ts +38 -0
  28. package/dist/model/getWithdrawalsResponse.js +43 -0
  29. package/dist/model/listAllRFQsForFacilitator200Response.d.ts +38 -0
  30. package/dist/model/listAllRFQsForFacilitator200Response.js +43 -0
  31. package/dist/model/models.d.ts +10 -0
  32. package/dist/model/models.js +32 -0
  33. package/dist/model/rFQBidFacilitator.d.ts +27 -0
  34. package/dist/model/rFQBidFacilitator.js +38 -0
  35. package/dist/model/rFQDocumentFacilitator.d.ts +38 -0
  36. package/dist/model/rFQDocumentFacilitator.js +53 -0
  37. package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +12 -0
  38. package/dist/model/rFQDocumentFacilitatorStatusFilter.js +13 -0
  39. package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +27 -0
  40. package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +38 -0
  41. package/dist/model/rFQDocumentSeller.d.ts +1 -0
  42. package/dist/model/rFQDocumentSeller.js +5 -0
  43. package/dist/model/validatorWithdrawal.d.ts +39 -0
  44. package/dist/model/validatorWithdrawal.js +68 -0
  45. package/model/apiKey.ts +88 -0
  46. package/model/generateApiKeyRequest.ts +66 -0
  47. package/model/getMarketplaceMetadata200Response.ts +52 -0
  48. package/model/getWithdrawalsResponse.ts +59 -0
  49. package/model/listAllRFQsForFacilitator200Response.ts +59 -0
  50. package/model/models.ts +53 -0
  51. package/model/rFQBidFacilitator.ts +43 -0
  52. package/model/rFQDocumentFacilitator.ts +74 -0
  53. package/model/rFQDocumentFacilitatorStatusFilter.ts +18 -0
  54. package/model/rFQDocumentFacilitatorValidatorsInner.ts +43 -0
  55. package/model/rFQDocumentSeller.ts +6 -0
  56. package/model/validatorWithdrawal.ts +86 -0
  57. package/package.json +3 -3
@@ -0,0 +1,280 @@
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.ValidatorMarketplaceFacilitatorApi = exports.ValidatorMarketplaceFacilitatorApiApiKeys = 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 ValidatorMarketplaceFacilitatorApiApiKeys;
26
+ (function (ValidatorMarketplaceFacilitatorApiApiKeys) {
27
+ ValidatorMarketplaceFacilitatorApiApiKeys[ValidatorMarketplaceFacilitatorApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
28
+ })(ValidatorMarketplaceFacilitatorApiApiKeys || (exports.ValidatorMarketplaceFacilitatorApiApiKeys = ValidatorMarketplaceFacilitatorApiApiKeys = {}));
29
+ class ValidatorMarketplaceFacilitatorApi {
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[ValidatorMarketplaceFacilitatorApiApiKeys[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
+ * Retrieves metadata information for the entire marketplace.
80
+ * @summary Get metadata for the entire marketplace
81
+ */
82
+ async getMarketplaceMetadata(options = { headers: {} }) {
83
+ const localVarPath = this.basePath + '/validatorMarketplace/facilitator/metadata';
84
+ let localVarQueryParameters = {};
85
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
86
+ const produces = ['application/json'];
87
+ if (produces.indexOf('application/json') >= 0) {
88
+ localVarHeaderParams.Accept = 'application/json';
89
+ }
90
+ else {
91
+ localVarHeaderParams.Accept = produces.join(',');
92
+ }
93
+ let localVarFormParams = {};
94
+ Object.assign(localVarHeaderParams, options.headers);
95
+ let localVarUseFormData = false;
96
+ let localVarRequestOptions = {
97
+ method: 'GET',
98
+ qs: localVarQueryParameters,
99
+ headers: localVarHeaderParams,
100
+ uri: localVarPath,
101
+ useQuerystring: this._useQuerystring,
102
+ json: true,
103
+ };
104
+ let authenticationPromise = Promise.resolve();
105
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
106
+ let interceptorPromise = authenticationPromise;
107
+ for (const interceptor of this.interceptors) {
108
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
109
+ }
110
+ return interceptorPromise.then(() => {
111
+ if (Object.keys(localVarFormParams).length) {
112
+ if (localVarUseFormData) {
113
+ localVarRequestOptions.formData = localVarFormParams;
114
+ }
115
+ else {
116
+ localVarRequestOptions.form = localVarFormParams;
117
+ }
118
+ }
119
+ return new Promise((resolve, reject) => {
120
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
121
+ if (error) {
122
+ console.error('API call error:', error);
123
+ reject(error);
124
+ }
125
+ else {
126
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
127
+ body = models_1.ObjectSerializer.deserialize(body, "GetMarketplaceMetadata200Response");
128
+ resolve({ body: body, status: response.statusCode });
129
+ }
130
+ else {
131
+ console.error('API response error:', response.statusCode);
132
+ resolve({ body: body, status: response.statusCode });
133
+ }
134
+ }
135
+ });
136
+ });
137
+ });
138
+ }
139
+ /**
140
+ * Retrieves detailed information about an RFQ by its ID.
141
+ * @summary Get detailed information about a specific RFQ
142
+ * @param rfqId The unique identifier of the RFQ
143
+ */
144
+ async getRFQDetailsForFacilitator(rfqId, options = { headers: {} }) {
145
+ const localVarPath = this.basePath + '/validatorMarketplace/facilitator/{rfqId}'
146
+ .replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
147
+ let localVarQueryParameters = {};
148
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
149
+ const produces = ['application/json'];
150
+ if (produces.indexOf('application/json') >= 0) {
151
+ localVarHeaderParams.Accept = 'application/json';
152
+ }
153
+ else {
154
+ localVarHeaderParams.Accept = produces.join(',');
155
+ }
156
+ let localVarFormParams = {};
157
+ // Verify required parameter 'rfqId' is not null or undefined
158
+ if (rfqId === null || rfqId === undefined) {
159
+ throw new Error('Required parameter "rfqId" was null or undefined when calling getRFQDetailsForFacilitator.');
160
+ }
161
+ Object.assign(localVarHeaderParams, options.headers);
162
+ let localVarUseFormData = false;
163
+ let localVarRequestOptions = {
164
+ method: 'GET',
165
+ qs: localVarQueryParameters,
166
+ headers: localVarHeaderParams,
167
+ uri: localVarPath,
168
+ useQuerystring: this._useQuerystring,
169
+ json: true,
170
+ };
171
+ let authenticationPromise = Promise.resolve();
172
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
173
+ let interceptorPromise = authenticationPromise;
174
+ for (const interceptor of this.interceptors) {
175
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
176
+ }
177
+ return interceptorPromise.then(() => {
178
+ if (Object.keys(localVarFormParams).length) {
179
+ if (localVarUseFormData) {
180
+ localVarRequestOptions.formData = localVarFormParams;
181
+ }
182
+ else {
183
+ localVarRequestOptions.form = localVarFormParams;
184
+ }
185
+ }
186
+ return new Promise((resolve, reject) => {
187
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
188
+ if (error) {
189
+ console.error('API call error:', error);
190
+ reject(error);
191
+ }
192
+ else {
193
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
194
+ body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentFacilitator");
195
+ resolve({ body: body, status: response.statusCode });
196
+ }
197
+ else {
198
+ console.error('API response error:', response.statusCode);
199
+ resolve({ body: body, status: response.statusCode });
200
+ }
201
+ }
202
+ });
203
+ });
204
+ });
205
+ }
206
+ /**
207
+ * Retrieves a list of all RFQs available in the Northstake marketplace.
208
+ * @summary List all RFQs in the marketplace
209
+ * @param status
210
+ * @param page
211
+ * @param limit
212
+ */
213
+ async listAllRFQsForFacilitator(status, page, limit, options = { headers: {} }) {
214
+ const localVarPath = this.basePath + '/validatorMarketplace/facilitator';
215
+ let localVarQueryParameters = {};
216
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
217
+ const produces = ['application/json'];
218
+ if (produces.indexOf('application/json') >= 0) {
219
+ localVarHeaderParams.Accept = 'application/json';
220
+ }
221
+ else {
222
+ localVarHeaderParams.Accept = produces.join(',');
223
+ }
224
+ let localVarFormParams = {};
225
+ if (status !== undefined) {
226
+ localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'active' | 'expired' | 'finished'");
227
+ }
228
+ if (page !== undefined) {
229
+ localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(page, "number");
230
+ }
231
+ if (limit !== undefined) {
232
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
233
+ }
234
+ Object.assign(localVarHeaderParams, options.headers);
235
+ let localVarUseFormData = false;
236
+ let localVarRequestOptions = {
237
+ method: 'GET',
238
+ qs: localVarQueryParameters,
239
+ headers: localVarHeaderParams,
240
+ uri: localVarPath,
241
+ useQuerystring: this._useQuerystring,
242
+ json: true,
243
+ };
244
+ let authenticationPromise = Promise.resolve();
245
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
246
+ let interceptorPromise = authenticationPromise;
247
+ for (const interceptor of this.interceptors) {
248
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
249
+ }
250
+ return interceptorPromise.then(() => {
251
+ if (Object.keys(localVarFormParams).length) {
252
+ if (localVarUseFormData) {
253
+ localVarRequestOptions.formData = localVarFormParams;
254
+ }
255
+ else {
256
+ localVarRequestOptions.form = localVarFormParams;
257
+ }
258
+ }
259
+ return new Promise((resolve, reject) => {
260
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
261
+ if (error) {
262
+ console.error('API call error:', error);
263
+ reject(error);
264
+ }
265
+ else {
266
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
267
+ body = models_1.ObjectSerializer.deserialize(body, "ListAllRFQsForFacilitator200Response");
268
+ resolve({ body: body, status: response.statusCode });
269
+ }
270
+ else {
271
+ console.error('API response error:', response.statusCode);
272
+ resolve({ body: body, status: response.statusCode });
273
+ }
274
+ }
275
+ });
276
+ });
277
+ });
278
+ }
279
+ }
280
+ exports.ValidatorMarketplaceFacilitatorApi = ValidatorMarketplaceFacilitatorApi;
@@ -9,6 +9,7 @@
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 { ValidatorKeyHolder } from '../model/validatorKeyHolder';
14
15
  import { ValidatorType } from '../model/validatorType';
@@ -17,6 +18,13 @@ import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
17
18
  export declare enum ValidatorsApiApiKeys {
18
19
  ApiKeyAuth = 0
19
20
  }
21
+ export interface ValidatorsApiParams {
22
+ startDate?: string;
23
+ endDate?: string;
24
+ page?: number;
25
+ limit?: number;
26
+ validatorIndices?: string;
27
+ }
20
28
  export declare class ValidatorsApi {
21
29
  protected _basePath: string;
22
30
  protected _defaultHeaders: any;
@@ -37,6 +45,23 @@ export declare class ValidatorsApi {
37
45
  setApiKey(key: ValidatorsApiApiKeys, value: string): void;
38
46
  set accessToken(accessToken: string | (() => string));
39
47
  addInterceptor(interceptor: Interceptor): void;
48
+ /**
49
+ * Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
50
+ * @summary Get a list of validator withdrawals
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., \&quot;123,456,789\&quot;)
56
+ */
57
+ getValidatorWithdrawals(params?: ValidatorsApiParams, options?: {
58
+ headers: {
59
+ [name: string]: string;
60
+ };
61
+ }): Promise<{
62
+ body: GetWithdrawalsResponse;
63
+ status: number;
64
+ }>;
40
65
  /**
41
66
  *
42
67
  * @summary Get a list of validators, optionally filtering by key_holder and contract_type
@@ -75,6 +75,87 @@ class ValidatorsApi {
75
75
  addInterceptor(interceptor) {
76
76
  this.interceptors.push(interceptor);
77
77
  }
78
+ /**
79
+ * Retrieves a paginated list of validator withdrawals. 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
81
+ * @param startDate Start date for filtering withdrawal statistics
82
+ * @param endDate End date for filtering withdrawal statistics
83
+ * @param page Withdrawal list page number
84
+ * @param limit Number of withdrawals to return per page
85
+ * @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \&quot;123,456,789\&quot;)
86
+ */
87
+ async getValidatorWithdrawals(params, options = { headers: {} }) {
88
+ const localVarPath = this.basePath + '/validators/withdrawals';
89
+ let localVarQueryParameters = {};
90
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
91
+ const produces = ['application/json'];
92
+ if (produces.indexOf('application/json') >= 0) {
93
+ localVarHeaderParams.Accept = 'application/json';
94
+ }
95
+ else {
96
+ localVarHeaderParams.Accept = produces.join(',');
97
+ }
98
+ let localVarFormParams = {};
99
+ if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
100
+ localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
101
+ }
102
+ if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
103
+ localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
104
+ }
105
+ if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
106
+ localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
107
+ }
108
+ if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
109
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
110
+ }
111
+ if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
112
+ localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
113
+ }
114
+ Object.assign(localVarHeaderParams, options.headers);
115
+ let localVarUseFormData = false;
116
+ let localVarRequestOptions = {
117
+ method: 'GET',
118
+ qs: localVarQueryParameters,
119
+ headers: localVarHeaderParams,
120
+ uri: localVarPath,
121
+ useQuerystring: this._useQuerystring,
122
+ json: true,
123
+ };
124
+ let authenticationPromise = Promise.resolve();
125
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
126
+ let interceptorPromise = authenticationPromise;
127
+ for (const interceptor of this.interceptors) {
128
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
129
+ }
130
+ return interceptorPromise.then(() => {
131
+ if (Object.keys(localVarFormParams).length) {
132
+ if (localVarUseFormData) {
133
+ localVarRequestOptions.formData = localVarFormParams;
134
+ }
135
+ else {
136
+ localVarRequestOptions.form = localVarFormParams;
137
+ }
138
+ }
139
+ return new Promise((resolve, reject) => {
140
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
141
+ if (error) {
142
+ console.error('API call error:', error);
143
+ reject(error);
144
+ }
145
+ else {
146
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
147
+ body = models_1.ObjectSerializer.deserialize(body, "GetWithdrawalsResponse");
148
+ resolve({ body: body, status: response.statusCode });
149
+ }
150
+ else {
151
+ console.error('API response error:', response.statusCode);
152
+ resolve({ body: body, status: response.statusCode });
153
+ }
154
+ }
155
+ });
156
+ });
157
+ });
158
+ }
78
159
  /**
79
160
  *
80
161
  * @summary Get a list of validators, optionally filtering by key_holder and contract_type
package/dist/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AccountApi } from './api/accountApi';
2
+ import { AccountApiKeysApi } from './api/accountApiKeysApi';
2
3
  import { DepositAddressesApi } from './api/depositAddressesApi';
3
4
  import { LinkedWalletsApi } from './api/linkedWalletsApi';
4
5
  import { ManagedUsersApi } from './api/managedUsersApi';
@@ -12,6 +13,7 @@ import { OrdersApi } from './api/ordersApi';
12
13
  import { PortfolioApi } from './api/portfolioApi';
13
14
  import { TransactionsApi } from './api/transactionsApi';
14
15
  import { ValidatorMarketplaceBuyersApi } from './api/validatorMarketplaceBuyersApi';
16
+ import { ValidatorMarketplaceFacilitatorApi } from './api/validatorMarketplaceFacilitatorApi';
15
17
  import { ValidatorMarketplaceSellersApi } from './api/validatorMarketplaceSellersApi';
16
18
  import { ValidatorMarketplaceWebhooksApi } from './api/validatorMarketplaceWebhooksApi';
17
19
  import { ValidatorsApi } from './api/validatorsApi';
@@ -20,6 +22,7 @@ export * from './model/./accountEntity';
20
22
  export * from './model/./addLinkedWalletForUserRequest';
21
23
  export * from './model/./addLinkedWalletRequest';
22
24
  export * from './model/./allManagedUsersResponse';
25
+ export * from './model/./apiKey';
23
26
  export * from './model/./asset';
24
27
  export * from './model/./createManagedUserRequest';
25
28
  export * from './model/./createRFQRequest';
@@ -39,7 +42,11 @@ export * from './model/./ethereumValidatorKeyKeystoreCryptoKdfParams';
39
42
  export * from './model/./exitEstimateBase';
40
43
  export * from './model/./exitEstimateSeller';
41
44
  export * from './model/./exitProposal';
45
+ export * from './model/./generateApiKeyRequest';
46
+ export * from './model/./getMarketplaceMetadata200Response';
42
47
  export * from './model/./getTransactionsResponse';
48
+ export * from './model/./getWithdrawalsResponse';
49
+ export * from './model/./listAllRFQsForFacilitator200Response';
43
50
  export * from './model/./managedUser';
44
51
  export * from './model/./managedUserDetails';
45
52
  export * from './model/./order';
@@ -50,12 +57,16 @@ export * from './model/./orderUpdatePayload';
50
57
  export * from './model/./portfolioEntity';
51
58
  export * from './model/./provideEscrowHashForRFQDocumentRequest';
52
59
  export * from './model/./quote';
60
+ export * from './model/./rFQBidFacilitator';
53
61
  export * from './model/./rFQBids';
54
62
  export * from './model/./rFQDocumentBase';
55
63
  export * from './model/./rFQDocumentBaseUniqueEscrowVault';
56
64
  export * from './model/./rFQDocumentBuyer';
57
65
  export * from './model/./rFQDocumentBuyerAllOfValidators';
58
66
  export * from './model/./rFQDocumentBuyerStatusFilter';
67
+ export * from './model/./rFQDocumentFacilitator';
68
+ export * from './model/./rFQDocumentFacilitatorStatusFilter';
69
+ export * from './model/./rFQDocumentFacilitatorValidatorsInner';
59
70
  export * from './model/./rFQDocumentSeller';
60
71
  export * from './model/./rFQDocumentSellerAllOfValidators';
61
72
  export * from './model/./rFQDocumentSellerStatusFilter';
@@ -79,6 +90,7 @@ export * from './model/./unstakeStepType';
79
90
  export * from './model/./validatorInfo';
80
91
  export * from './model/./validatorKeyHolder';
81
92
  export * from './model/./validatorType';
93
+ export * from './model/./validatorWithdrawal';
82
94
  export * from './model/./wallet';
83
95
  export * from './model/./webHookLookupAnswer';
84
96
  export * from './model/./webhookPayload';
@@ -109,6 +121,7 @@ export * from './model/./withdrawalStepType';
109
121
  export declare class NorthstakeApi {
110
122
  constructor(apiKey: string, privateKey: string, basePath?: string);
111
123
  account: AccountApi;
124
+ accountApiKeys: AccountApiKeysApi;
112
125
  depositAddresses: DepositAddressesApi;
113
126
  linkedWallets: LinkedWalletsApi;
114
127
  managedUsers: ManagedUsersApi;
@@ -122,6 +135,7 @@ export declare class NorthstakeApi {
122
135
  portfolio: PortfolioApi;
123
136
  transactions: TransactionsApi;
124
137
  validatorMarketplaceBuyers: ValidatorMarketplaceBuyersApi;
138
+ validatorMarketplaceFacilitator: ValidatorMarketplaceFacilitatorApi;
125
139
  validatorMarketplaceSellers: ValidatorMarketplaceSellersApi;
126
140
  validatorMarketplaceWebhooks: ValidatorMarketplaceWebhooksApi;
127
141
  validators: ValidatorsApi;
package/dist/api.js CHANGED
@@ -18,6 +18,7 @@ exports.NorthstakeApi = void 0;
18
18
  // masterApi.mustache
19
19
  const models_1 = require("./model/models");
20
20
  const accountApi_1 = require("./api/accountApi");
21
+ const accountApiKeysApi_1 = require("./api/accountApiKeysApi");
21
22
  const depositAddressesApi_1 = require("./api/depositAddressesApi");
22
23
  const linkedWalletsApi_1 = require("./api/linkedWalletsApi");
23
24
  const managedUsersApi_1 = require("./api/managedUsersApi");
@@ -31,6 +32,7 @@ const ordersApi_1 = require("./api/ordersApi");
31
32
  const portfolioApi_1 = require("./api/portfolioApi");
32
33
  const transactionsApi_1 = require("./api/transactionsApi");
33
34
  const validatorMarketplaceBuyersApi_1 = require("./api/validatorMarketplaceBuyersApi");
35
+ const validatorMarketplaceFacilitatorApi_1 = require("./api/validatorMarketplaceFacilitatorApi");
34
36
  const validatorMarketplaceSellersApi_1 = require("./api/validatorMarketplaceSellersApi");
35
37
  const validatorMarketplaceWebhooksApi_1 = require("./api/validatorMarketplaceWebhooksApi");
36
38
  const validatorsApi_1 = require("./api/validatorsApi");
@@ -39,6 +41,7 @@ __exportStar(require("./model/./accountEntity"), exports);
39
41
  __exportStar(require("./model/./addLinkedWalletForUserRequest"), exports);
40
42
  __exportStar(require("./model/./addLinkedWalletRequest"), exports);
41
43
  __exportStar(require("./model/./allManagedUsersResponse"), exports);
44
+ __exportStar(require("./model/./apiKey"), exports);
42
45
  __exportStar(require("./model/./asset"), exports);
43
46
  __exportStar(require("./model/./createManagedUserRequest"), exports);
44
47
  __exportStar(require("./model/./createRFQRequest"), exports);
@@ -58,7 +61,11 @@ __exportStar(require("./model/./ethereumValidatorKeyKeystoreCryptoKdfParams"), e
58
61
  __exportStar(require("./model/./exitEstimateBase"), exports);
59
62
  __exportStar(require("./model/./exitEstimateSeller"), exports);
60
63
  __exportStar(require("./model/./exitProposal"), exports);
64
+ __exportStar(require("./model/./generateApiKeyRequest"), exports);
65
+ __exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
61
66
  __exportStar(require("./model/./getTransactionsResponse"), exports);
67
+ __exportStar(require("./model/./getWithdrawalsResponse"), exports);
68
+ __exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
62
69
  __exportStar(require("./model/./managedUser"), exports);
63
70
  __exportStar(require("./model/./managedUserDetails"), exports);
64
71
  __exportStar(require("./model/./order"), exports);
@@ -69,12 +76,16 @@ __exportStar(require("./model/./orderUpdatePayload"), exports);
69
76
  __exportStar(require("./model/./portfolioEntity"), exports);
70
77
  __exportStar(require("./model/./provideEscrowHashForRFQDocumentRequest"), exports);
71
78
  __exportStar(require("./model/./quote"), exports);
79
+ __exportStar(require("./model/./rFQBidFacilitator"), exports);
72
80
  __exportStar(require("./model/./rFQBids"), exports);
73
81
  __exportStar(require("./model/./rFQDocumentBase"), exports);
74
82
  __exportStar(require("./model/./rFQDocumentBaseUniqueEscrowVault"), exports);
75
83
  __exportStar(require("./model/./rFQDocumentBuyer"), exports);
76
84
  __exportStar(require("./model/./rFQDocumentBuyerAllOfValidators"), exports);
77
85
  __exportStar(require("./model/./rFQDocumentBuyerStatusFilter"), exports);
86
+ __exportStar(require("./model/./rFQDocumentFacilitator"), exports);
87
+ __exportStar(require("./model/./rFQDocumentFacilitatorStatusFilter"), exports);
88
+ __exportStar(require("./model/./rFQDocumentFacilitatorValidatorsInner"), exports);
78
89
  __exportStar(require("./model/./rFQDocumentSeller"), exports);
79
90
  __exportStar(require("./model/./rFQDocumentSellerAllOfValidators"), exports);
80
91
  __exportStar(require("./model/./rFQDocumentSellerStatusFilter"), exports);
@@ -98,6 +109,7 @@ __exportStar(require("./model/./unstakeStepType"), exports);
98
109
  __exportStar(require("./model/./validatorInfo"), exports);
99
110
  __exportStar(require("./model/./validatorKeyHolder"), exports);
100
111
  __exportStar(require("./model/./validatorType"), exports);
112
+ __exportStar(require("./model/./validatorWithdrawal"), exports);
101
113
  __exportStar(require("./model/./wallet"), exports);
102
114
  __exportStar(require("./model/./webHookLookupAnswer"), exports);
103
115
  __exportStar(require("./model/./webhookPayload"), exports);
@@ -130,6 +142,8 @@ class NorthstakeApi {
130
142
  const jwtAuth = new models_1.JWTAuth(apiKey, privateKey);
131
143
  this.account = new accountApi_1.AccountApi(basePath);
132
144
  this.account.setDefaultAuthentication(jwtAuth);
145
+ this.accountApiKeys = new accountApiKeysApi_1.AccountApiKeysApi(basePath);
146
+ this.accountApiKeys.setDefaultAuthentication(jwtAuth);
133
147
  this.depositAddresses = new depositAddressesApi_1.DepositAddressesApi(basePath);
134
148
  this.depositAddresses.setDefaultAuthentication(jwtAuth);
135
149
  this.linkedWallets = new linkedWalletsApi_1.LinkedWalletsApi(basePath);
@@ -156,6 +170,8 @@ class NorthstakeApi {
156
170
  this.transactions.setDefaultAuthentication(jwtAuth);
157
171
  this.validatorMarketplaceBuyers = new validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi(basePath);
158
172
  this.validatorMarketplaceBuyers.setDefaultAuthentication(jwtAuth);
173
+ this.validatorMarketplaceFacilitator = new validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi(basePath);
174
+ this.validatorMarketplaceFacilitator.setDefaultAuthentication(jwtAuth);
159
175
  this.validatorMarketplaceSellers = new validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi(basePath);
160
176
  this.validatorMarketplaceSellers.setDefaultAuthentication(jwtAuth);
161
177
  this.validatorMarketplaceWebhooks = new validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi(basePath);
@@ -0,0 +1,54 @@
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
+ export declare class ApiKey {
13
+ /**
14
+ * Unique identifier for the API key
15
+ */
16
+ 'id': string;
17
+ /**
18
+ * Descriptive name for the API key
19
+ */
20
+ 'key_name': string;
21
+ /**
22
+ * The API key value
23
+ */
24
+ 'key': string;
25
+ /**
26
+ * The public key associated with the API key
27
+ */
28
+ 'pub_key': string;
29
+ /**
30
+ * List of IP addresses or CIDR ranges allowed to use this API key
31
+ */
32
+ 'ip_whitelist'?: Array<string>;
33
+ /**
34
+ * Roles associated with the API key
35
+ */
36
+ 'roles'?: ApiKey;
37
+ static discriminator: string | undefined;
38
+ static attributeTypeMap: Array<{
39
+ name: string;
40
+ baseName: string;
41
+ type: string;
42
+ }>;
43
+ static getAttributeTypeMap(): {
44
+ name: string;
45
+ baseName: string;
46
+ type: string;
47
+ }[];
48
+ }
49
+ export declare namespace ApiKey {
50
+ /**
51
+ * Roles associated with the API key
52
+ */
53
+ type rolesEnum = 'admin' | 'user' | 'reader';
54
+ }
@@ -0,0 +1,53 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ApiKey = void 0;
15
+ class ApiKey {
16
+ static getAttributeTypeMap() {
17
+ return ApiKey.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ApiKey = ApiKey;
21
+ ApiKey.discriminator = undefined;
22
+ ApiKey.attributeTypeMap = [
23
+ {
24
+ "name": "id",
25
+ "baseName": "id",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "key_name",
30
+ "baseName": "key_name",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "key",
35
+ "baseName": "key",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "pub_key",
40
+ "baseName": "pub_key",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "name": "ip_whitelist",
45
+ "baseName": "ip_whitelist",
46
+ "type": "Array<string>"
47
+ },
48
+ {
49
+ "name": "roles",
50
+ "baseName": "roles",
51
+ "type": "Array<ApiKey.RolesEnum>"
52
+ }
53
+ ];