@northstake/northstakeapi 1.0.13 → 1.0.14

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 (137) hide show
  1. package/.openapi-generator/FILES +13 -16
  2. package/api/depositAddressesApi.ts +4 -4
  3. package/api/linkedWalletsApi.ts +2 -2
  4. package/api/managedUsersApi.ts +28 -28
  5. package/api/managedUsersDepositAddressesApi.ts +5 -5
  6. package/api/managedUsersLinkedWalletsApi.ts +15 -15
  7. package/api/managedUsersOrdersApi.ts +16 -16
  8. package/api/managedUsersPortfolioApi.ts +2 -2
  9. package/api/managedUsersTransactionsApi.ts +11 -11
  10. package/api/managedUsersValidatorsApi.ts +2 -2
  11. package/api/ordersApi.ts +7 -7
  12. package/api/transactionsApi.ts +6 -6
  13. package/api/validatorMarketplaceBuyersApi.ts +3 -3
  14. package/api/validatorMarketplaceSellersApi.ts +3 -3
  15. package/api/validatorsApi.ts +5 -5
  16. package/api.ts +13 -16
  17. package/dist/api/depositAddressesApi.d.ts +3 -3
  18. package/dist/api/depositAddressesApi.js +1 -1
  19. package/dist/api/linkedWalletsApi.d.ts +2 -2
  20. package/dist/api/managedUsersApi.d.ts +11 -11
  21. package/dist/api/managedUsersApi.js +24 -24
  22. package/dist/api/managedUsersDepositAddressesApi.d.ts +3 -3
  23. package/dist/api/managedUsersDepositAddressesApi.js +3 -3
  24. package/dist/api/managedUsersLinkedWalletsApi.d.ts +6 -6
  25. package/dist/api/managedUsersLinkedWalletsApi.js +13 -13
  26. package/dist/api/managedUsersOrdersApi.d.ts +6 -6
  27. package/dist/api/managedUsersOrdersApi.js +15 -15
  28. package/dist/api/managedUsersPortfolioApi.d.ts +1 -1
  29. package/dist/api/managedUsersPortfolioApi.js +2 -2
  30. package/dist/api/managedUsersTransactionsApi.d.ts +7 -7
  31. package/dist/api/managedUsersTransactionsApi.js +5 -5
  32. package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
  33. package/dist/api/managedUsersValidatorsApi.js +2 -2
  34. package/dist/api/ordersApi.d.ts +3 -3
  35. package/dist/api/ordersApi.js +6 -6
  36. package/dist/api/transactionsApi.d.ts +4 -4
  37. package/dist/api/transactionsApi.js +2 -2
  38. package/dist/api/validatorMarketplaceBuyersApi.d.ts +2 -2
  39. package/dist/api/validatorMarketplaceBuyersApi.js +1 -1
  40. package/dist/api/validatorMarketplaceSellersApi.d.ts +2 -2
  41. package/dist/api/validatorMarketplaceSellersApi.js +1 -1
  42. package/dist/api/validatorsApi.d.ts +3 -3
  43. package/dist/api/validatorsApi.js +2 -2
  44. package/dist/api.d.ts +13 -16
  45. package/dist/api.js +13 -16
  46. package/dist/model/accountEntity.d.ts +2 -0
  47. package/dist/model/accountEntity.js +5 -0
  48. package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
  49. package/dist/model/{addLinkedWalletForManagedUserRequest.js → addLinkedWalletForUserRequest.js} +7 -7
  50. package/dist/model/addLinkedWalletRequest.d.ts +2 -2
  51. package/dist/model/addLinkedWalletRequest.js +1 -1
  52. package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -1
  53. package/dist/model/depositAccount.d.ts +2 -2
  54. package/dist/model/depositAccount.js +1 -1
  55. package/dist/model/{depositAddressesForManagedUserResponse.d.ts → depositAddressesForUserResponse.d.ts} +1 -1
  56. package/dist/model/{depositAddressesForManagedUserResponse.js → depositAddressesForUserResponse.js} +6 -6
  57. package/dist/model/models.d.ts +13 -16
  58. package/dist/model/models.js +23 -40
  59. package/dist/model/{newOrderRequest.d.ts → order.d.ts} +8 -14
  60. package/dist/model/{newOrderRequest.js → order.js} +7 -7
  61. package/dist/model/orderDocument.d.ts +2 -2
  62. package/dist/model/orderDocument.js +1 -1
  63. package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.d.ts} +4 -1
  64. package/dist/model/portfolioEntity.d.ts +2 -2
  65. package/dist/model/portfolioEntity.js +1 -1
  66. package/dist/model/rFQDocumentBase.d.ts +2 -2
  67. package/dist/model/rFQDocumentBase.js +1 -1
  68. package/dist/model/rFQDocumentBuyer.d.ts +2 -2
  69. package/dist/model/rFQDocumentBuyer.js +1 -1
  70. package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
  71. package/dist/model/rFQDocumentSeller.d.ts +2 -2
  72. package/dist/model/rFQDocumentSeller.js +1 -1
  73. package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -1
  74. package/dist/model/rFQDocumentStatus.d.ts +12 -0
  75. package/dist/model/{baseOrder.d.ts → smartContract.d.ts} +12 -18
  76. package/dist/model/smartContract.js +56 -0
  77. package/dist/model/transaction.d.ts +4 -4
  78. package/dist/model/transaction.js +2 -2
  79. package/dist/model/{transactionEventTypeEnum.d.ts → transactionEventType.d.ts} +1 -1
  80. package/dist/model/{transactionsForManagedUser.d.ts → transactionsforUser.d.ts} +1 -1
  81. package/dist/model/{transactionsForManagedUser.js → transactionsforUser.js} +6 -6
  82. package/dist/model/validatorContractType.d.ts +12 -0
  83. package/dist/model/validatorInfoValidatorType.d.ts +2 -2
  84. package/dist/model/validatorInfoValidatorType.js +1 -1
  85. package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
  86. package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
  87. package/dist/model/{validatorKeyHolderEnum.d.ts → validatorKeyHolder.d.ts} +1 -1
  88. package/dist/model/validatorKeyHolder.js +13 -0
  89. package/model/accountEntity.ts +7 -0
  90. package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +6 -6
  91. package/model/addLinkedWalletRequest.ts +3 -3
  92. package/model/{tokenEnum.ts → asset.ts} +1 -1
  93. package/model/depositAccount.ts +3 -3
  94. package/model/{depositAddressesForManagedUserResponse.ts → depositAddressesForUserResponse.ts} +2 -2
  95. package/model/models.ts +33 -55
  96. package/model/{stakeOrder.ts → order.ts} +19 -19
  97. package/model/orderDocument.ts +3 -3
  98. package/model/orderType.ts +21 -0
  99. package/model/portfolioEntity.ts +3 -3
  100. package/model/rFQDocumentBase.ts +3 -3
  101. package/model/rFQDocumentBuyer.ts +3 -3
  102. package/model/{rFQDocumentBuyerStatusFilterEnum.ts → rFQDocumentBuyerStatusFilter.ts} +1 -1
  103. package/model/rFQDocumentSeller.ts +3 -3
  104. package/model/{rFQDocumentSellerStatusFilterEnum.ts → rFQDocumentSellerStatusFilter.ts} +1 -1
  105. package/model/{rFQDocumentStatusEnum.ts → rFQDocumentStatus.ts} +1 -1
  106. package/model/smartContract.ts +67 -0
  107. package/model/transaction.ts +6 -6
  108. package/model/{transactionEventTypeEnum.ts → transactionEventType.ts} +1 -1
  109. package/model/{transactionsForManagedUser.ts → transactionsforUser.ts} +2 -2
  110. package/model/{validatorContractTypeEnum.ts → validatorContractType.ts} +1 -1
  111. package/model/validatorInfoValidatorType.ts +3 -3
  112. package/model/validatorInfoValidatorTypeContract.ts +3 -3
  113. package/model/{validatorKeyHolderEnum.ts → validatorKeyHolder.ts} +1 -1
  114. package/package.json +2 -2
  115. package/dist/model/baseOrder.js +0 -38
  116. package/dist/model/createOrderForManagedUserRequest.d.ts +0 -48
  117. package/dist/model/createOrderForManagedUserRequest.js +0 -48
  118. package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -12
  119. package/dist/model/stakeOrder.d.ts +0 -44
  120. package/dist/model/stakeOrder.js +0 -46
  121. package/dist/model/unstakeOrder.d.ts +0 -42
  122. package/dist/model/unstakeOrder.js +0 -38
  123. package/dist/model/validatorContractTypeEnum.d.ts +0 -12
  124. package/dist/model/withdrawalOrder.d.ts +0 -46
  125. package/dist/model/withdrawalOrder.js +0 -43
  126. package/model/baseOrder.ts +0 -61
  127. package/model/createOrderForManagedUserRequest.ts +0 -80
  128. package/model/newOrderRequest.ts +0 -80
  129. package/model/unstakeOrder.ts +0 -61
  130. package/model/withdrawalOrder.ts +0 -70
  131. /package/dist/model/{rFQDocumentBuyerStatusFilterEnum.js → asset.js} +0 -0
  132. /package/dist/model/{rFQDocumentSellerStatusFilterEnum.js → orderType.js} +0 -0
  133. /package/dist/model/{rFQDocumentStatusEnum.js → rFQDocumentBuyerStatusFilter.js} +0 -0
  134. /package/dist/model/{tokenEnum.js → rFQDocumentSellerStatusFilter.js} +0 -0
  135. /package/dist/model/{transactionEventTypeEnum.js → rFQDocumentStatus.js} +0 -0
  136. /package/dist/model/{validatorContractTypeEnum.js → transactionEventType.js} +0 -0
  137. /package/dist/model/{validatorKeyHolderEnum.js → validatorContractType.js} +0 -0
