@northstake/northstakeapi 1.0.33 → 1.0.35

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.
@@ -45,6 +45,7 @@ export interface ValidatorsApiParams {
45
45
  page?: number;
46
46
  limit?: number;
47
47
  validatorIndices?: string;
48
+ withdrawalType?: 'full' | 'partial';
48
49
  }
49
50
 
50
51
  export class ValidatorsApi {
@@ -207,6 +208,7 @@ export class ValidatorsApi {
207
208
  * @param page Withdrawal list page number
208
209
  * @param limit Number of withdrawals to return per page
209
210
  * @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
211
+ * @param withdrawalType
210
212
  */
211
213
 
212
214
 
@@ -246,6 +248,9 @@ export class ValidatorsApi {
246
248
  if (params?.validatorIndices !== undefined) {
247
249
  localVarQueryParameters['validator_indices'] = ObjectSerializer.serialize(params?.validatorIndices, "string");
248
250
  }
251
+ if (params?.withdrawalType !== undefined) {
252
+ localVarQueryParameters['withdrawal_type'] = ObjectSerializer.serialize(params?.withdrawalType, "'full' | 'partial'");
253
+ }
249
254
 
250
255
 
251
256
 
@@ -25,6 +25,7 @@ export interface ValidatorsApiParams {
25
25
  page?: number;
26
26
  limit?: number;
27
27
  validatorIndices?: string;
28
+ withdrawalType?: 'full' | 'partial';
28
29
  }
29
30
  export declare class ValidatorsApi {
30
31
  protected _basePath: string;
@@ -68,6 +69,7 @@ export declare class ValidatorsApi {
68
69
  * @param page Withdrawal list page number
69
70
  * @param limit Number of withdrawals to return per page
70
71
  * @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
72
+ * @param withdrawalType
71
73
  */
72
74
  getValidatorWithdrawals(params?: ValidatorsApiParams, options?: {
73
75
  headers: {
@@ -154,6 +154,7 @@ class ValidatorsApi {
154
154
  * @param page Withdrawal list page number
155
155
  * @param limit Number of withdrawals to return per page
156
156
  * @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
157
+ * @param withdrawalType
157
158
  */
158
159
  async getValidatorWithdrawals(params, options = { headers: {} }) {
159
160
  const localVarPath = this.basePath + '/validators/withdrawals';
@@ -182,6 +183,9 @@ class ValidatorsApi {
182
183
  if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
183
184
  localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
184
185
  }
186
+ if ((params === null || params === void 0 ? void 0 : params.withdrawalType) !== undefined) {
187
+ localVarQueryParameters['withdrawal_type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.withdrawalType, "'full' | 'partial'");
188
+ }
185
189
  Object.assign(localVarHeaderParams, options.headers);
186
190
  let localVarUseFormData = false;
187
191
  let localVarRequestOptions = {
@@ -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
  ];
@@ -218,6 +218,7 @@ let enumsMap = {
218
218
  "ValidatorInfo.asset": validatorInfo_1.ValidatorInfo,
219
219
  "ValidatorInfo.status": validatorInfo_1.ValidatorInfo,
220
220
  "ValidatorWithdrawal.asset": validatorWithdrawal_1.ValidatorWithdrawal,
221
+ "ValidatorWithdrawal.withdrawalType": validatorWithdrawal_1.ValidatorWithdrawal,
221
222
  };
222
223
  let typeMap = {
223
224
  "AcceptedQuote": acceptedQuote_1.AcceptedQuote,
@@ -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;
@@ -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;
@@ -19,6 +19,7 @@ export declare class ValidatorWithdrawal {
19
19
  'withdrawal_index': number;
20
20
  'withdrawal_address': string;
21
21
  'amount': string;
22
+ 'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
22
23
  static discriminator: string | undefined;
23
24
  static attributeTypeMap: Array<{
24
25
  name: string;
@@ -36,4 +37,8 @@ export declare namespace ValidatorWithdrawal {
36
37
  *
37
38
  */
38
39
  type assetEnum = 'ETH';
40
+ /**
41
+ *
42
+ */
43
+ type withdrawalTypeEnum = 'full' | 'partial';
39
44
  }
@@ -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",
@@ -64,5 +64,10 @@ ValidatorWithdrawal.attributeTypeMap = [
64
64
  "name": "amount",
65
65
  "baseName": "amount",
66
66
  "type": "string"
67
+ },
68
+ {
69
+ "name": "withdrawal_type",
70
+ "baseName": "withdrawal_type",
71
+ "type": "ValidatorWithdrawal.withdrawalTypeEnum"
67
72
  }
68
73
  ];
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() {
package/model/models.ts CHANGED
@@ -375,6 +375,7 @@ let enumsMap: {[index: string]: any} = {
375
375
  "ValidatorInfo.asset": ValidatorInfo,
376
376
  "ValidatorInfo.status": ValidatorInfo,
377
377
  "ValidatorWithdrawal.asset": ValidatorWithdrawal,
378
+ "ValidatorWithdrawal.withdrawalType": ValidatorWithdrawal,
378
379
  };
379
380
  let typeMap: {[index: string]: any} = {
380
381
  "AcceptedQuote": AcceptedQuote,
@@ -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",
@@ -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;
@@ -21,6 +21,7 @@ export class ValidatorWithdrawal {
21
21
  'withdrawal_index': number;
22
22
  'withdrawal_address': string;
23
23
  'amount': string;
24
+ 'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
24
25
 
25
26
  static discriminator: string | undefined = undefined;
26
27
 
@@ -28,7 +29,7 @@ export class ValidatorWithdrawal {
28
29
  {
29
30
  "name": "asset",
30
31
  "baseName": "asset",
31
- "type": "ValidatorWithdrawal.AssetEnum"
32
+ "type": "ValidatorWithdrawal.assetEnum"
32
33
  },
33
34
  {
34
35
  "name": "validator_public_key",
@@ -69,6 +70,11 @@ export class ValidatorWithdrawal {
69
70
  "name": "amount",
70
71
  "baseName": "amount",
71
72
  "type": "string"
73
+ },
74
+ {
75
+ "name": "withdrawal_type",
76
+ "baseName": "withdrawal_type",
77
+ "type": "ValidatorWithdrawal.withdrawalTypeEnum"
72
78
  } ];
73
79
 
74
80
  static getAttributeTypeMap() {
@@ -82,5 +88,11 @@ export namespace ValidatorWithdrawal {
82
88
  */
83
89
  export type assetEnum =
84
90
  'ETH';
91
+ /**
92
+ *
93
+ */
94
+ export type withdrawalTypeEnum =
95
+ 'full' |
96
+ 'partial';
85
97
  }
86
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
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.12.0",
24
+ "@types/node": "^22.13.1",
25
25
  "typescript": "^5.7.3"
26
26
  }
27
27
  }