@avalabs/glacier-sdk 2.8.0-canary.c69ce41.0 → 2.8.0-canary.c7cfc1b.0

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 (49) hide show
  1. package/dist/index.d.ts +359 -31
  2. package/dist/index.js +165 -12
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
  6. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  8. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  9. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  10. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  11. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  12. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  13. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  14. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  15. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  16. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  17. package/esm/generated/models/EventType.d.ts +5 -0
  18. package/esm/generated/models/EventType.js +6 -0
  19. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  20. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  21. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  22. package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
  23. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  24. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  25. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  26. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  27. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  28. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  29. package/esm/generated/models/WebhookStatus.js +7 -0
  30. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  31. package/esm/generated/models/WebhookStatusType.js +7 -0
  32. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  33. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  34. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  35. package/esm/generated/models/XChainTransactionType.js +11 -0
  36. package/esm/generated/services/DefaultService.d.ts +67 -0
  37. package/esm/generated/services/DefaultService.js +55 -0
  38. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  39. package/esm/generated/services/EvmContractsService.js +16 -0
  40. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  41. package/esm/generated/services/NfTsService.d.ts +25 -0
  42. package/esm/generated/services/NfTsService.js +19 -0
  43. package/esm/generated/services/OperationsService.d.ts +11 -11
  44. package/esm/generated/services/OperationsService.js +10 -10
  45. package/esm/generated/services/PrimaryNetworkService.d.ts +9 -5
  46. package/esm/generated/services/PrimaryNetworkService.js +4 -2
  47. package/esm/index.d.ts +17 -0
  48. package/esm/index.js +9 -0
  49. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
4
5
 
5
6
  type XChainLinearTransaction = {
6
7
  /**
@@ -18,7 +19,7 @@ type XChainLinearTransaction = {
18
19
  /**
19
20
  * Type of transaction.
20
21
  */
21
- txType: string;
22
+ txType: XChainTransactionType;
22
23
  /**
23
24
  * Hex encoded memo bytes for this transaction.
24
25
  */
@@ -2,6 +2,7 @@ import { Asset } from './Asset.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
6
 
6
7
  type XChainNonLinearTransaction = {
7
8
  /**
@@ -19,7 +20,7 @@ type XChainNonLinearTransaction = {
19
20
  /**
20
21
  * Type of transaction.
21
22
  */
22
- txType: string;
23
+ txType: XChainTransactionType;
23
24
  /**
24
25
  * Hex encoded memo bytes for this transaction.
25
26
  */
@@ -0,0 +1,10 @@
1
+ declare enum XChainTransactionType {
2
+ BASE_TX = "BaseTx",
3
+ CREATE_ASSET_TX = "CreateAssetTx",
4
+ OPERATION_TX = "OperationTx",
5
+ IMPORT_TX = "ImportTx",
6
+ EXPORT_TX = "ExportTx",
7
+ UNKNOWN = "UNKNOWN"
8
+ }
9
+
10
+ export { XChainTransactionType };
@@ -0,0 +1,11 @@
1
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
3
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
+ return XChainTransactionType2;
9
+ })(XChainTransactionType || {});
10
+
11
+ export { XChainTransactionType };
@@ -0,0 +1,67 @@
1
+ import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
+ import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
+ import { WebhookResponse } from '../models/WebhookResponse.js';
5
+ import { WebhookStatus } from '../models/WebhookStatus.js';
6
+ import { CancelablePromise } from '../core/CancelablePromise.js';
7
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
+
9
+ declare class DefaultService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * @returns any
14
+ * @throws ApiError
15
+ */
16
+ mediaControllerUploadImage(): CancelablePromise<any>;
17
+ /**
18
+ * Register a webhook
19
+ * Registers a new webhook.
20
+ * @returns WebhookResponse
21
+ * @throws ApiError
22
+ */
23
+ registerWebhook({ requestBody, }: {
24
+ requestBody: RegisterWebhookRequest;
25
+ }): CancelablePromise<WebhookResponse>;
26
+ /**
27
+ * List webhooks
28
+ * Lists webhooks for the user.
29
+ * @returns ListWebhooksResponse
30
+ * @throws ApiError
31
+ */
32
+ listWebhooks({ pageSize, pageToken, status, }: {
33
+ /**
34
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
+ */
36
+ pageSize?: number;
37
+ /**
38
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
+ */
40
+ pageToken?: string;
41
+ /**
42
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
+ */
44
+ status?: WebhookStatus;
45
+ }): CancelablePromise<ListWebhooksResponse>;
46
+ /**
47
+ * Deactivate a webhook
48
+ * Deactivates a webhook by ID.
49
+ * @returns WebhookResponse
50
+ * @throws ApiError
51
+ */
52
+ deactivateWebhook({ id, }: {
53
+ /**
54
+ * The webhook identifier.
55
+ */
56
+ id: string;
57
+ }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
+ }
66
+
67
+ export { DefaultService };
@@ -0,0 +1,55 @@
1
+ class DefaultService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ mediaControllerUploadImage() {
6
+ return this.httpRequest.request({
7
+ method: "POST",
8
+ url: "/v1/media/uploadImage"
9
+ });
10
+ }
11
+ registerWebhook({
12
+ requestBody
13
+ }) {
14
+ return this.httpRequest.request({
15
+ method: "POST",
16
+ url: "/v1/webhooks",
17
+ body: requestBody,
18
+ mediaType: "application/json"
19
+ });
20
+ }
21
+ listWebhooks({
22
+ pageSize = 10,
23
+ pageToken,
24
+ status
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/webhooks",
29
+ query: {
30
+ "pageSize": pageSize,
31
+ "pageToken": pageToken,
32
+ "status": status
33
+ }
34
+ });
35
+ }
36
+ deactivateWebhook({
37
+ id
38
+ }) {
39
+ return this.httpRequest.request({
40
+ method: "DELETE",
41
+ url: "/v1/webhooks/{id}",
42
+ path: {
43
+ "id": id
44
+ }
45
+ });
46
+ }
47
+ generateSharedSecret() {
48
+ return this.httpRequest.request({
49
+ method: "POST",
50
+ url: "/v1/webhooks:generateSharedSecret"
51
+ });
52
+ }
53
+ }
54
+
55
+ export { DefaultService };
@@ -1,7 +1,9 @@
1
+ import { ContractSubmissionBody } from '../models/ContractSubmissionBody.js';
1
2
  import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
