@northstake/northstakeapi 1.0.39 → 1.0.40

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.
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ValidatorProvider } from './validatorProvider';
13
+ /**
14
+ * List of validator providers available for the current user when creating a vault
15
+ */
16
+ export declare class SupportedValidatorProvidersResponse {
17
+ 'providers': Array<ValidatorProvider>;
18
+ static discriminator: string | undefined;
19
+ static attributeTypeMap: Array<{
20
+ name: string;
21
+ baseName: string;
22
+ type: string;
23
+ }>;
24
+ static getAttributeTypeMap(): {
25
+ name: string;
26
+ baseName: string;
27
+ type: string;
28
+ }[];
29
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * Northstake
4
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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.SupportedValidatorProvidersResponse = void 0;
15
+ /**
16
+ * List of validator providers available for the current user when creating a vault
17
+ */
18
+ class SupportedValidatorProvidersResponse {
19
+ static getAttributeTypeMap() {
20
+ return SupportedValidatorProvidersResponse.attributeTypeMap;
21
+ }
22
+ }
23
+ exports.SupportedValidatorProvidersResponse = SupportedValidatorProvidersResponse;
24
+ SupportedValidatorProvidersResponse.discriminator = undefined;
25
+ SupportedValidatorProvidersResponse.attributeTypeMap = [
26
+ {
27
+ "name": "providers",
28
+ "baseName": "providers",
29
+ "type": "Array<ValidatorProvider>"
30
+ }
31
+ ];
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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 UpdateShareLimit {
13
+ /**
14
+ * Requested share limit.
15
+ */
16
+ 'requestedShareLimit': string;
17
+ /**
18
+ * Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
19
+ */
20
+ 'simulateAddress'?: string;
21
+ static discriminator: string | undefined;
22
+ static attributeTypeMap: Array<{
23
+ name: string;
24
+ baseName: string;
25
+ type: string;
26
+ }>;
27
+ static getAttributeTypeMap(): {
28
+ name: string;
29
+ baseName: string;
30
+ type: string;
31
+ }[];
32
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * Northstake
4
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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.UpdateShareLimit = void 0;
15
+ class UpdateShareLimit {
16
+ static getAttributeTypeMap() {
17
+ return UpdateShareLimit.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.UpdateShareLimit = UpdateShareLimit;
21
+ UpdateShareLimit.discriminator = undefined;
22
+ UpdateShareLimit.attributeTypeMap = [
23
+ {
24
+ "name": "requestedShareLimit",
25
+ "baseName": "requestedShareLimit",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "simulateAddress",
30
+ "baseName": "simulateAddress",
31
+ "type": "string"
32
+ }
33
+ ];
@@ -12,4 +12,4 @@
12
12
  /**
13
13
  * Available validator providers for staking
14
14
  */
15
- export type ValidatorProvider = 'northstake' | 'p2p' | 'figment' | 'piertwo';
15
+ export type ValidatorProvider = 'northstake' | 'p2p' | 'figment' | 'piertwo' | 'senseinode';
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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 ChangeTier {
15
+ /**
16
+ * Tier ID.
17
+ */
18
+ 'tierId': string;
19
+ /**
20
+ * Requested share limit.
21
+ */
22
+ 'requestedShareLimit': string;
23
+ /**
24
+ * Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
25
+ */
26
+ 'simulateAddress'?: string;
27
+
28
+ static discriminator: string | undefined = undefined;
29
+
30
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31
+ {
32
+ "name": "tierId",
33
+ "baseName": "tierId",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "name": "requestedShareLimit",
38
+ "baseName": "requestedShareLimit",
39
+ "type": "string"
40
+ },
41
+ {
42
+ "name": "simulateAddress",
43
+ "baseName": "simulateAddress",
44
+ "type": "string"
45
+ } ];
46
+
47
+ static getAttributeTypeMap() {
48
+ return ChangeTier.attributeTypeMap;
49
+ }
50
+ }
51
+
52
+
@@ -13,9 +13,9 @@
13
13
 
14
14
  export class GetStETHPerWstETHRate200Response {
15
15
  /**
16
- * The current exchange rate of stETH per wstETH
16
+ * The current exchange rate of stETH per wstETH as a bigint string (raw 18-decimal value) to avoid rounding errors
17
17
  */
18
- 'rate': number;
18
+ 'rate': string;
19
19
 
20
20
  static discriminator: string | undefined = undefined;
21
21
 
@@ -23,7 +23,7 @@ export class GetStETHPerWstETHRate200Response {
23
23
  {
24
24
  "name": "rate",
25
25
  "baseName": "rate",
26
- "type": "number"
26
+ "type": "string"
27
27
  } ];
28
28
 
29
29
  static getAttributeTypeMap() {
package/model/models.ts CHANGED
@@ -12,6 +12,7 @@ export * from './asset';
12
12
  export * from './burnShares';
13
13
  export * from './burnStETH';
14
14
  export * from './burnWstETH';
15
+ export * from './changeTier';
15
16
  export * from './collectERC20FromVault';
16
17
  export * from './consolidateValidators';
17
18
  export * from './consolidateValidatorsErrorResponse';
@@ -90,12 +91,14 @@ export * from './stakeEthResponse';
90
91
  export * from './stakeEthResponseDestructuredCallDataInner';
91
92
  export * from './stakingRequest';
92
93
  export * from './stakingRequestStatus';
94
+ export * from './supportedValidatorProvidersResponse';
93
95
  export * from './transaction';
94
96
  export * from './triggerValidatorWithdrawals';
95
97
  export * from './unwrapWstETH';
96
98
  export * from './updateLinkedWalletNameRequest';
97
99
  export * from './updateMemberRoleRequest';
98
100
  export * from './updateOrganizationNameRequest';
101
+ export * from './updateShareLimit';
99
102
  export * from './validateConsolidationRequestsResponse';
100
103
  export * from './validateConsolidationRequestsResponseConsolidationDetailsInner';
101
104
  export * from './validatorDailyReward';
@@ -179,6 +182,9 @@ import { BurnStETH } from './burnStETH';
179
182
  import { BurnWstETH } from './burnWstETH';
180
183
 
181
184
 
185
+ import { ChangeTier } from './changeTier';
186
+
187
+
182
188
  import { CollectERC20FromVault } from './collectERC20FromVault';
183
189
 
184
190
 
@@ -413,6 +419,9 @@ import { StakingRequest } from './stakingRequest';
413
419
  import { StakingRequestStatus } from './stakingRequestStatus';
414
420
 
415
421
 
422
+ import { SupportedValidatorProvidersResponse } from './supportedValidatorProvidersResponse';
423
+
424
+
416
425
  import { Transaction } from './transaction';
417
426
 
418
427
 
@@ -431,6 +440,9 @@ import { UpdateMemberRoleRequest } from './updateMemberRoleRequest';
431
440
  import { UpdateOrganizationNameRequest } from './updateOrganizationNameRequest';
432
441
 
433
442
 
443
+ import { UpdateShareLimit } from './updateShareLimit';
444
+
445
+
434
446
  import { ValidateConsolidationRequestsResponse } from './validateConsolidationRequestsResponse';
435
447
 
436
448
 
@@ -585,6 +597,7 @@ let typeMap: {[index: string]: any} = {
585
597
  "BurnShares": BurnShares,
586
598
  "BurnStETH": BurnStETH,
587
599
  "BurnWstETH": BurnWstETH,
600
+ "ChangeTier": ChangeTier,
588
601
  "CollectERC20FromVault": CollectERC20FromVault,
589
602
  "ConsolidateValidators": ConsolidateValidators,
590
603
  "ConsolidateValidatorsErrorResponse": ConsolidateValidatorsErrorResponse,
@@ -657,12 +670,14 @@ let typeMap: {[index: string]: any} = {
657
670
  "StakeEthResponse": StakeEthResponse,
658
671
  "StakeEthResponseDestructuredCallDataInner": StakeEthResponseDestructuredCallDataInner,
659
672
  "StakingRequest": StakingRequest,
673
+ "SupportedValidatorProvidersResponse": SupportedValidatorProvidersResponse,
660
674
  "Transaction": Transaction,
661
675
  "TriggerValidatorWithdrawals": TriggerValidatorWithdrawals,
662
676
  "UnwrapWstETH": UnwrapWstETH,
663
677
  "UpdateLinkedWalletNameRequest": UpdateLinkedWalletNameRequest,
664
678
  "UpdateMemberRoleRequest": UpdateMemberRoleRequest,
665
679
  "UpdateOrganizationNameRequest": UpdateOrganizationNameRequest,
680
+ "UpdateShareLimit": UpdateShareLimit,
666
681
  "ValidateConsolidationRequestsResponse": ValidateConsolidationRequestsResponse,
667
682
  "ValidateConsolidationRequestsResponseConsolidationDetailsInner": ValidateConsolidationRequestsResponseConsolidationDetailsInner,
668
683
  "ValidatorDailyReward": ValidatorDailyReward,
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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
+ import { ValidatorProvider } from './validatorProvider';
14
+
15
+ /**
16
+ * List of validator providers available for the current user when creating a vault
17
+ */
18
+ export class SupportedValidatorProvidersResponse {
19
+ 'providers': Array<ValidatorProvider>;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "providers",
26
+ "baseName": "providers",
27
+ "type": "Array<ValidatorProvider>"
28
+ } ];
29
+
30
+ static getAttributeTypeMap() {
31
+ return SupportedValidatorProvidersResponse.attributeTypeMap;
32
+ }
33
+ }
34
+
35
+
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
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 UpdateShareLimit {
15
+ /**
16
+ * Requested share limit.
17
+ */
18
+ 'requestedShareLimit': string;
19
+ /**
20
+ * Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
21
+ */
22
+ 'simulateAddress'?: string;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "requestedShareLimit",
29
+ "baseName": "requestedShareLimit",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "simulateAddress",
34
+ "baseName": "simulateAddress",
35
+ "type": "string"
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return UpdateShareLimit.attributeTypeMap;
40
+ }
41
+ }
42
+
43
+
@@ -18,5 +18,6 @@ export type ValidatorProvider =
18
18
  'northstake' |
19
19
  'p2p' |
20
20
  'figment' |
21
- 'piertwo';
21
+ 'piertwo' |
22
+ 'senseinode';
22
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
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": "^25.3.0",
24
+ "@types/node": "^25.3.3",
25
25
  "typescript": "^5.9.3"
26
26
  }
27
27
  }