@northstake/northstakeapi 1.0.21 → 1.0.23

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 (57) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/apis.ts +3 -1
  4. package/api/managedUsersValidatorsApi.ts +116 -0
  5. package/api/validatorMarketplaceFacilitatorApi.ts +360 -0
  6. package/api/validatorsApi.ts +109 -0
  7. package/api.ts +12 -0
  8. package/dist/api/apis.d.ts +3 -1
  9. package/dist/api/apis.js +3 -1
  10. package/dist/api/managedUsersValidatorsApi.d.ts +27 -0
  11. package/dist/api/managedUsersValidatorsApi.js +87 -0
  12. package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +80 -0
  13. package/dist/api/validatorMarketplaceFacilitatorApi.js +280 -0
  14. package/dist/api/validatorsApi.d.ts +25 -0
  15. package/dist/api/validatorsApi.js +81 -0
  16. package/dist/api.d.ts +10 -0
  17. package/dist/api.js +11 -0
  18. package/dist/model/getMarketplaceMetadata200Response.d.ts +36 -0
  19. package/dist/model/getMarketplaceMetadata200Response.js +38 -0
  20. package/dist/model/getWithdrawalsResponse.d.ts +38 -0
  21. package/dist/model/getWithdrawalsResponse.js +43 -0
  22. package/dist/model/listAllRFQsForFacilitator200Response.d.ts +38 -0
  23. package/dist/model/listAllRFQsForFacilitator200Response.js +43 -0
  24. package/dist/model/models.d.ts +8 -0
  25. package/dist/model/models.js +24 -0
  26. package/dist/model/rFQBidFacilitator.d.ts +27 -0
  27. package/dist/model/rFQBidFacilitator.js +38 -0
  28. package/dist/model/rFQDocumentBase.d.ts +1 -0
  29. package/dist/model/rFQDocumentBase.js +5 -0
  30. package/dist/model/rFQDocumentBuyer.d.ts +1 -0
  31. package/dist/model/rFQDocumentBuyer.js +5 -0
  32. package/dist/model/rFQDocumentFacilitator.d.ts +38 -0
  33. package/dist/model/rFQDocumentFacilitator.js +53 -0
  34. package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +12 -0
  35. package/dist/model/rFQDocumentFacilitatorStatusFilter.js +13 -0
  36. package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +27 -0
  37. package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +38 -0
  38. package/dist/model/rFQDocumentSeller.d.ts +2 -0
  39. package/dist/model/rFQDocumentSeller.js +10 -0
  40. package/dist/model/validatorWithdrawal.d.ts +38 -0
  41. package/dist/model/validatorWithdrawal.js +63 -0
  42. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +1 -0
  43. package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +5 -0
  44. package/model/getMarketplaceMetadata200Response.ts +52 -0
  45. package/model/getWithdrawalsResponse.ts +59 -0
  46. package/model/listAllRFQsForFacilitator200Response.ts +59 -0
  47. package/model/models.ts +41 -0
  48. package/model/rFQBidFacilitator.ts +43 -0
  49. package/model/rFQDocumentBase.ts +6 -0
  50. package/model/rFQDocumentBuyer.ts +6 -0
  51. package/model/rFQDocumentFacilitator.ts +74 -0
  52. package/model/rFQDocumentFacilitatorStatusFilter.ts +18 -0
  53. package/model/rFQDocumentFacilitatorValidatorsInner.ts +43 -0
  54. package/model/rFQDocumentSeller.ts +12 -0
  55. package/model/validatorWithdrawal.ts +80 -0
  56. package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +6 -0
  57. package/package.json +3 -3
package/model/models.ts CHANGED
@@ -26,7 +26,10 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
26
26
  export * from './exitEstimateBase';
27
27
  export * from './exitEstimateSeller';
28
28
  export * from './exitProposal';
29
+ export * from './getMarketplaceMetadata200Response';
29
30
  export * from './getTransactionsResponse';
