@northstake/northstakeapi 1.0.23 → 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 +3 -0
- package/api/accountApiKeysApi.ts +346 -0
- package/api/apis.ts +3 -1
- package/api.ts +6 -0
- package/dist/api/accountApiKeysApi.d.ts +77 -0
- package/dist/api/accountApiKeysApi.js +266 -0
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +3 -1
- package/dist/api.d.ts +4 -0
- package/dist/api.js +5 -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/models.d.ts +2 -0
- package/dist/model/models.js +8 -0
- package/dist/model/validatorWithdrawal.d.ts +1 -0
- package/dist/model/validatorWithdrawal.js +5 -0
- package/model/apiKey.ts +88 -0
- package/model/generateApiKeyRequest.ts +66 -0
- package/model/models.ts +12 -0
- package/model/validatorWithdrawal.ts +6 -0
- package/package.json +2 -2
package/model/apiKey.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
|
|
13
|
+
|
|
14
|
+
export class ApiKey {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier for the API key
|
|
17
|
+
*/
|
|
18
|
+
'id': string;
|
|
19
|
+
/**
|
|
20
|
+
* Descriptive name for the API key
|
|
21
|
+
*/
|
|
22
|
+
'key_name': string;
|
|
23
|
+
/**
|
|
24
|
+
* The API key value
|
|
25
|
+
*/
|
|
26
|
+
'key': string;
|
|
27
|
+
/**
|
|
28
|
+
* The public key associated with the API key
|
|
29
|
+
*/
|
|
30
|
+
'pub_key': string;
|
|
31
|
+
/**
|
|
32
|
+
* List of IP addresses or CIDR ranges allowed to use this API key
|
|
33
|
+
*/
|
|
34
|
+
'ip_whitelist'?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Roles associated with the API key
|
|
37
|
+
*/
|
|
38
|
+
'roles'?: ApiKey;
|
|
39
|
+
|
|
40
|
+
static discriminator: string | undefined = undefined;
|
|
41
|
+
|
|
42
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
43
|
+
{
|
|
44
|
+
"name": "id",
|
|
45
|
+
"baseName": "id",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "key_name",
|
|
50
|
+
"baseName": "key_name",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "key",
|
|
55
|
+
"baseName": "key",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "pub_key",
|
|
60
|
+
"baseName": "pub_key",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "ip_whitelist",
|
|
65
|
+
"baseName": "ip_whitelist",
|
|
66
|
+
"type": "Array<string>"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "roles",
|
|
70
|
+
"baseName": "roles",
|
|
71
|
+
"type": "Array<ApiKey.RolesEnum>"
|
|
72
|
+
} ];
|
|
73
|
+
|
|
74
|
+
static getAttributeTypeMap() {
|
|
75
|
+
return ApiKey.attributeTypeMap;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace ApiKey {
|
|
80
|
+
/**
|
|
81
|
+
* Roles associated with the API key
|
|
82
|
+
*/
|
|
83
|
+
export type rolesEnum =
|
|
84
|
+
'admin' |
|
|
85
|
+
'user' |
|
|
86
|
+
'reader';
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
13
|
+
|
|
14
|
+
export class GenerateApiKeyRequest {
|
|
15
|
+
/**
|
|
16
|
+
* A descriptive name for the API key.
|
|
17
|
+
*/
|
|
18
|
+
'keyName': string;
|
|
19
|
+
/**
|
|
20
|
+
* The public part of an RSA private keypair in PEM format.
|
|
21
|
+
*/
|
|
22
|
+
'publicKey': string;
|
|
23
|
+
'whitelistedIPs'?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The rights associated with the API key.
|
|
26
|
+
*/
|
|
27
|
+
'keyRights'?: GenerateApiKeyRequest;
|
|
28
|
+
|
|
29
|
+
static discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "keyName",
|
|
34
|
+
"baseName": "keyName",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "publicKey",
|
|
39
|
+
"baseName": "publicKey",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "whitelistedIPs",
|
|
44
|
+
"baseName": "whitelistedIPs",
|
|
45
|
+
"type": "Array<string>"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "keyRights",
|
|
49
|
+
"baseName": "keyRights",
|
|
50
|
+
"type": "Array<GenerateApiKeyRequest.KeyRightsEnum>"
|
|
51
|
+
} ];
|
|
52
|
+
|
|
53
|
+
static getAttributeTypeMap() {
|
|
54
|
+
return GenerateApiKeyRequest.attributeTypeMap;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace GenerateApiKeyRequest {
|
|
59
|
+
/**
|
|
60
|
+
* The rights associated with the API key.
|
|
61
|
+
*/
|
|
62
|
+
export type keyRightsEnum =
|
|
63
|
+
'user' |
|
|
64
|
+
'reader';
|
|
65
|
+
}
|
|
66
|
+
|
package/model/models.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './accountEntity';
|
|
|
7
7
|
export * from './addLinkedWalletForUserRequest';
|
|
8
8
|
export * from './addLinkedWalletRequest';
|
|
9
9
|
export * from './allManagedUsersResponse';
|
|
10
|
+
export * from './apiKey';
|
|
10
11
|
export * from './asset';
|
|
11
12
|
export * from './createManagedUserRequest';
|
|
12
13
|
export * from './createRFQRequest';
|
|
@@ -26,6 +27,7 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
26
27
|
export * from './exitEstimateBase';
|
|
27
28
|
export * from './exitEstimateSeller';
|
|
28
29
|
export * from './exitProposal';
|
|
30
|
+
export * from './generateApiKeyRequest';
|
|
29
31
|
export * from './getMarketplaceMetadata200Response';
|
|
30
32
|
export * from './getTransactionsResponse';
|
|
31
33
|
export * from './getWithdrawalsResponse';
|
|
@@ -130,6 +132,9 @@ import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
|
|
|
130
132
|
import { AllManagedUsersResponse } from './allManagedUsersResponse';
|
|
131
133
|
|
|
132
134
|
|
|
135
|
+
import { ApiKey } from './apiKey';
|
|
136
|
+
|
|
137
|
+
|
|
133
138
|
import { Asset } from './asset';
|
|
134
139
|
|
|
135
140
|
|
|
@@ -187,6 +192,9 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
|
187
192
|
import { ExitProposal } from './exitProposal';
|
|
188
193
|
|
|
189
194
|
|
|
195
|
+
import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
196
|
+
|
|
197
|
+
|
|
190
198
|
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
191
199
|
|
|
192
200
|
|
|
@@ -425,6 +433,8 @@ let primitives = [
|
|
|
425
433
|
"any"
|
|
426
434
|
];
|
|
427
435
|
let enumsMap: {[index: string]: any} = {
|
|
436
|
+
"ApiKey.roles": ApiKey,
|
|
437
|
+
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
428
438
|
"OrderDocument.type": OrderDocument,
|
|
429
439
|
"OrderDocument.status": OrderDocument,
|
|
430
440
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
@@ -438,6 +448,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
438
448
|
"AddLinkedWalletForUserRequest": AddLinkedWalletForUserRequest,
|
|
439
449
|
"AddLinkedWalletRequest": AddLinkedWalletRequest,
|
|
440
450
|
"AllManagedUsersResponse": AllManagedUsersResponse,
|
|
451
|
+
"ApiKey": ApiKey,
|
|
441
452
|
"CreateManagedUserRequest": CreateManagedUserRequest,
|
|
442
453
|
"CreateRFQRequest": CreateRFQRequest,
|
|
443
454
|
"DepositAddress": DepositAddress,
|
|
@@ -456,6 +467,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
456
467
|
"ExitEstimateBase": ExitEstimateBase,
|
|
457
468
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
458
469
|
"ExitProposal": ExitProposal,
|
|
470
|
+
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
459
471
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
460
472
|
"GetTransactionsResponse": GetTransactionsResponse,
|
|
461
473
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
@@ -20,6 +20,7 @@ export class ValidatorWithdrawal {
|
|
|
20
20
|
'withdrawal_time': Date;
|
|
21
21
|
'withdrawal_index': number;
|
|
22
22
|
'withdrawal_address': string;
|
|
23
|
+
'amount': string;
|
|
23
24
|
|
|
24
25
|
static discriminator: string | undefined = undefined;
|
|
25
26
|
|
|
@@ -63,6 +64,11 @@ export class ValidatorWithdrawal {
|
|
|
63
64
|
"name": "withdrawal_address",
|
|
64
65
|
"baseName": "withdrawal_address",
|
|
65
66
|
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "amount",
|
|
70
|
+
"baseName": "amount",
|
|
71
|
+
"type": "string"
|
|
66
72
|
} ];
|
|
67
73
|
|
|
68
74
|
static getAttributeTypeMap() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^22.
|
|
24
|
+
"@types/node": "^22.9.0",
|
|
25
25
|
"typescript": "^5.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|