@northstake/northstakeapi 1.0.32 → 1.0.34

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.
@@ -33,7 +33,7 @@ export declare class ApiKey {
33
33
  /**
34
34
  * Roles associated with the API key
35
35
  */
36
- 'roles'?: ApiKey;
36
+ 'roles'?: Array<ApiKey.rolesEnum>;
37
37
  static discriminator: string | undefined;
38
38
  static attributeTypeMap: Array<{
39
39
  name: string;
@@ -48,6 +48,6 @@ ApiKey.attributeTypeMap = [
48
48
  {
49
49
  "name": "roles",
50
50
  "baseName": "roles",
51
- "type": "Array<ApiKey.RolesEnum>"
51
+ "type": "Array<ApiKey.rolesEnum>"
52
52
  }
53
53
  ];
@@ -22,7 +22,7 @@ export declare class GenerateApiKeyRequest {
22
22
  /**
23
23
  * The rights associated with the API key.
24
24
  */
25
- 'keyRights'?: GenerateApiKeyRequest;
25
+ 'keyRights'?: Array<GenerateApiKeyRequest.keyRightsEnum>;
26
26
  static discriminator: string | undefined;
27
27
  static attributeTypeMap: Array<{
28
28
  name: string;
@@ -38,6 +38,6 @@ GenerateApiKeyRequest.attributeTypeMap = [
38
38
  {
39
39
  "name": "keyRights",
40
40
  "baseName": "keyRights",
41
- "type": "Array<GenerateApiKeyRequest.KeyRightsEnum>"
41
+ "type": "Array<GenerateApiKeyRequest.keyRightsEnum>"
42
42
  }
43
43
  ];
@@ -13,7 +13,7 @@ import { Quote } from './quote';
13
13
  import { RFQDocumentFacilitatorValidatorsInner } from './rFQDocumentFacilitatorValidatorsInner';
14
14
  export declare class RFQDocumentFacilitator {
15
15
  'id': string;
16
- 'status': RFQDocumentFacilitator;
16
+ 'status': RFQDocumentFacilitator.statusEnum;
17
17
  'total_balance': number;
18
18
  'payment_address': string;
19
19
  'validators': Array<RFQDocumentFacilitatorValidatorsInner>;
@@ -28,7 +28,7 @@ RFQDocumentFacilitator.attributeTypeMap = [
28
28
  {
29
29
  "name": "status",
30
30
  "baseName": "status",
31
- "type": "RFQDocumentFacilitator.StatusEnum"
31
+ "type": "RFQDocumentFacilitator.statusEnum"
32
32
  },
33
33
  {
34
34
  "name": "total_balance",
@@ -20,13 +20,13 @@ export declare class ValidatorInfo {
20
20
  /**
21
21
  * Validator asset
22
22
  */
23
- 'asset'?: ValidatorInfo;
23
+ 'asset'?: ValidatorInfo.assetEnum;
24
24
  'validator_public_key'?: string;
25
25
  'validator_index'?: number;
26
26
  /**
27
27
  * Status of the validator on the network
28
28
  */
29
- 'status'?: ValidatorInfo;
29
+ 'status'?: ValidatorInfo.statusEnum;
30
30
  'exit_estimate'?: ExitEstimateSeller;
31
31
  'key_holder'?: ValidatorKeyHolder;
32
32
  'validator_type'?: ValidatorType;
@@ -51,5 +51,5 @@ export declare namespace ValidatorInfo {
51
51
  /**
52
52
  * Status of the validator on the network
53
53
  */
54
- type statusEnum = 'activating' | 'active' | 'exiting' | 'exited';
54
+ type statusEnum = 'activating' | 'active' | 'exiting' | 'exited' | 'sold';
55
55
  }
@@ -31,7 +31,7 @@ ValidatorInfo.attributeTypeMap = [
31
31
  {
32
32
  "name": "asset",
33
33
  "baseName": "asset",
34
- "type": "ValidatorInfo.AssetEnum"
34
+ "type": "ValidatorInfo.assetEnum"
35
35
  },
36
36
  {
37
37
  "name": "validator_public_key",
@@ -46,7 +46,7 @@ ValidatorInfo.attributeTypeMap = [
46
46
  {
47
47
  "name": "status",
48
48
  "baseName": "status",
49
- "type": "ValidatorInfo.StatusEnum"
49
+ "type": "ValidatorInfo.statusEnum"
50
50
  },
51
51
  {
52
52
  "name": "exit_estimate",
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export declare class ValidatorWithdrawal {
13
- 'asset': ValidatorWithdrawal;
13
+ 'asset': ValidatorWithdrawal.assetEnum;
14
14
  'validator_public_key': string;
15
15
  'validator_index': number;
16
16
  'epoch': number;
@@ -23,7 +23,7 @@ ValidatorWithdrawal.attributeTypeMap = [
23
23
  {
24
24
  "name": "asset",
25
25
  "baseName": "asset",
26
- "type": "ValidatorWithdrawal.AssetEnum"
26
+ "type": "ValidatorWithdrawal.assetEnum"
27
27
  },
28
28
  {
29
29
  "name": "validator_public_key",
package/model/apiKey.ts CHANGED
@@ -35,7 +35,7 @@ export class ApiKey {
35
35
  /**
36
36
  * Roles associated with the API key
37
37
  */
38
- 'roles'?: ApiKey;
38
+ 'roles'?: Array<ApiKey.rolesEnum>;
39
39
 
40
40
  static discriminator: string | undefined = undefined;
41
41
 
@@ -68,7 +68,7 @@ export class ApiKey {
68
68
  {
69
69
  "name": "roles",
70
70
  "baseName": "roles",
71
- "type": "Array<ApiKey.RolesEnum>"
71
+ "type": "Array<ApiKey.rolesEnum>"
72
72
  } ];
73
73
 
74
74
  static getAttributeTypeMap() {
@@ -24,7 +24,7 @@ export class GenerateApiKeyRequest {
24
24
  /**
25
25
  * The rights associated with the API key.
26
26
  */
27
- 'keyRights'?: GenerateApiKeyRequest;
27
+ 'keyRights'?: Array<GenerateApiKeyRequest.keyRightsEnum>;
28
28
 
29
29
  static discriminator: string | undefined = undefined;
30
30
 
@@ -47,7 +47,7 @@ export class GenerateApiKeyRequest {
47
47
  {
48
48
  "name": "keyRights",
49
49
  "baseName": "keyRights",
50
- "type": "Array<GenerateApiKeyRequest.KeyRightsEnum>"
50
+ "type": "Array<GenerateApiKeyRequest.keyRightsEnum>"
51
51
  } ];
52
52
 
53
53
  static getAttributeTypeMap() {
@@ -15,7 +15,7 @@ import { RFQDocumentFacilitatorValidatorsInner } from './rFQDocumentFacilitatorV
15
15
 
16
16
  export class RFQDocumentFacilitator {
17
17
  'id': string;
18
- 'status': RFQDocumentFacilitator;
18
+ 'status': RFQDocumentFacilitator.statusEnum;
19
19
  'total_balance': number;
20
20
  'payment_address': string;
21
21
  'validators': Array<RFQDocumentFacilitatorValidatorsInner>;
@@ -32,7 +32,7 @@ export class RFQDocumentFacilitator {
32
32
  {
33
33
  "name": "status",
34
34
  "baseName": "status",
35
- "type": "RFQDocumentFacilitator.StatusEnum"
35
+ "type": "RFQDocumentFacilitator.statusEnum"
36
36
  },
37
37
  {
38
38
  "name": "total_balance",
@@ -22,13 +22,13 @@ export class ValidatorInfo {
22
22
  /**
23
23
  * Validator asset
24
24
  */
25
- 'asset'?: ValidatorInfo;
25
+ 'asset'?: ValidatorInfo.assetEnum;
26
26
  'validator_public_key'?: string;
27
27
  'validator_index'?: number;
28
28
  /**
29
29
  * Status of the validator on the network
30
30
  */
31
- 'status'?: ValidatorInfo;
31
+ 'status'?: ValidatorInfo.statusEnum;
32
32
  'exit_estimate'?: ExitEstimateSeller;
33
33
  'key_holder'?: ValidatorKeyHolder;
34
34
  'validator_type'?: ValidatorType;
@@ -45,7 +45,7 @@ export class ValidatorInfo {
45
45
  {
46
46
  "name": "asset",
47
47
  "baseName": "asset",
48
- "type": "ValidatorInfo.AssetEnum"
48
+ "type": "ValidatorInfo.assetEnum"
49
49
  },
50
50
  {
51
51
  "name": "validator_public_key",
@@ -60,7 +60,7 @@ export class ValidatorInfo {
60
60
  {
61
61
  "name": "status",
62
62
  "baseName": "status",
63
- "type": "ValidatorInfo.StatusEnum"
63
+ "type": "ValidatorInfo.statusEnum"
64
64
  },
65
65
  {
66
66
  "name": "exit_estimate",
@@ -101,6 +101,7 @@ export type statusEnum =
101
101
  'activating' |
102
102
  'active' |
103
103
  'exiting' |
104
- 'exited';
104
+ 'exited' |
105
+ 'sold';
105
106
  }
106
107
 
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
  export class ValidatorWithdrawal {
15
- 'asset': ValidatorWithdrawal;
15
+ 'asset': ValidatorWithdrawal.assetEnum;
16
16
  'validator_public_key': string;
17
17
  'validator_index': number;
18
18
  'epoch': number;
@@ -28,7 +28,7 @@ export class ValidatorWithdrawal {
28
28
  {
29
29
  "name": "asset",
30
30
  "baseName": "asset",
31
- "type": "ValidatorWithdrawal.AssetEnum"
31
+ "type": "ValidatorWithdrawal.assetEnum"
32
32
  },
33
33
  {
34
34
  "name": "validator_public_key",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
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.10.10",
24
+ "@types/node": "^22.12.0",
25
25
  "typescript": "^5.7.3"
26
26
  }
27
27
  }