@avalabs/glacier-sdk 3.1.0-canary.f2a8d63.0 → 3.1.0-canary.f633405.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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +205 -97
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/CancelablePromise.js +1 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.js +1 -1
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/AddressActivityEventType.js +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
- package/esm/generated/models/Blockchain.d.ts +4 -0
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +10 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +2 -4
- package/esm/generated/models/EVMAddressActivityResponse.d.ts +2 -2
- package/esm/generated/models/InternalTransaction.d.ts +16 -15
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +2 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +4 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/{PlatformBalanceThresholdFilter.d.ts → PrimaryNetworkBalanceThresholdFilter.d.ts} +2 -2
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +2 -2
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +9 -7
- package/esm/index.d.ts +19 -8
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/EventType.d.ts +0 -7
- package/esm/generated/models/EventType.js +0 -1
- package/esm/generated/models/PlatformActivityKeyType.d.ts +0 -10
- package/esm/generated/models/PlatformActivityKeyType.js +0 -1
- package/esm/generated/models/PlatformActivityMetadata.d.ts +0 -37
- package/esm/generated/models/PlatformActivityRequest.d.ts +0 -31
- package/esm/generated/models/PlatformActivityRequest.js +0 -1
- package/esm/generated/models/PlatformActivityResponse.d.ts +0 -17
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +0 -11
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +0 -10
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAvaxSupply(){return this.httpRequest.request({method:"GET",url:"/v1/avax/supply",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as AvaxSupplyService};
|
|
@@ -84,7 +84,7 @@ declare class PrimaryNetworkService {
|
|
|
84
84
|
*/
|
|
85
85
|
pageToken?: string;
|
|
86
86
|
/**
|
|
87
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
87
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
88
88
|
*/
|
|
89
89
|
pageSize?: number;
|
|
90
90
|
/**
|
|
@@ -124,7 +124,7 @@ declare class PrimaryNetworkService {
|
|
|
124
124
|
*/
|
|
125
125
|
pageToken?: string;
|
|
126
126
|
/**
|
|
127
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
127
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
128
128
|
*/
|
|
129
129
|
pageSize?: number;
|
|
130
130
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getBlockchainById({blockchainId:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}",path:{blockchainId:e,network:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=10,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listL1Validators({network:e,pageToken:r,pageSize:t=10,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/l1Validators",path:{network:e},query:{pageToken:r,pageSize:t,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=100,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getBlockchainById({blockchainId:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}",path:{blockchainId:e,network:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=100,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listL1Validators({network:e,pageToken:r,pageSize:t=10,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/l1Validators",path:{network:e},query:{pageToken:r,pageSize:t,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
|
|
@@ -3,10 +3,12 @@ import { EVMAddressActivityRequest } from '../models/EVMAddressActivityRequest.j
|
|
|
3
3
|
import { EVMAddressActivityResponse } from '../models/EVMAddressActivityResponse.js';
|
|
4
4
|
import { ListWebhookAddressesResponse } from '../models/ListWebhookAddressesResponse.js';
|
|
5
5
|
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { PrimaryNetworkAddressActivityRequest } from '../models/PrimaryNetworkAddressActivityRequest.js';
|
|
7
|
+
import { PrimaryNetworkAddressActivityResponse } from '../models/PrimaryNetworkAddressActivityResponse.js';
|
|
8
8
|
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
9
9
|
import { UpdateWebhookRequest } from '../models/UpdateWebhookRequest.js';
|
|
10
|
+
import { ValidatorActivityRequest } from '../models/ValidatorActivityRequest.js';
|
|
11
|
+
import { ValidatorActivityResponse } from '../models/ValidatorActivityResponse.js';
|
|
10
12
|
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
11
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
12
14
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -21,8 +23,8 @@ declare class WebhooksService {
|
|
|
21
23
|
* @throws ApiError
|
|
22
24
|
*/
|
|
23
25
|
createWebhook({ requestBody, }: {
|
|
24
|
-
requestBody: (EVMAddressActivityRequest |
|
|
25
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
26
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
27
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
26
28
|
/**
|
|
27
29
|
* List webhooks
|
|
28
30
|
* Lists webhooks for the user.
|
|
@@ -54,7 +56,7 @@ declare class WebhooksService {
|
|
|
54
56
|
* The webhook identifier.
|
|
55
57
|
*/
|
|
56
58
|
id: string;
|
|
57
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
59
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
58
60
|
/**
|
|
59
61
|
* Deactivate a webhook
|
|
60
62
|
* Deactivates a webhook by ID.
|
|
@@ -66,7 +68,7 @@ declare class WebhooksService {
|
|
|
66
68
|
* The webhook identifier.
|
|
67
69
|
*/
|
|
68
70
|
id: string;
|
|
69
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
71
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
70
72
|
/**
|
|
71
73
|
* Update a webhook
|
|
72
74
|
* Updates an existing webhook.
|
|
@@ -79,7 +81,7 @@ declare class WebhooksService {
|
|
|
79
81
|
*/
|
|
80
82
|
id: string;
|
|
81
83
|
requestBody: UpdateWebhookRequest;
|
|
82
|
-
}): CancelablePromise<(EVMAddressActivityResponse |
|
|
84
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
83
85
|
/**
|
|
84
86
|
* Generate or rotate a shared secret
|
|
85
87
|
* Generates a new shared secret or rotate an existing one.
|
package/esm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { AccessListData } from './generated/models/AccessListData.js';
|
|
|
7
7
|
export { AccessRequest } from './generated/models/AccessRequest.js';
|
|
8
8
|
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
9
9
|
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
10
|
+
export { AddressActivityEventType } from './generated/models/AddressActivityEventType.js';
|
|
10
11
|
export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
|
|
11
12
|
export { AddressesChangeRequest } from './generated/models/AddressesChangeRequest.js';
|
|
12
13
|
export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.js';
|
|
@@ -19,6 +20,7 @@ export { BalanceOwner } from './generated/models/BalanceOwner.js';
|
|
|
19
20
|
export { Blockchain } from './generated/models/Blockchain.js';
|
|
20
21
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
21
22
|
export { BlockchainIds } from './generated/models/BlockchainIds.js';
|
|
23
|
+
export { BlockchainInfo } from './generated/models/BlockchainInfo.js';
|
|
22
24
|
export { BlsCredentials } from './generated/models/BlsCredentials.js';
|
|
23
25
|
export { CChainAtomicBalances } from './generated/models/CChainAtomicBalances.js';
|
|
24
26
|
export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
|
|
@@ -66,7 +68,6 @@ export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
|
|
|
66
68
|
export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
|
|
67
69
|
export { ERCToken } from './generated/models/ERCToken.js';
|
|
68
70
|
export { ERCTransfer } from './generated/models/ERCTransfer.js';
|
|
69
|
-
export { EventType } from './generated/models/EventType.js';
|
|
70
71
|
export { EVMAddressActivityRequest } from './generated/models/EVMAddressActivityRequest.js';
|
|
71
72
|
export { EVMAddressActivityResponse } from './generated/models/EVMAddressActivityResponse.js';
|
|
72
73
|
export { EvmBlock } from './generated/models/EvmBlock.js';
|
|
@@ -167,16 +168,17 @@ export { PendingIcmMessage } from './generated/models/PendingIcmMessage.js';
|
|
|
167
168
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
168
169
|
export { PendingTeleporterMessage } from './generated/models/PendingTeleporterMessage.js';
|
|
169
170
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
170
|
-
export {
|
|
171
|
-
export { PlatformActivityMetadata } from './generated/models/PlatformActivityMetadata.js';
|
|
172
|
-
export { PlatformActivityRequest } from './generated/models/PlatformActivityRequest.js';
|
|
173
|
-
export { PlatformActivityResponse } from './generated/models/PlatformActivityResponse.js';
|
|
174
|
-
export { PlatformActivitySubEvents } from './generated/models/PlatformActivitySubEvents.js';
|
|
175
|
-
export { PlatformAddressActivitySubEventType } from './generated/models/PlatformAddressActivitySubEventType.js';
|
|
176
|
-
export { PlatformBalanceThresholdFilter } from './generated/models/PlatformBalanceThresholdFilter.js';
|
|
171
|
+
export { PlatformAddressActivityKeyType } from './generated/models/PlatformAddressActivityKeyType.js';
|
|
177
172
|
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
173
|
+
export { PrimaryNetworkAddressActivityEventType } from './generated/models/PrimaryNetworkAddressActivityEventType.js';
|
|
174
|
+
export { PrimaryNetworkAddressActivityMetadata } from './generated/models/PrimaryNetworkAddressActivityMetadata.js';
|
|
175
|
+
export { PrimaryNetworkAddressActivityRequest } from './generated/models/PrimaryNetworkAddressActivityRequest.js';
|
|
176
|
+
export { PrimaryNetworkAddressActivityResponse } from './generated/models/PrimaryNetworkAddressActivityResponse.js';
|
|
177
|
+
export { PrimaryNetworkAddressActivitySubEvents } from './generated/models/PrimaryNetworkAddressActivitySubEvents.js';
|
|
178
|
+
export { PrimaryNetworkAddressActivitySubEventType } from './generated/models/PrimaryNetworkAddressActivitySubEventType.js';
|
|
178
179
|
export { PrimaryNetworkAssetCap } from './generated/models/PrimaryNetworkAssetCap.js';
|
|
179
180
|
export { PrimaryNetworkAssetType } from './generated/models/PrimaryNetworkAssetType.js';
|
|
181
|
+
export { PrimaryNetworkBalanceThresholdFilter } from './generated/models/PrimaryNetworkBalanceThresholdFilter.js';
|
|
180
182
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
181
183
|
export { PrimaryNetworkChainInfo } from './generated/models/PrimaryNetworkChainInfo.js';
|
|
182
184
|
export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainName.js';
|
|
@@ -240,10 +242,17 @@ export { Utxo } from './generated/models/Utxo.js';
|
|
|
240
242
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
241
243
|
export { UtxoType } from './generated/models/UtxoType.js';
|
|
242
244
|
export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
|
|
245
|
+
export { ValidatorActivityEventType } from './generated/models/ValidatorActivityEventType.js';
|
|
246
|
+
export { ValidatorActivityKeyType } from './generated/models/ValidatorActivityKeyType.js';
|
|
247
|
+
export { ValidatorActivityMetadata } from './generated/models/ValidatorActivityMetadata.js';
|
|
248
|
+
export { ValidatorActivityRequest } from './generated/models/ValidatorActivityRequest.js';
|
|
249
|
+
export { ValidatorActivityResponse } from './generated/models/ValidatorActivityResponse.js';
|
|
250
|
+
export { ValidatorActivitySubEvents } from './generated/models/ValidatorActivitySubEvents.js';
|
|
243
251
|
export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
|
|
244
252
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
245
253
|
export { VmName } from './generated/models/VmName.js';
|
|
246
254
|
export { WebhookAddressActivityResponse } from './generated/models/WebhookAddressActivityResponse.js';
|
|
255
|
+
export { WebhookInternalTransaction } from './generated/models/WebhookInternalTransaction.js';
|
|
247
256
|
export { WebhookStatus } from './generated/models/WebhookStatus.js';
|
|
248
257
|
export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
|
|
249
258
|
export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
|
|
@@ -254,6 +263,7 @@ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTr
|
|
|
254
263
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
255
264
|
export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
|
|
256
265
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
266
|
+
export { AvaxSupplyService } from './generated/services/AvaxSupplyService.js';
|
|
257
267
|
export { DataApiUsageMetricsService } from './generated/services/DataApiUsageMetricsService.js';
|
|
258
268
|
export { DefaultService } from './generated/services/DefaultService.js';
|
|
259
269
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
@@ -277,3 +287,4 @@ export { SignatureAggregatorService } from './generated/services/SignatureAggreg
|
|
|
277
287
|
export { TeleporterService } from './generated/services/TeleporterService.js';
|
|
278
288
|
export { WebhooksService } from './generated/services/WebhooksService.js';
|
|
279
289
|
export { FetchHttpRequest } from './generated/core/FetchHttpRequest.js';
|
|
290
|
+
export { ApiRequestOptions } from './generated/core/ApiRequestOptions.js';
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CommonBalanceType}from"./generated/models/CommonBalanceType.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredIcmMessage}from"./generated/models/DeliveredIcmMessage.js";export{DeliveredSourceNotIndexedIcmMessage}from"./generated/models/DeliveredSourceNotIndexedIcmMessage.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{
|
|
1
|
+
export{Glacier}from"./generated/Glacier.js";export{ApiError}from"./generated/core/ApiError.js";export{BaseHttpRequest}from"./generated/core/BaseHttpRequest.js";export{CancelError,CancelablePromise}from"./generated/core/CancelablePromise.js";export{OpenAPI}from"./generated/core/OpenAPI.js";export{ActiveDelegatorDetails}from"./generated/models/ActiveDelegatorDetails.js";export{ActiveValidatorDetails}from"./generated/models/ActiveValidatorDetails.js";export{AddressActivityEventType}from"./generated/models/AddressActivityEventType.js";export{ApiFeature}from"./generated/models/ApiFeature.js";export{BlockchainId}from"./generated/models/BlockchainId.js";export{BlockchainIds}from"./generated/models/BlockchainIds.js";export{CChainExportTransaction}from"./generated/models/CChainExportTransaction.js";export{CChainImportTransaction}from"./generated/models/CChainImportTransaction.js";export{ChainStatus}from"./generated/models/ChainStatus.js";export{CommonBalanceType}from"./generated/models/CommonBalanceType.js";export{CompletedDelegatorDetails}from"./generated/models/CompletedDelegatorDetails.js";export{CompletedValidatorDetails}from"./generated/models/CompletedValidatorDetails.js";export{ContractSubmissionErc1155}from"./generated/models/ContractSubmissionErc1155.js";export{ContractSubmissionErc20}from"./generated/models/ContractSubmissionErc20.js";export{ContractSubmissionErc721}from"./generated/models/ContractSubmissionErc721.js";export{ContractSubmissionUnknown}from"./generated/models/ContractSubmissionUnknown.js";export{CurrencyCode}from"./generated/models/CurrencyCode.js";export{DelegationStatusType}from"./generated/models/DelegationStatusType.js";export{DeliveredIcmMessage}from"./generated/models/DeliveredIcmMessage.js";export{DeliveredSourceNotIndexedIcmMessage}from"./generated/models/DeliveredSourceNotIndexedIcmMessage.js";export{DeliveredSourceNotIndexedTeleporterMessage}from"./generated/models/DeliveredSourceNotIndexedTeleporterMessage.js";export{DeliveredTeleporterMessage}from"./generated/models/DeliveredTeleporterMessage.js";export{Erc1155Contract}from"./generated/models/Erc1155Contract.js";export{Erc1155Token}from"./generated/models/Erc1155Token.js";export{Erc1155TokenBalance}from"./generated/models/Erc1155TokenBalance.js";export{Erc20Contract}from"./generated/models/Erc20Contract.js";export{Erc20Token}from"./generated/models/Erc20Token.js";export{Erc20TokenBalance}from"./generated/models/Erc20TokenBalance.js";export{Erc721Contract}from"./generated/models/Erc721Contract.js";export{Erc721Token}from"./generated/models/Erc721Token.js";export{Erc721TokenBalance}from"./generated/models/Erc721TokenBalance.js";export{EVMAddressActivityRequest}from"./generated/models/EVMAddressActivityRequest.js";export{EVMOperationType}from"./generated/models/EVMOperationType.js";export{HealthCheckResultDto}from"./generated/models/HealthCheckResultDto.js";export{HealthIndicatorResultDto}from"./generated/models/HealthIndicatorResultDto.js";export{IcmRewardDetails}from"./generated/models/IcmRewardDetails.js";export{InternalTransactionOpCall}from"./generated/models/InternalTransactionOpCall.js";export{Network}from"./generated/models/Network.js";export{NftTokenMetadataStatus}from"./generated/models/NftTokenMetadataStatus.js";export{OperationStatus}from"./generated/models/OperationStatus.js";export{OperationStatusCode}from"./generated/models/OperationStatusCode.js";export{OperationType}from"./generated/models/OperationType.js";export{PChainId}from"./generated/models/PChainId.js";export{PChainTransactionType}from"./generated/models/PChainTransactionType.js";export{PendingDelegatorDetails}from"./generated/models/PendingDelegatorDetails.js";export{PendingIcmMessage}from"./generated/models/PendingIcmMessage.js";export{PendingTeleporterMessage}from"./generated/models/PendingTeleporterMessage.js";export{PendingValidatorDetails}from"./generated/models/PendingValidatorDetails.js";export{PlatformAddressActivityKeyType}from"./generated/models/PlatformAddressActivityKeyType.js";export{PrimaryNetworkAddressActivityEventType}from"./generated/models/PrimaryNetworkAddressActivityEventType.js";export{PrimaryNetworkAddressActivityRequest}from"./generated/models/PrimaryNetworkAddressActivityRequest.js";export{PrimaryNetworkAddressActivitySubEventType}from"./generated/models/PrimaryNetworkAddressActivitySubEventType.js";export{PrimaryNetworkAssetCap}from"./generated/models/PrimaryNetworkAssetCap.js";export{PrimaryNetworkAssetType}from"./generated/models/PrimaryNetworkAssetType.js";export{PrimaryNetworkChainName}from"./generated/models/PrimaryNetworkChainName.js";export{PrimaryNetworkOperationType}from"./generated/models/PrimaryNetworkOperationType.js";export{PrimaryNetworkRpcMetricsGroupByEnum}from"./generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js";export{PrimaryNetworkRpcTimeIntervalGranularity}from"./generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js";export{PrimaryNetworkRpcUsageMetricsResponseDTO}from"./generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js";export{PrimaryNetworkTxType}from"./generated/models/PrimaryNetworkTxType.js";export{PrimaryNetworkType}from"./generated/models/PrimaryNetworkType.js";export{RemovedValidatorDetails}from"./generated/models/RemovedValidatorDetails.js";export{RequestType}from"./generated/models/RequestType.js";export{ResourceLinkType}from"./generated/models/ResourceLinkType.js";export{RewardType}from"./generated/models/RewardType.js";export{RpcUsageMetricsGroupByEnum}from"./generated/models/RpcUsageMetricsGroupByEnum.js";export{RpcUsageMetricsValueAggregated}from"./generated/models/RpcUsageMetricsValueAggregated.js";export{SortByOption}from"./generated/models/SortByOption.js";export{SortOrder}from"./generated/models/SortOrder.js";export{SubnetRpcTimeIntervalGranularity}from"./generated/models/SubnetRpcTimeIntervalGranularity.js";export{TeleporterRewardDetails}from"./generated/models/TeleporterRewardDetails.js";export{TimeIntervalGranularityExtended}from"./generated/models/TimeIntervalGranularityExtended.js";export{TransactionDirectionType}from"./generated/models/TransactionDirectionType.js";export{TransactionMethodType}from"./generated/models/TransactionMethodType.js";export{TransactionStatus}from"./generated/models/TransactionStatus.js";export{UnknownContract}from"./generated/models/UnknownContract.js";export{UsageMetricsGroupByEnum}from"./generated/models/UsageMetricsGroupByEnum.js";export{UsageMetricsValueDTO}from"./generated/models/UsageMetricsValueDTO.js";export{UtxoType}from"./generated/models/UtxoType.js";export{ValidationStatusType}from"./generated/models/ValidationStatusType.js";export{ValidatorActivityEventType}from"./generated/models/ValidatorActivityEventType.js";export{ValidatorActivityKeyType}from"./generated/models/ValidatorActivityKeyType.js";export{ValidatorActivityRequest}from"./generated/models/ValidatorActivityRequest.js";export{VmName}from"./generated/models/VmName.js";export{WebhookAddressActivityResponse}from"./generated/models/WebhookAddressActivityResponse.js";export{WebhookStatus}from"./generated/models/WebhookStatus.js";export{WebhookStatusType}from"./generated/models/WebhookStatusType.js";export{XChainId}from"./generated/models/XChainId.js";export{XChainLinearTransaction}from"./generated/models/XChainLinearTransaction.js";export{XChainNonLinearTransaction}from"./generated/models/XChainNonLinearTransaction.js";export{XChainTransactionType}from"./generated/models/XChainTransactionType.js";export{AvaxSupplyService}from"./generated/services/AvaxSupplyService.js";export{DataApiUsageMetricsService}from"./generated/services/DataApiUsageMetricsService.js";export{DefaultService}from"./generated/services/DefaultService.js";export{EvmBalancesService}from"./generated/services/EvmBalancesService.js";export{EvmBlocksService}from"./generated/services/EvmBlocksService.js";export{EvmChainsService}from"./generated/services/EvmChainsService.js";export{EvmContractsService}from"./generated/services/EvmContractsService.js";export{EvmTransactionsService}from"./generated/services/EvmTransactionsService.js";export{HealthCheckService}from"./generated/services/HealthCheckService.js";export{InterchainMessagingService}from"./generated/services/InterchainMessagingService.js";export{NfTsService}from"./generated/services/NfTsService.js";export{NotificationsService}from"./generated/services/NotificationsService.js";export{OperationsService}from"./generated/services/OperationsService.js";export{PrimaryNetworkService}from"./generated/services/PrimaryNetworkService.js";export{PrimaryNetworkBalancesService}from"./generated/services/PrimaryNetworkBalancesService.js";export{PrimaryNetworkBlocksService}from"./generated/services/PrimaryNetworkBlocksService.js";export{PrimaryNetworkRewardsService}from"./generated/services/PrimaryNetworkRewardsService.js";export{PrimaryNetworkTransactionsService}from"./generated/services/PrimaryNetworkTransactionsService.js";export{PrimaryNetworkUtxOsService}from"./generated/services/PrimaryNetworkUtxOsService.js";export{PrimaryNetworkVerticesService}from"./generated/services/PrimaryNetworkVerticesService.js";export{SignatureAggregatorService}from"./generated/services/SignatureAggregatorService.js";export{TeleporterService}from"./generated/services/TeleporterService.js";export{WebhooksService}from"./generated/services/WebhooksService.js";export{FetchHttpRequest}from"./generated/core/FetchHttpRequest.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-canary.
|
|
3
|
+
"version": "3.1.0-canary.f633405.0+f633405",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f633405fcbed28fbdfa561f6257dc6c8b71e8a43"
|
|
42
42
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a.PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as EventType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=(d=>(d.ADDRESSES="addresses",d.NODE_ID="nodeId",d.SUBNET_ID="subnetId",d))(d||{});export{d as PlatformActivityKeyType};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PlatformActivityKeyType } from './PlatformActivityKeyType.js';
|
|
2
|
-
import { PlatformActivitySubEvents } from './PlatformActivitySubEvents.js';
|
|
3
|
-
import { PlatformBalanceThresholdFilter } from './PlatformBalanceThresholdFilter.js';
|
|
4
|
-
|
|
5
|
-
type PlatformActivityMetadata = {
|
|
6
|
-
keyType: PlatformActivityKeyType;
|
|
7
|
-
/**
|
|
8
|
-
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
9
|
-
*/
|
|
10
|
-
keys: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* Sub-events to monitor
|
|
13
|
-
*/
|
|
14
|
-
subEvents?: PlatformActivitySubEvents;
|
|
15
|
-
/**
|
|
16
|
-
* Array of hexadecimal strings of the event signatures.
|
|
17
|
-
*/
|
|
18
|
-
eventSignatures?: Array<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Array of node IDs to filter the events
|
|
21
|
-
*/
|
|
22
|
-
nodeIds?: Array<string>;
|
|
23
|
-
/**
|
|
24
|
-
* Array of subnet IDs to filter the events
|
|
25
|
-
*/
|
|
26
|
-
subnetIds?: Array<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Balance threshold filter
|
|
29
|
-
*/
|
|
30
|
-
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
31
|
-
/**
|
|
32
|
-
* L1 validator fee balance threshold in nAVAX
|
|
33
|
-
*/
|
|
34
|
-
l1ValidatorFeeBalanceThreshold?: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type { PlatformActivityMetadata };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
2
|
-
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
|
-
|
|
4
|
-
type PlatformActivityRequest = {
|
|
5
|
-
eventType: PlatformActivityRequest.eventType;
|
|
6
|
-
url: string;
|
|
7
|
-
chainId: string;
|
|
8
|
-
network?: PrimaryNetworkType;
|
|
9
|
-
name?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
13
|
-
*/
|
|
14
|
-
includeInternalTxs?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Whether to include logs in the webhook payload.
|
|
17
|
-
*/
|
|
18
|
-
includeLogs?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Metadata for platform activity
|
|
21
|
-
*/
|
|
22
|
-
metadata: PlatformActivityMetadata;
|
|
23
|
-
};
|
|
24
|
-
declare namespace PlatformActivityRequest {
|
|
25
|
-
enum eventType {
|
|
26
|
-
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
27
|
-
VALIDATOR_ACTIVITY = "validator_activity"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { PlatformActivityRequest };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e,T;e=t||(t={}),(T=e.eventType||(e.eventType={})).PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",T.VALIDATOR_ACTIVITY="validator_activity";export{t as PlatformActivityRequest};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EventType } from './EventType.js';
|
|
2
|
-
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
3
|
-
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
-
|
|
5
|
-
type PlatformActivityResponse = {
|
|
6
|
-
id: string;
|
|
7
|
-
eventType: EventType;
|
|
8
|
-
url: string;
|
|
9
|
-
chainId: string;
|
|
10
|
-
status: WebhookStatusType;
|
|
11
|
-
createdAt: number;
|
|
12
|
-
name: string;
|
|
13
|
-
description: string;
|
|
14
|
-
metadata: PlatformActivityMetadata;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type { PlatformActivityResponse };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PlatformAddressActivitySubEventType } from './PlatformAddressActivitySubEventType.js';
|
|
2
|
-
|
|
3
|
-
type PlatformActivitySubEvents = {
|
|
4
|
-
/**
|
|
5
|
-
* Array of validator activity sub-event types
|
|
6
|
-
*/
|
|
7
|
-
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
8
|
-
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type { PlatformActivitySubEvents };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Array of address activity sub-event types
|
|
3
|
-
*/
|
|
4
|
-
declare enum PlatformAddressActivitySubEventType {
|
|
5
|
-
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
6
|
-
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
7
|
-
REWARD_DISTRIBUTION = "reward_distribution"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { PlatformAddressActivitySubEventType };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _=(_=>(_.BALANCE_CHANGE_PLATFORM="balance_change_platform",_.BALANCE_THRESHOLD_PLATFORM="balance_threshold_platform",_.REWARD_DISTRIBUTION="reward_distribution",_))(_||{});export{_ as PlatformAddressActivitySubEventType};
|