@northstake/northstakeapi 1.0.40 → 1.0.41

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 (31) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/api/lidoReadApi.ts +89 -0
  3. package/api/lidoWriteApi.ts +369 -2
  4. package/api/validatorsApi.ts +0 -114
  5. package/api.ts +2 -2
  6. package/dist/api/lidoReadApi.d.ts +14 -0
  7. package/dist/api/lidoReadApi.js +69 -0
  8. package/dist/api/lidoWriteApi.d.ts +60 -2
  9. package/dist/api/lidoWriteApi.js +292 -2
  10. package/dist/api/validatorsApi.d.ts +0 -27
  11. package/dist/api/validatorsApi.js +0 -85
  12. package/dist/api.d.ts +2 -2
  13. package/dist/api.js +2 -2
  14. package/dist/model/{getWithdrawalsResponse.d.ts → abandonDashboardRequest.d.ts} +5 -11
  15. package/dist/model/abandonDashboardRequest.js +33 -0
  16. package/dist/model/{validatorWithdrawal.d.ts → getOperatorGroup200Response.d.ts} +15 -23
  17. package/dist/model/{getWithdrawalsResponse.js → getOperatorGroup200Response.js} +18 -18
  18. package/dist/model/lidoContractsStakingVault.d.ts +8 -0
  19. package/dist/model/lidoContractsStakingVault.js +10 -0
  20. package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +16 -2
  21. package/dist/model/lidoStakingContractsWithDataVaultData.js +13 -3
  22. package/dist/model/models.d.ts +2 -2
  23. package/dist/model/models.js +7 -8
  24. package/model/abandonDashboardRequest.ts +43 -0
  25. package/model/{getWithdrawalsResponse.ts → getOperatorGroup200Response.ts} +24 -22
  26. package/model/lidoContractsStakingVault.ts +18 -0
  27. package/model/lidoStakingContractsWithDataVaultData.ts +32 -5
  28. package/model/models.ts +11 -12
  29. package/package.json +2 -2
  30. package/dist/model/validatorWithdrawal.js +0 -78
  31. package/model/validatorWithdrawal.ts +0 -107
@@ -16,6 +16,14 @@ export class LidoContractsStakingVault {
16
16
  * Staking vault contract address
17
17
  */
18
18
  'address': string;
19
+ /**
20
+ * Owner of the staking vault contract (Ownable). Used by disconnect wizard to show who can accept ownership.
21
+ */
22
+ 'owner'?: string;
23
+ /**
24
+ * Pending owner (Ownable2Step). When non-zero, Step 3 (abandon dashboard) is done and the frontend can show \"Accept ownership (Step 4) from this address\". Zero address when no transfer is pending.
25
+ */
26
+ 'pendingOwner'?: string;
19
27
 
20
28
  static discriminator: string | undefined = undefined;
21
29
 
@@ -24,6 +32,16 @@ export class LidoContractsStakingVault {
24
32
  "name": "address",
25
33
  "baseName": "address",
26
34
  "type": "string"
35
+ },
36
+ {
37
+ "name": "owner",
38
+ "baseName": "owner",
39
+ "type": "string"
40
+ },
41
+ {
42
+ "name": "pendingOwner",
43
+ "baseName": "pendingOwner",
44
+ "type": "string"
27
45
  } ];
28
46
 
