@northstake/northstakeapi 1.0.23 → 1.0.25
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 +3 -37
- package/api/{managedUsersLinkedWalletsApi.ts → accountApiKeysApi.ts} +32 -55
- package/api/apis.ts +3 -23
- package/api.ts +6 -70
- package/dist/api/{depositAddressesApi.d.ts → accountApiKeysApi.d.ts} +25 -12
- package/dist/api/{managedUsersLinkedWalletsApi.js → accountApiKeysApi.js} +32 -56
- package/dist/api/apis.d.ts +3 -23
- package/dist/api/apis.js +3 -23
- package/dist/api.d.ts +4 -48
- package/dist/api.js +5 -59
- package/dist/model/apiKey.d.ts +54 -0
- package/dist/model/apiKey.js +53 -0
- package/dist/model/{transactionsforUser.d.ts → generateApiKeyRequest.d.ts} +14 -9
- package/dist/model/generateApiKeyRequest.js +43 -0
- package/dist/model/models.d.ts +2 -26
- package/dist/model/models.js +8 -70
- package/dist/model/validatorWithdrawal.d.ts +1 -0
- package/dist/model/validatorWithdrawal.js +5 -0
- package/dist/model/webhookPayloadData.d.ts +2 -10
- package/dist/model/webhookPayloadData.js +2 -12
- package/model/apiKey.ts +88 -0
- package/model/generateApiKeyRequest.ts +66 -0
- package/model/models.ts +9 -124
- package/model/validatorWithdrawal.ts +6 -0
- package/model/webhookPayloadData.ts +4 -23
- package/package.json +2 -2
- package/api/depositAddressesApi.ts +0 -267
- package/api/managedUsersApi.ts +0 -448
- package/api/managedUsersDepositAddressesApi.ts +0 -186
- package/api/managedUsersOrdersApi.ts +0 -462
- package/api/managedUsersPortfolioApi.ts +0 -186
- package/api/managedUsersTransactionsApi.ts +0 -222
- package/api/managedUsersValidatorsApi.ts +0 -302
- package/api/ordersApi.ts +0 -432
- package/api/portfolioApi.ts +0 -180
- package/api/transactionsApi.ts +0 -215
- package/dist/api/depositAddressesApi.js +0 -207
- package/dist/api/managedUsersApi.d.ts +0 -94
- package/dist/api/managedUsersApi.js +0 -348
- package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
- package/dist/api/managedUsersDepositAddressesApi.js +0 -146
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
- package/dist/api/managedUsersOrdersApi.d.ts +0 -94
- package/dist/api/managedUsersOrdersApi.js +0 -364
- package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
- package/dist/api/managedUsersPortfolioApi.js +0 -146
- package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
- package/dist/api/managedUsersTransactionsApi.js +0 -170
- package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
- package/dist/api/managedUsersValidatorsApi.js +0 -233
- package/dist/api/ordersApi.d.ts +0 -90
- package/dist/api/ordersApi.js +0 -333
- package/dist/api/portfolioApi.d.ts +0 -50
- package/dist/api/portfolioApi.js +0 -140
- package/dist/api/transactionsApi.d.ts +0 -66
- package/dist/api/transactionsApi.js +0 -164
- package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
- package/dist/model/addLinkedWalletForUserRequest.js +0 -33
- package/dist/model/allManagedUsersResponse.d.ts +0 -38
- package/dist/model/allManagedUsersResponse.js +0 -43
- package/dist/model/createManagedUserRequest.d.ts +0 -25
- package/dist/model/createManagedUserRequest.js +0 -28
- package/dist/model/depositAddress.d.ts +0 -35
- package/dist/model/depositAddress.js +0 -36
- package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
- package/dist/model/depositAddressesForUserResponse.js +0 -33
- package/dist/model/getTransactionsResponse.d.ts +0 -38
- package/dist/model/getTransactionsResponse.js +0 -43
- package/dist/model/managedUser.d.ts +0 -29
- package/dist/model/managedUser.js +0 -36
- package/dist/model/managedUserDetails.d.ts +0 -31
- package/dist/model/managedUserDetails.js +0 -41
- package/dist/model/order.d.ts +0 -42
- package/dist/model/order.js +0 -48
- package/dist/model/orderDocument.d.ts +0 -50
- package/dist/model/orderDocument.js +0 -71
- package/dist/model/orderDocumentSteps.d.ts +0 -30
- package/dist/model/orderDocumentSteps.js +0 -33
- package/dist/model/orderType.d.ts +0 -15
- package/dist/model/orderType.js +0 -13
- package/dist/model/orderUpdatePayload.d.ts +0 -36
- package/dist/model/orderUpdatePayload.js +0 -38
- package/dist/model/portfolioEntity.d.ts +0 -33
- package/dist/model/portfolioEntity.js +0 -41
- package/dist/model/stakeStep.d.ts +0 -32
- package/dist/model/stakeStep.js +0 -33
- package/dist/model/stakeStepElement.d.ts +0 -30
- package/dist/model/stakeStepElement.js +0 -33
- package/dist/model/stepStatus.d.ts +0 -15
- package/dist/model/stepStatus.js +0 -13
- package/dist/model/transaction.d.ts +0 -49
- package/dist/model/transaction.js +0 -56
- package/dist/model/transactionEventType.d.ts +0 -15
- package/dist/model/transactionEventType.js +0 -13
- package/dist/model/transactionsforUser.js +0 -43
- package/dist/model/unstakeStep.d.ts +0 -32
- package/dist/model/unstakeStep.js +0 -33
- package/dist/model/unstakeStepElement.d.ts +0 -30
- package/dist/model/unstakeStepElement.js +0 -33
- package/dist/model/unstakeStepType.d.ts +0 -15
- package/dist/model/unstakeStepType.js +0 -13
- package/dist/model/withdrawalStep.d.ts +0 -32
- package/dist/model/withdrawalStep.js +0 -33
- package/dist/model/withdrawalStepElement.d.ts +0 -30
- package/dist/model/withdrawalStepElement.js +0 -33
- package/dist/model/withdrawalStepType.d.ts +0 -15
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/addLinkedWalletForUserRequest.ts +0 -40
- package/model/allManagedUsersResponse.ts +0 -59
- package/model/createManagedUserRequest.ts +0 -31
- package/model/depositAddress.ts +0 -46
- package/model/depositAddressesForUserResponse.ts +0 -38
- package/model/getTransactionsResponse.ts +0 -59
- package/model/managedUser.ts +0 -40
- package/model/managedUserDetails.ts +0 -47
- package/model/order.ts +0 -68
- package/model/orderDocument.ts +0 -106
- package/model/orderDocumentSteps.ts +0 -44
- package/model/orderType.ts +0 -21
- package/model/orderUpdatePayload.ts +0 -52
- package/model/portfolioEntity.ts +0 -49
- package/model/stakeStep.ts +0 -43
- package/model/stakeStepElement.ts +0 -41
- package/model/stepStatus.ts +0 -21
- package/model/transaction.ts +0 -80
- package/model/transactionEventType.ts +0 -23
- package/model/transactionsforUser.ts +0 -59
- package/model/unstakeStep.ts +0 -43
- package/model/unstakeStepElement.ts +0 -41
- package/model/unstakeStepType.ts +0 -32
- package/model/withdrawalStep.ts +0 -43
- package/model/withdrawalStepElement.ts +0 -41
- package/model/withdrawalStepType.ts +0 -24
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.AccountApiKeysApi = exports.AccountApiKeysApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
@@ -22,11 +22,11 @@ let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
|
22
22
|
// ===============================================
|
|
23
23
|
// This file is autogenerated - Please do not edit
|
|
24
24
|
// ===============================================
|
|
25
|
-
var
|
|
26
|
-
(function (
|
|
27
|
-
|
|
28
|
-
})(
|
|
29
|
-
class
|
|
25
|
+
var AccountApiKeysApiApiKeys;
|
|
26
|
+
(function (AccountApiKeysApiApiKeys) {
|
|
27
|
+
AccountApiKeysApiApiKeys[AccountApiKeysApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
+
})(AccountApiKeysApiApiKeys || (exports.AccountApiKeysApiApiKeys = AccountApiKeysApiApiKeys = {}));
|
|
29
|
+
class AccountApiKeysApi {
|
|
30
30
|
constructor(basePathOrUsername, password, basePath) {
|
|
31
31
|
this._basePath = defaultBasePath;
|
|
32
32
|
this._defaultHeaders = {};
|
|
@@ -67,7 +67,7 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
67
67
|
this.authentications.default = auth;
|
|
68
68
|
}
|
|
69
69
|
setApiKey(key, value) {
|
|
70
|
-
this.authentications[
|
|
70
|
+
this.authentications[AccountApiKeysApiApiKeys[key]].apiKey = value;
|
|
71
71
|
}
|
|
72
72
|
set accessToken(accessToken) {
|
|
73
73
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -77,41 +77,28 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @summary
|
|
81
|
-
* @param
|
|
82
|
-
* @param addLinkedWalletForUserRequest
|
|
80
|
+
* @summary Delete an API key
|
|
81
|
+
* @param apiKeyId The ID of the API key to delete
|
|
83
82
|
*/
|
|
84
|
-
async
|
|
85
|
-
const localVarPath = this.basePath + '/
|
|
86
|
-
.replace('{' + '
|
|
83
|
+
async deleteApiKey(apiKeyId, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + '/account/apiKeys/{apiKeyId}'
|
|
85
|
+
.replace('{' + 'apiKeyId' + '}', encodeURIComponent(String(apiKeyId)));
|
|
87
86
|
let localVarQueryParameters = {};
|
|
88
87
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
89
|
-
const produces = ['application/json'];
|
|
90
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
91
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
95
|
-
}
|
|
96
88
|
let localVarFormParams = {};
|
|
97
|
-
// Verify required parameter '
|
|
98
|
-
if (
|
|
99
|
-
throw new Error('Required parameter "
|
|
100
|
-
}
|
|
101
|
-
// Verify required parameter 'addLinkedWalletForUserRequest' is not null or undefined
|
|
102
|
-
if (addLinkedWalletForUserRequest === null || addLinkedWalletForUserRequest === undefined) {
|
|
103
|
-
throw new Error('Required parameter "addLinkedWalletForUserRequest" was null or undefined when calling addLinkedWalletForUser.');
|
|
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.');
|
|
104
92
|
}
|
|
105
93
|
Object.assign(localVarHeaderParams, options.headers);
|
|
106
94
|
let localVarUseFormData = false;
|
|
107
95
|
let localVarRequestOptions = {
|
|
108
|
-
method: '
|
|
96
|
+
method: 'DELETE',
|
|
109
97
|
qs: localVarQueryParameters,
|
|
110
98
|
headers: localVarHeaderParams,
|
|
111
99
|
uri: localVarPath,
|
|
112
100
|
useQuerystring: this._useQuerystring,
|
|
113
101
|
json: true,
|
|
114
|
-
body: models_1.ObjectSerializer.serialize(addLinkedWalletForUserRequest, "AddLinkedWalletForUserRequest")
|
|
115
102
|
};
|
|
116
103
|
let authenticationPromise = Promise.resolve();
|
|
117
104
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -148,15 +135,12 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
148
135
|
});
|
|
149
136
|
}
|
|
150
137
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @summary
|
|
153
|
-
* @param
|
|
154
|
-
* @param userId The unique identifier for the managed user
|
|
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
|
|
155
141
|
*/
|
|
156
|
-
async
|
|
157
|
-
const localVarPath = this.basePath + '/
|
|
158
|
-
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)))
|
|
159
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
142
|
+
async generateApiKey(generateApiKeyRequest, options = { headers: {} }) {
|
|
143
|
+
const localVarPath = this.basePath + '/account/apiKeys';
|
|
160
144
|
let localVarQueryParameters = {};
|
|
161
145
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
162
146
|
const produces = ['application/json'];
|
|
@@ -167,23 +151,20 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
167
151
|
localVarHeaderParams.Accept = produces.join(',');
|
|
168
152
|
}
|
|
169
153
|
let localVarFormParams = {};
|
|
170
|
-
// Verify required parameter '
|
|
171
|
-
if (
|
|
172
|
-
throw new Error('Required parameter "
|
|
173
|
-
}
|
|
174
|
-
// Verify required parameter 'userId' is not null or undefined
|
|
175
|
-
if (userId === null || userId === undefined) {
|
|
176
|
-
throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
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.');
|
|
177
157
|
}
|
|
178
158
|
Object.assign(localVarHeaderParams, options.headers);
|
|
179
159
|
let localVarUseFormData = false;
|
|
180
160
|
let localVarRequestOptions = {
|
|
181
|
-
method: '
|
|
161
|
+
method: 'POST',
|
|
182
162
|
qs: localVarQueryParameters,
|
|
183
163
|
headers: localVarHeaderParams,
|
|
184
164
|
uri: localVarPath,
|
|
185
165
|
useQuerystring: this._useQuerystring,
|
|
186
166
|
json: true,
|
|
167
|
+
body: models_1.ObjectSerializer.serialize(generateApiKeyRequest, "GenerateApiKeyRequest")
|
|
187
168
|
};
|
|
188
169
|
let authenticationPromise = Promise.resolve();
|
|
189
170
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -208,6 +189,7 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
208
189
|
}
|
|
209
190
|
else {
|
|
210
191
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
192
|
+
body = models_1.ObjectSerializer.deserialize(body, "ApiKey");
|
|
211
193
|
resolve({ body: body, status: response.statusCode });
|
|
212
194
|
}
|
|
213
195
|
else {
|
|
@@ -221,12 +203,10 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
221
203
|
}
|
|
222
204
|
/**
|
|
223
205
|
*
|
|
224
|
-
* @summary List
|
|
225
|
-
* @param userId The unique identifier for the managed user
|
|
206
|
+
* @summary List all API keys
|
|
226
207
|
*/
|
|
227
|
-
async
|
|
228
|
-
const localVarPath = this.basePath + '/
|
|
229
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
208
|
+
async listApiKeys(options = { headers: {} }) {
|
|
209
|
+
const localVarPath = this.basePath + '/account/apiKeys';
|
|
230
210
|
let localVarQueryParameters = {};
|
|
231
211
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
232
212
|
const produces = ['application/json'];
|
|
@@ -237,10 +217,6 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
237
217
|
localVarHeaderParams.Accept = produces.join(',');
|
|
238
218
|
}
|
|
239
219
|
let localVarFormParams = {};
|
|
240
|
-
// Verify required parameter 'userId' is not null or undefined
|
|
241
|
-
if (userId === null || userId === undefined) {
|
|
242
|
-
throw new Error('Required parameter "userId" was null or undefined when calling listLinkedWalletsForUser.');
|
|
243
|
-
}
|
|
244
220
|
Object.assign(localVarHeaderParams, options.headers);
|
|
245
221
|
let localVarUseFormData = false;
|
|
246
222
|
let localVarRequestOptions = {
|
|
@@ -274,7 +250,7 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
274
250
|
}
|
|
275
251
|
else {
|
|
276
252
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
277
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<
|
|
253
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<ApiKey>");
|
|
278
254
|
resolve({ body: body, status: response.statusCode });
|
|
279
255
|
}
|
|
280
256
|
else {
|
|
@@ -287,4 +263,4 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
287
263
|
});
|
|
288
264
|
}
|
|
289
265
|
}
|
|
290
|
-
exports.
|
|
266
|
+
exports.AccountApiKeysApi = AccountApiKeysApi;
|
package/dist/api/apis.d.ts
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
export * from './accountApi';
|
|
2
2
|
import { AccountApi } from './accountApi';
|
|
3
|
-
export * from './
|
|
4
|
-
import {
|
|
3
|
+
export * from './accountApiKeysApi';
|
|
4
|
+
import { AccountApiKeysApi } from './accountApiKeysApi';
|
|
5
5
|
export * from './linkedWalletsApi';
|
|
6
6
|
import { LinkedWalletsApi } from './linkedWalletsApi';
|
|
7
|
-
export * from './managedUsersApi';
|
|
8
|
-
import { ManagedUsersApi } from './managedUsersApi';
|
|
9
|
-
export * from './managedUsersDepositAddressesApi';
|
|
10
|
-
import { ManagedUsersDepositAddressesApi } from './managedUsersDepositAddressesApi';
|
|
11
|
-
export * from './managedUsersLinkedWalletsApi';
|
|
12
|
-
import { ManagedUsersLinkedWalletsApi } from './managedUsersLinkedWalletsApi';
|
|
13
|
-
export * from './managedUsersOrdersApi';
|
|
14
|
-
import { ManagedUsersOrdersApi } from './managedUsersOrdersApi';
|
|
15
|
-
export * from './managedUsersPortfolioApi';
|
|
16
|
-
import { ManagedUsersPortfolioApi } from './managedUsersPortfolioApi';
|
|
17
|
-
export * from './managedUsersTransactionsApi';
|
|
18
|
-
import { ManagedUsersTransactionsApi } from './managedUsersTransactionsApi';
|
|
19
|
-
export * from './managedUsersValidatorsApi';
|
|
20
|
-
import { ManagedUsersValidatorsApi } from './managedUsersValidatorsApi';
|
|
21
|
-
export * from './ordersApi';
|
|
22
|
-
import { OrdersApi } from './ordersApi';
|
|
23
|
-
export * from './portfolioApi';
|
|
24
|
-
import { PortfolioApi } from './portfolioApi';
|
|
25
|
-
export * from './transactionsApi';
|
|
26
|
-
import { TransactionsApi } from './transactionsApi';
|
|
27
7
|
export * from './validatorMarketplaceBuyersApi';
|
|
28
8
|
import { ValidatorMarketplaceBuyersApi } from './validatorMarketplaceBuyersApi';
|
|
29
9
|
export * from './validatorMarketplaceFacilitatorApi';
|
|
@@ -42,4 +22,4 @@ export declare class HttpError extends Error {
|
|
|
42
22
|
constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
|
|
43
23
|
}
|
|
44
24
|
export { RequestFile } from '../model/models';
|
|
45
|
-
export declare const APIS: (typeof
|
|
25
|
+
export declare const APIS: (typeof AccountApiKeysApi | typeof LinkedWalletsApi | typeof ValidatorMarketplaceBuyersApi | typeof ValidatorMarketplaceFacilitatorApi | typeof ValidatorMarketplaceSellersApi | typeof ValidatorMarketplaceWebhooksApi | typeof ValidatorsApi | typeof AccountApi)[];
|
package/dist/api/apis.js
CHANGED
|
@@ -17,30 +17,10 @@ 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("./
|
|
21
|
-
const
|
|
20
|
+
__exportStar(require("./accountApiKeysApi"), exports);
|
|
21
|
+
const accountApiKeysApi_1 = require("./accountApiKeysApi");
|
|
22
22
|
__exportStar(require("./linkedWalletsApi"), exports);
|
|
23
23
|
const linkedWalletsApi_1 = require("./linkedWalletsApi");
|
|
24
|
-
__exportStar(require("./managedUsersApi"), exports);
|
|
25
|
-
const managedUsersApi_1 = require("./managedUsersApi");
|
|
26
|
-
__exportStar(require("./managedUsersDepositAddressesApi"), exports);
|
|
27
|
-
const managedUsersDepositAddressesApi_1 = require("./managedUsersDepositAddressesApi");
|
|
28
|
-
__exportStar(require("./managedUsersLinkedWalletsApi"), exports);
|
|
29
|
-
const managedUsersLinkedWalletsApi_1 = require("./managedUsersLinkedWalletsApi");
|
|
30
|
-
__exportStar(require("./managedUsersOrdersApi"), exports);
|
|
31
|
-
const managedUsersOrdersApi_1 = require("./managedUsersOrdersApi");
|
|
32
|
-
__exportStar(require("./managedUsersPortfolioApi"), exports);
|
|
33
|
-
const managedUsersPortfolioApi_1 = require("./managedUsersPortfolioApi");
|
|
34
|
-
__exportStar(require("./managedUsersTransactionsApi"), exports);
|
|
35
|
-
const managedUsersTransactionsApi_1 = require("./managedUsersTransactionsApi");
|
|
36
|
-
__exportStar(require("./managedUsersValidatorsApi"), exports);
|
|
37
|
-
const managedUsersValidatorsApi_1 = require("./managedUsersValidatorsApi");
|
|
38
|
-
__exportStar(require("./ordersApi"), exports);
|
|
39
|
-
const ordersApi_1 = require("./ordersApi");
|
|
40
|
-
__exportStar(require("./portfolioApi"), exports);
|
|
41
|
-
const portfolioApi_1 = require("./portfolioApi");
|
|
42
|
-
__exportStar(require("./transactionsApi"), exports);
|
|
43
|
-
const transactionsApi_1 = require("./transactionsApi");
|
|
44
24
|
__exportStar(require("./validatorMarketplaceBuyersApi"), exports);
|
|
45
25
|
const validatorMarketplaceBuyersApi_1 = require("./validatorMarketplaceBuyersApi");
|
|
46
26
|
__exportStar(require("./validatorMarketplaceFacilitatorApi"), exports);
|
|
@@ -61,4 +41,4 @@ class HttpError extends Error {
|
|
|
61
41
|
}
|
|
62
42
|
}
|
|
63
43
|
exports.HttpError = HttpError;
|
|
64
|
-
exports.APIS = [accountApi_1.AccountApi,
|
|
44
|
+
exports.APIS = [accountApi_1.AccountApi, accountApiKeysApi_1.AccountApiKeysApi, linkedWalletsApi_1.LinkedWalletsApi, validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi, validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi, validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi, validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi, validatorsApi_1.ValidatorsApi];
|
package/dist/api.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { AccountApi } from './api/accountApi';
|
|
2
|
-
import {
|
|
2
|
+
import { AccountApiKeysApi } from './api/accountApiKeysApi';
|
|
3
3
|
import { LinkedWalletsApi } from './api/linkedWalletsApi';
|
|
4
|
-
import { ManagedUsersApi } from './api/managedUsersApi';
|
|
5
|
-
import { ManagedUsersDepositAddressesApi } from './api/managedUsersDepositAddressesApi';
|
|
6
|
-
import { ManagedUsersLinkedWalletsApi } from './api/managedUsersLinkedWalletsApi';
|
|
7
|
-
import { ManagedUsersOrdersApi } from './api/managedUsersOrdersApi';
|
|
8
|
-
import { ManagedUsersPortfolioApi } from './api/managedUsersPortfolioApi';
|
|
9
|
-
import { ManagedUsersTransactionsApi } from './api/managedUsersTransactionsApi';
|
|
10
|
-
import { ManagedUsersValidatorsApi } from './api/managedUsersValidatorsApi';
|
|
11
|
-
import { OrdersApi } from './api/ordersApi';
|
|
12
|
-
import { PortfolioApi } from './api/portfolioApi';
|
|
13
|
-
import { TransactionsApi } from './api/transactionsApi';
|
|
14
4
|
import { ValidatorMarketplaceBuyersApi } from './api/validatorMarketplaceBuyersApi';
|
|
15
5
|
import { ValidatorMarketplaceFacilitatorApi } from './api/validatorMarketplaceFacilitatorApi';
|
|
16
6
|
import { ValidatorMarketplaceSellersApi } from './api/validatorMarketplaceSellersApi';
|
|
@@ -18,14 +8,10 @@ import { ValidatorMarketplaceWebhooksApi } from './api/validatorMarketplaceWebho
|
|
|
18
8
|
import { ValidatorsApi } from './api/validatorsApi';
|
|
19
9
|
export * from './model/./acceptedQuote';
|
|
20
10
|
export * from './model/./accountEntity';
|
|
21
|
-
export * from './model/./addLinkedWalletForUserRequest';
|
|
22
11
|
export * from './model/./addLinkedWalletRequest';
|
|
23
|
-
export * from './model/./
|
|
12
|
+
export * from './model/./apiKey';
|
|
24
13
|
export * from './model/./asset';
|
|
25
|
-
export * from './model/./createManagedUserRequest';
|
|
26
14
|
export * from './model/./createRFQRequest';
|
|
27
|
-
export * from './model/./depositAddress';
|
|
28
|
-
export * from './model/./depositAddressesForUserResponse';
|
|
29
15
|
export * from './model/./errorResponse';
|
|
30
16
|
export * from './model/./escrowPayment';
|
|
31
17
|
export * from './model/./escrowReleased';
|
|
@@ -40,18 +26,10 @@ export * from './model/./ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
40
26
|
export * from './model/./exitEstimateBase';
|
|
41
27
|
export * from './model/./exitEstimateSeller';
|
|
42
28
|
export * from './model/./exitProposal';
|
|
29
|
+
export * from './model/./generateApiKeyRequest';
|
|
43
30
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
44
|
-
export * from './model/./getTransactionsResponse';
|
|
45
31
|
export * from './model/./getWithdrawalsResponse';
|
|
46
32
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
47
|
-
export * from './model/./managedUser';
|
|
48
|
-
export * from './model/./managedUserDetails';
|
|
49
|
-
export * from './model/./order';
|
|
50
|
-
export * from './model/./orderDocument';
|
|
51
|
-
export * from './model/./orderDocumentSteps';
|
|
52
|
-
export * from './model/./orderType';
|
|
53
|
-
export * from './model/./orderUpdatePayload';
|
|
54
|
-
export * from './model/./portfolioEntity';
|
|
55
33
|
export * from './model/./provideEscrowHashForRFQDocumentRequest';
|
|
56
34
|
export * from './model/./quote';
|
|
57
35
|
export * from './model/./rFQBidFacilitator';
|
|
@@ -74,16 +52,7 @@ export * from './model/./rFQWebhookEventType';
|
|
|
74
52
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
75
53
|
export * from './model/./settlementSteps';
|
|
76
54
|
export * from './model/./smartContract';
|
|
77
|
-
export * from './model/./stakeStep';
|
|
78
|
-
export * from './model/./stakeStepElement';
|
|
79
|
-
export * from './model/./stepStatus';
|
|
80
55
|
export * from './model/./submittedQuote';
|
|
81
|
-
export * from './model/./transaction';
|
|
82
|
-
export * from './model/./transactionEventType';
|
|
83
|
-
export * from './model/./transactionsforUser';
|
|
84
|
-
export * from './model/./unstakeStep';
|
|
85
|
-
export * from './model/./unstakeStepElement';
|
|
86
|
-
export * from './model/./unstakeStepType';
|
|
87
56
|
export * from './model/./validatorInfo';
|
|
88
57
|
export * from './model/./validatorKeyHolder';
|
|
89
58
|
export * from './model/./validatorType';
|
|
@@ -112,24 +81,11 @@ export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
|
112
81
|
export * from './model/./webhookRegistration';
|
|
113
82
|
export * from './model/./webhookRegistrationDetails';
|
|
114
83
|
export * from './model/./withdrawalRecipientSettlement';
|
|
115
|
-
export * from './model/./withdrawalStep';
|
|
116
|
-
export * from './model/./withdrawalStepElement';
|
|
117
|
-
export * from './model/./withdrawalStepType';
|
|
118
84
|
export declare class NorthstakeApi {
|
|
119
85
|
constructor(apiKey: string, privateKey: string, basePath?: string);
|
|
120
86
|
account: AccountApi;
|
|
121
|
-
|
|
87
|
+
accountApiKeys: AccountApiKeysApi;
|
|
122
88
|
linkedWallets: LinkedWalletsApi;
|
|
123
|
-
managedUsers: ManagedUsersApi;
|
|
124
|
-
managedUsersDepositAddresses: ManagedUsersDepositAddressesApi;
|
|
125
|
-
managedUsersLinkedWallets: ManagedUsersLinkedWalletsApi;
|
|
126
|
-
managedUsersOrders: ManagedUsersOrdersApi;
|
|
127
|
-
managedUsersPortfolio: ManagedUsersPortfolioApi;
|
|
128
|
-
managedUsersTransactions: ManagedUsersTransactionsApi;
|
|
129
|
-
managedUsersValidators: ManagedUsersValidatorsApi;
|
|
130
|
-
orders: OrdersApi;
|
|
131
|
-
portfolio: PortfolioApi;
|
|
132
|
-
transactions: TransactionsApi;
|
|
133
89
|
validatorMarketplaceBuyers: ValidatorMarketplaceBuyersApi;
|
|
134
90
|
validatorMarketplaceFacilitator: ValidatorMarketplaceFacilitatorApi;
|
|
135
91
|
validatorMarketplaceSellers: ValidatorMarketplaceSellersApi;
|
package/dist/api.js
CHANGED
|
@@ -18,18 +18,8 @@ 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
|
|
21
|
+
const accountApiKeysApi_1 = require("./api/accountApiKeysApi");
|
|
22
22
|
const linkedWalletsApi_1 = require("./api/linkedWalletsApi");
|
|
23
|
-
const managedUsersApi_1 = require("./api/managedUsersApi");
|
|
24
|
-
const managedUsersDepositAddressesApi_1 = require("./api/managedUsersDepositAddressesApi");
|
|
25
|
-
const managedUsersLinkedWalletsApi_1 = require("./api/managedUsersLinkedWalletsApi");
|
|
26
|
-
const managedUsersOrdersApi_1 = require("./api/managedUsersOrdersApi");
|
|
27
|
-
const managedUsersPortfolioApi_1 = require("./api/managedUsersPortfolioApi");
|
|
28
|
-
const managedUsersTransactionsApi_1 = require("./api/managedUsersTransactionsApi");
|
|
29
|
-
const managedUsersValidatorsApi_1 = require("./api/managedUsersValidatorsApi");
|
|
30
|
-
const ordersApi_1 = require("./api/ordersApi");
|
|
31
|
-
const portfolioApi_1 = require("./api/portfolioApi");
|
|
32
|
-
const transactionsApi_1 = require("./api/transactionsApi");
|
|
33
23
|
const validatorMarketplaceBuyersApi_1 = require("./api/validatorMarketplaceBuyersApi");
|
|
34
24
|
const validatorMarketplaceFacilitatorApi_1 = require("./api/validatorMarketplaceFacilitatorApi");
|
|
35
25
|
const validatorMarketplaceSellersApi_1 = require("./api/validatorMarketplaceSellersApi");
|
|
@@ -37,14 +27,10 @@ const validatorMarketplaceWebhooksApi_1 = require("./api/validatorMarketplaceWeb
|
|
|
37
27
|
const validatorsApi_1 = require("./api/validatorsApi");
|
|
38
28
|
__exportStar(require("./model/./acceptedQuote"), exports);
|
|
39
29
|
__exportStar(require("./model/./accountEntity"), exports);
|
|
40
|
-
__exportStar(require("./model/./addLinkedWalletForUserRequest"), exports);
|
|
41
30
|
__exportStar(require("./model/./addLinkedWalletRequest"), exports);
|
|
42
|
-
__exportStar(require("./model/./
|
|
31
|
+
__exportStar(require("./model/./apiKey"), exports);
|
|
43
32
|
__exportStar(require("./model/./asset"), exports);
|
|
44
|
-
__exportStar(require("./model/./createManagedUserRequest"), exports);
|
|
45
33
|
__exportStar(require("./model/./createRFQRequest"), exports);
|
|
46
|
-
__exportStar(require("./model/./depositAddress"), exports);
|
|
47
|
-
__exportStar(require("./model/./depositAddressesForUserResponse"), exports);
|
|
48
34
|
__exportStar(require("./model/./errorResponse"), exports);
|
|
49
35
|
__exportStar(require("./model/./escrowPayment"), exports);
|
|
50
36
|
__exportStar(require("./model/./escrowReleased"), exports);
|
|
@@ -59,18 +45,10 @@ __exportStar(require("./model/./ethereumValidatorKeyKeystoreCryptoKdfParams"), e
|
|
|
59
45
|
__exportStar(require("./model/./exitEstimateBase"), exports);
|
|
60
46
|
__exportStar(require("./model/./exitEstimateSeller"), exports);
|
|
61
47
|
__exportStar(require("./model/./exitProposal"), exports);
|
|
48
|
+
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
62
49
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
63
|
-
__exportStar(require("./model/./getTransactionsResponse"), exports);
|
|
64
50
|
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
65
51
|
__exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
|
|
66
|
-
__exportStar(require("./model/./managedUser"), exports);
|
|
67
|
-
__exportStar(require("./model/./managedUserDetails"), exports);
|
|
68
|
-
__exportStar(require("./model/./order"), exports);
|
|
69
|
-
__exportStar(require("./model/./orderDocument"), exports);
|
|
70
|
-
__exportStar(require("./model/./orderDocumentSteps"), exports);
|
|
71
|
-
__exportStar(require("./model/./orderType"), exports);
|
|
72
|
-
__exportStar(require("./model/./orderUpdatePayload"), exports);
|
|
73
|
-
__exportStar(require("./model/./portfolioEntity"), exports);
|
|
74
52
|
__exportStar(require("./model/./provideEscrowHashForRFQDocumentRequest"), exports);
|
|
75
53
|
__exportStar(require("./model/./quote"), exports);
|
|
76
54
|
__exportStar(require("./model/./rFQBidFacilitator"), exports);
|
|
@@ -93,16 +71,7 @@ __exportStar(require("./model/./rFQWebhookEventType"), exports);
|
|
|
93
71
|
__exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"), exports);
|
|
94
72
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
95
73
|
__exportStar(require("./model/./smartContract"), exports);
|
|
96
|
-
__exportStar(require("./model/./stakeStep"), exports);
|
|
97
|
-
__exportStar(require("./model/./stakeStepElement"), exports);
|
|
98
|
-
__exportStar(require("./model/./stepStatus"), exports);
|
|
99
74
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
100
|
-
__exportStar(require("./model/./transaction"), exports);
|
|
101
|
-
__exportStar(require("./model/./transactionEventType"), exports);
|
|
102
|
-
__exportStar(require("./model/./transactionsforUser"), exports);
|
|
103
|
-
__exportStar(require("./model/./unstakeStep"), exports);
|
|
104
|
-
__exportStar(require("./model/./unstakeStepElement"), exports);
|
|
105
|
-
__exportStar(require("./model/./unstakeStepType"), exports);
|
|
106
75
|
__exportStar(require("./model/./validatorInfo"), exports);
|
|
107
76
|
__exportStar(require("./model/./validatorKeyHolder"), exports);
|
|
108
77
|
__exportStar(require("./model/./validatorType"), exports);
|
|
@@ -131,38 +100,15 @@ __exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimableDetails"), e
|
|
|
131
100
|
__exportStar(require("./model/./webhookRegistration"), exports);
|
|
132
101
|
__exportStar(require("./model/./webhookRegistrationDetails"), exports);
|
|
133
102
|
__exportStar(require("./model/./withdrawalRecipientSettlement"), exports);
|
|
134
|
-
__exportStar(require("./model/./withdrawalStep"), exports);
|
|
135
|
-
__exportStar(require("./model/./withdrawalStepElement"), exports);
|
|
136
|
-
__exportStar(require("./model/./withdrawalStepType"), exports);
|
|
137
103
|
class NorthstakeApi {
|
|
138
104
|
constructor(apiKey, privateKey, basePath = "https://api.northstake.dk/v1") {
|
|
139
105
|
const jwtAuth = new models_1.JWTAuth(apiKey, privateKey);
|
|
140
106
|
this.account = new accountApi_1.AccountApi(basePath);
|
|
141
107
|
this.account.setDefaultAuthentication(jwtAuth);
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
108
|
+
this.accountApiKeys = new accountApiKeysApi_1.AccountApiKeysApi(basePath);
|
|
109
|
+
this.accountApiKeys.setDefaultAuthentication(jwtAuth);
|
|
144
110
|
this.linkedWallets = new linkedWalletsApi_1.LinkedWalletsApi(basePath);
|
|
145
111
|
this.linkedWallets.setDefaultAuthentication(jwtAuth);
|
|
146
|
-
this.managedUsers = new managedUsersApi_1.ManagedUsersApi(basePath);
|
|
147
|
-
this.managedUsers.setDefaultAuthentication(jwtAuth);
|
|
148
|
-
this.managedUsersDepositAddresses = new managedUsersDepositAddressesApi_1.ManagedUsersDepositAddressesApi(basePath);
|
|
149
|
-
this.managedUsersDepositAddresses.setDefaultAuthentication(jwtAuth);
|
|
150
|
-
this.managedUsersLinkedWallets = new managedUsersLinkedWalletsApi_1.ManagedUsersLinkedWalletsApi(basePath);
|
|
151
|
-
this.managedUsersLinkedWallets.setDefaultAuthentication(jwtAuth);
|
|
152
|
-
this.managedUsersOrders = new managedUsersOrdersApi_1.ManagedUsersOrdersApi(basePath);
|
|
153
|
-
this.managedUsersOrders.setDefaultAuthentication(jwtAuth);
|
|
154
|
-
this.managedUsersPortfolio = new managedUsersPortfolioApi_1.ManagedUsersPortfolioApi(basePath);
|
|
155
|
-
this.managedUsersPortfolio.setDefaultAuthentication(jwtAuth);
|
|
156
|
-
this.managedUsersTransactions = new managedUsersTransactionsApi_1.ManagedUsersTransactionsApi(basePath);
|
|
157
|
-
this.managedUsersTransactions.setDefaultAuthentication(jwtAuth);
|
|
158
|
-
this.managedUsersValidators = new managedUsersValidatorsApi_1.ManagedUsersValidatorsApi(basePath);
|
|
159
|
-
this.managedUsersValidators.setDefaultAuthentication(jwtAuth);
|
|
160
|
-
this.orders = new ordersApi_1.OrdersApi(basePath);
|
|
161
|
-
this.orders.setDefaultAuthentication(jwtAuth);
|
|
162
|
-
this.portfolio = new portfolioApi_1.PortfolioApi(basePath);
|
|
163
|
-
this.portfolio.setDefaultAuthentication(jwtAuth);
|
|
164
|
-
this.transactions = new transactionsApi_1.TransactionsApi(basePath);
|
|
165
|
-
this.transactions.setDefaultAuthentication(jwtAuth);
|
|
166
112
|
this.validatorMarketplaceBuyers = new validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi(basePath);
|
|
167
113
|
this.validatorMarketplaceBuyers.setDefaultAuthentication(jwtAuth);
|
|
168
114
|
this.validatorMarketplaceFacilitator = new validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi(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
|
+
];
|
|
@@ -9,21 +9,20 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
export declare class TransactionsforUser {
|
|
14
|
-
'transactions': Array<Transaction>;
|
|
12
|
+
export declare class GenerateApiKeyRequest {
|
|
15
13
|
/**
|
|
16
|
-
*
|
|
14
|
+
* A descriptive name for the API key.
|
|
17
15
|
*/
|
|
18
|
-
'
|
|
16
|
+
'keyName': string;
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
18
|
+
* The public part of an RSA private keypair in PEM format.
|
|
21
19
|
*/
|
|
22
|
-
'
|
|
20
|
+
'publicKey': string;
|
|
21
|
+
'whitelistedIPs'?: Array<string>;
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
* The rights associated with the API key.
|
|
25
24
|
*/
|
|
26
|
-
'
|
|
25
|
+
'keyRights'?: GenerateApiKeyRequest;
|
|
27
26
|
static discriminator: string | undefined;
|
|
28
27
|
static attributeTypeMap: Array<{
|
|
29
28
|
name: string;
|
|
@@ -36,3 +35,9 @@ export declare class TransactionsforUser {
|
|
|
36
35
|
type: string;
|
|
37
36
|
}[];
|
|
38
37
|
}
|
|
38
|
+
export declare namespace GenerateApiKeyRequest {
|
|
39
|
+
/**
|
|
40
|
+
* The rights associated with the API key.
|
|
41
|
+
*/
|
|
42
|
+
type keyRightsEnum = 'user' | 'reader';
|
|
43
|
+
}
|