@northstake/northstakeapi 1.0.22 → 1.0.24

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 +12 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/accountApiKeysApi.ts +346 -0
  4. package/api/apis.ts +5 -1
  5. package/api/managedUsersValidatorsApi.ts +116 -0
  6. package/api/validatorMarketplaceFacilitatorApi.ts +360 -0
  7. package/api/validatorsApi.ts +109 -0
  8. package/api.ts +18 -0
  9. package/dist/api/accountApiKeysApi.d.ts +77 -0
  10. package/dist/api/accountApiKeysApi.js +266 -0
  11. package/dist/api/apis.d.ts +5 -1
  12. package/dist/api/apis.js +5 -1
  13. package/dist/api/managedUsersValidatorsApi.d.ts +27 -0
  14. package/dist/api/managedUsersValidatorsApi.js +87 -0
  15. package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +80 -0
  16. package/dist/api/validatorMarketplaceFacilitatorApi.js +280 -0
  17. package/dist/api/validatorsApi.d.ts +25 -0
  18. package/dist/api/validatorsApi.js +81 -0
  19. package/dist/api.d.ts +14 -0
  20. package/dist/api.js +16 -0
  21. package/dist/model/apiKey.d.ts +54 -0
  22. package/dist/model/apiKey.js +53 -0
  23. package/dist/model/generateApiKeyRequest.d.ts +43 -0
  24. package/dist/model/generateApiKeyRequest.js +43 -0
  25. package/dist/model/getMarketplaceMetadata200Response.d.ts +36 -0
  26. package/dist/model/getMarketplaceMetadata200Response.js +38 -0
  27. package/dist/model/getWithdrawalsResponse.d.ts +38 -0
  28. package/dist/model/getWithdrawalsResponse.js +43 -0
  29. package/dist/model/listAllRFQsForFacilitator200Response.d.ts +38 -0
  30. package/dist/model/listAllRFQsForFacilitator200Response.js +43 -0
  31. package/dist/model/models.d.ts +10 -0
  32. package/dist/model/models.js +32 -0
  33. package/dist/model/rFQBidFacilitator.d.ts +27 -0
  34. package/dist/model/rFQBidFacilitator.js +38 -0
  35. package/dist/model/rFQDocumentFacilitator.d.ts +38 -0
  36. package/dist/model/rFQDocumentFacilitator.js +53 -0
  37. package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +12 -0
  38. package/dist/model/rFQDocumentFacilitatorStatusFilter.js +13 -0
  39. package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +27 -0
  40. package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +38 -0
  41. package/dist/model/rFQDocumentSeller.d.ts +1 -0
  42. package/dist/model/rFQDocumentSeller.js +5 -0
  43. package/dist/model/validatorWithdrawal.d.ts +39 -0
  44. package/dist/model/validatorWithdrawal.js +68 -0
  45. package/model/apiKey.ts +88 -0
  46. package/model/generateApiKeyRequest.ts +66 -0
  47. package/model/getMarketplaceMetadata200Response.ts +52 -0
  48. package/model/getWithdrawalsResponse.ts +59 -0
  49. package/model/listAllRFQsForFacilitator200Response.ts +59 -0
  50. package/model/models.ts +53 -0
  51. package/model/rFQBidFacilitator.ts +43 -0
  52. package/model/rFQDocumentFacilitator.ts +74 -0
  53. package/model/rFQDocumentFacilitatorStatusFilter.ts +18 -0
  54. package/model/rFQDocumentFacilitatorValidatorsInner.ts +43 -0
  55. package/model/rFQDocumentSeller.ts +6 -0
  56. package/model/validatorWithdrawal.ts +86 -0
  57. package/package.json +3 -3
package/model/models.ts CHANGED
@@ -7,6 +7,7 @@ export * from './accountEntity';
7
7
  export * from './addLinkedWalletForUserRequest';
8
8
  export * from './addLinkedWalletRequest';
9
9
  export * from './allManagedUsersResponse';
10
+ export * from './apiKey';
10
11
  export * from './asset';
11
12
  export * from './createManagedUserRequest';
12
13
  export * from './createRFQRequest';
@@ -26,7 +27,11 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
26
27
  export * from './exitEstimateBase';
27
28
  export * from './exitEstimateSeller';
28
29
  export * from './exitProposal';
30
+ export * from './generateApiKeyRequest';
31
+ export * from './getMarketplaceMetadata200Response';
29
32
  export * from './getTransactionsResponse';
33
+ export * from './getWithdrawalsResponse';
34
+ export * from './listAllRFQsForFacilitator200Response';
30
35
  export * from './managedUser';
31
36
  export * from './managedUserDetails';
32
37
  export * from './order';
@@ -37,12 +42,16 @@ export * from './orderUpdatePayload';
37
42
  export * from './portfolioEntity';