3
  import { Erc20Contract } from '../models/Erc20Contract.js';
3
4
  import { Erc721Contract } from '../models/Erc721Contract.js';
4
5
  import { UnknownContract } from '../models/UnknownContract.js';
6
+ import { UpdateContractResponse } from '../models/UpdateContractResponse.js';
5
7
  import { CancelablePromise } from '../core/CancelablePromise.js';
6
8
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
9
 
@@ -24,6 +26,23 @@ declare class EvmContractsService {
24
26
  */
25
27
  address: string;
26
28
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
29
+ /**
30
+ * Update contract information
31
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
32
+ * @returns UpdateContractResponse
33
+ * @throws ApiError
34
+ */
35
+ updateContractInfo({ chainId, address, requestBody, }: {
36
+ /**
37
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
+ */
39
+ chainId: string;
40
+ /**
41
+ * Contract address on the relevant chain.
42
+ */
43
+ address: string;
44
+ requestBody: ContractSubmissionBody;
45
+ }): CancelablePromise<UpdateContractResponse>;
27
46
  }
28
47
 
29
48
  export { EvmContractsService };
@@ -15,6 +15,22 @@ class EvmContractsService {
15
15
  }
16
16
  });
17
17
  }
18
+ updateContractInfo({
19
+ chainId,
20
+ address,
21
+ requestBody
22
+ }) {
23
+ return this.httpRequest.request({
24
+ method: "PATCH",
25
+ url: "/v1/chains/{chainId}/contracts/{address}",
26
+ path: {
27
+ "chainId": chainId,
28
+ "address": address
29
+ },
30
+ body: requestBody,
31
+ mediaType: "application/json"
32
+ });
33
+ }
18
34
  }
19
35
 
20
36
  export { EvmContractsService };
