@northstake/northstakeapi 1.0.23 → 1.0.25

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 (133) hide show
  1. package/.openapi-generator/FILES +3 -37
  2. package/api/{managedUsersLinkedWalletsApi.ts → accountApiKeysApi.ts} +32 -55
  3. package/api/apis.ts +3 -23
  4. package/api.ts +6 -70
  5. package/dist/api/{depositAddressesApi.d.ts → accountApiKeysApi.d.ts} +25 -12
  6. package/dist/api/{managedUsersLinkedWalletsApi.js → accountApiKeysApi.js} +32 -56
  7. package/dist/api/apis.d.ts +3 -23
  8. package/dist/api/apis.js +3 -23
  9. package/dist/api.d.ts +4 -48
  10. package/dist/api.js +5 -59
  11. package/dist/model/apiKey.d.ts +54 -0
  12. package/dist/model/apiKey.js +53 -0
  13. package/dist/model/{transactionsforUser.d.ts → generateApiKeyRequest.d.ts} +14 -9
  14. package/dist/model/generateApiKeyRequest.js +43 -0
  15. package/dist/model/models.d.ts +2 -26
  16. package/dist/model/models.js +8 -70
  17. package/dist/model/validatorWithdrawal.d.ts +1 -0
  18. package/dist/model/validatorWithdrawal.js +5 -0
  19. package/dist/model/webhookPayloadData.d.ts +2 -10
  20. package/dist/model/webhookPayloadData.js +2 -12
  21. package/model/apiKey.ts +88 -0
  22. package/model/generateApiKeyRequest.ts +66 -0
  23. package/model/models.ts +9 -124
  24. package/model/validatorWithdrawal.ts +6 -0
  25. package/model/webhookPayloadData.ts +4 -23
  26. package/package.json +2 -2
  27. package/api/depositAddressesApi.ts +0 -267
  28. package/api/managedUsersApi.ts +0 -448
  29. package/api/managedUsersDepositAddressesApi.ts +0 -186
  30. package/api/managedUsersOrdersApi.ts +0 -462
  31. package/api/managedUsersPortfolioApi.ts +0 -186
  32. package/api/managedUsersTransactionsApi.ts +0 -222
  33. package/api/managedUsersValidatorsApi.ts +0 -302
  34. package/api/ordersApi.ts +0 -432
  35. package/api/portfolioApi.ts +0 -180
  36. package/api/transactionsApi.ts +0 -215
  37. package/dist/api/depositAddressesApi.js +0 -207
  38. package/dist/api/managedUsersApi.d.ts +0 -94
  39. package/dist/api/managedUsersApi.js +0 -348
  40. package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
  41. package/dist/api/managedUsersDepositAddressesApi.js +0 -146
  42. package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
  43. package/dist/api/managedUsersOrdersApi.d.ts +0 -94
  44. package/dist/api/managedUsersOrdersApi.js +0 -364
  45. package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
  46. package/dist/api/managedUsersPortfolioApi.js +0 -146
  47. package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
  48. package/dist/api/managedUsersTransactionsApi.js +0 -170
  49. package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
  50. package/dist/api/managedUsersValidatorsApi.js +0 -233
  51. package/dist/api/ordersApi.d.ts +0 -90
  52. package/dist/api/ordersApi.js +0 -333
  53. package/dist/api/portfolioApi.d.ts +0 -50
  54. package/dist/api/portfolioApi.js +0 -140
  55. package/dist/api/transactionsApi.d.ts +0 -66
  56. package/dist/api/transactionsApi.js +0 -164
  57. package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
  58. package/dist/model/addLinkedWalletForUserRequest.js +0 -33
  59. package/dist/model/allManagedUsersResponse.d.ts +0 -38
  60. package/dist/model/allManagedUsersResponse.js +0 -43
  61. package/dist/model/createManagedUserRequest.d.ts +0 -25
  62. package/dist/model/createManagedUserRequest.js +0 -28
  63. package/dist/model/depositAddress.d.ts +0 -35
  64. package/dist/model/depositAddress.js +0 -36
  65. package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
  66. package/dist/model/depositAddressesForUserResponse.js +0 -33
  67. package/dist/model/getTransactionsResponse.d.ts +0 -38
  68. package/dist/model/getTransactionsResponse.js +0 -43
  69. package/dist/model/managedUser.d.ts +0 -29
  70. package/dist/model/managedUser.js +0 -36
  71. package/dist/model/managedUserDetails.d.ts +0 -31
  72. package/dist/model/managedUserDetails.js +0 -41
  73. package/dist/model/order.d.ts +0 -42
  74. package/dist/model/order.js +0 -48
  75. package/dist/model/orderDocument.d.ts +0 -50
  76. package/dist/model/orderDocument.js +0 -71
  77. package/dist/model/orderDocumentSteps.d.ts +0 -30
  78. package/dist/model/orderDocumentSteps.js +0 -33
  79. package/dist/model/orderType.d.ts +0 -15
  80. package/dist/model/orderType.js +0 -13
  81. package/dist/model/orderUpdatePayload.d.ts +0 -36
  82. package/dist/model/orderUpdatePayload.js +0 -38
  83. package/dist/model/portfolioEntity.d.ts +0 -33
  84. package/dist/model/portfolioEntity.js +0 -41
  85. package/dist/model/stakeStep.d.ts +0 -32
  86. package/dist/model/stakeStep.js +0 -33
  87. package/dist/model/stakeStepElement.d.ts +0 -30
  88. package/dist/model/stakeStepElement.js +0 -33
  89. package/dist/model/stepStatus.d.ts +0 -15
  90. package/dist/model/stepStatus.js +0 -13
  91. package/dist/model/transaction.d.ts +0 -49
  92. package/dist/model/transaction.js +0 -56
  93. package/dist/model/transactionEventType.d.ts +0 -15
  94. package/dist/model/transactionEventType.js +0 -13
  95. package/dist/model/transactionsforUser.js +0 -43
  96. package/dist/model/unstakeStep.d.ts +0 -32
  97. package/dist/model/unstakeStep.js +0 -33
  98. package/dist/model/unstakeStepElement.d.ts +0 -30
  99. package/dist/model/unstakeStepElement.js +0 -33
  100. package/dist/model/unstakeStepType.d.ts +0 -15
  101. package/dist/model/unstakeStepType.js +0 -13
  102. package/dist/model/withdrawalStep.d.ts +0 -32
  103. package/dist/model/withdrawalStep.js +0 -33
  104. package/dist/model/withdrawalStepElement.d.ts +0 -30
  105. package/dist/model/withdrawalStepElement.js +0 -33
  106. package/dist/model/withdrawalStepType.d.ts +0 -15
  107. package/dist/model/withdrawalStepType.js +0 -13
  108. package/model/addLinkedWalletForUserRequest.ts +0 -40
  109. package/model/allManagedUsersResponse.ts +0 -59
  110. package/model/createManagedUserRequest.ts +0 -31
  111. package/model/depositAddress.ts +0 -46
  112. package/model/depositAddressesForUserResponse.ts +0 -38
  113. package/model/getTransactionsResponse.ts +0 -59
  114. package/model/managedUser.ts +0 -40
  115. package/model/managedUserDetails.ts +0 -47
  116. package/model/order.ts +0 -68
  117. package/model/orderDocument.ts +0 -106
  118. package/model/orderDocumentSteps.ts +0 -44
  119. package/model/orderType.ts +0 -21
  120. package/model/orderUpdatePayload.ts +0 -52
  121. package/model/portfolioEntity.ts +0 -49
  122. package/model/stakeStep.ts +0 -43
  123. package/model/stakeStepElement.ts +0 -41
  124. package/model/stepStatus.ts +0 -21
  125. package/model/transaction.ts +0 -80
  126. package/model/transactionEventType.ts +0 -23
  127. package/model/transactionsforUser.ts +0 -59
  128. package/model/unstakeStep.ts +0 -43
  129. package/model/unstakeStepElement.ts +0 -41
  130. package/model/unstakeStepType.ts +0 -32
  131. package/model/withdrawalStep.ts +0 -43
  132. package/model/withdrawalStepElement.ts +0 -41
  133. package/model/withdrawalStepType.ts +0 -24