38
43
  export * from './provideEscrowHashForRFQDocumentRequest';
39
44
  export * from './quote';
45
+ export * from './rFQBidFacilitator';
40
46
  export * from './rFQBids';
41
47
  export * from './rFQDocumentBase';
42
48
  export * from './rFQDocumentBaseUniqueEscrowVault';
43
49
  export * from './rFQDocumentBuyer';
44
50
  export * from './rFQDocumentBuyerAllOfValidators';
45
51
  export * from './rFQDocumentBuyerStatusFilter';
52
+ export * from './rFQDocumentFacilitator';
53
+ export * from './rFQDocumentFacilitatorStatusFilter';
54
+ export * from './rFQDocumentFacilitatorValidatorsInner';
46
55
  export * from './rFQDocumentSeller';
47
56
  export * from './rFQDocumentSellerAllOfValidators';
48
57
  export * from './rFQDocumentSellerStatusFilter';
@@ -66,6 +75,7 @@ export * from './unstakeStepType';
66
75
  export * from './validatorInfo';
67
76
  export * from './validatorKeyHolder';
68
77
  export * from './validatorType';
78
+ export * from './validatorWithdrawal';
69
79
  export * from './wallet';
70
80
  export * from './webHookLookupAnswer';
71
81
  export * from './webhookPayload';
@@ -122,6 +132,9 @@ import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
122
132
  import { AllManagedUsersResponse } from './allManagedUsersResponse';
123
133
 
124
134
 
135
+ import { ApiKey } from './apiKey';
136
+
137
+
125
138
  import { Asset } from './asset';
126
139
 
127
140
 
@@ -179,9 +192,21 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
179
192
  import { ExitProposal } from './exitProposal';
180
193
 
181
194
 
195
+ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
196
+
197
+
198
+ import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
199
+
200
+
182
201
  import { GetTransactionsResponse } from './getTransactionsResponse';
183
202
 
184
203
 
204
+ import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
205
+
206
+
207
+ import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
208
+
209
+
185
210
  import { ManagedUser } from './managedUser';
186
211
 
187
212
 
@@ -212,6 +237,9 @@ import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRF
212
237
  import { Quote } from './quote';
213
238
 
214
239
 
240
+ import { RFQBidFacilitator } from './rFQBidFacilitator';
241
+
242
+
215
243
  import { RFQBids } from './rFQBids';
216
244
 
217
245
 
@@ -230,6 +258,15 @@ import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidato
230
258
  import { RFQDocumentBuyerStatusFilter } from './rFQDocumentBuyerStatusFilter';
231
259
 
232
260
 
261
+ import { RFQDocumentFacilitator } from './rFQDocumentFacilitator';
262
+
263
+
264
+ import { RFQDocumentFacilitatorStatusFilter } from './rFQDocumentFacilitatorStatusFilter';
265
+
266
+
267
+ import { RFQDocumentFacilitatorValidatorsInner } from './rFQDocumentFacilitatorValidatorsInner';
268
+
269
+
233
270
  import { RFQDocumentSeller } from './rFQDocumentSeller';
234
271
 
235
272
 
@@ -299,6 +336,9 @@ import { ValidatorKeyHolder } from './validatorKeyHolder';
299
336
  import { ValidatorType } from './validatorType';
300
337
 
301
338
 
339
+ import { ValidatorWithdrawal } from './validatorWithdrawal';
340
+
341
+
302
342
  import { Wallet } from './wallet';
303
343
 
304
344
 
@@ -393,10 +433,14 @@ let primitives = [
393
433
  "any"
394
434
  ];
395
435
  let enumsMap: {[index: string]: any} = {
436
+ "ApiKey.roles": ApiKey,
437
+ "GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
396
438
  "OrderDocument.type": OrderDocument,
397
439
  "OrderDocument.status": OrderDocument,
440
+ "RFQDocumentFacilitator.status": RFQDocumentFacilitator,
398
441
  "ValidatorInfo.asset": ValidatorInfo,
399
442
  "ValidatorInfo.status": ValidatorInfo,
443
+ "ValidatorWithdrawal.asset": ValidatorWithdrawal,
400
444
  };