@@ -75,7 +75,13 @@ declare class EvmTransactionsService {
75
75
  * A wallet address.
76
76
  */
77
77
  address: string;
78
+ /**
79
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
80
+ */
78
81
  startBlock?: number;
82
+ /**
83
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
84
+ */
79
85
  endBlock?: number;
80
86
  /**
81
87
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -111,7 +117,13 @@ declare class EvmTransactionsService {
111
117
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
112
118
  */
113
119
  pageToken?: string;
120
+ /**
121
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
122
+ */
114
123
  startBlock?: number;
124
+ /**
125
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
126
+ */
115
127
  endBlock?: number;
116
128
  /**
117
129
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -133,7 +145,13 @@ declare class EvmTransactionsService {
133
145
  * A wallet address.
134
146
  */
135
147
  address: string;
148
+ /**
149
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
150
+ */
136
151
  startBlock?: number;
152
+ /**
153
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
154
+ */
137
155
  endBlock?: number;
138
156
  /**
139
157
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -159,7 +177,13 @@ declare class EvmTransactionsService {
159
177
  * A wallet address.
160
178
  */
161
179
  address: string;
180
+ /**
181
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
182
+ */
162
183
  startBlock?: number;
184
+ /**
185
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
186
+ */
163
187
  endBlock?: number;
164
188
  /**
165
189
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -185,7 +209,13 @@ declare class EvmTransactionsService {
185
209
  * A wallet address.
186
210
  */
187
211
  address: string;
212
+ /**
213
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
214
+ */
188
215
  startBlock?: number;
216
+ /**
217
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
218
+ */
189
219
  endBlock?: number;
190
220
  /**
191
221
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -211,7 +241,13 @@ declare class EvmTransactionsService {
211
241
  * A wallet address.
212
242
  */
213
243
  address: string;
244
+ /**
245
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
246
+ */
214
247
  startBlock?: number;
248
+ /**
249
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
250
+ */
215
251
  endBlock?: number;
216
252
  /**
217
253
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -239,7 +275,13 @@ declare class EvmTransactionsService {
239
275
  * A wallet address.
240
276
  */
241
277
  address: string;
278
+ /**
279
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
280
+ */
242
281
  startBlock?: number;
282
+ /**
283
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
284
+ */
243
285
  endBlock?: number;
244
286
  /**
245
287
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1,5 +1,6 @@
1
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
2
2
  import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { ListNftTokens } from '../models/ListNftTokens.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
@@ -26,6 +27,30 @@ declare class NfTsService {
26
27
  */
27
28
  tokenId: string;
28
29
  }): CancelablePromise<any>;
30
+ /**
31
+ * List tokens
32
+ * Lists tokens for an NFT contract.
33
+ * @returns ListNftTokens
34
+ * @throws ApiError
35
+ */
36
+ listTokens({ chainId, address, pageSize, pageToken, }: {
37
+ /**
38
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
+ */
40
+ chainId: string;
41
+ /**
42
+ * Contract address on the relevant chain.
43
+ */
44
+ address: string;
45
+ /**
46
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
47
+ */
48
+ pageSize?: number;
49
+ /**
50
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
51
+ */
52
+ pageToken?: string;
53
+ }): CancelablePromise<ListNftTokens>;
29
54
  /**
30
55
  * Get token details
31
56
  * Gets token details for a specific token of an NFT contract.
@@ -17,6 +17,25 @@ class NfTsService {
17
17
  }
18
18
  });
19
19
  }
20
+ listTokens({
21
+ chainId,
22
+ address,
23
+ pageSize = 10,
24
+ pageToken
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
29
+ path: {
30
+ "chainId": chainId,
31
+ "address": address
32
+ },
33
+ query: {
34
+ "pageSize": pageSize,
35
+ "pageToken": pageToken
36
+ }
37
+ });
38
+ }
20
39
  getTokenDetails({
21
40
  chainId,
22
41
  address,
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
7
  declare class OperationsService {
8
8
  readonly httpRequest: BaseHttpRequest;
9
9
  constructor(httpRequest: BaseHttpRequest);
10
- /**
11
- * Create transaction export operation
12
- * Trigger a transaction export operation with given parameters.
13
- *
14
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
15
- * @returns OperationStatusResponse
16
- * @throws ApiError
17
- */
18
- postTransactionExportJob({ requestBody, }: {
19
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
20
- }): CancelablePromise<OperationStatusResponse>;
21
10
  /**
22
11
  * Get operation
23
12
  * Gets operation details for the given operation id.
@@ -30,6 +19,17 @@ declare class OperationsService {
30
19
  */
31
20
  operationId: string;
32
21
  }): CancelablePromise<OperationStatusResponse>;
22
+ /**
23
+ * Create transaction export operation
24
+ * Trigger a transaction export operation with given parameters.
25
+ *
26
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
27
+ * @returns OperationStatusResponse
28
+ * @throws ApiError
29
+ */
30
+ postTransactionExportJob({ requestBody, }: {
31
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
32
+ }): CancelablePromise<OperationStatusResponse>;
33
33
  }
34
34
 
35
35
  export { OperationsService };