@@ -1,80 +0,0 @@
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 { Asset } from './asset';
14
- import { TransactionEventType } from './transactionEventType';
15
-
16
- /**
17
- * Details of transactions including type, amount, and asset.
18
- */
19
- export class Transaction {
20
- /**
21
- * The date and time when the transaction occurred.
22
- */
23
- 'eventTime': Date;
24
- 'eventType': TransactionEventType;
25
- /**
26
- * Asset amount involved in the transaction.
27
- */
28
- 'assetAmount': number;
29
- 'asset': Asset;
30
- /**
31
- * Unique identifier for the order associated with the transaction.
32
- */
33
- 'orderId'?: string;
34
- /**
35
- * Unique identifier for the transaction.
36
- */
37
- 'eventId'?: string;
38
-
39
- static discriminator: string | undefined = undefined;
40
-
41
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
42
- {
43
- "name": "eventTime",
44
- "baseName": "eventTime",
45
- "type": "Date"
46
- },
47
- {
48
- "name": "eventType",
49
- "baseName": "eventType",
50
- "type": "TransactionEventType"
51
- },
52
- {
53
- "name": "assetAmount",
54
- "baseName": "assetAmount",
55
- "type": "number"
56
- },
57
- {
58
- "name": "asset",
59
- "baseName": "asset",
60
- "type": "Asset"
61
- },
62
- {
63
- "name": "orderId",
64
- "baseName": "orderId",
65
- "type": "string"
66
- },
67
- {
68
- "name": "eventId",
69
- "baseName": "eventId",
70
- "type": "string"
71
- } ];
72
-
73
- static getAttributeTypeMap() {
74
- return Transaction.attributeTypeMap;
75
- }
76
- }
77
-
78
- export namespace Transaction {
79
- }
80
-
@@ -1,23 +0,0 @@
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
- /**
15
- * Supported transaction types.
16
- */
17
- export type TransactionEventType =
18
- 'stake' |
19
- 'unstake' |
20
- 'withdrawal' |
21
- 'deposit' |
22
- 'reward';
23
-
@@ -1,59 +0,0 @@
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 { Transaction } from './transaction';
14
-
15
- export class TransactionsforUser {
16
- 'transactions': Array<Transaction>;
17
- /**
18
- * Total number of pages
19
- */
20
- 'pages': number;
21
- /**
22
- * Total number of transactions
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": "transactions",
35
- "baseName": "transactions",
36
- "type": "Array<Transaction>"
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 TransactionsforUser.attributeTypeMap;
56
- }
57
- }
58
-
59
-
@@ -1,43 +0,0 @@
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 { UnstakeStepType } from './unstakeStepType';
14
-
15
- export class UnstakeStep {
16
- 'type'?: UnstakeStepType;
17
- /**
18
- * The timestamp when unstaking was processed.
19
- */
20
- 'timestamp'?: Date;
21
-
22
- static discriminator: string | undefined = undefined;
23
-
24
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25
- {
26
- "name": "type",
27
- "baseName": "type",
28
- "type": "UnstakeStepType"
29
- },
30
- {
31
- "name": "timestamp",
32
- "baseName": "timestamp",
33
- "type": "Date"
34
- } ];
35
-
36
- static getAttributeTypeMap() {
37
- return UnstakeStep.attributeTypeMap;
38
- }
39
- }
40
-
41
- export namespace UnstakeStep {
42
- }
43
-
@@ -1,41 +0,0 @@
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 { StepStatus } from './stepStatus';
14
- import { UnstakeStep } from './unstakeStep';
15
-
16
- export class UnstakeStepElement {
17
- 'steps'?: Array<UnstakeStep>;
18
- 'status'?: StepStatus;
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- {
24
- "name": "steps",
25
- "baseName": "steps",
26
- "type": "Array<UnstakeStep>"
27
- },
28
- {
29
- "name": "status",
30
- "baseName": "status",
31
- "type": "StepStatus"
32
- } ];
33
-
34
- static getAttributeTypeMap() {
35
- return UnstakeStepElement.attributeTypeMap;
36
- }
37
- }
38
-
39
- export namespace UnstakeStepElement {
40
- }
41
-
@@ -1,32 +0,0 @@
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
- /**
15
- * Specifies the status of the unstaking process.
16
- */
17
- export type UnstakeStepType =
18
- 'unstake_transaction_requested' |
19
- 'unstake_transaction_submitted' |
20
- 'unstake_transaction_finalized' |
21
- 'transfer_to_liquid_submitted' |
22
- 'transfer_to_liquid_finalized' |
23
- 'standardized' |
24
- 'postgres_registered_unstake' |
25
- 'postgres_registered_release' |
26
- 'done' |
27
- 'reward_transfer_submitted' |
28
- 'reward_transfer_finalized' |
29
- 'withdrawal_transaction_submitted' |
30
- 'withdrawal_transaction_finalized' |
31
- 'rewards_distributed';
32
-
@@ -1,43 +0,0 @@
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 { WithdrawalStepType } from './withdrawalStepType';
14
-
15
- export class WithdrawalStep {
16
- 'type'?: WithdrawalStepType;
17
- /**
18
- * The timestamp when withdrawal was processed.
19
- */
20
- 'timestamp'?: Date;
21
-
22
- static discriminator: string | undefined = undefined;
23
-
24
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25
- {
26
- "name": "type",
27
- "baseName": "type",
28
- "type": "WithdrawalStepType"
29
- },
30
- {
31
- "name": "timestamp",
32
- "baseName": "timestamp",
33
- "type": "Date"
34
- } ];
35
-
36
- static getAttributeTypeMap() {
37
- return WithdrawalStep.attributeTypeMap;
38
- }
39
- }
40
-
41
- export namespace WithdrawalStep {
42
- }
43
-
@@ -1,41 +0,0 @@
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 { StepStatus } from './stepStatus';
14
- import { WithdrawalStep } from './withdrawalStep';
15
-
16
- export class WithdrawalStepElement {
17
- 'steps'?: Array<WithdrawalStep>;
18
- 'status'?: StepStatus;
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- {
24
- "name": "steps",
25
- "baseName": "steps",
26
- "type": "Array<WithdrawalStep>"
27
- },
28
- {
29
- "name": "status",
30
- "baseName": "status",
31
- "type": "StepStatus"
32
- } ];
33
-
34
- static getAttributeTypeMap() {
35
- return WithdrawalStepElement.attributeTypeMap;
36
- }
37
- }
38
-
39
- export namespace WithdrawalStepElement {
40
- }
41
-
@@ -1,24 +0,0 @@
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
- /**
15
- * Specifies the status of the withdrawal process.
16
- */
17
- export type WithdrawalStepType =
18
- 'postgres_reserved_tokens' |
19
- 'transferred_to_address' |
20
- 'finalized_withdrawal_transfer' |
21
- 'postgres_registered_withdrawal' |
22
- 'done' |
23
- 'waiting_for_auth';
24
-