401
445
  let typeMap: {[index: string]: any} = {
402
446
  "AcceptedQuote": AcceptedQuote,
@@ -404,6 +448,7 @@ let typeMap: {[index: string]: any} = {
404
448
  "AddLinkedWalletForUserRequest": AddLinkedWalletForUserRequest,
405
449
  "AddLinkedWalletRequest": AddLinkedWalletRequest,
406
450
  "AllManagedUsersResponse": AllManagedUsersResponse,
451
+ "ApiKey": ApiKey,
407
452
  "CreateManagedUserRequest": CreateManagedUserRequest,
408
453
  "CreateRFQRequest": CreateRFQRequest,
409
454
  "DepositAddress": DepositAddress,
@@ -422,7 +467,11 @@ let typeMap: {[index: string]: any} = {
422
467
  "ExitEstimateBase": ExitEstimateBase,
423
468
  "ExitEstimateSeller": ExitEstimateSeller,
424
469
  "ExitProposal": ExitProposal,
470
+ "GenerateApiKeyRequest": GenerateApiKeyRequest,
471
+ "GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
425
472
  "GetTransactionsResponse": GetTransactionsResponse,
473
+ "GetWithdrawalsResponse": GetWithdrawalsResponse,
474
+ "ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
426
475
  "ManagedUser": ManagedUser,
427
476
  "ManagedUserDetails": ManagedUserDetails,
428
477
  "Order": Order,
@@ -432,11 +481,14 @@ let typeMap: {[index: string]: any} = {
432
481
  "PortfolioEntity": PortfolioEntity,
433
482
  "ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
434
483
  "Quote": Quote,
484
+ "RFQBidFacilitator": RFQBidFacilitator,
435
485
  "RFQBids": RFQBids,
436
486
  "RFQDocumentBase": RFQDocumentBase,
437
487
  "RFQDocumentBaseUniqueEscrowVault": RFQDocumentBaseUniqueEscrowVault,
438
488
  "RFQDocumentBuyer": RFQDocumentBuyer,
439
489
  "RFQDocumentBuyerAllOfValidators": RFQDocumentBuyerAllOfValidators,
490
+ "RFQDocumentFacilitator": RFQDocumentFacilitator,
491
+ "RFQDocumentFacilitatorValidatorsInner": RFQDocumentFacilitatorValidatorsInner,
440
492
  "RFQDocumentSeller": RFQDocumentSeller,
441
493
  "RFQDocumentSellerAllOfValidators": RFQDocumentSellerAllOfValidators,
442
494
  "RFQDocumentUpdate": RFQDocumentUpdate,
@@ -452,6 +504,7 @@ let typeMap: {[index: string]: any} = {
452
504
  "UnstakeStep": UnstakeStep,
453
505
  "UnstakeStepElement": UnstakeStepElement,
454
506
  "ValidatorInfo": ValidatorInfo,
507
+ "ValidatorWithdrawal": ValidatorWithdrawal,
455
508
  "Wallet": Wallet,
456
509
  "WebHookLookupAnswer": WebHookLookupAnswer,
457
510
  "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
+
@@ -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
+
@@ -28,6 +28,7 @@ export class RFQDocumentSeller {
28
28
  'validators': Array<RFQDocumentSellerAllOfValidators>;
29
29
  'estimated_exit_transaction_deadline': Date;
30
30
  'best_quote'?: Quote;
31
+ 'quotes'?: Array<Quote>;
31
32
 
32
33
  static discriminator: string | undefined = undefined;
33
34
 
@@ -86,6 +87,11 @@ export class RFQDocumentSeller {
86
87
  "name": "best_quote",
87
88
  "baseName": "best_quote",
88
89
  "type": "Quote"
90
+ },
91
+ {
92
+ "name": "quotes",
93
+ "baseName": "quotes",
94
+ "type": "Array<Quote>"
89
95
  } ];
90
96
 
91
97
  static getAttributeTypeMap() {
@@ -0,0 +1,86 @@
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
+ 'amount': string;
24
+
25
+ static discriminator: string | undefined = undefined;
26
+
27
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
+ {
29
+ "name": "asset",
30
+ "baseName": "asset",
31
+ "type": "ValidatorWithdrawal.AssetEnum"
32
+ },
33
+ {
34
+ "name": "validator_public_key",
35
+ "baseName": "validator_public_key",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "validator_index",
40
+ "baseName": "validator_index",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "epoch",
45
+ "baseName": "epoch",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "slot",
50
+ "baseName": "slot",
51
+ "type": "number"
52
+ },
53
+ {
54
+ "name": "withdrawal_time",
55
+ "baseName": "withdrawal_time",
56
+ "type": "Date"
57
+ },
58
+ {
59
+ "name": "withdrawal_index",
60
+ "baseName": "withdrawal_index",
61
+ "type": "number"
62
+ },
63
+ {
64
+ "name": "withdrawal_address",
65
+ "baseName": "withdrawal_address",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "name": "amount",
70
+ "baseName": "amount",
71
+ "type": "string"
72
+ } ];
73
+
74
+ static getAttributeTypeMap() {
75
+ return ValidatorWithdrawal.attributeTypeMap;
76
+ }
77
+ }
78
+
79
+ export namespace ValidatorWithdrawal {
80
+ /**
81
+ *
82
+ */
83
+ export type assetEnum =
84
+ 'ETH';
85
+ }
86
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
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.9.0",
25
+ "typescript": "^5.6.3"
26
26
  }
27
27
  }