31
+ export * from './getWithdrawalsResponse';
32
+ export * from './listAllRFQsForFacilitator200Response';
30
33
  export * from './managedUser';
31
34
  export * from './managedUserDetails';
32
35
  export * from './order';
@@ -37,12 +40,16 @@ export * from './orderUpdatePayload';
37
40
  export * from './portfolioEntity';
38
41
  export * from './provideEscrowHashForRFQDocumentRequest';
39
42
  export * from './quote';
43
+ export * from './rFQBidFacilitator';
40
44
  export * from './rFQBids';
41
45
  export * from './rFQDocumentBase';
42
46
  export * from './rFQDocumentBaseUniqueEscrowVault';
43
47
  export * from './rFQDocumentBuyer';
44
48
  export * from './rFQDocumentBuyerAllOfValidators';
45
49
  export * from './rFQDocumentBuyerStatusFilter';
50
+ export * from './rFQDocumentFacilitator';
51
+ export * from './rFQDocumentFacilitatorStatusFilter';
52
+ export * from './rFQDocumentFacilitatorValidatorsInner';
46
53
  export * from './rFQDocumentSeller';
47
54
  export * from './rFQDocumentSellerAllOfValidators';
48
55
  export * from './rFQDocumentSellerStatusFilter';
@@ -66,6 +73,7 @@ export * from './unstakeStepType';
66
73
  export * from './validatorInfo';
67
74
  export * from './validatorKeyHolder';
68
75
  export * from './validatorType';
76
+ export * from './validatorWithdrawal';
69
77
  export * from './wallet';
70
78
  export * from './webHookLookupAnswer';
71
79
  export * from './webhookPayload';
@@ -179,9 +187,18 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
179
187
  import { ExitProposal } from './exitProposal';
180
188
 
181
189
 
190
+ import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
191
+
192
+
182
193
  import { GetTransactionsResponse } from './getTransactionsResponse';
183
194
 
184
195
 
196
+ import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
197
+
198
+
199
+ import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
200
+
201
+
185
202
  import { ManagedUser } from './managedUser';
186
203
 
187
204
 
@@ -212,6 +229,9 @@ import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRF
212
229
  import { Quote } from './quote';
213
230
 
214
231
 
232
+ import { RFQBidFacilitator } from './rFQBidFacilitator';
233
+
234
+
215
235
  import { RFQBids } from './rFQBids';
216
236
 
217
237
 
@@ -230,6 +250,15 @@ import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidato
230
250
  import { RFQDocumentBuyerStatusFilter } from './rFQDocumentBuyerStatusFilter';
231
251
 
232
252
 
253
+ import { RFQDocumentFacilitator } from './rFQDocumentFacilitator';
254
+
255
+
256
+ import { RFQDocumentFacilitatorStatusFilter } from './rFQDocumentFacilitatorStatusFilter';
257
+
258
+
259
+ import { RFQDocumentFacilitatorValidatorsInner } from './rFQDocumentFacilitatorValidatorsInner';
260
+
261
+
233
262
  import { RFQDocumentSeller } from './rFQDocumentSeller';
234
263
 
235
264
 
@@ -299,6 +328,9 @@ import { ValidatorKeyHolder } from './validatorKeyHolder';
299
328
  import { ValidatorType } from './validatorType';
300
329
 
301
330
 
331
+ import { ValidatorWithdrawal } from './validatorWithdrawal';
332
+
333
+
302
334
  import { Wallet } from './wallet';
303
335
 
304
336
 
