@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
@@ -0,0 +1,12 @@
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
+ export type RFQDocumentFacilitatorStatusFilter = 'active' | 'expired' | 'finished';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Northstake
4
+ * Northstake api
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 });
@@ -0,0 +1,27 @@
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
+ export declare class RFQDocumentFacilitatorValidatorsInner {
13
+ 'validator_index'?: number;
14
+ 'balance'?: number;
15
+ 'exit_estimate'?: Date;
16
+ static discriminator: string | undefined;
17
+ static attributeTypeMap: Array<{
18
+ name: string;
19
+ baseName: string;
20
+ type: string;
21
+ }>;
22
+ static getAttributeTypeMap(): {
23
+ name: string;
24
+ baseName: string;
25
+ type: string;
26
+ }[];
27
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Northstake
4
+ * Northstake api
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.RFQDocumentFacilitatorValidatorsInner = void 0;
15
+ class RFQDocumentFacilitatorValidatorsInner {
16
+ static getAttributeTypeMap() {
17
+ return RFQDocumentFacilitatorValidatorsInner.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.RFQDocumentFacilitatorValidatorsInner = RFQDocumentFacilitatorValidatorsInner;
21
+ RFQDocumentFacilitatorValidatorsInner.discriminator = undefined;
22
+ RFQDocumentFacilitatorValidatorsInner.attributeTypeMap = [
23
+ {
24
+ "name": "validator_index",
25
+ "baseName": "validator_index",
26
+ "type": "number"
27
+ },
28
+ {
29
+ "name": "balance",
30
+ "baseName": "balance",
31
+ "type": "number"
32
+ },
33
+ {
34
+ "name": "exit_estimate",
35
+ "baseName": "exit_estimate",
36
+ "type": "Date"
37
+ }
38
+ ];
@@ -26,6 +26,7 @@ export declare class RFQDocumentSeller {
26
26
  'validators': Array<RFQDocumentSellerAllOfValidators>;
27
27
  'estimated_exit_transaction_deadline': Date;
28
28
  'best_quote'?: Quote;
29
+ 'quotes'?: Array<Quote>;
29
30
  static discriminator: string | undefined;
30
31
  static attributeTypeMap: Array<{
31
32
  name: string;
@@ -74,5 +74,10 @@ RFQDocumentSeller.attributeTypeMap = [
74
74
  "name": "best_quote",
75
75
  "baseName": "best_quote",
76
76
  "type": "Quote"
77
+ },
78
+ {
79
+ "name": "quotes",
80
+ "baseName": "quotes",
81
+ "type": "Array<Quote>"
77
82
  }
78
83
  ];
@@ -0,0 +1,39 @@
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
+ export declare class ValidatorWithdrawal {
13
+ 'asset': ValidatorWithdrawal;
14
+ 'validator_public_key': string;
15
+ 'validator_index': number;
16
+ 'epoch': number;
17
+ 'slot': number;
18
+ 'withdrawal_time': Date;
19
+ 'withdrawal_index': number;
20
+ 'withdrawal_address': string;
21
+ 'amount': string;
22
+ static discriminator: string | undefined;
23
+ static attributeTypeMap: Array<{
24
+ name: string;
25
+ baseName: string;
26
+ type: string;
27
+ }>;
28
+ static getAttributeTypeMap(): {
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ }[];
33
+ }
34
+ export declare namespace ValidatorWithdrawal {
35
+ /**
36
+ *
37
+ */
38
+ type assetEnum = 'ETH';
39
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /**
3
+ * Northstake
4
+ * Northstake api
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": "validator_public_key",
30
+ "baseName": "validator_public_key",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "validator_index",
35
+ "baseName": "validator_index",
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": "withdrawal_time",
50
+ "baseName": "withdrawal_time",
51
+ "type": "Date"
52
+ },
53
+ {
54
+ "name": "withdrawal_index",
55
+ "baseName": "withdrawal_index",
56
+ "type": "number"
57
+ },
58
+ {
59
+ "name": "withdrawal_address",
60
+ "baseName": "withdrawal_address",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "amount",
65
+ "baseName": "amount",
66
+ "type": "string"
67
+ }
68
+ ];
@@ -0,0 +1,88 @@
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 ApiKey {
15
+ /**
16
+ * Unique identifier for the API key
17
+ */
18
+ 'id': string;
19
+ /**
20
+ * Descriptive name for the API key
21
+ */
22
+ 'key_name': string;
23
+ /**
24
+ * The API key value
25
+ */
26
+ 'key': string;
27
+ /**
28
+ * The public key associated with the API key
29
+ */
30
+ 'pub_key': string;
31
+ /**
32
+ * List of IP addresses or CIDR ranges allowed to use this API key
33
+ */
34
+ 'ip_whitelist'?: Array<string>;
35
+ /**
36
+ * Roles associated with the API key
37
+ */
38
+ 'roles'?: ApiKey;
39
+
40
+ static discriminator: string | undefined = undefined;
41
+
42
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
43
+ {
44
+ "name": "id",
45
+ "baseName": "id",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "key_name",
50
+ "baseName": "key_name",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "key",
55
+ "baseName": "key",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "pub_key",
60
+ "baseName": "pub_key",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "ip_whitelist",
65
+ "baseName": "ip_whitelist",
66
+ "type": "Array<string>"
67
+ },
68
+ {
69
+ "name": "roles",
70
+ "baseName": "roles",
71
+ "type": "Array<ApiKey.RolesEnum>"
72
+ } ];
73
+
74
+ static getAttributeTypeMap() {
75
+ return ApiKey.attributeTypeMap;
76
+ }
77
+ }
78
+
79
+ export namespace ApiKey {
80
+ /**
81
+ * Roles associated with the API key
82
+ */
83
+ export type rolesEnum =
84
+ 'admin' |
85
+ 'user' |
86
+ 'reader';
87
+ }
88
+
@@ -0,0 +1,66 @@
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 GenerateApiKeyRequest {
15
+ /**
16
+ * A descriptive name for the API key.
17
+ */
18
+ 'keyName': string;
19
+ /**
20
+ * The public part of an RSA private keypair in PEM format.
21
+ */
22
+ 'publicKey': string;
23
+ 'whitelistedIPs'?: Array<string>;
24
+ /**
25
+ * The rights associated with the API key.
26
+ */
27
+ 'keyRights'?: GenerateApiKeyRequest;
28
+
29
+ static discriminator: string | undefined = undefined;
30
+
31
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
32
+ {
33
+ "name": "keyName",
34
+ "baseName": "keyName",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "publicKey",
39
+ "baseName": "publicKey",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "whitelistedIPs",
44
+ "baseName": "whitelistedIPs",
45
+ "type": "Array<string>"
46
+ },
47
+ {
48
+ "name": "keyRights",
49
+ "baseName": "keyRights",
50
+ "type": "Array<GenerateApiKeyRequest.KeyRightsEnum>"
51
+ } ];
52
+
53
+ static getAttributeTypeMap() {
54
+ return GenerateApiKeyRequest.attributeTypeMap;
55
+ }
56
+ }
57
+
58
+ export namespace GenerateApiKeyRequest {
59
+ /**
60
+ * The rights associated with the API key.
61
+ */
62
+ export type keyRightsEnum =
63
+ 'user' |
64
+ 'reader';
65
+ }
66
+
@@ -0,0 +1,52 @@
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 GetMarketplaceMetadata200Response {
15
+ /**
16
+ * Total number of RFQs in the marketplace
17
+ */
18
+ 'totalRFQs'?: number;
19
+ /**
20
+ * Number of active RFQs
21
+ */
22
+ 'activeRFQs'?: number;
23
+ /**
24
+ * Number of expired RFQs
25
+ */
26
+ 'expiredRFQs'?: number;
27
+
28
+ static discriminator: string | undefined = undefined;
29
+
30
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31
+ {
32
+ "name": "totalRFQs",
33
+ "baseName": "totalRFQs",
34
+ "type": "number"
35
+ },
36
+ {
37
+ "name": "activeRFQs",
38
+ "baseName": "activeRFQs",
39
+ "type": "number"
40
+ },
41
+ {
42
+ "name": "expiredRFQs",
43
+ "baseName": "expiredRFQs",
44
+ "type": "number"
45
+ } ];
46
+
47
+ static getAttributeTypeMap() {
48
+ return GetMarketplaceMetadata200Response.attributeTypeMap;
49
+ }
50
+ }
51
+
52
+
@@ -0,0 +1,59 @@
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 { ValidatorWithdrawal } from './validatorWithdrawal';
14
+
15
+ export class GetWithdrawalsResponse {
16
+ 'withdrawals': Array<ValidatorWithdrawal>;
17
+ /**
18
+ * Total number of pages
19
+ */
20
+ 'pages': number;
21
+ /**
22
+ * Total number of withdrawals
23
+ */
24
+ 'total': number;
25
+ /**
26
+ * Current page number
27
+ */
28
+ 'currentPage': number;
29
+
30
+ static discriminator: string | undefined = undefined;
31
+
32
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
+ {
34
+ "name": "withdrawals",
35
+ "baseName": "withdrawals",
36
+ "type": "Array<ValidatorWithdrawal>"
37
+ },
38
+ {
39
+ "name": "pages",
40
+ "baseName": "pages",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "total",
45
+ "baseName": "total",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "currentPage",
50
+ "baseName": "currentPage",
51
+ "type": "number"
52
+ } ];
53
+
54
+ static getAttributeTypeMap() {
55
+ return GetWithdrawalsResponse.attributeTypeMap;
56
+ }
57
+ }
58
+
59
+
@@ -0,0 +1,59 @@
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 { RFQDocumentFacilitator } from './rFQDocumentFacilitator';
14
+
15
+ export class ListAllRFQsForFacilitator200Response {
16
+ 'rfqs'?: Array<RFQDocumentFacilitator>;
17
+ /**
18
+ * Total number of RFQs
19
+ */
20
+ 'total'?: number;
21
+ /**
22
+ * Total number of pages
23
+ */
24
+ 'pages'?: number;
25
+ /**
26
+ * Current page number
27
+ */
28
+ 'currentPage'?: number;
29
+
30
+ static discriminator: string | undefined = undefined;
31
+
32
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
+ {
34
+ "name": "rfqs",
35
+ "baseName": "rfqs",
36
+ "type": "Array<RFQDocumentFacilitator>"
37
+ },
38
+ {
39
+ "name": "total",
40
+ "baseName": "total",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "pages",
45
+ "baseName": "pages",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "currentPage",
50
+ "baseName": "currentPage",
51
+ "type": "number"
52
+ } ];
53
+
54
+ static getAttributeTypeMap() {
55
+ return ListAllRFQsForFacilitator200Response.attributeTypeMap;
56
+ }
57
+ }
58
+
59
+