@@ -10,24 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { EthereumValidatorKey } from './ethereumValidatorKey';
13
- export declare class NewOrderRequest {
13
+ import { OrderType } from './orderType';
14
+ export declare class Order {
15
+ 'orderType': OrderType;
14
16
  /**
15
- * Type of the order - can only be stake, unstake, or withdraw.
16
- */
17
- 'orderType': NewOrderRequest;
18
- /**
19
- * assetId of the order - e.g., ETH, SOL.
17
+ * Asset ID of the order, e.g., ETH, SOL.
20
18
  */
21
19
  'asset': string;
22
20
  /**
23
- * Order amount.
21
+ * Order amount, specified in smallest unit of the asset.
24
22
  */
25
23
  'amount'?: number;
26
24
  'validatorKey'?: EthereumValidatorKey | null;
27
25
  /**
28
- * Target wallet address for withdrawal orders. Required for withdrawal type orders.
26
+ * Target wallet address for withdrawal orders, required for withdrawal type.
29
27
  */
30
- 'targetWallet'?: string;
28
+ 'targetWallet'?: string | null;
31
29
  static discriminator: string | undefined;
32
30
  static attributeTypeMap: Array<{
33
31
  name: string;
@@ -40,9 +38,5 @@ export declare class NewOrderRequest {
40
38
  type: string;
41
39
  }[];
42
40
  }
43
- export declare namespace NewOrderRequest {
44
- /**
45
- * Type of the order - can only be stake, unstake, or withdraw.
46
- */
47
- type orderTypeEnum = 'stake' | 'unstake' | 'withdraw';
41
+ export declare namespace Order {
48
42
  }
@@ -11,19 +11,19 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.NewOrderRequest = void 0;
15
- class NewOrderRequest {
14
+ exports.Order = void 0;
15
+ class Order {
16
16
  static getAttributeTypeMap() {
17
- return NewOrderRequest.attributeTypeMap;
17
+ return Order.attributeTypeMap;
18
18
  }
19
19
  }
20
- exports.NewOrderRequest = NewOrderRequest;
21
- NewOrderRequest.discriminator = "orderType";
22
- NewOrderRequest.attributeTypeMap = [
20
+ exports.Order = Order;
21
+ Order.discriminator = undefined;
22
+ Order.attributeTypeMap = [
23
23
  {
24
24
  "name": "orderType",
25
25
  "baseName": "orderType",
26
- "type": "NewOrderRequest.OrderTypeEnum"
26
+ "type": "OrderType"
27
27
  },
28
28
  {
29
29
  "name": "asset",
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Asset } from './asset';
12
13
  import { EthereumValidatorKey } from './ethereumValidatorKey';
13
14
  import { OrderDocumentSteps } from './orderDocumentSteps';
14
- import { TokenEnum } from './tokenEnum';
15
15
  import { Wallet } from './wallet';
16
16
  /**
17
17
  * Detailed information about a specific order.
@@ -21,7 +21,7 @@ export declare class OrderDocument {
21
21
  'userId': string;
22
22
  'type': OrderDocument;
23
23
  'amount'?: number;
24
- 'asset': TokenEnum;
24
+ 'asset': Asset;
25
25
  'status'?: OrderDocument;
26
26
  'targetWallet'?: Wallet;
27
27
  'validatorKey'?: EthereumValidatorKey | null;
@@ -46,7 +46,7 @@ OrderDocument.attributeTypeMap = [
46
46
  {
47
47
  "name": "asset",
48
48
  "baseName": "asset",
49
- "type": "TokenEnum"
49
+ "type": "Asset"
50
50
  },
51
51
  {
52
52
  "name": "status",
@@ -9,4 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export type RFQDocumentStatusEnum = 'active' | 'expired' | 'rejected' | 'finished';
12
+ /**
13
+ * Supported order types.
14
+ */
15
+ export type OrderType = 'stake' | 'unstake' | 'withdraw';
@@ -9,12 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TokenEnum } from './tokenEnum';
12
+ import { Asset } from './asset';
13
13
  /**
14
14
  * Overview of a managed user\'s account portfolio.
15
15
  */
16
16
  export declare class PortfolioEntity {
17
- 'asset': TokenEnum;
17
+ 'asset': Asset;
18
18
  'totalAmount': string;
19
19
  'stakedAmount': string;
20
20
  static discriminator: string | undefined;
@@ -26,7 +26,7 @@ PortfolioEntity.attributeTypeMap = [
26
26
  {
27
27
  "name": "asset",
28
28
  "baseName": "asset",
29
- "type": "TokenEnum"
29
+ "type": "Asset"
30
30
  },
31
31
  {
32
32
  "name": "totalAmount",
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
13
- import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
13
+ import { RFQDocumentStatus } from './rFQDocumentStatus';
14
14
  import { SettlementSteps } from './settlementSteps';
15
15
  export declare class RFQDocumentBase {
16
16
  'id': string;
17
- 'status': RFQDocumentStatusEnum;
17
+ 'status': RFQDocumentStatus;
18
18
  'total_balance': number;
19
19
  'payment_address': string;
20
20
  'estimated_all_validators_exited_at': Date;
@@ -28,7 +28,7 @@ RFQDocumentBase.attributeTypeMap = [
28
28
  {
29
29
  "name": "status",
30
30
  "baseName": "status",
31
- "type": "RFQDocumentStatusEnum"
31
+ "type": "RFQDocumentStatus"
32
32
  },
33
33
  {
34
34
  "name": "total_balance",
@@ -12,11 +12,11 @@
12
12
  import { Quote } from './quote';
13
13
  import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
14
14
  import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidators';
15
- import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
15
+ import { RFQDocumentStatus } from './rFQDocumentStatus';
16
16
  import { SettlementSteps } from './settlementSteps';
17
17
  export declare class RFQDocumentBuyer {
18
18
  'id': string;
19
- 'status': RFQDocumentStatusEnum;
19
+ 'status': RFQDocumentStatus;
20
20
  'total_balance': number;
21
21
  'payment_address': string;
22
22
  'estimated_all_validators_exited_at': Date;
@@ -28,7 +28,7 @@ RFQDocumentBuyer.attributeTypeMap = [
28
28
  {
29
29
  "name": "status",
30
30
  "baseName": "status",
31
- "type": "RFQDocumentStatusEnum"
31
+ "type": "RFQDocumentStatus"
32
32
  },
33
33
  {
34
34
  "name": "total_balance",
@@ -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 RFQDocumentBuyerStatusFilter = 'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired';
@@ -12,11 +12,11 @@
12
12
  import { Quote } from './quote';
13
13
  import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
14
14
  import { RFQDocumentSellerAllOfValidators } from './rFQDocumentSellerAllOfValidators';
15
- import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
15
+ import { RFQDocumentStatus } from './rFQDocumentStatus';
16
16
  import { SettlementSteps } from './settlementSteps';
17
17
  export declare class RFQDocumentSeller {
18
18
  'id': string;
19
- 'status': RFQDocumentStatusEnum;
19
+ 'status': RFQDocumentStatus;
20
20
  'total_balance': number;
21
21
  'payment_address': string;
22
22
  'estimated_all_validators_exited_at': Date;
@@ -28,7 +28,7 @@ RFQDocumentSeller.attributeTypeMap = [
28
28
  {
29
29
  "name": "status",
30
30
  "baseName": "status",
31
- "type": "RFQDocumentStatusEnum"
31
+ "type": "RFQDocumentStatus"
32
32
  },
33
33
  {
34
34
  "name": "total_balance",
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export type RFQDocumentBuyerStatusFilterEnum = 'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired';
12
+ export type RFQDocumentSellerStatusFilter = 'active' | 'accepted' | 'escrow_paid' | 'reward_recipient_settled' | 'escrow_released' | 'rejected' | 'expired';
@@ -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 RFQDocumentStatus = 'active' | 'expired' | 'rejected' | 'finished';
@@ -9,19 +9,17 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export declare class BaseOrder {
13
- /**
14
- * Type of the order - can only be stake, unstake, or withdraw.
15
- */
16
- 'orderType': BaseOrder;
17
- /**
18
- * assetId of the order - e.g., ETH, SOL.
19
- */
20
- 'asset': string;
21
- /**
22
- * Order amount.
23
- */
24
- 'amount'?: number;
12
+ import { Asset } from './asset';
13
+ /**
14
+ * Details about a smart contract including name, asset, address and type.
15
+ */
16
+ export declare class SmartContract {
17
+ 'name': string;
18
+ 'asset': Asset;
19
+ 'address': string;
20
+ 'type'?: string;
21
+ 'deployedAt': Date;
22
+ 'deployedBy'?: string;
25
23
  static discriminator: string | undefined;
26
24
  static attributeTypeMap: Array<{
27
25
  name: string;
@@ -34,9 +32,5 @@ export declare class BaseOrder {
34
32
  type: string;
35
33
  }[];
36
34
  }
37
- export declare namespace BaseOrder {
38
- /**
39
- * Type of the order - can only be stake, unstake, or withdraw.
40
- */
41
- type orderTypeEnum = 'stake' | 'unstake' | 'withdraw';
35
+ export declare namespace SmartContract {
42
36
  }
@@ -0,0 +1,56 @@
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.SmartContract = void 0;
15
+ /**
16
+ * Details about a smart contract including name, asset, address and type.
17
+ */
18
+ class SmartContract {
19
+ static getAttributeTypeMap() {
20
+ return SmartContract.attributeTypeMap;
21
+ }
22
+ }
23
+ exports.SmartContract = SmartContract;
24
+ SmartContract.discriminator = undefined;
25
+ SmartContract.attributeTypeMap = [
26
+ {
27
+ "name": "name",
28
+ "baseName": "name",
29
+ "type": "string"
30
+ },
31
+ {
32
+ "name": "asset",
33
+ "baseName": "asset",
34
+ "type": "Asset"
35
+ },
36
+ {
37
+ "name": "address",
38
+ "baseName": "address",
39
+ "type": "string"
40
+ },
41
+ {
42
+ "name": "type",
43
+ "baseName": "type",
44
+ "type": "string"
45
+ },
46
+ {
47
+ "name": "deployedAt",
48
+ "baseName": "deployedAt",
49
+ "type": "Date"
50
+ },
51
+ {
52
+ "name": "deployedBy",
53
+ "baseName": "deployedBy",
54
+ "type": "string"
55
+ }
56
+ ];
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TokenEnum } from './tokenEnum';
13
- import { TransactionEventTypeEnum } from './transactionEventTypeEnum';
12
+ import { Asset } from './asset';
13
+ import { TransactionEventType } from './transactionEventType';
14
14
  /**
15
15
  * Details of transactions including type, amount, and asset.
16
16
  */
@@ -19,12 +19,12 @@ export declare class Transaction {
19
19
  * The date and time when the transaction occurred.
20
20
  */
21
21
  'eventTime': Date;
22
- 'eventType': TransactionEventTypeEnum;
22
+ 'eventType': TransactionEventType;
23
23
  /**
24
24
  * Asset amount involved in the transaction.
25
25
  */
26
26
  'assetAmount': number;
27
- 'asset': TokenEnum;
27
+ 'asset': Asset;
28
28
  /**
29
29
  * Unique identifier for the order associated with the transaction.
30
30
  */
@@ -31,7 +31,7 @@ Transaction.attributeTypeMap = [
31
31
  {
32
32
  "name": "eventType",
33
33
  "baseName": "eventType",
34
- "type": "TransactionEventTypeEnum"
34
+ "type": "TransactionEventType"
35
35
  },
36
36
  {
37
37
  "name": "assetAmount",
@@ -41,7 +41,7 @@ Transaction.attributeTypeMap = [
41
41
  {
42
42
  "name": "asset",
43
43
  "baseName": "asset",
44
- "type": "TokenEnum"
44
+ "type": "Asset"
45
45
  },
46
46
  {
47
47
  "name": "orderId",
@@ -12,4 +12,4 @@
12
12
  /**
13
13
  * Supported transaction types.
14
14
  */
15
- export type TransactionEventTypeEnum = 'stake' | 'unstake' | 'withdrawal' | 'deposit' | 'reward';
15
+ export type TransactionEventType = 'stake' | 'unstake' | 'withdrawal' | 'deposit' | 'reward';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Transaction } from './transaction';
13
- export declare class TransactionsForManagedUser {
13
+ export declare class TransactionsforUser {
14
14
  'transactions': Array<Transaction>;
15
15
  /**
16
16
  * Total number of pages
@@ -11,15 +11,15 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.TransactionsForManagedUser = void 0;
15
- class TransactionsForManagedUser {
14
+ exports.TransactionsforUser = void 0;
15
+ class TransactionsforUser {
16
16
  static getAttributeTypeMap() {
17
- return TransactionsForManagedUser.attributeTypeMap;
17
+ return TransactionsforUser.attributeTypeMap;
18
18
  }
19
19
  }
20
- exports.TransactionsForManagedUser = TransactionsForManagedUser;
21
- TransactionsForManagedUser.discriminator = undefined;
22
- TransactionsForManagedUser.attributeTypeMap = [
20
+ exports.TransactionsforUser = TransactionsforUser;
21
+ TransactionsforUser.discriminator = undefined;
22
+ TransactionsforUser.attributeTypeMap = [
23
23
  {
24
24
  "name": "transactions",
25
25
  "baseName": "transactions",
@@ -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 ValidatorContractType = 'default_validator' | 'tokenized_validator';
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
13
- import { ValidatorKeyHolderEnum } from './validatorKeyHolderEnum';
13
+ import { ValidatorKeyHolder } from './validatorKeyHolder';
14
14
  export declare class ValidatorInfoValidatorType {
15
- 'key_holder'?: ValidatorKeyHolderEnum;
15
+ 'key_holder'?: ValidatorKeyHolder;
16
16
  'contract'?: ValidatorInfoValidatorTypeContract;
17
17
  static discriminator: string | undefined;
18
18
  static attributeTypeMap: Array<{
@@ -23,7 +23,7 @@ ValidatorInfoValidatorType.attributeTypeMap = [
23
23
  {
24
24
  "name": "key_holder",
25
25
  "baseName": "key_holder",
26
- "type": "ValidatorKeyHolderEnum"
26
+ "type": "ValidatorKeyHolder"
27
27
  },
28
28
  {
29
29
  "name": "contract",
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ValidatorContractTypeEnum } from './validatorContractTypeEnum';
12
+ import { ValidatorContractType } from './validatorContractType';
13
13
  export declare class ValidatorInfoValidatorTypeContract {
14
14
  'address'?: string;
15
- 'contract_type'?: ValidatorContractTypeEnum;
15
+ 'contract_type'?: ValidatorContractType;
16
16
  static discriminator: string | undefined;
17
17
  static attributeTypeMap: Array<{
18
18
  name: string;
@@ -28,6 +28,6 @@ ValidatorInfoValidatorTypeContract.attributeTypeMap = [
28
28
  {
29
29
  "name": "contract_type",
30
30
  "baseName": "contract_type",
31
- "type": "ValidatorContractTypeEnum"
31
+ "type": "ValidatorContractType"
32
32
  }
33
33
  ];
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export type ValidatorKeyHolderEnum = 'northstake' | 'self_managed';
12
+ export type ValidatorKeyHolder = 'northstake' | 'self_managed';
@@ -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 });
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
+ import { SmartContract } from './smartContract';
13
14
  import { Wallet } from './wallet';
14
15
 
15
16
  /**
@@ -20,6 +21,7 @@ export class AccountEntity {
20
21
  'name'?: string;
21
22
  'email'?: string;
22
23
  'wallets'?: Array<Wallet>;
24
+ 'smartContracts'?: Array<SmartContract>;
23
25
 
24
26
  static discriminator: string | undefined = undefined;
25
27
 
@@ -43,6 +45,11 @@ export class AccountEntity {
43
45
  "name": "wallets",
44
46
  "baseName": "wallets",
45
47
  "type": "Array<Wallet>"
48
+ },
49
+ {
50
+ "name": "smartContracts",
51
+ "baseName": "smartContracts",
52
+ "type": "Array<SmartContract>"
46
53
  } ];
47
54
 
48
55
  static getAttributeTypeMap() {
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
- import { TokenEnum } from './tokenEnum';
13
+ import { Asset } from './asset';
14
14
 
15
- export class AddLinkedWalletForManagedUserRequest {
15
+ export class AddLinkedWalletForUserRequest {
16
16
  'walletAddress': string;
17
- 'walletType': TokenEnum;
17
+ 'walletType': Asset;
18
18
 
19
19
  static discriminator: string | undefined = undefined;
20
20
 
@@ -27,14 +27,14 @@ export class AddLinkedWalletForManagedUserRequest {
27
27
  {
28
28
  "name": "walletType",
29
29
  "baseName": "walletType",
30
- "type": "TokenEnum"
30
+ "type": "Asset"
31
31
  } ];
32
32
 
33
33
  static getAttributeTypeMap() {
34
- return AddLinkedWalletForManagedUserRequest.attributeTypeMap;
34
+ return AddLinkedWalletForUserRequest.attributeTypeMap;
35
35
  }
36
36
  }
37
37
 
38
- export namespace AddLinkedWalletForManagedUserRequest {
38
+ export namespace AddLinkedWalletForUserRequest {
39
39
  }
40
40
 
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
- import { TokenEnum } from './tokenEnum';
13
+ import { Asset } from './asset';
14
14
 
15
15
  export class AddLinkedWalletRequest {
16
16
  'walletAddress': string;
17
- 'walletType': TokenEnum;
17
+ 'walletType': Asset;
18
18
  'walletName': string;
19
19
 
20
20
  static discriminator: string | undefined = undefined;
@@ -28,7 +28,7 @@ export class AddLinkedWalletRequest {
28
28
  {
29
29
  "name": "walletType",
30
30
  "baseName": "walletType",
31
- "type": "TokenEnum"
31
+ "type": "Asset"
32
32
  },
33
33
  {
34
34
  "name": "walletName",
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * Supported assets.
16
16
  */
17
- export type TokenEnum =
17
+ export type Asset =
18
18
  'ETH' |
19
19
  'AVAX' |
20
20
  'CCD' |
@@ -10,13 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
- import { TokenEnum } from './tokenEnum';
13
+ import { Asset } from './asset';
14
14
 
15
15
  /**
16
16
  * Details of a deposit account including type and address.
17
17
  */
18
18
  export class DepositAccount {
19
- 'type': TokenEnum;
19
+ 'type': Asset;
20
20
  /**
21
21
  * The address of the deposit account.
22
22
  */
@@ -28,7 +28,7 @@ export class DepositAccount {
28
28
  {
29
29
  "name": "type",
30
30
  "baseName": "type",
31
- "type": "TokenEnum"
31
+ "type": "Asset"
32
32
  },
33
33
  {
34
34
  "name": "address",