@@ -395,8 +427,10 @@ let primitives = [
395
427
  let enumsMap: {[index: string]: any} = {
396
428
  "OrderDocument.type": OrderDocument,
397
429
  "OrderDocument.status": OrderDocument,
430
+ "RFQDocumentFacilitator.status": RFQDocumentFacilitator,
398
431
  "ValidatorInfo.asset": ValidatorInfo,
399
432
  "ValidatorInfo.status": ValidatorInfo,
433
+ "ValidatorWithdrawal.asset": ValidatorWithdrawal,
400
434
  };
401
435
  let typeMap: {[index: string]: any} = {
402
436
  "AcceptedQuote": AcceptedQuote,
@@ -422,7 +456,10 @@ let typeMap: {[index: string]: any} = {
422
456
  "ExitEstimateBase": ExitEstimateBase,
423
457
  "ExitEstimateSeller": ExitEstimateSeller,
424
458
  "ExitProposal": ExitProposal,
459
+ "GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
425
460
  "GetTransactionsResponse": GetTransactionsResponse,
461
+ "GetWithdrawalsResponse": GetWithdrawalsResponse,
462
+ "ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
426
463
  "ManagedUser": ManagedUser,
427
464
  "ManagedUserDetails": ManagedUserDetails,
428
465
  "Order": Order,
@@ -432,11 +469,14 @@ let typeMap: {[index: string]: any} = {
432
469
  "PortfolioEntity": PortfolioEntity,
433
470
  "ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
434
471
  "Quote": Quote,
472
+ "RFQBidFacilitator": RFQBidFacilitator,
435
473
  "RFQBids": RFQBids,
436
474
  "RFQDocumentBase": RFQDocumentBase,
437
475
  "RFQDocumentBaseUniqueEscrowVault": RFQDocumentBaseUniqueEscrowVault,
438
476
  "RFQDocumentBuyer": RFQDocumentBuyer,
439
477
  "RFQDocumentBuyerAllOfValidators": RFQDocumentBuyerAllOfValidators,
478
+ "RFQDocumentFacilitator": RFQDocumentFacilitator,
479
+ "RFQDocumentFacilitatorValidatorsInner": RFQDocumentFacilitatorValidatorsInner,
440
480
  "RFQDocumentSeller": RFQDocumentSeller,
441
481
  "RFQDocumentSellerAllOfValidators": RFQDocumentSellerAllOfValidators,
442
482
  "RFQDocumentUpdate": RFQDocumentUpdate,
@@ -452,6 +492,7 @@ let typeMap: {[index: string]: any} = {
452
492
  "UnstakeStep": UnstakeStep,
453
493
  "UnstakeStepElement": UnstakeStepElement,
454
494
  "ValidatorInfo": ValidatorInfo,
495
+ "ValidatorWithdrawal": ValidatorWithdrawal,
455
496
  "Wallet": Wallet,
456
497
  "WebHookLookupAnswer": WebHookLookupAnswer,
457
498
  "WebhookPayload": WebhookPayload,
@@ -0,0 +1,43 @@
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 RFQBidFacilitator {
15
+ 'quote_id': string;
16
+ 'quote': number;
17
+ 'timestamp': Date;
18
+
19
+ static discriminator: string | undefined = undefined;
20
+
21
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
+ {
23
+ "name": "quote_id",
24
+ "baseName": "quote_id",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "quote",
29
+ "baseName": "quote",
30
+ "type": "number"
31
+ },
32
+ {
33
+ "name": "timestamp",
34
+ "baseName": "timestamp",
35
+ "type": "Date"
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return RFQBidFacilitator.attributeTypeMap;
40
+ }
41
+ }
42
+
43
+
@@ -22,6 +22,7 @@ export class RFQDocumentBase {
22
22
  'estimated_all_validators_exited_at': Date;
23
23
  'unique_escrow_vault'?: RFQDocumentBaseUniqueEscrowVault;
24
24
  'settlement_steps'?: SettlementSteps;
25
+ 'smart_contract'?: string;
25
26
 
26
27
  static discriminator: string | undefined = undefined;
27
28
 
@@ -60,6 +61,11 @@ export class RFQDocumentBase {
60
61
  "name": "settlement_steps",
61
62
  "baseName": "settlement_steps",
62
63
  "type": "SettlementSteps"
64
+ },
65
+ {
66
+ "name": "smart_contract",
67
+ "baseName": "smart_contract",
68
+ "type": "string"
63
69
  } ];
64
70
 
65
71
  static getAttributeTypeMap() {
@@ -24,6 +24,7 @@ export class RFQDocumentBuyer {
24
24
  'estimated_all_validators_exited_at': Date;
25
25
  'unique_escrow_vault'?: RFQDocumentBaseUniqueEscrowVault;
26
26
  'settlement_steps'?: SettlementSteps;
27
+ 'smart_contract'?: string;
27
28
  'validators': Array<RFQDocumentBuyerAllOfValidators>;
28
29
  'quote'?: Quote;
29
30
 
@@ -65,6 +66,11 @@ export class RFQDocumentBuyer {
65
66
  "baseName": "settlement_steps",
66
67
  "type": "SettlementSteps"
67
68
  },
69
+ {
70
+ "name": "smart_contract",
71
+ "baseName": "smart_contract",
72
+ "type": "string"
73
+ },
68
74
  {
69
75
  "name": "validators",
70
76
  "baseName": "validators",
@@ -0,0 +1,74 @@
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
+ import { Quote } from './quote';
14
+ import { RFQDocumentFacilitatorValidatorsInner } from './rFQDocumentFacilitatorValidatorsInner';
15
+
16
+ export class RFQDocumentFacilitator {
17
+ 'id': string;
18
+ 'status': RFQDocumentFacilitator;
19
+ 'total_balance': number;
20
+ 'payment_address': string;
21
+ 'validators': Array<RFQDocumentFacilitatorValidatorsInner>;
22
+ 'quotes'?: Array<Quote>;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "id",
29
+ "baseName": "id",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "status",
34
+ "baseName": "status",
35
+ "type": "RFQDocumentFacilitator.StatusEnum"
36
+ },
37
+ {
38
+ "name": "total_balance",
39
+ "baseName": "total_balance",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "payment_address",
44
+ "baseName": "payment_address",
45
+ "type": "string"
46
+ },
47
+ {
48
+ "name": "validators",
49
+ "baseName": "validators",
50
+ "type": "Array<RFQDocumentFacilitatorValidatorsInner>"
51
+ },
52
+ {
53
+ "name": "quotes",
54
+ "baseName": "quotes",
55
+ "type": "Array<Quote>"
56
+ } ];
57
+
58
+ static getAttributeTypeMap() {
59
+ return RFQDocumentFacilitator.attributeTypeMap;
60
+ }
61
+ }
62
+
63
+ export namespace RFQDocumentFacilitator {
64
+ /**
65
+ *
66
+ */
67
+ export type statusEnum =
68
+ 'active' |
69
+ 'expired' |
70
+ 'rejected' |
71
+ 'finished' |
72
+ 'failed';
73
+ }
74
+
@@ -0,0 +1,18 @@
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 type RFQDocumentFacilitatorStatusFilter =
15
+ 'active' |
16
+ 'expired' |
17
+ 'finished';
18
+
@@ -0,0 +1,43 @@
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 RFQDocumentFacilitatorValidatorsInner {
15
+ 'validator_index'?: number;
16
+ 'balance'?: number;
17
+ 'exit_estimate'?: Date;
18
+
19
+ static discriminator: string | undefined = undefined;
20
+
21
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
+ {
23
+ "name": "validator_index",
24
+ "baseName": "validator_index",
25
+ "type": "number"
26
+ },
27
+ {
28
+ "name": "balance",
29
+ "baseName": "balance",
30
+ "type": "number"
31
+ },
32
+ {
33
+ "name": "exit_estimate",
34
+ "baseName": "exit_estimate",
35
+ "type": "Date"
36
+ } ];
37
+
38
+ static getAttributeTypeMap() {
39
+ return RFQDocumentFacilitatorValidatorsInner.attributeTypeMap;
40
+ }
41
+ }
42
+
43
+
@@ -24,9 +24,11 @@ export class RFQDocumentSeller {
24
24
  'estimated_all_validators_exited_at': Date;
25
25
  'unique_escrow_vault'?: RFQDocumentBaseUniqueEscrowVault;
26
26
  'settlement_steps'?: SettlementSteps;
27
+ 'smart_contract'?: string;
27
28
  'validators': Array<RFQDocumentSellerAllOfValidators>;
28
29
  'estimated_exit_transaction_deadline': Date;
29
30
  'best_quote'?: Quote;
31
+ 'quotes'?: Array<Quote>;
30
32
 
31
33
  static discriminator: string | undefined = undefined;
32
34
 
@@ -66,6 +68,11 @@ export class RFQDocumentSeller {
66
68
  "baseName": "settlement_steps",
67
69
  "type": "SettlementSteps"
68
70
  },
71
+ {
72
+ "name": "smart_contract",
73
+ "baseName": "smart_contract",
74
+ "type": "string"
75
+ },
69
76
  {
70
77
  "name": "validators",
71
78
  "baseName": "validators",
@@ -80,6 +87,11 @@ export class RFQDocumentSeller {
80
87
  "name": "best_quote",
81
88
  "baseName": "best_quote",
82
89
  "type": "Quote"
90
+ },
91
+ {
92
+ "name": "quotes",
93
+ "baseName": "quotes",
94
+ "type": "Array<Quote>"
83
95
  } ];
84
96
 
85
97
  static getAttributeTypeMap() {
@@ -0,0 +1,80 @@
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 ValidatorWithdrawal {
15
+ 'asset': ValidatorWithdrawal;
16
+ 'validator_public_key': string;
17
+ 'validator_index': number;
18
+ 'epoch': number;
19
+ 'slot': number;
20
+ 'withdrawal_time': Date;
21
+ 'withdrawal_index': number;
22
+ 'withdrawal_address': string;
23
+
24
+ static discriminator: string | undefined = undefined;
25
+
26
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27
+ {
28
+ "name": "asset",
29
+ "baseName": "asset",
30
+ "type": "ValidatorWithdrawal.AssetEnum"
31
+ },
32
+ {
33
+ "name": "validator_public_key",
34
+ "baseName": "validator_public_key",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "validator_index",
39
+ "baseName": "validator_index",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "epoch",
44
+ "baseName": "epoch",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "slot",
49
+ "baseName": "slot",
50
+ "type": "number"
51
+ },
52
+ {
53
+ "name": "withdrawal_time",
54
+ "baseName": "withdrawal_time",
55
+ "type": "Date"
56
+ },
57
+ {
58
+ "name": "withdrawal_index",
59
+ "baseName": "withdrawal_index",
60
+ "type": "number"
61
+ },
62
+ {
63
+ "name": "withdrawal_address",
64
+ "baseName": "withdrawal_address",
65
+ "type": "string"
66
+ } ];
67
+
68
+ static getAttributeTypeMap() {
69
+ return ValidatorWithdrawal.attributeTypeMap;
70
+ }
71
+ }
72
+
73
+ export namespace ValidatorWithdrawal {
74
+ /**
75
+ *
76
+ */
77
+ export type assetEnum =
78
+ 'ETH';
79
+ }
80
+
@@ -12,6 +12,7 @@
12
12
 
13
13
 
14
14
  export class WebhookPayloadRFQWithdrawalClaimableDetails {
15
+ 'smart_contract'?: string;
15
16
  'validator_index'?: number;
16
17
  'amount'?: number;
17
18
  'timestamp'?: Date;
@@ -21,6 +22,11 @@ export class WebhookPayloadRFQWithdrawalClaimableDetails {
21
22
  static discriminator: string | undefined = undefined;
22
23
 
23
24
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25
+ {
26
+ "name": "smart_contract",
27
+ "baseName": "smart_contract",
28
+ "type": "string"
29
+ },
24
30
  {
25
31
  "name": "validator_index",
26
32
  "baseName": "validator_index",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
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.5.4",
25
- "typescript": "^5.6.2"
24
+ "@types/node": "^22.8.7",
25
+ "typescript": "^5.6.3"
26
26
  }
27
27
  }