diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1fbf902..8e571df 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 2b9c4bf6-4d87-4382-84d9-5fb3c84c7fad management: - docChecksum: 32e7c1517c0a2985e506f97f3eb9deb3 + docChecksum: 9dcc1f3377a49f8d451590b88cd5386d docVersion: Beta - speakeasyVersion: 1.413.0 - generationVersion: 2.436.3 - releaseVersion: 0.6.2 - configChecksum: 0fa6f689b643b5e89057877c4a757ce6 + speakeasyVersion: 1.419.2 + generationVersion: 2.438.15 + releaseVersion: 0.6.3 + configChecksum: 1c716bc9a0eefa5dd6fd700e89239817 repoURL: https://github.com/ava-labs/avacloud-sdk-typescript.git installationURL: https://github.com/ava-labs/avacloud-sdk-typescript published: true @@ -252,7 +252,6 @@ generatedFiles: - docs/models/components/pendingvalidatordetails.md - docs/models/components/pendingvalidatordetailsvalidationstatus.md - docs/models/components/pricingproviders.md - - docs/models/components/primarynetwork.md - docs/models/components/primarynetworkassetcap.md - docs/models/components/primarynetworkassettype.md - docs/models/components/primarynetworkblock.md @@ -272,6 +271,11 @@ generatedFiles: - docs/models/components/rewardtype.md - docs/models/components/richaddress.md - docs/models/components/rollingwindowmetricsapiresponse.md + - docs/models/components/rpcmetrics.md + - docs/models/components/rpcusagemetricsresponsedto.md + - docs/models/components/rpcusagemetricsvalueaggregated.md + - docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md + - docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md - docs/models/components/security.md - docs/models/components/sharedsecretsresponse.md - docs/models/components/sortbyoption.md @@ -413,6 +417,7 @@ generatedFiles: - docs/models/operations/getnftholdersbycontractaddressrequest.md - docs/models/operations/getnftholdersbycontractaddressresponse.md - docs/models/operations/getoperationresultrequest.md + - docs/models/operations/getrpcusagemetricsrequest.md - docs/models/operations/getsinglevalidatordetailsglobals.md - docs/models/operations/getsinglevalidatordetailsrequest.md - docs/models/operations/getsinglevalidatordetailsresponse.md @@ -629,6 +634,7 @@ generatedFiles: - src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts - src/funcs/dataUsageMetricsGetApiLogs.ts - src/funcs/dataUsageMetricsGetApiUsageMetrics.ts + - src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts - src/funcs/dataWebhooksAddAddressesToWebhook.ts - src/funcs/dataWebhooksCreateWebhook.ts - src/funcs/dataWebhooksDeactivateWebhook.ts @@ -833,7 +839,6 @@ generatedFiles: - src/models/components/pendingteleportermessage.ts - src/models/components/pendingvalidatordetails.ts - src/models/components/pricingproviders.ts - - src/models/components/primarynetwork.ts - src/models/components/primarynetworkassetcap.ts - src/models/components/primarynetworkassettype.ts - src/models/components/primarynetworkblock.ts @@ -851,6 +856,9 @@ generatedFiles: - src/models/components/rewardtype.ts - src/models/components/richaddress.ts - src/models/components/rollingwindowmetricsapiresponse.ts + - src/models/components/rpcmetrics.ts + - src/models/components/rpcusagemetricsresponsedto.ts + - src/models/components/rpcusagemetricsvalueaggregated.ts - src/models/components/security.ts - src/models/components/sharedsecretsresponse.ts - src/models/components/sortbyoption.ts @@ -941,6 +949,7 @@ generatedFiles: - src/models/operations/getnetworkdetails.ts - src/models/operations/getnftholdersbycontractaddress.ts - src/models/operations/getoperationresult.ts + - src/models/operations/getrpcusagemetrics.ts - src/models/operations/getsharedsecret.ts - src/models/operations/getsinglevalidatordetails.ts - src/models/operations/getstakingmetrics.ts @@ -2095,8 +2104,8 @@ examples: "": parameters: query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 + startTimestamp: 1698100000 + endTimestamp: 1698300000 timeInterval: "daily" groupBy: "requestPath" responses: @@ -2122,8 +2131,8 @@ examples: "": parameters: query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 + startTimestamp: 1698100000 + endTimestamp: 1698300000 responses: "400": application/json: {"message": "", "statusCode": 400, "error": "Bad Request"} @@ -3094,3 +3103,29 @@ examples: application/json: {"message": "", "statusCode": 502, "error": "Bad Gateway"} "503": application/json: {"message": [], "statusCode": 503, "error": "Service Unavailable"} + getRpcUsageMetrics: + "": + parameters: + query: + startTimestamp: 1698100000 + endTimestamp: 1698300000 + groupBy: "chainId" + responses: + "200": + application/json: {"aggregateDuration": "", "chainId": "", "metrics": []} + "400": + application/json: {"message": "", "statusCode": 400, "error": "Bad Request"} + "401": + application/json: {"message": ["", ""], "statusCode": 401, "error": "Unauthorized"} + "403": + application/json: {"message": [], "statusCode": 403, "error": "Forbidden"} + "404": + application/json: {"message": ["", "", ""], "statusCode": 404, "error": "Not Found"} + "429": + application/json: {"message": [], "statusCode": 429, "error": "Too Many Requests"} + "500": + application/json: {"message": "", "statusCode": 500, "error": "Internal Server Error"} + "502": + application/json: {"message": "", "statusCode": 502, "error": "Bad Gateway"} + "503": + application/json: {"message": [], "statusCode": 503, "error": "Service Unavailable"} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 049e012..ec9baf3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.6.2 + version: 0.6.3 additionalDependencies: dependencies: json-canonicalize: ^1.0.6 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6a4e4ba..876c6c5 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.413.0 +speakeasyVersion: 1.419.2 sources: AvaCloudSDK-OAS: sourceNamespace: avacloud-sdk-oas - sourceRevisionDigest: sha256:943d56a6cb6448dbe9eda1b3824a06f78b95b87b35d04fff2f82baab9ad5f25f - sourceBlobDigest: sha256:a4912e4d49c0545c2aee736f5ecee65b80554885841c0d05772e19d6f3ee7a21 + sourceRevisionDigest: sha256:1550462127bb24887b9924ba84bcc609f237067a1c6976bca5e92ca6803f32ca + sourceBlobDigest: sha256:5d4d3185360191b7976427e594f9e58cd8b8b80ca5ff36840a88aa6bbdda6029 tags: - latest - main @@ -18,10 +18,10 @@ targets: avacloud-sdk: source: AvaCloudSDK-OAS sourceNamespace: avacloud-sdk-oas - sourceRevisionDigest: sha256:943d56a6cb6448dbe9eda1b3824a06f78b95b87b35d04fff2f82baab9ad5f25f - sourceBlobDigest: sha256:a4912e4d49c0545c2aee736f5ecee65b80554885841c0d05772e19d6f3ee7a21 + sourceRevisionDigest: sha256:1550462127bb24887b9924ba84bcc609f237067a1c6976bca5e92ca6803f32ca + sourceBlobDigest: sha256:5d4d3185360191b7976427e594f9e58cd8b8b80ca5ff36840a88aa6bbdda6029 codeSamplesNamespace: avacloud-sdk-ts-code-samples - codeSamplesRevisionDigest: sha256:8ac39f349c976ac87782c1872dbee646456121f6dc7a147367bc9df812f4f3ad + codeSamplesRevisionDigest: sha256:717a2554d4ff579c73ebd356e0f288c25ef9750ae969b7d3a5b7edcad3fa8b22 avalanche-sdk: source: AvalancheSDK-OAS sourceNamespace: avalanche-sdk-oas diff --git a/README.md b/README.md index cf86e76..20a22ff 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,7 @@ run(); * [getApiUsageMetrics](docs/sdks/usagemetrics/README.md#getapiusagemetrics) - Get usage metrics for the Data API * [getApiLogs](docs/sdks/usagemetrics/README.md#getapilogs) - Get logs for requests made by client +* [getRpcUsageMetrics](docs/sdks/usagemetrics/README.md#getrpcusagemetrics) - Get usage metrics for the Subnet RPC #### [data.webhooks](docs/sdks/webhooks/README.md) @@ -315,6 +316,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`dataTeleporterListTeleporterMessagesByAddress`](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress) - List teleporter messages by address - [`dataUsageMetricsGetApiLogs`](docs/sdks/usagemetrics/README.md#getapilogs) - Get logs for requests made by client - [`dataUsageMetricsGetApiUsageMetrics`](docs/sdks/usagemetrics/README.md#getapiusagemetrics) - Get usage metrics for the Data API +- [`dataUsageMetricsGetRpcUsageMetrics`](docs/sdks/usagemetrics/README.md#getrpcusagemetrics) - Get usage metrics for the Subnet RPC - [`dataWebhooksAddAddressesToWebhook`](docs/sdks/webhooks/README.md#addaddressestowebhook) - Add addresses to webhook - [`dataWebhooksCreateWebhook`](docs/sdks/webhooks/README.md#createwebhook) - Create a webhook - [`dataWebhooksDeactivateWebhook`](docs/sdks/webhooks/README.md#deactivatewebhook) - Deactivate a webhook diff --git a/RELEASES.md b/RELEASES.md index 806e327..a7efb68 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -99,4 +99,14 @@ Based on: ### Generated - [typescript v0.6.2] . ### Releases -- [NPM v0.6.2] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.6.2 - . \ No newline at end of file +- [NPM v0.6.2] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.6.2 - . + +## 2024-10-18 20:33:12 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.419.2 (2.438.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.6.3] . +### Releases +- [NPM v0.6.3] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.6.3 - . \ No newline at end of file diff --git a/docs/models/components/assetwithpriceinfo.md b/docs/models/components/assetwithpriceinfo.md index f31c366..71b24b3 100644 --- a/docs/models/components/assetwithpriceinfo.md +++ b/docs/models/components/assetwithpriceinfo.md @@ -10,7 +10,7 @@ let value: AssetWithPriceInfo = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", historicalPrice: { currencyCode: "usd", diff --git a/docs/models/components/cchainatomicbalances.md b/docs/models/components/cchainatomicbalances.md index 42c5195..af7381c 100644 --- a/docs/models/components/cchainatomicbalances.md +++ b/docs/models/components/cchainatomicbalances.md @@ -24,7 +24,7 @@ let value: CChainAtomicBalances = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "", diff --git a/docs/models/components/cchainsharedassetbalance.md b/docs/models/components/cchainsharedassetbalance.md index 8dd5d85..a99fabd 100644 --- a/docs/models/components/cchainsharedassetbalance.md +++ b/docs/models/components/cchainsharedassetbalance.md @@ -10,7 +10,7 @@ let value: CChainSharedAssetBalance = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "", diff --git a/docs/models/components/chaininfo.md b/docs/models/components/chaininfo.md index 378f568..26f0057 100644 --- a/docs/models/components/chaininfo.md +++ b/docs/models/components/chaininfo.md @@ -9,9 +9,10 @@ let value: ChainInfo = { chainId: "", status: "UNAVAILABLE", chainName: "", - description: "down cross-contamination before enrage upside-down", + description: + "mockingly important throbbing wrongly extricate serpentine along consequently incidentally", vmName: "ETHEREUM", - rpcUrl: "https://hopeful-lay.org/", + rpcUrl: "https://educated-volleyball.com", isTestnet: false, networkToken: { name: "Wrapped AVAX", diff --git a/docs/models/components/collectiblebalances.md b/docs/models/components/collectiblebalances.md index d11efa2..aaa7bd8 100644 --- a/docs/models/components/collectiblebalances.md +++ b/docs/models/components/collectiblebalances.md @@ -12,9 +12,9 @@ const value: components.Erc721TokenBalance = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://palatable-permafrost.info/", + tokenUri: "https://intrepid-obesity.com/", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "INDEXED", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", @@ -28,9 +28,9 @@ const value: components.Erc1155TokenBalance = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://selfish-pacemaker.net/", + tokenUri: "https://severe-loyalty.com", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "UNREACHABLE_TOKEN_URI", }, chainId: "43114", balance: "2000000000000000000", diff --git a/docs/models/components/createwebhookrequest.md b/docs/models/components/createwebhookrequest.md index ce7c174..122606b 100644 --- a/docs/models/components/createwebhookrequest.md +++ b/docs/models/components/createwebhookrequest.md @@ -6,7 +6,7 @@ import { CreateWebhookRequest } from "@avalabs/avacloud-sdk/models/components"; let value: CreateWebhookRequest = { - url: "https://untried-coast.name/", + url: "https://sore-velocity.com", chainId: "", eventType: "address_activity", metadata: { diff --git a/docs/models/components/datalistchainsresponse.md b/docs/models/components/datalistchainsresponse.md index 829f56e..2540b15 100644 --- a/docs/models/components/datalistchainsresponse.md +++ b/docs/models/components/datalistchainsresponse.md @@ -9,11 +9,12 @@ let value: DataListChainsResponse = { chains: [ { chainId: "", - status: "UNAVAILABLE", + status: "OK", chainName: "", - description: "strait huge verbally knowledgeably knowledgeably upon hoot", + description: + "joy unexpectedly sightseeing contravene jaggedly programme ecliptic make woot", vmName: "BITCOIN", - rpcUrl: "https://scared-valley.info", + rpcUrl: "https://shameful-railway.biz", isTestnet: false, networkToken: { name: "Wrapped AVAX", diff --git a/docs/models/components/deliveredsourcenotindexedteleportermessage.md b/docs/models/components/deliveredsourcenotindexedteleportermessage.md index 6fd91e3..98e843e 100644 --- a/docs/models/components/deliveredsourcenotindexedteleportermessage.md +++ b/docs/models/components/deliveredsourcenotindexedteleportermessage.md @@ -39,7 +39,7 @@ let value: DeliveredSourceNotIndexedTeleporterMessage = { }, destinationTransaction: { txHash: "", - timestamp: 610.79, + timestamp: 3998.02, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/components/deliveredteleportermessage.md b/docs/models/components/deliveredteleportermessage.md index a7f8205..0c479d9 100644 --- a/docs/models/components/deliveredteleportermessage.md +++ b/docs/models/components/deliveredteleportermessage.md @@ -39,12 +39,12 @@ let value: DeliveredTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 2473.99, + timestamp: 8481.50, gasSpent: "", }, destinationTransaction: { txHash: "", - timestamp: 396.16, + timestamp: 9358.32, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/components/enabledfeatures.md b/docs/models/components/enabledfeatures.md index 60c295a..6c24316 100644 --- a/docs/models/components/enabledfeatures.md +++ b/docs/models/components/enabledfeatures.md @@ -5,7 +5,7 @@ ```typescript import { EnabledFeatures } from "@avalabs/avacloud-sdk/models/components"; -let value: EnabledFeatures = "teleporter"; +let value: EnabledFeatures = "webhooks"; ``` ## Values diff --git a/docs/models/components/erc1155tokenbalance.md b/docs/models/components/erc1155tokenbalance.md index a6595ab..e53288b 100644 --- a/docs/models/components/erc1155tokenbalance.md +++ b/docs/models/components/erc1155tokenbalance.md @@ -9,9 +9,9 @@ let value: Erc1155TokenBalance = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://grim-vision.com/", + tokenUri: "https://reckless-flu.net/", metadata: { - indexStatus: "MISSING_TOKEN", + indexStatus: "INVALID_METADATA", }, chainId: "43114", balance: "2000000000000000000", diff --git a/docs/models/components/erc1155transfer.md b/docs/models/components/erc1155transfer.md index 3d704be..deeb37f 100644 --- a/docs/models/components/erc1155transfer.md +++ b/docs/models/components/erc1155transfer.md @@ -27,15 +27,15 @@ let value: Erc1155Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5181.50, + logIndex: 2476.85, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://hopeful-decision.com", + tokenUri: "https://tiny-impostor.info/", metadata: { - indexStatus: "UNKNOWN", + indexStatus: "INVALID_TOKEN_URI_SCHEME", }, }, }; diff --git a/docs/models/components/erc1155transferdetails.md b/docs/models/components/erc1155transferdetails.md index cb4a33c..8eabb34 100644 --- a/docs/models/components/erc1155transferdetails.md +++ b/docs/models/components/erc1155transferdetails.md @@ -22,15 +22,15 @@ let value: Erc1155TransferDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 4706.21, + logIndex: 5596.82, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://late-waterspout.info/", + tokenUri: "https://lasting-citizen.biz", metadata: { - indexStatus: "INDEXED", + indexStatus: "UNREACHABLE_TOKEN_URI", }, }, }; diff --git a/docs/models/components/erc20transfer.md b/docs/models/components/erc20transfer.md index 3bdd030..1a63e7d 100644 --- a/docs/models/components/erc20transfer.md +++ b/docs/models/components/erc20transfer.md @@ -27,7 +27,7 @@ let value: Erc20Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 291.90, + logIndex: 5495.01, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/docs/models/components/erc20transferdetails.md b/docs/models/components/erc20transferdetails.md index 44a1c5e..a8fce57 100644 --- a/docs/models/components/erc20transferdetails.md +++ b/docs/models/components/erc20transferdetails.md @@ -22,7 +22,7 @@ let value: Erc20TransferDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7137.67, + logIndex: 8956.91, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/docs/models/components/erc721tokenbalance.md b/docs/models/components/erc721tokenbalance.md index db45d5a..eb77d32 100644 --- a/docs/models/components/erc721tokenbalance.md +++ b/docs/models/components/erc721tokenbalance.md @@ -11,9 +11,9 @@ let value: Erc721TokenBalance = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://good-natured-platypus.com/", + tokenUri: "https://limp-captain.info/", metadata: { - indexStatus: "METADATA_CONTENT_TOO_LARGE", + indexStatus: "UNINDEXED", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", diff --git a/docs/models/components/erc721transfer.md b/docs/models/components/erc721transfer.md index 0a98f26..01e6947 100644 --- a/docs/models/components/erc721transfer.md +++ b/docs/models/components/erc721transfer.md @@ -27,14 +27,14 @@ let value: Erc721Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5349.17, + logIndex: 9308.19, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://monstrous-fuel.biz/", + tokenUri: "https://feline-swanling.info", metadata: { indexStatus: "UNKNOWN", }, diff --git a/docs/models/components/erc721transferdetails.md b/docs/models/components/erc721transferdetails.md index 44352a4..98bb047 100644 --- a/docs/models/components/erc721transferdetails.md +++ b/docs/models/components/erc721transferdetails.md @@ -22,16 +22,16 @@ let value: Erc721TransferDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 1173.16, + logIndex: 5282.34, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://impractical-guard.net/", + tokenUri: "https://specific-reservation.org/", metadata: { - indexStatus: "INVALID_TOKEN_URI_SCHEME", + indexStatus: "UNKNOWN", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, diff --git a/docs/models/components/evmblock.md b/docs/models/components/evmblock.md index 9c12ba2..1cfd5f1 100644 --- a/docs/models/components/evmblock.md +++ b/docs/models/components/evmblock.md @@ -10,7 +10,7 @@ let value: EvmBlock = { blockTimestamp: 1648672486, blockHash: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 4322.81, + txCount: 6347.86, baseFee: "", gasUsed: "", gasLimit: "", diff --git a/docs/models/components/fullnativetransactiondetails.md b/docs/models/components/fullnativetransactiondetails.md index 0972901..ff24059 100644 --- a/docs/models/components/fullnativetransactiondetails.md +++ b/docs/models/components/fullnativetransactiondetails.md @@ -35,7 +35,7 @@ let value: FullNativeTransactionDetails = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "CONTRACT_CALL", + callType: "NATIVE_TRANSFER", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, diff --git a/docs/models/components/getchainresponse.md b/docs/models/components/getchainresponse.md index 0bd6965..af6c440 100644 --- a/docs/models/components/getchainresponse.md +++ b/docs/models/components/getchainresponse.md @@ -7,11 +7,11 @@ import { GetChainResponse } from "@avalabs/avacloud-sdk/models/components"; let value: GetChainResponse = { chainId: "", - status: "UNAVAILABLE", + status: "OK", chainName: "", - description: "ecliptic make woot saw husband powerless pish and", - vmName: "ETHEREUM", - rpcUrl: "https://tragic-mentor.info/", + description: "fedora compromise if made-up deer rightfully psst", + vmName: "EVM", + rpcUrl: "https://well-lit-moment.com/", isTestnet: false, networkToken: { name: "Wrapped AVAX", diff --git a/docs/models/components/getchainresponseenabledfeatures.md b/docs/models/components/getchainresponseenabledfeatures.md index 09580c9..6a7e96c 100644 --- a/docs/models/components/getchainresponseenabledfeatures.md +++ b/docs/models/components/getchainresponseenabledfeatures.md @@ -5,7 +5,7 @@ ```typescript import { GetChainResponseEnabledFeatures } from "@avalabs/avacloud-sdk/models/components"; -let value: GetChainResponseEnabledFeatures = "teleporter"; +let value: GetChainResponseEnabledFeatures = "webhooks"; ``` ## Values diff --git a/docs/models/components/getevmblockresponse.md b/docs/models/components/getevmblockresponse.md index a621d28..800a149 100644 --- a/docs/models/components/getevmblockresponse.md +++ b/docs/models/components/getevmblockresponse.md @@ -10,7 +10,7 @@ let value: GetEvmBlockResponse = { blockTimestamp: 1648672486, blockHash: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 5219.96, + txCount: 9591.42, baseFee: "", gasUsed: "", gasLimit: "", diff --git a/docs/models/components/getprimarynetworkblockresponse.md b/docs/models/components/getprimarynetworkblockresponse.md index ce81087..9e72a10 100644 --- a/docs/models/components/getprimarynetworkblockresponse.md +++ b/docs/models/components/getprimarynetworkblockresponse.md @@ -9,13 +9,13 @@ let value: GetPrimaryNetworkBlockResponse = { blockNumber: "", blockHash: "", parentHash: "", - blockTimestamp: 353.62, + blockTimestamp: 1970.54, blockType: "", - txCount: 4304.02, + txCount: 4598.56, transactions: [ "", ], - blockSizeBytes: 5100.17, + blockSizeBytes: 446.12, }; ``` diff --git a/docs/models/components/gettransactionresponse.md b/docs/models/components/gettransactionresponse.md index 085a85d..d977f1c 100644 --- a/docs/models/components/gettransactionresponse.md +++ b/docs/models/components/gettransactionresponse.md @@ -24,7 +24,7 @@ let value: GetTransactionResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7730.84, + logIndex: 1032.98, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", @@ -59,16 +59,16 @@ let value: GetTransactionResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 9587.41, + logIndex: 8671.67, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://celebrated-mountain.net/", + tokenUri: "https://mushy-habit.name/", metadata: { - indexStatus: "INDEXED", + indexStatus: "UNREACHABLE_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, @@ -92,15 +92,15 @@ let value: GetTransactionResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 9358.32, + logIndex: 1905.67, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://impish-gloom.com", + tokenUri: "https://minty-squid.info/", metadata: { - indexStatus: "INVALID_METADATA", + indexStatus: "INVALID_TOKEN_URI", }, }, }, @@ -123,7 +123,7 @@ let value: GetTransactionResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "CALLCODE", + internalTxType: "UNKNOWN", value: "10000000000000000000", isReverted: false, gasUsed: "", @@ -178,7 +178,7 @@ let value: GetTransactionResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "CONTRACT_CREATION", + callType: "NATIVE_TRANSFER", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, diff --git a/docs/models/components/groupedby.md b/docs/models/components/groupedby.md index ff768a9..56b8f00 100644 --- a/docs/models/components/groupedby.md +++ b/docs/models/components/groupedby.md @@ -7,7 +7,7 @@ Column name used for data aggregation ```typescript import { GroupedBy } from "@avalabs/avacloud-sdk/models/components"; -let value: GroupedBy = "responseCode"; +let value: GroupedBy = "None"; ``` ## Values diff --git a/docs/models/components/groupvalue.md b/docs/models/components/groupvalue.md index 9bbaea6..159348c 100644 --- a/docs/models/components/groupvalue.md +++ b/docs/models/components/groupvalue.md @@ -14,6 +14,6 @@ const value: string = ""; ### `number` ```typescript -const value: number = 8490.38; +const value: number = 4572.23; ``` diff --git a/docs/models/components/historicalreward.md b/docs/models/components/historicalreward.md index b581476..245a8b7 100644 --- a/docs/models/components/historicalreward.md +++ b/docs/models/components/historicalreward.md @@ -12,17 +12,17 @@ let value: HistoricalReward = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 8621.92, - endTimestamp: 9729.19, - rewardType: "VALIDATOR_FEE", + startTimestamp: 8221.18, + endTimestamp: 1898.48, + rewardType: "DELEGATOR", utxoId: "", - outputIndex: 9065.55, + outputIndex: 2243.17, reward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", historicalPrice: { currencyCode: "usd", diff --git a/docs/models/components/internaltransactiondetails.md b/docs/models/components/internaltransactiondetails.md index d393da2..2d3137b 100644 --- a/docs/models/components/internaltransactiondetails.md +++ b/docs/models/components/internaltransactiondetails.md @@ -22,7 +22,7 @@ let value: InternalTransactionDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "STATICCALL", + internalTxType: "DELEGATECALL", value: "10000000000000000000", isReverted: false, gasUsed: "", diff --git a/docs/models/components/internaltransactionopcall.md b/docs/models/components/internaltransactionopcall.md index 1bbbb86..8b4ed4e 100644 --- a/docs/models/components/internaltransactionopcall.md +++ b/docs/models/components/internaltransactionopcall.md @@ -5,7 +5,7 @@ ```typescript import { InternalTransactionOpCall } from "@avalabs/avacloud-sdk/models/components"; -let value: InternalTransactionOpCall = "UNKNOWN"; +let value: InternalTransactionOpCall = "CALL"; ``` ## Values diff --git a/docs/models/components/listcchainatomictransactionsresponse.md b/docs/models/components/listcchainatomictransactionsresponse.md index 026a4cf..83c8802 100644 --- a/docs/models/components/listcchainatomictransactionsresponse.md +++ b/docs/models/components/listcchainatomictransactionsresponse.md @@ -30,16 +30,16 @@ let value: ListCChainAtomicTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [ + txType: "ImportTx", + evmOutputs: [ { - fromAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", + toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", asset: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", @@ -48,16 +48,9 @@ let value: ListCChainAtomicTransactionsResponse = { type: "nft", amount: "5001000", }, - credentials: [ - { - signature: - "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", - publicKey: "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI", - }, - ], }, ], - emittedUtxos: [ + consumedUtxos: [ { addresses: [ "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", @@ -67,7 +60,7 @@ let value: ListCChainAtomicTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: diff --git a/docs/models/components/listcchainatomictransactionsresponsetransactions.md b/docs/models/components/listcchainatomictransactionsresponsetransactions.md index 975efec..21bd220 100644 --- a/docs/models/components/listcchainatomictransactionsresponsetransactions.md +++ b/docs/models/components/listcchainatomictransactionsresponsetransactions.md @@ -44,7 +44,7 @@ const value: components.CChainExportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, credentials: [ @@ -66,7 +66,7 @@ const value: components.CChainExportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -108,7 +108,7 @@ const value: components.CChainImportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -148,7 +148,7 @@ const value: components.CChainImportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", diff --git a/docs/models/components/listcollectiblebalancesresponse.md b/docs/models/components/listcollectiblebalancesresponse.md index 1b53a15..9c299e8 100644 --- a/docs/models/components/listcollectiblebalancesresponse.md +++ b/docs/models/components/listcollectiblebalancesresponse.md @@ -9,14 +9,16 @@ let value: ListCollectibleBalancesResponse = { collectibleBalances: [ { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", + name: "Wrapped AVAX", + symbol: "WAVAX", + ercType: "ERC-721", tokenId: "", - tokenUri: "https://rundown-fisherman.com", + tokenUri: "https://ample-reconsideration.com/", metadata: { - indexStatus: "UNKNOWN", + indexStatus: "METADATA_CONTENT_TOO_LARGE", }, + ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", - balance: "2000000000000000000", }, ], }; diff --git a/docs/models/components/listcontractsresponse.md b/docs/models/components/listcontractsresponse.md index c374775..db3ca5c 100644 --- a/docs/models/components/listcontractsresponse.md +++ b/docs/models/components/listcontractsresponse.md @@ -14,9 +14,8 @@ let value: ListContractsResponse = { txHash: "", deployerAddress: "", }, - ercType: "ERC-20", + ercType: "ERC-1155", symbol: "WAVAX", - decimals: 18, }, ], }; diff --git a/docs/models/components/listerc1155balancesresponse.md b/docs/models/components/listerc1155balancesresponse.md index e6cb172..da13fc0 100644 --- a/docs/models/components/listerc1155balancesresponse.md +++ b/docs/models/components/listerc1155balancesresponse.md @@ -11,7 +11,7 @@ let value: ListErc1155BalancesResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://focused-descent.name/", + tokenUri: "https://tinted-carboxyl.biz/", metadata: { indexStatus: "UNREACHABLE_TOKEN_URI", }, diff --git a/docs/models/components/listerc1155transactionsresponse.md b/docs/models/components/listerc1155transactionsresponse.md index e93c38f..7c7dd5c 100644 --- a/docs/models/components/listerc1155transactionsresponse.md +++ b/docs/models/components/listerc1155transactionsresponse.md @@ -30,15 +30,15 @@ let value: ListErc1155TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 1785.80, + logIndex: 3774.07, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://bossy-swine.net", + tokenUri: "https://scared-valley.info", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "INDEXED", }, }, }, diff --git a/docs/models/components/listerc20transactionsresponse.md b/docs/models/components/listerc20transactionsresponse.md index 0d01847..b2668ae 100644 --- a/docs/models/components/listerc20transactionsresponse.md +++ b/docs/models/components/listerc20transactionsresponse.md @@ -30,7 +30,7 @@ let value: ListErc20TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 2773.40, + logIndex: 3917.97, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/docs/models/components/listerc721balancesresponse.md b/docs/models/components/listerc721balancesresponse.md index 8083fc4..f1892c6 100644 --- a/docs/models/components/listerc721balancesresponse.md +++ b/docs/models/components/listerc721balancesresponse.md @@ -13,9 +13,9 @@ let value: ListErc721BalancesResponse = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://heavenly-instruction.info", + tokenUri: "https://other-desk.biz/", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "INDEXED", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", diff --git a/docs/models/components/listerc721transactionsresponse.md b/docs/models/components/listerc721transactionsresponse.md index 7ac3639..0cf46fb 100644 --- a/docs/models/components/listerc721transactionsresponse.md +++ b/docs/models/components/listerc721transactionsresponse.md @@ -30,16 +30,16 @@ let value: ListErc721TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5243.80, + logIndex: 2421.79, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://curly-archaeology.org/", + tokenUri: "https://lost-antelope.name/", metadata: { - indexStatus: "UNKNOWN", + indexStatus: "UNREACHABLE_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, diff --git a/docs/models/components/listevmblocksresponse.md b/docs/models/components/listevmblocksresponse.md index 6cbc730..01c838d 100644 --- a/docs/models/components/listevmblocksresponse.md +++ b/docs/models/components/listevmblocksresponse.md @@ -12,7 +12,7 @@ let value: ListEvmBlocksResponse = { blockTimestamp: 1648672486, blockHash: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 2419.02, + txCount: 7032.17, baseFee: "", gasUsed: "", gasLimit: "", diff --git a/docs/models/components/listhistoricalrewardsresponse.md b/docs/models/components/listhistoricalrewardsresponse.md index 6244655..a146ace 100644 --- a/docs/models/components/listhistoricalrewardsresponse.md +++ b/docs/models/components/listhistoricalrewardsresponse.md @@ -14,11 +14,11 @@ let value: ListHistoricalRewardsResponse = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 8221.18, - endTimestamp: 1898.48, + startTimestamp: 4783.70, + endTimestamp: 4973.91, rewardType: "DELEGATOR", utxoId: "", - outputIndex: 2243.17, + outputIndex: 3685.85, reward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", diff --git a/docs/models/components/listinternaltransactionsresponse.md b/docs/models/components/listinternaltransactionsresponse.md index c08ab5f..c710fbc 100644 --- a/docs/models/components/listinternaltransactionsresponse.md +++ b/docs/models/components/listinternaltransactionsresponse.md @@ -30,7 +30,7 @@ let value: ListInternalTransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "CREATE2", + internalTxType: "DELEGATECALL", value: "10000000000000000000", isReverted: false, gasUsed: "", diff --git a/docs/models/components/listpchainbalancesresponse.md b/docs/models/components/listpchainbalancesresponse.md index 53b8360..8dbcfd9 100644 --- a/docs/models/components/listpchainbalancesresponse.md +++ b/docs/models/components/listpchainbalancesresponse.md @@ -24,7 +24,7 @@ let value: ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -35,7 +35,7 @@ let value: ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, }, @@ -68,7 +68,7 @@ let value: ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -79,7 +79,7 @@ let value: ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -101,7 +101,7 @@ let value: ListPChainBalancesResponse = { ], }, chainInfo: { - chainName: "p-chain", + chainName: "c-chain", network: "mainnet", }, }; diff --git a/docs/models/components/listpchaintransactionsresponse.md b/docs/models/components/listpchaintransactionsresponse.md index e359864..19c201f 100644 --- a/docs/models/components/listpchaintransactionsresponse.md +++ b/docs/models/components/listpchaintransactionsresponse.md @@ -112,7 +112,7 @@ let value: ListPChainTransactionsResponse = { ], chainInfo: { chainName: "x-chain", - network: "fuji", + network: "mainnet", }, }; ``` diff --git a/docs/models/components/listpchainutxosresponse.md b/docs/models/components/listpchainutxosresponse.md index 0477a41..5882bfb 100644 --- a/docs/models/components/listpchainutxosresponse.md +++ b/docs/models/components/listpchainutxosresponse.md @@ -16,24 +16,24 @@ let value: ListPChainUtxosResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "407.24", + amount: "960.84", assetId: "", blockNumber: "", - blockTimestamp: 2322.34, - outputIndex: 1324.88, + blockTimestamp: 9065.55, + outputIndex: 7740.47, txHash: "", utxoType: "STAKE", }, ], chainInfo: { - chainName: "c-chain", + chainName: "p-chain", network: "mainnet", }, }; diff --git a/docs/models/components/listpendingrewardsresponse.md b/docs/models/components/listpendingrewardsresponse.md index 8592d82..5fd68be 100644 --- a/docs/models/components/listpendingrewardsresponse.md +++ b/docs/models/components/listpendingrewardsresponse.md @@ -14,10 +14,10 @@ let value: ListPendingRewardsResponse = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 6178.77, - endTimestamp: 132.37, - rewardType: "DELEGATOR", - progress: 1481.41, + startTimestamp: 7992.03, + endTimestamp: 6304.48, + rewardType: "VALIDATOR_FEE", + progress: 2930.20, estimatedReward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", diff --git a/docs/models/components/listprimarynetworkblocksresponse.md b/docs/models/components/listprimarynetworkblocksresponse.md index 3728e76..8d3b1cf 100644 --- a/docs/models/components/listprimarynetworkblocksresponse.md +++ b/docs/models/components/listprimarynetworkblocksresponse.md @@ -11,18 +11,18 @@ let value: ListPrimaryNetworkBlocksResponse = { blockNumber: "", blockHash: "", parentHash: "", - blockTimestamp: 5361.77, + blockTimestamp: 7997.96, blockType: "", - txCount: 6813.93, + txCount: 769.56, transactions: [ "", ], - blockSizeBytes: 2775.96, + blockSizeBytes: 5188.35, }, ], chainInfo: { chainName: "p-chain", - network: "fuji", + network: "mainnet", }, }; ``` diff --git a/docs/models/components/listteleportermessagesresponse.md b/docs/models/components/listteleportermessagesresponse.md index 783c2b1..e5c6085 100644 --- a/docs/models/components/listteleportermessagesresponse.md +++ b/docs/models/components/listteleportermessagesresponse.md @@ -41,12 +41,12 @@ let value: ListTeleporterMessagesResponse = { }, sourceTransaction: { txHash: "", - timestamp: 5289.40, + timestamp: 8620.63, gasSpent: "", }, destinationTransaction: { txHash: "", - timestamp: 3044.46, + timestamp: 972.58, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/components/listtransactiondetailsresponse.md b/docs/models/components/listtransactiondetailsresponse.md index b266d28..85951e6 100644 --- a/docs/models/components/listtransactiondetailsresponse.md +++ b/docs/models/components/listtransactiondetailsresponse.md @@ -39,7 +39,7 @@ let value: ListTransactionDetailsResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "NATIVE_TRANSFER", + callType: "CONTRACT_CREATION", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, @@ -63,7 +63,7 @@ let value: ListTransactionDetailsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 1000.14, + logIndex: 9450.27, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", @@ -98,16 +98,16 @@ let value: ListTransactionDetailsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 2650.40, + logIndex: 9918.90, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://big-stool.com/", + tokenUri: "https://wide-scratch.net/", metadata: { - indexStatus: "METADATA_CONTENT_TOO_LARGE", + indexStatus: "INVALID_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, @@ -131,13 +131,13 @@ let value: ListTransactionDetailsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7734.56, + logIndex: 2164.57, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://crowded-councilman.info/", + tokenUri: "https://utter-emergent.info/", metadata: { indexStatus: "THROTTLED_TOKEN_URI", }, @@ -162,7 +162,7 @@ let value: ListTransactionDetailsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "CREATE", + internalTxType: "DELEGATECALL", value: "10000000000000000000", isReverted: false, gasUsed: "", diff --git a/docs/models/components/listtransfersresponse.md b/docs/models/components/listtransfersresponse.md index 893ba0e..6220a29 100644 --- a/docs/models/components/listtransfersresponse.md +++ b/docs/models/components/listtransfersresponse.md @@ -30,20 +30,18 @@ let value: ListTransfersResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 8671.67, - value: "10000000000000000000", - erc20Token: { + logIndex: 813.70, + erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - ercType: "ERC-20", - price: { - currencyCode: "usd", - value: 42.42, + ercType: "ERC-721", + tokenId: "", + tokenUri: "https://self-assured-vibration.name", + metadata: { + indexStatus: "INVALID_TOKEN_URI_SCHEME", }, + ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, }, ], diff --git a/docs/models/components/listutxosresponse.md b/docs/models/components/listutxosresponse.md index 6c3dba1..591240c 100644 --- a/docs/models/components/listutxosresponse.md +++ b/docs/models/components/listutxosresponse.md @@ -16,7 +16,7 @@ let value: ListUtxosResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", diff --git a/docs/models/components/listwebhookaddressesresponse.md b/docs/models/components/listwebhookaddressesresponse.md index af17935..330df24 100644 --- a/docs/models/components/listwebhookaddressesresponse.md +++ b/docs/models/components/listwebhookaddressesresponse.md @@ -9,7 +9,7 @@ let value: ListWebhookAddressesResponse = { addresses: [ "", ], - totalAddresses: 4402.64, + totalAddresses: 1070.04, }; ``` diff --git a/docs/models/components/listwebhooksresponse.md b/docs/models/components/listwebhooksresponse.md index e2ebfd2..af25d59 100644 --- a/docs/models/components/listwebhooksresponse.md +++ b/docs/models/components/listwebhooksresponse.md @@ -18,12 +18,12 @@ let value: ListWebhooksResponse = { "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", ], }, - url: "https://next-dredger.info/", + url: "https://clean-minority.net/", chainId: "", - status: "active", - createdAt: 2484.13, + status: "inactive", + createdAt: 9488.61, name: "", - description: "tough duh neat topsail as readily including", + description: "sidetrack popularity clamor", }, ], }; diff --git a/docs/models/components/listxchainbalancesresponse.md b/docs/models/components/listxchainbalancesresponse.md index dfcdcc1..86595e5 100644 --- a/docs/models/components/listxchainbalancesresponse.md +++ b/docs/models/components/listxchainbalancesresponse.md @@ -13,7 +13,7 @@ let value: ListXChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -56,7 +56,7 @@ let value: ListXChainBalancesResponse = { }, chainInfo: { chainName: "x-chain", - network: "fuji", + network: "mainnet", }, }; ``` diff --git a/docs/models/components/listxchaintransactionsresponse.md b/docs/models/components/listxchaintransactionsresponse.md index 7dfebc0..f40410d 100644 --- a/docs/models/components/listxchaintransactionsresponse.md +++ b/docs/models/components/listxchaintransactionsresponse.md @@ -11,7 +11,7 @@ let value: ListXChainTransactionsResponse = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", chainFormat: "non-linear", timestamp: 1600762738, - txType: "ImportTx", + txType: "UNKNOWN", memo: "0x546865204176616c616e6368652050726f6a656374", consumedUtxos: [ { @@ -23,7 +23,7 @@ let value: ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: @@ -58,7 +58,7 @@ let value: ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: @@ -89,7 +89,7 @@ let value: ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -99,7 +99,7 @@ let value: ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -112,15 +112,15 @@ let value: ListXChainTransactionsResponse = { denomination: 9, type: "secp256k1", createdAtTimestamp: 1675444720, - cap: "variable", + cap: "fixed", }, blockHeight: 1005, blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", }, ], chainInfo: { - chainName: "c-chain", - network: "devnet", + chainName: "p-chain", + network: "mainnet", }, }; ``` diff --git a/docs/models/components/listxchainverticesresponse.md b/docs/models/components/listxchainverticesresponse.md index d3698af..30f72a8 100644 --- a/docs/models/components/listxchainverticesresponse.md +++ b/docs/models/components/listxchainverticesresponse.md @@ -12,19 +12,19 @@ let value: ListXChainVerticesResponse = { parentHashes: [ "", ], - vertexHeight: 5438.06, - vertexIndex: 4569.11, - vertexTimestamp: 8820.41, - txCount: 4586.04, + vertexHeight: 353.62, + vertexIndex: 4304.02, + vertexTimestamp: 5100.17, + txCount: 5361.77, transactions: [ "", ], - vertexSizeBytes: 7241.68, + vertexSizeBytes: 6813.93, }, ], chainInfo: { - chainName: "x-chain", - network: "devnet", + chainName: "p-chain", + network: "mainnet", }, }; ``` diff --git a/docs/models/components/logsformat.md b/docs/models/components/logsformat.md index cb1e6f9..c6b7526 100644 --- a/docs/models/components/logsformat.md +++ b/docs/models/components/logsformat.md @@ -8,18 +8,18 @@ import { LogsFormat } from "@avalabs/avacloud-sdk/models/components"; let value: LogsFormat = { orgId: "", logId: "", - eventTimestamp: 2531.91, + eventTimestamp: 6625.05, apiKeyId: "", apiKeyAlias: "", hostRegion: "", requestType: "data", requestPath: "", - apiCreditsConsumed: 120.36, - requestDurationMsecs: 1154.84, - responseCode: 6184.80, + apiCreditsConsumed: 6658.59, + requestDurationMsecs: 5173.09, + responseCode: 4240.89, metadata: { - ipAddress: "f83e:af1b:65e5:eb9c:6f97:ce15:7bff:d6f5", - host: "cautious-unit.biz", + ipAddress: "6f97:ce15:7bff:d6f5:2e5f:1ad5:88a5:396c", + host: "everlasting-knitting.org", userAgent: "", }, }; diff --git a/docs/models/components/logsformatmetadata.md b/docs/models/components/logsformatmetadata.md index d3e14d6..f171e3e 100644 --- a/docs/models/components/logsformatmetadata.md +++ b/docs/models/components/logsformatmetadata.md @@ -6,8 +6,8 @@ import { LogsFormatMetadata } from "@avalabs/avacloud-sdk/models/components"; let value: LogsFormatMetadata = { - ipAddress: "1ad5:88a5:396c:5bed:deaf:ff91:6392:d8df", - host: "negative-drug.name", + ipAddress: "deaf:ff91:6392:d8df:c6dd:8c5a:85b6:8ba7", + host: "vain-stump.com", userAgent: "", }; ``` diff --git a/docs/models/components/logsresponsedto.md b/docs/models/components/logsresponsedto.md index 84c5cdf..913feb3 100644 --- a/docs/models/components/logsresponsedto.md +++ b/docs/models/components/logsresponsedto.md @@ -11,18 +11,18 @@ let value: LogsResponseDTO = { { orgId: "", logId: "", - eventTimestamp: 996.15, + eventTimestamp: 627.13, apiKeyId: "", apiKeyAlias: "", hostRegion: "", - requestType: "rpc", + requestType: "data", requestPath: "", - apiCreditsConsumed: 8694.89, - requestDurationMsecs: 4541.62, - responseCode: 3267.01, + apiCreditsConsumed: 2586.84, + requestDurationMsecs: 8490.38, + responseCode: 333.05, metadata: { - ipAddress: "157.8.3.109", - host: "black-director.biz", + ipAddress: "7704:8e2e:d975:d009:1545:202d:ff83:eaf1", + host: "spherical-electronics.biz", userAgent: "", }, }, diff --git a/docs/models/components/messages.md b/docs/models/components/messages.md index d0f8553..c7ea1bc 100644 --- a/docs/models/components/messages.md +++ b/docs/models/components/messages.md @@ -40,7 +40,7 @@ const value: components.PendingTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 9077.33, + timestamp: 3803.35, gasSpent: "", }, status: "pending", @@ -84,12 +84,12 @@ const value: components.DeliveredTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 7398.84, + timestamp: 1478.09, gasSpent: "", }, destinationTransaction: { txHash: "", - timestamp: 8980.62, + timestamp: 6849.34, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/components/metric.md b/docs/models/components/metric.md index c68d82f..45d99da 100644 --- a/docs/models/components/metric.md +++ b/docs/models/components/metric.md @@ -6,17 +6,17 @@ import { Metric } from "@avalabs/avacloud-sdk/models/components"; let value: Metric = { - timestamp: 5757.51, + timestamp: 3277.20, values: [ { groupedBy: "requestType", - totalRequests: 9088.44, - requestsPerSecond: 8155.24, - successRatePercent: 1594.14, - medianResponseTimeMsecs: 6288.98, - invalidRequests: 3984.34, - apiCreditsUsed: 627.13, - apiCreditsWasted: 4240.32, + totalRequests: 6360.61, + requestsPerSecond: 2400.20, + successRatePercent: 1605.39, + medianResponseTimeMsecs: 7963.91, + invalidRequests: 9591.67, + apiCreditsUsed: 4581.39, + apiCreditsWasted: 5909.84, }, ], }; diff --git a/docs/models/components/nativetransaction.md b/docs/models/components/nativetransaction.md index 4ec49db..dbff893 100644 --- a/docs/models/components/nativetransaction.md +++ b/docs/models/components/nativetransaction.md @@ -35,7 +35,7 @@ let value: NativeTransaction = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "CONTRACT_CALL", + callType: "CONTRACT_CREATION", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, diff --git a/docs/models/components/pchainbalance.md b/docs/models/components/pchainbalance.md index 29c5eb0..52a013d 100644 --- a/docs/models/components/pchainbalance.md +++ b/docs/models/components/pchainbalance.md @@ -34,7 +34,7 @@ let value: PChainBalance = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, }, diff --git a/docs/models/components/pchainsharedasset.md b/docs/models/components/pchainsharedasset.md index 3f4cd4f..0201c19 100644 --- a/docs/models/components/pchainsharedasset.md +++ b/docs/models/components/pchainsharedasset.md @@ -10,7 +10,7 @@ let value: PChainSharedAsset = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", diff --git a/docs/models/components/pendingreward.md b/docs/models/components/pendingreward.md index b5e4de4..092ec61 100644 --- a/docs/models/components/pendingreward.md +++ b/docs/models/components/pendingreward.md @@ -12,16 +12,16 @@ let value: PendingReward = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 4783.70, - endTimestamp: 4973.91, + startTimestamp: 6178.77, + endTimestamp: 132.37, rewardType: "DELEGATOR", - progress: 3685.85, + progress: 1481.41, estimatedReward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, }; diff --git a/docs/models/components/pendingteleportermessage.md b/docs/models/components/pendingteleportermessage.md index 54fb69b..a50c82d 100644 --- a/docs/models/components/pendingteleportermessage.md +++ b/docs/models/components/pendingteleportermessage.md @@ -39,7 +39,7 @@ let value: PendingTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 764.87, + timestamp: 5896.95, gasSpent: "", }, status: "pending", diff --git a/docs/models/components/primarynetwork.md b/docs/models/components/primarynetwork.md deleted file mode 100644 index 15a7e0b..0000000 --- a/docs/models/components/primarynetwork.md +++ /dev/null @@ -1,15 +0,0 @@ -# PrimaryNetwork - -## Example Usage - -```typescript -import { PrimaryNetwork } from "@avalabs/avacloud-sdk/models/components"; - -let value: PrimaryNetwork = "devnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "devnet" -``` \ No newline at end of file diff --git a/docs/models/components/primarynetworkblock.md b/docs/models/components/primarynetworkblock.md index 04b9b24..a13c40b 100644 --- a/docs/models/components/primarynetworkblock.md +++ b/docs/models/components/primarynetworkblock.md @@ -9,13 +9,13 @@ let value: PrimaryNetworkBlock = { blockNumber: "", blockHash: "", parentHash: "", - blockTimestamp: 9564.06, + blockTimestamp: 5775.43, blockType: "", - txCount: 1871.31, + txCount: 9594.33, transactions: [ "", ], - blockSizeBytes: 9039.84, + blockSizeBytes: 6455.70, }; ``` diff --git a/docs/models/components/primarynetworkchaininfo.md b/docs/models/components/primarynetworkchaininfo.md index 8444eb4..54f46dc 100644 --- a/docs/models/components/primarynetworkchaininfo.md +++ b/docs/models/components/primarynetworkchaininfo.md @@ -6,14 +6,14 @@ import { PrimaryNetworkChainInfo } from "@avalabs/avacloud-sdk/models/components"; let value: PrimaryNetworkChainInfo = { - chainName: "p-chain", - network: "fuji", + chainName: "x-chain", + network: "mainnet", }; ``` ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `chainName` | [components.PrimaryNetworkChainName](../../models/components/primarynetworkchainname.md) | :heavy_check_mark: | N/A | -| `network` | [components.PrimaryNetwork](../../models/components/primarynetwork.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `chainName` | [components.PrimaryNetworkChainName](../../models/components/primarynetworkchainname.md) | :heavy_check_mark: | N/A | | +| `network` | [components.Network](../../models/components/network.md) | :heavy_check_mark: | N/A | mainnet | \ No newline at end of file diff --git a/docs/models/components/primarynetworktxtype.md b/docs/models/components/primarynetworktxtype.md index f4e27e9..b5f45e7 100644 --- a/docs/models/components/primarynetworktxtype.md +++ b/docs/models/components/primarynetworktxtype.md @@ -5,7 +5,7 @@ ```typescript import { PrimaryNetworkTxType } from "@avalabs/avacloud-sdk/models/components"; -let value: PrimaryNetworkTxType = "UNKNOWN"; +let value: PrimaryNetworkTxType = "CreateAssetTx"; ``` ## Values diff --git a/docs/models/components/requesttype.md b/docs/models/components/requesttype.md index 954eeb4..0e1c8b6 100644 --- a/docs/models/components/requesttype.md +++ b/docs/models/components/requesttype.md @@ -7,7 +7,7 @@ The type of request made by the client. ```typescript import { RequestType } from "@avalabs/avacloud-sdk/models/components"; -let value: RequestType = "rpc"; +let value: RequestType = "data"; ``` ## Values diff --git a/docs/models/components/resourcelink.md b/docs/models/components/resourcelink.md index d1a0343..e9bac03 100644 --- a/docs/models/components/resourcelink.md +++ b/docs/models/components/resourcelink.md @@ -6,8 +6,8 @@ import { ResourceLink } from "@avalabs/avacloud-sdk/models/components"; let value: ResourceLink = { - type: "Instagram", - url: "https://pleasing-begonia.net/", + type: "Website", + url: "https://wretched-ribbon.info", }; ``` diff --git a/docs/models/components/resourcelinktype.md b/docs/models/components/resourcelinktype.md index 3c454fc..f8b638d 100644 --- a/docs/models/components/resourcelinktype.md +++ b/docs/models/components/resourcelinktype.md @@ -5,7 +5,7 @@ ```typescript import { ResourceLinkType } from "@avalabs/avacloud-sdk/models/components"; -let value: ResourceLinkType = "Support"; +let value: ResourceLinkType = "Medium"; ``` ## Values diff --git a/docs/models/components/rpcmetrics.md b/docs/models/components/rpcmetrics.md new file mode 100644 index 0000000..524dc76 --- /dev/null +++ b/docs/models/components/rpcmetrics.md @@ -0,0 +1,29 @@ +# RpcMetrics + +## Example Usage + +```typescript +import { RpcMetrics } from "@avalabs/avacloud-sdk/models/components"; + +let value: RpcMetrics = { + timestamp: 3416.98, + values: [ + { + totalRequests: 6762.42, + apiCreditsUsed: 8792.35, + requestsPerSecond: 5436.78, + successRatePercent: 2827.00, + medianResponseTimeMsecs: 302.35, + invalidRequests: 7103.37, + groupedBy: "rpcMethod", + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `timestamp` | *number* | :heavy_check_mark: | The timestamp of the metrics value | +| `values` | [components.RpcUsageMetricsValueAggregated](../../models/components/rpcusagemetricsvalueaggregated.md)[] | :heavy_check_mark: | The metrics values for the timestamp | \ No newline at end of file diff --git a/docs/models/components/rpcusagemetricsresponsedto.md b/docs/models/components/rpcusagemetricsresponsedto.md new file mode 100644 index 0000000..bd70924 --- /dev/null +++ b/docs/models/components/rpcusagemetricsresponsedto.md @@ -0,0 +1,36 @@ +# RpcUsageMetricsResponseDTO + +## Example Usage + +```typescript +import { RpcUsageMetricsResponseDTO } from "@avalabs/avacloud-sdk/models/components"; + +let value: RpcUsageMetricsResponseDTO = { + aggregateDuration: "", + chainId: "", + metrics: [ + { + timestamp: 4461.36, + values: [ + { + totalRequests: 1046.28, + apiCreditsUsed: 3484.76, + requestsPerSecond: 7400.98, + successRatePercent: 6805.14, + medianResponseTimeMsecs: 6223.84, + invalidRequests: 7105.28, + groupedBy: "rpcMethod", + }, + ], + }, + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `aggregateDuration` | *string* | :heavy_check_mark: | Duration in which the metrics value is aggregated | +| `chainId` | *string* | :heavy_check_mark: | ChainId for which the metrics are aggregated | +| `metrics` | [components.RpcMetrics](../../models/components/rpcmetrics.md)[] | :heavy_check_mark: | Metrics values | \ No newline at end of file diff --git a/docs/models/components/rpcusagemetricsvalueaggregated.md b/docs/models/components/rpcusagemetricsvalueaggregated.md new file mode 100644 index 0000000..361ab6c --- /dev/null +++ b/docs/models/components/rpcusagemetricsvalueaggregated.md @@ -0,0 +1,30 @@ +# RpcUsageMetricsValueAggregated + +## Example Usage + +```typescript +import { RpcUsageMetricsValueAggregated } from "@avalabs/avacloud-sdk/models/components"; + +let value: RpcUsageMetricsValueAggregated = { + totalRequests: 9221.11, + apiCreditsUsed: 894.95, + requestsPerSecond: 4059.42, + successRatePercent: 243.13, + medianResponseTimeMsecs: 3426.11, + invalidRequests: 6222.31, + groupedBy: "responseCode", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `totalRequests` | *number* | :heavy_check_mark: | The total number of requests | +| `apiCreditsUsed` | *number* | :heavy_check_mark: | The number of API credits used | +| `requestsPerSecond` | *number* | :heavy_check_mark: | The number of requests per second | +| `successRatePercent` | *number* | :heavy_check_mark: | The success rate percentage | +| `medianResponseTimeMsecs` | *number* | :heavy_check_mark: | The median response time in milliseconds | +| `invalidRequests` | *number* | :heavy_check_mark: | The number of invalid requests | +| `groupedBy` | [components.RpcUsageMetricsValueAggregatedGroupedBy](../../models/components/rpcusagemetricsvalueaggregatedgroupedby.md) | :heavy_check_mark: | Column name used for data aggregation | +| `groupValue` | *components.RpcUsageMetricsValueAggregatedGroupValue* | :heavy_minus_sign: | The value of the column used for data aggregation | \ No newline at end of file diff --git a/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md b/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md new file mode 100644 index 0000000..924be0d --- /dev/null +++ b/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md @@ -0,0 +1,17 @@ +# RpcUsageMetricsValueAggregatedGroupedBy + +Column name used for data aggregation + +## Example Usage + +```typescript +import { RpcUsageMetricsValueAggregatedGroupedBy } from "@avalabs/avacloud-sdk/models/components"; + +let value: RpcUsageMetricsValueAggregatedGroupedBy = "responseCode"; +``` + +## Values + +```typescript +"rpcMethod" | "responseCode" | "rlBypassToken" | "None" +``` \ No newline at end of file diff --git a/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md b/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md new file mode 100644 index 0000000..583a976 --- /dev/null +++ b/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md @@ -0,0 +1,19 @@ +# RpcUsageMetricsValueAggregatedGroupValue + +The value of the column used for data aggregation + + +## Supported Types + +### `string` + +```typescript +const value: string = ""; +``` + +### `number` + +```typescript +const value: number = 5305.37; +``` + diff --git a/docs/models/components/teleporterdestinationtransaction.md b/docs/models/components/teleporterdestinationtransaction.md index b91dd2f..9a9c232 100644 --- a/docs/models/components/teleporterdestinationtransaction.md +++ b/docs/models/components/teleporterdestinationtransaction.md @@ -7,7 +7,7 @@ import { TeleporterDestinationTransaction } from "@avalabs/avacloud-sdk/models/c let value: TeleporterDestinationTransaction = { txHash: "", - timestamp: 599.44, + timestamp: 9834.26, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/components/teleportersourcetransaction.md b/docs/models/components/teleportersourcetransaction.md index 50d093c..baf4e75 100644 --- a/docs/models/components/teleportersourcetransaction.md +++ b/docs/models/components/teleportersourcetransaction.md @@ -7,7 +7,7 @@ import { TeleporterSourceTransaction } from "@avalabs/avacloud-sdk/models/compon let value: TeleporterSourceTransaction = { txHash: "", - timestamp: 6964.63, + timestamp: 7453.98, gasSpent: "", }; ``` diff --git a/docs/models/components/transactiondetails.md b/docs/models/components/transactiondetails.md index 978d331..603beb3 100644 --- a/docs/models/components/transactiondetails.md +++ b/docs/models/components/transactiondetails.md @@ -61,7 +61,7 @@ let value: TransactionDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7510.22, + logIndex: 1390.73, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", @@ -96,16 +96,16 @@ let value: TransactionDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 9272.12, + logIndex: 4269.04, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://unlined-grandson.org/", + tokenUri: "https://suburban-brochure.com", metadata: { - indexStatus: "INVALID_METADATA", + indexStatus: "INVALID_TOKEN_URI_SCHEME", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, @@ -129,15 +129,15 @@ let value: TransactionDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 9873.49, + logIndex: 753.59, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://hefty-knight.info", + tokenUri: "https://celebrated-metabolite.biz/", metadata: { - indexStatus: "UNREACHABLE_TOKEN_URI", + indexStatus: "METADATA_CONTENT_TOO_LARGE", }, }, }, @@ -160,7 +160,7 @@ let value: TransactionDetails = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "CALL", + internalTxType: "UNKNOWN", value: "10000000000000000000", isReverted: false, gasUsed: "", diff --git a/docs/models/components/transactions.md b/docs/models/components/transactions.md index 0493f9f..0518abd 100644 --- a/docs/models/components/transactions.md +++ b/docs/models/components/transactions.md @@ -22,7 +22,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -55,7 +55,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -84,7 +84,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -94,7 +94,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -105,7 +105,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", createdAtTimestamp: 1675444720, cap: "fixed", }, @@ -126,7 +126,7 @@ const value: components.XChainLinearTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", chainFormat: "non-linear", timestamp: 1600762738, - txType: "OperationTx", + txType: "ImportTx", memo: "0x546865204176616c616e6368652050726f6a656374", consumedUtxos: [ { @@ -171,7 +171,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -200,7 +200,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -210,7 +210,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -223,7 +223,7 @@ const value: components.XChainLinearTransaction = { denomination: 9, type: "nft", createdAtTimestamp: 1675444720, - cap: "fixed", + cap: "variable", }, blockHeight: 1005, blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", diff --git a/docs/models/components/transfers.md b/docs/models/components/transfers.md index 2f248b0..4a69290 100644 --- a/docs/models/components/transfers.md +++ b/docs/models/components/transfers.md @@ -28,7 +28,7 @@ const value: components.Erc20Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7263.42, + logIndex: 3763.89, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", @@ -71,16 +71,16 @@ const value: components.Erc721Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5369.23, + logIndex: 3649.12, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://impressive-haircut.biz/", + tokenUri: "https://major-pleasure.biz/", metadata: { - indexStatus: "UNKNOWN", + indexStatus: "THROTTLED_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, @@ -112,15 +112,15 @@ const value: components.Erc1155Transfer = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7372.54, + logIndex: 1173.80, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://petty-pressure.name/", + tokenUri: "https://athletic-vision.com/", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "MISSING_TOKEN", }, }, }; diff --git a/docs/models/components/usagemetricsresponsedto.md b/docs/models/components/usagemetricsresponsedto.md index 21175f9..0ff41c7 100644 --- a/docs/models/components/usagemetricsresponsedto.md +++ b/docs/models/components/usagemetricsresponsedto.md @@ -10,17 +10,17 @@ let value: UsageMetricsResponseDTO = { orgId: "", metrics: [ { - timestamp: 2400.20, + timestamp: 5438.06, values: [ { - groupedBy: "requestPath", - totalRequests: 7963.91, - requestsPerSecond: 9591.67, - successRatePercent: 4581.39, - medianResponseTimeMsecs: 5909.84, - invalidRequests: 8577.23, - apiCreditsUsed: 4572.23, - apiCreditsWasted: 9518.74, + groupedBy: "chainId", + totalRequests: 8820.41, + requestsPerSecond: 4586.04, + successRatePercent: 7241.68, + medianResponseTimeMsecs: 3990.25, + invalidRequests: 9040.44, + apiCreditsUsed: 6900.25, + apiCreditsWasted: 6996.22, }, ], }, diff --git a/docs/models/components/usagemetricsvaluedto.md b/docs/models/components/usagemetricsvaluedto.md index 2b351af..8d30d90 100644 --- a/docs/models/components/usagemetricsvaluedto.md +++ b/docs/models/components/usagemetricsvaluedto.md @@ -6,14 +6,14 @@ import { UsageMetricsValueDTO } from "@avalabs/avacloud-sdk/models/components"; let value: UsageMetricsValueDTO = { - groupedBy: "requestPath", - totalRequests: 9589.83, - requestsPerSecond: 3553.69, - successRatePercent: 3567.07, - medianResponseTimeMsecs: 163.29, - invalidRequests: 1852.32, - apiCreditsUsed: 4012.60, - apiCreditsWasted: 9292.91, + groupedBy: "None", + totalRequests: 5757.51, + requestsPerSecond: 8207.67, + successRatePercent: 9088.44, + medianResponseTimeMsecs: 8155.24, + invalidRequests: 1594.14, + apiCreditsUsed: 6288.98, + apiCreditsWasted: 3984.34, }; ``` diff --git a/docs/models/components/vmname.md b/docs/models/components/vmname.md index 830d531..1e3d8d1 100644 --- a/docs/models/components/vmname.md +++ b/docs/models/components/vmname.md @@ -5,7 +5,7 @@ ```typescript import { VmName } from "@avalabs/avacloud-sdk/models/components"; -let value: VmName = "ETHEREUM"; +let value: VmName = "EVM"; ``` ## Values diff --git a/docs/models/components/webhookresponse.md b/docs/models/components/webhookresponse.md index 763c825..6eb0abd 100644 --- a/docs/models/components/webhookresponse.md +++ b/docs/models/components/webhookresponse.md @@ -16,12 +16,12 @@ let value: WebhookResponse = { "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", ], }, - url: "https://squeaky-brace.info/", + url: "https://trusting-knitting.org", chainId: "", status: "inactive", - createdAt: 6939.56, + createdAt: 9233.06, name: "", - description: "within wiggly huzzah", + description: "ah hunt until freckle across following gadzooks wobbly athwart", }; ``` diff --git a/docs/models/components/webhookstatustype.md b/docs/models/components/webhookstatustype.md index 424ae88..8297cc3 100644 --- a/docs/models/components/webhookstatustype.md +++ b/docs/models/components/webhookstatustype.md @@ -5,7 +5,7 @@ ```typescript import { WebhookStatusType } from "@avalabs/avacloud-sdk/models/components"; -let value: WebhookStatusType = "inactive"; +let value: WebhookStatusType = "active"; ``` ## Values diff --git a/docs/models/components/xchainbalances.md b/docs/models/components/xchainbalances.md index a684ec9..1400f48 100644 --- a/docs/models/components/xchainbalances.md +++ b/docs/models/components/xchainbalances.md @@ -23,7 +23,7 @@ let value: XChainBalances = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, }, @@ -46,7 +46,7 @@ let value: XChainBalances = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, sharedWithChainId: "", diff --git a/docs/models/components/xchainsharedassetbalance.md b/docs/models/components/xchainsharedassetbalance.md index 495e7a7..d5984d8 100644 --- a/docs/models/components/xchainsharedassetbalance.md +++ b/docs/models/components/xchainsharedassetbalance.md @@ -10,7 +10,7 @@ let value: XChainSharedAssetBalance = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, sharedWithChainId: "", diff --git a/docs/models/components/xchainvertex.md b/docs/models/components/xchainvertex.md index a3eacc0..5a34060 100644 --- a/docs/models/components/xchainvertex.md +++ b/docs/models/components/xchainvertex.md @@ -10,14 +10,14 @@ let value: XChainVertex = { parentHashes: [ "", ], - vertexHeight: 6900.25, - vertexIndex: 6996.22, - vertexTimestamp: 3277.20, - txCount: 7567.79, + vertexHeight: 1288.61, + vertexIndex: 3926.76, + vertexTimestamp: 9564.06, + txCount: 1871.31, transactions: [ "", ], - vertexSizeBytes: 6360.61, + vertexSizeBytes: 9039.84, }; ``` diff --git a/docs/models/operations/getaddressesfromwebhookresponse.md b/docs/models/operations/getaddressesfromwebhookresponse.md index 5809572..98c399b 100644 --- a/docs/models/operations/getaddressesfromwebhookresponse.md +++ b/docs/models/operations/getaddressesfromwebhookresponse.md @@ -10,7 +10,7 @@ let value: GetAddressesFromWebhookResponse = { addresses: [ "", ], - totalAddresses: 5676.93, + totalAddresses: 4733.26, }, }; ``` diff --git a/docs/models/operations/getapilogsrequest.md b/docs/models/operations/getapilogsrequest.md index 581f783..67c5d91 100644 --- a/docs/models/operations/getapilogsrequest.md +++ b/docs/models/operations/getapilogsrequest.md @@ -6,22 +6,22 @@ import { GetApiLogsRequest } from "@avalabs/avacloud-sdk/models/operations"; let value: GetApiLogsRequest = { - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, }; ``` ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `orgId` | *string* | :heavy_minus_sign: | Organization ID to fetch usage metrics for | | -| `startTimestamp` | *number* | :heavy_minus_sign: | Query param for retrieving items after a specific timestamp. | 1689541049 | -| `endTimestamp` | *number* | :heavy_minus_sign: | Query param for retrieving items before a specific timestamp. | 1689800249 | -| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | -| `requestType` | [operations.QueryParamRequestType](../../models/operations/queryparamrequesttype.md) | :heavy_minus_sign: | Filter data by request type. | | -| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | -| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | -| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | -| `pageToken` | *string* | :heavy_minus_sign: | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | | -| `pageSize` | *number* | :heavy_minus_sign: | The maximum number of items to return. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `orgId` | *string* | :heavy_minus_sign: | Organization ID to fetch usage metrics for | | +| `startTimestamp` | *number* | :heavy_minus_sign: | The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. | 1698100000 | +| `endTimestamp` | *number* | :heavy_minus_sign: | The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. | 1698300000 | +| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | +| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | +| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | +| `requestType` | [operations.QueryParamRequestType](../../models/operations/queryparamrequesttype.md) | :heavy_minus_sign: | Filter data by request type. | | +| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | +| `pageToken` | *string* | :heavy_minus_sign: | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | | +| `pageSize` | *number* | :heavy_minus_sign: | The maximum number of items to return. | | \ No newline at end of file diff --git a/docs/models/operations/getapilogsresponse.md b/docs/models/operations/getapilogsresponse.md index 2491d17..384c1a1 100644 --- a/docs/models/operations/getapilogsresponse.md +++ b/docs/models/operations/getapilogsresponse.md @@ -12,18 +12,18 @@ let value: GetApiLogsResponse = { { orgId: "", logId: "", - eventTimestamp: 5831.93, + eventTimestamp: 7732.59, apiKeyId: "", apiKeyAlias: "", hostRegion: "", - requestType: "data", + requestType: "rpc", requestPath: "", - apiCreditsConsumed: 1989.11, - requestDurationMsecs: 9561.23, - responseCode: 3304.41, + apiCreditsConsumed: 9829.99, + requestDurationMsecs: 9822.48, + responseCode: 9926.67, metadata: { - ipAddress: "6ea7:b284:f286:b7f0:d55b:f6c2:da39:d20c", - host: "jam-packed-section.org", + ipAddress: "240.62.117.193", + host: "doting-mentor.biz", userAgent: "", }, }, diff --git a/docs/models/operations/getapiusagemetricsrequest.md b/docs/models/operations/getapiusagemetricsrequest.md index 6ee3c0b..0f5ca64 100644 --- a/docs/models/operations/getapiusagemetricsrequest.md +++ b/docs/models/operations/getapiusagemetricsrequest.md @@ -6,8 +6,8 @@ import { GetApiUsageMetricsRequest } from "@avalabs/avacloud-sdk/models/operations"; let value: GetApiUsageMetricsRequest = { - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, timeInterval: "daily", groupBy: "requestPath", }; @@ -15,15 +15,15 @@ let value: GetApiUsageMetricsRequest = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `orgId` | *string* | :heavy_minus_sign: | Organization ID to fetch usage metrics for | | -| `startTimestamp` | *number* | :heavy_minus_sign: | Query param for retrieving items after a specific timestamp. | 1689541049 | -| `endTimestamp` | *number* | :heavy_minus_sign: | Query param for retrieving items before a specific timestamp. | 1689800249 | -| `timeInterval` | [components.TimeIntervalGranularityExtended](../../models/components/timeintervalgranularityextended.md) | :heavy_minus_sign: | Time interval granularity for data aggregation | daily | -| `groupBy` | [components.UsageMetricsGroupByEnum](../../models/components/usagemetricsgroupbyenum.md) | :heavy_minus_sign: | Query param for the criterion used for grouping metrics | requestPath | -| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | -| `requestType` | [operations.RequestType](../../models/operations/requesttype.md) | :heavy_minus_sign: | Filter data by request type. | | -| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | -| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | -| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `orgId` | *string* | :heavy_minus_sign: | Organization ID to fetch usage metrics for | | +| `startTimestamp` | *number* | :heavy_minus_sign: | The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. | 1698100000 | +| `endTimestamp` | *number* | :heavy_minus_sign: | The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. | 1698300000 | +| `timeInterval` | [components.TimeIntervalGranularityExtended](../../models/components/timeintervalgranularityextended.md) | :heavy_minus_sign: | Time interval granularity for data aggregation | daily | +| `groupBy` | [components.UsageMetricsGroupByEnum](../../models/components/usagemetricsgroupbyenum.md) | :heavy_minus_sign: | Query param for the criterion used for grouping metrics | requestPath | +| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | +| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | +| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | +| `requestType` | [operations.RequestType](../../models/operations/requesttype.md) | :heavy_minus_sign: | Filter data by request type. | | +| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | \ No newline at end of file diff --git a/docs/models/operations/getbalancesbyaddressesresponsebody.md b/docs/models/operations/getbalancesbyaddressesresponsebody.md index 2082d3b..8eba053 100644 --- a/docs/models/operations/getbalancesbyaddressesresponsebody.md +++ b/docs/models/operations/getbalancesbyaddressesresponsebody.md @@ -16,7 +16,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -49,7 +49,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, }, @@ -60,7 +60,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -71,7 +71,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, }, @@ -82,7 +82,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -95,7 +95,7 @@ const value: components.ListPChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -104,8 +104,8 @@ const value: components.ListPChainBalancesResponse = { ], }, chainInfo: { - chainName: "p-chain", - network: "devnet", + chainName: "x-chain", + network: "mainnet", }, }; ``` @@ -132,7 +132,7 @@ const value: components.ListXChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, }, @@ -155,7 +155,7 @@ const value: components.ListXChainBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", utxoCount: 1, sharedWithChainId: "", @@ -163,8 +163,8 @@ const value: components.ListXChainBalancesResponse = { ], }, chainInfo: { - chainName: "c-chain", - network: "fuji", + chainName: "p-chain", + network: "mainnet", }, }; ``` @@ -180,7 +180,7 @@ const value: components.ListCChainAtomicBalancesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", utxoCount: 1, sharedWithChainId: "", @@ -200,7 +200,7 @@ const value: components.ListCChainAtomicBalancesResponse = { ], }, chainInfo: { - chainName: "c-chain", + chainName: "x-chain", network: "mainnet", }, }; diff --git a/docs/models/operations/getevmchainmetricsresponse.md b/docs/models/operations/getevmchainmetricsresponse.md index 25326e0..17a5c7a 100644 --- a/docs/models/operations/getevmchainmetricsresponse.md +++ b/docs/models/operations/getevmchainmetricsresponse.md @@ -9,8 +9,8 @@ let value: GetEvmChainMetricsResponse = { result: { results: [ { - value: 7573.64, - timestamp: 3145.73, + value: 4567.04, + timestamp: 209.50, }, ], }, diff --git a/docs/models/operations/getlatestblocksresponse.md b/docs/models/operations/getlatestblocksresponse.md index 09057ee..8b857e4 100644 --- a/docs/models/operations/getlatestblocksresponse.md +++ b/docs/models/operations/getlatestblocksresponse.md @@ -13,7 +13,7 @@ let value: GetLatestBlocksResponse = { blockTimestamp: 1648672486, blockHash: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 1512.30, + txCount: 6775.08, baseFee: "", gasUsed: "", gasLimit: "", diff --git a/docs/models/operations/getrpcusagemetricsrequest.md b/docs/models/operations/getrpcusagemetricsrequest.md new file mode 100644 index 0000000..de38b85 --- /dev/null +++ b/docs/models/operations/getrpcusagemetricsrequest.md @@ -0,0 +1,27 @@ +# GetRpcUsageMetricsRequest + +## Example Usage + +```typescript +import { GetRpcUsageMetricsRequest } from "@avalabs/avacloud-sdk/models/operations"; + +let value: GetRpcUsageMetricsRequest = { + startTimestamp: 1698100000, + endTimestamp: 1698300000, + groupBy: "requestPath", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `timeInterval` | *string* | :heavy_minus_sign: | Query param for setting time interval of data aggregation. | | +| `startTimestamp` | *number* | :heavy_minus_sign: | The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. | 1698100000 | +| `endTimestamp` | *number* | :heavy_minus_sign: | The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. | 1698300000 | +| `groupBy` | [components.UsageMetricsGroupByEnum](../../models/components/usagemetricsgroupbyenum.md) | :heavy_minus_sign: | Query param for the criterion used for grouping metrics | requestPath | +| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | +| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | +| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | +| `rpcMethod` | *string* | :heavy_minus_sign: | Filter data by RPC method. | | +| `rlBypassApiToken` | *string* | :heavy_minus_sign: | Filter data by Rl Bypass API Token. | | \ No newline at end of file diff --git a/docs/models/operations/getsinglevalidatordetailsresponse.md b/docs/models/operations/getsinglevalidatordetailsresponse.md index 9347185..55e56e7 100644 --- a/docs/models/operations/getsinglevalidatordetailsresponse.md +++ b/docs/models/operations/getsinglevalidatordetailsresponse.md @@ -13,8 +13,8 @@ let value: GetSingleValidatorDetailsResponse = { nodeId: "", subnetId: "", amountStaked: "", - startTimestamp: 7277.71, - endTimestamp: 8151.99, + startTimestamp: 9692.06, + endTimestamp: 2656.33, validationStatus: "pending", }, ], diff --git a/docs/models/operations/getstakingmetricsresponse.md b/docs/models/operations/getstakingmetricsresponse.md index 1fe8cf6..d7129e8 100644 --- a/docs/models/operations/getstakingmetricsresponse.md +++ b/docs/models/operations/getstakingmetricsresponse.md @@ -9,8 +9,8 @@ let value: GetStakingMetricsResponse = { result: { results: [ { - value: 6573.19, - timestamp: 5173.26, + value: 4116.16, + timestamp: 4894.59, }, ], }, diff --git a/docs/models/operations/getteleportermessageresponsebody.md b/docs/models/operations/getteleportermessageresponsebody.md index 816e05c..0b20c10 100644 --- a/docs/models/operations/getteleportermessageresponsebody.md +++ b/docs/models/operations/getteleportermessageresponsebody.md @@ -42,7 +42,7 @@ const value: components.PendingTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 9829.99, + timestamp: 6751.26, gasSpent: "", }, status: "pending", @@ -86,12 +86,12 @@ const value: components.DeliveredTeleporterMessage = { }, sourceTransaction: { txHash: "", - timestamp: 9822.48, + timestamp: 213.59, gasSpent: "", }, destinationTransaction: { txHash: "", - timestamp: 9926.67, + timestamp: 1023.17, gasSpent: "", rewardRedeemer: "", delivererAddress: "", @@ -137,7 +137,7 @@ const value: components.DeliveredSourceNotIndexedTeleporterMessage = { }, destinationTransaction: { txHash: "", - timestamp: 1186.16, + timestamp: 2921.77, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/operations/gettokendetailsresponsebody.md b/docs/models/operations/gettokendetailsresponsebody.md index 015221e..d0c00fd 100644 --- a/docs/models/operations/gettokendetailsresponsebody.md +++ b/docs/models/operations/gettokendetailsresponsebody.md @@ -14,9 +14,9 @@ const value: components.Erc721Token = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://edible-teriyaki.com", + tokenUri: "https://spanish-steak.info", metadata: { - indexStatus: "INVALID_TOKEN_URI_SCHEME", + indexStatus: "INVALID_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }; @@ -29,9 +29,9 @@ const value: components.Erc1155Token = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://little-slide.biz/", + tokenUri: "https://common-instructor.com", metadata: { - indexStatus: "MISSING_TOKEN", + indexStatus: "UNINDEXED", }, }; ``` diff --git a/docs/models/operations/gettxbyhashresponsebody.md b/docs/models/operations/gettxbyhashresponsebody.md index dfce1b9..901e61b 100644 --- a/docs/models/operations/gettxbyhashresponsebody.md +++ b/docs/models/operations/gettxbyhashresponsebody.md @@ -10,7 +10,7 @@ Successful response ```typescript const value: components.PChainTransaction = { txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "CreateSubnetTx", + txType: "BaseTx", blockTimestamp: 1648672486, blockNumber: "", blockHash: "", @@ -31,11 +31,11 @@ const value: components.PChainTransaction = { consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "345.50", + amount: "310.63", assetId: "", blockNumber: "", - blockTimestamp: 4800.61, - outputIndex: 5221.76, + blockTimestamp: 7912.27, + outputIndex: 7151.43, txHash: "", utxoType: "TRANSFER", }, @@ -57,13 +57,13 @@ const value: components.PChainTransaction = { consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "220.10", + amount: "418.64", assetId: "", blockNumber: "", - blockTimestamp: 6228.94, - outputIndex: 1114.96, + blockTimestamp: 53.10, + outputIndex: 113.55, txHash: "", - utxoType: "STAKE", + utxoType: "TRANSFER", }, ], sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -94,7 +94,7 @@ const value: components.PChainTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -115,7 +115,7 @@ const value: components.XChainNonLinearTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", chainFormat: "non-linear", timestamp: 1600762738, - txType: "ExportTx", + txType: "UNKNOWN", memo: "0x546865204176616c616e6368652050726f6a656374", consumedUtxos: [ { @@ -160,7 +160,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -210,7 +210,7 @@ const value: components.XChainNonLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", createdAtTimestamp: 1675444720, cap: "variable", }, @@ -231,7 +231,7 @@ const value: components.XChainLinearTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", chainFormat: "non-linear", timestamp: 1600762738, - txType: "UNKNOWN", + txType: "BaseTx", memo: "0x546865204176616c616e6368652050726f6a656374", consumedUtxos: [ { @@ -305,7 +305,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -315,7 +315,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -326,7 +326,7 @@ const value: components.XChainLinearTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", createdAtTimestamp: 1675444720, cap: "variable", }, @@ -351,7 +351,7 @@ const value: components.CChainExportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -480,7 +480,7 @@ const value: components.CChainImportTransaction = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", diff --git a/docs/models/operations/getutxosbyaddressesresponse.md b/docs/models/operations/getutxosbyaddressesresponse.md index 6e4e791..6f087a2 100644 --- a/docs/models/operations/getutxosbyaddressesresponse.md +++ b/docs/models/operations/getutxosbyaddressesresponse.md @@ -17,27 +17,20 @@ let value: GetUtxosByAddressesResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - consumingTxTimestamp: 1599696000, - creationTxHash: "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z", - credentials: [ - { - signature: - "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", - publicKey: "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI", - }, - ], - locktime: 0, - outputIndex: "38", - threshold: 1, - timestamp: 1599696000, - utxoType: "mint", + amount: "983.86", + assetId: "", + blockNumber: "", + blockTimestamp: 6973.30, + outputIndex: 3895.49, + txHash: "", + utxoType: "STAKE", }, ], chainInfo: { diff --git a/docs/models/operations/getutxosbyaddressesresponsebody.md b/docs/models/operations/getutxosbyaddressesresponsebody.md index 1d35466..d6431bc 100644 --- a/docs/models/operations/getutxosbyaddressesresponsebody.md +++ b/docs/models/operations/getutxosbyaddressesresponsebody.md @@ -26,13 +26,13 @@ const value: components.ListPChainUtxosResponse = { consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "0.66", + amount: "18.09", assetId: "", blockNumber: "", - blockTimestamp: 9416.68, - outputIndex: 2783.25, + blockTimestamp: 5905.85, + outputIndex: 4355.32, txHash: "", - utxoType: "STAKE", + utxoType: "TRANSFER", }, ], chainInfo: { @@ -80,8 +80,8 @@ const value: components.ListUtxosResponse = { }, ], chainInfo: { - chainName: "c-chain", - network: "fuji", + chainName: "x-chain", + network: "mainnet", }, }; ``` diff --git a/docs/models/operations/getvertexbyheightresponse.md b/docs/models/operations/getvertexbyheightresponse.md index 14f3a9a..18fbf7a 100644 --- a/docs/models/operations/getvertexbyheightresponse.md +++ b/docs/models/operations/getvertexbyheightresponse.md @@ -13,19 +13,19 @@ let value: GetVertexByHeightResponse = { parentHashes: [ "", ], - vertexHeight: 5525.81, - vertexIndex: 8518.09, - vertexTimestamp: 9623.95, - txCount: 1105.22, + vertexHeight: 411.80, + vertexIndex: 8164.21, + vertexTimestamp: 8075.64, + txCount: 510.07, transactions: [ "", ], - vertexSizeBytes: 6308.32, + vertexSizeBytes: 6271.61, }, ], chainInfo: { - chainName: "c-chain", - network: "devnet", + chainName: "x-chain", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md b/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md index 3f9294a..6d41d08 100644 --- a/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md +++ b/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md @@ -10,7 +10,7 @@ let value: ListActivePrimaryNetworkStakingTransactionsResponse = { transactions: [ { txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "UNKNOWN", + txType: "AddValidatorTx", blockTimestamp: 1648672486, blockNumber: "", blockHash: "", @@ -24,7 +24,7 @@ let value: ListActivePrimaryNetworkStakingTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: @@ -34,11 +34,11 @@ let value: ListActivePrimaryNetworkStakingTransactionsResponse = { createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "349.99", + amount: "956.13", assetId: "", blockNumber: "", - blockTimestamp: 2543.82, - outputIndex: 2653.03, + blockTimestamp: 3304.41, + outputIndex: 6383.90, txHash: "", utxoType: "STAKE", }, @@ -63,13 +63,13 @@ let value: ListActivePrimaryNetworkStakingTransactionsResponse = { createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "141.81", + amount: "728.56", assetId: "", blockNumber: "", - blockTimestamp: 3167.31, - outputIndex: 6267.06, + blockTimestamp: 3296.51, + outputIndex: 7917.61, txHash: "", - utxoType: "TRANSFER", + utxoType: "STAKE", }, ], sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -114,8 +114,8 @@ let value: ListActivePrimaryNetworkStakingTransactionsResponse = { }, ], chainInfo: { - chainName: "c-chain", - network: "fuji", + chainName: "p-chain", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listassettransactionsresponse.md b/docs/models/operations/listassettransactionsresponse.md index 5052e90..624571e 100644 --- a/docs/models/operations/listassettransactionsresponse.md +++ b/docs/models/operations/listassettransactionsresponse.md @@ -24,7 +24,7 @@ let value: ListAssetTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: @@ -92,7 +92,7 @@ let value: ListAssetTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -102,7 +102,7 @@ let value: ListAssetTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -113,17 +113,22 @@ let value: ListAssetTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", createdAtTimestamp: 1675444720, cap: "fixed", }, - blockHeight: 1005, - blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", + vertices: [ + { + hash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", + height: 1961, + timestamp: 1600762738, + }, + ], }, ], chainInfo: { - chainName: "c-chain", - network: "devnet", + chainName: "p-chain", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listblockchainsresponse.md b/docs/models/operations/listblockchainsresponse.md index 831135e..07854a3 100644 --- a/docs/models/operations/listblockchainsresponse.md +++ b/docs/models/operations/listblockchainsresponse.md @@ -9,7 +9,7 @@ let value: ListBlockchainsResponse = { result: { blockchains: [ { - createBlockTimestamp: 8138.80, + createBlockTimestamp: 7193.89, createBlockNumber: "", blockchainId: "", vmId: "", diff --git a/docs/models/operations/listcollectiblebalancesresponse.md b/docs/models/operations/listcollectiblebalancesresponse.md index 6b75e75..aac8ff8 100644 --- a/docs/models/operations/listcollectiblebalancesresponse.md +++ b/docs/models/operations/listcollectiblebalancesresponse.md @@ -10,16 +10,14 @@ let value: ListCollectibleBalancesResponse = { collectibleBalances: [ { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", + ercType: "ERC-1155", tokenId: "", - tokenUri: "https://beneficial-duster.biz/", + tokenUri: "https://trim-emergent.info/", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "INVALID_METADATA_JSON", }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", + balance: "2000000000000000000", }, ], }, diff --git a/docs/models/operations/listdelegatorsresponse.md b/docs/models/operations/listdelegatorsresponse.md index a242968..bfdaade 100644 --- a/docs/models/operations/listdelegatorsresponse.md +++ b/docs/models/operations/listdelegatorsresponse.md @@ -16,8 +16,8 @@ let value: ListDelegatorsResponse = { ], amountDelegated: "", delegationFee: "", - startTimestamp: 9738.19, - endTimestamp: 1623.58, + startTimestamp: 4837.53, + endTimestamp: 2561.14, estimatedGrossReward: "", estimatedNetReward: "", delegationStatus: "active", diff --git a/docs/models/operations/listerc1155balancesresponse.md b/docs/models/operations/listerc1155balancesresponse.md index 782f5d0..3b9d662 100644 --- a/docs/models/operations/listerc1155balancesresponse.md +++ b/docs/models/operations/listerc1155balancesresponse.md @@ -12,9 +12,9 @@ let value: ListErc1155BalancesResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://harmful-accelerator.info/", + tokenUri: "https://alive-sonata.name/", metadata: { - indexStatus: "INVALID_METADATA", + indexStatus: "MISSING_TOKEN", }, chainId: "43114", balance: "2000000000000000000", diff --git a/docs/models/operations/listerc1155transactionsresponse.md b/docs/models/operations/listerc1155transactionsresponse.md index 1986f4f..f23224c 100644 --- a/docs/models/operations/listerc1155transactionsresponse.md +++ b/docs/models/operations/listerc1155transactionsresponse.md @@ -31,13 +31,13 @@ let value: ListErc1155TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 7480.23, + logIndex: 7681.95, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://frivolous-self-confidence.name", + tokenUri: "https://everlasting-dredger.biz", metadata: { indexStatus: "THROTTLED_TOKEN_URI", }, diff --git a/docs/models/operations/listerc20transactionsresponse.md b/docs/models/operations/listerc20transactionsresponse.md index 8808298..f84937b 100644 --- a/docs/models/operations/listerc20transactionsresponse.md +++ b/docs/models/operations/listerc20transactionsresponse.md @@ -31,7 +31,7 @@ let value: ListErc20TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 8877.01, + logIndex: 9132.84, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/docs/models/operations/listerc721balancesresponse.md b/docs/models/operations/listerc721balancesresponse.md index 2ea4065..796a28b 100644 --- a/docs/models/operations/listerc721balancesresponse.md +++ b/docs/models/operations/listerc721balancesresponse.md @@ -14,9 +14,9 @@ let value: ListErc721BalancesResponse = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://doting-mentor.biz", + tokenUri: "https://grandiose-fax.org/", metadata: { - indexStatus: "MISSING_TOKEN", + indexStatus: "INDEXED", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", chainId: "43114", diff --git a/docs/models/operations/listerc721transactionsresponse.md b/docs/models/operations/listerc721transactionsresponse.md index 8d095e6..0245579 100644 --- a/docs/models/operations/listerc721transactionsresponse.md +++ b/docs/models/operations/listerc721transactionsresponse.md @@ -31,16 +31,16 @@ let value: ListErc721TransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 6386.09, + logIndex: 3050.47, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://another-rust.name/", + tokenUri: "https://worst-guidance.name", metadata: { - indexStatus: "INVALID_METADATA_JSON", + indexStatus: "UNREACHABLE_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, diff --git a/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md b/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md index a95c330..3f42e84 100644 --- a/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md +++ b/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md @@ -15,11 +15,11 @@ let value: ListHistoricalPrimaryNetworkRewardsResponse = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 5112.22, - endTimestamp: 832.91, + startTimestamp: 6339.82, + endTimestamp: 7510.32, rewardType: "VALIDATOR", utxoId: "", - outputIndex: 9655.17, + outputIndex: 4260.02, reward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", diff --git a/docs/models/operations/listlatestprimarynetworkblocksresponse.md b/docs/models/operations/listlatestprimarynetworkblocksresponse.md index 5dcd412..599f304 100644 --- a/docs/models/operations/listlatestprimarynetworkblocksresponse.md +++ b/docs/models/operations/listlatestprimarynetworkblocksresponse.md @@ -12,18 +12,18 @@ let value: ListLatestPrimaryNetworkBlocksResponse = { blockNumber: "", blockHash: "", parentHash: "", - blockTimestamp: 4724.14, + blockTimestamp: 3085.28, blockType: "", - txCount: 4382.56, + txCount: 9421.85, transactions: [ "", ], - blockSizeBytes: 2027.96, + blockSizeBytes: 8882.65, }, ], chainInfo: { - chainName: "x-chain", - network: "fuji", + chainName: "c-chain", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listlatestprimarynetworktransactionsresponse.md b/docs/models/operations/listlatestprimarynetworktransactionsresponse.md index f5dda0f..5afdd34 100644 --- a/docs/models/operations/listlatestprimarynetworktransactionsresponse.md +++ b/docs/models/operations/listlatestprimarynetworktransactionsresponse.md @@ -12,7 +12,7 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", chainFormat: "non-linear", timestamp: 1600762738, - txType: "ExportTx", + txType: "UNKNOWN", memo: "0x546865204176616c616e6368652050726f6a656374", consumedUtxos: [ { @@ -24,7 +24,7 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, consumedOnChainId: @@ -60,7 +60,7 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, consumedOnChainId: @@ -92,7 +92,7 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -113,7 +113,7 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", createdAtTimestamp: 1675444720, cap: "fixed", }, @@ -122,8 +122,8 @@ let value: ListLatestPrimaryNetworkTransactionsResponse = { }, ], chainInfo: { - chainName: "p-chain", - network: "devnet", + chainName: "x-chain", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md b/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md index 7daae41..5efe7ee 100644 --- a/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md +++ b/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md @@ -12,7 +12,7 @@ const value: components.ListPChainTransactionsResponse = { transactions: [ { txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "AddPermissionlessDelegatorTx", + txType: "ImportTx", blockTimestamp: 1648672486, blockNumber: "", blockHash: "", @@ -35,11 +35,11 @@ const value: components.ListPChainTransactionsResponse = { createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "322.83", + amount: "754.90", assetId: "", blockNumber: "", - blockTimestamp: 2295.67, - outputIndex: 5068.63, + blockTimestamp: 8850.22, + outputIndex: 1002.52, txHash: "", utxoType: "TRANSFER", }, @@ -63,13 +63,13 @@ const value: components.ListPChainTransactionsResponse = { createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "514.92", + amount: "967.06", assetId: "", blockNumber: "", - blockTimestamp: 9384.12, - outputIndex: 2286.47, + blockTimestamp: 6150.58, + outputIndex: 5524.39, txHash: "", - utxoType: "TRANSFER", + utxoType: "STAKE", }, ], sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", @@ -100,7 +100,7 @@ const value: components.ListPChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -207,7 +207,7 @@ const value: components.ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -217,7 +217,7 @@ const value: components.ListXChainTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, ], @@ -237,7 +237,7 @@ const value: components.ListXChainTransactionsResponse = { }, ], chainInfo: { - chainName: "x-chain", + chainName: "p-chain", network: "mainnet", }, }; @@ -271,7 +271,7 @@ const value: components.ListCChainAtomicTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "secp256k1", + type: "nft", amount: "5001000", }, ], @@ -286,7 +286,7 @@ const value: components.ListCChainAtomicTransactionsResponse = { name: "Avalanche", symbol: "AVAX", denomination: 9, - type: "nft", + type: "secp256k1", amount: "5001000", }, credentials: [ @@ -336,8 +336,8 @@ const value: components.ListCChainAtomicTransactionsResponse = { }, ], chainInfo: { - chainName: "p-chain", - network: "fuji", + chainName: "c-chain", + network: "mainnet", }, }; ``` diff --git a/docs/models/operations/listlatesttransactionsresponse.md b/docs/models/operations/listlatesttransactionsresponse.md index 487a6e4..8e687f1 100644 --- a/docs/models/operations/listlatesttransactionsresponse.md +++ b/docs/models/operations/listlatesttransactionsresponse.md @@ -39,7 +39,7 @@ let value: ListLatestTransactionsResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "NATIVE_TRANSFER", + callType: "CONTRACT_CREATION", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, diff --git a/docs/models/operations/listlatestxchainverticesresponse.md b/docs/models/operations/listlatestxchainverticesresponse.md index 56d52b5..99a47c1 100644 --- a/docs/models/operations/listlatestxchainverticesresponse.md +++ b/docs/models/operations/listlatestxchainverticesresponse.md @@ -13,19 +13,19 @@ let value: ListLatestXChainVerticesResponse = { parentHashes: [ "", ], - vertexHeight: 1636.84, - vertexIndex: 4413.74, - vertexTimestamp: 2628.00, - txCount: 5220.62, + vertexHeight: 6530.00, + vertexIndex: 3442.89, + vertexTimestamp: 5488.49, + txCount: 8152.25, transactions: [ "", ], - vertexSizeBytes: 351.60, + vertexSizeBytes: 986.10, }, ], chainInfo: { chainName: "c-chain", - network: "devnet", + network: "mainnet", }, }, }; diff --git a/docs/models/operations/listnativetransactionsresponse.md b/docs/models/operations/listnativetransactionsresponse.md index 94e8c33..d65e6ea 100644 --- a/docs/models/operations/listnativetransactionsresponse.md +++ b/docs/models/operations/listnativetransactionsresponse.md @@ -39,7 +39,7 @@ let value: ListNativeTransactionsResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "CONTRACT_CALL", + callType: "NATIVE_TRANSFER", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, diff --git a/docs/models/operations/listpendingprimarynetworkrewardsresponse.md b/docs/models/operations/listpendingprimarynetworkrewardsresponse.md index 83cec37..92a0920 100644 --- a/docs/models/operations/listpendingprimarynetworkrewardsresponse.md +++ b/docs/models/operations/listpendingprimarynetworkrewardsresponse.md @@ -15,10 +15,10 @@ let value: ListPendingPrimaryNetworkRewardsResponse = { txHash: "", amountStaked: "", nodeId: "", - startTimestamp: 5580.51, - endTimestamp: 7049.48, - rewardType: "DELEGATOR", - progress: 53.10, + startTimestamp: 8002.56, + endTimestamp: 9555.68, + rewardType: "VALIDATOR", + progress: 8268.05, estimatedReward: { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", name: "Avalanche", diff --git a/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md b/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md index 0c727a0..cd4e151 100644 --- a/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md +++ b/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md @@ -12,13 +12,13 @@ let value: ListPrimaryNetworkBlocksByNodeIdResponse = { blockNumber: "", blockHash: "", parentHash: "", - blockTimestamp: 8281.47, + blockTimestamp: 6682.18, blockType: "", - txCount: 9851.09, + txCount: 2867.17, transactions: [ "", ], - blockSizeBytes: 7833.97, + blockSizeBytes: 194.62, }, ], chainInfo: { diff --git a/docs/models/operations/listsubnetsresponse.md b/docs/models/operations/listsubnetsresponse.md index eeca462..78c70af 100644 --- a/docs/models/operations/listsubnetsresponse.md +++ b/docs/models/operations/listsubnetsresponse.md @@ -9,14 +9,14 @@ let value: ListSubnetsResponse = { result: { subnets: [ { - createBlockTimestamp: 1403.84, + createBlockTimestamp: 3499.93, createBlockIndex: "", subnetId: "", ownerAddresses: [ "", ], - threshold: 2273.62, - locktime: 688.52, + threshold: 2543.82, + locktime: 2653.03, subnetOwnershipInfo: { locktime: 0, threshold: 1, diff --git a/docs/models/operations/listteleportermessagesresponse.md b/docs/models/operations/listteleportermessagesresponse.md index 1466fd4..7597ccb 100644 --- a/docs/models/operations/listteleportermessagesresponse.md +++ b/docs/models/operations/listteleportermessagesresponse.md @@ -42,12 +42,12 @@ let value: ListTeleporterMessagesResponse = { }, sourceTransaction: { txHash: "", - timestamp: 2445.70, + timestamp: 1397.46, gasSpent: "", }, destinationTransaction: { txHash: "", - timestamp: 4582.12, + timestamp: 3305.96, gasSpent: "", rewardRedeemer: "", delivererAddress: "", diff --git a/docs/models/operations/listtokensresponse.md b/docs/models/operations/listtokensresponse.md index bca92c0..66c0822 100644 --- a/docs/models/operations/listtokensresponse.md +++ b/docs/models/operations/listtokensresponse.md @@ -14,9 +14,9 @@ let value: ListTokensResponse = { symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://nifty-soliloquy.net", + tokenUri: "https://slight-depot.name", metadata: { - indexStatus: "UNKNOWN", + indexStatus: "INVALID_METADATA", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, diff --git a/docs/models/operations/listtransactionsresponse.md b/docs/models/operations/listtransactionsresponse.md index 7accea0..dd31d5b 100644 --- a/docs/models/operations/listtransactionsresponse.md +++ b/docs/models/operations/listtransactionsresponse.md @@ -40,7 +40,7 @@ let value: ListTransactionsResponse = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, method: { - callType: "CONTRACT_CALL", + callType: "NATIVE_TRANSFER", methodHash: "0xa9059cbb", methodName: "transfer(address,uint256)", }, @@ -64,7 +64,7 @@ let value: ListTransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 9554.66, + logIndex: 8219.04, value: "10000000000000000000", erc20Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", @@ -99,16 +99,16 @@ let value: ListTransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5983.16, + logIndex: 7005.29, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://inferior-scale.net/", + tokenUri: "https://wide-sand.org", metadata: { - indexStatus: "UNINDEXED", + indexStatus: "METADATA_CONTENT_TOO_LARGE", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, @@ -132,13 +132,13 @@ let value: ListTransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 2593.77, + logIndex: 371.30, value: "10000000000000000000", erc1155Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", ercType: "ERC-1155", tokenId: "", - tokenUri: "https://lawful-millet.org", + tokenUri: "https://grounded-smog.org/", metadata: { indexStatus: "UNINDEXED", }, @@ -163,7 +163,7 @@ let value: ListTransactionsResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - internalTxType: "STATICCALL", + internalTxType: "UNKNOWN", value: "10000000000000000000", isReverted: false, gasUsed: "", diff --git a/docs/models/operations/listtransfersresponse.md b/docs/models/operations/listtransfersresponse.md index 8e121ae..ac63c15 100644 --- a/docs/models/operations/listtransfersresponse.md +++ b/docs/models/operations/listtransfersresponse.md @@ -31,16 +31,16 @@ let value: ListTransfersResponse = { "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, - logIndex: 5692.87, + logIndex: 978.10, erc721Token: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", symbol: "WAVAX", ercType: "ERC-721", tokenId: "", - tokenUri: "https://winding-freezing.net", + tokenUri: "https://soggy-prohibition.com", metadata: { - indexStatus: "METADATA_CONTENT_TOO_LARGE", + indexStatus: "UNREACHABLE_TOKEN_URI", }, ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", }, diff --git a/docs/models/operations/listvalidatorsresponse.md b/docs/models/operations/listvalidatorsresponse.md index 9caf9cb..f6fff46 100644 --- a/docs/models/operations/listvalidatorsresponse.md +++ b/docs/models/operations/listvalidatorsresponse.md @@ -13,14 +13,22 @@ let value: ListValidatorsResponse = { nodeId: "", subnetId: "", amountStaked: "", - startTimestamp: 3952.33, - endTimestamp: 3108.40, - delegatorCount: 7186.26, - rewards: { + startTimestamp: 5258.09, + endTimestamp: 1418.17, + stakePercentage: 3167.31, + delegatorCount: 6267.06, + uptimePerformance: 7275.44, + potentialRewards: { validationRewardAmount: "", delegationRewardAmount: "", }, - validationStatus: "completed", + validationStatus: "active", + validatorHealth: { + reachabilityPercent: 242.73, + benchedPChainRequestsPercent: 4301.16, + benchedXChainRequestsPercent: 6521.25, + benchedCChainRequestsPercent: 8532.46, + }, }, ], }, diff --git a/docs/models/operations/listwebhooksresponse.md b/docs/models/operations/listwebhooksresponse.md index 7756753..9f3c9e1 100644 --- a/docs/models/operations/listwebhooksresponse.md +++ b/docs/models/operations/listwebhooksresponse.md @@ -19,12 +19,12 @@ let value: ListWebhooksResponse = { "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", ], }, - url: "https://ill-fated-jogging.name/", + url: "https://clear-formation.com/", chainId: "", - status: "inactive", - createdAt: 6973.30, + status: "active", + createdAt: 6641.97, name: "", - description: "hierarchy substantial foolish purse thoughtfully sternly", + description: "shark nimble duh wordy phew provided", }, ], }, diff --git a/docs/models/operations/posttransactionexportjobrequestbody.md b/docs/models/operations/posttransactionexportjobrequestbody.md index 0b65f7a..e82948f 100644 --- a/docs/models/operations/posttransactionexportjobrequestbody.md +++ b/docs/models/operations/posttransactionexportjobrequestbody.md @@ -25,7 +25,7 @@ const value: components.CreateEvmTransactionExportRequest = { ```typescript const value: components.CreatePrimaryNetworkTransactionExportRequest = { - type: "TRANSACTION_EXPORT_PRIMARY_NETWORK", + type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", firstDate: "2023-05-01", lastDate: "2023-05-02", options: { diff --git a/docs/models/operations/requesttype.md b/docs/models/operations/requesttype.md index 20a9bba..785f3c2 100644 --- a/docs/models/operations/requesttype.md +++ b/docs/models/operations/requesttype.md @@ -7,7 +7,7 @@ Filter data by request type. ```typescript import { RequestType } from "@avalabs/avacloud-sdk/models/operations"; -let value: RequestType = "rpc"; +let value: RequestType = "data"; ``` ## Values diff --git a/docs/sdks/usagemetrics/README.md b/docs/sdks/usagemetrics/README.md index 45d2d97..e217981 100644 --- a/docs/sdks/usagemetrics/README.md +++ b/docs/sdks/usagemetrics/README.md @@ -7,6 +7,7 @@ * [getApiUsageMetrics](#getapiusagemetrics) - Get usage metrics for the Data API * [getApiLogs](#getapilogs) - Get logs for requests made by client +* [getRpcUsageMetrics](#getrpcusagemetrics) - Get usage metrics for the Subnet RPC ## getApiUsageMetrics @@ -25,8 +26,8 @@ const avaCloudSDK = new AvaCloudSDK({ async function run() { const result = await avaCloudSDK.data.usageMetrics.getApiUsageMetrics({ - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, timeInterval: "daily", groupBy: "requestPath", }); @@ -56,8 +57,8 @@ const avaCloudSDK = new AvaCloudSDKCore({ async function run() { const res = await dataUsageMetricsGetApiUsageMetrics(avaCloudSDK, { - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, timeInterval: "daily", groupBy: "requestPath", }); @@ -120,8 +121,8 @@ const avaCloudSDK = new AvaCloudSDK({ async function run() { const result = await avaCloudSDK.data.usageMetrics.getApiLogs({ - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, }); for await (const page of result) { @@ -151,8 +152,8 @@ const avaCloudSDK = new AvaCloudSDKCore({ async function run() { const res = await dataUsageMetricsGetApiLogs(avaCloudSDK, { - startTimestamp: 1689541049, - endTimestamp: 1689800249, + startTimestamp: 1698100000, + endTimestamp: 1698300000, }); if (!res.ok) { @@ -186,6 +187,99 @@ run(); ### Errors +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.BadRequest | 400 | application/json | +| errors.Unauthorized | 401 | application/json | +| errors.Forbidden | 403 | application/json | +| errors.NotFound | 404 | application/json | +| errors.TooManyRequests | 429 | application/json | +| errors.InternalServerError | 500 | application/json | +| errors.BadGateway | 502 | application/json | +| errors.ServiceUnavailable | 503 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## getRpcUsageMetrics + +Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. + +### Example Usage + +```typescript +import { AvaCloudSDK } from "@avalabs/avacloud-sdk"; + +const avaCloudSDK = new AvaCloudSDK({ + apiKey: "", + chainId: "43114", + network: "mainnet", +}); + +async function run() { + const result = await avaCloudSDK.data.usageMetrics.getRpcUsageMetrics({ + startTimestamp: 1698100000, + endTimestamp: 1698300000, + groupBy: "chainId", + }); + + // Handle the result + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { AvaCloudSDKCore } from "@avalabs/avacloud-sdk/core.js"; +import { dataUsageMetricsGetRpcUsageMetrics } from "@avalabs/avacloud-sdk/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; + +// Use `AvaCloudSDKCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const avaCloudSDK = new AvaCloudSDKCore({ + apiKey: "", + chainId: "43114", + network: "mainnet", +}); + +async function run() { + const res = await dataUsageMetricsGetRpcUsageMetrics(avaCloudSDK, { + startTimestamp: 1698100000, + endTimestamp: 1698300000, + groupBy: "chainId", + }); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + // Handle the result + console.log(result); +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetRpcUsageMetricsRequest](../../models/operations/getrpcusagemetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | +| `options.serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**Promise\<[components.RpcUsageMetricsResponseDTO](../../models/components/rpcusagemetricsresponsedto.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | -------------------------- | -------------------------- | -------------------------- | | errors.BadRequest | 400 | application/json | diff --git a/package-lock.json b/package-lock.json index 0e02fb8..ff8b24c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@avalabs/avacloud-sdk", - "version": "0.6.2", + "version": "0.6.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@avalabs/avacloud-sdk", - "version": "0.6.2", + "version": "0.6.3", "license": "SEE LICENSE", "dependencies": { "json-canonicalize": "^1.0.6" diff --git a/package.json b/package.json index 4772a0d..53a5aeb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@avalabs/avacloud-sdk", - "version": "0.6.2", + "version": "0.6.3", "author": "AvaCloud", "homepage": "https://developer.avacloud.io/avacloud-sdk/getting-started", "license": "SEE LICENSE", diff --git a/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts b/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts new file mode 100644 index 0000000..9d7b059 --- /dev/null +++ b/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { AvaCloudSDKCore } from "../core.js"; +import { encodeFormQuery } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { SDKError } from "../models/errors/sdkerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import { GetRpcUsageMetricsServerList } from "../models/operations/getrpcusagemetrics.js"; +import * as operations from "../models/operations/index.js"; +import { Result } from "../types/fp.js"; + +/** + * Get usage metrics for the Subnet RPC + * + * @remarks + * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. + */ +export async function dataUsageMetricsGetRpcUsageMetrics( + client: AvaCloudSDKCore, + request: operations.GetRpcUsageMetricsRequest, + options?: RequestOptions & { serverURL?: string }, +): Promise< + Result< + components.RpcUsageMetricsResponseDTO, + | errors.BadRequest + | errors.Unauthorized + | errors.Forbidden + | errors.NotFound + | errors.TooManyRequests + | errors.InternalServerError + | errors.BadGateway + | errors.ServiceUnavailable + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > +> { + const parsed = safeParse( + request, + (value) => operations.GetRpcUsageMetricsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return parsed; + } + const payload = parsed.value; + const body = null; + + const baseURL = options?.serverURL + || pathToFunc(GetRpcUsageMetricsServerList[0], { + charEncoding: "percent", + })(); + + const path = pathToFunc("/v1/rpcUsageMetrics")(); + + const query = encodeFormQuery({ + "chainId": payload.chainId, + "endTimestamp": payload.endTimestamp, + "groupBy": payload.groupBy, + "requestPath": payload.requestPath, + "responseCode": payload.responseCode, + "rlBypassApiToken": payload.rlBypassApiToken, + "rpcMethod": payload.rpcMethod, + "startTimestamp": payload.startTimestamp, + "timeInterval": payload.timeInterval, + }); + + const headers = new Headers({ + Accept: "application/json", + }); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const context = { + operationID: "getRpcUsageMetrics", + oAuth2Scopes: [], + securitySource: client._options.apiKey, + }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: baseURL, + path: path, + headers: headers, + query: query, + body: body, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return requestRes; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: [ + "400", + "401", + "403", + "404", + "429", + "4XX", + "500", + "502", + "503", + "5XX", + ], + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 120000, + }, + retryConnectionErrors: true, + }, + retryCodes: options?.retryCodes || ["5XX"], + }); + if (!doResult.ok) { + return doResult; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + components.RpcUsageMetricsResponseDTO, + | errors.BadRequest + | errors.Unauthorized + | errors.Forbidden + | errors.NotFound + | errors.TooManyRequests + | errors.InternalServerError + | errors.BadGateway + | errors.ServiceUnavailable + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + >( + M.json(200, components.RpcUsageMetricsResponseDTO$inboundSchema), + M.jsonErr(400, errors.BadRequest$inboundSchema), + M.jsonErr(401, errors.Unauthorized$inboundSchema), + M.jsonErr(403, errors.Forbidden$inboundSchema), + M.jsonErr(404, errors.NotFound$inboundSchema), + M.jsonErr(429, errors.TooManyRequests$inboundSchema), + M.jsonErr(500, errors.InternalServerError$inboundSchema), + M.jsonErr(502, errors.BadGateway$inboundSchema), + M.jsonErr(503, errors.ServiceUnavailable$inboundSchema), + M.fail(["4XX", "5XX"]), + )(response, { extraFields: responseFields }); + if (!result.ok) { + return result; + } + + return result; +} diff --git a/src/lib/config.ts b/src/lib/config.ts index fb6ce5f..2dbb4db 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -50,8 +50,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "Beta", - sdkVersion: "0.6.2", - genVersion: "2.436.3", + sdkVersion: "0.6.3", + genVersion: "2.438.15", userAgent: - "speakeasy-sdk/typescript 0.6.2 2.436.3 Beta @avalabs/avacloud-sdk", + "speakeasy-sdk/typescript 0.6.3 2.438.15 Beta @avalabs/avacloud-sdk", } as const; diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 7cdb812..87acd23 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -164,7 +164,6 @@ export * from "./pendingreward.js"; export * from "./pendingteleportermessage.js"; export * from "./pendingvalidatordetails.js"; export * from "./pricingproviders.js"; -export * from "./primarynetwork.js"; export * from "./primarynetworkassetcap.js"; export * from "./primarynetworkassettype.js"; export * from "./primarynetworkblock.js"; @@ -182,6 +181,9 @@ export * from "./rewards.js"; export * from "./rewardtype.js"; export * from "./richaddress.js"; export * from "./rollingwindowmetricsapiresponse.js"; +export * from "./rpcmetrics.js"; +export * from "./rpcusagemetricsresponsedto.js"; +export * from "./rpcusagemetricsvalueaggregated.js"; export * from "./security.js"; export * from "./sharedsecretsresponse.js"; export * from "./sortbyoption.js"; diff --git a/src/models/components/primarynetwork.ts b/src/models/components/primarynetwork.ts deleted file mode 100644 index 8a14d27..0000000 --- a/src/models/components/primarynetwork.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -export const PrimaryNetwork = { - Mainnet: "mainnet", - Fuji: "fuji", - Devnet: "devnet", -} as const; -export type PrimaryNetwork = ClosedEnum; - -/** @internal */ -export const PrimaryNetwork$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetwork -> = z.nativeEnum(PrimaryNetwork); - -/** @internal */ -export const PrimaryNetwork$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetwork -> = PrimaryNetwork$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetwork$ { - /** @deprecated use `PrimaryNetwork$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetwork$inboundSchema; - /** @deprecated use `PrimaryNetwork$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetwork$outboundSchema; -} diff --git a/src/models/components/primarynetworkchaininfo.ts b/src/models/components/primarynetworkchaininfo.ts index f976af3..c76644e 100644 --- a/src/models/components/primarynetworkchaininfo.ts +++ b/src/models/components/primarynetworkchaininfo.ts @@ -4,10 +4,10 @@ import * as z from "zod"; import { - PrimaryNetwork, - PrimaryNetwork$inboundSchema, - PrimaryNetwork$outboundSchema, -} from "./primarynetwork.js"; + Network, + Network$inboundSchema, + Network$outboundSchema, +} from "./network.js"; import { PrimaryNetworkChainName, PrimaryNetworkChainName$inboundSchema, @@ -16,7 +16,7 @@ import { export type PrimaryNetworkChainInfo = { chainName: PrimaryNetworkChainName; - network: PrimaryNetwork; + network: Network; }; /** @internal */ @@ -26,7 +26,7 @@ export const PrimaryNetworkChainInfo$inboundSchema: z.ZodType< unknown > = z.object({ chainName: PrimaryNetworkChainName$inboundSchema, - network: PrimaryNetwork$inboundSchema, + network: Network$inboundSchema, }); /** @internal */ @@ -42,7 +42,7 @@ export const PrimaryNetworkChainInfo$outboundSchema: z.ZodType< PrimaryNetworkChainInfo > = z.object({ chainName: PrimaryNetworkChainName$outboundSchema, - network: PrimaryNetwork$outboundSchema, + network: Network$outboundSchema, }); /** diff --git a/src/models/components/rpcmetrics.ts b/src/models/components/rpcmetrics.ts new file mode 100644 index 0000000..ca3805a --- /dev/null +++ b/src/models/components/rpcmetrics.ts @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { + RpcUsageMetricsValueAggregated, + RpcUsageMetricsValueAggregated$inboundSchema, + RpcUsageMetricsValueAggregated$Outbound, + RpcUsageMetricsValueAggregated$outboundSchema, +} from "./rpcusagemetricsvalueaggregated.js"; + +export type RpcMetrics = { + /** + * The timestamp of the metrics value + */ + timestamp: number; + /** + * The metrics values for the timestamp + */ + values: Array; +}; + +/** @internal */ +export const RpcMetrics$inboundSchema: z.ZodType< + RpcMetrics, + z.ZodTypeDef, + unknown +> = z.object({ + timestamp: z.number(), + values: z.array(RpcUsageMetricsValueAggregated$inboundSchema), +}); + +/** @internal */ +export type RpcMetrics$Outbound = { + timestamp: number; + values: Array; +}; + +/** @internal */ +export const RpcMetrics$outboundSchema: z.ZodType< + RpcMetrics$Outbound, + z.ZodTypeDef, + RpcMetrics +> = z.object({ + timestamp: z.number(), + values: z.array(RpcUsageMetricsValueAggregated$outboundSchema), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RpcMetrics$ { + /** @deprecated use `RpcMetrics$inboundSchema` instead. */ + export const inboundSchema = RpcMetrics$inboundSchema; + /** @deprecated use `RpcMetrics$outboundSchema` instead. */ + export const outboundSchema = RpcMetrics$outboundSchema; + /** @deprecated use `RpcMetrics$Outbound` instead. */ + export type Outbound = RpcMetrics$Outbound; +} diff --git a/src/models/components/rpcusagemetricsresponsedto.ts b/src/models/components/rpcusagemetricsresponsedto.ts new file mode 100644 index 0000000..642acee --- /dev/null +++ b/src/models/components/rpcusagemetricsresponsedto.ts @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { + RpcMetrics, + RpcMetrics$inboundSchema, + RpcMetrics$Outbound, + RpcMetrics$outboundSchema, +} from "./rpcmetrics.js"; + +export type RpcUsageMetricsResponseDTO = { + /** + * Duration in which the metrics value is aggregated + */ + aggregateDuration: string; + /** + * ChainId for which the metrics are aggregated + */ + chainId: string; + /** + * Metrics values + */ + metrics: Array; +}; + +/** @internal */ +export const RpcUsageMetricsResponseDTO$inboundSchema: z.ZodType< + RpcUsageMetricsResponseDTO, + z.ZodTypeDef, + unknown +> = z.object({ + aggregateDuration: z.string(), + chainId: z.string(), + metrics: z.array(RpcMetrics$inboundSchema), +}); + +/** @internal */ +export type RpcUsageMetricsResponseDTO$Outbound = { + aggregateDuration: string; + chainId: string; + metrics: Array; +}; + +/** @internal */ +export const RpcUsageMetricsResponseDTO$outboundSchema: z.ZodType< + RpcUsageMetricsResponseDTO$Outbound, + z.ZodTypeDef, + RpcUsageMetricsResponseDTO +> = z.object({ + aggregateDuration: z.string(), + chainId: z.string(), + metrics: z.array(RpcMetrics$outboundSchema), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RpcUsageMetricsResponseDTO$ { + /** @deprecated use `RpcUsageMetricsResponseDTO$inboundSchema` instead. */ + export const inboundSchema = RpcUsageMetricsResponseDTO$inboundSchema; + /** @deprecated use `RpcUsageMetricsResponseDTO$outboundSchema` instead. */ + export const outboundSchema = RpcUsageMetricsResponseDTO$outboundSchema; + /** @deprecated use `RpcUsageMetricsResponseDTO$Outbound` instead. */ + export type Outbound = RpcUsageMetricsResponseDTO$Outbound; +} diff --git a/src/models/components/rpcusagemetricsvalueaggregated.ts b/src/models/components/rpcusagemetricsvalueaggregated.ts new file mode 100644 index 0000000..a6b5f5e --- /dev/null +++ b/src/models/components/rpcusagemetricsvalueaggregated.ts @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { ClosedEnum } from "../../types/enums.js"; + +/** + * Column name used for data aggregation + */ +export const RpcUsageMetricsValueAggregatedGroupedBy = { + RpcMethod: "rpcMethod", + ResponseCode: "responseCode", + RlBypassToken: "rlBypassToken", + None: "None", +} as const; +/** + * Column name used for data aggregation + */ +export type RpcUsageMetricsValueAggregatedGroupedBy = ClosedEnum< + typeof RpcUsageMetricsValueAggregatedGroupedBy +>; + +/** + * The value of the column used for data aggregation + */ +export type RpcUsageMetricsValueAggregatedGroupValue = string | number; + +export type RpcUsageMetricsValueAggregated = { + /** + * The total number of requests + */ + totalRequests: number; + /** + * The number of API credits used + */ + apiCreditsUsed: number; + /** + * The number of requests per second + */ + requestsPerSecond: number; + /** + * The success rate percentage + */ + successRatePercent: number; + /** + * The median response time in milliseconds + */ + medianResponseTimeMsecs: number; + /** + * The number of invalid requests + */ + invalidRequests: number; + /** + * Column name used for data aggregation + */ + groupedBy: RpcUsageMetricsValueAggregatedGroupedBy; + /** + * The value of the column used for data aggregation + */ + groupValue?: string | number | undefined; +}; + +/** @internal */ +export const RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema: + z.ZodNativeEnum = z + .nativeEnum(RpcUsageMetricsValueAggregatedGroupedBy); + +/** @internal */ +export const RpcUsageMetricsValueAggregatedGroupedBy$outboundSchema: + z.ZodNativeEnum = + RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RpcUsageMetricsValueAggregatedGroupedBy$ { + /** @deprecated use `RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema` instead. */ + export const inboundSchema = + RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema; + /** @deprecated use `RpcUsageMetricsValueAggregatedGroupedBy$outboundSchema` instead. */ + export const outboundSchema = + RpcUsageMetricsValueAggregatedGroupedBy$outboundSchema; +} + +/** @internal */ +export const RpcUsageMetricsValueAggregatedGroupValue$inboundSchema: z.ZodType< + RpcUsageMetricsValueAggregatedGroupValue, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.number()]); + +/** @internal */ +export type RpcUsageMetricsValueAggregatedGroupValue$Outbound = string | number; + +/** @internal */ +export const RpcUsageMetricsValueAggregatedGroupValue$outboundSchema: z.ZodType< + RpcUsageMetricsValueAggregatedGroupValue$Outbound, + z.ZodTypeDef, + RpcUsageMetricsValueAggregatedGroupValue +> = z.union([z.string(), z.number()]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RpcUsageMetricsValueAggregatedGroupValue$ { + /** @deprecated use `RpcUsageMetricsValueAggregatedGroupValue$inboundSchema` instead. */ + export const inboundSchema = + RpcUsageMetricsValueAggregatedGroupValue$inboundSchema; + /** @deprecated use `RpcUsageMetricsValueAggregatedGroupValue$outboundSchema` instead. */ + export const outboundSchema = + RpcUsageMetricsValueAggregatedGroupValue$outboundSchema; + /** @deprecated use `RpcUsageMetricsValueAggregatedGroupValue$Outbound` instead. */ + export type Outbound = RpcUsageMetricsValueAggregatedGroupValue$Outbound; +} + +/** @internal */ +export const RpcUsageMetricsValueAggregated$inboundSchema: z.ZodType< + RpcUsageMetricsValueAggregated, + z.ZodTypeDef, + unknown +> = z.object({ + totalRequests: z.number(), + apiCreditsUsed: z.number(), + requestsPerSecond: z.number(), + successRatePercent: z.number(), + medianResponseTimeMsecs: z.number(), + invalidRequests: z.number(), + groupedBy: RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema, + groupValue: z.union([z.string(), z.number()]).optional(), +}); + +/** @internal */ +export type RpcUsageMetricsValueAggregated$Outbound = { + totalRequests: number; + apiCreditsUsed: number; + requestsPerSecond: number; + successRatePercent: number; + medianResponseTimeMsecs: number; + invalidRequests: number; + groupedBy: string; + groupValue?: string | number | undefined; +}; + +/** @internal */ +export const RpcUsageMetricsValueAggregated$outboundSchema: z.ZodType< + RpcUsageMetricsValueAggregated$Outbound, + z.ZodTypeDef, + RpcUsageMetricsValueAggregated +> = z.object({ + totalRequests: z.number(), + apiCreditsUsed: z.number(), + requestsPerSecond: z.number(), + successRatePercent: z.number(), + medianResponseTimeMsecs: z.number(), + invalidRequests: z.number(), + groupedBy: RpcUsageMetricsValueAggregatedGroupedBy$outboundSchema, + groupValue: z.union([z.string(), z.number()]).optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RpcUsageMetricsValueAggregated$ { + /** @deprecated use `RpcUsageMetricsValueAggregated$inboundSchema` instead. */ + export const inboundSchema = RpcUsageMetricsValueAggregated$inboundSchema; + /** @deprecated use `RpcUsageMetricsValueAggregated$outboundSchema` instead. */ + export const outboundSchema = RpcUsageMetricsValueAggregated$outboundSchema; + /** @deprecated use `RpcUsageMetricsValueAggregated$Outbound` instead. */ + export type Outbound = RpcUsageMetricsValueAggregated$Outbound; +} diff --git a/src/models/operations/getapilogs.ts b/src/models/operations/getapilogs.ts index 6f0c786..a0eac53 100644 --- a/src/models/operations/getapilogs.ts +++ b/src/models/operations/getapilogs.ts @@ -29,29 +29,29 @@ export type GetApiLogsRequest = { */ orgId?: string | undefined; /** - * Query param for retrieving items after a specific timestamp. + * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. */ startTimestamp?: number | undefined; /** - * Query param for retrieving items before a specific timestamp. + * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. */ endTimestamp?: number | undefined; /** - * Filter data by request path. + * Filter data by chain ID. */ - requestPath?: string | undefined; + chainId?: string | undefined; /** - * Filter data by request type. + * Filter data by request path. */ - requestType?: QueryParamRequestType | undefined; + requestPath?: string | undefined; /** * Filter data by response status code. */ responseCode?: string | undefined; /** - * Filter data by chain ID. + * Filter data by request type. */ - chainId?: string | undefined; + requestType?: QueryParamRequestType | undefined; /** * Filter data by API key ID. */ @@ -100,10 +100,10 @@ export const GetApiLogsRequest$inboundSchema: z.ZodType< orgId: z.string().optional(), startTimestamp: z.number().int().optional(), endTimestamp: z.number().int().optional(), + chainId: z.string().optional(), requestPath: z.string().optional(), - requestType: QueryParamRequestType$inboundSchema.optional(), responseCode: z.string().optional(), - chainId: z.string().optional(), + requestType: QueryParamRequestType$inboundSchema.optional(), apiKeyId: z.string().optional(), pageToken: z.string().optional(), pageSize: z.number().int().default(10), @@ -114,10 +114,10 @@ export type GetApiLogsRequest$Outbound = { orgId?: string | undefined; startTimestamp?: number | undefined; endTimestamp?: number | undefined; + chainId?: string | undefined; requestPath?: string | undefined; - requestType?: string | undefined; responseCode?: string | undefined; - chainId?: string | undefined; + requestType?: string | undefined; apiKeyId?: string | undefined; pageToken?: string | undefined; pageSize: number; @@ -132,10 +132,10 @@ export const GetApiLogsRequest$outboundSchema: z.ZodType< orgId: z.string().optional(), startTimestamp: z.number().int().optional(), endTimestamp: z.number().int().optional(), + chainId: z.string().optional(), requestPath: z.string().optional(), - requestType: QueryParamRequestType$outboundSchema.optional(), responseCode: z.string().optional(), - chainId: z.string().optional(), + requestType: QueryParamRequestType$outboundSchema.optional(), apiKeyId: z.string().optional(), pageToken: z.string().optional(), pageSize: z.number().int().default(10), diff --git a/src/models/operations/getapiusagemetrics.ts b/src/models/operations/getapiusagemetrics.ts index 89d1979..0bf8ce0 100644 --- a/src/models/operations/getapiusagemetrics.ts +++ b/src/models/operations/getapiusagemetrics.ts @@ -28,11 +28,11 @@ export type GetApiUsageMetricsRequest = { */ orgId?: string | undefined; /** - * Query param for retrieving items after a specific timestamp. + * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. */ startTimestamp?: number | undefined; /** - * Query param for retrieving items before a specific timestamp. + * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. */ endTimestamp?: number | undefined; /** @@ -44,21 +44,21 @@ export type GetApiUsageMetricsRequest = { */ groupBy?: components.UsageMetricsGroupByEnum | undefined; /** - * Filter data by request path. + * Filter data by chain ID. */ - requestPath?: string | undefined; + chainId?: string | undefined; /** - * Filter data by request type. + * Filter data by request path. */ - requestType?: RequestType | undefined; + requestPath?: string | undefined; /** * Filter data by response status code. */ responseCode?: string | undefined; /** - * Filter data by chain ID. + * Filter data by request type. */ - chainId?: string | undefined; + requestType?: RequestType | undefined; /** * Filter data by API key ID. */ @@ -96,10 +96,10 @@ export const GetApiUsageMetricsRequest$inboundSchema: z.ZodType< timeInterval: components.TimeIntervalGranularityExtended$inboundSchema .optional(), groupBy: components.UsageMetricsGroupByEnum$inboundSchema.optional(), + chainId: z.string().optional(), requestPath: z.string().optional(), - requestType: RequestType$inboundSchema.optional(), responseCode: z.string().optional(), - chainId: z.string().optional(), + requestType: RequestType$inboundSchema.optional(), apiKeyId: z.string().optional(), }); @@ -110,10 +110,10 @@ export type GetApiUsageMetricsRequest$Outbound = { endTimestamp?: number | undefined; timeInterval?: string | undefined; groupBy?: string | undefined; + chainId?: string | undefined; requestPath?: string | undefined; - requestType?: string | undefined; responseCode?: string | undefined; - chainId?: string | undefined; + requestType?: string | undefined; apiKeyId?: string | undefined; }; @@ -129,10 +129,10 @@ export const GetApiUsageMetricsRequest$outboundSchema: z.ZodType< timeInterval: components.TimeIntervalGranularityExtended$outboundSchema .optional(), groupBy: components.UsageMetricsGroupByEnum$outboundSchema.optional(), + chainId: z.string().optional(), requestPath: z.string().optional(), - requestType: RequestType$outboundSchema.optional(), responseCode: z.string().optional(), - chainId: z.string().optional(), + requestType: RequestType$outboundSchema.optional(), apiKeyId: z.string().optional(), }); diff --git a/src/models/operations/getrpcusagemetrics.ts b/src/models/operations/getrpcusagemetrics.ts new file mode 100644 index 0000000..db8ef63 --- /dev/null +++ b/src/models/operations/getrpcusagemetrics.ts @@ -0,0 +1,109 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import * as components from "../components/index.js"; + +export const GetRpcUsageMetricsServerList = [ + "https://glacier-api.avax.network", +] as const; + +export type GetRpcUsageMetricsRequest = { + /** + * Query param for setting time interval of data aggregation. + */ + timeInterval?: string | undefined; + /** + * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. + */ + startTimestamp?: number | undefined; + /** + * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`. + */ + endTimestamp?: number | undefined; + /** + * Query param for the criterion used for grouping metrics + */ + groupBy?: components.UsageMetricsGroupByEnum | undefined; + /** + * Filter data by chain ID. + */ + chainId?: string | undefined; + /** + * Filter data by request path. + */ + requestPath?: string | undefined; + /** + * Filter data by response status code. + */ + responseCode?: string | undefined; + /** + * Filter data by RPC method. + */ + rpcMethod?: string | undefined; + /** + * Filter data by Rl Bypass API Token. + */ + rlBypassApiToken?: string | undefined; +}; + +/** @internal */ +export const GetRpcUsageMetricsRequest$inboundSchema: z.ZodType< + GetRpcUsageMetricsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + timeInterval: z.string().default("day"), + startTimestamp: z.number().int().optional(), + endTimestamp: z.number().int().optional(), + groupBy: components.UsageMetricsGroupByEnum$inboundSchema.optional(), + chainId: z.string().optional(), + requestPath: z.string().optional(), + responseCode: z.string().optional(), + rpcMethod: z.string().optional(), + rlBypassApiToken: z.string().optional(), +}); + +/** @internal */ +export type GetRpcUsageMetricsRequest$Outbound = { + timeInterval: string; + startTimestamp?: number | undefined; + endTimestamp?: number | undefined; + groupBy?: string | undefined; + chainId?: string | undefined; + requestPath?: string | undefined; + responseCode?: string | undefined; + rpcMethod?: string | undefined; + rlBypassApiToken?: string | undefined; +}; + +/** @internal */ +export const GetRpcUsageMetricsRequest$outboundSchema: z.ZodType< + GetRpcUsageMetricsRequest$Outbound, + z.ZodTypeDef, + GetRpcUsageMetricsRequest +> = z.object({ + timeInterval: z.string().default("day"), + startTimestamp: z.number().int().optional(), + endTimestamp: z.number().int().optional(), + groupBy: components.UsageMetricsGroupByEnum$outboundSchema.optional(), + chainId: z.string().optional(), + requestPath: z.string().optional(), + responseCode: z.string().optional(), + rpcMethod: z.string().optional(), + rlBypassApiToken: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetRpcUsageMetricsRequest$ { + /** @deprecated use `GetRpcUsageMetricsRequest$inboundSchema` instead. */ + export const inboundSchema = GetRpcUsageMetricsRequest$inboundSchema; + /** @deprecated use `GetRpcUsageMetricsRequest$outboundSchema` instead. */ + export const outboundSchema = GetRpcUsageMetricsRequest$outboundSchema; + /** @deprecated use `GetRpcUsageMetricsRequest$Outbound` instead. */ + export type Outbound = GetRpcUsageMetricsRequest$Outbound; +} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index d052d2c..aa279f8 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -29,6 +29,7 @@ export * from "./getnativebalance.js"; export * from "./getnetworkdetails.js"; export * from "./getnftholdersbycontractaddress.js"; export * from "./getoperationresult.js"; +export * from "./getrpcusagemetrics.js"; export * from "./getsharedsecret.js"; export * from "./getsinglevalidatordetails.js"; export * from "./getstakingmetrics.js"; diff --git a/src/sdk/usagemetrics.ts b/src/sdk/usagemetrics.ts index 875c800..aaced82 100644 --- a/src/sdk/usagemetrics.ts +++ b/src/sdk/usagemetrics.ts @@ -4,6 +4,7 @@ import { dataUsageMetricsGetApiLogs } from "../funcs/dataUsageMetricsGetApiLogs.js"; import { dataUsageMetricsGetApiUsageMetrics } from "../funcs/dataUsageMetricsGetApiUsageMetrics.js"; +import { dataUsageMetricsGetRpcUsageMetrics } from "../funcs/dataUsageMetricsGetRpcUsageMetrics.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -44,4 +45,21 @@ export class UsageMetrics extends ClientSDK { options, )); } + + /** + * Get usage metrics for the Subnet RPC + * + * @remarks + * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. + */ + async getRpcUsageMetrics( + request: operations.GetRpcUsageMetricsRequest, + options?: RequestOptions & { serverURL?: string }, + ): Promise { + return unwrapAsync(dataUsageMetricsGetRpcUsageMetrics( + this, + request, + options, + )); + } }