@@ -2,16 +2,6 @@ class OperationsService {
2
2
  constructor(httpRequest) {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
- postTransactionExportJob({
6
- requestBody
7
- }) {
8
- return this.httpRequest.request({
9
- method: "POST",
10
- url: "/v1/operations/transactions:export",
11
- body: requestBody,
12
- mediaType: "application/json"
13
- });
14
- }
15
5
  getOperationResult({
16
6
  operationId
17
7
  }) {
@@ -23,6 +13,16 @@ class OperationsService {
23
13
  }
24
14
  });
25
15
  }
16
+ postTransactionExportJob({
17
+ requestBody
18
+ }) {
19
+ return this.httpRequest.request({
20
+ method: "POST",
21
+ url: "/v1/operations/transactions:export",
22
+ body: requestBody,
23
+ mediaType: "application/json"
24
+ });
25
+ }
26
26
  }
27
27
 
28
28
  export { OperationsService };
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
118
118
  * @returns ListValidatorDetailsResponse
119
119
  * @throws ApiError
120
120
  */
121
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
121
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
122
122
  /**
123
123
  * Either mainnet or a testnet.
124
124
  */
@@ -132,11 +132,11 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
136
136
  */
137
137
  minTimeRemaining?: any;
138
138
  /**
139
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
140
140
  */
141
141
  maxTimeRemaining?: any;
142
142
  /**
@@ -148,11 +148,11 @@ declare class PrimaryNetworkService {
148
148
  */
149
149
  maxDelegationCapacity?: number;
150
150
  /**
151
- * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
151
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
152
152
  */
153
153
  minFeePercentage?: any;
154
154
  /**
155
- * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
155
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
156
156
  */
157
157
  maxFeePercentage?: any;
158
158
  /**
@@ -167,6 +167,10 @@ declare class PrimaryNetworkService {
167
167
  * Validation status of the node.
168
168
  */
169
169
  validationStatus?: ValidationStatusType;
170
+ /**
171
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
+ */
173
+ subnetId?: string;
170
174
  }): CancelablePromise<ListValidatorDetailsResponse>;