29
47
  static getAttributeTypeMap() {
@@ -73,9 +73,9 @@ export class LidoStakingContractsWithDataVaultData {
73
73
  */
74
74
  'vaultIndex'?: number;
75
75
  /**
76
- * Timestamp when disconnection was initiated (0 if disconnected, max(uint48) if connected)
76
+ * Vault hub connection status. `connected` = fully connected; `disconnecting` = voluntary disconnect initiated, transition period (same restrictions as disconnected); `disconnected` = not connected. When not `connected`, only voluntary disconnect, withdrawal, and connect to vault hub are allowed.
77
77
  */
78
- 'disconnectInitiatedTs'?: number;
78
+ 'vaultHubConnectionStatus'?: LidoStakingContractsWithDataVaultData.vaultHubConnectionStatusEnum;
79
79
  /**
80
80
  * Share of ether locked as additional reserve (in basis points)
81
81
  */
@@ -100,6 +100,14 @@ export class LidoStakingContractsWithDataVaultData {
100
100
  * If true, vault owner intends to pause beacon chain deposits
101
101
  */
102
102
  'beaconChainDepositsPauseIntent'?: boolean;
103
+ /**
104
+ * Tier ID on the operator grid
105
+ */
106
+ 'tierId'?: string;
107
+ /**
108
+ * Node operator address. A value of 0xffffffffffffffffffffffffffffffffffffffff indicates that the operator is not registered on the operator grid
109
+ */
110
+ 'nodeOperator'?: string;
103
111
 
104
112
  static discriminator: string | undefined = undefined;
105
113
 
@@ -180,9 +188,9 @@ export class LidoStakingContractsWithDataVaultData {
180
188
  "type": "number"
181
189
  },
182
190
  {
183
- "name": "disconnectInitiatedTs",
184
- "baseName": "disconnectInitiatedTs",
185
- "type": "number"
191
+ "name": "vaultHubConnectionStatus",
192
+ "baseName": "vaultHubConnectionStatus",
193
+ "type": "LidoStakingContractsWithDataVaultData.vaultHubConnectionStatusEnum"
186
194
  },
187
195
  {
188
196
  "name": "reserveRatioBP",
@@ -213,6 +221,16 @@ export class LidoStakingContractsWithDataVaultData {
213
221
  "name": "beaconChainDepositsPauseIntent",
214
222
  "baseName": "beaconChainDepositsPauseIntent",
215
223
  "type": "boolean"
224
+ },
225
+ {
226
+ "name": "tierId",
227
+ "baseName": "tierId",
228
+ "type": "string"
229
+ },
230
+ {
231
+ "name": "nodeOperator",
232
+ "baseName": "nodeOperator",
233
+ "type": "string"
216
234
  } ];
217
235
 
218
236
  static getAttributeTypeMap() {
@@ -220,4 +238,13 @@ export class LidoStakingContractsWithDataVaultData {
220
238
  }
221
239
  }
222
240
 
241
+ export namespace LidoStakingContractsWithDataVaultData {
242
+ /**
243
+ * Vault hub connection status. `connected` = fully connected; `disconnecting` = voluntary disconnect initiated, transition period (same restrictions as disconnected); `disconnected` = not connected. When not `connected`, only voluntary disconnect, withdrawal, and connect to vault hub are allowed.
244
+ */
245
+ export type vaultHubConnectionStatusEnum =
246
+ 'connected' |
247
+ 'disconnected' |
248
+ 'disconnecting';
249
+ }
223
250
 
package/model/models.ts CHANGED
@@ -2,6 +2,7 @@ import localVarRequest from 'request';
2
2
  import * as jwt from 'jsonwebtoken';
3
3
 
4
4
 
5
+ export * from './abandonDashboardRequest';
5
6
  export * from './acceptedQuote';
6
7
  export * from './accountEntity';
7
8
  export * from './addLinkedWalletRequest';
@@ -42,9 +43,9 @@ export * from './getLazyOracleReportCallData200ResponseDestructuredCalldata';
42
43
  export * from './getLazyOracleReportData200Response';
43
44
  export * from './getLazyOracleReportData200ResponseReportData';
44
45
  export * from './getLidoTransactions200Response';
46
+ export * from './getOperatorGroup200Response';
45
47
  export * from './getQuarantineInfo200Response';
46
48
  export * from './getStETHPerWstETHRate200Response';
47
- export * from './getWithdrawalsResponse';
48
49
  export * from './grantRole';
49
50
  export * from './internalTransaction';
50
51
  export * from './inviteMemberRequest';
@@ -110,7 +111,6 @@ export * from './validatorRewardsDaily';
110
111
  export * from './validatorRewardsDailyResponse';
111
112
  export * from './validatorRewardsRaw';
112
113
  export * from './validatorType';
113
- export * from './validatorWithdrawal';
114
114
  export * from './vaultCreationStartResponse';
115
115
  export * from './wallet';
116
116
  export * from './webHookLookupAnswer';
@@ -152,6 +152,9 @@ export interface RequestDetailedFile {
152
152
  export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
153
153
 
154
154
 
155
+ import { AbandonDashboardRequest } from './abandonDashboardRequest';
156
+
157
+
155
158
  import { AcceptedQuote } from './acceptedQuote';
156
159
 
157
160
 
@@ -272,13 +275,13 @@ import { GetLazyOracleReportData200ResponseReportData } from './getLazyOracleRep
272
275
  import { GetLidoTransactions200Response } from './getLidoTransactions200Response';
273
276
 
274
277
 
275
- import { GetQuarantineInfo200Response } from './getQuarantineInfo200Response';
278
+ import { GetOperatorGroup200Response } from './getOperatorGroup200Response';
276
279
 
277
280
 
278
- import { GetStETHPerWstETHRate200Response } from './getStETHPerWstETHRate200Response';
281
+ import { GetQuarantineInfo200Response } from './getQuarantineInfo200Response';
279
282
 
280
283
 
281
- import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
284
+ import { GetStETHPerWstETHRate200Response } from './getStETHPerWstETHRate200Response';
282
285
 
283
286
 
284
287
  import { GrantRole } from './grantRole';
@@ -476,9 +479,6 @@ import { ValidatorRewardsRaw } from './validatorRewardsRaw';
476
479
  import { ValidatorType } from './validatorType';
477
480
 
478
481
 
479
- import { ValidatorWithdrawal } from './validatorWithdrawal';
480
-
481
-
482
482
  import { VaultCreationStartResponse } from './vaultCreationStartResponse';
483
483
 
484
484
 
@@ -577,6 +577,7 @@ let enumsMap: {[index: string]: any} = {
577
577
  "ApiKey.roles": ApiKey,
578
578
  "GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
579
579
  "InviteMemberRequest.role": InviteMemberRequest,
580
+ "LidoStakingContractsWithDataVaultData.vaultHubConnectionStatus": LidoStakingContractsWithDataVaultData,
580
581
  "OrganizationMember.role": OrganizationMember,
581
582
  "RFQDocumentFacilitator.status": RFQDocumentFacilitator,
582
583
  "UpdateMemberRoleRequest.role": UpdateMemberRoleRequest,
@@ -584,10 +585,9 @@ let enumsMap: {[index: string]: any} = {
584
585
  "ValidatorInfo.status": ValidatorInfo,
585
586
  "ValidatorRewardRaw.rewardType": ValidatorRewardRaw,
586
587
  "ValidatorRewardsDaily.rewardType": ValidatorRewardsDaily,
587
- "ValidatorWithdrawal.asset": ValidatorWithdrawal,
588
- "ValidatorWithdrawal.withdrawalType": ValidatorWithdrawal,
589
588
  };
590
589
  let typeMap: {[index: string]: any} = {
590
+ "AbandonDashboardRequest": AbandonDashboardRequest,
591
591
  "AcceptedQuote": AcceptedQuote,
592
592
  "AccountEntity": AccountEntity,
593
593
  "AddLinkedWalletRequest": AddLinkedWalletRequest,
@@ -627,9 +627,9 @@ let typeMap: {[index: string]: any} = {
627
627
  "GetLazyOracleReportData200Response": GetLazyOracleReportData200Response,
628
628
  "GetLazyOracleReportData200ResponseReportData": GetLazyOracleReportData200ResponseReportData,
629
629
  "GetLidoTransactions200Response": GetLidoTransactions200Response,
630
+ "GetOperatorGroup200Response": GetOperatorGroup200Response,
630
631
  "GetQuarantineInfo200Response": GetQuarantineInfo200Response,
631
632
  "GetStETHPerWstETHRate200Response": GetStETHPerWstETHRate200Response,
632
- "GetWithdrawalsResponse": GetWithdrawalsResponse,
633
633
  "GrantRole": GrantRole,
634
634
  "InternalTransaction": InternalTransaction,
635
635
  "InviteMemberRequest": InviteMemberRequest,
@@ -686,7 +686,6 @@ let typeMap: {[index: string]: any} = {
686
686
  "ValidatorRewardsDaily": ValidatorRewardsDaily,
687
687
  "ValidatorRewardsDailyResponse": ValidatorRewardsDailyResponse,
688
688
  "ValidatorRewardsRaw": ValidatorRewardsRaw,
689
- "ValidatorWithdrawal": ValidatorWithdrawal,
690
689
  "VaultCreationStartResponse": VaultCreationStartResponse,
691
690
  "Wallet": Wallet,
692
691
  "WebHookLookupAnswer": WebHookLookupAnswer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
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.3",
24
+ "@types/node": "^25.5.0",
25
25
  "typescript": "^5.9.3"
26
26
  }
27
27
  }
@@ -1,78 +0,0 @@
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.ValidatorWithdrawal = void 0;
15
- class ValidatorWithdrawal {
16
- static getAttributeTypeMap() {
17
- return ValidatorWithdrawal.attributeTypeMap;
18
- }
19
- }
20
- exports.ValidatorWithdrawal = ValidatorWithdrawal;
21
- ValidatorWithdrawal.discriminator = undefined;
22
- ValidatorWithdrawal.attributeTypeMap = [
23
- {
24
- "name": "asset",
25
- "baseName": "asset",
26
- "type": "ValidatorWithdrawal.assetEnum"
27
- },
28
- {
29
- "name": "validatorPublicKey",
30
- "baseName": "validatorPublicKey",
31
- "type": "string"
32
- },
33
- {
34
- "name": "validatorIndex",
35
- "baseName": "validatorIndex",
36
- "type": "number"
37
- },
38
- {
39
- "name": "epoch",
40
- "baseName": "epoch",
41
- "type": "number"
42
- },
43
- {
44
- "name": "slot",
45
- "baseName": "slot",
46
- "type": "number"
47
- },
48
- {
49
- "name": "withdrawalTime",
50
- "baseName": "withdrawalTime",
51
- "type": "Date"
52
- },
53
- {
54
- "name": "withdrawalIndex",
55
- "baseName": "withdrawalIndex",
56
- "type": "number"
57
- },
58
- {
59
- "name": "withdrawalAddress",
60
- "baseName": "withdrawalAddress",
61
- "type": "string"
62
- },
63
- {
64
- "name": "amount",
65
- "baseName": "amount",
66
- "type": "string"
67
- },
68
- {
69
- "name": "amountInUSD",
70
- "baseName": "amountInUSD",
71
- "type": "string"
72
- },
73
- {
74
- "name": "withdrawalType",
75
- "baseName": "withdrawalType",
76
- "type": "ValidatorWithdrawal.withdrawalTypeEnum"
77
- }
78
- ];
@@ -1,107 +0,0 @@
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 ValidatorWithdrawal {
15
- 'asset': ValidatorWithdrawal.assetEnum;
16
- 'validatorPublicKey': string;
17
- 'validatorIndex': number;
18
- 'epoch': number;
19
- 'slot': number;
20
- 'withdrawalTime': Date;
21
- 'withdrawalIndex': number;
22
- 'withdrawalAddress': string;
23
- 'amount': string;
24
- /**
25
- * Withdrawal amount in USD
26
- */
27
- 'amountInUSD'?: string;
28
- 'withdrawalType': ValidatorWithdrawal.withdrawalTypeEnum;
29
-
30
- static discriminator: string | undefined = undefined;
31
-
32
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
- {
34
- "name": "asset",
35
- "baseName": "asset",
36
- "type": "ValidatorWithdrawal.assetEnum"
37
- },
38
- {
39
- "name": "validatorPublicKey",
40
- "baseName": "validatorPublicKey",
41
- "type": "string"
42
- },
43
- {
44
- "name": "validatorIndex",
45
- "baseName": "validatorIndex",
46
- "type": "number"
47
- },
48
- {
49
- "name": "epoch",
50
- "baseName": "epoch",
51
- "type": "number"
52
- },
53
- {
54
- "name": "slot",
55
- "baseName": "slot",
56
- "type": "number"
57
- },
58
- {
59
- "name": "withdrawalTime",
60
- "baseName": "withdrawalTime",
61
- "type": "Date"
62
- },
63
- {
64
- "name": "withdrawalIndex",
65
- "baseName": "withdrawalIndex",
66
- "type": "number"
67
- },
68
- {
69
- "name": "withdrawalAddress",
70
- "baseName": "withdrawalAddress",
71
- "type": "string"
72
- },
73
- {
74
- "name": "amount",
75
- "baseName": "amount",
76
- "type": "string"
77
- },
78
- {
79
- "name": "amountInUSD",
80
- "baseName": "amountInUSD",
81
- "type": "string"
82
- },
83
- {
84
- "name": "withdrawalType",
85
- "baseName": "withdrawalType",
86
- "type": "ValidatorWithdrawal.withdrawalTypeEnum"
87
- } ];
88
-
89
- static getAttributeTypeMap() {
90
- return ValidatorWithdrawal.attributeTypeMap;
91
- }
92
- }
93
-
94
- export namespace ValidatorWithdrawal {
95
- /**
96
- *
97
- */
98
- export type assetEnum =
99
- 'ETH';
100
- /**
101
- *
102
- */
103
- export type withdrawalTypeEnum =
104
- 'full' |
105
- 'partial';
106
- }
107
-