171
175
  /**
172
176
  * Get single validator details
@@ -93,7 +93,8 @@ class PrimaryNetworkService {
93
93
  maxFeePercentage,
94
94
  nodeIds,
95
95
  sortOrder,
96
- validationStatus
96
+ validationStatus,
97
+ subnetId
97
98
  }) {
98
99
  return this.httpRequest.request({
99
100
  method: "GET",
@@ -112,7 +113,8 @@ class PrimaryNetworkService {
112
113
  "maxFeePercentage": maxFeePercentage,
113
114
  "nodeIds": nodeIds,
114
115
  "sortOrder": sortOrder,
115
- "validationStatus": validationStatus
116
+ "validationStatus": validationStatus,
117
+ "subnetId": subnetId
116
118
  }
117
119
  });
118
120
  }
package/esm/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { CancelError, CancelablePromise } from './generated/core/CancelablePromi
5
5
  export { OpenAPI, OpenAPIConfig } from './generated/core/OpenAPI.js';
6
6
  export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
7
7
  export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
8
+ export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
8
9
  export { Asset } from './generated/models/Asset.js';
9
10
  export { Blockchain } from './generated/models/Blockchain.js';
10
11
  export { BlockchainId } from './generated/models/BlockchainId.js';
@@ -21,6 +22,11 @@ export { ChainStatus } from './generated/models/ChainStatus.js';
21
22
  export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
22
23
  export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
23
24
  export { ContractDeploymentDetails } from './generated/models/ContractDeploymentDetails.js';
25
+ export { ContractSubmissionBody } from './generated/models/ContractSubmissionBody.js';
26
+ export { ContractSubmissionErc1155 } from './generated/models/ContractSubmissionErc1155.js';
27
+ export { ContractSubmissionErc20 } from './generated/models/ContractSubmissionErc20.js';
28
+ export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionErc721.js';
29
+ export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
24
30
  export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
25
31
  export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
26
32
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
@@ -43,6 +49,7 @@ export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
43
49
  export { Erc721TokenMetadata } from './generated/models/Erc721TokenMetadata.js';
44
50
  export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
45
51
  export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
52
+ export { EventType } from './generated/models/EventType.js';
46
53
  export { EvmBlock } from './generated/models/EvmBlock.js';
47
54
  export { EVMInput } from './generated/models/EVMInput.js';
48
55
  export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
@@ -76,6 +83,7 @@ export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.
76
83
  export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
77
84
  export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
78
85
  export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
86
+ export { ListNftTokens } from './generated/models/ListNftTokens.js';
79
87
  export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
80
88
  export { ListPChainTransactionsResponse } from './generated/models/ListPChainTransactionsResponse.js';
81
89
  export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
@@ -86,6 +94,7 @@ export { ListTransactionDetailsResponse } from './generated/models/ListTransacti
86
94
  export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
87
95
  export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
88
96
  export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
97
+ export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
89
98
  export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
90
99
  export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
91
100
  export { ListXChainVerticesResponse } from './generated/models/ListXChainVerticesResponse.js';
@@ -120,11 +129,13 @@ export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainN
120
129
  export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
121
130
  export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
122
131
  export { ProposerDetails } from './generated/models/ProposerDetails.js';
132
+ export { RegisterWebhookRequest } from './generated/models/RegisterWebhookRequest.js';
123
133
  export { ResourceLink } from './generated/models/ResourceLink.js';
124
134
  export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
125
135
  export { Rewards } from './generated/models/Rewards.js';
126
136
  export { RewardType } from './generated/models/RewardType.js';
127
137
  export { RichAddress } from './generated/models/RichAddress.js';
138
+ export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
128
139
  export { SortOrder } from './generated/models/SortOrder.js';
129
140
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
130
141
  export { Subnet } from './generated/models/Subnet.js';
@@ -134,6 +145,7 @@ export { TransactionMethodType } from './generated/models/TransactionMethodType.
134
145
  export { TransactionStatus } from './generated/models/TransactionStatus.js';
135
146
  export { TransactionVertexDetail } from './generated/models/TransactionVertexDetail.js';
136
147
  export { UnknownContract } from './generated/models/UnknownContract.js';
148
+ export { UpdateContractResponse } from './generated/models/UpdateContractResponse.js';
137
149
  export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
138
150
  export { Utxo } from './generated/models/Utxo.js';
139
151
  export { UtxoCredential } from './generated/models/UtxoCredential.js';
@@ -142,6 +154,9 @@ export { ValidationStatusType } from './generated/models/ValidationStatusType.js
142
154
  export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
143
155
  export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
144
156
  export { VmName } from './generated/models/VmName.js';
157
+ export { WebhookResponse } from './generated/models/WebhookResponse.js';
158
+ export { WebhookStatus } from './generated/models/WebhookStatus.js';
159
+ export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
145
160
  export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
146
161
  export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
147
162
  export { XChainBalances } from './generated/models/XChainBalances.js';
@@ -149,7 +164,9 @@ export { XChainId } from './generated/models/XChainId.js';
149
164
  export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
150
165
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
151
166
  export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
167
+ export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
152
168
  export { XChainVertex } from './generated/models/XChainVertex.js';
169
+ export { DefaultService } from './generated/services/DefaultService.js';
153
170
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
154
171
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
155
172
  export { EvmChainsService } from './generated/services/EvmChainsService.js';
package/esm/index.js CHANGED
@@ -12,6 +12,10 @@ export { CChainImportTransaction } from './generated/models/CChainImportTransact
12
12
  export { ChainStatus } from './generated/models/ChainStatus.js';
13
13
  export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
14
14
  export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
15
+ export { ContractSubmissionErc1155 } from './generated/models/ContractSubmissionErc1155.js';
16
+ export { ContractSubmissionErc20 } from './generated/models/ContractSubmissionErc20.js';
17
+ export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionErc721.js';
18
+ export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
15
19
  export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
16
20
  export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
17
21
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
@@ -25,6 +29,7 @@ export { Erc20TokenBalance } from './generated/models/Erc20TokenBalance.js';
25
29
  export { Erc721Contract } from './generated/models/Erc721Contract.js';
26
30
  export { Erc721Token } from './generated/models/Erc721Token.js';
27
31
  export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
32
+ export { EventType } from './generated/models/EventType.js';
28
33
  export { InternalTransactionOpCall } from './generated/models/InternalTransactionOpCall.js';
29
34
  export { Network } from './generated/models/Network.js';
30
35
  export { NetworkType } from './generated/models/NetworkType.js';
@@ -48,9 +53,13 @@ export { UnknownContract } from './generated/models/UnknownContract.js';
48
53
  export { UtxoType } from './generated/models/UtxoType.js';
49
54
  export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
50
55
  export { VmName } from './generated/models/VmName.js';
56
+ export { WebhookStatus } from './generated/models/WebhookStatus.js';
57
+ export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
51
58
  export { XChainId } from './generated/models/XChainId.js';
52
59
  export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
53
60
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
61
+ export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
62
+ export { DefaultService } from './generated/services/DefaultService.js';
54
63
  export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
55
64
  export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
56
65
  export { EvmChainsService } from './generated/services/EvmChainsService.js';