From 47fb8c10dac69ddaf5c356994057a7d48f47d8fe Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Thu, 7 Aug 2025 20:24:15 +0530 Subject: [PATCH 1/7] chore: update license to BSD-3 --- README.md | 8 ++++---- client/LICENSE | 21 --------------------- client/README.md | 2 +- client/TYPEDOC.md | 2 +- client/examples/package.json | 2 +- client/package.json | 2 +- data/LICENSE | 21 --------------------- data/package.json | 1 + devtools/LICENSE | 21 --------------------- devtools/package.json | 1 + interchain/LICENSE | 21 --------------------- interchain/package.json | 2 +- metrics/package.json | 1 + sdk/LICENSE | 21 --------------------- sdk/package.json | 2 +- webhooks/LICENSE | 21 --------------------- webhooks/package.json | 1 + 17 files changed, 14 insertions(+), 136 deletions(-) delete mode 100644 client/LICENSE delete mode 100644 data/LICENSE delete mode 100644 devtools/LICENSE delete mode 100644 interchain/LICENSE delete mode 100644 sdk/LICENSE delete mode 100644 webhooks/LICENSE diff --git a/README.md b/README.md index abb084b1..0365d132 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@

The official TypeScript SDK suite for building on Avalanche

- - License: MIT - + + License: BSD-3-Clause + Node Version @@ -372,7 +372,7 @@ See [CHANGELOG.md](CHANGELOG.md) for a detailed version history. ## 📄 License -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +This project is licensed under the BSD 3-Clause License - see the [LICENSE](LICENSE) file for details. --- diff --git a/client/LICENSE b/client/LICENSE deleted file mode 100644 index 97e8d4f3..00000000 --- a/client/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025, Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/client/README.md b/client/README.md index 0225f546..f519d60f 100644 --- a/client/README.md +++ b/client/README.md @@ -499,7 +499,7 @@ Contributions are welcome! Please feel free to submit a Pull Request. For major ## License -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +This project is licensed under the BSD 3-Clause License - see the [LICENSE]../(LICENSE) file for details. ## Support diff --git a/client/TYPEDOC.md b/client/TYPEDOC.md index afd6260b..16585107 100644 --- a/client/TYPEDOC.md +++ b/client/TYPEDOC.md @@ -499,7 +499,7 @@ Contributions are welcome! Please feel free to submit a Pull Request. For major ## License -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +This project is licensed - see the [LICENSE](../LICENSE) file for details. ## Support diff --git a/client/examples/package.json b/client/examples/package.json index 83d71e27..3361062d 100644 --- a/client/examples/package.json +++ b/client/examples/package.json @@ -6,7 +6,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "ISC", + "license": "BSD-3-Clause", "description": "", "dependencies": { "@avalanche-sdk/client": "^0.0.4-alpha.8" diff --git a/client/package.json b/client/package.json index aa47ce17..869b955e 100644 --- a/client/package.json +++ b/client/package.json @@ -16,7 +16,7 @@ "src" ], "author": "Sayan Kar", - "license": "MIT", + "license": "BSD-3-Clause", "repository": { "type": "git", "url": "https://github.com/ava-labs/avalanche-sdk-typescript.git", diff --git a/data/LICENSE b/data/LICENSE deleted file mode 100644 index f7cafa6c..00000000 --- a/data/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/data/package.json b/data/package.json index f2bae02e..b5ddbd4e 100644 --- a/data/package.json +++ b/data/package.json @@ -2,6 +2,7 @@ "name": "@avalanche-sdk/data", "version": "0.5.3", "author": "Avacloud", + "license": "BSD-3-Clause", "type": "module", "bin": { "mcp": "bin/mcp-server.js" diff --git a/devtools/LICENSE b/devtools/LICENSE deleted file mode 100644 index f7cafa6c..00000000 --- a/devtools/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/devtools/package.json b/devtools/package.json index 7f6f209a..b38f92f0 100644 --- a/devtools/package.json +++ b/devtools/package.json @@ -2,6 +2,7 @@ "name": "@avalanche-sdk/devtools", "version": "0.2.2", "author": "Avacloud", + "license": "BSD-3-Clause", "type": "module", "bin": { "mcp": "bin/mcp-server.js" diff --git a/interchain/LICENSE b/interchain/LICENSE deleted file mode 100644 index 97e8d4f3..00000000 --- a/interchain/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025, Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/interchain/package.json b/interchain/package.json index 73bc752d..cabec8bc 100644 --- a/interchain/package.json +++ b/interchain/package.json @@ -29,7 +29,7 @@ "cross-chain" ], "author": "Raj Ranjan", - "license": "ISC", + "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/ava-labs/avalanche-sdk-typescript/issues" }, diff --git a/metrics/package.json b/metrics/package.json index 64902c2c..c0abcdaf 100644 --- a/metrics/package.json +++ b/metrics/package.json @@ -2,6 +2,7 @@ "name": "@avalanche-sdk/metrics", "version": "0.4.3", "author": "Avacloud", + "license": "BSD-3-Clause", "type": "module", "bin": { "mcp": "bin/mcp-server.js" diff --git a/sdk/LICENSE b/sdk/LICENSE deleted file mode 100644 index f7cafa6c..00000000 --- a/sdk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/sdk/package.json b/sdk/package.json index 2ef52b03..abc32927 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -2,7 +2,7 @@ "name": "@avalanche-sdk/sdk", "version": "1.3.0", "author": "Sayan Kar", - "license": "MIT", + "license": "BSD-3-Clause", "homepage": "https://github.com/ava-labs/avalanche-sdk-typescript/sdk#readme", "sideEffects": false, "scripts": { diff --git a/webhooks/LICENSE b/webhooks/LICENSE deleted file mode 100644 index f7cafa6c..00000000 --- a/webhooks/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/webhooks/package.json b/webhooks/package.json index a65789e7..36e71bd2 100644 --- a/webhooks/package.json +++ b/webhooks/package.json @@ -2,6 +2,7 @@ "name": "@avalanche-sdk/webhooks", "version": "0.5.2", "author": "Avacloud", + "license": "BSD-3-Clause", "type": "module", "bin": { "mcp": "bin/mcp-server.js" From 96d1cfd010a182ba5aabf65072de8805efb42ca0 Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Fri, 8 Aug 2025 02:09:49 +0530 Subject: [PATCH 2/7] refactor: remove data metrics and webhooks SDK --- .github/ISSUE_TEMPLATE/bug_report.md | 50 +- .github/ISSUE_TEMPLATE/feature_request.md | 39 +- .github/workflows/data_sdk_generation.yaml | 31 - .github/workflows/data_sdk_publish.yaml | 19 - .github/workflows/metrics_sdk_generation.yaml | 31 - .github/workflows/metrics_sdk_publish.yaml | 19 - .../workflows/webhooks_sdk_generation.yaml | 31 - .github/workflows/webhooks_sdk_publish.yaml | 19 - .speakeasy/workflow.yaml | 65 +- CHANGELOG.md | 4 +- README.md | 69 +- data/.devcontainer/README.md | 35 - data/.devcontainer/devcontainer.json | 45 - data/.devcontainer/setup.sh | 30 - data/.gitattributes | 2 - data/.gitignore | 32 - data/.npmignore | 15 - data/.speakeasy/gen.lock | 4758 ------------ data/.speakeasy/gen.yaml | 62 - data/CONTRIBUTING.md | 26 - data/FUNCTIONS.md | 85 - data/README.md | 817 --- data/RELEASES.md | 151 - data/RUNTIMES.md | 48 - data/USAGE.md | 16 - data/docs/lib/utils/retryconfig.md | 24 - .../components/activedelegatordetails.md | 37 - .../activedelegatordetailsdelegationstatus.md | 15 - .../components/activevalidatordetails.md | 54 - .../activevalidatordetailsvalidationstatus.md | 15 - .../components/aggregatedassetamount.md | 29 - data/docs/models/components/apifeature.md | 15 - data/docs/models/components/assetamount.md | 27 - .../models/components/assetwithpriceinfo.md | 32 - data/docs/models/components/balanceowner.md | 22 - data/docs/models/components/blockchain.md | 31 - .../components/blockchaingenesisdata.md | 16 - data/docs/models/components/blockchainid.md | 15 - data/docs/models/components/blockchainids.md | 15 - data/docs/models/components/blockchaininfo.md | 20 - .../components/blockchaininfogenesisdata.md | 16 - data/docs/models/components/blscredentials.md | 19 - .../models/components/cchainatomicbalances.md | 30 - .../components/cchainexporttransaction.md | 58 - .../cchainexporttransactiontxtype.md | 17 - .../components/cchainimporttransaction.md | 70 - .../cchainimporttransactiontxtype.md | 17 - .../components/cchainsharedassetbalance.md | 31 - .../components/chainaddresschainidmap.md | 21 - .../chainaddresschainidmaplistresponse.md | 17 - data/docs/models/components/chaininfo.md | 46 - .../components/chaininfoenabledfeature.md | 15 - data/docs/models/components/chainstatus.md | 17 - .../models/components/collectiblebalance.md | 39 - .../components/completeddelegatordetails.md | 38 - ...mpleteddelegatordetailsdelegationstatus.md | 15 - .../components/completedvalidatordetails.md | 39 - ...mpletedvalidatordetailsvalidationstatus.md | 15 - data/docs/models/components/contract.md | 49 - .../components/contractdeploymentdetails.md | 20 - .../createevmtransactionexportrequest.md | 34 - ...eprimarynetworktransactionexportrequest.md | 29 - data/docs/models/components/currencycode.md | 17 - .../models/components/delegationstatustype.md | 15 - data/docs/models/components/delegator.md | 63 - .../models/components/delegatorsdetails.md | 19 - .../models/components/deliveredicmmessage.md | 71 - .../components/deliveredicmmessagestatus.md | 15 - .../deliveredsourcenotindexedicmmessage.md | 65 - ...liveredsourcenotindexedicmmessagestatus.md | 16 - ...iveredsourcenotindexedteleportermessage.md | 70 - ...sourcenotindexedteleportermessagestatus.md | 16 - .../components/deliveredteleportermessage.md | 71 - .../deliveredteleportermessagestatus.md | 15 - .../docs/models/components/erc1155contract.md | 33 - .../components/erc1155contracterctype.md | 15 - data/docs/models/components/erc1155token.md | 27 - .../models/components/erc1155tokenbalance.md | 31 - .../components/erc1155tokenbalanceerctype.md | 15 - .../models/components/erc1155tokenerctype.md | 15 - .../models/components/erc1155tokenmetadata.md | 27 - .../docs/models/components/erc1155transfer.md | 56 - .../components/erc1155transferdetails.md | 47 - data/docs/models/components/erc20contract.md | 35 - .../models/components/erc20contracterctype.md | 15 - data/docs/models/components/erc20token.md | 33 - .../models/components/erc20tokenbalance.md | 44 - .../components/erc20tokenbalanceerctype.md | 15 - .../models/components/erc20tokenerctype.md | 15 - data/docs/models/components/erc20transfer.md | 60 - .../models/components/erc20transferdetails.md | 51 - data/docs/models/components/erc721contract.md | 32 - .../components/erc721contracterctype.md | 15 - data/docs/models/components/erc721token.md | 33 - .../models/components/erc721tokenbalance.md | 35 - .../components/erc721tokenbalanceerctype.md | 15 - .../models/components/erc721tokenerctype.md | 15 - .../models/components/erc721tokenmetadata.md | 26 - data/docs/models/components/erc721transfer.md | 57 - .../components/erc721transferdetails.md | 48 - data/docs/models/components/evmblock.md | 40 - data/docs/models/components/evminput.md | 28 - .../models/components/evmnetworkoptions.md | 21 - .../models/components/evmoperationtype.md | 15 - data/docs/models/components/evmoutput.md | 26 - .../fullnativetransactiondetails.md | 72 - data/docs/models/components/geolocation.md | 27 - .../models/components/getchainresponse.md | 46 - .../getchainresponseenabledfeature.md | 15 - .../models/components/getevmblockresponse.md | 40 - .../components/getnativebalanceresponse.md | 33 - .../components/getnetworkdetailsresponse.md | 28 - .../getprimarynetworkblockresponse.md | 38 - .../components/gettransactionresponse.md | 203 - .../models/components/globalparamnetwork.md | 15 - .../models/components/healthcheckresultdto.md | 30 - .../components/healthcheckresultdtostatus.md | 15 - .../components/healthindicatorresultdto.md | 15 - .../healthindicatorresultdtostatus.md | 17 - .../models/components/historicalreward.md | 50 - .../components/icmdestinationtransaction.md | 25 - data/docs/models/components/icmreceipt.md | 19 - .../models/components/icmrewarddetails.md | 35 - .../components/icmrewarddetailserctype.md | 15 - .../models/components/icmsourcetransaction.md | 21 - data/docs/models/components/imageasset.md | 16 - data/docs/models/components/includechain.md | 15 - .../models/components/internaltransaction.md | 52 - .../components/internaltransactiondetails.md | 43 - .../components/internaltransactionopcall.md | 15 - .../components/l1validatordetailsfull.md | 46 - .../l1validatordetailsfullblscredentials.md | 14 - .../l1validatordetailstransaction.md | 29 - ...lidatordetailstransactionblscredentials.md | 14 - .../components/l1validatormanagerdetails.md | 19 - .../components/listaddresschainsresponse.md | 35 - .../components/listblockchainsresponse.md | 18 - .../listcchainatomicbalancesresponse.md | 47 - .../listcchainatomictransactionsresponse.md | 61 - ...inatomictransactionsresponsetransaction.md | 93 - .../models/components/listchainsresponse.md | 17 - .../listcollectiblebalancesresponse.md | 18 - .../components/listcontractsresponse.md | 23 - .../listdelegatordetailsresponse.md | 34 - .../components/listerc1155balancesresponse.md | 36 - .../listerc1155transactionsresponse.md | 18 - .../components/listerc20balancesresponse.md | 36 - .../listerc20transactionsresponse.md | 18 - .../components/listerc721balancesresponse.md | 36 - .../listerc721transactionsresponse.md | 18 - .../components/listevmblocksresponse.md | 18 - .../listhistoricalrewardsresponse.md | 45 - .../components/listicmmessagesresponse.md | 18 - .../listicmmessagesresponsemessage.md | 131 - .../listinternaltransactionsresponse.md | 18 - .../components/listl1validatorsresponse.md | 44 - .../listnativetransactionsresponse.md | 18 - data/docs/models/components/listnfttokens.md | 31 - .../components/listpchainbalancesresponse.md | 53 - .../listpchaintransactionsresponse.md | 64 - .../components/listpchainutxosresponse.md | 48 - .../components/listpendingrewardsresponse.md | 39 - .../listprimarynetworkblocksresponse.md | 23 - .../models/components/listsubnetsresponse.md | 18 - .../listteleportermessagesresponse.md | 18 - .../listteleportermessagesresponsemessage.md | 131 - .../listtransactiondetailsresponse.md | 183 - .../components/listtransfersresponse.md | 18 - .../models/components/listutxosresponse.md | 55 - .../listvalidatordetailsresponse.md | 18 - .../components/listxchainbalancesresponse.md | 27 - .../listxchaintransactionsresponse.md | 23 - ...stxchaintransactionsresponsetransaction.md | 153 - .../components/listxchainverticesresponse.md | 39 - data/docs/models/components/logsformat.md | 45 - .../models/components/logsformatmetadata.md | 21 - .../docs/models/components/logsresponsedto.md | 20 - data/docs/models/components/metadata.md | 11 - data/docs/models/components/method.md | 21 - data/docs/models/components/metric.md | 19 - data/docs/models/components/money.md | 19 - .../models/components/nativetokenbalance.md | 38 - .../models/components/nativetransaction.md | 66 - data/docs/models/components/network.md | 15 - data/docs/models/components/networktoken.md | 25 - .../models/components/networktokendetails.md | 33 - .../components/nfttokenmetadatastatus.md | 17 - .../docs/models/components/operationstatus.md | 15 - .../models/components/operationstatuscode.md | 15 - .../components/operationstatusresponse.md | 27 - data/docs/models/components/operationtype.md | 15 - data/docs/models/components/pchainbalance.md | 61 - data/docs/models/components/pchainid.md | 15 - .../models/components/pchainsharedasset.md | 33 - .../models/components/pchaintransaction.md | 122 - .../components/pchaintransactiontype.md | 15 - data/docs/models/components/pchainutxo.md | 59 - .../components/pendingdelegatordetails.md | 37 - ...pendingdelegatordetailsdelegationstatus.md | 15 - .../models/components/pendingicmmessage.md | 63 - .../components/pendingicmmessagestatus.md | 15 - data/docs/models/components/pendingreward.md | 42 - .../components/pendingteleportermessage.md | 63 - .../pendingteleportermessagestatus.md | 15 - .../components/pendingvalidatordetails.md | 31 - ...pendingvalidatordetailsvalidationstatus.md | 15 - .../models/components/pricingproviders.md | 15 - .../components/primarynetworkassetcap.md | 17 - .../components/primarynetworkassettype.md | 17 - .../models/components/primarynetworkblock.md | 39 - .../components/primarynetworkchaininfo.md | 19 - .../components/primarynetworkchainname.md | 15 - .../components/primarynetworkoperationtype.md | 16 - .../components/primarynetworkoptions.md | 21 - .../models/components/primarynetworktxtype.md | 15 - .../docs/models/components/proposerdetails.md | 19 - .../components/removedvalidatordetails.md | 35 - ...removedvalidatordetailsvalidationstatus.md | 15 - data/docs/models/components/requesttype.md | 17 - data/docs/models/components/resourcelink.md | 19 - .../models/components/resourcelinktype.md | 15 - data/docs/models/components/rewards.md | 21 - data/docs/models/components/rewardtype.md | 15 - data/docs/models/components/richaddress.md | 26 - data/docs/models/components/rpcmetrics.md | 19 - .../components/rpcusagemetricsgroupbyenum.md | 15 - .../rpcusagemetricsvalueaggregated.md | 32 - ...rpcusagemetricsvalueaggregatedgroupedby.md | 17 - ...pcusagemetricsvalueaggregatedgroupvalue.md | 19 - data/docs/models/components/security.md | 15 - .../signatureaggregationresponse.md | 18 - .../components/signatureaggregatorrequest.md | 24 - data/docs/models/components/sortbyoption.md | 15 - data/docs/models/components/sortorder.md | 15 - .../models/components/stakingdistribution.md | 21 - data/docs/models/components/subnet.md | 55 - .../models/components/subnetownershipinfo.md | 23 - .../subnetrpctimeintervalgranularity.md | 15 - .../subnetrpcusagemetricsresponsedto.md | 37 - .../teleporterdestinationtransaction.md | 25 - .../components/teleportermessageinfo.md | 21 - .../models/components/teleporterreceipt.md | 19 - .../components/teleporterrewarddetails.md | 35 - .../teleporterrewarddetailserctype.md | 15 - .../components/teleportersourcetransaction.md | 21 - .../timeintervalgranularityextended.md | 15 - data/docs/models/components/token.md | 36 - .../docs/models/components/tokenreputation.md | 17 - .../models/components/transactiondetails.md | 182 - .../components/transactiondirectiontype.md | 15 - .../components/transactionexportmetadata.md | 17 - .../components/transactionmethodtype.md | 17 - .../models/components/transactionstatus.md | 15 - .../components/transactionvertexdetail.md | 21 - data/docs/models/components/transfer.md | 128 - .../docs/models/components/unknowncontract.md | 30 - .../components/unknowncontracterctype.md | 15 - .../components/usagemetricsgroupbyenum.md | 15 - .../components/usagemetricsresponsedto.md | 37 - .../models/components/usagemetricsvaluedto.md | 32 - .../usagemetricsvaluedtogroupedby.md | 17 - .../usagemetricsvaluedtogroupvalue.md | 19 - .../models/components/utilityaddresses.md | 15 - data/docs/models/components/utxo.md | 60 - data/docs/models/components/utxocredential.md | 20 - data/docs/models/components/utxotype.md | 17 - .../models/components/validationstatustype.md | 15 - data/docs/models/components/validator.md | 82 - .../components/validatorhealthdetails.md | 23 - .../models/components/validatorsdetails.md | 31 - data/docs/models/components/vmname.md | 15 - .../models/components/xchainassetdetails.md | 29 - data/docs/models/components/xchainbalances.md | 45 - data/docs/models/components/xchainid.md | 15 - .../components/xchainlineartransaction.md | 124 - .../xchainlineartransactionchainformat.md | 17 - .../components/xchainnonlineartransaction.md | 67 - .../xchainnonlineartransactionchainformat.md | 17 - .../components/xchainsharedassetbalance.md | 31 - .../components/xchaintransactiontype.md | 17 - data/docs/models/components/xchainvertex.md | 35 - data/docs/models/errors/badgatewayerror.md | 17 - data/docs/models/errors/badgatewaymessage.md | 22 - data/docs/models/errors/badrequesterror.md | 17 - data/docs/models/errors/badrequestmessage.md | 22 - data/docs/models/errors/forbiddenerror.md | 17 - data/docs/models/errors/forbiddenmessage.md | 22 - .../docs/models/errors/internalservererror.md | 17 - .../errors/internalservererrormessage.md | 22 - data/docs/models/errors/notfounderror.md | 17 - data/docs/models/errors/notfoundmessage.md | 22 - .../models/errors/serviceunavailableerror.md | 17 - .../errors/serviceunavailablemessage.md | 22 - .../models/errors/toomanyrequestserror.md | 17 - .../models/errors/toomanyrequestsmessage.md | 22 - data/docs/models/errors/unauthorizederror.md | 17 - .../docs/models/errors/unauthorizedmessage.md | 22 - .../operations/aggregatesignaturesglobals.md | 17 - .../operations/aggregatesignaturesrequest.md | 24 - .../operations/getaddresschainsrequest.md | 17 - .../getaggregatedsignaturesglobals.md | 17 - .../getaggregatedsignaturesrequest.md | 18 - .../models/operations/getapilogsrequest.md | 27 - .../operations/getapilogsrequesttype.md | 17 - .../models/operations/getapilogsresponse.md | 20 - .../operations/getapiusagemetricsrequest.md | 29 - .../getapiusagemetricsrequesttype.md | 17 - .../operations/getassetdetailsglobals.md | 17 - .../operations/getassetdetailsrequest.md | 20 - .../getbalancesbyaddressesglobals.md | 17 - .../getbalancesbyaddressesrequest.md | 22 - .../getbalancesbyaddressesresponse.md | 104 - .../models/operations/getblockbyidglobals.md | 17 - .../models/operations/getblockbyidrequest.md | 20 - .../operations/getblockchainbyidglobals.md | 17 - .../operations/getblockchainbyidrequest.md | 18 - .../docs/models/operations/getblockglobals.md | 17 - .../docs/models/operations/getblockrequest.md | 18 - .../getchainidsforaddressesglobals.md | 17 - .../getchainidsforaddressesrequest.md | 18 - .../models/operations/getchaininfoglobals.md | 17 - .../models/operations/getchaininforequest.md | 15 - .../operations/getcontractmetadataglobals.md | 17 - .../operations/getcontractmetadatarequest.md | 18 - .../operations/getcontractmetadataresponse.md | 51 - .../getdeploymenttransactionglobals.md | 17 - .../getdeploymenttransactionrequest.md | 20 - .../models/operations/geticmmessagerequest.md | 17 - .../operations/geticmmessageresponse.md | 133 - .../operations/getlatestblocksglobals.md | 17 - .../operations/getlatestblocksrequest.md | 17 - .../operations/getlatestblocksresponse.md | 35 - .../operations/getnativebalanceglobals.md | 17 - .../operations/getnativebalancerequest.md | 22 - .../operations/getnetworkdetailsglobals.md | 17 - .../operations/getnetworkdetailsrequest.md | 15 - .../operations/getoperationresultrequest.md | 17 - .../operations/getrpcusagemetricsrequest.md | 27 - .../getsinglevalidatordetailsglobals.md | 17 - .../getsinglevalidatordetailsrequest.md | 24 - .../getsinglevalidatordetailsresponse.md | 19 - .../models/operations/getsubnetbyidglobals.md | 17 - .../models/operations/getsubnetbyidrequest.md | 18 - .../getsubnetrpcusagemetricsrequest.md | 27 - .../operations/getteleportermessagerequest.md | 17 - .../getteleportermessageresponse.md | 138 - .../operations/gettokendetailsglobals.md | 17 - .../operations/gettokendetailsrequest.md | 20 - .../operations/gettokendetailsresponse.md | 38 - .../operations/gettransactionglobals.md | 17 - .../operations/gettransactionrequest.md | 18 - .../gettransactionsforblockglobals.md | 17 - .../gettransactionsforblockrequest.md | 21 - .../models/operations/gettxbyhashglobals.md | 17 - .../models/operations/gettxbyhashrequest.md | 20 - .../models/operations/gettxbyhashresponse.md | 329 - .../operations/getutxosbyaddressesglobals.md | 17 - .../operations/getutxosbyaddressesrequest.md | 26 - .../operations/getutxosbyaddressesresponse.md | 23 - .../getutxosbyaddressesresponsebody.md | 88 - .../operations/getvertexbyhashglobals.md | 17 - .../operations/getvertexbyhashrequest.md | 20 - .../operations/getvertexbyheightglobals.md | 17 - .../operations/getvertexbyheightrequest.md | 24 - .../operations/getvertexbyheightresponse.md | 23 - ...rimarynetworkstakingtransactionsglobals.md | 17 - ...rimarynetworkstakingtransactionsrequest.md | 32 - ...imarynetworkstakingtransactionsresponse.md | 23 - .../operations/listaddresschainsrequest.md | 17 - .../operations/listalllatestblocksrequest.md | 19 - .../operations/listalllatestblocksresponse.md | 35 - .../listalllatesttransactionsrequest.md | 20 - .../listalllatesttransactionsresponse.md | 19 - .../listassettransactionsglobals.md | 17 - .../listassettransactionsrequest.md | 30 - .../listassettransactionsresponse.md | 23 - .../operations/listblockchainsglobals.md | 17 - .../operations/listblockchainsrequest.md | 21 - .../operations/listblockchainsresponse.md | 19 - .../listcollectiblebalancesglobals.md | 17 - .../listcollectiblebalancesrequest.md | 22 - .../listcollectiblebalancesresponse.md | 19 - .../listcontractdeploymentsglobals.md | 17 - .../listcontractdeploymentsrequest.md | 20 - .../listcontractdeploymentsresponse.md | 19 - .../operations/listdelegatorsglobals.md | 17 - .../operations/listdelegatorsrequest.md | 28 - .../operations/listdelegatorsresponse.md | 32 - .../operations/listerc1155balancesglobals.md | 17 - .../operations/listerc1155balancesrequest.md | 24 - .../operations/listerc1155balancesresponse.md | 36 - .../listerc1155transactionsglobals.md | 17 - .../listerc1155transactionsrequest.md | 24 - .../listerc1155transactionsresponse.md | 19 - .../operations/listerc20balancesglobals.md | 17 - .../operations/listerc20balancesrequest.md | 28 - .../operations/listerc20balancesresponse.md | 36 - .../listerc20transactionsglobals.md | 17 - .../listerc20transactionsrequest.md | 24 - .../listerc20transactionsresponse.md | 19 - .../operations/listerc721balancesglobals.md | 17 - .../operations/listerc721balancesrequest.md | 22 - .../operations/listerc721balancesresponse.md | 36 - .../listerc721transactionsglobals.md | 17 - .../listerc721transactionsrequest.md | 24 - .../listerc721transactionsresponse.md | 19 - ...thistoricalprimarynetworkrewardsglobals.md | 17 - ...thistoricalprimarynetworkrewardsrequest.md | 27 - ...historicalprimarynetworkrewardsresponse.md | 19 - .../listicmmessagesbyaddressrequest.md | 21 - .../operations/listicmmessagesrequest.md | 28 - .../operations/listicmmessagesresponse.md | 19 - .../listinternaltransactionsglobals.md | 17 - .../listinternaltransactionsrequest.md | 24 - .../listinternaltransactionsresponse.md | 19 - .../operations/listl1validatorsglobals.md | 17 - .../operations/listl1validatorsrequest.md | 25 - .../operations/listl1validatorsresponse.md | 44 - .../listlatestblocksallchainsrequest.md | 19 - .../listlatestblocksallchainsresponse.md | 35 - .../listlatestprimarynetworkblocksglobals.md | 17 - .../listlatestprimarynetworkblocksrequest.md | 24 - .../listlatestprimarynetworkblocksresponse.md | 37 - ...latestprimarynetworktransactionsglobals.md | 17 - ...latestprimarynetworktransactionsrequest.md | 33 - ...atestprimarynetworktransactionsresponse.md | 23 - ...tprimarynetworktransactionsresponsebody.md | 122 - .../listlatesttransactionsallchainsrequest.md | 20 - ...listlatesttransactionsallchainsresponse.md | 19 - .../listlatesttransactionsglobals.md | 17 - .../listlatesttransactionsrequest.md | 18 - .../listlatesttransactionsresponse.md | 19 - .../listlatestxchainverticesglobals.md | 17 - .../listlatestxchainverticesrequest.md | 20 - .../listlatestxchainverticesresponse.md | 23 - .../listnativetransactionsglobals.md | 17 - .../listnativetransactionsrequest.md | 24 - .../listnativetransactionsresponse.md | 19 - ...listpendingprimarynetworkrewardsglobals.md | 17 - ...listpendingprimarynetworkrewardsrequest.md | 25 - ...istpendingprimarynetworkrewardsresponse.md | 40 - ...listprimarynetworkblocksbynodeidglobals.md | 17 - ...listprimarynetworkblocksbynodeidrequest.md | 26 - ...istprimarynetworkblocksbynodeidresponse.md | 37 - .../models/operations/listsubnetsglobals.md | 17 - .../models/operations/listsubnetsrequest.md | 21 - .../models/operations/listsubnetsresponse.md | 19 - .../listteleportermessagesbyaddressrequest.md | 21 - .../listteleportermessagesrequest.md | 28 - .../listteleportermessagesresponse.md | 19 - .../models/operations/listtokensglobals.md | 17 - .../models/operations/listtokensrequest.md | 20 - .../models/operations/listtokensresponse.md | 29 - .../operations/listtransactionsglobals.md | 17 - .../operations/listtransactionsrequest.md | 26 - .../operations/listtransactionsresponse.md | 19 - .../models/operations/listtransfersglobals.md | 17 - .../models/operations/listtransfersrequest.md | 24 - .../operations/listtransfersresponse.md | 19 - .../operations/listvalidatorsglobals.md | 17 - .../operations/listvalidatorsrequest.md | 44 - .../operations/listvalidatorsresponse.md | 19 - .../posttransactionexportjobrequest.md | 40 - .../models/operations/reindexnftglobals.md | 17 - .../models/operations/reindexnftrequest.md | 20 - .../operations/supportedchainsrequest.md | 19 - data/docs/sdks/addressbalances/README.md | 465 -- data/docs/sdks/addresschains/README.md | 85 - data/docs/sdks/addresscontracts/README.md | 93 - data/docs/sdks/addresstransactions/README.md | 553 -- data/docs/sdks/avalanche/README.md | 7 - data/docs/sdks/chains/README.md | 425 -- data/docs/sdks/contracts/README.md | 263 - data/docs/sdks/data/README.md | 80 - data/docs/sdks/evmblocks/README.md | 337 - data/docs/sdks/evmtransactions/README.md | 253 - data/docs/sdks/icm/README.md | 255 - data/docs/sdks/nfts/README.md | 261 - data/docs/sdks/operations/README.md | 179 - data/docs/sdks/primarynetwork/README.md | 971 --- .../sdks/primarynetworkbalances/README.md | 95 - data/docs/sdks/primarynetworkblocks/README.md | 273 - .../sdks/primarynetworktransactions/README.md | 395 - data/docs/sdks/rewards/README.md | 189 - data/docs/sdks/signatureaggregator/README.md | 181 - data/docs/sdks/teleporter/README.md | 273 - data/docs/sdks/usagemetrics/README.md | 349 - data/docs/sdks/utxos/README.md | 97 - data/docs/sdks/vertices/README.md | 267 - data/eslint.config.mjs | 22 - data/examples/.env.template | 3 - data/examples/README.md | 31 - data/examples/dataHealthCheck.example.ts | 24 - data/examples/package-lock.json | 628 -- data/examples/package.json | 18 - data/jsr.json | 27 - data/overlays/overlay.yaml | 17 - data/package-lock.json | 6433 ---------------- data/package.json | 145 - .../.speakeasy/logs/naming.log | 710 -- data/src/core.ts | 13 - .../funcs/dataEvmAddressBalancesGetNative.ts | 240 - .../dataEvmAddressBalancesListCollectibles.ts | 309 - .../dataEvmAddressBalancesListErc1155.ts | 312 - .../funcs/dataEvmAddressBalancesListErc20.ts | 313 - .../funcs/dataEvmAddressBalancesListErc721.ts | 308 - data/src/funcs/dataEvmAddressChainsList.ts | 225 - .../dataEvmAddressContractsListDeployments.ts | 306 - .../funcs/dataEvmAddressTransactionsList.ts | 310 - .../dataEvmAddressTransactionsListErc1155.ts | 308 - .../dataEvmAddressTransactionsListErc20.ts | 308 - .../dataEvmAddressTransactionsListErc721.ts | 308 - .../dataEvmAddressTransactionsListInternal.ts | 310 - .../dataEvmAddressTransactionsListNative.ts | 308 - data/src/funcs/dataEvmBlocksGet.ts | 230 - data/src/funcs/dataEvmBlocksListLatest.ts | 299 - .../funcs/dataEvmBlocksListLatestAllChains.ts | 293 - .../funcs/dataEvmBlocksListTransactions.ts | 239 - data/src/funcs/dataEvmChainsGet.ts | 226 - .../funcs/dataEvmChainsGetAddressChains.ts | 226 - data/src/funcs/dataEvmChainsList.ts | 224 - .../funcs/dataEvmChainsListAllLatestBlocks.ts | 294 - .../dataEvmChainsListAllLatestTransactions.ts | 295 - ...ataEvmContractsGetDeploymentTransaction.ts | 238 - data/src/funcs/dataEvmContractsGetMetadata.ts | 232 - .../funcs/dataEvmContractsListTransfers.ts | 307 - data/src/funcs/dataEvmTransactionsGet.ts | 232 - .../funcs/dataEvmTransactionsListLatest.ts | 301 - .../dataEvmTransactionsListLatestAllChains.ts | 298 - data/src/funcs/dataHealthCheck.ts | 200 - data/src/funcs/dataIcmGet.ts | 224 - data/src/funcs/dataIcmList.ts | 297 - data/src/funcs/dataIcmListByAddress.ts | 233 - data/src/funcs/dataNftsGet.ts | 235 - data/src/funcs/dataNftsList.ts | 303 - data/src/funcs/dataNftsReindex.ts | 236 - .../funcs/dataOperationsExportTransactions.ts | 222 - data/src/funcs/dataOperationsGetResult.ts | 225 - ...taPrimaryNetworkBalancesListByAddresses.ts | 240 - data/src/funcs/dataPrimaryNetworkBlocksGet.ts | 236 - .../dataPrimaryNetworkBlocksListByNodeId.ts | 316 - .../dataPrimaryNetworkBlocksListLatest.ts | 312 - .../dataPrimaryNetworkGetAssetDetails.ts | 236 - .../dataPrimaryNetworkGetBlockchainById.ts | 232 - ...taPrimaryNetworkGetChainIdsForAddresses.ts | 234 - .../dataPrimaryNetworkGetNetworkDetails.ts | 226 - .../funcs/dataPrimaryNetworkGetSubnetById.ts | 232 - .../dataPrimaryNetworkGetValidatorDetails.ts | 308 - .../dataPrimaryNetworkListBlockchains.ts | 300 - .../funcs/dataPrimaryNetworkListDelegators.ts | 303 - .../dataPrimaryNetworkListL1Validators.ts | 303 - .../funcs/dataPrimaryNetworkListSubnets.ts | 300 - .../funcs/dataPrimaryNetworkListValidators.ts | 312 - ...maryNetworkRewardsListHistoricalRewards.ts | 307 - ...PrimaryNetworkRewardsListPendingRewards.ts | 309 - .../dataPrimaryNetworkTransactionsGet.ts | 235 - ...ansactionsListActiveStakingTransactions.ts | 316 - ...etworkTransactionsListAssetTransactions.ts | 313 - ...ataPrimaryNetworkTransactionsListLatest.ts | 321 - .../dataPrimaryNetworkUtxosListByAddresses.ts | 310 - .../dataPrimaryNetworkVerticesGetByHash.ts | 236 - .../dataPrimaryNetworkVerticesListByHeight.ts | 307 - .../dataPrimaryNetworkVerticesListLatest.ts | 306 - .../funcs/dataSignatureAggregatorAggregate.ts | 232 - data/src/funcs/dataSignatureAggregatorGet.ts | 233 - .../dataTeleporterGetTeleporterMessage.ts | 226 - .../dataTeleporterListTeleporterMessages.ts | 299 - ...leporterListTeleporterMessagesByAddress.ts | 238 - data/src/funcs/dataUsageMetricsGetLogs.ts | 297 - .../dataUsageMetricsGetRpcUsageMetrics.ts | 231 - .../dataUsageMetricsGetSubnetRpcUsage.ts | 231 - data/src/funcs/dataUsageMetricsGetUsage.ts | 232 - data/src/hooks/hooks.ts | 132 - data/src/hooks/index.ts | 6 - data/src/hooks/registration.ts | 14 - data/src/hooks/types.ts | 112 - data/src/index.ts | 9 - data/src/lib/base64.ts | 37 - data/src/lib/config.ts | 75 - data/src/lib/dlv.ts | 53 - data/src/lib/encodings.ts | 483 -- data/src/lib/files.ts | 82 - data/src/lib/http.ts | 323 - data/src/lib/is-plain-object.ts | 43 - data/src/lib/logger.ts | 9 - data/src/lib/matchers.ts | 352 - data/src/lib/primitives.ts | 150 - data/src/lib/retries.ts | 218 - data/src/lib/schemas.ts | 91 - data/src/lib/sdks.ts | 403 -- data/src/lib/security.ts | 260 - data/src/lib/url.ts | 33 - data/src/mcp-server/build.mts | 16 - data/src/mcp-server/cli.ts | 13 - data/src/mcp-server/cli/start/command.ts | 113 - data/src/mcp-server/cli/start/impl.ts | 136 - data/src/mcp-server/console-logger.ts | 71 - data/src/mcp-server/extensions.ts | 17 - data/src/mcp-server/mcp-server.ts | 26 - data/src/mcp-server/prompts.ts | 117 - data/src/mcp-server/resources.ts | 172 - data/src/mcp-server/scopes.ts | 7 - data/src/mcp-server/server.ts | 205 - data/src/mcp-server/shared.ts | 75 - data/src/mcp-server/tools.ts | 129 - .../tools/dataEvmAddressBalancesGetNative.ts | 40 - .../dataEvmAddressBalancesListCollectibles.ts | 41 - .../dataEvmAddressBalancesListErc1155.ts | 43 - .../tools/dataEvmAddressBalancesListErc20.ts | 42 - .../tools/dataEvmAddressBalancesListErc721.ts | 41 - .../tools/dataEvmAddressChainsList.ts | 37 - .../dataEvmAddressContractsListDeployments.ts | 39 - .../tools/dataEvmAddressTransactionsList.ts | 40 - .../dataEvmAddressTransactionsListErc1155.ts | 39 - .../dataEvmAddressTransactionsListErc20.ts | 39 - .../dataEvmAddressTransactionsListErc721.ts | 39 - .../dataEvmAddressTransactionsListInternal.ts | 41 - .../dataEvmAddressTransactionsListNative.ts | 39 - data/src/mcp-server/tools/dataEvmBlocksGet.ts | 37 - .../tools/dataEvmBlocksListLatest.ts | 37 - .../tools/dataEvmBlocksListLatestAllChains.ts | 39 - .../tools/dataEvmBlocksListTransactions.ts | 37 - data/src/mcp-server/tools/dataEvmChainsGet.ts | 37 - .../tools/dataEvmChainsGetAddressChains.ts | 38 - .../src/mcp-server/tools/dataEvmChainsList.ts | 37 - .../tools/dataEvmChainsListAllLatestBlocks.ts | 40 - .../dataEvmChainsListAllLatestTransactions.ts | 40 - ...ataEvmContractsGetDeploymentTransaction.ts | 39 - .../tools/dataEvmContractsGetMetadata.ts | 37 - .../tools/dataEvmContractsListTransfers.ts | 37 - .../tools/dataEvmTransactionsGet.ts | 37 - .../tools/dataEvmTransactionsListLatest.ts | 37 - .../dataEvmTransactionsListLatestAllChains.ts | 39 - data/src/mcp-server/tools/dataHealthCheck.ts | 30 - data/src/mcp-server/tools/dataIcmGet.ts | 37 - data/src/mcp-server/tools/dataIcmList.ts | 37 - .../mcp-server/tools/dataIcmListByAddress.ts | 37 - data/src/mcp-server/tools/dataNftsGet.ts | 37 - data/src/mcp-server/tools/dataNftsList.ts | 37 - data/src/mcp-server/tools/dataNftsReindex.ts | 35 - .../tools/dataOperationsExportTransactions.ts | 41 - .../tools/dataOperationsGetResult.ts | 37 - ...taPrimaryNetworkBalancesListByAddresses.ts | 41 - .../tools/dataPrimaryNetworkBlocksGet.ts | 37 - .../dataPrimaryNetworkBlocksListByNodeId.ts | 39 - .../dataPrimaryNetworkBlocksListLatest.ts | 39 - .../dataPrimaryNetworkGetAssetDetails.ts | 39 - .../dataPrimaryNetworkGetBlockchainById.ts | 39 - ...taPrimaryNetworkGetChainIdsForAddresses.ts | 39 - .../dataPrimaryNetworkGetNetworkDetails.ts | 39 - .../tools/dataPrimaryNetworkGetSubnetById.ts | 38 - .../dataPrimaryNetworkGetValidatorDetails.ts | 39 - .../dataPrimaryNetworkListBlockchains.ts | 39 - .../tools/dataPrimaryNetworkListDelegators.ts | 39 - .../dataPrimaryNetworkListL1Validators.ts | 39 - .../tools/dataPrimaryNetworkListSubnets.ts | 37 - .../tools/dataPrimaryNetworkListValidators.ts | 39 - ...maryNetworkRewardsListHistoricalRewards.ts | 39 - ...PrimaryNetworkRewardsListPendingRewards.ts | 39 - .../dataPrimaryNetworkTransactionsGet.ts | 39 - ...ansactionsListActiveStakingTransactions.ts | 40 - ...etworkTransactionsListAssetTransactions.ts | 39 - ...ataPrimaryNetworkTransactionsListLatest.ts | 45 - .../dataPrimaryNetworkUtxosListByAddresses.ts | 39 - .../dataPrimaryNetworkVerticesGetByHash.ts | 39 - .../dataPrimaryNetworkVerticesListByHeight.ts | 39 - .../dataPrimaryNetworkVerticesListLatest.ts | 39 - .../tools/dataSignatureAggregatorAggregate.ts | 39 - .../tools/dataSignatureAggregatorGet.ts | 37 - .../dataTeleporterGetTeleporterMessage.ts | 39 - .../dataTeleporterListTeleporterMessages.ts | 40 - ...leporterListTeleporterMessagesByAddress.ts | 41 - .../tools/dataUsageMetricsGetLogs.ts | 37 - .../dataUsageMetricsGetRpcUsageMetrics.ts | 40 - .../dataUsageMetricsGetSubnetRpcUsage.ts | 39 - .../tools/dataUsageMetricsGetUsage.ts | 37 - .../components/activedelegatordetails.ts | 134 - .../components/activevalidatordetails.ts | 299 - .../components/aggregatedassetamount.ts | 113 - data/src/models/components/apifeature.ts | 32 - data/src/models/components/assetamount.ts | 105 - .../models/components/assetwithpriceinfo.ts | 122 - data/src/models/components/balanceowner.ts | 66 - data/src/models/components/blockchain.ts | 149 - data/src/models/components/blockchainid.ts | 42 - data/src/models/components/blockchainids.ts | 41 - data/src/models/components/blockchaininfo.ts | 127 - data/src/models/components/blscredentials.ts | 66 - .../models/components/cchainatomicbalances.ts | 76 - .../components/cchainexporttransaction.ts | 193 - .../components/cchainimporttransaction.ts | 193 - .../components/cchainsharedassetbalance.ts | 117 - .../components/chainaddresschainidmap.ts | 75 - .../chainaddresschainidmaplistresponse.ts | 76 - data/src/models/components/chaininfo.ts | 182 - data/src/models/components/chainstatus.ts | 37 - .../components/completeddelegatordetails.ts | 139 - .../components/completedvalidatordetails.ts | 159 - .../components/contractdeploymentdetails.ts | 80 - .../createevmtransactionexportrequest.ts | 106 - ...eprimarynetworktransactionexportrequest.ts | 116 - data/src/models/components/currencycode.ts | 49 - .../models/components/delegationstatustype.ts | 34 - .../models/components/delegatorsdetails.ts | 70 - .../models/components/deliveredicmmessage.ts | 183 - .../deliveredsourcenotindexedicmmessage.ts | 180 - ...iveredsourcenotindexedteleportermessage.ts | 185 - .../components/deliveredteleportermessage.ts | 183 - data/src/models/components/erc1155contract.ts | 176 - data/src/models/components/erc1155token.ts | 114 - .../models/components/erc1155tokenbalance.ts | 134 - .../models/components/erc1155tokenmetadata.ts | 114 - data/src/models/components/erc1155transfer.ts | 120 - .../components/erc1155transferdetails.ts | 94 - data/src/models/components/erc20contract.ts | 181 - data/src/models/components/erc20token.ts | 137 - .../models/components/erc20tokenbalance.ts | 204 - data/src/models/components/erc20transfer.ts | 118 - .../models/components/erc20transferdetails.ts | 94 - data/src/models/components/erc721contract.ts | 164 - data/src/models/components/erc721token.ts | 135 - .../models/components/erc721tokenbalance.ts | 148 - .../models/components/erc721tokenmetadata.ts | 110 - data/src/models/components/erc721transfer.ts | 114 - .../components/erc721transferdetails.ts | 90 - data/src/models/components/evmblock.ts | 139 - data/src/models/components/evminput.ts | 91 - .../models/components/evmnetworkoptions.ts | 70 - .../src/models/components/evmoperationtype.ts | 32 - data/src/models/components/evmoutput.ts | 78 - .../fullnativetransactiondetails.ts | 195 - .../src/models/components/getchainresponse.ts | 188 - .../models/components/getevmblockresponse.ts | 143 - .../components/getnativebalanceresponse.ts | 75 - .../components/getnetworkdetailsresponse.ts | 82 - .../getprimarynetworkblockresponse.ts | 118 - .../components/gettransactionresponse.ts | 149 - .../models/components/globalparamnetwork.ts | 34 - .../models/components/healthcheckresultdto.ts | 118 - .../components/healthindicatorresultdto.ts | 105 - .../src/models/components/historicalreward.ts | 120 - .../components/icmdestinationtransaction.ts | 82 - data/src/models/components/icmreceipt.ts | 66 - .../src/models/components/icmrewarddetails.ts | 147 - .../models/components/icmsourcetransaction.ts | 74 - data/src/models/components/imageasset.ts | 69 - data/src/models/components/index.ts | 204 - .../models/components/internaltransaction.ts | 132 - .../components/internaltransactiondetails.ts | 104 - .../components/internaltransactionopcall.ts | 41 - .../components/l1validatordetailsfull.ts | 188 - .../l1validatordetailstransaction.ts | 180 - .../components/l1validatormanagerdetails.ts | 70 - .../components/listaddresschainsresponse.ts | 76 - .../components/listblockchainsresponse.ts | 79 - .../listcchainatomicbalancesresponse.ts | 84 - .../listcchainatomictransactionsresponse.ts | 186 - .../models/components/listchainsresponse.ts | 72 - .../listcollectiblebalancesresponse.ts | 160 - .../components/listcontractsresponse.ts | 249 - .../listdelegatordetailsresponse.ts | 224 - .../components/listerc1155balancesresponse.ts | 97 - .../listerc1155transactionsresponse.ts | 81 - .../components/listerc20balancesresponse.ts | 95 - .../listerc20transactionsresponse.ts | 81 - .../components/listerc721balancesresponse.ts | 95 - .../listerc721transactionsresponse.ts | 81 - .../components/listevmblocksresponse.ts | 79 - .../listhistoricalrewardsresponse.ts | 81 - .../components/listicmmessagesresponse.ts | 231 - .../listinternaltransactionsresponse.ts | 81 - .../components/listl1validatorsresponse.ts | 89 - .../listnativetransactionsresponse.ts | 81 - data/src/models/components/listnfttokens.ts | 128 - .../components/listpchainbalancesresponse.ts | 82 - .../listpchaintransactionsresponse.ts | 91 - .../components/listpchainutxosresponse.ts | 89 - .../components/listpendingrewardsresponse.ts | 79 - .../listprimarynetworkblocksresponse.ts | 91 - .../models/components/listsubnetsresponse.ts | 79 - .../listteleportermessagesresponse.ts | 236 - .../listtransactiondetailsresponse.ts | 81 - .../components/listtransfersresponse.ts | 162 - .../models/components/listutxosresponse.ts | 89 - .../listvalidatordetailsresponse.ts | 254 - .../components/listxchainbalancesresponse.ts | 82 - .../listxchaintransactionsresponse.ts | 181 - .../components/listxchainverticesresponse.ts | 89 - data/src/models/components/logsformat.ts | 167 - .../models/components/logsformatmetadata.ts | 83 - data/src/models/components/logsresponsedto.ts | 87 - data/src/models/components/method.ts | 81 - data/src/models/components/metric.ts | 75 - data/src/models/components/money.ts | 74 - .../models/components/nativetokenbalance.ts | 124 - .../models/components/nativetransaction.ts | 174 - data/src/models/components/network.ts | 32 - data/src/models/components/networktoken.ts | 90 - .../models/components/networktokendetails.ts | 92 - .../components/nfttokenmetadatastatus.ts | 48 - data/src/models/components/operationstatus.ts | 35 - .../models/components/operationstatuscode.ts | 34 - .../components/operationstatusresponse.ts | 152 - data/src/models/components/operationtype.ts | 37 - data/src/models/components/pchainbalance.ts | 126 - data/src/models/components/pchainid.ts | 32 - .../models/components/pchainsharedasset.ts | 121 - .../models/components/pchaintransaction.ts | 298 - .../components/pchaintransactiontype.ts | 52 - data/src/models/components/pchainutxo.ts | 213 - .../components/pendingdelegatordetails.ts | 139 - .../models/components/pendingicmmessage.ts | 173 - data/src/models/components/pendingreward.ts | 111 - .../components/pendingteleportermessage.ts | 173 - .../components/pendingvalidatordetails.ts | 141 - .../src/models/components/pricingproviders.ts | 66 - .../components/primarynetworkassetcap.ts | 39 - .../components/primarynetworkassettype.ts | 41 - .../models/components/primarynetworkblock.ts | 116 - .../components/primarynetworkchaininfo.ts | 80 - .../components/primarynetworkchainname.ts | 36 - .../components/primarynetworkoperationtype.ts | 38 - .../components/primarynetworkoptions.ts | 111 - .../models/components/primarynetworktxtype.ts | 54 - data/src/models/components/proposerdetails.ts | 80 - .../components/removedvalidatordetails.ts | 155 - data/src/models/components/requesttype.ts | 37 - data/src/models/components/resourcelink.ts | 71 - .../src/models/components/resourcelinktype.ts | 49 - data/src/models/components/rewards.ts | 71 - data/src/models/components/rewardtype.ts | 32 - data/src/models/components/richaddress.ts | 93 - data/src/models/components/rpcmetrics.ts | 78 - .../components/rpcusagemetricsgroupbyenum.ts | 36 - .../rpcusagemetricsvalueaggregated.ts | 235 - data/src/models/components/security.ts | 62 - .../signatureaggregationresponse.ts | 68 - .../components/signatureaggregatorrequest.ts | 78 - data/src/models/components/sortbyoption.ts | 34 - data/src/models/components/sortorder.ts | 31 - .../models/components/stakingdistribution.ts | 83 - data/src/models/components/subnet.ts | 146 - .../models/components/subnetownershipinfo.ts | 83 - .../subnetrpctimeintervalgranularity.ts | 37 - .../subnetrpcusagemetricsresponsedto.ts | 91 - .../teleporterdestinationtransaction.ts | 84 - .../components/teleportermessageinfo.ts | 89 - .../models/components/teleporterreceipt.ts | 70 - .../components/teleporterrewarddetails.ts | 147 - .../components/teleportersourcetransaction.ts | 76 - .../timeintervalgranularityextended.ts | 38 - .../models/components/transactiondetails.ts | 129 - .../components/transactiondirectiontype.ts | 35 - .../components/transactionexportmetadata.ts | 85 - .../components/transactionmethodtype.ts | 40 - .../models/components/transactionstatus.ts | 33 - .../components/transactionvertexdetail.ts | 83 - data/src/models/components/unknowncontract.ts | 159 - .../components/usagemetricsgroupbyenum.ts | 38 - .../components/usagemetricsresponsedto.ts | 89 - .../models/components/usagemetricsvaluedto.ts | 220 - .../src/models/components/utilityaddresses.ts | 66 - data/src/models/components/utxo.ts | 173 - data/src/models/components/utxocredential.ts | 72 - data/src/models/components/utxotype.ts | 37 - .../models/components/validationstatustype.ts | 35 - .../components/validatorhealthdetails.ts | 90 - .../models/components/validatorsdetails.ts | 94 - data/src/models/components/vmname.ts | 32 - .../models/components/xchainassetdetails.ts | 121 - data/src/models/components/xchainbalances.ts | 92 - data/src/models/components/xchainid.ts | 34 - .../components/xchainlineartransaction.ts | 214 - .../components/xchainnonlineartransaction.ts | 215 - .../components/xchainsharedassetbalance.ts | 117 - .../components/xchaintransactiontype.ts | 43 - data/src/models/components/xchainvertex.ts | 90 - data/src/models/errors/avalancheapierror.ts | 40 - data/src/models/errors/avalancheerror.ts | 35 - data/src/models/errors/badgatewayerror.ts | 155 - data/src/models/errors/badrequesterror.ts | 155 - data/src/models/errors/forbiddenerror.ts | 155 - data/src/models/errors/httpclienterrors.ts | 62 - data/src/models/errors/index.ts | 16 - data/src/models/errors/internalservererror.ts | 155 - data/src/models/errors/notfounderror.ts | 153 - .../models/errors/responsevalidationerror.ts | 50 - data/src/models/errors/sdkvalidationerror.ts | 109 - .../models/errors/serviceunavailableerror.ts | 155 - .../src/models/errors/toomanyrequestserror.ts | 155 - data/src/models/errors/unauthorizederror.ts | 155 - .../models/operations/aggregatesignatures.ts | 146 - .../src/models/operations/getaddresschains.ts | 69 - .../operations/getaggregatedsignatures.ts | 142 - data/src/models/operations/getapilogs.ts | 234 - .../models/operations/getapiusagemetrics.ts | 171 - data/src/models/operations/getassetdetails.ts | 145 - .../operations/getbalancesbyaddresses.ts | 225 - data/src/models/operations/getblock.ts | 133 - data/src/models/operations/getblockbyid.ts | 145 - .../models/operations/getblockchainbyid.ts | 138 - .../operations/getchainidsforaddresses.ts | 142 - data/src/models/operations/getchaininfo.ts | 130 - .../models/operations/getcontractmetadata.ts | 243 - .../operations/getdeploymenttransaction.ts | 149 - data/src/models/operations/geticmmessage.ts | 165 - data/src/models/operations/getlatestblocks.ts | 212 - .../src/models/operations/getnativebalance.ts | 152 - .../models/operations/getnetworkdetails.ts | 131 - .../models/operations/getoperationresult.ts | 69 - .../models/operations/getrpcusagemetrics.ts | 124 - .../operations/getsinglevalidatordetails.ts | 240 - data/src/models/operations/getsubnetbyid.ts | 138 - .../operations/getsubnetrpcusagemetrics.ts | 126 - .../models/operations/getteleportermessage.ts | 169 - data/src/models/operations/gettokendetails.ts | 224 - data/src/models/operations/gettransaction.ts | 137 - .../operations/gettransactionsforblock.ts | 155 - data/src/models/operations/gettxbyhash.ts | 220 - .../models/operations/getutxosbyaddresses.ts | 322 - data/src/models/operations/getvertexbyhash.ts | 145 - .../models/operations/getvertexbyheight.ts | 233 - data/src/models/operations/index.ts | 74 - ...activeprimarynetworkstakingtransactions.ts | 296 - .../models/operations/listaddresschains.ts | 69 - .../models/operations/listalllatestblocks.ts | 153 - .../operations/listalllatesttransactions.ts | 163 - .../operations/listassettransactions.ts | 253 - data/src/models/operations/listblockchains.ts | 219 - .../operations/listcollectiblebalances.ts | 232 - .../operations/listcontractdeployments.ts | 225 - data/src/models/operations/listdelegators.ts | 240 - .../models/operations/listerc1155balances.ts | 235 - .../operations/listerc1155transactions.ts | 239 - .../models/operations/listerc20balances.ts | 247 - .../operations/listerc20transactions.ts | 239 - .../models/operations/listerc721balances.ts | 226 - .../operations/listerc721transactions.ts | 239 - .../listhistoricalprimarynetworkrewards.ts | 273 - data/src/models/operations/listicmmessages.ts | 186 - .../operations/listicmmessagesbyaddress.ts | 93 - .../operations/listinternaltransactions.ts | 239 - .../src/models/operations/listl1validators.ts | 237 - .../operations/listlatestblocksallchains.ts | 156 - .../listlatestprimarynetworkblocks.ts | 249 - .../listlatestprimarynetworktransactions.ts | 392 - .../operations/listlatesttransactions.ts | 225 - .../listlatesttransactionsallchains.ts | 175 - .../operations/listlatestxchainvertices.ts | 225 - .../operations/listnativetransactions.ts | 239 - .../listpendingprimarynetworkrewards.ts | 266 - .../listprimarynetworkblocksbynodeid.ts | 273 - data/src/models/operations/listsubnets.ts | 219 - .../operations/listteleportermessages.ts | 190 - .../listteleportermessagesbyaddress.ts | 97 - data/src/models/operations/listtokens.ts | 219 - .../src/models/operations/listtransactions.ts | 240 - data/src/models/operations/listtransfers.ts | 233 - data/src/models/operations/listvalidators.ts | 307 - .../operations/posttransactionexportjob.ts | 71 - data/src/models/operations/reindexnft.ts | 144 - data/src/models/operations/supportedchains.ts | 77 - data/src/sdk/address.ts | 31 - data/src/sdk/addressbalances.ts | 123 - data/src/sdk/addresschains.ts | 28 - data/src/sdk/addresscontracts.ts | 29 - data/src/sdk/addresstransactions.ts | 136 - data/src/sdk/chains.ts | 111 - data/src/sdk/contracts.ts | 67 - data/src/sdk/data.ts | 75 - data/src/sdk/evm.ts | 37 - data/src/sdk/evmblocks.ts | 90 - data/src/sdk/evmtransactions.ts | 72 - data/src/sdk/icm.ts | 67 - data/src/sdk/index.ts | 5 - data/src/sdk/nfts.ts | 64 - data/src/sdk/operations.ts | 48 - data/src/sdk/primarynetwork.ts | 260 - data/src/sdk/primarynetworkbalances.ts | 29 - data/src/sdk/primarynetworkblocks.ts | 75 - data/src/sdk/primarynetworktransactions.ts | 104 - data/src/sdk/rewards.ts | 55 - data/src/sdk/sdk.ts | 13 - data/src/sdk/signatureaggregator.ts | 46 - data/src/sdk/teleporter.ts | 70 - data/src/sdk/usagemetrics.ts | 84 - data/src/sdk/utxos.ts | 29 - data/src/sdk/vertices.ts | 72 - data/src/types/async.ts | 68 - data/src/types/blobs.ts | 31 - data/src/types/constdatetime.ts | 15 - data/src/types/enums.ts | 16 - data/src/types/fp.ts | 50 - data/src/types/index.ts | 11 - data/src/types/operations.ts | 105 - data/src/types/rfcdate.ts | 54 - data/src/types/streams.ts | 21 - data/tsconfig.json | 41 - metrics/.devcontainer/README.md | 35 - metrics/.devcontainer/devcontainer.json | 45 - metrics/.devcontainer/setup.sh | 30 - metrics/.gitattributes | 2 - metrics/.gitignore | 30 - metrics/.npmignore | 15 - metrics/.speakeasy/gen.lock | 667 -- metrics/.speakeasy/gen.yaml | 62 - metrics/CONTRIBUTING.md | 26 - metrics/FUNCTIONS.md | 85 - metrics/LICENSE | 21 - metrics/README.md | 583 -- metrics/RELEASES.md | 89 - metrics/RUNTIMES.md | 48 - metrics/USAGE.md | 16 - metrics/docs/lib/utils/retryconfig.md | 24 - .../docs/models/components/addressdetails.md | 19 - metrics/docs/models/components/chain.md | 25 - metrics/docs/models/components/chainmetric.md | 15 - .../components/chainrollingwindowmetric.md | 15 - .../chainrollingwindowmetricsvalue.md | 25 - .../models/components/globalparamnetwork.md | 15 - .../models/components/healthcheckresultdto.md | 30 - .../components/healthcheckresultdtostatus.md | 15 - .../components/healthindicatorresultdto.md | 15 - .../healthindicatorresultdtostatus.md | 17 - .../models/components/listchainsresponse.md | 18 - .../models/components/lookingglassresponse.md | 23 - .../models/components/metricsapiresponse.md | 23 - .../docs/models/components/metricsvalue.md | 19 - metrics/docs/models/components/network.md | 15 - .../docs/models/components/networkmetric.md | 15 - metrics/docs/models/components/networktype.md | 17 - .../models/components/nftholdersresponse.md | 35 - .../models/components/pchainaddressdetails.md | 21 - .../components/pchainlookingglassresponse.md | 25 - .../rollingwindowmetricsapiresponse.md | 23 - .../teleporterchainmetricsapiresponse.md | 19 - .../models/components/teleportermetric.md | 15 - .../components/teleportermetricsvalue.md | 17 - .../components/timeintervalgranularity.md | 15 - metrics/docs/models/errors/badgatewayerror.md | 17 - .../docs/models/errors/badgatewaymessage.md | 22 - metrics/docs/models/errors/badrequesterror.md | 17 - .../docs/models/errors/badrequestmessage.md | 22 - metrics/docs/models/errors/forbiddenerror.md | 17 - .../docs/models/errors/forbiddenmessage.md | 22 - .../docs/models/errors/internalservererror.md | 17 - .../errors/internalservererrormessage.md | 22 - metrics/docs/models/errors/notfounderror.md | 17 - metrics/docs/models/errors/notfoundmessage.md | 22 - .../models/errors/serviceunavailableerror.md | 17 - .../errors/serviceunavailablemessage.md | 22 - .../models/errors/toomanyrequestserror.md | 17 - .../models/errors/toomanyrequestsmessage.md | 22 - .../docs/models/errors/unauthorizederror.md | 17 - .../docs/models/errors/unauthorizedmessage.md | 22 - .../getaddressesbybalanceovertimeglobals.md | 17 - .../getaddressesbybalanceovertimerequest.md | 27 - .../getaddressesbybalanceovertimeresponse.md | 19 - .../getaddressesbybtcbbridgedrequest.md | 20 - .../getaddressesbybtcbbridgedresponse.md | 19 - .../docs/models/operations/getchainglobals.md | 17 - .../docs/models/operations/getchainrequest.md | 15 - .../operations/getevmchainmetricsglobals.md | 17 - .../operations/getevmchainmetricsrequest.md | 27 - .../operations/getevmchainmetricsresponse.md | 24 - .../getevmchainrollingwindowmetricsglobals.md | 17 - .../getevmchainrollingwindowmetricsrequest.md | 18 - .../operations/getmetricsbynodeidmetric.md | 17 - .../operations/getmetricsbynodeidrequest.md | 23 - .../operations/getmetricsbysubnetidmetric.md | 17 - .../operations/getmetricsbysubnetidrequest.md | 23 - .../getmetricsbyvalidationidmetric.md | 17 - .../getmetricsbyvalidationidrequest.md | 23 - .../getnftholdersbycontractaddressglobals.md | 17 - .../getnftholdersbycontractaddressrequest.md | 21 - .../getnftholdersbycontractaddressresponse.md | 32 - .../operations/getstakingmetricsglobals.md | 17 - .../operations/getstakingmetricsrequest.md | 26 - .../operations/getstakingmetricsresponse.md | 24 - .../getteleportermetricsbychainglobals.md | 17 - .../getteleportermetricsbychainrequest.md | 18 - .../gettotall1validatormetricsmetric.md | 17 - .../gettotall1validatormetricsrequest.md | 21 - .../getvalidatorsbydaterangerequest.md | 26 - .../getvalidatorsbydaterangeresponse.md | 19 - .../models/operations/listchainsrequest.md | 18 - .../models/operations/listchainsresponse.md | 19 - metrics/docs/sdks/avalanche/README.md | 7 - metrics/docs/sdks/chains/README.md | 725 -- metrics/docs/sdks/l1validators/README.md | 341 - metrics/docs/sdks/metrics/README.md | 80 - metrics/docs/sdks/networks/README.md | 99 - metrics/docs/sdks/subnets/README.md | 97 - metrics/eslint.config.mjs | 22 - metrics/examples/.env.template | 3 - metrics/examples/README.md | 31 - .../examples/metricsHealthCheck.example.ts | 24 - metrics/examples/package-lock.json | 628 -- metrics/examples/package.json | 18 - metrics/jsr.json | 27 - metrics/overlays/overlay.yaml | 18 - metrics/package-lock.json | 6433 ---------------- metrics/package.json | 145 - metrics/src/core.ts | 13 - metrics/src/funcs/metricsChainsGet.ts | 220 - metrics/src/funcs/metricsChainsGetMetrics.ts | 334 - .../metricsChainsGetRollingWindowMetrics.ts | 229 - .../metricsChainsGetTeleporterMetrics.ts | 227 - metrics/src/funcs/metricsChainsList.ts | 283 - ...icsChainsListBTCbBridgersAboveThreshold.ts | 287 - .../src/funcs/metricsChainsListNftHolders.ts | 304 - ...icsChainsListTokenHoldersAboveThreshold.ts | 307 - metrics/src/funcs/metricsHealthCheck.ts | 194 - .../metricsL1ValidatorsGetMetricsByNodeId.ts | 231 - ...metricsL1ValidatorsGetMetricsBySubnetId.ts | 230 - ...icsL1ValidatorsGetMetricsByValidationId.ts | 232 - .../funcs/metricsL1ValidatorsListMetrics.ts | 226 - .../funcs/metricsNetworksGetStakingMetrics.ts | 302 - .../src/funcs/metricsSubnetsGetValidators.ts | 298 - metrics/src/hooks/hooks.ts | 132 - metrics/src/hooks/index.ts | 6 - metrics/src/hooks/registration.ts | 14 - metrics/src/hooks/types.ts | 112 - metrics/src/index.ts | 9 - metrics/src/lib/base64.ts | 37 - metrics/src/lib/config.ts | 74 - metrics/src/lib/dlv.ts | 53 - metrics/src/lib/encodings.ts | 483 -- metrics/src/lib/files.ts | 82 - metrics/src/lib/http.ts | 323 - metrics/src/lib/is-plain-object.ts | 43 - metrics/src/lib/logger.ts | 9 - metrics/src/lib/matchers.ts | 352 - metrics/src/lib/primitives.ts | 150 - metrics/src/lib/retries.ts | 218 - metrics/src/lib/schemas.ts | 91 - metrics/src/lib/sdks.ts | 403 -- metrics/src/lib/security.ts | 234 - metrics/src/lib/url.ts | 33 - metrics/src/mcp-server/build.mts | 16 - metrics/src/mcp-server/cli.ts | 13 - metrics/src/mcp-server/cli/start/command.ts | 105 - metrics/src/mcp-server/cli/start/impl.ts | 133 - metrics/src/mcp-server/console-logger.ts | 71 - metrics/src/mcp-server/extensions.ts | 17 - metrics/src/mcp-server/mcp-server.ts | 26 - metrics/src/mcp-server/prompts.ts | 117 - metrics/src/mcp-server/resources.ts | 172 - metrics/src/mcp-server/scopes.ts | 7 - metrics/src/mcp-server/server.ts | 91 - metrics/src/mcp-server/shared.ts | 75 - metrics/src/mcp-server/tools.ts | 129 - .../src/mcp-server/tools/metricsChainsGet.ts | 37 - .../tools/metricsChainsGetMetrics.ts | 71 - .../metricsChainsGetRollingWindowMetrics.ts | 39 - .../metricsChainsGetTeleporterMetrics.ts | 39 - .../src/mcp-server/tools/metricsChainsList.ts | 37 - ...icsChainsListBTCbBridgersAboveThreshold.ts | 39 - .../tools/metricsChainsListNftHolders.ts | 37 - ...icsChainsListTokenHoldersAboveThreshold.ts | 39 - .../mcp-server/tools/metricsHealthCheck.ts | 30 - .../metricsL1ValidatorsGetMetricsByNodeId.ts | 39 - ...metricsL1ValidatorsGetMetricsBySubnetId.ts | 39 - ...icsL1ValidatorsGetMetricsByValidationId.ts | 39 - .../tools/metricsL1ValidatorsListMetrics.ts | 38 - .../tools/metricsNetworksGetStakingMetrics.ts | 39 - .../tools/metricsSubnetsGetValidators.ts | 37 - .../src/models/components/addressdetails.ts | 72 - metrics/src/models/components/chain.ts | 95 - metrics/src/models/components/chainmetric.ts | 44 - .../components/chainrollingwindowmetric.ts | 42 - .../chainrollingwindowmetricsvalue.ts | 99 - .../models/components/globalparamnetwork.ts | 34 - .../models/components/healthcheckresultdto.ts | 118 - .../components/healthindicatorresultdto.ts | 105 - metrics/src/models/components/index.ts | 27 - .../models/components/listchainsresponse.ts | 82 - .../models/components/lookingglassresponse.ts | 82 - .../models/components/metricsapiresponse.ts | 82 - metrics/src/models/components/metricsvalue.ts | 72 - metrics/src/models/components/network.ts | 32 - .../src/models/components/networkmetric.ts | 35 - metrics/src/models/components/networktype.ts | 37 - .../models/components/nftholdersresponse.ts | 110 - .../models/components/pchainaddressdetails.ts | 76 - .../components/pchainlookingglassresponse.ts | 82 - .../rollingwindowmetricsapiresponse.ts | 77 - .../teleporterchainmetricsapiresponse.ts | 78 - .../src/models/components/teleportermetric.ts | 34 - .../components/teleportermetricsvalue.ts | 69 - .../components/timeintervalgranularity.ts | 37 - .../src/models/errors/avalancheapierror.ts | 40 - metrics/src/models/errors/avalancheerror.ts | 35 - metrics/src/models/errors/badgatewayerror.ts | 155 - metrics/src/models/errors/badrequesterror.ts | 155 - metrics/src/models/errors/forbiddenerror.ts | 155 - metrics/src/models/errors/httpclienterrors.ts | 62 - metrics/src/models/errors/index.ts | 16 - .../src/models/errors/internalservererror.ts | 155 - metrics/src/models/errors/notfounderror.ts | 153 - .../models/errors/responsevalidationerror.ts | 50 - .../src/models/errors/sdkvalidationerror.ts | 109 - .../models/errors/serviceunavailableerror.ts | 155 - .../src/models/errors/toomanyrequestserror.ts | 155 - .../src/models/errors/unauthorizederror.ts | 155 - .../getaddressesbybalanceovertime.ts | 255 - .../operations/getaddressesbybtcbbridged.ts | 156 - metrics/src/models/operations/getchain.ts | 126 - .../models/operations/getevmchainmetrics.ts | 244 - .../getevmchainrollingwindowmetrics.ts | 150 - .../models/operations/getmetricsbynodeid.ts | 126 - .../models/operations/getmetricsbysubnetid.ts | 129 - .../operations/getmetricsbyvalidationid.ts | 128 - .../getnftholdersbycontractaddress.ts | 235 - .../models/operations/getstakingmetrics.ts | 240 - .../operations/getteleportermetricsbychain.ts | 146 - .../operations/gettotall1validatormetrics.ts | 123 - .../operations/getvalidatorsbydaterange.ts | 176 - metrics/src/models/operations/index.ts | 18 - metrics/src/models/operations/listchains.ts | 144 - metrics/src/sdk/chains.ts | 206 - metrics/src/sdk/index.ts | 5 - metrics/src/sdk/l1validators.ts | 82 - metrics/src/sdk/metrics.ts | 49 - metrics/src/sdk/networks.ts | 29 - metrics/src/sdk/sdk.ts | 13 - metrics/src/sdk/subnets.ts | 32 - metrics/src/types/async.ts | 68 - metrics/src/types/blobs.ts | 31 - metrics/src/types/constdatetime.ts | 15 - metrics/src/types/enums.ts | 16 - metrics/src/types/fp.ts | 50 - metrics/src/types/index.ts | 11 - metrics/src/types/operations.ts | 105 - metrics/src/types/rfcdate.ts | 54 - metrics/src/types/streams.ts | 21 - metrics/tsconfig.json | 41 - webhooks/.devcontainer/README.md | 35 - webhooks/.devcontainer/devcontainer.json | 45 - webhooks/.devcontainer/setup.sh | 30 - webhooks/.genignore | 1 - webhooks/.gitattributes | 2 - webhooks/.gitignore | 32 - webhooks/.npmignore | 15 - webhooks/.speakeasy/gen.lock | 712 -- webhooks/.speakeasy/gen.yaml | 64 - webhooks/CONTRIBUTING.md | 26 - webhooks/FUNCTIONS.md | 97 - webhooks/README.md | 566 -- webhooks/RELEASES.md | 111 - webhooks/RUNTIMES.md | 48 - webhooks/USAGE.md | 28 - webhooks/docs/lib/utils/retryconfig.md | 24 - .../docs/models/components/accesslistdata.md | 21 - .../components/addressactivityeventtype.md | 15 - .../components/addressactivitymetadata.md | 23 - .../components/addresseschangerequest.md | 19 - .../models/components/commonbalancetype.md | 17 - webhooks/docs/models/components/erctoken.md | 25 - .../docs/models/components/erctransfer.md | 56 - .../components/evmaddressactivityrequest.md | 34 - .../evmaddressactivityrequesteventtype.md | 15 - .../evmaddressactivityrequestmetadata.md | 18 - .../components/evmaddressactivityresponse.md | 42 - .../models/components/globalparamnetwork.md | 15 - .../models/components/healthcheckresultdto.md | 30 - .../components/healthcheckresultdtostatus.md | 15 - .../components/healthindicatorresultdto.md | 15 - .../healthindicatorresultdtostatus.md | 17 - .../listwebhookaddressesresponse.md | 22 - .../models/components/listwebhooksresponse.md | 18 - webhooks/docs/models/components/log.md | 33 - .../models/components/networktokeninfo.md | 23 - .../platformaddressactivitykeytype.md | 17 - .../primarynetworkaddressactivityeventtype.md | 16 - .../primarynetworkaddressactivitymetadata.md | 30 - .../primarynetworkaddressactivityrequest.md | 40 - ...ynetworkaddressactivityrequesteventtype.md | 16 - ...rynetworkaddressactivityrequestmetadata.md | 24 - .../primarynetworkaddressactivityresponse.md | 44 - .../primarynetworkaddressactivitysubevents.md | 19 - ...imarynetworkaddressactivitysubeventtype.md | 17 - .../primarynetworkbalancethresholdfilter.md | 19 - .../models/components/primarynetworktype.md | 15 - webhooks/docs/models/components/security.md | 15 - .../components/sharedsecretsresponse.md | 17 - .../docs/models/components/transaction.md | 132 - .../models/components/transactionevent.md | 126 - .../models/components/updatewebhookrequest.md | 20 - .../components/validatoractivityeventtype.md | 15 - .../components/validatoractivitykeytype.md | 17 - .../components/validatoractivitymetadata.md | 33 - .../components/validatoractivityrequest.md | 34 - .../validatoractivityrequesteventtype.md | 15 - .../validatoractivityrequestmetadata.md | 25 - .../components/validatoractivityresponse.md | 46 - .../components/validatoractivitysubevent.md | 15 - .../components/validatoractivitysubevents.md | 17 - webhooks/docs/models/components/webhook.md | 84 - .../webhookaddressactivityresponse.md | 133 - ...webhookaddressactivityresponseeventtype.md | 17 - .../components/webhookinternaltransaction.md | 30 - .../docs/models/components/webhookstatus.md | 15 - .../models/components/webhookstatustype.md | 15 - .../docs/models/errors/badgatewayerror.md | 17 - .../docs/models/errors/badgatewaymessage.md | 22 - .../docs/models/errors/badrequesterror.md | 17 - .../docs/models/errors/badrequestmessage.md | 22 - webhooks/docs/models/errors/forbiddenerror.md | 17 - .../docs/models/errors/forbiddenmessage.md | 22 - .../docs/models/errors/internalservererror.md | 17 - .../errors/internalservererrormessage.md | 22 - webhooks/docs/models/errors/notfounderror.md | 17 - .../docs/models/errors/notfoundmessage.md | 22 - .../models/errors/serviceunavailableerror.md | 17 - .../errors/serviceunavailablemessage.md | 22 - .../models/errors/toomanyrequestserror.md | 17 - .../models/errors/toomanyrequestsmessage.md | 22 - .../docs/models/errors/unauthorizederror.md | 17 - .../docs/models/errors/unauthorizedmessage.md | 22 - .../addaddressestowebhookrequest.md | 23 - .../models/operations/createwebhookrequest.md | 68 - .../operations/createwebhookresponse.md | 86 - .../operations/deactivatewebhookrequest.md | 17 - .../operations/deactivatewebhookresponse.md | 86 - .../getaddressesfromwebhookrequest.md | 19 - .../getaddressesfromwebhookresponse.md | 24 - .../models/operations/getwebhookrequest.md | 17 - .../models/operations/getwebhookresponse.md | 86 - .../models/operations/listwebhooksrequest.md | 19 - .../models/operations/listwebhooksresponse.md | 19 - .../removeaddressesfromwebhookrequest.md | 23 - .../models/operations/updatewebhookrequest.md | 19 - .../operations/updatewebhookresponse.md | 86 - webhooks/docs/sdks/addresses/README.md | 265 - webhooks/docs/sdks/avalanche/README.md | 7 - webhooks/docs/sdks/webhooks/README.md | 642 -- webhooks/eslint.config.mjs | 22 - webhooks/examples/.env.template | 3 - webhooks/examples/README.md | 31 - webhooks/examples/package-lock.json | 630 -- webhooks/examples/package.json | 18 - webhooks/examples/webhooksCreate.example.ts | 36 - webhooks/jsr.json | 28 - webhooks/overlays/overlay.yaml | 22 - webhooks/package-lock.json | 6445 ----------------- webhooks/package.json | 147 - .../.speakeasy/logs/naming.log | 178 - webhooks/src/core.ts | 13 - webhooks/src/funcs/webhooksAddressesAdd.ts | 229 - webhooks/src/funcs/webhooksAddressesList.ts | 299 - webhooks/src/funcs/webhooksAddressesRemove.ts | 229 - webhooks/src/funcs/webhooksCreate.ts | 218 - webhooks/src/funcs/webhooksDeactivate.ts | 224 - .../webhooksGenerateOrRotateSharedSecret.ts | 200 - webhooks/src/funcs/webhooksGet.ts | 224 - webhooks/src/funcs/webhooksGetSharedSecret.ts | 200 - webhooks/src/funcs/webhooksHealthCheck.ts | 200 - webhooks/src/funcs/webhooksList.ts | 292 - webhooks/src/funcs/webhooksUpdate.ts | 227 - webhooks/src/hooks/hooks.ts | 132 - webhooks/src/hooks/index.ts | 6 - webhooks/src/hooks/registration.ts | 14 - webhooks/src/hooks/types.ts | 114 - webhooks/src/index.extras.ts | 1 - webhooks/src/index.ts | 11 - webhooks/src/lib/base64.ts | 37 - webhooks/src/lib/config.ts | 76 - webhooks/src/lib/dlv.ts | 53 - webhooks/src/lib/encodings.ts | 483 -- webhooks/src/lib/files.ts | 82 - webhooks/src/lib/http.ts | 323 - webhooks/src/lib/is-plain-object.ts | 43 - webhooks/src/lib/logger.ts | 9 - webhooks/src/lib/matchers.ts | 352 - webhooks/src/lib/primitives.ts | 150 - webhooks/src/lib/retries.ts | 218 - webhooks/src/lib/schemas.ts | 91 - webhooks/src/lib/sdks.ts | 403 -- webhooks/src/lib/security.ts | 260 - webhooks/src/lib/url.ts | 33 - webhooks/src/mcp-server/build.mts | 16 - webhooks/src/mcp-server/cli.ts | 13 - webhooks/src/mcp-server/cli/start/command.ts | 113 - webhooks/src/mcp-server/cli/start/impl.ts | 136 - webhooks/src/mcp-server/console-logger.ts | 71 - webhooks/src/mcp-server/extensions.ts | 17 - webhooks/src/mcp-server/mcp-server.ts | 26 - webhooks/src/mcp-server/prompts.ts | 117 - webhooks/src/mcp-server/resources.ts | 172 - webhooks/src/mcp-server/scopes.ts | 7 - webhooks/src/mcp-server/server.ts | 85 - webhooks/src/mcp-server/shared.ts | 75 - webhooks/src/mcp-server/tools.ts | 129 - .../mcp-server/tools/webhooksAddressesAdd.ts | 37 - .../mcp-server/tools/webhooksAddressesList.ts | 37 - .../tools/webhooksAddressesRemove.ts | 37 - .../src/mcp-server/tools/webhooksCreate.ts | 37 - .../mcp-server/tools/webhooksDeactivate.ts | 37 - .../webhooksGenerateOrRotateSharedSecret.ts | 30 - webhooks/src/mcp-server/tools/webhooksGet.ts | 37 - .../tools/webhooksGetSharedSecret.ts | 30 - .../mcp-server/tools/webhooksHealthCheck.ts | 30 - webhooks/src/mcp-server/tools/webhooksList.ts | 37 - .../src/mcp-server/tools/webhooksUpdate.ts | 37 - .../src/models/components/accesslistdata.ts | 72 - .../components/addressactivityeventtype.ts | 34 - .../components/addressactivitymetadata.ts | 76 - .../components/addresseschangerequest.ts | 69 - .../models/components/commonbalancetype.ts | 47 - webhooks/src/models/components/erctoken.ts | 93 - webhooks/src/models/components/erctransfer.ts | 141 - .../components/evmaddressactivityrequest.ts | 190 - .../components/evmaddressactivityresponse.ts | 128 - .../models/components/globalparamnetwork.ts | 34 - .../models/components/healthcheckresultdto.ts | 118 - .../components/healthindicatorresultdto.ts | 105 - webhooks/src/models/components/index.ts | 44 - .../listwebhookaddressesresponse.ts | 79 - .../models/components/listwebhooksresponse.ts | 168 - webhooks/src/models/components/log.ts | 115 - .../src/models/components/networktokeninfo.ts | 90 - .../platformaddressactivitykeytype.ts | 40 - .../primarynetworkaddressactivityeventtype.ts | 37 - .../primarynetworkaddressactivitymetadata.ts | 123 - .../primarynetworkaddressactivityrequest.ts | 208 - .../primarynetworkaddressactivityresponse.ts | 119 - .../primarynetworkaddressactivitysubevents.ts | 81 - ...imarynetworkaddressactivitysubeventtype.ts | 44 - .../primarynetworkbalancethresholdfilter.ts | 86 - .../models/components/primarynetworktype.ts | 33 - webhooks/src/models/components/security.ts | 62 - .../components/sharedsecretsresponse.ts | 66 - webhooks/src/models/components/transaction.ts | 280 - .../src/models/components/transactionevent.ts | 88 - .../models/components/updatewebhookrequest.ts | 94 - .../components/validatoractivityeventtype.ts | 34 - .../components/validatoractivitykeytype.ts | 41 - .../components/validatoractivitymetadata.ts | 122 - .../components/validatoractivityrequest.ts | 186 - .../components/validatoractivityresponse.ts | 114 - .../components/validatoractivitysubevents.ts | 104 - .../webhookaddressactivityresponse.ts | 135 - .../components/webhookinternaltransaction.ts | 111 - .../src/models/components/webhookstatus.ts | 33 - .../models/components/webhookstatustype.ts | 33 - .../src/models/errors/avalancheapierror.ts | 40 - webhooks/src/models/errors/avalancheerror.ts | 35 - webhooks/src/models/errors/badgatewayerror.ts | 155 - webhooks/src/models/errors/badrequesterror.ts | 155 - webhooks/src/models/errors/forbiddenerror.ts | 155 - .../src/models/errors/httpclienterrors.ts | 62 - webhooks/src/models/errors/index.ts | 16 - .../src/models/errors/internalservererror.ts | 155 - webhooks/src/models/errors/notfounderror.ts | 153 - .../models/errors/responsevalidationerror.ts | 50 - .../src/models/errors/sdkvalidationerror.ts | 109 - .../models/errors/serviceunavailableerror.ts | 155 - .../src/models/errors/toomanyrequestserror.ts | 155 - .../src/models/errors/unauthorizederror.ts | 155 - .../operations/addaddressestowebhook.ts | 85 - .../src/models/operations/createwebhook.ts | 140 - .../models/operations/deactivatewebhook.ts | 137 - .../operations/getaddressesfromwebhook.ts | 155 - webhooks/src/models/operations/getwebhook.ts | 137 - webhooks/src/models/operations/index.ts | 12 - .../src/models/operations/listwebhooks.ts | 151 - .../operations/removeaddressesfromwebhook.ts | 86 - .../src/models/operations/updatewebhook.ts | 150 - webhooks/src/sdk/addresses.ts | 67 - webhooks/src/sdk/index.ts | 5 - webhooks/src/sdk/sdk.ts | 13 - webhooks/src/sdk/webhooks.ts | 157 - webhooks/src/types/async.ts | 68 - webhooks/src/types/blobs.ts | 31 - webhooks/src/types/constdatetime.ts | 15 - webhooks/src/types/enums.ts | 16 - webhooks/src/types/fp.ts | 50 - webhooks/src/types/index.ts | 12 - webhooks/src/types/operations.ts | 105 - webhooks/src/types/rfcdate.ts | 54 - webhooks/src/types/streams.ts | 21 - webhooks/src/types/webhooks.ts | 7 - webhooks/src/utils/index.ts | 1 - webhooks/src/utils/validateSignature.ts | 11 - webhooks/tsconfig.json | 41 - 1486 files changed, 83 insertions(+), 151935 deletions(-) delete mode 100644 .github/workflows/data_sdk_generation.yaml delete mode 100644 .github/workflows/data_sdk_publish.yaml delete mode 100644 .github/workflows/metrics_sdk_generation.yaml delete mode 100644 .github/workflows/metrics_sdk_publish.yaml delete mode 100644 .github/workflows/webhooks_sdk_generation.yaml delete mode 100644 .github/workflows/webhooks_sdk_publish.yaml delete mode 100644 data/.devcontainer/README.md delete mode 100644 data/.devcontainer/devcontainer.json delete mode 100644 data/.devcontainer/setup.sh delete mode 100644 data/.gitattributes delete mode 100644 data/.gitignore delete mode 100644 data/.npmignore delete mode 100644 data/.speakeasy/gen.lock delete mode 100644 data/.speakeasy/gen.yaml delete mode 100644 data/CONTRIBUTING.md delete mode 100644 data/FUNCTIONS.md delete mode 100644 data/README.md delete mode 100644 data/RELEASES.md delete mode 100644 data/RUNTIMES.md delete mode 100644 data/USAGE.md delete mode 100644 data/docs/lib/utils/retryconfig.md delete mode 100644 data/docs/models/components/activedelegatordetails.md delete mode 100644 data/docs/models/components/activedelegatordetailsdelegationstatus.md delete mode 100644 data/docs/models/components/activevalidatordetails.md delete mode 100644 data/docs/models/components/activevalidatordetailsvalidationstatus.md delete mode 100644 data/docs/models/components/aggregatedassetamount.md delete mode 100644 data/docs/models/components/apifeature.md delete mode 100644 data/docs/models/components/assetamount.md delete mode 100644 data/docs/models/components/assetwithpriceinfo.md delete mode 100644 data/docs/models/components/balanceowner.md delete mode 100644 data/docs/models/components/blockchain.md delete mode 100644 data/docs/models/components/blockchaingenesisdata.md delete mode 100644 data/docs/models/components/blockchainid.md delete mode 100644 data/docs/models/components/blockchainids.md delete mode 100644 data/docs/models/components/blockchaininfo.md delete mode 100644 data/docs/models/components/blockchaininfogenesisdata.md delete mode 100644 data/docs/models/components/blscredentials.md delete mode 100644 data/docs/models/components/cchainatomicbalances.md delete mode 100644 data/docs/models/components/cchainexporttransaction.md delete mode 100644 data/docs/models/components/cchainexporttransactiontxtype.md delete mode 100644 data/docs/models/components/cchainimporttransaction.md delete mode 100644 data/docs/models/components/cchainimporttransactiontxtype.md delete mode 100644 data/docs/models/components/cchainsharedassetbalance.md delete mode 100644 data/docs/models/components/chainaddresschainidmap.md delete mode 100644 data/docs/models/components/chainaddresschainidmaplistresponse.md delete mode 100644 data/docs/models/components/chaininfo.md delete mode 100644 data/docs/models/components/chaininfoenabledfeature.md delete mode 100644 data/docs/models/components/chainstatus.md delete mode 100644 data/docs/models/components/collectiblebalance.md delete mode 100644 data/docs/models/components/completeddelegatordetails.md delete mode 100644 data/docs/models/components/completeddelegatordetailsdelegationstatus.md delete mode 100644 data/docs/models/components/completedvalidatordetails.md delete mode 100644 data/docs/models/components/completedvalidatordetailsvalidationstatus.md delete mode 100644 data/docs/models/components/contract.md delete mode 100644 data/docs/models/components/contractdeploymentdetails.md delete mode 100644 data/docs/models/components/createevmtransactionexportrequest.md delete mode 100644 data/docs/models/components/createprimarynetworktransactionexportrequest.md delete mode 100644 data/docs/models/components/currencycode.md delete mode 100644 data/docs/models/components/delegationstatustype.md delete mode 100644 data/docs/models/components/delegator.md delete mode 100644 data/docs/models/components/delegatorsdetails.md delete mode 100644 data/docs/models/components/deliveredicmmessage.md delete mode 100644 data/docs/models/components/deliveredicmmessagestatus.md delete mode 100644 data/docs/models/components/deliveredsourcenotindexedicmmessage.md delete mode 100644 data/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md delete mode 100644 data/docs/models/components/deliveredsourcenotindexedteleportermessage.md delete mode 100644 data/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md delete mode 100644 data/docs/models/components/deliveredteleportermessage.md delete mode 100644 data/docs/models/components/deliveredteleportermessagestatus.md delete mode 100644 data/docs/models/components/erc1155contract.md delete mode 100644 data/docs/models/components/erc1155contracterctype.md delete mode 100644 data/docs/models/components/erc1155token.md delete mode 100644 data/docs/models/components/erc1155tokenbalance.md delete mode 100644 data/docs/models/components/erc1155tokenbalanceerctype.md delete mode 100644 data/docs/models/components/erc1155tokenerctype.md delete mode 100644 data/docs/models/components/erc1155tokenmetadata.md delete mode 100644 data/docs/models/components/erc1155transfer.md delete mode 100644 data/docs/models/components/erc1155transferdetails.md delete mode 100644 data/docs/models/components/erc20contract.md delete mode 100644 data/docs/models/components/erc20contracterctype.md delete mode 100644 data/docs/models/components/erc20token.md delete mode 100644 data/docs/models/components/erc20tokenbalance.md delete mode 100644 data/docs/models/components/erc20tokenbalanceerctype.md delete mode 100644 data/docs/models/components/erc20tokenerctype.md delete mode 100644 data/docs/models/components/erc20transfer.md delete mode 100644 data/docs/models/components/erc20transferdetails.md delete mode 100644 data/docs/models/components/erc721contract.md delete mode 100644 data/docs/models/components/erc721contracterctype.md delete mode 100644 data/docs/models/components/erc721token.md delete mode 100644 data/docs/models/components/erc721tokenbalance.md delete mode 100644 data/docs/models/components/erc721tokenbalanceerctype.md delete mode 100644 data/docs/models/components/erc721tokenerctype.md delete mode 100644 data/docs/models/components/erc721tokenmetadata.md delete mode 100644 data/docs/models/components/erc721transfer.md delete mode 100644 data/docs/models/components/erc721transferdetails.md delete mode 100644 data/docs/models/components/evmblock.md delete mode 100644 data/docs/models/components/evminput.md delete mode 100644 data/docs/models/components/evmnetworkoptions.md delete mode 100644 data/docs/models/components/evmoperationtype.md delete mode 100644 data/docs/models/components/evmoutput.md delete mode 100644 data/docs/models/components/fullnativetransactiondetails.md delete mode 100644 data/docs/models/components/geolocation.md delete mode 100644 data/docs/models/components/getchainresponse.md delete mode 100644 data/docs/models/components/getchainresponseenabledfeature.md delete mode 100644 data/docs/models/components/getevmblockresponse.md delete mode 100644 data/docs/models/components/getnativebalanceresponse.md delete mode 100644 data/docs/models/components/getnetworkdetailsresponse.md delete mode 100644 data/docs/models/components/getprimarynetworkblockresponse.md delete mode 100644 data/docs/models/components/gettransactionresponse.md delete mode 100644 data/docs/models/components/globalparamnetwork.md delete mode 100644 data/docs/models/components/healthcheckresultdto.md delete mode 100644 data/docs/models/components/healthcheckresultdtostatus.md delete mode 100644 data/docs/models/components/healthindicatorresultdto.md delete mode 100644 data/docs/models/components/healthindicatorresultdtostatus.md delete mode 100644 data/docs/models/components/historicalreward.md delete mode 100644 data/docs/models/components/icmdestinationtransaction.md delete mode 100644 data/docs/models/components/icmreceipt.md delete mode 100644 data/docs/models/components/icmrewarddetails.md delete mode 100644 data/docs/models/components/icmrewarddetailserctype.md delete mode 100644 data/docs/models/components/icmsourcetransaction.md delete mode 100644 data/docs/models/components/imageasset.md delete mode 100644 data/docs/models/components/includechain.md delete mode 100644 data/docs/models/components/internaltransaction.md delete mode 100644 data/docs/models/components/internaltransactiondetails.md delete mode 100644 data/docs/models/components/internaltransactionopcall.md delete mode 100644 data/docs/models/components/l1validatordetailsfull.md delete mode 100644 data/docs/models/components/l1validatordetailsfullblscredentials.md delete mode 100644 data/docs/models/components/l1validatordetailstransaction.md delete mode 100644 data/docs/models/components/l1validatordetailstransactionblscredentials.md delete mode 100644 data/docs/models/components/l1validatormanagerdetails.md delete mode 100644 data/docs/models/components/listaddresschainsresponse.md delete mode 100644 data/docs/models/components/listblockchainsresponse.md delete mode 100644 data/docs/models/components/listcchainatomicbalancesresponse.md delete mode 100644 data/docs/models/components/listcchainatomictransactionsresponse.md delete mode 100644 data/docs/models/components/listcchainatomictransactionsresponsetransaction.md delete mode 100644 data/docs/models/components/listchainsresponse.md delete mode 100644 data/docs/models/components/listcollectiblebalancesresponse.md delete mode 100644 data/docs/models/components/listcontractsresponse.md delete mode 100644 data/docs/models/components/listdelegatordetailsresponse.md delete mode 100644 data/docs/models/components/listerc1155balancesresponse.md delete mode 100644 data/docs/models/components/listerc1155transactionsresponse.md delete mode 100644 data/docs/models/components/listerc20balancesresponse.md delete mode 100644 data/docs/models/components/listerc20transactionsresponse.md delete mode 100644 data/docs/models/components/listerc721balancesresponse.md delete mode 100644 data/docs/models/components/listerc721transactionsresponse.md delete mode 100644 data/docs/models/components/listevmblocksresponse.md delete mode 100644 data/docs/models/components/listhistoricalrewardsresponse.md delete mode 100644 data/docs/models/components/listicmmessagesresponse.md delete mode 100644 data/docs/models/components/listicmmessagesresponsemessage.md delete mode 100644 data/docs/models/components/listinternaltransactionsresponse.md delete mode 100644 data/docs/models/components/listl1validatorsresponse.md delete mode 100644 data/docs/models/components/listnativetransactionsresponse.md delete mode 100644 data/docs/models/components/listnfttokens.md delete mode 100644 data/docs/models/components/listpchainbalancesresponse.md delete mode 100644 data/docs/models/components/listpchaintransactionsresponse.md delete mode 100644 data/docs/models/components/listpchainutxosresponse.md delete mode 100644 data/docs/models/components/listpendingrewardsresponse.md delete mode 100644 data/docs/models/components/listprimarynetworkblocksresponse.md delete mode 100644 data/docs/models/components/listsubnetsresponse.md delete mode 100644 data/docs/models/components/listteleportermessagesresponse.md delete mode 100644 data/docs/models/components/listteleportermessagesresponsemessage.md delete mode 100644 data/docs/models/components/listtransactiondetailsresponse.md delete mode 100644 data/docs/models/components/listtransfersresponse.md delete mode 100644 data/docs/models/components/listutxosresponse.md delete mode 100644 data/docs/models/components/listvalidatordetailsresponse.md delete mode 100644 data/docs/models/components/listxchainbalancesresponse.md delete mode 100644 data/docs/models/components/listxchaintransactionsresponse.md delete mode 100644 data/docs/models/components/listxchaintransactionsresponsetransaction.md delete mode 100644 data/docs/models/components/listxchainverticesresponse.md delete mode 100644 data/docs/models/components/logsformat.md delete mode 100644 data/docs/models/components/logsformatmetadata.md delete mode 100644 data/docs/models/components/logsresponsedto.md delete mode 100644 data/docs/models/components/metadata.md delete mode 100644 data/docs/models/components/method.md delete mode 100644 data/docs/models/components/metric.md delete mode 100644 data/docs/models/components/money.md delete mode 100644 data/docs/models/components/nativetokenbalance.md delete mode 100644 data/docs/models/components/nativetransaction.md delete mode 100644 data/docs/models/components/network.md delete mode 100644 data/docs/models/components/networktoken.md delete mode 100644 data/docs/models/components/networktokendetails.md delete mode 100644 data/docs/models/components/nfttokenmetadatastatus.md delete mode 100644 data/docs/models/components/operationstatus.md delete mode 100644 data/docs/models/components/operationstatuscode.md delete mode 100644 data/docs/models/components/operationstatusresponse.md delete mode 100644 data/docs/models/components/operationtype.md delete mode 100644 data/docs/models/components/pchainbalance.md delete mode 100644 data/docs/models/components/pchainid.md delete mode 100644 data/docs/models/components/pchainsharedasset.md delete mode 100644 data/docs/models/components/pchaintransaction.md delete mode 100644 data/docs/models/components/pchaintransactiontype.md delete mode 100644 data/docs/models/components/pchainutxo.md delete mode 100644 data/docs/models/components/pendingdelegatordetails.md delete mode 100644 data/docs/models/components/pendingdelegatordetailsdelegationstatus.md delete mode 100644 data/docs/models/components/pendingicmmessage.md delete mode 100644 data/docs/models/components/pendingicmmessagestatus.md delete mode 100644 data/docs/models/components/pendingreward.md delete mode 100644 data/docs/models/components/pendingteleportermessage.md delete mode 100644 data/docs/models/components/pendingteleportermessagestatus.md delete mode 100644 data/docs/models/components/pendingvalidatordetails.md delete mode 100644 data/docs/models/components/pendingvalidatordetailsvalidationstatus.md delete mode 100644 data/docs/models/components/pricingproviders.md delete mode 100644 data/docs/models/components/primarynetworkassetcap.md delete mode 100644 data/docs/models/components/primarynetworkassettype.md delete mode 100644 data/docs/models/components/primarynetworkblock.md delete mode 100644 data/docs/models/components/primarynetworkchaininfo.md delete mode 100644 data/docs/models/components/primarynetworkchainname.md delete mode 100644 data/docs/models/components/primarynetworkoperationtype.md delete mode 100644 data/docs/models/components/primarynetworkoptions.md delete mode 100644 data/docs/models/components/primarynetworktxtype.md delete mode 100644 data/docs/models/components/proposerdetails.md delete mode 100644 data/docs/models/components/removedvalidatordetails.md delete mode 100644 data/docs/models/components/removedvalidatordetailsvalidationstatus.md delete mode 100644 data/docs/models/components/requesttype.md delete mode 100644 data/docs/models/components/resourcelink.md delete mode 100644 data/docs/models/components/resourcelinktype.md delete mode 100644 data/docs/models/components/rewards.md delete mode 100644 data/docs/models/components/rewardtype.md delete mode 100644 data/docs/models/components/richaddress.md delete mode 100644 data/docs/models/components/rpcmetrics.md delete mode 100644 data/docs/models/components/rpcusagemetricsgroupbyenum.md delete mode 100644 data/docs/models/components/rpcusagemetricsvalueaggregated.md delete mode 100644 data/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md delete mode 100644 data/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md delete mode 100644 data/docs/models/components/security.md delete mode 100644 data/docs/models/components/signatureaggregationresponse.md delete mode 100644 data/docs/models/components/signatureaggregatorrequest.md delete mode 100644 data/docs/models/components/sortbyoption.md delete mode 100644 data/docs/models/components/sortorder.md delete mode 100644 data/docs/models/components/stakingdistribution.md delete mode 100644 data/docs/models/components/subnet.md delete mode 100644 data/docs/models/components/subnetownershipinfo.md delete mode 100644 data/docs/models/components/subnetrpctimeintervalgranularity.md delete mode 100644 data/docs/models/components/subnetrpcusagemetricsresponsedto.md delete mode 100644 data/docs/models/components/teleporterdestinationtransaction.md delete mode 100644 data/docs/models/components/teleportermessageinfo.md delete mode 100644 data/docs/models/components/teleporterreceipt.md delete mode 100644 data/docs/models/components/teleporterrewarddetails.md delete mode 100644 data/docs/models/components/teleporterrewarddetailserctype.md delete mode 100644 data/docs/models/components/teleportersourcetransaction.md delete mode 100644 data/docs/models/components/timeintervalgranularityextended.md delete mode 100644 data/docs/models/components/token.md delete mode 100644 data/docs/models/components/tokenreputation.md delete mode 100644 data/docs/models/components/transactiondetails.md delete mode 100644 data/docs/models/components/transactiondirectiontype.md delete mode 100644 data/docs/models/components/transactionexportmetadata.md delete mode 100644 data/docs/models/components/transactionmethodtype.md delete mode 100644 data/docs/models/components/transactionstatus.md delete mode 100644 data/docs/models/components/transactionvertexdetail.md delete mode 100644 data/docs/models/components/transfer.md delete mode 100644 data/docs/models/components/unknowncontract.md delete mode 100644 data/docs/models/components/unknowncontracterctype.md delete mode 100644 data/docs/models/components/usagemetricsgroupbyenum.md delete mode 100644 data/docs/models/components/usagemetricsresponsedto.md delete mode 100644 data/docs/models/components/usagemetricsvaluedto.md delete mode 100644 data/docs/models/components/usagemetricsvaluedtogroupedby.md delete mode 100644 data/docs/models/components/usagemetricsvaluedtogroupvalue.md delete mode 100644 data/docs/models/components/utilityaddresses.md delete mode 100644 data/docs/models/components/utxo.md delete mode 100644 data/docs/models/components/utxocredential.md delete mode 100644 data/docs/models/components/utxotype.md delete mode 100644 data/docs/models/components/validationstatustype.md delete mode 100644 data/docs/models/components/validator.md delete mode 100644 data/docs/models/components/validatorhealthdetails.md delete mode 100644 data/docs/models/components/validatorsdetails.md delete mode 100644 data/docs/models/components/vmname.md delete mode 100644 data/docs/models/components/xchainassetdetails.md delete mode 100644 data/docs/models/components/xchainbalances.md delete mode 100644 data/docs/models/components/xchainid.md delete mode 100644 data/docs/models/components/xchainlineartransaction.md delete mode 100644 data/docs/models/components/xchainlineartransactionchainformat.md delete mode 100644 data/docs/models/components/xchainnonlineartransaction.md delete mode 100644 data/docs/models/components/xchainnonlineartransactionchainformat.md delete mode 100644 data/docs/models/components/xchainsharedassetbalance.md delete mode 100644 data/docs/models/components/xchaintransactiontype.md delete mode 100644 data/docs/models/components/xchainvertex.md delete mode 100644 data/docs/models/errors/badgatewayerror.md delete mode 100644 data/docs/models/errors/badgatewaymessage.md delete mode 100644 data/docs/models/errors/badrequesterror.md delete mode 100644 data/docs/models/errors/badrequestmessage.md delete mode 100644 data/docs/models/errors/forbiddenerror.md delete mode 100644 data/docs/models/errors/forbiddenmessage.md delete mode 100644 data/docs/models/errors/internalservererror.md delete mode 100644 data/docs/models/errors/internalservererrormessage.md delete mode 100644 data/docs/models/errors/notfounderror.md delete mode 100644 data/docs/models/errors/notfoundmessage.md delete mode 100644 data/docs/models/errors/serviceunavailableerror.md delete mode 100644 data/docs/models/errors/serviceunavailablemessage.md delete mode 100644 data/docs/models/errors/toomanyrequestserror.md delete mode 100644 data/docs/models/errors/toomanyrequestsmessage.md delete mode 100644 data/docs/models/errors/unauthorizederror.md delete mode 100644 data/docs/models/errors/unauthorizedmessage.md delete mode 100644 data/docs/models/operations/aggregatesignaturesglobals.md delete mode 100644 data/docs/models/operations/aggregatesignaturesrequest.md delete mode 100644 data/docs/models/operations/getaddresschainsrequest.md delete mode 100644 data/docs/models/operations/getaggregatedsignaturesglobals.md delete mode 100644 data/docs/models/operations/getaggregatedsignaturesrequest.md delete mode 100644 data/docs/models/operations/getapilogsrequest.md delete mode 100644 data/docs/models/operations/getapilogsrequesttype.md delete mode 100644 data/docs/models/operations/getapilogsresponse.md delete mode 100644 data/docs/models/operations/getapiusagemetricsrequest.md delete mode 100644 data/docs/models/operations/getapiusagemetricsrequesttype.md delete mode 100644 data/docs/models/operations/getassetdetailsglobals.md delete mode 100644 data/docs/models/operations/getassetdetailsrequest.md delete mode 100644 data/docs/models/operations/getbalancesbyaddressesglobals.md delete mode 100644 data/docs/models/operations/getbalancesbyaddressesrequest.md delete mode 100644 data/docs/models/operations/getbalancesbyaddressesresponse.md delete mode 100644 data/docs/models/operations/getblockbyidglobals.md delete mode 100644 data/docs/models/operations/getblockbyidrequest.md delete mode 100644 data/docs/models/operations/getblockchainbyidglobals.md delete mode 100644 data/docs/models/operations/getblockchainbyidrequest.md delete mode 100644 data/docs/models/operations/getblockglobals.md delete mode 100644 data/docs/models/operations/getblockrequest.md delete mode 100644 data/docs/models/operations/getchainidsforaddressesglobals.md delete mode 100644 data/docs/models/operations/getchainidsforaddressesrequest.md delete mode 100644 data/docs/models/operations/getchaininfoglobals.md delete mode 100644 data/docs/models/operations/getchaininforequest.md delete mode 100644 data/docs/models/operations/getcontractmetadataglobals.md delete mode 100644 data/docs/models/operations/getcontractmetadatarequest.md delete mode 100644 data/docs/models/operations/getcontractmetadataresponse.md delete mode 100644 data/docs/models/operations/getdeploymenttransactionglobals.md delete mode 100644 data/docs/models/operations/getdeploymenttransactionrequest.md delete mode 100644 data/docs/models/operations/geticmmessagerequest.md delete mode 100644 data/docs/models/operations/geticmmessageresponse.md delete mode 100644 data/docs/models/operations/getlatestblocksglobals.md delete mode 100644 data/docs/models/operations/getlatestblocksrequest.md delete mode 100644 data/docs/models/operations/getlatestblocksresponse.md delete mode 100644 data/docs/models/operations/getnativebalanceglobals.md delete mode 100644 data/docs/models/operations/getnativebalancerequest.md delete mode 100644 data/docs/models/operations/getnetworkdetailsglobals.md delete mode 100644 data/docs/models/operations/getnetworkdetailsrequest.md delete mode 100644 data/docs/models/operations/getoperationresultrequest.md delete mode 100644 data/docs/models/operations/getrpcusagemetricsrequest.md delete mode 100644 data/docs/models/operations/getsinglevalidatordetailsglobals.md delete mode 100644 data/docs/models/operations/getsinglevalidatordetailsrequest.md delete mode 100644 data/docs/models/operations/getsinglevalidatordetailsresponse.md delete mode 100644 data/docs/models/operations/getsubnetbyidglobals.md delete mode 100644 data/docs/models/operations/getsubnetbyidrequest.md delete mode 100644 data/docs/models/operations/getsubnetrpcusagemetricsrequest.md delete mode 100644 data/docs/models/operations/getteleportermessagerequest.md delete mode 100644 data/docs/models/operations/getteleportermessageresponse.md delete mode 100644 data/docs/models/operations/gettokendetailsglobals.md delete mode 100644 data/docs/models/operations/gettokendetailsrequest.md delete mode 100644 data/docs/models/operations/gettokendetailsresponse.md delete mode 100644 data/docs/models/operations/gettransactionglobals.md delete mode 100644 data/docs/models/operations/gettransactionrequest.md delete mode 100644 data/docs/models/operations/gettransactionsforblockglobals.md delete mode 100644 data/docs/models/operations/gettransactionsforblockrequest.md delete mode 100644 data/docs/models/operations/gettxbyhashglobals.md delete mode 100644 data/docs/models/operations/gettxbyhashrequest.md delete mode 100644 data/docs/models/operations/gettxbyhashresponse.md delete mode 100644 data/docs/models/operations/getutxosbyaddressesglobals.md delete mode 100644 data/docs/models/operations/getutxosbyaddressesrequest.md delete mode 100644 data/docs/models/operations/getutxosbyaddressesresponse.md delete mode 100644 data/docs/models/operations/getutxosbyaddressesresponsebody.md delete mode 100644 data/docs/models/operations/getvertexbyhashglobals.md delete mode 100644 data/docs/models/operations/getvertexbyhashrequest.md delete mode 100644 data/docs/models/operations/getvertexbyheightglobals.md delete mode 100644 data/docs/models/operations/getvertexbyheightrequest.md delete mode 100644 data/docs/models/operations/getvertexbyheightresponse.md delete mode 100644 data/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md delete mode 100644 data/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md delete mode 100644 data/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md delete mode 100644 data/docs/models/operations/listaddresschainsrequest.md delete mode 100644 data/docs/models/operations/listalllatestblocksrequest.md delete mode 100644 data/docs/models/operations/listalllatestblocksresponse.md delete mode 100644 data/docs/models/operations/listalllatesttransactionsrequest.md delete mode 100644 data/docs/models/operations/listalllatesttransactionsresponse.md delete mode 100644 data/docs/models/operations/listassettransactionsglobals.md delete mode 100644 data/docs/models/operations/listassettransactionsrequest.md delete mode 100644 data/docs/models/operations/listassettransactionsresponse.md delete mode 100644 data/docs/models/operations/listblockchainsglobals.md delete mode 100644 data/docs/models/operations/listblockchainsrequest.md delete mode 100644 data/docs/models/operations/listblockchainsresponse.md delete mode 100644 data/docs/models/operations/listcollectiblebalancesglobals.md delete mode 100644 data/docs/models/operations/listcollectiblebalancesrequest.md delete mode 100644 data/docs/models/operations/listcollectiblebalancesresponse.md delete mode 100644 data/docs/models/operations/listcontractdeploymentsglobals.md delete mode 100644 data/docs/models/operations/listcontractdeploymentsrequest.md delete mode 100644 data/docs/models/operations/listcontractdeploymentsresponse.md delete mode 100644 data/docs/models/operations/listdelegatorsglobals.md delete mode 100644 data/docs/models/operations/listdelegatorsrequest.md delete mode 100644 data/docs/models/operations/listdelegatorsresponse.md delete mode 100644 data/docs/models/operations/listerc1155balancesglobals.md delete mode 100644 data/docs/models/operations/listerc1155balancesrequest.md delete mode 100644 data/docs/models/operations/listerc1155balancesresponse.md delete mode 100644 data/docs/models/operations/listerc1155transactionsglobals.md delete mode 100644 data/docs/models/operations/listerc1155transactionsrequest.md delete mode 100644 data/docs/models/operations/listerc1155transactionsresponse.md delete mode 100644 data/docs/models/operations/listerc20balancesglobals.md delete mode 100644 data/docs/models/operations/listerc20balancesrequest.md delete mode 100644 data/docs/models/operations/listerc20balancesresponse.md delete mode 100644 data/docs/models/operations/listerc20transactionsglobals.md delete mode 100644 data/docs/models/operations/listerc20transactionsrequest.md delete mode 100644 data/docs/models/operations/listerc20transactionsresponse.md delete mode 100644 data/docs/models/operations/listerc721balancesglobals.md delete mode 100644 data/docs/models/operations/listerc721balancesrequest.md delete mode 100644 data/docs/models/operations/listerc721balancesresponse.md delete mode 100644 data/docs/models/operations/listerc721transactionsglobals.md delete mode 100644 data/docs/models/operations/listerc721transactionsrequest.md delete mode 100644 data/docs/models/operations/listerc721transactionsresponse.md delete mode 100644 data/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md delete mode 100644 data/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md delete mode 100644 data/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md delete mode 100644 data/docs/models/operations/listicmmessagesbyaddressrequest.md delete mode 100644 data/docs/models/operations/listicmmessagesrequest.md delete mode 100644 data/docs/models/operations/listicmmessagesresponse.md delete mode 100644 data/docs/models/operations/listinternaltransactionsglobals.md delete mode 100644 data/docs/models/operations/listinternaltransactionsrequest.md delete mode 100644 data/docs/models/operations/listinternaltransactionsresponse.md delete mode 100644 data/docs/models/operations/listl1validatorsglobals.md delete mode 100644 data/docs/models/operations/listl1validatorsrequest.md delete mode 100644 data/docs/models/operations/listl1validatorsresponse.md delete mode 100644 data/docs/models/operations/listlatestblocksallchainsrequest.md delete mode 100644 data/docs/models/operations/listlatestblocksallchainsresponse.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworkblocksglobals.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworkblocksrequest.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworkblocksresponse.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworktransactionsglobals.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworktransactionsrequest.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworktransactionsresponse.md delete mode 100644 data/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md delete mode 100644 data/docs/models/operations/listlatesttransactionsallchainsrequest.md delete mode 100644 data/docs/models/operations/listlatesttransactionsallchainsresponse.md delete mode 100644 data/docs/models/operations/listlatesttransactionsglobals.md delete mode 100644 data/docs/models/operations/listlatesttransactionsrequest.md delete mode 100644 data/docs/models/operations/listlatesttransactionsresponse.md delete mode 100644 data/docs/models/operations/listlatestxchainverticesglobals.md delete mode 100644 data/docs/models/operations/listlatestxchainverticesrequest.md delete mode 100644 data/docs/models/operations/listlatestxchainverticesresponse.md delete mode 100644 data/docs/models/operations/listnativetransactionsglobals.md delete mode 100644 data/docs/models/operations/listnativetransactionsrequest.md delete mode 100644 data/docs/models/operations/listnativetransactionsresponse.md delete mode 100644 data/docs/models/operations/listpendingprimarynetworkrewardsglobals.md delete mode 100644 data/docs/models/operations/listpendingprimarynetworkrewardsrequest.md delete mode 100644 data/docs/models/operations/listpendingprimarynetworkrewardsresponse.md delete mode 100644 data/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md delete mode 100644 data/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md delete mode 100644 data/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md delete mode 100644 data/docs/models/operations/listsubnetsglobals.md delete mode 100644 data/docs/models/operations/listsubnetsrequest.md delete mode 100644 data/docs/models/operations/listsubnetsresponse.md delete mode 100644 data/docs/models/operations/listteleportermessagesbyaddressrequest.md delete mode 100644 data/docs/models/operations/listteleportermessagesrequest.md delete mode 100644 data/docs/models/operations/listteleportermessagesresponse.md delete mode 100644 data/docs/models/operations/listtokensglobals.md delete mode 100644 data/docs/models/operations/listtokensrequest.md delete mode 100644 data/docs/models/operations/listtokensresponse.md delete mode 100644 data/docs/models/operations/listtransactionsglobals.md delete mode 100644 data/docs/models/operations/listtransactionsrequest.md delete mode 100644 data/docs/models/operations/listtransactionsresponse.md delete mode 100644 data/docs/models/operations/listtransfersglobals.md delete mode 100644 data/docs/models/operations/listtransfersrequest.md delete mode 100644 data/docs/models/operations/listtransfersresponse.md delete mode 100644 data/docs/models/operations/listvalidatorsglobals.md delete mode 100644 data/docs/models/operations/listvalidatorsrequest.md delete mode 100644 data/docs/models/operations/listvalidatorsresponse.md delete mode 100644 data/docs/models/operations/posttransactionexportjobrequest.md delete mode 100644 data/docs/models/operations/reindexnftglobals.md delete mode 100644 data/docs/models/operations/reindexnftrequest.md delete mode 100644 data/docs/models/operations/supportedchainsrequest.md delete mode 100644 data/docs/sdks/addressbalances/README.md delete mode 100644 data/docs/sdks/addresschains/README.md delete mode 100644 data/docs/sdks/addresscontracts/README.md delete mode 100644 data/docs/sdks/addresstransactions/README.md delete mode 100644 data/docs/sdks/avalanche/README.md delete mode 100644 data/docs/sdks/chains/README.md delete mode 100644 data/docs/sdks/contracts/README.md delete mode 100644 data/docs/sdks/data/README.md delete mode 100644 data/docs/sdks/evmblocks/README.md delete mode 100644 data/docs/sdks/evmtransactions/README.md delete mode 100644 data/docs/sdks/icm/README.md delete mode 100644 data/docs/sdks/nfts/README.md delete mode 100644 data/docs/sdks/operations/README.md delete mode 100644 data/docs/sdks/primarynetwork/README.md delete mode 100644 data/docs/sdks/primarynetworkbalances/README.md delete mode 100644 data/docs/sdks/primarynetworkblocks/README.md delete mode 100644 data/docs/sdks/primarynetworktransactions/README.md delete mode 100644 data/docs/sdks/rewards/README.md delete mode 100644 data/docs/sdks/signatureaggregator/README.md delete mode 100644 data/docs/sdks/teleporter/README.md delete mode 100644 data/docs/sdks/usagemetrics/README.md delete mode 100644 data/docs/sdks/utxos/README.md delete mode 100644 data/docs/sdks/vertices/README.md delete mode 100644 data/eslint.config.mjs delete mode 100644 data/examples/.env.template delete mode 100644 data/examples/README.md delete mode 100644 data/examples/dataHealthCheck.example.ts delete mode 100644 data/examples/package-lock.json delete mode 100644 data/examples/package.json delete mode 100644 data/jsr.json delete mode 100644 data/overlays/overlay.yaml delete mode 100644 data/package-lock.json delete mode 100644 data/package.json delete mode 100644 data/speakeasyusagegen/.speakeasy/logs/naming.log delete mode 100644 data/src/core.ts delete mode 100644 data/src/funcs/dataEvmAddressBalancesGetNative.ts delete mode 100644 data/src/funcs/dataEvmAddressBalancesListCollectibles.ts delete mode 100644 data/src/funcs/dataEvmAddressBalancesListErc1155.ts delete mode 100644 data/src/funcs/dataEvmAddressBalancesListErc20.ts delete mode 100644 data/src/funcs/dataEvmAddressBalancesListErc721.ts delete mode 100644 data/src/funcs/dataEvmAddressChainsList.ts delete mode 100644 data/src/funcs/dataEvmAddressContractsListDeployments.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsList.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsListErc1155.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsListErc20.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsListErc721.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsListInternal.ts delete mode 100644 data/src/funcs/dataEvmAddressTransactionsListNative.ts delete mode 100644 data/src/funcs/dataEvmBlocksGet.ts delete mode 100644 data/src/funcs/dataEvmBlocksListLatest.ts delete mode 100644 data/src/funcs/dataEvmBlocksListLatestAllChains.ts delete mode 100644 data/src/funcs/dataEvmBlocksListTransactions.ts delete mode 100644 data/src/funcs/dataEvmChainsGet.ts delete mode 100644 data/src/funcs/dataEvmChainsGetAddressChains.ts delete mode 100644 data/src/funcs/dataEvmChainsList.ts delete mode 100644 data/src/funcs/dataEvmChainsListAllLatestBlocks.ts delete mode 100644 data/src/funcs/dataEvmChainsListAllLatestTransactions.ts delete mode 100644 data/src/funcs/dataEvmContractsGetDeploymentTransaction.ts delete mode 100644 data/src/funcs/dataEvmContractsGetMetadata.ts delete mode 100644 data/src/funcs/dataEvmContractsListTransfers.ts delete mode 100644 data/src/funcs/dataEvmTransactionsGet.ts delete mode 100644 data/src/funcs/dataEvmTransactionsListLatest.ts delete mode 100644 data/src/funcs/dataEvmTransactionsListLatestAllChains.ts delete mode 100644 data/src/funcs/dataHealthCheck.ts delete mode 100644 data/src/funcs/dataIcmGet.ts delete mode 100644 data/src/funcs/dataIcmList.ts delete mode 100644 data/src/funcs/dataIcmListByAddress.ts delete mode 100644 data/src/funcs/dataNftsGet.ts delete mode 100644 data/src/funcs/dataNftsList.ts delete mode 100644 data/src/funcs/dataNftsReindex.ts delete mode 100644 data/src/funcs/dataOperationsExportTransactions.ts delete mode 100644 data/src/funcs/dataOperationsGetResult.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkBlocksGet.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkBlocksListLatest.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetAssetDetails.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetBlockchainById.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetSubnetById.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkListBlockchains.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkListDelegators.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkListL1Validators.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkListSubnets.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkListValidators.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkTransactionsGet.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts delete mode 100644 data/src/funcs/dataPrimaryNetworkVerticesListLatest.ts delete mode 100644 data/src/funcs/dataSignatureAggregatorAggregate.ts delete mode 100644 data/src/funcs/dataSignatureAggregatorGet.ts delete mode 100644 data/src/funcs/dataTeleporterGetTeleporterMessage.ts delete mode 100644 data/src/funcs/dataTeleporterListTeleporterMessages.ts delete mode 100644 data/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts delete mode 100644 data/src/funcs/dataUsageMetricsGetLogs.ts delete mode 100644 data/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts delete mode 100644 data/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts delete mode 100644 data/src/funcs/dataUsageMetricsGetUsage.ts delete mode 100644 data/src/hooks/hooks.ts delete mode 100644 data/src/hooks/index.ts delete mode 100644 data/src/hooks/registration.ts delete mode 100644 data/src/hooks/types.ts delete mode 100644 data/src/index.ts delete mode 100644 data/src/lib/base64.ts delete mode 100644 data/src/lib/config.ts delete mode 100644 data/src/lib/dlv.ts delete mode 100644 data/src/lib/encodings.ts delete mode 100644 data/src/lib/files.ts delete mode 100644 data/src/lib/http.ts delete mode 100644 data/src/lib/is-plain-object.ts delete mode 100644 data/src/lib/logger.ts delete mode 100644 data/src/lib/matchers.ts delete mode 100644 data/src/lib/primitives.ts delete mode 100644 data/src/lib/retries.ts delete mode 100644 data/src/lib/schemas.ts delete mode 100644 data/src/lib/sdks.ts delete mode 100644 data/src/lib/security.ts delete mode 100644 data/src/lib/url.ts delete mode 100644 data/src/mcp-server/build.mts delete mode 100644 data/src/mcp-server/cli.ts delete mode 100644 data/src/mcp-server/cli/start/command.ts delete mode 100644 data/src/mcp-server/cli/start/impl.ts delete mode 100644 data/src/mcp-server/console-logger.ts delete mode 100644 data/src/mcp-server/extensions.ts delete mode 100644 data/src/mcp-server/mcp-server.ts delete mode 100644 data/src/mcp-server/prompts.ts delete mode 100644 data/src/mcp-server/resources.ts delete mode 100644 data/src/mcp-server/scopes.ts delete mode 100644 data/src/mcp-server/server.ts delete mode 100644 data/src/mcp-server/shared.ts delete mode 100644 data/src/mcp-server/tools.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressChainsList.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsList.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts delete mode 100644 data/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts delete mode 100644 data/src/mcp-server/tools/dataEvmBlocksGet.ts delete mode 100644 data/src/mcp-server/tools/dataEvmBlocksListLatest.ts delete mode 100644 data/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts delete mode 100644 data/src/mcp-server/tools/dataEvmBlocksListTransactions.ts delete mode 100644 data/src/mcp-server/tools/dataEvmChainsGet.ts delete mode 100644 data/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts delete mode 100644 data/src/mcp-server/tools/dataEvmChainsList.ts delete mode 100644 data/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts delete mode 100644 data/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts delete mode 100644 data/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts delete mode 100644 data/src/mcp-server/tools/dataEvmContractsGetMetadata.ts delete mode 100644 data/src/mcp-server/tools/dataEvmContractsListTransfers.ts delete mode 100644 data/src/mcp-server/tools/dataEvmTransactionsGet.ts delete mode 100644 data/src/mcp-server/tools/dataEvmTransactionsListLatest.ts delete mode 100644 data/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts delete mode 100644 data/src/mcp-server/tools/dataHealthCheck.ts delete mode 100644 data/src/mcp-server/tools/dataIcmGet.ts delete mode 100644 data/src/mcp-server/tools/dataIcmList.ts delete mode 100644 data/src/mcp-server/tools/dataIcmListByAddress.ts delete mode 100644 data/src/mcp-server/tools/dataNftsGet.ts delete mode 100644 data/src/mcp-server/tools/dataNftsList.ts delete mode 100644 data/src/mcp-server/tools/dataNftsReindex.ts delete mode 100644 data/src/mcp-server/tools/dataOperationsExportTransactions.ts delete mode 100644 data/src/mcp-server/tools/dataOperationsGetResult.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts delete mode 100644 data/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts delete mode 100644 data/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts delete mode 100644 data/src/mcp-server/tools/dataSignatureAggregatorGet.ts delete mode 100644 data/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts delete mode 100644 data/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts delete mode 100644 data/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts delete mode 100644 data/src/mcp-server/tools/dataUsageMetricsGetLogs.ts delete mode 100644 data/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts delete mode 100644 data/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts delete mode 100644 data/src/mcp-server/tools/dataUsageMetricsGetUsage.ts delete mode 100644 data/src/models/components/activedelegatordetails.ts delete mode 100644 data/src/models/components/activevalidatordetails.ts delete mode 100644 data/src/models/components/aggregatedassetamount.ts delete mode 100644 data/src/models/components/apifeature.ts delete mode 100644 data/src/models/components/assetamount.ts delete mode 100644 data/src/models/components/assetwithpriceinfo.ts delete mode 100644 data/src/models/components/balanceowner.ts delete mode 100644 data/src/models/components/blockchain.ts delete mode 100644 data/src/models/components/blockchainid.ts delete mode 100644 data/src/models/components/blockchainids.ts delete mode 100644 data/src/models/components/blockchaininfo.ts delete mode 100644 data/src/models/components/blscredentials.ts delete mode 100644 data/src/models/components/cchainatomicbalances.ts delete mode 100644 data/src/models/components/cchainexporttransaction.ts delete mode 100644 data/src/models/components/cchainimporttransaction.ts delete mode 100644 data/src/models/components/cchainsharedassetbalance.ts delete mode 100644 data/src/models/components/chainaddresschainidmap.ts delete mode 100644 data/src/models/components/chainaddresschainidmaplistresponse.ts delete mode 100644 data/src/models/components/chaininfo.ts delete mode 100644 data/src/models/components/chainstatus.ts delete mode 100644 data/src/models/components/completeddelegatordetails.ts delete mode 100644 data/src/models/components/completedvalidatordetails.ts delete mode 100644 data/src/models/components/contractdeploymentdetails.ts delete mode 100644 data/src/models/components/createevmtransactionexportrequest.ts delete mode 100644 data/src/models/components/createprimarynetworktransactionexportrequest.ts delete mode 100644 data/src/models/components/currencycode.ts delete mode 100644 data/src/models/components/delegationstatustype.ts delete mode 100644 data/src/models/components/delegatorsdetails.ts delete mode 100644 data/src/models/components/deliveredicmmessage.ts delete mode 100644 data/src/models/components/deliveredsourcenotindexedicmmessage.ts delete mode 100644 data/src/models/components/deliveredsourcenotindexedteleportermessage.ts delete mode 100644 data/src/models/components/deliveredteleportermessage.ts delete mode 100644 data/src/models/components/erc1155contract.ts delete mode 100644 data/src/models/components/erc1155token.ts delete mode 100644 data/src/models/components/erc1155tokenbalance.ts delete mode 100644 data/src/models/components/erc1155tokenmetadata.ts delete mode 100644 data/src/models/components/erc1155transfer.ts delete mode 100644 data/src/models/components/erc1155transferdetails.ts delete mode 100644 data/src/models/components/erc20contract.ts delete mode 100644 data/src/models/components/erc20token.ts delete mode 100644 data/src/models/components/erc20tokenbalance.ts delete mode 100644 data/src/models/components/erc20transfer.ts delete mode 100644 data/src/models/components/erc20transferdetails.ts delete mode 100644 data/src/models/components/erc721contract.ts delete mode 100644 data/src/models/components/erc721token.ts delete mode 100644 data/src/models/components/erc721tokenbalance.ts delete mode 100644 data/src/models/components/erc721tokenmetadata.ts delete mode 100644 data/src/models/components/erc721transfer.ts delete mode 100644 data/src/models/components/erc721transferdetails.ts delete mode 100644 data/src/models/components/evmblock.ts delete mode 100644 data/src/models/components/evminput.ts delete mode 100644 data/src/models/components/evmnetworkoptions.ts delete mode 100644 data/src/models/components/evmoperationtype.ts delete mode 100644 data/src/models/components/evmoutput.ts delete mode 100644 data/src/models/components/fullnativetransactiondetails.ts delete mode 100644 data/src/models/components/getchainresponse.ts delete mode 100644 data/src/models/components/getevmblockresponse.ts delete mode 100644 data/src/models/components/getnativebalanceresponse.ts delete mode 100644 data/src/models/components/getnetworkdetailsresponse.ts delete mode 100644 data/src/models/components/getprimarynetworkblockresponse.ts delete mode 100644 data/src/models/components/gettransactionresponse.ts delete mode 100644 data/src/models/components/globalparamnetwork.ts delete mode 100644 data/src/models/components/healthcheckresultdto.ts delete mode 100644 data/src/models/components/healthindicatorresultdto.ts delete mode 100644 data/src/models/components/historicalreward.ts delete mode 100644 data/src/models/components/icmdestinationtransaction.ts delete mode 100644 data/src/models/components/icmreceipt.ts delete mode 100644 data/src/models/components/icmrewarddetails.ts delete mode 100644 data/src/models/components/icmsourcetransaction.ts delete mode 100644 data/src/models/components/imageasset.ts delete mode 100644 data/src/models/components/index.ts delete mode 100644 data/src/models/components/internaltransaction.ts delete mode 100644 data/src/models/components/internaltransactiondetails.ts delete mode 100644 data/src/models/components/internaltransactionopcall.ts delete mode 100644 data/src/models/components/l1validatordetailsfull.ts delete mode 100644 data/src/models/components/l1validatordetailstransaction.ts delete mode 100644 data/src/models/components/l1validatormanagerdetails.ts delete mode 100644 data/src/models/components/listaddresschainsresponse.ts delete mode 100644 data/src/models/components/listblockchainsresponse.ts delete mode 100644 data/src/models/components/listcchainatomicbalancesresponse.ts delete mode 100644 data/src/models/components/listcchainatomictransactionsresponse.ts delete mode 100644 data/src/models/components/listchainsresponse.ts delete mode 100644 data/src/models/components/listcollectiblebalancesresponse.ts delete mode 100644 data/src/models/components/listcontractsresponse.ts delete mode 100644 data/src/models/components/listdelegatordetailsresponse.ts delete mode 100644 data/src/models/components/listerc1155balancesresponse.ts delete mode 100644 data/src/models/components/listerc1155transactionsresponse.ts delete mode 100644 data/src/models/components/listerc20balancesresponse.ts delete mode 100644 data/src/models/components/listerc20transactionsresponse.ts delete mode 100644 data/src/models/components/listerc721balancesresponse.ts delete mode 100644 data/src/models/components/listerc721transactionsresponse.ts delete mode 100644 data/src/models/components/listevmblocksresponse.ts delete mode 100644 data/src/models/components/listhistoricalrewardsresponse.ts delete mode 100644 data/src/models/components/listicmmessagesresponse.ts delete mode 100644 data/src/models/components/listinternaltransactionsresponse.ts delete mode 100644 data/src/models/components/listl1validatorsresponse.ts delete mode 100644 data/src/models/components/listnativetransactionsresponse.ts delete mode 100644 data/src/models/components/listnfttokens.ts delete mode 100644 data/src/models/components/listpchainbalancesresponse.ts delete mode 100644 data/src/models/components/listpchaintransactionsresponse.ts delete mode 100644 data/src/models/components/listpchainutxosresponse.ts delete mode 100644 data/src/models/components/listpendingrewardsresponse.ts delete mode 100644 data/src/models/components/listprimarynetworkblocksresponse.ts delete mode 100644 data/src/models/components/listsubnetsresponse.ts delete mode 100644 data/src/models/components/listteleportermessagesresponse.ts delete mode 100644 data/src/models/components/listtransactiondetailsresponse.ts delete mode 100644 data/src/models/components/listtransfersresponse.ts delete mode 100644 data/src/models/components/listutxosresponse.ts delete mode 100644 data/src/models/components/listvalidatordetailsresponse.ts delete mode 100644 data/src/models/components/listxchainbalancesresponse.ts delete mode 100644 data/src/models/components/listxchaintransactionsresponse.ts delete mode 100644 data/src/models/components/listxchainverticesresponse.ts delete mode 100644 data/src/models/components/logsformat.ts delete mode 100644 data/src/models/components/logsformatmetadata.ts delete mode 100644 data/src/models/components/logsresponsedto.ts delete mode 100644 data/src/models/components/method.ts delete mode 100644 data/src/models/components/metric.ts delete mode 100644 data/src/models/components/money.ts delete mode 100644 data/src/models/components/nativetokenbalance.ts delete mode 100644 data/src/models/components/nativetransaction.ts delete mode 100644 data/src/models/components/network.ts delete mode 100644 data/src/models/components/networktoken.ts delete mode 100644 data/src/models/components/networktokendetails.ts delete mode 100644 data/src/models/components/nfttokenmetadatastatus.ts delete mode 100644 data/src/models/components/operationstatus.ts delete mode 100644 data/src/models/components/operationstatuscode.ts delete mode 100644 data/src/models/components/operationstatusresponse.ts delete mode 100644 data/src/models/components/operationtype.ts delete mode 100644 data/src/models/components/pchainbalance.ts delete mode 100644 data/src/models/components/pchainid.ts delete mode 100644 data/src/models/components/pchainsharedasset.ts delete mode 100644 data/src/models/components/pchaintransaction.ts delete mode 100644 data/src/models/components/pchaintransactiontype.ts delete mode 100644 data/src/models/components/pchainutxo.ts delete mode 100644 data/src/models/components/pendingdelegatordetails.ts delete mode 100644 data/src/models/components/pendingicmmessage.ts delete mode 100644 data/src/models/components/pendingreward.ts delete mode 100644 data/src/models/components/pendingteleportermessage.ts delete mode 100644 data/src/models/components/pendingvalidatordetails.ts delete mode 100644 data/src/models/components/pricingproviders.ts delete mode 100644 data/src/models/components/primarynetworkassetcap.ts delete mode 100644 data/src/models/components/primarynetworkassettype.ts delete mode 100644 data/src/models/components/primarynetworkblock.ts delete mode 100644 data/src/models/components/primarynetworkchaininfo.ts delete mode 100644 data/src/models/components/primarynetworkchainname.ts delete mode 100644 data/src/models/components/primarynetworkoperationtype.ts delete mode 100644 data/src/models/components/primarynetworkoptions.ts delete mode 100644 data/src/models/components/primarynetworktxtype.ts delete mode 100644 data/src/models/components/proposerdetails.ts delete mode 100644 data/src/models/components/removedvalidatordetails.ts delete mode 100644 data/src/models/components/requesttype.ts delete mode 100644 data/src/models/components/resourcelink.ts delete mode 100644 data/src/models/components/resourcelinktype.ts delete mode 100644 data/src/models/components/rewards.ts delete mode 100644 data/src/models/components/rewardtype.ts delete mode 100644 data/src/models/components/richaddress.ts delete mode 100644 data/src/models/components/rpcmetrics.ts delete mode 100644 data/src/models/components/rpcusagemetricsgroupbyenum.ts delete mode 100644 data/src/models/components/rpcusagemetricsvalueaggregated.ts delete mode 100644 data/src/models/components/security.ts delete mode 100644 data/src/models/components/signatureaggregationresponse.ts delete mode 100644 data/src/models/components/signatureaggregatorrequest.ts delete mode 100644 data/src/models/components/sortbyoption.ts delete mode 100644 data/src/models/components/sortorder.ts delete mode 100644 data/src/models/components/stakingdistribution.ts delete mode 100644 data/src/models/components/subnet.ts delete mode 100644 data/src/models/components/subnetownershipinfo.ts delete mode 100644 data/src/models/components/subnetrpctimeintervalgranularity.ts delete mode 100644 data/src/models/components/subnetrpcusagemetricsresponsedto.ts delete mode 100644 data/src/models/components/teleporterdestinationtransaction.ts delete mode 100644 data/src/models/components/teleportermessageinfo.ts delete mode 100644 data/src/models/components/teleporterreceipt.ts delete mode 100644 data/src/models/components/teleporterrewarddetails.ts delete mode 100644 data/src/models/components/teleportersourcetransaction.ts delete mode 100644 data/src/models/components/timeintervalgranularityextended.ts delete mode 100644 data/src/models/components/transactiondetails.ts delete mode 100644 data/src/models/components/transactiondirectiontype.ts delete mode 100644 data/src/models/components/transactionexportmetadata.ts delete mode 100644 data/src/models/components/transactionmethodtype.ts delete mode 100644 data/src/models/components/transactionstatus.ts delete mode 100644 data/src/models/components/transactionvertexdetail.ts delete mode 100644 data/src/models/components/unknowncontract.ts delete mode 100644 data/src/models/components/usagemetricsgroupbyenum.ts delete mode 100644 data/src/models/components/usagemetricsresponsedto.ts delete mode 100644 data/src/models/components/usagemetricsvaluedto.ts delete mode 100644 data/src/models/components/utilityaddresses.ts delete mode 100644 data/src/models/components/utxo.ts delete mode 100644 data/src/models/components/utxocredential.ts delete mode 100644 data/src/models/components/utxotype.ts delete mode 100644 data/src/models/components/validationstatustype.ts delete mode 100644 data/src/models/components/validatorhealthdetails.ts delete mode 100644 data/src/models/components/validatorsdetails.ts delete mode 100644 data/src/models/components/vmname.ts delete mode 100644 data/src/models/components/xchainassetdetails.ts delete mode 100644 data/src/models/components/xchainbalances.ts delete mode 100644 data/src/models/components/xchainid.ts delete mode 100644 data/src/models/components/xchainlineartransaction.ts delete mode 100644 data/src/models/components/xchainnonlineartransaction.ts delete mode 100644 data/src/models/components/xchainsharedassetbalance.ts delete mode 100644 data/src/models/components/xchaintransactiontype.ts delete mode 100644 data/src/models/components/xchainvertex.ts delete mode 100644 data/src/models/errors/avalancheapierror.ts delete mode 100644 data/src/models/errors/avalancheerror.ts delete mode 100644 data/src/models/errors/badgatewayerror.ts delete mode 100644 data/src/models/errors/badrequesterror.ts delete mode 100644 data/src/models/errors/forbiddenerror.ts delete mode 100644 data/src/models/errors/httpclienterrors.ts delete mode 100644 data/src/models/errors/index.ts delete mode 100644 data/src/models/errors/internalservererror.ts delete mode 100644 data/src/models/errors/notfounderror.ts delete mode 100644 data/src/models/errors/responsevalidationerror.ts delete mode 100644 data/src/models/errors/sdkvalidationerror.ts delete mode 100644 data/src/models/errors/serviceunavailableerror.ts delete mode 100644 data/src/models/errors/toomanyrequestserror.ts delete mode 100644 data/src/models/errors/unauthorizederror.ts delete mode 100644 data/src/models/operations/aggregatesignatures.ts delete mode 100644 data/src/models/operations/getaddresschains.ts delete mode 100644 data/src/models/operations/getaggregatedsignatures.ts delete mode 100644 data/src/models/operations/getapilogs.ts delete mode 100644 data/src/models/operations/getapiusagemetrics.ts delete mode 100644 data/src/models/operations/getassetdetails.ts delete mode 100644 data/src/models/operations/getbalancesbyaddresses.ts delete mode 100644 data/src/models/operations/getblock.ts delete mode 100644 data/src/models/operations/getblockbyid.ts delete mode 100644 data/src/models/operations/getblockchainbyid.ts delete mode 100644 data/src/models/operations/getchainidsforaddresses.ts delete mode 100644 data/src/models/operations/getchaininfo.ts delete mode 100644 data/src/models/operations/getcontractmetadata.ts delete mode 100644 data/src/models/operations/getdeploymenttransaction.ts delete mode 100644 data/src/models/operations/geticmmessage.ts delete mode 100644 data/src/models/operations/getlatestblocks.ts delete mode 100644 data/src/models/operations/getnativebalance.ts delete mode 100644 data/src/models/operations/getnetworkdetails.ts delete mode 100644 data/src/models/operations/getoperationresult.ts delete mode 100644 data/src/models/operations/getrpcusagemetrics.ts delete mode 100644 data/src/models/operations/getsinglevalidatordetails.ts delete mode 100644 data/src/models/operations/getsubnetbyid.ts delete mode 100644 data/src/models/operations/getsubnetrpcusagemetrics.ts delete mode 100644 data/src/models/operations/getteleportermessage.ts delete mode 100644 data/src/models/operations/gettokendetails.ts delete mode 100644 data/src/models/operations/gettransaction.ts delete mode 100644 data/src/models/operations/gettransactionsforblock.ts delete mode 100644 data/src/models/operations/gettxbyhash.ts delete mode 100644 data/src/models/operations/getutxosbyaddresses.ts delete mode 100644 data/src/models/operations/getvertexbyhash.ts delete mode 100644 data/src/models/operations/getvertexbyheight.ts delete mode 100644 data/src/models/operations/index.ts delete mode 100644 data/src/models/operations/listactiveprimarynetworkstakingtransactions.ts delete mode 100644 data/src/models/operations/listaddresschains.ts delete mode 100644 data/src/models/operations/listalllatestblocks.ts delete mode 100644 data/src/models/operations/listalllatesttransactions.ts delete mode 100644 data/src/models/operations/listassettransactions.ts delete mode 100644 data/src/models/operations/listblockchains.ts delete mode 100644 data/src/models/operations/listcollectiblebalances.ts delete mode 100644 data/src/models/operations/listcontractdeployments.ts delete mode 100644 data/src/models/operations/listdelegators.ts delete mode 100644 data/src/models/operations/listerc1155balances.ts delete mode 100644 data/src/models/operations/listerc1155transactions.ts delete mode 100644 data/src/models/operations/listerc20balances.ts delete mode 100644 data/src/models/operations/listerc20transactions.ts delete mode 100644 data/src/models/operations/listerc721balances.ts delete mode 100644 data/src/models/operations/listerc721transactions.ts delete mode 100644 data/src/models/operations/listhistoricalprimarynetworkrewards.ts delete mode 100644 data/src/models/operations/listicmmessages.ts delete mode 100644 data/src/models/operations/listicmmessagesbyaddress.ts delete mode 100644 data/src/models/operations/listinternaltransactions.ts delete mode 100644 data/src/models/operations/listl1validators.ts delete mode 100644 data/src/models/operations/listlatestblocksallchains.ts delete mode 100644 data/src/models/operations/listlatestprimarynetworkblocks.ts delete mode 100644 data/src/models/operations/listlatestprimarynetworktransactions.ts delete mode 100644 data/src/models/operations/listlatesttransactions.ts delete mode 100644 data/src/models/operations/listlatesttransactionsallchains.ts delete mode 100644 data/src/models/operations/listlatestxchainvertices.ts delete mode 100644 data/src/models/operations/listnativetransactions.ts delete mode 100644 data/src/models/operations/listpendingprimarynetworkrewards.ts delete mode 100644 data/src/models/operations/listprimarynetworkblocksbynodeid.ts delete mode 100644 data/src/models/operations/listsubnets.ts delete mode 100644 data/src/models/operations/listteleportermessages.ts delete mode 100644 data/src/models/operations/listteleportermessagesbyaddress.ts delete mode 100644 data/src/models/operations/listtokens.ts delete mode 100644 data/src/models/operations/listtransactions.ts delete mode 100644 data/src/models/operations/listtransfers.ts delete mode 100644 data/src/models/operations/listvalidators.ts delete mode 100644 data/src/models/operations/posttransactionexportjob.ts delete mode 100644 data/src/models/operations/reindexnft.ts delete mode 100644 data/src/models/operations/supportedchains.ts delete mode 100644 data/src/sdk/address.ts delete mode 100644 data/src/sdk/addressbalances.ts delete mode 100644 data/src/sdk/addresschains.ts delete mode 100644 data/src/sdk/addresscontracts.ts delete mode 100644 data/src/sdk/addresstransactions.ts delete mode 100644 data/src/sdk/chains.ts delete mode 100644 data/src/sdk/contracts.ts delete mode 100644 data/src/sdk/data.ts delete mode 100644 data/src/sdk/evm.ts delete mode 100644 data/src/sdk/evmblocks.ts delete mode 100644 data/src/sdk/evmtransactions.ts delete mode 100644 data/src/sdk/icm.ts delete mode 100644 data/src/sdk/index.ts delete mode 100644 data/src/sdk/nfts.ts delete mode 100644 data/src/sdk/operations.ts delete mode 100644 data/src/sdk/primarynetwork.ts delete mode 100644 data/src/sdk/primarynetworkbalances.ts delete mode 100644 data/src/sdk/primarynetworkblocks.ts delete mode 100644 data/src/sdk/primarynetworktransactions.ts delete mode 100644 data/src/sdk/rewards.ts delete mode 100644 data/src/sdk/sdk.ts delete mode 100644 data/src/sdk/signatureaggregator.ts delete mode 100644 data/src/sdk/teleporter.ts delete mode 100644 data/src/sdk/usagemetrics.ts delete mode 100644 data/src/sdk/utxos.ts delete mode 100644 data/src/sdk/vertices.ts delete mode 100644 data/src/types/async.ts delete mode 100644 data/src/types/blobs.ts delete mode 100644 data/src/types/constdatetime.ts delete mode 100644 data/src/types/enums.ts delete mode 100644 data/src/types/fp.ts delete mode 100644 data/src/types/index.ts delete mode 100644 data/src/types/operations.ts delete mode 100644 data/src/types/rfcdate.ts delete mode 100644 data/src/types/streams.ts delete mode 100644 data/tsconfig.json delete mode 100644 metrics/.devcontainer/README.md delete mode 100644 metrics/.devcontainer/devcontainer.json delete mode 100644 metrics/.devcontainer/setup.sh delete mode 100644 metrics/.gitattributes delete mode 100644 metrics/.gitignore delete mode 100644 metrics/.npmignore delete mode 100644 metrics/.speakeasy/gen.lock delete mode 100644 metrics/.speakeasy/gen.yaml delete mode 100644 metrics/CONTRIBUTING.md delete mode 100644 metrics/FUNCTIONS.md delete mode 100644 metrics/LICENSE delete mode 100644 metrics/README.md delete mode 100644 metrics/RELEASES.md delete mode 100644 metrics/RUNTIMES.md delete mode 100644 metrics/USAGE.md delete mode 100644 metrics/docs/lib/utils/retryconfig.md delete mode 100644 metrics/docs/models/components/addressdetails.md delete mode 100644 metrics/docs/models/components/chain.md delete mode 100644 metrics/docs/models/components/chainmetric.md delete mode 100644 metrics/docs/models/components/chainrollingwindowmetric.md delete mode 100644 metrics/docs/models/components/chainrollingwindowmetricsvalue.md delete mode 100644 metrics/docs/models/components/globalparamnetwork.md delete mode 100644 metrics/docs/models/components/healthcheckresultdto.md delete mode 100644 metrics/docs/models/components/healthcheckresultdtostatus.md delete mode 100644 metrics/docs/models/components/healthindicatorresultdto.md delete mode 100644 metrics/docs/models/components/healthindicatorresultdtostatus.md delete mode 100644 metrics/docs/models/components/listchainsresponse.md delete mode 100644 metrics/docs/models/components/lookingglassresponse.md delete mode 100644 metrics/docs/models/components/metricsapiresponse.md delete mode 100644 metrics/docs/models/components/metricsvalue.md delete mode 100644 metrics/docs/models/components/network.md delete mode 100644 metrics/docs/models/components/networkmetric.md delete mode 100644 metrics/docs/models/components/networktype.md delete mode 100644 metrics/docs/models/components/nftholdersresponse.md delete mode 100644 metrics/docs/models/components/pchainaddressdetails.md delete mode 100644 metrics/docs/models/components/pchainlookingglassresponse.md delete mode 100644 metrics/docs/models/components/rollingwindowmetricsapiresponse.md delete mode 100644 metrics/docs/models/components/teleporterchainmetricsapiresponse.md delete mode 100644 metrics/docs/models/components/teleportermetric.md delete mode 100644 metrics/docs/models/components/teleportermetricsvalue.md delete mode 100644 metrics/docs/models/components/timeintervalgranularity.md delete mode 100644 metrics/docs/models/errors/badgatewayerror.md delete mode 100644 metrics/docs/models/errors/badgatewaymessage.md delete mode 100644 metrics/docs/models/errors/badrequesterror.md delete mode 100644 metrics/docs/models/errors/badrequestmessage.md delete mode 100644 metrics/docs/models/errors/forbiddenerror.md delete mode 100644 metrics/docs/models/errors/forbiddenmessage.md delete mode 100644 metrics/docs/models/errors/internalservererror.md delete mode 100644 metrics/docs/models/errors/internalservererrormessage.md delete mode 100644 metrics/docs/models/errors/notfounderror.md delete mode 100644 metrics/docs/models/errors/notfoundmessage.md delete mode 100644 metrics/docs/models/errors/serviceunavailableerror.md delete mode 100644 metrics/docs/models/errors/serviceunavailablemessage.md delete mode 100644 metrics/docs/models/errors/toomanyrequestserror.md delete mode 100644 metrics/docs/models/errors/toomanyrequestsmessage.md delete mode 100644 metrics/docs/models/errors/unauthorizederror.md delete mode 100644 metrics/docs/models/errors/unauthorizedmessage.md delete mode 100644 metrics/docs/models/operations/getaddressesbybalanceovertimeglobals.md delete mode 100644 metrics/docs/models/operations/getaddressesbybalanceovertimerequest.md delete mode 100644 metrics/docs/models/operations/getaddressesbybalanceovertimeresponse.md delete mode 100644 metrics/docs/models/operations/getaddressesbybtcbbridgedrequest.md delete mode 100644 metrics/docs/models/operations/getaddressesbybtcbbridgedresponse.md delete mode 100644 metrics/docs/models/operations/getchainglobals.md delete mode 100644 metrics/docs/models/operations/getchainrequest.md delete mode 100644 metrics/docs/models/operations/getevmchainmetricsglobals.md delete mode 100644 metrics/docs/models/operations/getevmchainmetricsrequest.md delete mode 100644 metrics/docs/models/operations/getevmchainmetricsresponse.md delete mode 100644 metrics/docs/models/operations/getevmchainrollingwindowmetricsglobals.md delete mode 100644 metrics/docs/models/operations/getevmchainrollingwindowmetricsrequest.md delete mode 100644 metrics/docs/models/operations/getmetricsbynodeidmetric.md delete mode 100644 metrics/docs/models/operations/getmetricsbynodeidrequest.md delete mode 100644 metrics/docs/models/operations/getmetricsbysubnetidmetric.md delete mode 100644 metrics/docs/models/operations/getmetricsbysubnetidrequest.md delete mode 100644 metrics/docs/models/operations/getmetricsbyvalidationidmetric.md delete mode 100644 metrics/docs/models/operations/getmetricsbyvalidationidrequest.md delete mode 100644 metrics/docs/models/operations/getnftholdersbycontractaddressglobals.md delete mode 100644 metrics/docs/models/operations/getnftholdersbycontractaddressrequest.md delete mode 100644 metrics/docs/models/operations/getnftholdersbycontractaddressresponse.md delete mode 100644 metrics/docs/models/operations/getstakingmetricsglobals.md delete mode 100644 metrics/docs/models/operations/getstakingmetricsrequest.md delete mode 100644 metrics/docs/models/operations/getstakingmetricsresponse.md delete mode 100644 metrics/docs/models/operations/getteleportermetricsbychainglobals.md delete mode 100644 metrics/docs/models/operations/getteleportermetricsbychainrequest.md delete mode 100644 metrics/docs/models/operations/gettotall1validatormetricsmetric.md delete mode 100644 metrics/docs/models/operations/gettotall1validatormetricsrequest.md delete mode 100644 metrics/docs/models/operations/getvalidatorsbydaterangerequest.md delete mode 100644 metrics/docs/models/operations/getvalidatorsbydaterangeresponse.md delete mode 100644 metrics/docs/models/operations/listchainsrequest.md delete mode 100644 metrics/docs/models/operations/listchainsresponse.md delete mode 100644 metrics/docs/sdks/avalanche/README.md delete mode 100644 metrics/docs/sdks/chains/README.md delete mode 100644 metrics/docs/sdks/l1validators/README.md delete mode 100644 metrics/docs/sdks/metrics/README.md delete mode 100644 metrics/docs/sdks/networks/README.md delete mode 100644 metrics/docs/sdks/subnets/README.md delete mode 100644 metrics/eslint.config.mjs delete mode 100644 metrics/examples/.env.template delete mode 100644 metrics/examples/README.md delete mode 100644 metrics/examples/metricsHealthCheck.example.ts delete mode 100644 metrics/examples/package-lock.json delete mode 100644 metrics/examples/package.json delete mode 100644 metrics/jsr.json delete mode 100644 metrics/overlays/overlay.yaml delete mode 100644 metrics/package-lock.json delete mode 100644 metrics/package.json delete mode 100644 metrics/src/core.ts delete mode 100644 metrics/src/funcs/metricsChainsGet.ts delete mode 100644 metrics/src/funcs/metricsChainsGetMetrics.ts delete mode 100644 metrics/src/funcs/metricsChainsGetRollingWindowMetrics.ts delete mode 100644 metrics/src/funcs/metricsChainsGetTeleporterMetrics.ts delete mode 100644 metrics/src/funcs/metricsChainsList.ts delete mode 100644 metrics/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts delete mode 100644 metrics/src/funcs/metricsChainsListNftHolders.ts delete mode 100644 metrics/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts delete mode 100644 metrics/src/funcs/metricsHealthCheck.ts delete mode 100644 metrics/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts delete mode 100644 metrics/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts delete mode 100644 metrics/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts delete mode 100644 metrics/src/funcs/metricsL1ValidatorsListMetrics.ts delete mode 100644 metrics/src/funcs/metricsNetworksGetStakingMetrics.ts delete mode 100644 metrics/src/funcs/metricsSubnetsGetValidators.ts delete mode 100644 metrics/src/hooks/hooks.ts delete mode 100644 metrics/src/hooks/index.ts delete mode 100644 metrics/src/hooks/registration.ts delete mode 100644 metrics/src/hooks/types.ts delete mode 100644 metrics/src/index.ts delete mode 100644 metrics/src/lib/base64.ts delete mode 100644 metrics/src/lib/config.ts delete mode 100644 metrics/src/lib/dlv.ts delete mode 100644 metrics/src/lib/encodings.ts delete mode 100644 metrics/src/lib/files.ts delete mode 100644 metrics/src/lib/http.ts delete mode 100644 metrics/src/lib/is-plain-object.ts delete mode 100644 metrics/src/lib/logger.ts delete mode 100644 metrics/src/lib/matchers.ts delete mode 100644 metrics/src/lib/primitives.ts delete mode 100644 metrics/src/lib/retries.ts delete mode 100644 metrics/src/lib/schemas.ts delete mode 100644 metrics/src/lib/sdks.ts delete mode 100644 metrics/src/lib/security.ts delete mode 100644 metrics/src/lib/url.ts delete mode 100644 metrics/src/mcp-server/build.mts delete mode 100644 metrics/src/mcp-server/cli.ts delete mode 100644 metrics/src/mcp-server/cli/start/command.ts delete mode 100644 metrics/src/mcp-server/cli/start/impl.ts delete mode 100644 metrics/src/mcp-server/console-logger.ts delete mode 100644 metrics/src/mcp-server/extensions.ts delete mode 100644 metrics/src/mcp-server/mcp-server.ts delete mode 100644 metrics/src/mcp-server/prompts.ts delete mode 100644 metrics/src/mcp-server/resources.ts delete mode 100644 metrics/src/mcp-server/scopes.ts delete mode 100644 metrics/src/mcp-server/server.ts delete mode 100644 metrics/src/mcp-server/shared.ts delete mode 100644 metrics/src/mcp-server/tools.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsGet.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsGetMetrics.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsList.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsListNftHolders.ts delete mode 100644 metrics/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts delete mode 100644 metrics/src/mcp-server/tools/metricsHealthCheck.ts delete mode 100644 metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts delete mode 100644 metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts delete mode 100644 metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts delete mode 100644 metrics/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts delete mode 100644 metrics/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts delete mode 100644 metrics/src/mcp-server/tools/metricsSubnetsGetValidators.ts delete mode 100644 metrics/src/models/components/addressdetails.ts delete mode 100644 metrics/src/models/components/chain.ts delete mode 100644 metrics/src/models/components/chainmetric.ts delete mode 100644 metrics/src/models/components/chainrollingwindowmetric.ts delete mode 100644 metrics/src/models/components/chainrollingwindowmetricsvalue.ts delete mode 100644 metrics/src/models/components/globalparamnetwork.ts delete mode 100644 metrics/src/models/components/healthcheckresultdto.ts delete mode 100644 metrics/src/models/components/healthindicatorresultdto.ts delete mode 100644 metrics/src/models/components/index.ts delete mode 100644 metrics/src/models/components/listchainsresponse.ts delete mode 100644 metrics/src/models/components/lookingglassresponse.ts delete mode 100644 metrics/src/models/components/metricsapiresponse.ts delete mode 100644 metrics/src/models/components/metricsvalue.ts delete mode 100644 metrics/src/models/components/network.ts delete mode 100644 metrics/src/models/components/networkmetric.ts delete mode 100644 metrics/src/models/components/networktype.ts delete mode 100644 metrics/src/models/components/nftholdersresponse.ts delete mode 100644 metrics/src/models/components/pchainaddressdetails.ts delete mode 100644 metrics/src/models/components/pchainlookingglassresponse.ts delete mode 100644 metrics/src/models/components/rollingwindowmetricsapiresponse.ts delete mode 100644 metrics/src/models/components/teleporterchainmetricsapiresponse.ts delete mode 100644 metrics/src/models/components/teleportermetric.ts delete mode 100644 metrics/src/models/components/teleportermetricsvalue.ts delete mode 100644 metrics/src/models/components/timeintervalgranularity.ts delete mode 100644 metrics/src/models/errors/avalancheapierror.ts delete mode 100644 metrics/src/models/errors/avalancheerror.ts delete mode 100644 metrics/src/models/errors/badgatewayerror.ts delete mode 100644 metrics/src/models/errors/badrequesterror.ts delete mode 100644 metrics/src/models/errors/forbiddenerror.ts delete mode 100644 metrics/src/models/errors/httpclienterrors.ts delete mode 100644 metrics/src/models/errors/index.ts delete mode 100644 metrics/src/models/errors/internalservererror.ts delete mode 100644 metrics/src/models/errors/notfounderror.ts delete mode 100644 metrics/src/models/errors/responsevalidationerror.ts delete mode 100644 metrics/src/models/errors/sdkvalidationerror.ts delete mode 100644 metrics/src/models/errors/serviceunavailableerror.ts delete mode 100644 metrics/src/models/errors/toomanyrequestserror.ts delete mode 100644 metrics/src/models/errors/unauthorizederror.ts delete mode 100644 metrics/src/models/operations/getaddressesbybalanceovertime.ts delete mode 100644 metrics/src/models/operations/getaddressesbybtcbbridged.ts delete mode 100644 metrics/src/models/operations/getchain.ts delete mode 100644 metrics/src/models/operations/getevmchainmetrics.ts delete mode 100644 metrics/src/models/operations/getevmchainrollingwindowmetrics.ts delete mode 100644 metrics/src/models/operations/getmetricsbynodeid.ts delete mode 100644 metrics/src/models/operations/getmetricsbysubnetid.ts delete mode 100644 metrics/src/models/operations/getmetricsbyvalidationid.ts delete mode 100644 metrics/src/models/operations/getnftholdersbycontractaddress.ts delete mode 100644 metrics/src/models/operations/getstakingmetrics.ts delete mode 100644 metrics/src/models/operations/getteleportermetricsbychain.ts delete mode 100644 metrics/src/models/operations/gettotall1validatormetrics.ts delete mode 100644 metrics/src/models/operations/getvalidatorsbydaterange.ts delete mode 100644 metrics/src/models/operations/index.ts delete mode 100644 metrics/src/models/operations/listchains.ts delete mode 100644 metrics/src/sdk/chains.ts delete mode 100644 metrics/src/sdk/index.ts delete mode 100644 metrics/src/sdk/l1validators.ts delete mode 100644 metrics/src/sdk/metrics.ts delete mode 100644 metrics/src/sdk/networks.ts delete mode 100644 metrics/src/sdk/sdk.ts delete mode 100644 metrics/src/sdk/subnets.ts delete mode 100644 metrics/src/types/async.ts delete mode 100644 metrics/src/types/blobs.ts delete mode 100644 metrics/src/types/constdatetime.ts delete mode 100644 metrics/src/types/enums.ts delete mode 100644 metrics/src/types/fp.ts delete mode 100644 metrics/src/types/index.ts delete mode 100644 metrics/src/types/operations.ts delete mode 100644 metrics/src/types/rfcdate.ts delete mode 100644 metrics/src/types/streams.ts delete mode 100644 metrics/tsconfig.json delete mode 100644 webhooks/.devcontainer/README.md delete mode 100644 webhooks/.devcontainer/devcontainer.json delete mode 100644 webhooks/.devcontainer/setup.sh delete mode 100644 webhooks/.genignore delete mode 100644 webhooks/.gitattributes delete mode 100644 webhooks/.gitignore delete mode 100644 webhooks/.npmignore delete mode 100644 webhooks/.speakeasy/gen.lock delete mode 100644 webhooks/.speakeasy/gen.yaml delete mode 100644 webhooks/CONTRIBUTING.md delete mode 100644 webhooks/FUNCTIONS.md delete mode 100644 webhooks/README.md delete mode 100644 webhooks/RELEASES.md delete mode 100644 webhooks/RUNTIMES.md delete mode 100644 webhooks/USAGE.md delete mode 100644 webhooks/docs/lib/utils/retryconfig.md delete mode 100644 webhooks/docs/models/components/accesslistdata.md delete mode 100644 webhooks/docs/models/components/addressactivityeventtype.md delete mode 100644 webhooks/docs/models/components/addressactivitymetadata.md delete mode 100644 webhooks/docs/models/components/addresseschangerequest.md delete mode 100644 webhooks/docs/models/components/commonbalancetype.md delete mode 100644 webhooks/docs/models/components/erctoken.md delete mode 100644 webhooks/docs/models/components/erctransfer.md delete mode 100644 webhooks/docs/models/components/evmaddressactivityrequest.md delete mode 100644 webhooks/docs/models/components/evmaddressactivityrequesteventtype.md delete mode 100644 webhooks/docs/models/components/evmaddressactivityrequestmetadata.md delete mode 100644 webhooks/docs/models/components/evmaddressactivityresponse.md delete mode 100644 webhooks/docs/models/components/globalparamnetwork.md delete mode 100644 webhooks/docs/models/components/healthcheckresultdto.md delete mode 100644 webhooks/docs/models/components/healthcheckresultdtostatus.md delete mode 100644 webhooks/docs/models/components/healthindicatorresultdto.md delete mode 100644 webhooks/docs/models/components/healthindicatorresultdtostatus.md delete mode 100644 webhooks/docs/models/components/listwebhookaddressesresponse.md delete mode 100644 webhooks/docs/models/components/listwebhooksresponse.md delete mode 100644 webhooks/docs/models/components/log.md delete mode 100644 webhooks/docs/models/components/networktokeninfo.md delete mode 100644 webhooks/docs/models/components/platformaddressactivitykeytype.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivityeventtype.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivitymetadata.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivityrequest.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivityrequesteventtype.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivityrequestmetadata.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivityresponse.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivitysubevents.md delete mode 100644 webhooks/docs/models/components/primarynetworkaddressactivitysubeventtype.md delete mode 100644 webhooks/docs/models/components/primarynetworkbalancethresholdfilter.md delete mode 100644 webhooks/docs/models/components/primarynetworktype.md delete mode 100644 webhooks/docs/models/components/security.md delete mode 100644 webhooks/docs/models/components/sharedsecretsresponse.md delete mode 100644 webhooks/docs/models/components/transaction.md delete mode 100644 webhooks/docs/models/components/transactionevent.md delete mode 100644 webhooks/docs/models/components/updatewebhookrequest.md delete mode 100644 webhooks/docs/models/components/validatoractivityeventtype.md delete mode 100644 webhooks/docs/models/components/validatoractivitykeytype.md delete mode 100644 webhooks/docs/models/components/validatoractivitymetadata.md delete mode 100644 webhooks/docs/models/components/validatoractivityrequest.md delete mode 100644 webhooks/docs/models/components/validatoractivityrequesteventtype.md delete mode 100644 webhooks/docs/models/components/validatoractivityrequestmetadata.md delete mode 100644 webhooks/docs/models/components/validatoractivityresponse.md delete mode 100644 webhooks/docs/models/components/validatoractivitysubevent.md delete mode 100644 webhooks/docs/models/components/validatoractivitysubevents.md delete mode 100644 webhooks/docs/models/components/webhook.md delete mode 100644 webhooks/docs/models/components/webhookaddressactivityresponse.md delete mode 100644 webhooks/docs/models/components/webhookaddressactivityresponseeventtype.md delete mode 100644 webhooks/docs/models/components/webhookinternaltransaction.md delete mode 100644 webhooks/docs/models/components/webhookstatus.md delete mode 100644 webhooks/docs/models/components/webhookstatustype.md delete mode 100644 webhooks/docs/models/errors/badgatewayerror.md delete mode 100644 webhooks/docs/models/errors/badgatewaymessage.md delete mode 100644 webhooks/docs/models/errors/badrequesterror.md delete mode 100644 webhooks/docs/models/errors/badrequestmessage.md delete mode 100644 webhooks/docs/models/errors/forbiddenerror.md delete mode 100644 webhooks/docs/models/errors/forbiddenmessage.md delete mode 100644 webhooks/docs/models/errors/internalservererror.md delete mode 100644 webhooks/docs/models/errors/internalservererrormessage.md delete mode 100644 webhooks/docs/models/errors/notfounderror.md delete mode 100644 webhooks/docs/models/errors/notfoundmessage.md delete mode 100644 webhooks/docs/models/errors/serviceunavailableerror.md delete mode 100644 webhooks/docs/models/errors/serviceunavailablemessage.md delete mode 100644 webhooks/docs/models/errors/toomanyrequestserror.md delete mode 100644 webhooks/docs/models/errors/toomanyrequestsmessage.md delete mode 100644 webhooks/docs/models/errors/unauthorizederror.md delete mode 100644 webhooks/docs/models/errors/unauthorizedmessage.md delete mode 100644 webhooks/docs/models/operations/addaddressestowebhookrequest.md delete mode 100644 webhooks/docs/models/operations/createwebhookrequest.md delete mode 100644 webhooks/docs/models/operations/createwebhookresponse.md delete mode 100644 webhooks/docs/models/operations/deactivatewebhookrequest.md delete mode 100644 webhooks/docs/models/operations/deactivatewebhookresponse.md delete mode 100644 webhooks/docs/models/operations/getaddressesfromwebhookrequest.md delete mode 100644 webhooks/docs/models/operations/getaddressesfromwebhookresponse.md delete mode 100644 webhooks/docs/models/operations/getwebhookrequest.md delete mode 100644 webhooks/docs/models/operations/getwebhookresponse.md delete mode 100644 webhooks/docs/models/operations/listwebhooksrequest.md delete mode 100644 webhooks/docs/models/operations/listwebhooksresponse.md delete mode 100644 webhooks/docs/models/operations/removeaddressesfromwebhookrequest.md delete mode 100644 webhooks/docs/models/operations/updatewebhookrequest.md delete mode 100644 webhooks/docs/models/operations/updatewebhookresponse.md delete mode 100644 webhooks/docs/sdks/addresses/README.md delete mode 100644 webhooks/docs/sdks/avalanche/README.md delete mode 100644 webhooks/docs/sdks/webhooks/README.md delete mode 100644 webhooks/eslint.config.mjs delete mode 100644 webhooks/examples/.env.template delete mode 100644 webhooks/examples/README.md delete mode 100644 webhooks/examples/package-lock.json delete mode 100644 webhooks/examples/package.json delete mode 100644 webhooks/examples/webhooksCreate.example.ts delete mode 100644 webhooks/jsr.json delete mode 100644 webhooks/overlays/overlay.yaml delete mode 100644 webhooks/package-lock.json delete mode 100644 webhooks/package.json delete mode 100644 webhooks/speakeasyusagegen/.speakeasy/logs/naming.log delete mode 100644 webhooks/src/core.ts delete mode 100644 webhooks/src/funcs/webhooksAddressesAdd.ts delete mode 100644 webhooks/src/funcs/webhooksAddressesList.ts delete mode 100644 webhooks/src/funcs/webhooksAddressesRemove.ts delete mode 100644 webhooks/src/funcs/webhooksCreate.ts delete mode 100644 webhooks/src/funcs/webhooksDeactivate.ts delete mode 100644 webhooks/src/funcs/webhooksGenerateOrRotateSharedSecret.ts delete mode 100644 webhooks/src/funcs/webhooksGet.ts delete mode 100644 webhooks/src/funcs/webhooksGetSharedSecret.ts delete mode 100644 webhooks/src/funcs/webhooksHealthCheck.ts delete mode 100644 webhooks/src/funcs/webhooksList.ts delete mode 100644 webhooks/src/funcs/webhooksUpdate.ts delete mode 100644 webhooks/src/hooks/hooks.ts delete mode 100644 webhooks/src/hooks/index.ts delete mode 100644 webhooks/src/hooks/registration.ts delete mode 100644 webhooks/src/hooks/types.ts delete mode 100644 webhooks/src/index.extras.ts delete mode 100644 webhooks/src/index.ts delete mode 100644 webhooks/src/lib/base64.ts delete mode 100644 webhooks/src/lib/config.ts delete mode 100644 webhooks/src/lib/dlv.ts delete mode 100644 webhooks/src/lib/encodings.ts delete mode 100644 webhooks/src/lib/files.ts delete mode 100644 webhooks/src/lib/http.ts delete mode 100644 webhooks/src/lib/is-plain-object.ts delete mode 100644 webhooks/src/lib/logger.ts delete mode 100644 webhooks/src/lib/matchers.ts delete mode 100644 webhooks/src/lib/primitives.ts delete mode 100644 webhooks/src/lib/retries.ts delete mode 100644 webhooks/src/lib/schemas.ts delete mode 100644 webhooks/src/lib/sdks.ts delete mode 100644 webhooks/src/lib/security.ts delete mode 100644 webhooks/src/lib/url.ts delete mode 100644 webhooks/src/mcp-server/build.mts delete mode 100644 webhooks/src/mcp-server/cli.ts delete mode 100644 webhooks/src/mcp-server/cli/start/command.ts delete mode 100644 webhooks/src/mcp-server/cli/start/impl.ts delete mode 100644 webhooks/src/mcp-server/console-logger.ts delete mode 100644 webhooks/src/mcp-server/extensions.ts delete mode 100644 webhooks/src/mcp-server/mcp-server.ts delete mode 100644 webhooks/src/mcp-server/prompts.ts delete mode 100644 webhooks/src/mcp-server/resources.ts delete mode 100644 webhooks/src/mcp-server/scopes.ts delete mode 100644 webhooks/src/mcp-server/server.ts delete mode 100644 webhooks/src/mcp-server/shared.ts delete mode 100644 webhooks/src/mcp-server/tools.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksAddressesAdd.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksAddressesList.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksAddressesRemove.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksCreate.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksDeactivate.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksGet.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksGetSharedSecret.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksHealthCheck.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksList.ts delete mode 100644 webhooks/src/mcp-server/tools/webhooksUpdate.ts delete mode 100644 webhooks/src/models/components/accesslistdata.ts delete mode 100644 webhooks/src/models/components/addressactivityeventtype.ts delete mode 100644 webhooks/src/models/components/addressactivitymetadata.ts delete mode 100644 webhooks/src/models/components/addresseschangerequest.ts delete mode 100644 webhooks/src/models/components/commonbalancetype.ts delete mode 100644 webhooks/src/models/components/erctoken.ts delete mode 100644 webhooks/src/models/components/erctransfer.ts delete mode 100644 webhooks/src/models/components/evmaddressactivityrequest.ts delete mode 100644 webhooks/src/models/components/evmaddressactivityresponse.ts delete mode 100644 webhooks/src/models/components/globalparamnetwork.ts delete mode 100644 webhooks/src/models/components/healthcheckresultdto.ts delete mode 100644 webhooks/src/models/components/healthindicatorresultdto.ts delete mode 100644 webhooks/src/models/components/index.ts delete mode 100644 webhooks/src/models/components/listwebhookaddressesresponse.ts delete mode 100644 webhooks/src/models/components/listwebhooksresponse.ts delete mode 100644 webhooks/src/models/components/log.ts delete mode 100644 webhooks/src/models/components/networktokeninfo.ts delete mode 100644 webhooks/src/models/components/platformaddressactivitykeytype.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivityeventtype.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivitymetadata.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivityrequest.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivityresponse.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivitysubevents.ts delete mode 100644 webhooks/src/models/components/primarynetworkaddressactivitysubeventtype.ts delete mode 100644 webhooks/src/models/components/primarynetworkbalancethresholdfilter.ts delete mode 100644 webhooks/src/models/components/primarynetworktype.ts delete mode 100644 webhooks/src/models/components/security.ts delete mode 100644 webhooks/src/models/components/sharedsecretsresponse.ts delete mode 100644 webhooks/src/models/components/transaction.ts delete mode 100644 webhooks/src/models/components/transactionevent.ts delete mode 100644 webhooks/src/models/components/updatewebhookrequest.ts delete mode 100644 webhooks/src/models/components/validatoractivityeventtype.ts delete mode 100644 webhooks/src/models/components/validatoractivitykeytype.ts delete mode 100644 webhooks/src/models/components/validatoractivitymetadata.ts delete mode 100644 webhooks/src/models/components/validatoractivityrequest.ts delete mode 100644 webhooks/src/models/components/validatoractivityresponse.ts delete mode 100644 webhooks/src/models/components/validatoractivitysubevents.ts delete mode 100644 webhooks/src/models/components/webhookaddressactivityresponse.ts delete mode 100644 webhooks/src/models/components/webhookinternaltransaction.ts delete mode 100644 webhooks/src/models/components/webhookstatus.ts delete mode 100644 webhooks/src/models/components/webhookstatustype.ts delete mode 100644 webhooks/src/models/errors/avalancheapierror.ts delete mode 100644 webhooks/src/models/errors/avalancheerror.ts delete mode 100644 webhooks/src/models/errors/badgatewayerror.ts delete mode 100644 webhooks/src/models/errors/badrequesterror.ts delete mode 100644 webhooks/src/models/errors/forbiddenerror.ts delete mode 100644 webhooks/src/models/errors/httpclienterrors.ts delete mode 100644 webhooks/src/models/errors/index.ts delete mode 100644 webhooks/src/models/errors/internalservererror.ts delete mode 100644 webhooks/src/models/errors/notfounderror.ts delete mode 100644 webhooks/src/models/errors/responsevalidationerror.ts delete mode 100644 webhooks/src/models/errors/sdkvalidationerror.ts delete mode 100644 webhooks/src/models/errors/serviceunavailableerror.ts delete mode 100644 webhooks/src/models/errors/toomanyrequestserror.ts delete mode 100644 webhooks/src/models/errors/unauthorizederror.ts delete mode 100644 webhooks/src/models/operations/addaddressestowebhook.ts delete mode 100644 webhooks/src/models/operations/createwebhook.ts delete mode 100644 webhooks/src/models/operations/deactivatewebhook.ts delete mode 100644 webhooks/src/models/operations/getaddressesfromwebhook.ts delete mode 100644 webhooks/src/models/operations/getwebhook.ts delete mode 100644 webhooks/src/models/operations/index.ts delete mode 100644 webhooks/src/models/operations/listwebhooks.ts delete mode 100644 webhooks/src/models/operations/removeaddressesfromwebhook.ts delete mode 100644 webhooks/src/models/operations/updatewebhook.ts delete mode 100644 webhooks/src/sdk/addresses.ts delete mode 100644 webhooks/src/sdk/index.ts delete mode 100644 webhooks/src/sdk/sdk.ts delete mode 100644 webhooks/src/sdk/webhooks.ts delete mode 100644 webhooks/src/types/async.ts delete mode 100644 webhooks/src/types/blobs.ts delete mode 100644 webhooks/src/types/constdatetime.ts delete mode 100644 webhooks/src/types/enums.ts delete mode 100644 webhooks/src/types/fp.ts delete mode 100644 webhooks/src/types/index.ts delete mode 100644 webhooks/src/types/operations.ts delete mode 100644 webhooks/src/types/rfcdate.ts delete mode 100644 webhooks/src/types/streams.ts delete mode 100644 webhooks/src/types/webhooks.ts delete mode 100644 webhooks/src/utils/index.ts delete mode 100644 webhooks/src/utils/validateSignature.ts delete mode 100644 webhooks/tsconfig.json diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 68592c8b..c523272e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -5,88 +5,89 @@ title: '[BUG] ' labels: ['bug', 'needs-triage'] assignees: '' --- - ## 🐛 Bug Report ### 📋 Summary + ### 🎯 Which SDK(s) Are Affected? + - [ ] `@avalanche-sdk/client` (Core RPC functionality) -- [ ] `@avalanche-sdk/data` (Data analytics and historical data) - [ ] `@avalanche-sdk/devtools` (Development tools and utilities) - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) -- [ ] `@avalanche-sdk/metrics` (Network metrics and monitoring) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) -- [ ] `@avalanche-sdk/webhooks` (Real-time events and notifications) - [ ] Documentation - [ ] Examples - [ ] Build system or tooling - [ ] Other (please specify) ### 🔍 Bug Description + ### 🎯 Expected Behavior + ### ❌ Actual Behavior + ### 📱 Steps to Reproduce + 1. **Environment Setup**: + ```bash # List the commands you used to set up your environment ``` - 2. **Code Implementation**: + ```typescript // Provide the code that reproduces the bug import { createAvalancheClient } from '@avalanche-sdk/client' - + const client = createAvalancheClient({ // ... configuration }) - + // Code that causes the bug ``` - 3. **Execution**: + ```bash # Commands you ran ``` +4. **Error Occurs**: -4. **Error Occurs**: ### 🔧 Environment Information #### System Information + - **OS**: [e.g., macOS 14.0, Ubuntu 22.04, Windows 11] - **Node.js Version**: [e.g., 20.10.0] - **npm/yarn/pnpm Version**: [e.g., npm 10.2.0] - **TypeScript Version**: [e.g., 5.3.0] #### Package Versions + -```json { "@avalanche-sdk/client": "0.0.4-alpha.10", - "@avalanche-sdk/data": "0.5.3", "@avalanche-sdk/devtools": "0.2.1", "@avalanche-sdk/interchain": "0.0.1-alpha.1", - "@avalanche-sdk/metrics": "0.4.3", "@avalanche-sdk/sdk": "1.3.0", - "@avalanche-sdk/webhooks": "0.5.2" } -``` #### Dependencies + ```json @@ -100,16 +101,19 @@ assignees: '' ### 🚨 Error Messages & Logs #### Console Output + ```bash # Paste the complete error message and stack trace ``` #### Network Errors (if applicable) + ```bash # Any network-related errors or failed requests ``` #### Build Errors (if applicable) + ```bash # TypeScript compilation errors, build failures, etc. ``` @@ -117,20 +121,24 @@ assignees: '' ### 📊 Additional Context #### Is this a regression? + - [ ] Yes, this worked in a previous version - [ ] No, this is a new issue - [ ] Unknown #### Previous Working Version (if regression) + #### Frequency + - [ ] Always reproducible - [ ] Sometimes reproducible - [ ] Rarely reproducible - [ ] Only under specific conditions #### Impact + - [ ] **Critical** - Blocks all functionality - [ ] **High** - Blocks major functionality - [ ] **Medium** - Affects some features @@ -139,6 +147,7 @@ assignees: '' ### 🧪 Debugging Information #### Minimal Reproduction + ```typescript @@ -147,14 +156,17 @@ assignees: '' ``` #### Workarounds + #### Related Issues + ### 📋 Checklist #### Before Submitting + - [ ] I have searched existing issues to avoid duplicates - [ ] I have provided a clear description of the bug - [ ] I have included steps to reproduce the issue @@ -164,6 +176,7 @@ assignees: '' - [ ] I have tested with the latest version of the affected package(s) #### For Critical Issues + - [ ] I have tested with multiple Node.js versions - [ ] I have tested with different package managers - [ ] I have verified the issue occurs in a clean environment @@ -172,12 +185,15 @@ assignees: '' ### 🔗 Related Information #### Related Issues + #### Related Discussions + #### Documentation References + ### 📞 Support Information @@ -196,11 +212,13 @@ If you need immediate help or have questions: ## 🔧 For Contributors ### Debugging Tips + - Check the [Troubleshooting Guide](https://github.com/ava-labs/avalanche-sdk-typescript#troubleshooting) - Review [Common Issues](https://github.com/ava-labs/avalanche-sdk-typescript#common-issues) -- Check [Performance & Best Practices](https://github.com/ava-labs/avalanche-sdk-typescript#performance--best-practices) +- Check [Performance & Best Practices](https://github.com/ava-labs/avalanche-sdk-typescript#performance--best-practices) ### Development Setup + ```bash # Clone and setup for debugging git clone https://github.com/ava-labs/avalanche-sdk-typescript.git @@ -212,4 +230,4 @@ npm run build --- -**Thank you for helping improve the Avalanche SDK TypeScript suite! 🏔️** \ No newline at end of file +**Thank you for helping improve the Avalanche SDK TypeScript suite! 🏔️** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index ddfb2a25..58127d0c 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -5,13 +5,14 @@ title: '[FEATURE] ' labels: ['enhancement', 'feature-request'] assignees: '' --- - ## 🚀 Feature Request ### 📋 Summary + ### 🎯 Which SDK(s) Does This Affect? + - [ ] `@avalanche-sdk/client` (Core RPC functionality) @@ -20,33 +21,38 @@ assignees: '' - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) - [ ] `@avalanche-sdk/metrics` (Network metrics and monitoring) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) -- [ ] `@avalanche-sdk/webhooks` (Real-time events and notifications) - [ ] Documentation improvements - [ ] Examples and tutorials - [ ] Build system or tooling - [ ] Other (please specify) ### 🔍 Problem Statement + ### 💡 Proposed Solution + ### 🎨 Alternative Solutions + ### 📊 Impact Assessment + -- **User Impact**: -- **Developer Experience**: -- **Performance Impact**: -- **Breaking Changes**: +- **User Impact**: +- **Developer Experience**: +- **Performance Impact**: +- **Breaking Changes**: ### 🔧 Technical Details + #### Proposed API (if applicable) + ```typescript // Example of how the new feature might be used import { createAvalancheClient } from '@avalanche-sdk/client' @@ -62,24 +68,29 @@ const result = await client.newFeature({ ``` #### Dependencies + #### Backward Compatibility + - [ ] This feature maintains backward compatibility - [ ] This feature requires breaking changes - [ ] This feature is additive (new functionality) ### 📝 Use Cases + -1. **Use Case 1**: -2. **Use Case 2**: -3. **Use Case 3**: +1. **Use Case 1**: +2. **Use Case 2**: +3. **Use Case 3**: ### 🧪 Testing Considerations + ### 📚 Documentation Requirements + - [ ] API documentation updates @@ -89,6 +100,7 @@ const result = await client.newFeature({ - [ ] Migration guide (if breaking changes) ### 🎯 Priority Level + - [ ] **Critical** - Blocking major functionality @@ -97,15 +109,18 @@ const result = await client.newFeature({ - [ ] **Low** - Minor enhancement ### 🔗 Related Issues + -- Related Issue #: -- Related Discussion #: +- Related Issue #: +- Related Discussion #: ### 📋 Additional Context + ### ✅ Checklist + - [ ] I have searched existing issues to avoid duplicates @@ -128,4 +143,4 @@ If you need help with this feature request or have questions: --- -**Thank you for contributing to the Avalanche SDK TypeScript suite! 🏔️** \ No newline at end of file +**Thank you for contributing to the Avalanche SDK TypeScript suite! 🏔️** diff --git a/.github/workflows/data_sdk_generation.yaml b/.github/workflows/data_sdk_generation.yaml deleted file mode 100644 index d512e0c8..00000000 --- a/.github/workflows/data_sdk_generation.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Generate Data SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write - id-token: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - set_version: - description: optionally set a specific SDK version - type: string - schedule: - - cron: 30 18 * * * -jobs: - generate_data_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: pr - set_version: ${{ github.event.inputs.set_version }} - target: data-sdk - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/data_sdk_publish.yaml b/.github/workflows/data_sdk_publish.yaml deleted file mode 100644 index b298bfb5..00000000 --- a/.github/workflows/data_sdk_publish.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Data SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: - - data/RELEASES.md -jobs: - publish_data_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/metrics_sdk_generation.yaml b/.github/workflows/metrics_sdk_generation.yaml deleted file mode 100644 index 06d9114a..00000000 --- a/.github/workflows/metrics_sdk_generation.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Generate Metrics SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write - id-token: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - set_version: - description: optionally set a specific SDK version - type: string - schedule: - - cron: 30 18 * * * -jobs: - generate_metrics_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: pr - set_version: ${{ github.event.inputs.set_version }} - target: metrics-sdk - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/metrics_sdk_publish.yaml b/.github/workflows/metrics_sdk_publish.yaml deleted file mode 100644 index 33e83048..00000000 --- a/.github/workflows/metrics_sdk_publish.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Metrics SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: - - metrics/RELEASES.md -jobs: - publish_metrics_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/webhooks_sdk_generation.yaml b/.github/workflows/webhooks_sdk_generation.yaml deleted file mode 100644 index a4d4b210..00000000 --- a/.github/workflows/webhooks_sdk_generation.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Generate Webhooks SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write - id-token: write -"on": - workflow_dispatch: - inputs: - force: - description: Force generation of SDKs - type: boolean - default: false - set_version: - description: optionally set a specific SDK version - type: string - schedule: - - cron: 30 18 * * * -jobs: - generate_webhooks_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 - with: - force: ${{ github.event.inputs.force }} - mode: pr - set_version: ${{ github.event.inputs.set_version }} - target: webhooks-sdk - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/webhooks_sdk_publish.yaml b/.github/workflows/webhooks_sdk_publish.yaml deleted file mode 100644 index 6499dd64..00000000 --- a/.github/workflows/webhooks_sdk_publish.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Webhooks SDK -permissions: - checks: write - contents: write - pull-requests: write - statuses: write -"on": - push: - branches: - - main - paths: - - webhooks/RELEASES.md -jobs: - publish_webhooks_sdk: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 - secrets: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_TOKEN }} - speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 831a433a..21ad2e7d 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -1,13 +1,6 @@ workflowVersion: 1.0.0 speakeasyVersion: latest sources: - data-source: - inputs: - - location: https://glacier-api.avax.network/api-json - overlays: - - location: data/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-data-typescript devtools-source: inputs: - location: https://popsicle-api.avax.network/api-json @@ -16,35 +9,7 @@ sources: - location: devtools/overlays/overlay.yaml registry: location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-devtools-typescript - metrics-source: - inputs: - - location: https://popsicle-api.avax.network/api-json - overlays: - - location: metrics/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript - webhooks-source: - inputs: - - location: https://glacier-api.avax.network/api-json - overlays: - - location: webhooks/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript targets: - data-sdk: - target: typescript - source: data-source - output: data - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-data-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false devtools-sdk: target: typescript source: devtools-source @@ -58,32 +23,4 @@ targets: langOverride: javascript labelOverride: fixedValue: JavaScript - blocking: false - metrics-sdk: - target: typescript - source: metrics-source - output: metrics - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false - webhooks-sdk: - target: typescript - source: webhooks-source - output: webhooks - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false + blocking: false \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e0622cd8..685f2a1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,11 @@ ## 0.0.1 - 2024-12-19 Initial release with multiple packages in monorepo structure: + - Add `@avalanche-sdk/sdk` package - Main SDK combining client and devtools functionality -- Add `@avalanche-sdk/data` package - Data API SDK for Avalanche network data - Add `@avalanche-sdk/client` package - Core RPC client with C-Chain, P-Chain, and X-Chain support - Add `@avalanche-sdk/interchain` package - ICM/ICTT messaging and Teleporter integration - Add `@avalanche-sdk/devtools` package - Development tools and utilities -- Add `@avalanche-sdk/metrics` package - Metrics and health check APIs -- Add `@avalanche-sdk/webhooks` package - Webhook handling with signature validation - Add TypeScript support across all packages - Add comprehensive documentation - Add Code of Conduct diff --git a/README.md b/README.md index 0365d132..360ba12f 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,9 @@ Avalanche SDK TypeScript provides a complete set of tools and libraries for deve | SDK | Description | |-----|-------------| | `@avalanche-sdk/client` | Direct blockchain interaction - transactions, wallets, RPC calls | -| `@avalanche-sdk/data` | Historical data, token balances, NFTs, transaction history | -| `@avalanche-sdk/devtools` | Complete suite: Data + Metrics + Webhooks | +| `@avalanche-sdk/devtools` | Complete suite: Data and Metrics API | | `@avalanche-sdk/interchain` | Send messages between Avalanche L1s using ICM/Teleporter | -| `@avalanche-sdk/metrics` | Chain performance, validator stats, network health | | `@avalanche-sdk/sdk` | Complete suite: Devtools + Client | -| `@avalanche-sdk/webhooks` | Subscribe to on-chain events and receive webhooks | ## 📊 Package Status @@ -40,9 +37,6 @@ Avalanche SDK TypeScript provides a complete set of tools and libraries for deve | Package | Version | Status | npm | |---------|---------|--------|-----| | `@avalanche-sdk/sdk` | 1.3.0 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/sdk)](https://www.npmjs.com/package/@avalanche-sdk/sdk) | -| `@avalanche-sdk/data` | 0.5.3 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/data)](https://www.npmjs.com/package/@avalanche-sdk/data) | -| `@avalanche-sdk/webhooks` | 0.5.2 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/webhooks)](https://www.npmjs.com/package/@avalanche-sdk/webhooks) | -| `@avalanche-sdk/metrics` | 0.4.3 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/metrics)](https://www.npmjs.com/package/@avalanche-sdk/metrics) | | `@avalanche-sdk/devtools` | 0.2.1 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/devtools)](https://www.npmjs.com/package/@avalanche-sdk/devtools) | | `@avalanche-sdk/client` | 0.0.4-alpha.10 | Alpha | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/client)](https://www.npmjs.com/package/@avalanche-sdk/client) | | `@avalanche-sdk/interchain` | 0.0.1-alpha.1 | Alpha | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/interchain)](https://www.npmjs.com/package/@avalanche-sdk/interchain) | @@ -54,30 +48,30 @@ The main Avalanche client SDK for interacting with Avalanche nodes and building **Features:** - Complete API coverage for P-Chain, X-Chain, and C-Chain -- Wallet integration and transaction management -- Cross-chain transfer capabilities -- Comprehensive method coverage for all Avalanche APIs +- Full [viem](https://viem.sh) compatibility - anything you can do with viem works here - TypeScript-first design with full type safety - -### [Data SDK](./data/) -SDK for accessing and analyzing Avalanche blockchain data. - -**Features:** -- Historical transaction data -- Address balance tracking -- Contract interaction data -- Real-time blockchain analytics -- Comprehensive data APIs +- Abstractions over the JSON-RPC API to make your life easier +- Wallet integration and transaction management +- First-class APIs for interacting with Smart Contracts +- Retrieve balances and UTXOs for addresses +- Build, sign, and issue transactions to any chain +- Perform cross-chain transfers between X, P and C chains +- Add validators and delegators +- Create subnets and blockchains, convert subnets to L1s ### [DevTools SDK](./devtools/) -Development tools and utilities for Avalanche developers. +Combined SDK with full typed coverage of Avalanche Data (Glacier) and Metrics APIs. **Features:** -- Development utilities -- Testing frameworks -- Debugging tools -- Network simulation -- Development workflow automation +- Full endpoint coverage for Glacier Data API and Metrics API + - Glacier API: https://glacier-api.avax.network/api + - Metrics API: https://metrics.avax.network/api +- Strongly-typed models, pagination helpers, and automatic retries/backoff +- High-level helpers for transactions, blocks, addresses, tokens, NFTs, and logs +- Metrics: network health, validator stats, throughput, latency, and block production analytics +- Webhooks-compatible payload shapes and utilities for signature verification +- Configurable base URL and API key authentication +- Request logging and middleware hooks for observability ### [Interchain SDK](./interchain/) SDK for building cross-L1 applications and bridges. @@ -87,26 +81,6 @@ SDK for building cross-L1 applications and bridges. - Works seamlessly with wallet clients - Built-in support for Avalanche C-Chain and custom subnets -### [Metrics SDK](./metrics/) -SDK for collecting and analyzing Avalanche network metrics. - -**Features:** -- Network performance metrics -- Validator statistics -- Transaction analytics -- Network health monitoring -- Performance benchmarking - -### [Webhooks SDK](./webhooks/) -SDK for handling real-time blockchain events and notifications. - -**Features:** -- Real-time event streaming -- Webhook management -- Event filtering and routing -- Notification systems -- Automated response handling - ### [Unified SDK](./sdk/) SDK providing a unified experience of all the SDKs @@ -147,10 +121,7 @@ pnpm add @avalanche-sdk/sdk ```bash # Install only what you need npm install @avalanche-sdk/client # Core RPC functionality -npm install @avalanche-sdk/data # Data analytics npm install @avalanche-sdk/interchain # Cross-chain messaging -npm install @avalanche-sdk/metrics # Network metrics -npm install @avalanche-sdk/webhooks # Real-time events npm install @avalanche-sdk/devtools # Development tools ``` diff --git a/data/.devcontainer/README.md b/data/.devcontainer/README.md deleted file mode 100644 index 96e8024b..00000000 --- a/data/.devcontainer/README.md +++ /dev/null @@ -1,35 +0,0 @@ - -

- -
-
- -> **Remember to shutdown a GitHub Codespace when it is not in use!** - -# Dev Containers Quick Start - -The default location for usage snippets is the `samples` directory. - -## Running a Usage Sample - -A sample usage example has been provided in a `root.ts` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below. - -``` -ts-node root.ts -``` - -## Generating Additional Usage Samples - -The speakeasy CLI allows you to generate more usage snippets. Here's how: - -- To generate a sample for a specific operation by providing an operation ID, use: - -``` -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -i {INPUT_OPERATION_ID} -o ./samples -``` - -- To generate samples for an entire namespace (like a tag or group name), use: - -``` -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -n {INPUT_TAG_NAME} -o ./samples -``` diff --git a/data/.devcontainer/devcontainer.json b/data/.devcontainer/devcontainer.json deleted file mode 100644 index 4d560dd5..00000000 --- a/data/.devcontainer/devcontainer.json +++ /dev/null @@ -1,45 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/images/tree/main/src/typescript-node -{ - "name": "TypeScript", - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh", - "customizations": { - "vscode": { - "extensions": [ - "ms-vscode.vscode-typescript-tslint-plugin", - "esbenp.prettier-vscode", - "github.vscode-pull-request-github" - ], - "settings": { - "files.eol": "\n", - "editor.formatOnSave": true, - "typescript.tsc.autoDetect": "on", - "typescript.updateImportsOnFileMove.enabled": "always", - "typescript.preferences.importModuleSpecifier": "relative", - "[typescript]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - }, - "[typescriptreact]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - } - } - }, - "codespaces": { - "openFiles": [ - ".devcontainer/README.md" - ] - } - } - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" -} diff --git a/data/.devcontainer/setup.sh b/data/.devcontainer/setup.sh deleted file mode 100644 index 3ef40e2c..00000000 --- a/data/.devcontainer/setup.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Install the speakeasy CLI -curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh - -# Setup samples directory -rmdir samples || true -mkdir samples - -npm install -npm install -g ts-node -npm link -npm link @avalanche-sdk/data -TS_CONFIG_CONTENT=$(cat < samples/tsconfig.json - -# Generate starter usage sample with speakeasy -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -o samples/root.ts \ No newline at end of file diff --git a/data/.gitattributes b/data/.gitattributes deleted file mode 100644 index 113eead5..00000000 --- a/data/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# This allows generated code to be indexed correctly -*.ts linguist-generated=false \ No newline at end of file diff --git a/data/.gitignore b/data/.gitignore deleted file mode 100644 index 5550e44e..00000000 --- a/data/.gitignore +++ /dev/null @@ -1,32 +0,0 @@ -/examples/node_modules -.env -.env.local -.env.*.local -**/.speakeasy/temp/ -**/.speakeasy/logs/ -.DS_Store -.speakeasy/temp/ -.speakeasy/logs/ -.DS_Store -/models -/models/errors -/types -/node_modules -/lib -/sdk -/funcs -/react-query -/mcp-server -/hooks -/index.* -/core.* -/bin -/cjs -/esm -/dist -/.tsbuildinfo -/.eslintcache -/.tshy -/.tshy-* -/__tests__ -/.speakeasy/reports diff --git a/data/.npmignore b/data/.npmignore deleted file mode 100644 index cf98a6bf..00000000 --- a/data/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -**/* -!/FUNCTIONS.md -!/RUNTIMES.md -!/REACT_QUERY.md -!/**/*.ts -!/**/*.js -!/**/*.mjs -!/**/*.json -!/**/*.map - -/eslint.config.mjs -/cjs -/.tshy -/.tshy-* -/__tests__ diff --git a/data/.speakeasy/gen.lock b/data/.speakeasy/gen.lock deleted file mode 100644 index 7c448180..00000000 --- a/data/.speakeasy/gen.lock +++ /dev/null @@ -1,4758 +0,0 @@ -lockVersion: 2.0.0 -id: 08752bf2-e791-41ce-8509-32ac5e1c0179 -management: - docChecksum: 65c2b0e52fa42bd77c77a7920bea6274 - docVersion: 1.0.0 - speakeasyVersion: 1.598.2 - generationVersion: 2.674.3 - releaseVersion: 0.5.3 - configChecksum: 9146bb60db31e0c1333ffb70842450dd - repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git - repoSubDirectory: data - installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/data - published: true -features: - typescript: - additionalDependencies: 0.1.0 - constsAndDefaults: 0.1.12 - core: 3.21.20 - defaultEnabledRetries: 0.1.0 - deprecations: 2.81.1 - devContainers: 2.90.0 - enumUnions: 0.1.0 - envVarSecurityUsage: 0.1.2 - examples: 2.82.1 - globalSecurity: 2.82.13 - globalSecurityCallbacks: 0.1.0 - globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 - globals: 2.82.2 - groups: 2.81.2 - ignores: 2.81.1 - mcpServer: 0.9.3 - nameOverrides: 2.81.2 - nullables: 0.1.1 - pagination: 2.83.0 - responseFormat: 0.2.3 - retries: 2.83.0 - sdkHooks: 0.3.0 - unions: 2.85.11 -generatedFiles: - - .devcontainer/README.md - - .devcontainer/devcontainer.json - - .devcontainer/setup.sh - - .gitattributes - - .npmignore - - FUNCTIONS.md - - RUNTIMES.md - - USAGE.md - - docs/lib/utils/retryconfig.md - - docs/models/components/activedelegatordetails.md - - docs/models/components/activedelegatordetailsdelegationstatus.md - - docs/models/components/activevalidatordetails.md - - docs/models/components/activevalidatordetailsvalidationstatus.md - - docs/models/components/aggregatedassetamount.md - - docs/models/components/apifeature.md - - docs/models/components/assetamount.md - - docs/models/components/assetwithpriceinfo.md - - docs/models/components/balanceowner.md - - docs/models/components/blockchain.md - - docs/models/components/blockchaingenesisdata.md - - docs/models/components/blockchainid.md - - docs/models/components/blockchainids.md - - docs/models/components/blockchaininfo.md - - docs/models/components/blockchaininfogenesisdata.md - - docs/models/components/blscredentials.md - - docs/models/components/cchainatomicbalances.md - - docs/models/components/cchainexporttransaction.md - - docs/models/components/cchainexporttransactiontxtype.md - - docs/models/components/cchainimporttransaction.md - - docs/models/components/cchainimporttransactiontxtype.md - - docs/models/components/cchainsharedassetbalance.md - - docs/models/components/chainaddresschainidmap.md - - docs/models/components/chainaddresschainidmaplistresponse.md - - docs/models/components/chaininfo.md - - docs/models/components/chaininfoenabledfeature.md - - docs/models/components/chainstatus.md - - docs/models/components/collectiblebalance.md - - docs/models/components/completeddelegatordetails.md - - docs/models/components/completeddelegatordetailsdelegationstatus.md - - docs/models/components/completedvalidatordetails.md - - docs/models/components/completedvalidatordetailsvalidationstatus.md - - docs/models/components/contract.md - - docs/models/components/contractdeploymentdetails.md - - docs/models/components/createevmtransactionexportrequest.md - - docs/models/components/createprimarynetworktransactionexportrequest.md - - docs/models/components/currencycode.md - - docs/models/components/delegationstatustype.md - - docs/models/components/delegator.md - - docs/models/components/delegatorsdetails.md - - docs/models/components/deliveredicmmessage.md - - docs/models/components/deliveredicmmessagestatus.md - - docs/models/components/deliveredsourcenotindexedicmmessage.md - - docs/models/components/deliveredsourcenotindexedicmmessagestatus.md - - docs/models/components/deliveredsourcenotindexedteleportermessage.md - - docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md - - docs/models/components/deliveredteleportermessage.md - - docs/models/components/deliveredteleportermessagestatus.md - - docs/models/components/erc1155contract.md - - docs/models/components/erc1155contracterctype.md - - docs/models/components/erc1155token.md - - docs/models/components/erc1155tokenbalance.md - - docs/models/components/erc1155tokenbalanceerctype.md - - docs/models/components/erc1155tokenerctype.md - - docs/models/components/erc1155tokenmetadata.md - - docs/models/components/erc1155transfer.md - - docs/models/components/erc1155transferdetails.md - - docs/models/components/erc20contract.md - - docs/models/components/erc20contracterctype.md - - docs/models/components/erc20token.md - - docs/models/components/erc20tokenbalance.md - - docs/models/components/erc20tokenbalanceerctype.md - - docs/models/components/erc20tokenerctype.md - - docs/models/components/erc20transfer.md - - docs/models/components/erc20transferdetails.md - - docs/models/components/erc721contract.md - - docs/models/components/erc721contracterctype.md - - docs/models/components/erc721token.md - - docs/models/components/erc721tokenbalance.md - - docs/models/components/erc721tokenbalanceerctype.md - - docs/models/components/erc721tokenerctype.md - - docs/models/components/erc721tokenmetadata.md - - docs/models/components/erc721transfer.md - - docs/models/components/erc721transferdetails.md - - docs/models/components/evmblock.md - - docs/models/components/evminput.md - - docs/models/components/evmnetworkoptions.md - - docs/models/components/evmoperationtype.md - - docs/models/components/evmoutput.md - - docs/models/components/fullnativetransactiondetails.md - - docs/models/components/geolocation.md - - docs/models/components/getchainresponse.md - - docs/models/components/getchainresponseenabledfeature.md - - docs/models/components/getevmblockresponse.md - - docs/models/components/getnativebalanceresponse.md - - docs/models/components/getnetworkdetailsresponse.md - - docs/models/components/getprimarynetworkblockresponse.md - - docs/models/components/gettransactionresponse.md - - docs/models/components/globalparamnetwork.md - - docs/models/components/healthcheckresultdto.md - - docs/models/components/healthcheckresultdtostatus.md - - docs/models/components/healthindicatorresultdto.md - - docs/models/components/healthindicatorresultdtostatus.md - - docs/models/components/historicalreward.md - - docs/models/components/icmdestinationtransaction.md - - docs/models/components/icmreceipt.md - - docs/models/components/icmrewarddetails.md - - docs/models/components/icmrewarddetailserctype.md - - docs/models/components/icmsourcetransaction.md - - docs/models/components/imageasset.md - - docs/models/components/includechain.md - - docs/models/components/internaltransaction.md - - docs/models/components/internaltransactiondetails.md - - docs/models/components/internaltransactionopcall.md - - docs/models/components/l1validatordetailsfull.md - - docs/models/components/l1validatordetailsfullblscredentials.md - - docs/models/components/l1validatordetailstransaction.md - - docs/models/components/l1validatordetailstransactionblscredentials.md - - docs/models/components/l1validatormanagerdetails.md - - docs/models/components/listaddresschainsresponse.md - - docs/models/components/listblockchainsresponse.md - - docs/models/components/listcchainatomicbalancesresponse.md - - docs/models/components/listcchainatomictransactionsresponse.md - - docs/models/components/listcchainatomictransactionsresponsetransaction.md - - docs/models/components/listchainsresponse.md - - docs/models/components/listcollectiblebalancesresponse.md - - docs/models/components/listcontractsresponse.md - - docs/models/components/listdelegatordetailsresponse.md - - docs/models/components/listerc1155balancesresponse.md - - docs/models/components/listerc1155transactionsresponse.md - - docs/models/components/listerc20balancesresponse.md - - docs/models/components/listerc20transactionsresponse.md - - docs/models/components/listerc721balancesresponse.md - - docs/models/components/listerc721transactionsresponse.md - - docs/models/components/listevmblocksresponse.md - - docs/models/components/listhistoricalrewardsresponse.md - - docs/models/components/listicmmessagesresponse.md - - docs/models/components/listicmmessagesresponsemessage.md - - docs/models/components/listinternaltransactionsresponse.md - - docs/models/components/listl1validatorsresponse.md - - docs/models/components/listnativetransactionsresponse.md - - docs/models/components/listnfttokens.md - - docs/models/components/listpchainbalancesresponse.md - - docs/models/components/listpchaintransactionsresponse.md - - docs/models/components/listpchainutxosresponse.md - - docs/models/components/listpendingrewardsresponse.md - - docs/models/components/listprimarynetworkblocksresponse.md - - docs/models/components/listsubnetsresponse.md - - docs/models/components/listteleportermessagesresponse.md - - docs/models/components/listteleportermessagesresponsemessage.md - - docs/models/components/listtransactiondetailsresponse.md - - docs/models/components/listtransfersresponse.md - - docs/models/components/listutxosresponse.md - - docs/models/components/listvalidatordetailsresponse.md - - docs/models/components/listxchainbalancesresponse.md - - docs/models/components/listxchaintransactionsresponse.md - - docs/models/components/listxchaintransactionsresponsetransaction.md - - docs/models/components/listxchainverticesresponse.md - - docs/models/components/logsformat.md - - docs/models/components/logsformatmetadata.md - - docs/models/components/logsresponsedto.md - - docs/models/components/metadata.md - - docs/models/components/method.md - - docs/models/components/metric.md - - docs/models/components/money.md - - docs/models/components/nativetokenbalance.md - - docs/models/components/nativetransaction.md - - docs/models/components/network.md - - docs/models/components/networktoken.md - - docs/models/components/networktokendetails.md - - docs/models/components/nfttokenmetadatastatus.md - - docs/models/components/operationstatus.md - - docs/models/components/operationstatuscode.md - - docs/models/components/operationstatusresponse.md - - docs/models/components/operationtype.md - - docs/models/components/pchainbalance.md - - docs/models/components/pchainid.md - - docs/models/components/pchainsharedasset.md - - docs/models/components/pchaintransaction.md - - docs/models/components/pchaintransactiontype.md - - docs/models/components/pchainutxo.md - - docs/models/components/pendingdelegatordetails.md - - docs/models/components/pendingdelegatordetailsdelegationstatus.md - - docs/models/components/pendingicmmessage.md - - docs/models/components/pendingicmmessagestatus.md - - docs/models/components/pendingreward.md - - docs/models/components/pendingteleportermessage.md - - docs/models/components/pendingteleportermessagestatus.md - - docs/models/components/pendingvalidatordetails.md - - docs/models/components/pendingvalidatordetailsvalidationstatus.md - - docs/models/components/pricingproviders.md - - docs/models/components/primarynetworkassetcap.md - - docs/models/components/primarynetworkassettype.md - - docs/models/components/primarynetworkblock.md - - docs/models/components/primarynetworkchaininfo.md - - docs/models/components/primarynetworkchainname.md - - docs/models/components/primarynetworkoperationtype.md - - docs/models/components/primarynetworkoptions.md - - docs/models/components/primarynetworktxtype.md - - docs/models/components/proposerdetails.md - - docs/models/components/removedvalidatordetails.md - - docs/models/components/removedvalidatordetailsvalidationstatus.md - - docs/models/components/requesttype.md - - docs/models/components/resourcelink.md - - docs/models/components/resourcelinktype.md - - docs/models/components/rewards.md - - docs/models/components/rewardtype.md - - docs/models/components/richaddress.md - - docs/models/components/rpcmetrics.md - - docs/models/components/rpcusagemetricsgroupbyenum.md - - docs/models/components/rpcusagemetricsvalueaggregated.md - - docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md - - docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md - - docs/models/components/security.md - - docs/models/components/signatureaggregationresponse.md - - docs/models/components/signatureaggregatorrequest.md - - docs/models/components/sortbyoption.md - - docs/models/components/sortorder.md - - docs/models/components/stakingdistribution.md - - docs/models/components/subnet.md - - docs/models/components/subnetownershipinfo.md - - docs/models/components/subnetrpctimeintervalgranularity.md - - docs/models/components/subnetrpcusagemetricsresponsedto.md - - docs/models/components/teleporterdestinationtransaction.md - - docs/models/components/teleportermessageinfo.md - - docs/models/components/teleporterreceipt.md - - docs/models/components/teleporterrewarddetails.md - - docs/models/components/teleporterrewarddetailserctype.md - - docs/models/components/teleportersourcetransaction.md - - docs/models/components/timeintervalgranularityextended.md - - docs/models/components/token.md - - docs/models/components/tokenreputation.md - - docs/models/components/transactiondetails.md - - docs/models/components/transactiondirectiontype.md - - docs/models/components/transactionexportmetadata.md - - docs/models/components/transactionmethodtype.md - - docs/models/components/transactionstatus.md - - docs/models/components/transactionvertexdetail.md - - docs/models/components/transfer.md - - docs/models/components/unknowncontract.md - - docs/models/components/unknowncontracterctype.md - - docs/models/components/usagemetricsgroupbyenum.md - - docs/models/components/usagemetricsresponsedto.md - - docs/models/components/usagemetricsvaluedto.md - - docs/models/components/usagemetricsvaluedtogroupedby.md - - docs/models/components/usagemetricsvaluedtogroupvalue.md - - docs/models/components/utilityaddresses.md - - docs/models/components/utxo.md - - docs/models/components/utxocredential.md - - docs/models/components/utxotype.md - - docs/models/components/validationstatustype.md - - docs/models/components/validator.md - - docs/models/components/validatorhealthdetails.md - - docs/models/components/validatorsdetails.md - - docs/models/components/vmname.md - - docs/models/components/xchainassetdetails.md - - docs/models/components/xchainbalances.md - - docs/models/components/xchainid.md - - docs/models/components/xchainlineartransaction.md - - docs/models/components/xchainlineartransactionchainformat.md - - docs/models/components/xchainnonlineartransaction.md - - docs/models/components/xchainnonlineartransactionchainformat.md - - docs/models/components/xchainsharedassetbalance.md - - docs/models/components/xchaintransactiontype.md - - docs/models/components/xchainvertex.md - - docs/models/errors/badgatewayerror.md - - docs/models/errors/badgatewaymessage.md - - docs/models/errors/badrequesterror.md - - docs/models/errors/badrequestmessage.md - - docs/models/errors/forbiddenerror.md - - docs/models/errors/forbiddenmessage.md - - docs/models/errors/internalservererror.md - - docs/models/errors/internalservererrormessage.md - - docs/models/errors/notfounderror.md - - docs/models/errors/notfoundmessage.md - - docs/models/errors/serviceunavailableerror.md - - docs/models/errors/serviceunavailablemessage.md - - docs/models/errors/toomanyrequestserror.md - - docs/models/errors/toomanyrequestsmessage.md - - docs/models/errors/unauthorizederror.md - - docs/models/errors/unauthorizedmessage.md - - docs/models/operations/aggregatesignaturesglobals.md - - docs/models/operations/aggregatesignaturesrequest.md - - docs/models/operations/getaddresschainsrequest.md - - docs/models/operations/getaggregatedsignaturesglobals.md - - docs/models/operations/getaggregatedsignaturesrequest.md - - docs/models/operations/getapilogsrequest.md - - docs/models/operations/getapilogsrequesttype.md - - docs/models/operations/getapilogsresponse.md - - docs/models/operations/getapiusagemetricsrequest.md - - docs/models/operations/getapiusagemetricsrequesttype.md - - docs/models/operations/getassetdetailsglobals.md - - docs/models/operations/getassetdetailsrequest.md - - docs/models/operations/getbalancesbyaddressesglobals.md - - docs/models/operations/getbalancesbyaddressesrequest.md - - docs/models/operations/getbalancesbyaddressesresponse.md - - docs/models/operations/getblockbyidglobals.md - - docs/models/operations/getblockbyidrequest.md - - docs/models/operations/getblockchainbyidglobals.md - - docs/models/operations/getblockchainbyidrequest.md - - docs/models/operations/getblockglobals.md - - docs/models/operations/getblockrequest.md - - docs/models/operations/getchainidsforaddressesglobals.md - - docs/models/operations/getchainidsforaddressesrequest.md - - docs/models/operations/getchaininfoglobals.md - - docs/models/operations/getchaininforequest.md - - docs/models/operations/getcontractmetadataglobals.md - - docs/models/operations/getcontractmetadatarequest.md - - docs/models/operations/getcontractmetadataresponse.md - - docs/models/operations/getdeploymenttransactionglobals.md - - docs/models/operations/getdeploymenttransactionrequest.md - - docs/models/operations/geticmmessagerequest.md - - docs/models/operations/geticmmessageresponse.md - - docs/models/operations/getlatestblocksglobals.md - - docs/models/operations/getlatestblocksrequest.md - - docs/models/operations/getlatestblocksresponse.md - - docs/models/operations/getnativebalanceglobals.md - - docs/models/operations/getnativebalancerequest.md - - docs/models/operations/getnetworkdetailsglobals.md - - docs/models/operations/getnetworkdetailsrequest.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 - - docs/models/operations/getsubnetbyidglobals.md - - docs/models/operations/getsubnetbyidrequest.md - - docs/models/operations/getsubnetrpcusagemetricsrequest.md - - docs/models/operations/getteleportermessagerequest.md - - docs/models/operations/getteleportermessageresponse.md - - docs/models/operations/gettokendetailsglobals.md - - docs/models/operations/gettokendetailsrequest.md - - docs/models/operations/gettokendetailsresponse.md - - docs/models/operations/gettransactionglobals.md - - docs/models/operations/gettransactionrequest.md - - docs/models/operations/gettransactionsforblockglobals.md - - docs/models/operations/gettransactionsforblockrequest.md - - docs/models/operations/gettxbyhashglobals.md - - docs/models/operations/gettxbyhashrequest.md - - docs/models/operations/gettxbyhashresponse.md - - docs/models/operations/getutxosbyaddressesglobals.md - - docs/models/operations/getutxosbyaddressesrequest.md - - docs/models/operations/getutxosbyaddressesresponse.md - - docs/models/operations/getutxosbyaddressesresponsebody.md - - docs/models/operations/getvertexbyhashglobals.md - - docs/models/operations/getvertexbyhashrequest.md - - docs/models/operations/getvertexbyheightglobals.md - - docs/models/operations/getvertexbyheightrequest.md - - docs/models/operations/getvertexbyheightresponse.md - - docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md - - docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md - - docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md - - docs/models/operations/listaddresschainsrequest.md - - docs/models/operations/listalllatestblocksrequest.md - - docs/models/operations/listalllatestblocksresponse.md - - docs/models/operations/listalllatesttransactionsrequest.md - - docs/models/operations/listalllatesttransactionsresponse.md - - docs/models/operations/listassettransactionsglobals.md - - docs/models/operations/listassettransactionsrequest.md - - docs/models/operations/listassettransactionsresponse.md - - docs/models/operations/listblockchainsglobals.md - - docs/models/operations/listblockchainsrequest.md - - docs/models/operations/listblockchainsresponse.md - - docs/models/operations/listcollectiblebalancesglobals.md - - docs/models/operations/listcollectiblebalancesrequest.md - - docs/models/operations/listcollectiblebalancesresponse.md - - docs/models/operations/listcontractdeploymentsglobals.md - - docs/models/operations/listcontractdeploymentsrequest.md - - docs/models/operations/listcontractdeploymentsresponse.md - - docs/models/operations/listdelegatorsglobals.md - - docs/models/operations/listdelegatorsrequest.md - - docs/models/operations/listdelegatorsresponse.md - - docs/models/operations/listerc1155balancesglobals.md - - docs/models/operations/listerc1155balancesrequest.md - - docs/models/operations/listerc1155balancesresponse.md - - docs/models/operations/listerc1155transactionsglobals.md - - docs/models/operations/listerc1155transactionsrequest.md - - docs/models/operations/listerc1155transactionsresponse.md - - docs/models/operations/listerc20balancesglobals.md - - docs/models/operations/listerc20balancesrequest.md - - docs/models/operations/listerc20balancesresponse.md - - docs/models/operations/listerc20transactionsglobals.md - - docs/models/operations/listerc20transactionsrequest.md - - docs/models/operations/listerc20transactionsresponse.md - - docs/models/operations/listerc721balancesglobals.md - - docs/models/operations/listerc721balancesrequest.md - - docs/models/operations/listerc721balancesresponse.md - - docs/models/operations/listerc721transactionsglobals.md - - docs/models/operations/listerc721transactionsrequest.md - - docs/models/operations/listerc721transactionsresponse.md - - docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md - - docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md - - docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md - - docs/models/operations/listicmmessagesbyaddressrequest.md - - docs/models/operations/listicmmessagesrequest.md - - docs/models/operations/listicmmessagesresponse.md - - docs/models/operations/listinternaltransactionsglobals.md - - docs/models/operations/listinternaltransactionsrequest.md - - docs/models/operations/listinternaltransactionsresponse.md - - docs/models/operations/listl1validatorsglobals.md - - docs/models/operations/listl1validatorsrequest.md - - docs/models/operations/listl1validatorsresponse.md - - docs/models/operations/listlatestblocksallchainsrequest.md - - docs/models/operations/listlatestblocksallchainsresponse.md - - docs/models/operations/listlatestprimarynetworkblocksglobals.md - - docs/models/operations/listlatestprimarynetworkblocksrequest.md - - docs/models/operations/listlatestprimarynetworkblocksresponse.md - - docs/models/operations/listlatestprimarynetworktransactionsglobals.md - - docs/models/operations/listlatestprimarynetworktransactionsrequest.md - - docs/models/operations/listlatestprimarynetworktransactionsresponse.md - - docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md - - docs/models/operations/listlatesttransactionsallchainsrequest.md - - docs/models/operations/listlatesttransactionsallchainsresponse.md - - docs/models/operations/listlatesttransactionsglobals.md - - docs/models/operations/listlatesttransactionsrequest.md - - docs/models/operations/listlatesttransactionsresponse.md - - docs/models/operations/listlatestxchainverticesglobals.md - - docs/models/operations/listlatestxchainverticesrequest.md - - docs/models/operations/listlatestxchainverticesresponse.md - - docs/models/operations/listnativetransactionsglobals.md - - docs/models/operations/listnativetransactionsrequest.md - - docs/models/operations/listnativetransactionsresponse.md - - docs/models/operations/listpendingprimarynetworkrewardsglobals.md - - docs/models/operations/listpendingprimarynetworkrewardsrequest.md - - docs/models/operations/listpendingprimarynetworkrewardsresponse.md - - docs/models/operations/listprimarynetworkblocksbynodeidglobals.md - - docs/models/operations/listprimarynetworkblocksbynodeidrequest.md - - docs/models/operations/listprimarynetworkblocksbynodeidresponse.md - - docs/models/operations/listsubnetsglobals.md - - docs/models/operations/listsubnetsrequest.md - - docs/models/operations/listsubnetsresponse.md - - docs/models/operations/listteleportermessagesbyaddressrequest.md - - docs/models/operations/listteleportermessagesrequest.md - - docs/models/operations/listteleportermessagesresponse.md - - docs/models/operations/listtokensglobals.md - - docs/models/operations/listtokensrequest.md - - docs/models/operations/listtokensresponse.md - - docs/models/operations/listtransactionsglobals.md - - docs/models/operations/listtransactionsrequest.md - - docs/models/operations/listtransactionsresponse.md - - docs/models/operations/listtransfersglobals.md - - docs/models/operations/listtransfersrequest.md - - docs/models/operations/listtransfersresponse.md - - docs/models/operations/listvalidatorsglobals.md - - docs/models/operations/listvalidatorsrequest.md - - docs/models/operations/listvalidatorsresponse.md - - docs/models/operations/posttransactionexportjobrequest.md - - docs/models/operations/reindexnftglobals.md - - docs/models/operations/reindexnftrequest.md - - docs/models/operations/supportedchainsrequest.md - - docs/sdks/addressbalances/README.md - - docs/sdks/addresschains/README.md - - docs/sdks/addresscontracts/README.md - - docs/sdks/addresstransactions/README.md - - docs/sdks/avalanche/README.md - - docs/sdks/chains/README.md - - docs/sdks/contracts/README.md - - docs/sdks/data/README.md - - docs/sdks/evmblocks/README.md - - docs/sdks/evmtransactions/README.md - - docs/sdks/icm/README.md - - docs/sdks/nfts/README.md - - docs/sdks/operations/README.md - - docs/sdks/primarynetwork/README.md - - docs/sdks/primarynetworkbalances/README.md - - docs/sdks/primarynetworkblocks/README.md - - docs/sdks/primarynetworktransactions/README.md - - docs/sdks/rewards/README.md - - docs/sdks/signatureaggregator/README.md - - docs/sdks/teleporter/README.md - - docs/sdks/usagemetrics/README.md - - docs/sdks/utxos/README.md - - docs/sdks/vertices/README.md - - eslint.config.mjs - - examples/.env.template - - examples/README.md - - examples/dataHealthCheck.example.ts - - examples/package.json - - jsr.json - - package.json - - src/core.ts - - src/funcs/dataEvmAddressBalancesGetNative.ts - - src/funcs/dataEvmAddressBalancesListCollectibles.ts - - src/funcs/dataEvmAddressBalancesListErc1155.ts - - src/funcs/dataEvmAddressBalancesListErc20.ts - - src/funcs/dataEvmAddressBalancesListErc721.ts - - src/funcs/dataEvmAddressChainsList.ts - - src/funcs/dataEvmAddressContractsListDeployments.ts - - src/funcs/dataEvmAddressTransactionsList.ts - - src/funcs/dataEvmAddressTransactionsListErc1155.ts - - src/funcs/dataEvmAddressTransactionsListErc20.ts - - src/funcs/dataEvmAddressTransactionsListErc721.ts - - src/funcs/dataEvmAddressTransactionsListInternal.ts - - src/funcs/dataEvmAddressTransactionsListNative.ts - - src/funcs/dataEvmBlocksGet.ts - - src/funcs/dataEvmBlocksListLatest.ts - - src/funcs/dataEvmBlocksListLatestAllChains.ts - - src/funcs/dataEvmBlocksListTransactions.ts - - src/funcs/dataEvmChainsGet.ts - - src/funcs/dataEvmChainsGetAddressChains.ts - - src/funcs/dataEvmChainsList.ts - - src/funcs/dataEvmChainsListAllLatestBlocks.ts - - src/funcs/dataEvmChainsListAllLatestTransactions.ts - - src/funcs/dataEvmContractsGetDeploymentTransaction.ts - - src/funcs/dataEvmContractsGetMetadata.ts - - src/funcs/dataEvmContractsListTransfers.ts - - src/funcs/dataEvmTransactionsGet.ts - - src/funcs/dataEvmTransactionsListLatest.ts - - src/funcs/dataEvmTransactionsListLatestAllChains.ts - - src/funcs/dataHealthCheck.ts - - src/funcs/dataIcmGet.ts - - src/funcs/dataIcmList.ts - - src/funcs/dataIcmListByAddress.ts - - src/funcs/dataNftsGet.ts - - src/funcs/dataNftsList.ts - - src/funcs/dataNftsReindex.ts - - src/funcs/dataOperationsExportTransactions.ts - - src/funcs/dataOperationsGetResult.ts - - src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts - - src/funcs/dataPrimaryNetworkBlocksGet.ts - - src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts - - src/funcs/dataPrimaryNetworkBlocksListLatest.ts - - src/funcs/dataPrimaryNetworkGetAssetDetails.ts - - src/funcs/dataPrimaryNetworkGetBlockchainById.ts - - src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts - - src/funcs/dataPrimaryNetworkGetNetworkDetails.ts - - src/funcs/dataPrimaryNetworkGetSubnetById.ts - - src/funcs/dataPrimaryNetworkGetValidatorDetails.ts - - src/funcs/dataPrimaryNetworkListBlockchains.ts - - src/funcs/dataPrimaryNetworkListDelegators.ts - - src/funcs/dataPrimaryNetworkListL1Validators.ts - - src/funcs/dataPrimaryNetworkListSubnets.ts - - src/funcs/dataPrimaryNetworkListValidators.ts - - src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts - - src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts - - src/funcs/dataPrimaryNetworkTransactionsGet.ts - - src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts - - src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts - - src/funcs/dataPrimaryNetworkTransactionsListLatest.ts - - src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts - - src/funcs/dataPrimaryNetworkVerticesGetByHash.ts - - src/funcs/dataPrimaryNetworkVerticesListByHeight.ts - - src/funcs/dataPrimaryNetworkVerticesListLatest.ts - - src/funcs/dataSignatureAggregatorAggregate.ts - - src/funcs/dataSignatureAggregatorGet.ts - - src/funcs/dataTeleporterGetTeleporterMessage.ts - - src/funcs/dataTeleporterListTeleporterMessages.ts - - src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts - - src/funcs/dataUsageMetricsGetLogs.ts - - src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts - - src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts - - src/funcs/dataUsageMetricsGetUsage.ts - - src/hooks/hooks.ts - - src/hooks/index.ts - - src/hooks/types.ts - - src/index.ts - - src/lib/base64.ts - - src/lib/config.ts - - src/lib/dlv.ts - - src/lib/encodings.ts - - src/lib/files.ts - - src/lib/http.ts - - src/lib/is-plain-object.ts - - src/lib/logger.ts - - src/lib/matchers.ts - - src/lib/primitives.ts - - src/lib/retries.ts - - src/lib/schemas.ts - - src/lib/sdks.ts - - src/lib/security.ts - - src/lib/url.ts - - src/mcp-server/build.mts - - src/mcp-server/cli.ts - - src/mcp-server/cli/start/command.ts - - src/mcp-server/cli/start/impl.ts - - src/mcp-server/console-logger.ts - - src/mcp-server/extensions.ts - - src/mcp-server/mcp-server.ts - - src/mcp-server/prompts.ts - - src/mcp-server/resources.ts - - src/mcp-server/scopes.ts - - src/mcp-server/server.ts - - src/mcp-server/shared.ts - - src/mcp-server/tools.ts - - src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts - - src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts - - src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts - - src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts - - src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts - - src/mcp-server/tools/dataEvmAddressChainsList.ts - - src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts - - src/mcp-server/tools/dataEvmAddressTransactionsList.ts - - src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts - - src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts - - src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts - - src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts - - src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts - - src/mcp-server/tools/dataEvmBlocksGet.ts - - src/mcp-server/tools/dataEvmBlocksListLatest.ts - - src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts - - src/mcp-server/tools/dataEvmBlocksListTransactions.ts - - src/mcp-server/tools/dataEvmChainsGet.ts - - src/mcp-server/tools/dataEvmChainsGetAddressChains.ts - - src/mcp-server/tools/dataEvmChainsList.ts - - src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts - - src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts - - src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts - - src/mcp-server/tools/dataEvmContractsGetMetadata.ts - - src/mcp-server/tools/dataEvmContractsListTransfers.ts - - src/mcp-server/tools/dataEvmTransactionsGet.ts - - src/mcp-server/tools/dataEvmTransactionsListLatest.ts - - src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts - - src/mcp-server/tools/dataHealthCheck.ts - - src/mcp-server/tools/dataIcmGet.ts - - src/mcp-server/tools/dataIcmList.ts - - src/mcp-server/tools/dataIcmListByAddress.ts - - src/mcp-server/tools/dataNftsGet.ts - - src/mcp-server/tools/dataNftsList.ts - - src/mcp-server/tools/dataNftsReindex.ts - - src/mcp-server/tools/dataOperationsExportTransactions.ts - - src/mcp-server/tools/dataOperationsGetResult.ts - - src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts - - src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts - - src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts - - src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts - - src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts - - src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts - - src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts - - src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts - - src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts - - src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts - - src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts - - src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts - - src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts - - src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts - - src/mcp-server/tools/dataPrimaryNetworkListValidators.ts - - src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts - - src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts - - src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts - - src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts - - src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts - - src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts - - src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts - - src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts - - src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts - - src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts - - src/mcp-server/tools/dataSignatureAggregatorAggregate.ts - - src/mcp-server/tools/dataSignatureAggregatorGet.ts - - src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts - - src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts - - src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts - - src/mcp-server/tools/dataUsageMetricsGetLogs.ts - - src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts - - src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts - - src/mcp-server/tools/dataUsageMetricsGetUsage.ts - - src/models/components/activedelegatordetails.ts - - src/models/components/activevalidatordetails.ts - - src/models/components/aggregatedassetamount.ts - - src/models/components/apifeature.ts - - src/models/components/assetamount.ts - - src/models/components/assetwithpriceinfo.ts - - src/models/components/balanceowner.ts - - src/models/components/blockchain.ts - - src/models/components/blockchainid.ts - - src/models/components/blockchainids.ts - - src/models/components/blockchaininfo.ts - - src/models/components/blscredentials.ts - - src/models/components/cchainatomicbalances.ts - - src/models/components/cchainexporttransaction.ts - - src/models/components/cchainimporttransaction.ts - - src/models/components/cchainsharedassetbalance.ts - - src/models/components/chainaddresschainidmap.ts - - src/models/components/chainaddresschainidmaplistresponse.ts - - src/models/components/chaininfo.ts - - src/models/components/chainstatus.ts - - src/models/components/completeddelegatordetails.ts - - src/models/components/completedvalidatordetails.ts - - src/models/components/contractdeploymentdetails.ts - - src/models/components/createevmtransactionexportrequest.ts - - src/models/components/createprimarynetworktransactionexportrequest.ts - - src/models/components/currencycode.ts - - src/models/components/delegationstatustype.ts - - src/models/components/delegatorsdetails.ts - - src/models/components/deliveredicmmessage.ts - - src/models/components/deliveredsourcenotindexedicmmessage.ts - - src/models/components/deliveredsourcenotindexedteleportermessage.ts - - src/models/components/deliveredteleportermessage.ts - - src/models/components/erc1155contract.ts - - src/models/components/erc1155token.ts - - src/models/components/erc1155tokenbalance.ts - - src/models/components/erc1155tokenmetadata.ts - - src/models/components/erc1155transfer.ts - - src/models/components/erc1155transferdetails.ts - - src/models/components/erc20contract.ts - - src/models/components/erc20token.ts - - src/models/components/erc20tokenbalance.ts - - src/models/components/erc20transfer.ts - - src/models/components/erc20transferdetails.ts - - src/models/components/erc721contract.ts - - src/models/components/erc721token.ts - - src/models/components/erc721tokenbalance.ts - - src/models/components/erc721tokenmetadata.ts - - src/models/components/erc721transfer.ts - - src/models/components/erc721transferdetails.ts - - src/models/components/evmblock.ts - - src/models/components/evminput.ts - - src/models/components/evmnetworkoptions.ts - - src/models/components/evmoperationtype.ts - - src/models/components/evmoutput.ts - - src/models/components/fullnativetransactiondetails.ts - - src/models/components/getchainresponse.ts - - src/models/components/getevmblockresponse.ts - - src/models/components/getnativebalanceresponse.ts - - src/models/components/getnetworkdetailsresponse.ts - - src/models/components/getprimarynetworkblockresponse.ts - - src/models/components/gettransactionresponse.ts - - src/models/components/globalparamnetwork.ts - - src/models/components/healthcheckresultdto.ts - - src/models/components/healthindicatorresultdto.ts - - src/models/components/historicalreward.ts - - src/models/components/icmdestinationtransaction.ts - - src/models/components/icmreceipt.ts - - src/models/components/icmrewarddetails.ts - - src/models/components/icmsourcetransaction.ts - - src/models/components/imageasset.ts - - src/models/components/index.ts - - src/models/components/internaltransaction.ts - - src/models/components/internaltransactiondetails.ts - - src/models/components/internaltransactionopcall.ts - - src/models/components/l1validatordetailsfull.ts - - src/models/components/l1validatordetailstransaction.ts - - src/models/components/l1validatormanagerdetails.ts - - src/models/components/listaddresschainsresponse.ts - - src/models/components/listblockchainsresponse.ts - - src/models/components/listcchainatomicbalancesresponse.ts - - src/models/components/listcchainatomictransactionsresponse.ts - - src/models/components/listchainsresponse.ts - - src/models/components/listcollectiblebalancesresponse.ts - - src/models/components/listcontractsresponse.ts - - src/models/components/listdelegatordetailsresponse.ts - - src/models/components/listerc1155balancesresponse.ts - - src/models/components/listerc1155transactionsresponse.ts - - src/models/components/listerc20balancesresponse.ts - - src/models/components/listerc20transactionsresponse.ts - - src/models/components/listerc721balancesresponse.ts - - src/models/components/listerc721transactionsresponse.ts - - src/models/components/listevmblocksresponse.ts - - src/models/components/listhistoricalrewardsresponse.ts - - src/models/components/listicmmessagesresponse.ts - - src/models/components/listinternaltransactionsresponse.ts - - src/models/components/listl1validatorsresponse.ts - - src/models/components/listnativetransactionsresponse.ts - - src/models/components/listnfttokens.ts - - src/models/components/listpchainbalancesresponse.ts - - src/models/components/listpchaintransactionsresponse.ts - - src/models/components/listpchainutxosresponse.ts - - src/models/components/listpendingrewardsresponse.ts - - src/models/components/listprimarynetworkblocksresponse.ts - - src/models/components/listsubnetsresponse.ts - - src/models/components/listteleportermessagesresponse.ts - - src/models/components/listtransactiondetailsresponse.ts - - src/models/components/listtransfersresponse.ts - - src/models/components/listutxosresponse.ts - - src/models/components/listvalidatordetailsresponse.ts - - src/models/components/listxchainbalancesresponse.ts - - src/models/components/listxchaintransactionsresponse.ts - - src/models/components/listxchainverticesresponse.ts - - src/models/components/logsformat.ts - - src/models/components/logsformatmetadata.ts - - src/models/components/logsresponsedto.ts - - src/models/components/method.ts - - src/models/components/metric.ts - - src/models/components/money.ts - - src/models/components/nativetokenbalance.ts - - src/models/components/nativetransaction.ts - - src/models/components/network.ts - - src/models/components/networktoken.ts - - src/models/components/networktokendetails.ts - - src/models/components/nfttokenmetadatastatus.ts - - src/models/components/operationstatus.ts - - src/models/components/operationstatuscode.ts - - src/models/components/operationstatusresponse.ts - - src/models/components/operationtype.ts - - src/models/components/pchainbalance.ts - - src/models/components/pchainid.ts - - src/models/components/pchainsharedasset.ts - - src/models/components/pchaintransaction.ts - - src/models/components/pchaintransactiontype.ts - - src/models/components/pchainutxo.ts - - src/models/components/pendingdelegatordetails.ts - - src/models/components/pendingicmmessage.ts - - src/models/components/pendingreward.ts - - src/models/components/pendingteleportermessage.ts - - src/models/components/pendingvalidatordetails.ts - - src/models/components/pricingproviders.ts - - src/models/components/primarynetworkassetcap.ts - - src/models/components/primarynetworkassettype.ts - - src/models/components/primarynetworkblock.ts - - src/models/components/primarynetworkchaininfo.ts - - src/models/components/primarynetworkchainname.ts - - src/models/components/primarynetworkoperationtype.ts - - src/models/components/primarynetworkoptions.ts - - src/models/components/primarynetworktxtype.ts - - src/models/components/proposerdetails.ts - - src/models/components/removedvalidatordetails.ts - - src/models/components/requesttype.ts - - src/models/components/resourcelink.ts - - src/models/components/resourcelinktype.ts - - src/models/components/rewards.ts - - src/models/components/rewardtype.ts - - src/models/components/richaddress.ts - - src/models/components/rpcmetrics.ts - - src/models/components/rpcusagemetricsgroupbyenum.ts - - src/models/components/rpcusagemetricsvalueaggregated.ts - - src/models/components/security.ts - - src/models/components/signatureaggregationresponse.ts - - src/models/components/signatureaggregatorrequest.ts - - src/models/components/sortbyoption.ts - - src/models/components/sortorder.ts - - src/models/components/stakingdistribution.ts - - src/models/components/subnet.ts - - src/models/components/subnetownershipinfo.ts - - src/models/components/subnetrpctimeintervalgranularity.ts - - src/models/components/subnetrpcusagemetricsresponsedto.ts - - src/models/components/teleporterdestinationtransaction.ts - - src/models/components/teleportermessageinfo.ts - - src/models/components/teleporterreceipt.ts - - src/models/components/teleporterrewarddetails.ts - - src/models/components/teleportersourcetransaction.ts - - src/models/components/timeintervalgranularityextended.ts - - src/models/components/transactiondetails.ts - - src/models/components/transactiondirectiontype.ts - - src/models/components/transactionexportmetadata.ts - - src/models/components/transactionmethodtype.ts - - src/models/components/transactionstatus.ts - - src/models/components/transactionvertexdetail.ts - - src/models/components/unknowncontract.ts - - src/models/components/usagemetricsgroupbyenum.ts - - src/models/components/usagemetricsresponsedto.ts - - src/models/components/usagemetricsvaluedto.ts - - src/models/components/utilityaddresses.ts - - src/models/components/utxo.ts - - src/models/components/utxocredential.ts - - src/models/components/utxotype.ts - - src/models/components/validationstatustype.ts - - src/models/components/validatorhealthdetails.ts - - src/models/components/validatorsdetails.ts - - src/models/components/vmname.ts - - src/models/components/xchainassetdetails.ts - - src/models/components/xchainbalances.ts - - src/models/components/xchainid.ts - - src/models/components/xchainlineartransaction.ts - - src/models/components/xchainnonlineartransaction.ts - - src/models/components/xchainsharedassetbalance.ts - - src/models/components/xchaintransactiontype.ts - - src/models/components/xchainvertex.ts - - src/models/errors/avalancheapierror.ts - - src/models/errors/avalancheerror.ts - - src/models/errors/badgatewayerror.ts - - src/models/errors/badrequesterror.ts - - src/models/errors/forbiddenerror.ts - - src/models/errors/httpclienterrors.ts - - src/models/errors/index.ts - - src/models/errors/internalservererror.ts - - src/models/errors/notfounderror.ts - - src/models/errors/responsevalidationerror.ts - - src/models/errors/sdkvalidationerror.ts - - src/models/errors/serviceunavailableerror.ts - - src/models/errors/toomanyrequestserror.ts - - src/models/errors/unauthorizederror.ts - - src/models/operations/aggregatesignatures.ts - - src/models/operations/getaddresschains.ts - - src/models/operations/getaggregatedsignatures.ts - - src/models/operations/getapilogs.ts - - src/models/operations/getapiusagemetrics.ts - - src/models/operations/getassetdetails.ts - - src/models/operations/getbalancesbyaddresses.ts - - src/models/operations/getblock.ts - - src/models/operations/getblockbyid.ts - - src/models/operations/getblockchainbyid.ts - - src/models/operations/getchainidsforaddresses.ts - - src/models/operations/getchaininfo.ts - - src/models/operations/getcontractmetadata.ts - - src/models/operations/getdeploymenttransaction.ts - - src/models/operations/geticmmessage.ts - - src/models/operations/getlatestblocks.ts - - src/models/operations/getnativebalance.ts - - src/models/operations/getnetworkdetails.ts - - src/models/operations/getoperationresult.ts - - src/models/operations/getrpcusagemetrics.ts - - src/models/operations/getsinglevalidatordetails.ts - - src/models/operations/getsubnetbyid.ts - - src/models/operations/getsubnetrpcusagemetrics.ts - - src/models/operations/getteleportermessage.ts - - src/models/operations/gettokendetails.ts - - src/models/operations/gettransaction.ts - - src/models/operations/gettransactionsforblock.ts - - src/models/operations/gettxbyhash.ts - - src/models/operations/getutxosbyaddresses.ts - - src/models/operations/getvertexbyhash.ts - - src/models/operations/getvertexbyheight.ts - - src/models/operations/index.ts - - src/models/operations/listactiveprimarynetworkstakingtransactions.ts - - src/models/operations/listaddresschains.ts - - src/models/operations/listalllatestblocks.ts - - src/models/operations/listalllatesttransactions.ts - - src/models/operations/listassettransactions.ts - - src/models/operations/listblockchains.ts - - src/models/operations/listcollectiblebalances.ts - - src/models/operations/listcontractdeployments.ts - - src/models/operations/listdelegators.ts - - src/models/operations/listerc1155balances.ts - - src/models/operations/listerc1155transactions.ts - - src/models/operations/listerc20balances.ts - - src/models/operations/listerc20transactions.ts - - src/models/operations/listerc721balances.ts - - src/models/operations/listerc721transactions.ts - - src/models/operations/listhistoricalprimarynetworkrewards.ts - - src/models/operations/listicmmessages.ts - - src/models/operations/listicmmessagesbyaddress.ts - - src/models/operations/listinternaltransactions.ts - - src/models/operations/listl1validators.ts - - src/models/operations/listlatestblocksallchains.ts - - src/models/operations/listlatestprimarynetworkblocks.ts - - src/models/operations/listlatestprimarynetworktransactions.ts - - src/models/operations/listlatesttransactions.ts - - src/models/operations/listlatesttransactionsallchains.ts - - src/models/operations/listlatestxchainvertices.ts - - src/models/operations/listnativetransactions.ts - - src/models/operations/listpendingprimarynetworkrewards.ts - - src/models/operations/listprimarynetworkblocksbynodeid.ts - - src/models/operations/listsubnets.ts - - src/models/operations/listteleportermessages.ts - - src/models/operations/listteleportermessagesbyaddress.ts - - src/models/operations/listtokens.ts - - src/models/operations/listtransactions.ts - - src/models/operations/listtransfers.ts - - src/models/operations/listvalidators.ts - - src/models/operations/posttransactionexportjob.ts - - src/models/operations/reindexnft.ts - - src/models/operations/supportedchains.ts - - src/sdk/address.ts - - src/sdk/addressbalances.ts - - src/sdk/addresschains.ts - - src/sdk/addresscontracts.ts - - src/sdk/addresstransactions.ts - - src/sdk/chains.ts - - src/sdk/contracts.ts - - src/sdk/data.ts - - src/sdk/evm.ts - - src/sdk/evmblocks.ts - - src/sdk/evmtransactions.ts - - src/sdk/icm.ts - - src/sdk/index.ts - - src/sdk/nfts.ts - - src/sdk/operations.ts - - src/sdk/primarynetwork.ts - - src/sdk/primarynetworkbalances.ts - - src/sdk/primarynetworkblocks.ts - - src/sdk/primarynetworktransactions.ts - - src/sdk/rewards.ts - - src/sdk/sdk.ts - - src/sdk/signatureaggregator.ts - - src/sdk/teleporter.ts - - src/sdk/usagemetrics.ts - - src/sdk/utxos.ts - - src/sdk/vertices.ts - - src/types/async.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts - - tsconfig.json -examples: - data-health-check: - speakeasy-default-data-health-check: - responses: - "200": - application/json: {"info": {"database": {"status": "up"}}, "error": {}, "details": {"database": {"status": "up"}}} - "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"} - listAddressChains: - "": - parameters: - path: - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - responses: - "200": - application/json: {"indexedChains": [{"chainId": "", "status": "UNAVAILABLE", "chainName": "", "description": "hourly even adventurously brr kiddingly since chapel readily", "vmName": "BITCOIN", "rpcUrl": "https://tasty-cinema.org", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}}]} - "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"} - speakeasy-default-list-address-chains: - parameters: - path: - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - responses: - "200": - application/json: {"indexedChains": [{"chainId": "", "status": "OK", "chainName": "", "description": "faithfully between down whether mostly better but afterwards qua", "vmName": "ETHEREUM", "rpcUrl": "https://funny-going.com", "isTestnet": true, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}}]} - "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"} - getNativeBalance: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - currency: "usd" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}} - "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"} - speakeasy-default-get-native-balance: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - currency: "usd" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}} - "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"} - listErc20Balances: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - pageSize: 10 - filterSpamTokens: true - contractAddresses: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB" - currency: "usd" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc20TokenBalances": [{"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}, "chainId": "43114", "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}, "tokenReputation": "Malicious"}, {"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}, "chainId": "43114", "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}, "tokenReputation": "Malicious"}]} - "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"} - speakeasy-default-list-erc20-balances: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - pageSize: 10 - filterSpamTokens: true - contractAddresses: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB" - currency: "usd" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc20TokenBalances": [{"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}, "chainId": "43114", "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}, "tokenReputation": "Malicious"}]} - "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"} - listErc721Balances: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc721TokenBalances": [{"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://optimistic-unibody.org", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "chainId": "43114"}]} - "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"} - speakeasy-default-list-erc721-balances: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc721TokenBalances": []} - "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"} - listErc1155Balances: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc1155TokenBalances": [{"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://untidy-governance.info/", "metadata": {"indexStatus": "THROTTLED_TOKEN_URI"}, "chainId": "43114", "balance": "2000000000000000000"}]} - "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"} - speakeasy-default-list-erc1155-balances: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - blockNumber: "6479329" - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"nativeTokenBalance": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "chainId": "43114", "price": {"currencyCode": "usd", "value": 42.42}, "balance": "2000000000000000000", "balanceValue": {"currencyCode": "usd", "value": 42.42}}, "erc1155TokenBalances": []} - "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"} - listCollectibleBalances: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"collectibleBalances": []} - "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"} - speakeasy-default-list-collectible-balances: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" - responses: - "200": - application/json: {"collectibleBalances": []} - "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"} - listContractDeployments: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - responses: - "200": - application/json: {"contracts": [{"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-20", "decimals": 18}, {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "UNKNOWN"}, {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155"}]} - "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"} - speakeasy-default-list-contract-deployments: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - responses: - "200": - application/json: {"contracts": [{"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-20", "decimals": 18}]} - "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"} - listTransactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - startBlock: 6479329 - endBlock: 6479330 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [{"nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, "erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}]}, {"nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, "erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}]}, {"nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, "erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8943.64, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://colorless-peony.name", "metadata": {"indexStatus": "UNKNOWN"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 871.15, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://informal-chasuble.name", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}]}]} - "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"} - speakeasy-default-list-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - pageSize: 10 - startBlock: 6479329 - endBlock: 6479330 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [{"nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, "erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 5832.05, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9819.36, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://unlawful-petticoat.com", "metadata": {"indexStatus": "INVALID_METADATA"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 5935.65, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://happy-go-lucky-bog.org/", "metadata": {"indexStatus": "UNREACHABLE_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}]}]} - "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"} - listNativeTransactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - speakeasy-default-list-native-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - listErc20Transactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - speakeasy-default-list-erc20-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - listErc721Transactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1403.76, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://upset-orchid.name/", "metadata": {"indexStatus": "UNREACHABLE_TOKEN_URI"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1403.76, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://upset-orchid.name/", "metadata": {"indexStatus": "UNREACHABLE_TOKEN_URI"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}]} - "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"} - speakeasy-default-list-erc721-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1403.76, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://upset-orchid.name/", "metadata": {"indexStatus": "UNREACHABLE_TOKEN_URI"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}]} - "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"} - listErc1155Transactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3362.41, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://crafty-in-joke.org/", "metadata": {"indexStatus": "INVALID_METADATA"}}}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3362.41, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://crafty-in-joke.org/", "metadata": {"indexStatus": "INVALID_METADATA"}}}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3362.41, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://crafty-in-joke.org/", "metadata": {"indexStatus": "INVALID_METADATA"}}}]} - "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"} - speakeasy-default-list-erc1155-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3362.41, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://crafty-in-joke.org/", "metadata": {"indexStatus": "INVALID_METADATA"}}}]} - "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"} - listInternalTransactions: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "internalTxType": "call", "value": "50000000000000000", "gasUsed": "44038", "gasLimit": "50000", "transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"}, {"from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "internalTxType": "call", "value": "50000000000000000", "gasUsed": "44038", "gasLimit": "50000", "transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"}]} - "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"} - speakeasy-default-list-internal-transactions: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALL", "value": "10000000000000000000", "isReverted": true, "gasUsed": "", "gasLimit": ""}]} - "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"} - listLatestTransactionsAllChains: - "": - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"transactions": []} - "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"} - speakeasy-default-list-latest-transactions-all-chains: - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"transactions": []} - "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"} - getTransaction: - "": - parameters: - path: - chainId: "43114" - txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45" - responses: - "200": - application/json: {"erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9364.08, "value": "10000000000000000000", "erc20Token": {"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}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9364.08, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3802.01, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://blank-foodstuffs.org/", "metadata": {"indexStatus": "INVALID_METADATA"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3802.01, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://blank-foodstuffs.org/", "metadata": {"indexStatus": "INVALID_METADATA"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 3802.01, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://blank-foodstuffs.org/", "metadata": {"indexStatus": "INVALID_METADATA"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1093.55, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://flawed-tenement.com/", "metadata": {"indexStatus": "INVALID_METADATA_JSON"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALLCODE", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CALLCODE", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}], "networkTokenDetails": {"networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}, "currentPrice": {"currencyCode": "usd", "value": 42.42}, "historicalPrice": {"currencyCode": "usd", "value": 42.42}}, "nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000", "input": "", "baseFeePerGas": ""}} - "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"} - speakeasy-default-get-transaction: - parameters: - path: - chainId: "43114" - txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45" - responses: - "200": - application/json: {"erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 6482.03, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9364.08, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://hurtful-cricket.com", "metadata": {"indexStatus": "INVALID_TOKEN_URI_SCHEME"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 8559.93, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://frozen-cake.biz", "metadata": {"indexStatus": "INVALID_TOKEN_URI_SCHEME"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "STATICCALL", "value": "10000000000000000000", "isReverted": true, "gasUsed": "", "gasLimit": ""}], "networkTokenDetails": {"networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}, "currentPrice": {"currencyCode": "usd", "value": 42.42}, "historicalPrice": {"currencyCode": "usd", "value": 42.42}}, "nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "CONTRACT_CREATION", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000", "input": "", "baseFeePerGas": ""}} - "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"} - listLatestTransactions: - "": - parameters: - path: - chainId: "43114" - query: - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - speakeasy-default-list-latest-transactions: - parameters: - path: - chainId: "43114" - query: - pageSize: 10 - responses: - "200": - application/json: {"transactions": []} - "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"} - listLatestBlocksAllChains: - "": - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"blocks": [{"chainId": "43114", "blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txCount": 9939.63, "baseFee": "", "gasUsed": "", "gasLimit": "", "gasCost": "", "parentHash": "", "feesSpent": "", "cumulativeTransactions": ""}, {"chainId": "43114", "blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txCount": 9939.63, "baseFee": "", "gasUsed": "", "gasLimit": "", "gasCost": "", "parentHash": "", "feesSpent": "", "cumulativeTransactions": ""}]} - "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"} - speakeasy-default-list-latest-blocks-all-chains: - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"blocks": [{"chainId": "43114", "blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txCount": 9939.63, "baseFee": "", "gasUsed": "", "gasLimit": "", "gasCost": "", "parentHash": "", "feesSpent": "", "cumulativeTransactions": ""}]} - "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"} - getLatestBlocks: - "": - parameters: - path: - chainId: "43114" - query: - pageSize: 10 - responses: - "200": - application/json: {"blocks": []} - "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"} - speakeasy-default-get-latest-blocks: - parameters: - path: - chainId: "43114" - query: - pageSize: 10 - responses: - "200": - application/json: {"blocks": []} - "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"} - getBlock: - "": - parameters: - path: - chainId: "43114" - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c" - responses: - "200": - application/json: {"chainId": "43114", "blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txCount": 9350.29, "baseFee": "", "gasUsed": "", "gasLimit": "", "gasCost": "", "parentHash": "", "feesSpent": "", "cumulativeTransactions": ""} - "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"} - speakeasy-default-get-block: - parameters: - path: - chainId: "43114" - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c" - responses: - "200": - application/json: {"chainId": "43114", "blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "txCount": 9350.29, "baseFee": "", "gasUsed": "", "gasLimit": "", "gasCost": "", "parentHash": "", "feesSpent": "", "cumulativeTransactions": ""} - "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"} - getTransactionsForBlock: - "": - parameters: - path: - chainId: "43114" - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c" - query: - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "CONTRACT_CALL", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "CONTRACT_CALL", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}]} - "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"} - speakeasy-default-get-transactions-for-block: - parameters: - path: - chainId: "43114" - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c" - query: - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "CONTRACT_CALL", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}]} - "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"} - getDeploymentTransaction: - "": - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - query: - currency: "usd" - responses: - "200": - application/json: {"erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1478.52, "value": "10000000000000000000", "erc20Token": {"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}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1478.52, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 7690.43, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://wonderful-icebreaker.org/", "metadata": {"indexStatus": "INDEXED"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 7690.43, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://wonderful-icebreaker.org/", "metadata": {"indexStatus": "INDEXED"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 7690.43, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://wonderful-icebreaker.org/", "metadata": {"indexStatus": "INDEXED"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 5194.21, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://mild-government.info/", "metadata": {"indexStatus": "THROTTLED_TOKEN_URI"}}}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 5194.21, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://mild-government.info/", "metadata": {"indexStatus": "THROTTLED_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CREATE3", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}, {"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CREATE3", "value": "10000000000000000000", "isReverted": false, "gasUsed": "", "gasLimit": ""}], "networkTokenDetails": {"networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}, "currentPrice": {"currencyCode": "usd", "value": 42.42}, "historicalPrice": {"currencyCode": "usd", "value": 42.42}}, "nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000", "input": "", "baseFeePerGas": ""}} - "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"} - speakeasy-default-get-deployment-transaction: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - query: - currency: "usd" - responses: - "200": - application/json: {"erc20Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 6491.9, "value": "10000000000000000000", "erc20Token": {"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}}}], "erc721Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 1478.52, "erc721Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://soggy-digestive.org", "metadata": {"indexStatus": "UNREACHABLE_TOKEN_URI"}, "ownerAddress": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}}], "erc1155Transfers": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "logIndex": 9500.08, "value": "10000000000000000000", "erc1155Token": {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://polished-legging.info", "metadata": {"indexStatus": "THROTTLED_TOKEN_URI"}}}], "internalTransactions": [{"from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "internalTxType": "CREATE2", "value": "10000000000000000000", "isReverted": true, "gasUsed": "", "gasLimit": ""}], "networkTokenDetails": {"networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}, "currentPrice": {"currencyCode": "usd", "value": 42.42}, "historicalPrice": {"currencyCode": "usd", "value": 42.42}}, "nativeTransaction": {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "CONTRACT_CALL", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000", "input": "", "baseFeePerGas": ""}} - "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"} - getContractMetadata: - "": - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - responses: - "200": - application/json: {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-721"} - "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"} - speakeasy-default-get-contract-metadata: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - responses: - "200": - application/json: {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-721"} - "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"} - listTransfers: - "": - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transfers": []} - "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"} - speakeasy-default-list-transfers: - parameters: - path: - chainId: "43114" - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - query: - startBlock: 6479329 - endBlock: 6479330 - pageSize: 10 - responses: - "200": - application/json: {"transfers": []} - "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"} - supportedChains: - "": - parameters: - query: - network: "mainnet" - feature: "nftIndexing" - responses: - "200": - application/json: {"chains": []} - "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"} - speakeasy-default-supported-chains: - parameters: - query: - network: "mainnet" - feature: "nftIndexing" - responses: - "200": - application/json: {"chains": []} - "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"} - getChainInfo: - "": - parameters: - path: - chainId: "43114" - responses: - "200": - application/json: {"chainId": "", "status": "OK", "chainName": "", "description": "whose save hourly enlightened regarding vice yellow commonly during", "vmName": "EVM", "rpcUrl": "https://wealthy-declaration.info/", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}} - "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"} - speakeasy-default-get-chain-info: - parameters: - path: - chainId: "43114" - responses: - "200": - application/json: {"chainId": "", "status": "OK", "chainName": "", "description": "whose save hourly enlightened regarding vice yellow commonly during", "vmName": "EVM", "rpcUrl": "https://wealthy-declaration.info/", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}} - "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"} - getAddressChains: - "": - parameters: - path: - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - responses: - "200": - application/json: {"indexedChains": [{"chainId": "", "status": "UNAVAILABLE", "chainName": "", "description": "cannon hasty anenst egg sedately sturdy solicit gah", "vmName": "EVM", "rpcUrl": "https://charming-sailor.info/", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}}, {"chainId": "", "status": "UNAVAILABLE", "chainName": "", "description": "cannon hasty anenst egg sedately sturdy solicit gah", "vmName": "EVM", "rpcUrl": "https://charming-sailor.info/", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}}]} - "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"} - speakeasy-default-get-address-chains: - parameters: - path: - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F" - responses: - "200": - application/json: {"indexedChains": [{"chainId": "", "status": "OK", "chainName": "", "description": "authentic ponder circa throbbing considering same prance", "vmName": "ETHEREUM", "rpcUrl": "https://impartial-avalanche.biz", "isTestnet": false, "networkToken": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg"}}]} - "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"} - listAllLatestTransactions: - "": - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}, {"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}]} - "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"} - speakeasy-default-list-all-latest-transactions: - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"transactions": [{"blockNumber": "339", "blockTimestamp": 1648672486, "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", "chainId": "43114", "blockIndex": 0, "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", "txStatus": "1", "txType": 1, "gasLimit": "51373", "gasUsed": "51373", "gasPrice": "470000000000", "nonce": "1", "from": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "to": {"name": "Wrapped AVAX", "symbol": "WAVAX", "decimals": 18, "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"}, "method": {"callType": "NATIVE_TRANSFER", "methodHash": "0xa9059cbb", "methodName": "transfer(address,uint256)"}, "value": "10000000000000000000"}]} - "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"} - listAllLatestBlocks: - "": - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"blocks": []} - "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"} - speakeasy-default-list-all-latest-blocks: - parameters: - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"blocks": []} - "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"} - reindexNft: - "": - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - tokenId: "145" - responses: - "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"} - speakeasy-default-reindex-nft: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - tokenId: "145" - responses: - "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"} - listTokens: - "": - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - query: - pageSize: 10 - responses: - "200": - application/json: {"tokens": [{"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "ercType": "ERC-1155", "tokenId": "", "tokenUri": "https://hurtful-mozzarella.net/", "metadata": {"indexStatus": "INVALID_TOKEN_URI"}}]} - "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"} - speakeasy-default-list-tokens: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - query: - pageSize: 10 - responses: - "200": - application/json: {"tokens": []} - "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"} - getTokenDetails: - "": - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - tokenId: "145" - responses: - "200": - application/json: {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://energetic-decryption.biz/", "metadata": {"indexStatus": "INVALID_TOKEN_URI_SCHEME"}} - "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"} - speakeasy-default-get-token-details: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - tokenId: "145" - responses: - "200": - application/json: {"address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "name": "Wrapped AVAX", "symbol": "WAVAX", "ercType": "ERC-721", "tokenId": "", "tokenUri": "https://energetic-decryption.biz/", "metadata": {"indexStatus": "INVALID_TOKEN_URI_SCHEME"}} - "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"} - getOperationResult: - "": - parameters: - path: - operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138" - responses: - "200": - application/json: {"operationId": "", "operationType": "TRANSACTION_EXPORT_PRIMARY_NETWORK", "operationStatus": "RUNNING", "createdAtTimestamp": 2175.46, "updatedAtTimestamp": 1060.47} - "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"} - speakeasy-default-get-operation-result: - parameters: - path: - operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138" - responses: - "200": - application/json: {"operationId": "", "operationType": "TRANSACTION_EXPORT_PRIMARY_NETWORK", "operationStatus": "RUNNING", "createdAtTimestamp": 2175.46, "updatedAtTimestamp": 1060.47} - "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"} - postTransactionExportJob: - speakeasy-default-post-transaction-export-job: - requestBody: - application/json: {"type": "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING", "firstDate": "2023-05-01", "lastDate": "2023-05-02", "options": {"includeChains": ["p-chain"]}} - responses: - "201": - application/json: {"operationId": "", "operationType": "TRANSACTION_EXPORT_EVM", "operationStatus": "COMPLETED", "createdAtTimestamp": 3632.98, "updatedAtTimestamp": 2169.82} - "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"} - getAssetDetails: - "": - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof" - responses: - "200": - application/json: {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "createdAtTimestamp": 1675444720, "cap": "variable"} - "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"} - speakeasy-default-get-asset-details: - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof" - responses: - "200": - application/json: {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "createdAtTimestamp": 1675444720, "cap": "variable"} - "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"} - getChainIdsForAddresses: - "": - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - responses: - "200": - application/json: {"addresses": [{"address": "5348 Larson Brook", "blockchainIds": []}, {"address": "5348 Larson Brook", "blockchainIds": []}]} - "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"} - speakeasy-default-get-chain-ids-for-addresses: - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - responses: - "200": - application/json: {"addresses": [{"address": "5348 Larson Brook", "blockchainIds": []}]} - "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"} - getNetworkDetails: - "": - parameters: - path: - network: "mainnet" - responses: - "200": - application/json: {"validatorDetails": {"validatorCount": 2222.44, "totalAmountStaked": "", "estimatedAnnualStakingReward": "", "stakingDistributionByVersion": [{"version": "", "amountStaked": "", "validatorCount": 2606.4}, {"version": "", "amountStaked": "", "validatorCount": 2606.4}, {"version": "", "amountStaked": "", "validatorCount": 2606.4}], "stakingRatio": ""}, "delegatorDetails": {"delegatorCount": 2068.29, "totalAmountStaked": ""}} - "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"} - speakeasy-default-get-network-details: - parameters: - path: - network: "mainnet" - responses: - "200": - application/json: {"validatorDetails": {"validatorCount": 2222.44, "totalAmountStaked": "", "estimatedAnnualStakingReward": "", "stakingDistributionByVersion": [{"version": "", "amountStaked": "", "validatorCount": 2606.4}], "stakingRatio": ""}, "delegatorDetails": {"delegatorCount": 2068.29, "totalAmountStaked": ""}} - "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"} - listBlockchains: - "": - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"blockchains": []} - "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"} - speakeasy-default-list-blockchains: - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"blockchains": []} - "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"} - getBlockchainById: - "": - parameters: - path: - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" - network: "mainnet" - responses: - "200": - application/json: {"createBlockTimestamp": 6647.43, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114} - "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"} - speakeasy-default-get-blockchain-by-id: - parameters: - path: - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" - network: "mainnet" - responses: - "200": - application/json: {"createBlockTimestamp": 6647.43, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114, "genesisData": {}} - "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"} - listSubnets: - "": - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"subnets": [{"createBlockTimestamp": 7890.03, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", ""], "threshold": 8473.89, "locktime": 598.99, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": [{"createBlockTimestamp": 643.3, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114}]}, {"createBlockTimestamp": 7890.03, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", ""], "threshold": 8473.89, "locktime": 598.99, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": [{"createBlockTimestamp": 643.3, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114}]}, {"createBlockTimestamp": 7890.03, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", ""], "threshold": 8473.89, "locktime": 598.99, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": [{"createBlockTimestamp": 643.3, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114}]}]} - "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"} - speakeasy-default-list-subnets: - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"subnets": [{"createBlockTimestamp": 7890.03, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", ""], "threshold": 8473.89, "locktime": 598.99, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": []}]} - "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"} - getSubnetById: - "": - parameters: - path: - network: "mainnet" - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"createBlockTimestamp": 7868.74, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", "", ""], "threshold": 7400.73, "locktime": 5956.21, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": [{"createBlockTimestamp": 6120.58, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114}, {"createBlockTimestamp": 6120.58, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114}]} - "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"} - speakeasy-default-get-subnet-by-id: - parameters: - path: - network: "mainnet" - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"createBlockTimestamp": 7868.74, "createBlockIndex": "", "subnetId": "", "ownerAddresses": ["", "", ""], "threshold": 7400.73, "locktime": 5956.21, "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}, "isL1": true, "blockchains": [{"createBlockTimestamp": 6120.58, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114, "genesisData": {}}]} - "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"} - listValidators: - "": - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - validationStatus: "completed" - minDelegationCapacity: "0" - maxDelegationCapacity: "720000000000000000" - minTimeRemaining: 0 - maxTimeRemaining: 2147483647 - minFeePercentage: 2 - maxFeePercentage: 100 - minUptimePerformance: 90 - maxUptimePerformance: 100 - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"validators": [{"txHash": "", "nodeId": "", "subnetId": "", "amountStaked": "", "startTimestamp": 9409.97, "endTimestamp": 3117.08, "removeTxHash": "", "removeTimestamp": 4682.82, "validationStatus": "removed"}]} - "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"} - speakeasy-default-list-validators: - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - validationStatus: "completed" - minDelegationCapacity: "0" - maxDelegationCapacity: "720000000000000000" - minTimeRemaining: 0 - maxTimeRemaining: 2147483647 - minFeePercentage: 2 - maxFeePercentage: 100 - minUptimePerformance: 90 - maxUptimePerformance: 100 - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"validators": []} - "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"} - getSingleValidatorDetails: - "": - parameters: - path: - network: "mainnet" - nodeId: "NodeID-111111111111111111116DBWJs" - query: - pageSize: 10 - validationStatus: "completed" - sortOrder: "asc" - responses: - "200": - application/json: {"validators": []} - "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"} - speakeasy-default-get-single-validator-details: - parameters: - path: - network: "mainnet" - nodeId: "NodeID-111111111111111111116DBWJs" - query: - pageSize: 10 - validationStatus: "completed" - sortOrder: "asc" - responses: - "200": - application/json: {"validators": []} - "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"} - listDelegators: - "": - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - rewardAddresses: "P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc" - sortOrder: "asc" - delegationStatus: "completed" - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - responses: - "200": - application/json: {"delegators": [{"txHash": "", "nodeId": "", "rewardAddresses": ["", ""], "amountDelegated": "", "delegationFee": "", "startTimestamp": 2534.09, "endTimestamp": 2997.82, "estimatedGrossReward": "", "estimatedNetReward": "", "delegationStatus": "active"}]} - "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"} - speakeasy-default-list-delegators: - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - rewardAddresses: "P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc" - sortOrder: "asc" - delegationStatus: "completed" - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - responses: - "200": - application/json: {"delegators": []} - "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"} - listL1Validators: - "": - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX" - nodeId: "NodeID-111111111111111111116DBWJs" - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"validators": [{"validationId": "", "validationIdHex": "", "nodeId": "", "subnetId": "", "weight": 9741.29, "remainingBalance": 401.23, "creationTimestamp": 9067.99, "blsCredentials": {}, "remainingBalanceOwner": {"addresses": [""], "threshold": 9243.92}, "deactivationOwner": {"addresses": [], "threshold": 488.52}}, {"validationId": "", "validationIdHex": "", "nodeId": "", "subnetId": "", "weight": 9741.29, "remainingBalance": 401.23, "creationTimestamp": 9067.99, "blsCredentials": {}, "remainingBalanceOwner": {"addresses": [""], "threshold": 9243.92}, "deactivationOwner": {"addresses": [], "threshold": 488.52}}], "blockHeight": ""} - "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"} - speakeasy-default-list-l1-validators: - parameters: - path: - network: "mainnet" - query: - pageSize: 10 - l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX" - nodeId: "NodeID-111111111111111111116DBWJs" - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"validators": [{"validationId": "", "validationIdHex": "", "nodeId": "", "subnetId": "", "weight": 9741.29, "remainingBalance": 401.23, "creationTimestamp": 9067.99, "blsCredentials": {}, "remainingBalanceOwner": {"addresses": [""], "threshold": 9243.92}, "deactivationOwner": {"addresses": [], "threshold": 488.52}}], "blockHeight": ""} - "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"} - getTxByHash: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP" - responses: - "200": - application/json: {"txHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "chainFormat": "non-linear", "timestamp": 1600762738, "txType": "CreateAssetTx", "memo": "0x546865204176616c616e6368652050726f6a656374", "consumedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}, {"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}, {"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}], "amountUnlocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "amountCreated": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "assetCreated": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "createdAtTimestamp": 1675444720, "cap": "fixed"}, "vertices": [{"hash": "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", "height": 1961, "timestamp": 1600762738}]} - "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"} - speakeasy-default-get-tx-by-hash: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP" - responses: - "200": - application/json: {"txHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "chainFormat": "non-linear", "timestamp": 1600762738, "txType": "CreateAssetTx", "memo": "0x546865204176616c616e6368652050726f6a656374", "consumedUtxos": [], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "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"}], "amountUnlocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountCreated": [], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "assetCreated": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "createdAtTimestamp": 1675444720, "cap": "variable"}, "vertices": []} - "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"} - listLatestPrimaryNetworkTransactions: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [{"txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", "txType": "AddPermissionlessDelegatorTx", "blockTimestamp": 1648672486, "blockNumber": "", "blockHash": "", "consumedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", "amount": "133.31", "assetId": "", "blockNumber": "", "blockTimestamp": 1210.97, "outputIndex": 8027.02, "txHash": "", "utxoType": "STAKE"}, {"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", "amount": "133.31", "assetId": "", "blockNumber": "", "blockTimestamp": 1210.97, "outputIndex": 8027.02, "txHash": "", "utxoType": "STAKE"}], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", "amount": "868.48", "assetId": "", "blockNumber": "", "blockTimestamp": 2515.13, "outputIndex": 5912.36, "txHash": "", "utxoType": "STAKE"}], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "value": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "amountStaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountL1ValidatorBalanceBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-latest-primary-network-transactions: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [], "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - listActivePrimaryNetworkStakingTransactions: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [{"txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", "txType": "AddPermissionlessDelegatorTx", "blockTimestamp": 1648672486, "blockNumber": "", "blockHash": "", "consumedUtxos": [], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", "amount": "809.59", "assetId": "", "blockNumber": "", "blockTimestamp": 9630.02, "outputIndex": 4456.51, "txHash": "", "utxoType": "STAKE"}], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "value": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountStaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountL1ValidatorBalanceBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}}, {"txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", "txType": "AddPermissionlessDelegatorTx", "blockTimestamp": 1648672486, "blockNumber": "", "blockHash": "", "consumedUtxos": [], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", "amount": "809.59", "assetId": "", "blockNumber": "", "blockTimestamp": 9630.02, "outputIndex": 4456.51, "txHash": "", "utxoType": "STAKE"}], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "value": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountStaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountL1ValidatorBalanceBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}}], "chainInfo": {"chainName": "c-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-active-primary-network-staking-transactions: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"transactions": [{"txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", "txType": "AddPermissionlessDelegatorTx", "blockTimestamp": 1648672486, "blockNumber": "", "blockHash": "", "consumedUtxos": [], "emittedUtxos": [], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "value": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountBurned": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "amountStaked": [], "amountL1ValidatorBalanceBurned": [], "subnetOwnershipInfo": {"locktime": 0, "threshold": 1, "addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"]}}], "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - listAssetTransactions: - "": - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof" - query: - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [{"txHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", "chainFormat": "non-linear", "timestamp": 1600762738, "txType": "UNKNOWN", "memo": "0x546865204176616c616e6368652050726f6a656374", "consumedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}], "emittedUtxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}], "amountUnlocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000"}], "amountCreated": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}], "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "assetCreated": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "createdAtTimestamp": 1675444720, "cap": "variable"}, "vertices": [{"hash": "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", "height": 1961, "timestamp": 1600762738}, {"hash": "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", "height": 1961, "timestamp": 1600762738}]}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-asset-transactions: - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof" - query: - txTypes: ["AddValidatorTx"] - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"transactions": [], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - listPendingPrimaryNetworkRewards: - "": - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - responses: - "200": - application/json: {"pendingRewards": [{"addresses": ["avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"], "txHash": "", "amountStaked": "", "nodeId": "", "startTimestamp": 6291.11, "endTimestamp": 1095.41, "rewardType": "VALIDATOR_FEE", "progress": 6540.83, "estimatedReward": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}}, {"addresses": ["avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"], "txHash": "", "amountStaked": "", "nodeId": "", "startTimestamp": 6291.11, "endTimestamp": 1095.41, "rewardType": "VALIDATOR_FEE", "progress": 6540.83, "estimatedReward": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}}]} - "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"} - speakeasy-default-list-pending-primary-network-rewards: - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - responses: - "200": - application/json: {"pendingRewards": [{"addresses": ["avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"], "txHash": "", "amountStaked": "", "nodeId": "", "startTimestamp": 6291.11, "endTimestamp": 1095.41, "rewardType": "VALIDATOR_FEE", "progress": 6540.83, "estimatedReward": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000"}}]} - "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"} - listHistoricalPrimaryNetworkRewards: - "": - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - currency: "usd" - responses: - "200": - application/json: {"historicalRewards": [{"addresses": ["avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"], "txHash": "", "amountStaked": "", "nodeId": "", "startTimestamp": 9778.68, "endTimestamp": 7911.98, "rewardType": "VALIDATOR_FEE", "utxoId": "", "outputIndex": 904.52, "reward": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000", "historicalPrice": {"currencyCode": "usd", "value": 42.42}}, "rewardTxHash": ""}]} - "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"} - speakeasy-default-list-historical-primary-network-rewards: - parameters: - path: - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs" - sortOrder: "asc" - currency: "usd" - responses: - "200": - application/json: {"historicalRewards": []} - "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"} - getUtxosByAddresses: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"utxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}, {"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}, {"signature": "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", "publicKey": "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"}], "locktime": 0, "outputIndex": "38", "threshold": 1, "timestamp": 1599696000, "utxoType": "mint"}], "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - speakeasy-default-get-utxos-by-addresses: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"utxos": [{"addresses": ["avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"], "asset": {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "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"}], "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - getBalancesByAddresses: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - blockTimestamp: 1599696000 - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - responses: - "200": - application/json: {"balances": {"unlockedUnstaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000", "utxoCount": 1}], "unlockedStaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}], "lockedPlatform": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}], "lockedStakeable": [], "lockedStaked": [], "pendingStaked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}, {"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}], "atomicMemoryUnlocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000", "utxoCount": 1, "sharedWithChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "status": ""}], "atomicMemoryLocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "secp256k1", "amount": "5001000", "utxoCount": 1, "sharedWithChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "status": ""}]}, "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-get-balances-by-addresses: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - blockTimestamp: 1599696000 - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg" - responses: - "200": - application/json: {"balances": {"unlockedUnstaked": [], "unlockedStaked": [], "lockedPlatform": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}], "lockedStakeable": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1}], "lockedStaked": [], "pendingStaked": [], "atomicMemoryUnlocked": [{"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", "name": "Avalanche", "symbol": "AVAX", "denomination": 9, "type": "nft", "amount": "5001000", "utxoCount": 1, "sharedWithChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "status": ""}], "atomicMemoryLocked": []}, "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - getBlockById: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S" - responses: - "200": - application/json: {"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 1204.4, "blockType": "", "txCount": 279.32, "transactions": [""], "blockSizeBytes": 6572.63} - "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"} - speakeasy-default-get-block-by-id: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S" - responses: - "200": - application/json: {"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 1204.4, "blockType": "", "txCount": 279.32, "transactions": [""], "blockSizeBytes": 6572.63} - "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"} - listPrimaryNetworkBlocksByNodeId: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - nodeId: "NodeID-111111111111111111116DBWJs" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"blocks": [{"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 1263.74, "blockType": "", "txCount": 8908.9, "transactions": ["", ""], "blockSizeBytes": 4318.53}], "chainInfo": {"chainName": "x-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-primary-network-blocks-by-node-id: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - nodeId: "NodeID-111111111111111111116DBWJs" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"blocks": [], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - listLatestPrimaryNetworkBlocks: - "": - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"blocks": [{"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 8370.94, "blockType": "", "txCount": 4028.53, "transactions": ["", ""], "blockSizeBytes": 3564.54}, {"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 8370.94, "blockType": "", "txCount": 4028.53, "transactions": ["", ""], "blockSizeBytes": 3564.54}, {"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 8370.94, "blockType": "", "txCount": 4028.53, "transactions": ["", ""], "blockSizeBytes": 3564.54}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-latest-primary-network-blocks: - parameters: - path: - blockchainId: "p-chain" - network: "mainnet" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"blocks": [{"blockNumber": "", "blockHash": "", "parentHash": "", "blockTimestamp": 8370.94, "blockType": "", "txCount": 4028.53, "transactions": ["", ""], "blockSizeBytes": 3564.54}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - listLatestXChainVertices: - "": - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - query: - pageSize: 10 - responses: - "200": - application/json: {"vertices": [{"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 3651.8, "vertexIndex": 2146.37, "vertexTimestamp": 2588.3, "txCount": 5072.19, "transactions": [], "vertexSizeBytes": 2432.13}, {"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 3651.8, "vertexIndex": 2146.37, "vertexTimestamp": 2588.3, "txCount": 5072.19, "transactions": [], "vertexSizeBytes": 2432.13}, {"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 3651.8, "vertexIndex": 2146.37, "vertexTimestamp": 2588.3, "txCount": 5072.19, "transactions": [], "vertexSizeBytes": 2432.13}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-list-latest-X-chain-vertices: - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - query: - pageSize: 10 - responses: - "200": - application/json: {"vertices": [{"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 3651.8, "vertexIndex": 2146.37, "vertexTimestamp": 2588.3, "txCount": 5072.19, "transactions": [], "vertexSizeBytes": 2432.13}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - getVertexByHash: - "": - parameters: - path: - vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr" - blockchainId: "x-chain" - network: "mainnet" - responses: - "200": - application/json: {"vertexHash": "", "parentHashes": ["", "", ""], "vertexHeight": 9472.04, "vertexIndex": 8056.53, "vertexTimestamp": 8641.27, "txCount": 9098.18, "transactions": [], "vertexSizeBytes": 9344.17} - "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"} - speakeasy-default-get-vertex-by-hash: - parameters: - path: - vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr" - blockchainId: "x-chain" - network: "mainnet" - responses: - "200": - application/json: {"vertexHash": "", "parentHashes": ["", "", ""], "vertexHeight": 9472.04, "vertexIndex": 8056.53, "vertexTimestamp": 8641.27, "txCount": 9098.18, "transactions": [], "vertexSizeBytes": 9344.17} - "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"} - getVertexByHeight: - "": - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - query: - vertexHeight: 123 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"vertices": [{"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 9781.82, "vertexIndex": 355.99, "vertexTimestamp": 8221.86, "txCount": 5711.38, "transactions": [], "vertexSizeBytes": 250.41}, {"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 9781.82, "vertexIndex": 355.99, "vertexTimestamp": 8221.86, "txCount": 5711.38, "transactions": [], "vertexSizeBytes": 250.41}, {"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 9781.82, "vertexIndex": 355.99, "vertexTimestamp": 8221.86, "txCount": 5711.38, "transactions": [], "vertexSizeBytes": 250.41}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - speakeasy-default-get-vertex-by-height: - parameters: - path: - blockchainId: "x-chain" - network: "mainnet" - query: - vertexHeight: 123 - pageSize: 10 - sortOrder: "asc" - responses: - "200": - application/json: {"vertices": [{"vertexHash": "", "parentHashes": ["", ""], "vertexHeight": 9781.82, "vertexIndex": 355.99, "vertexTimestamp": 8221.86, "txCount": 5711.38, "transactions": [], "vertexSizeBytes": 250.41}], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}} - "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"} - getTeleporterMessage: - "": - parameters: - path: - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d" - responses: - "200": - application/json: {"messageId": "", "teleporterContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": false, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 4759.29, "gasSpent": ""}, "destinationTransaction": {"txHash": "", "timestamp": 2265.19, "gasSpent": "", "rewardRedeemer": "", "delivererAddress": ""}, "status": "delivered"} - "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"} - speakeasy-default-get-teleporter-message: - parameters: - path: - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d" - responses: - "200": - application/json: {"messageId": "", "teleporterContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": false, "receipts": [], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 4759.29, "gasSpent": ""}, "destinationTransaction": {"txHash": "", "timestamp": 2265.19, "gasSpent": "", "rewardRedeemer": "", "delivererAddress": ""}, "status": "delivered"} - "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"} - listTeleporterMessages: - "": - parameters: - query: - pageSize: 10 - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY" - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC" - from: "0x321eDA69247566D662178feE695C7026c604Cd94" - network: "mainnet" - responses: - "200": - application/json: {"messages": []} - "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"} - speakeasy-default-list-teleporter-messages: - parameters: - query: - pageSize: 10 - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY" - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC" - from: "0x321eDA69247566D662178feE695C7026c604Cd94" - network: "mainnet" - responses: - "200": - application/json: {"messages": []} - "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"} - listTeleporterMessagesByAddress: - "": - parameters: - path: - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc" - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"messages": [{"messageId": "", "teleporterContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 4875.14, "gasSpent": ""}, "status": "pending"}]} - "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"} - speakeasy-default-list-teleporter-messages-by-address: - parameters: - path: - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc" - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"messages": []} - "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"} - getIcmMessage: - "": - parameters: - path: - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d" - responses: - "200": - application/json: {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": false, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}, {"receivedMessageNonce": "", "relayerRewardAddress": ""}, {"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 6447.07, "gasSpent": ""}, "status": "pending"} - "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"} - speakeasy-default-get-icm-message: - parameters: - path: - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d" - responses: - "200": - application/json: {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": false, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 6447.07, "gasSpent": ""}, "status": "pending"} - "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"} - listIcmMessages: - "": - parameters: - query: - pageSize: 10 - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY" - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC" - from: "0x321eDA69247566D662178feE695C7026c604Cd94" - network: "mainnet" - responses: - "200": - application/json: {"messages": [{"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}, {"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 9884.06, "gasSpent": ""}, "status": "pending"}, {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [], "receiptDelivered": false, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 9884.06, "gasSpent": ""}, "status": "pending"}, {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 9884.06, "gasSpent": ""}, "status": "pending"}]} - "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"} - speakeasy-default-list-icm-messages: - parameters: - query: - pageSize: 10 - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY" - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC" - from: "0x321eDA69247566D662178feE695C7026c604Cd94" - network: "mainnet" - responses: - "200": - application/json: {"messages": [{"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 9884.06, "gasSpent": ""}, "destinationTransaction": {"txHash": "", "timestamp": 1696.41, "gasSpent": "", "rewardRedeemer": "", "delivererAddress": ""}, "status": "delivered"}]} - "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"} - listIcmMessagesByAddress: - "": - parameters: - path: - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc" - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"messages": [{"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 5752.29, "gasSpent": ""}, "status": "pending"}, {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": false, "receipts": [], "receiptDelivered": false, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 5752.29, "gasSpent": ""}, "status": "pending"}, {"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [{"receivedMessageNonce": "", "relayerRewardAddress": ""}, {"receivedMessageNonce": "", "relayerRewardAddress": ""}], "receiptDelivered": false, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 5752.29, "gasSpent": ""}, "destinationTransaction": {"txHash": "", "timestamp": 8091.74, "gasSpent": "", "rewardRedeemer": "", "delivererAddress": ""}, "status": "delivered"}]} - "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"} - speakeasy-default-list-icm-messages-by-address: - parameters: - path: - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc" - query: - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"messages": [{"messageId": "", "icmContractAddress": "", "sourceBlockchainId": "", "destinationBlockchainId": "", "sourceEvmChainId": "", "destinationEvmChainId": "", "messageNonce": "", "from": "", "to": "", "messageExecuted": true, "receipts": [], "receiptDelivered": true, "rewardDetails": {"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}, "value": ""}, "sourceTransaction": {"txHash": "", "timestamp": 5752.29, "gasSpent": ""}, "status": "pending"}]} - "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"} - getApiUsageMetrics: - "": - parameters: - query: - startTimestamp: 1739507200 - endTimestamp: 1739664000 - timeInterval: "daily" - groupBy: "requestPath" - responses: - "200": - application/json: {"aggregateDuration": "", "orgId": "", "metrics": [{"timestamp": 379.63, "values": [{"groupedBy": "apiKeyId", "totalRequests": 2719.94, "requestsPerSecond": 7296.32, "successRatePercent": 2247.1, "medianResponseTimeMsecs": 3417.94, "invalidRequests": 9312.42, "apiCreditsUsed": 4277.2, "apiCreditsWasted": 9784.91}, {"groupedBy": "apiKeyId", "totalRequests": 2719.94, "requestsPerSecond": 7296.32, "successRatePercent": 2247.1, "medianResponseTimeMsecs": 3417.94, "invalidRequests": 9312.42, "apiCreditsUsed": 4277.2, "apiCreditsWasted": 9784.91}]}, {"timestamp": 379.63, "values": [{"groupedBy": "apiKeyId", "totalRequests": 2719.94, "requestsPerSecond": 7296.32, "successRatePercent": 2247.1, "medianResponseTimeMsecs": 3417.94, "invalidRequests": 9312.42, "apiCreditsUsed": 4277.2, "apiCreditsWasted": 9784.91}, {"groupedBy": "apiKeyId", "totalRequests": 2719.94, "requestsPerSecond": 7296.32, "successRatePercent": 2247.1, "medianResponseTimeMsecs": 3417.94, "invalidRequests": 9312.42, "apiCreditsUsed": 4277.2, "apiCreditsWasted": 9784.91}]}]} - "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"} - speakeasy-default-get-api-usage-metrics: - parameters: - query: - startTimestamp: 1739507200 - endTimestamp: 1739664000 - timeInterval: "daily" - groupBy: "requestPath" - responses: - "200": - application/json: {"aggregateDuration": "", "orgId": "", "metrics": [{"timestamp": 379.63, "values": [{"groupedBy": "apiKeyId", "totalRequests": 2719.94, "requestsPerSecond": 7296.32, "successRatePercent": 2247.1, "medianResponseTimeMsecs": 3417.94, "invalidRequests": 9312.42, "apiCreditsUsed": 4277.2, "apiCreditsWasted": 9784.91}]}]} - "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"} - getApiLogs: - "": - parameters: - query: - startTimestamp: 1739507200 - endTimestamp: 1739664000 - pageSize: 10 - responses: - "200": - application/json: {"orgId": "", "logs": [{"orgId": "", "logId": "", "eventTimestamp": 1363.12, "apiKeyId": "", "apiKeyAlias": "", "hostRegion": "", "requestType": "rpc", "requestPath": "", "apiCreditsConsumed": 2873.6, "requestDurationMsecs": 1130.82, "responseCode": 1753.48, "metadata": {"ipAddress": "31.8.249.211", "host": "dependent-fibre.net", "userAgent": ""}}]} - "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"} - speakeasy-default-get-api-logs: - parameters: - query: - startTimestamp: 1739507200 - endTimestamp: 1739664000 - pageSize: 10 - responses: - "200": - application/json: {"orgId": "", "logs": []} - "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"} - getSubnetRpcUsageMetrics: - "": - parameters: - query: - timeInterval: "daily" - startTimestamp: 1739507200 - endTimestamp: 1739664000 - groupBy: "rpcMethod" - responses: - "200": - application/json: {"aggregateDuration": "", "metrics": [{"timestamp": 107.24, "values": [{"totalRequests": 6489.84, "apiCreditsUsed": 6770.4, "requestsPerSecond": 4261.28, "successRatePercent": 762.87, "medianResponseTimeMsecs": 9776.15, "invalidRequests": 2101.78, "apiCreditsWasted": 9544.03, "groupedBy": "continent"}, {"totalRequests": 6489.84, "apiCreditsUsed": 6770.4, "requestsPerSecond": 4261.28, "successRatePercent": 762.87, "medianResponseTimeMsecs": 9776.15, "invalidRequests": 2101.78, "apiCreditsWasted": 9544.03, "groupedBy": "continent"}]}], "chainId": ""} - "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"} - speakeasy-default-get-subnet-rpc-usage-metrics: - parameters: - query: - timeInterval: "daily" - startTimestamp: 1739507200 - endTimestamp: 1739664000 - groupBy: "rpcMethod" - responses: - "200": - application/json: {"aggregateDuration": "", "metrics": [], "chainId": ""} - "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"} - getRpcUsageMetrics: - "": - parameters: - query: - timeInterval: "daily" - startTimestamp: 1739507200 - endTimestamp: 1739664000 - groupBy: "rpcMethod" - responses: - "200": - application/json: {"aggregateDuration": "", "metrics": [{"timestamp": 8318.92, "values": [{"totalRequests": 5363.06, "apiCreditsUsed": 3089.82, "requestsPerSecond": 6912.36, "successRatePercent": 9094.22, "medianResponseTimeMsecs": 3910.79, "invalidRequests": 3025.49, "apiCreditsWasted": 797.03, "groupedBy": "country"}]}, {"timestamp": 8318.92, "values": [{"totalRequests": 5363.06, "apiCreditsUsed": 3089.82, "requestsPerSecond": 6912.36, "successRatePercent": 9094.22, "medianResponseTimeMsecs": 3910.79, "invalidRequests": 3025.49, "apiCreditsWasted": 797.03, "groupedBy": "country"}]}], "chainId": ""} - "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"} - speakeasy-default-get-rpc-usage-metrics: - parameters: - query: - timeInterval: "daily" - startTimestamp: 1739507200 - endTimestamp: 1739664000 - groupBy: "rpcMethod" - responses: - "200": - application/json: {"aggregateDuration": "", "metrics": [{"timestamp": 8318.92, "values": []}], "chainId": ""} - "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"} - aggregateSignatures: - "": - parameters: - path: - network: "mainnet" - requestBody: - application/json: {"message": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", "justification": "0001abcdabcfff", "signingSubnetId": "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", "quorumPercentage": 50} - responses: - "201": - application/json: {"signedMessage": "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af"} - "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"} - speakeasy-default-aggregate-signatures: - parameters: - path: - network: "mainnet" - requestBody: - application/json: {"message": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", "justification": "0001abcdabcfff", "signingSubnetId": "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", "quorumPercentage": 50} - responses: - "201": - application/json: {"signedMessage": "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af"} - "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"} - getAggregatedSignatures: - "": - parameters: - path: - network: "mainnet" - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP" - responses: - "201": - application/json: {"signedMessage": "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af"} - "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"} - speakeasy-default-get-aggregated-signatures: - parameters: - path: - network: "mainnet" - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP" - responses: - "201": - application/json: {"signedMessage": "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af"} - "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"} -examplesVersion: 1.0.2 -generatedTests: {} diff --git a/data/.speakeasy/gen.yaml b/data/.speakeasy/gen.yaml deleted file mode 100644 index 3cd17bcc..00000000 --- a/data/.speakeasy/gen.yaml +++ /dev/null @@ -1,62 +0,0 @@ -configVersion: 2.0.0 -generation: - devContainers: - enabled: true - schemaPath: https://glacier-api.avax.network/api-json - sdkClassName: Avalanche - maintainOpenAPIOrder: true - usageSnippets: - optionalPropertyRendering: withExample - sdkInitStyle: constructor - useClassNamesForArrayFields: true - fixes: - nameResolutionDec2023: true - nameResolutionFeb2025: true - parameterOrderingFeb2024: true - requestResponseComponentNamesFeb2024: true - securityFeb2025: true - sharedErrorComponentsApr2025: false - auth: - oAuth2ClientCredentialsEnabled: false - oAuth2PasswordEnabled: false - tests: - generateTests: true - generateNewTests: false - skipResponseBodyAssertions: false -typescript: - version: 0.5.3 - additionalDependencies: - dependencies: {} - devDependencies: {} - peerDependencies: {} - additionalPackageJSON: {} - author: Avacloud - baseErrorName: AvalancheError - clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true - defaultErrorName: AvalancheAPIError - enableCustomCodeRegions: false - enableMCPServer: true - enableReactQuery: false - enumFormat: union - flattenGlobalSecurity: true - flatteningOrder: parameters-first - generateExamples: true - imports: - option: openapi - paths: - callbacks: models/callbacks - errors: models/errors - operations: models/operations - shared: models/components - webhooks: models/webhooks - inputModelSuffix: input - jsonpath: rfc9535 - maxMethodParams: 0 - methodArguments: require-security-and-request - moduleFormat: dual - outputModelSuffix: output - packageName: '@avalanche-sdk/data' - responseFormat: flat - templateVersion: v2 - useIndexModules: true diff --git a/data/CONTRIBUTING.md b/data/CONTRIBUTING.md deleted file mode 100644 index d585717f..00000000 --- a/data/CONTRIBUTING.md +++ /dev/null @@ -1,26 +0,0 @@ -# Contributing to This Repository - -Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. - -## How to Report Issues - -If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: - -- A clear and descriptive title -- Steps to reproduce the issue -- Expected and actual behavior -- Any relevant logs, screenshots, or error messages -- Information about your environment (e.g., operating system, software versions) - - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed - -## Issue Triage and Upstream Fixes - -We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. - -## Contact - -If you have any questions or need further assistance, please feel free to reach out by opening an issue. - -Thank you for your understanding and cooperation! - -The Maintainers diff --git a/data/FUNCTIONS.md b/data/FUNCTIONS.md deleted file mode 100644 index 9821a7d2..00000000 --- a/data/FUNCTIONS.md +++ /dev/null @@ -1,85 +0,0 @@ -# Standalone Functions - -> [!NOTE] -> This section is useful if you are using a bundler and targetting browsers and -> runtimes where the size of an application affects performance and load times. - -Every method in this SDK is also available as a standalone function. This -alternative API is suitable when targetting the browser or serverless runtimes -and using a bundler to build your application since all unused functionality -will be tree-shaken away. This includes code for unused methods, Zod schemas, -encoding helpers and response handlers. The result is dramatically smaller -impact on the application's final bundle size which grows very slowly as you use -more and more functionality from this SDK. - -Calling methods through the main SDK class remains a valid and generally more -more ergonomic option. Standalone functions represent an optimisation for a -specific category of applications. - -## Example - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataHealthCheck } from "@avalanche-sdk/data/funcs/dataHealthCheck.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataHealthCheck(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataHealthCheck failed:", res.error); - } -} - -run(); -``` - -## Result types - -Standalone functions differ from SDK methods in that they return a -`Result` type to capture _known errors_ and document them using -the type system. By avoiding throwing errors, application code maintains clear -control flow and error-handling become part of the regular flow of application -code. - -> We use the term "known errors" because standalone functions, and JavaScript -> code in general, can still throw unexpected errors such as `TypeError`s, -> `RangeError`s and `DOMException`s. Exhaustively catching all errors may be -> something this SDK addresses in the future. Nevertheless, there is still a lot -> of benefit from capturing most errors and turning them into values. - -The second reason for this style of programming is because these functions will -typically be used in front-end applications where exception throwing is -sometimes discouraged or considered unidiomatic. React and similar ecosystems -and libraries tend to promote this style of programming so that components -render useful content under all states (loading, success, error and so on). - -The general pattern when calling standalone functions looks like this: - -```typescript -import { Core } from ""; -import { fetchSomething } from "/funcs/fetchSomething.js"; - -const client = new Core(); - -async function run() { - const result = await fetchSomething(client, { id: "123" }); - if (!result.ok) { - // You can throw the error or handle it. It's your choice now. - throw result.error; - } - - console.log(result.value); -} - -run(); -``` - -Notably, `result.error` above will have an explicit type compared to a try-catch -variation where the error in the catch block can only be of type `unknown` (or -`any` depending on your TypeScript settings). \ No newline at end of file diff --git a/data/README.md b/data/README.md deleted file mode 100644 index be985261..00000000 --- a/data/README.md +++ /dev/null @@ -1,817 +0,0 @@ -
-

@avalanche-sdk/data

-

- The Avalanche Data SDK is a powerful and flexible toolset designed to simplify the integration with Avalanche's suite of blockchain services. -

-

- Currently, this SDK is focused on providing robust support for Data APIs. -

- - - - -
- - - - -## Summary - -Data API: The Data API provides web3 application developers with multi-chain data related to Avalanche's primary network, Avalanche subnets, and Ethereum. With Data API, you can easily build products that leverage real-time and historical transaction and transfer history, native and token balances, and various types of token metadata. The API is in Beta and may be subject to change.

If you have feedback or feature requests for the API, please submit them here. Bug reports can be submitted here, and any potential security issues can be reported here. - - - -## Table of Contents - - * [SDK Installation](#sdk-installation) - * [Requirements](#requirements) - * [SDK Example Usage](#sdk-example-usage) - * [Authentication](#authentication) - * [Available Resources and Operations](#available-resources-and-operations) - * [Standalone functions](#standalone-functions) - * [Global Parameters](#global-parameters) - * [Pagination](#pagination) - * [Retries](#retries) - * [Error Handling](#error-handling) - * [Server Selection](#server-selection) - * [Custom HTTP Client](#custom-http-client) - * [Debugging](#debugging) -* [Development](#development) - * [Maturity](#maturity) - * [Contributions](#contributions) - - - - -## SDK Installation - -The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers. - -### NPM - -```bash -npm add @avalanche-sdk/data -``` - -### PNPM - -```bash -pnpm add @avalanche-sdk/data -``` - -### Bun - -```bash -bun add @avalanche-sdk/data -``` - -### Yarn - -```bash -yarn add @avalanche-sdk/data zod - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. -``` - -> [!NOTE] -> This package is published with CommonJS and ES Modules (ESM) support. - - -### Model Context Protocol (MCP) Server - -This SDK is also an installable MCP server where the various SDK methods are -exposed as tools that can be invoked by AI applications. - -> Node.js v20 or greater is required to run the MCP server from npm. - -
-Claude installation steps - -Add the following server definition to your `claude_desktop_config.json` file: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/data", - "--", - "mcp", "start", - "--api-key", "...", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -
-Cursor installation steps - -Create a `.cursor/mcp.json` file in your project root with the following content: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/data", - "--", - "mcp", "start", - "--api-key", "...", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases: - -```bash -curl -L -o mcp-server \ - https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \ -chmod +x mcp-server -``` - -If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`. - - -```json -{ - "mcpServers": { - "Todos": { - "command": "./DOWNLOAD/PATH/mcp-server", - "args": [ - "start" - ] - } - } -} -``` - -For a full list of server arguments, run: - -```sh -npx -y --package @avalanche-sdk/data -- mcp start --help -``` - - - -## Requirements - -For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md). - - - -## SDK Example Usage - -### Example - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Authentication - -### Per-Client Security Schemes - -This SDK supports the following security scheme globally: - -| Name | Type | Scheme | -| -------- | ------ | ------- | -| `apiKey` | apiKey | API key | - -To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - apiKey: "", -}); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Available Resources and Operations - -
-Available methods - - -### [data](docs/sdks/data/README.md) - -* [healthCheck](docs/sdks/data/README.md#healthcheck) - Get the health of the service - -#### [data.evm.address.balances](docs/sdks/addressbalances/README.md) - -* [getNative](docs/sdks/addressbalances/README.md#getnative) - Get native token balance -* [listErc20](docs/sdks/addressbalances/README.md#listerc20) - List ERC-20 balances -* [listErc721](docs/sdks/addressbalances/README.md#listerc721) - List ERC-721 balances -* [listErc1155](docs/sdks/addressbalances/README.md#listerc1155) - List ERC-1155 balances -* [listCollectibles](docs/sdks/addressbalances/README.md#listcollectibles) - List collectible (ERC-721/ERC-1155) balances - -#### [data.evm.address.chains](docs/sdks/addresschains/README.md) - -* [list](docs/sdks/addresschains/README.md#list) - List all chains associated with a given address - -#### [data.evm.address.contracts](docs/sdks/addresscontracts/README.md) - -* [listDeployments](docs/sdks/addresscontracts/README.md#listdeployments) - List deployed contracts - -#### [data.evm.address.transactions](docs/sdks/addresstransactions/README.md) - -* [list](docs/sdks/addresstransactions/README.md#list) - List transactions -* [listNative](docs/sdks/addresstransactions/README.md#listnative) - List native transactions -* [listErc20](docs/sdks/addresstransactions/README.md#listerc20) - List ERC-20 transfers -* [listErc721](docs/sdks/addresstransactions/README.md#listerc721) - List ERC-721 transfers -* [listErc1155](docs/sdks/addresstransactions/README.md#listerc1155) - List ERC-1155 transfers -* [listInternal](docs/sdks/addresstransactions/README.md#listinternal) - List internal transactions - -#### [data.evm.blocks](docs/sdks/evmblocks/README.md) - -* [listLatestAllChains](docs/sdks/evmblocks/README.md#listlatestallchains) - List latest blocks across all supported EVM chains -* [listLatest](docs/sdks/evmblocks/README.md#listlatest) - List latest blocks -* [get](docs/sdks/evmblocks/README.md#get) - Get block -* [listTransactions](docs/sdks/evmblocks/README.md#listtransactions) - List transactions for a block - -#### [data.evm.chains](docs/sdks/chains/README.md) - -* [list](docs/sdks/chains/README.md#list) - List chains -* [get](docs/sdks/chains/README.md#get) - Get chain information -* [~~getAddressChains~~](docs/sdks/chains/README.md#getaddresschains) - **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . :warning: **Deprecated** -* [~~listAllLatestTransactions~~](docs/sdks/chains/README.md#listalllatesttransactions) - **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . :warning: **Deprecated** -* [~~listAllLatestBlocks~~](docs/sdks/chains/README.md#listalllatestblocks) - **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . :warning: **Deprecated** - -#### [data.evm.contracts](docs/sdks/contracts/README.md) - -* [getDeploymentTransaction](docs/sdks/contracts/README.md#getdeploymenttransaction) - Get deployment transaction -* [getMetadata](docs/sdks/contracts/README.md#getmetadata) - Get contract metadata -* [listTransfers](docs/sdks/contracts/README.md#listtransfers) - List ERC transfers - -#### [data.evm.transactions](docs/sdks/evmtransactions/README.md) - -* [listLatestAllChains](docs/sdks/evmtransactions/README.md#listlatestallchains) - List the latest transactions across all supported EVM chains -* [get](docs/sdks/evmtransactions/README.md#get) - Get transaction -* [listLatest](docs/sdks/evmtransactions/README.md#listlatest) - List latest transactions - -#### [data.icm](docs/sdks/icm/README.md) - -* [get](docs/sdks/icm/README.md#get) - Get an ICM message -* [list](docs/sdks/icm/README.md#list) - List ICM messages -* [listByAddress](docs/sdks/icm/README.md#listbyaddress) - List ICM messages by address - -#### [data.nfts](docs/sdks/nfts/README.md) - -* [reindex](docs/sdks/nfts/README.md#reindex) - Reindex NFT metadata -* [list](docs/sdks/nfts/README.md#list) - List tokens -* [get](docs/sdks/nfts/README.md#get) - Get token details - -#### [data.operations](docs/sdks/operations/README.md) - -* [getResult](docs/sdks/operations/README.md#getresult) - Get operation -* [exportTransactions](docs/sdks/operations/README.md#exporttransactions) - Create transaction export operation - -#### [data.primaryNetwork](docs/sdks/primarynetwork/README.md) - -* [getAssetDetails](docs/sdks/primarynetwork/README.md#getassetdetails) - Get asset details -* [getChainIdsForAddresses](docs/sdks/primarynetwork/README.md#getchainidsforaddresses) - Get chain interactions for addresses -* [getNetworkDetails](docs/sdks/primarynetwork/README.md#getnetworkdetails) - Get network details -* [listBlockchains](docs/sdks/primarynetwork/README.md#listblockchains) - List blockchains -* [getBlockchainById](docs/sdks/primarynetwork/README.md#getblockchainbyid) - Get blockchain details by ID -* [listSubnets](docs/sdks/primarynetwork/README.md#listsubnets) - List subnets -* [getSubnetById](docs/sdks/primarynetwork/README.md#getsubnetbyid) - Get Subnet details by ID -* [listValidators](docs/sdks/primarynetwork/README.md#listvalidators) - List validators -* [getValidatorDetails](docs/sdks/primarynetwork/README.md#getvalidatordetails) - Get single validator details -* [listDelegators](docs/sdks/primarynetwork/README.md#listdelegators) - List delegators -* [listL1Validators](docs/sdks/primarynetwork/README.md#listl1validators) - List L1 validators - -#### [data.primaryNetwork.balances](docs/sdks/primarynetworkbalances/README.md) - -* [listByAddresses](docs/sdks/primarynetworkbalances/README.md#listbyaddresses) - Get balances - -#### [data.primaryNetwork.blocks](docs/sdks/primarynetworkblocks/README.md) - -* [get](docs/sdks/primarynetworkblocks/README.md#get) - Get block -* [listByNodeId](docs/sdks/primarynetworkblocks/README.md#listbynodeid) - List blocks proposed by node -* [listLatest](docs/sdks/primarynetworkblocks/README.md#listlatest) - List latest blocks - -#### [data.primaryNetwork.rewards](docs/sdks/rewards/README.md) - -* [listPendingRewards](docs/sdks/rewards/README.md#listpendingrewards) - List pending rewards -* [listHistoricalRewards](docs/sdks/rewards/README.md#listhistoricalrewards) - List historical rewards - -#### [data.primaryNetwork.transactions](docs/sdks/primarynetworktransactions/README.md) - -* [get](docs/sdks/primarynetworktransactions/README.md#get) - Get transaction -* [listLatest](docs/sdks/primarynetworktransactions/README.md#listlatest) - List latest transactions -* [listActiveStakingTransactions](docs/sdks/primarynetworktransactions/README.md#listactivestakingtransactions) - List staking transactions -* [listAssetTransactions](docs/sdks/primarynetworktransactions/README.md#listassettransactions) - List asset transactions - -#### [data.primaryNetwork.utxos](docs/sdks/utxos/README.md) - -* [listByAddresses](docs/sdks/utxos/README.md#listbyaddresses) - List UTXOs - -#### [data.primaryNetwork.vertices](docs/sdks/vertices/README.md) - -* [listLatest](docs/sdks/vertices/README.md#listlatest) - List vertices -* [getByHash](docs/sdks/vertices/README.md#getbyhash) - Get vertex -* [listByHeight](docs/sdks/vertices/README.md#listbyheight) - List vertices by height - -#### [data.signatureAggregator](docs/sdks/signatureaggregator/README.md) - -* [aggregate](docs/sdks/signatureaggregator/README.md#aggregate) - Aggregate Signatures -* [get](docs/sdks/signatureaggregator/README.md#get) - Get Aggregated Signatures - -#### [~~data.teleporter~~](docs/sdks/teleporter/README.md) - -* [~~getTeleporterMessage~~](docs/sdks/teleporter/README.md#getteleportermessage) - **[Deprecated]** Gets a teleporter message by message ID. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . :warning: **Deprecated** -* [~~listTeleporterMessages~~](docs/sdks/teleporter/README.md#listteleportermessages) - **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . :warning: **Deprecated** -* [~~listTeleporterMessagesByAddress~~](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress) - **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . :warning: **Deprecated** - -#### [data.usageMetrics](docs/sdks/usagemetrics/README.md) - -* [getUsage](docs/sdks/usagemetrics/README.md#getusage) - Get usage metrics for the Data API -* [getLogs](docs/sdks/usagemetrics/README.md#getlogs) - Get logs for requests made by client -* [getSubnetRpcUsage](docs/sdks/usagemetrics/README.md#getsubnetrpcusage) - Get usage metrics for the Subnet RPC -* [~~getRpcUsageMetrics~~](docs/sdks/usagemetrics/README.md#getrpcusagemetrics) - **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. :warning: **Deprecated** - -
- - - -## Standalone functions - -All the methods listed above are available as standalone functions. These -functions are ideal for use in applications running in the browser, serverless -runtimes or other environments where application bundle size is a primary -concern. When using a bundler to build your application, all unused -functionality will be either excluded from the final bundle or tree-shaken away. - -To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - -
- -Available standalone functions - -- [`dataEvmAddressBalancesGetNative`](docs/sdks/addressbalances/README.md#getnative) - Get native token balance -- [`dataEvmAddressBalancesListCollectibles`](docs/sdks/addressbalances/README.md#listcollectibles) - List collectible (ERC-721/ERC-1155) balances -- [`dataEvmAddressBalancesListErc1155`](docs/sdks/addressbalances/README.md#listerc1155) - List ERC-1155 balances -- [`dataEvmAddressBalancesListErc20`](docs/sdks/addressbalances/README.md#listerc20) - List ERC-20 balances -- [`dataEvmAddressBalancesListErc721`](docs/sdks/addressbalances/README.md#listerc721) - List ERC-721 balances -- [`dataEvmAddressChainsList`](docs/sdks/addresschains/README.md#list) - List all chains associated with a given address -- [`dataEvmAddressContractsListDeployments`](docs/sdks/addresscontracts/README.md#listdeployments) - List deployed contracts -- [`dataEvmAddressTransactionsList`](docs/sdks/addresstransactions/README.md#list) - List transactions -- [`dataEvmAddressTransactionsListErc1155`](docs/sdks/addresstransactions/README.md#listerc1155) - List ERC-1155 transfers -- [`dataEvmAddressTransactionsListErc20`](docs/sdks/addresstransactions/README.md#listerc20) - List ERC-20 transfers -- [`dataEvmAddressTransactionsListErc721`](docs/sdks/addresstransactions/README.md#listerc721) - List ERC-721 transfers -- [`dataEvmAddressTransactionsListInternal`](docs/sdks/addresstransactions/README.md#listinternal) - List internal transactions -- [`dataEvmAddressTransactionsListNative`](docs/sdks/addresstransactions/README.md#listnative) - List native transactions -- [`dataEvmBlocksGet`](docs/sdks/evmblocks/README.md#get) - Get block -- [`dataEvmBlocksListLatest`](docs/sdks/evmblocks/README.md#listlatest) - List latest blocks -- [`dataEvmBlocksListLatestAllChains`](docs/sdks/evmblocks/README.md#listlatestallchains) - List latest blocks across all supported EVM chains -- [`dataEvmBlocksListTransactions`](docs/sdks/evmblocks/README.md#listtransactions) - List transactions for a block -- [`dataEvmChainsGet`](docs/sdks/chains/README.md#get) - Get chain information -- [`dataEvmChainsList`](docs/sdks/chains/README.md#list) - List chains -- [`dataEvmContractsGetDeploymentTransaction`](docs/sdks/contracts/README.md#getdeploymenttransaction) - Get deployment transaction -- [`dataEvmContractsGetMetadata`](docs/sdks/contracts/README.md#getmetadata) - Get contract metadata -- [`dataEvmContractsListTransfers`](docs/sdks/contracts/README.md#listtransfers) - List ERC transfers -- [`dataEvmTransactionsGet`](docs/sdks/evmtransactions/README.md#get) - Get transaction -- [`dataEvmTransactionsListLatest`](docs/sdks/evmtransactions/README.md#listlatest) - List latest transactions -- [`dataEvmTransactionsListLatestAllChains`](docs/sdks/evmtransactions/README.md#listlatestallchains) - List the latest transactions across all supported EVM chains -- [`dataHealthCheck`](docs/sdks/data/README.md#healthcheck) - Get the health of the service -- [`dataIcmGet`](docs/sdks/icm/README.md#get) - Get an ICM message -- [`dataIcmList`](docs/sdks/icm/README.md#list) - List ICM messages -- [`dataIcmListByAddress`](docs/sdks/icm/README.md#listbyaddress) - List ICM messages by address -- [`dataNftsGet`](docs/sdks/nfts/README.md#get) - Get token details -- [`dataNftsList`](docs/sdks/nfts/README.md#list) - List tokens -- [`dataNftsReindex`](docs/sdks/nfts/README.md#reindex) - Reindex NFT metadata -- [`dataOperationsExportTransactions`](docs/sdks/operations/README.md#exporttransactions) - Create transaction export operation -- [`dataOperationsGetResult`](docs/sdks/operations/README.md#getresult) - Get operation -- [`dataPrimaryNetworkBalancesListByAddresses`](docs/sdks/primarynetworkbalances/README.md#listbyaddresses) - Get balances -- [`dataPrimaryNetworkBlocksGet`](docs/sdks/primarynetworkblocks/README.md#get) - Get block -- [`dataPrimaryNetworkBlocksListByNodeId`](docs/sdks/primarynetworkblocks/README.md#listbynodeid) - List blocks proposed by node -- [`dataPrimaryNetworkBlocksListLatest`](docs/sdks/primarynetworkblocks/README.md#listlatest) - List latest blocks -- [`dataPrimaryNetworkGetAssetDetails`](docs/sdks/primarynetwork/README.md#getassetdetails) - Get asset details -- [`dataPrimaryNetworkGetBlockchainById`](docs/sdks/primarynetwork/README.md#getblockchainbyid) - Get blockchain details by ID -- [`dataPrimaryNetworkGetChainIdsForAddresses`](docs/sdks/primarynetwork/README.md#getchainidsforaddresses) - Get chain interactions for addresses -- [`dataPrimaryNetworkGetNetworkDetails`](docs/sdks/primarynetwork/README.md#getnetworkdetails) - Get network details -- [`dataPrimaryNetworkGetSubnetById`](docs/sdks/primarynetwork/README.md#getsubnetbyid) - Get Subnet details by ID -- [`dataPrimaryNetworkGetValidatorDetails`](docs/sdks/primarynetwork/README.md#getvalidatordetails) - Get single validator details -- [`dataPrimaryNetworkListBlockchains`](docs/sdks/primarynetwork/README.md#listblockchains) - List blockchains -- [`dataPrimaryNetworkListDelegators`](docs/sdks/primarynetwork/README.md#listdelegators) - List delegators -- [`dataPrimaryNetworkListL1Validators`](docs/sdks/primarynetwork/README.md#listl1validators) - List L1 validators -- [`dataPrimaryNetworkListSubnets`](docs/sdks/primarynetwork/README.md#listsubnets) - List subnets -- [`dataPrimaryNetworkListValidators`](docs/sdks/primarynetwork/README.md#listvalidators) - List validators -- [`dataPrimaryNetworkRewardsListHistoricalRewards`](docs/sdks/rewards/README.md#listhistoricalrewards) - List historical rewards -- [`dataPrimaryNetworkRewardsListPendingRewards`](docs/sdks/rewards/README.md#listpendingrewards) - List pending rewards -- [`dataPrimaryNetworkTransactionsGet`](docs/sdks/primarynetworktransactions/README.md#get) - Get transaction -- [`dataPrimaryNetworkTransactionsListActiveStakingTransactions`](docs/sdks/primarynetworktransactions/README.md#listactivestakingtransactions) - List staking transactions -- [`dataPrimaryNetworkTransactionsListAssetTransactions`](docs/sdks/primarynetworktransactions/README.md#listassettransactions) - List asset transactions -- [`dataPrimaryNetworkTransactionsListLatest`](docs/sdks/primarynetworktransactions/README.md#listlatest) - List latest transactions -- [`dataPrimaryNetworkUtxosListByAddresses`](docs/sdks/utxos/README.md#listbyaddresses) - List UTXOs -- [`dataPrimaryNetworkVerticesGetByHash`](docs/sdks/vertices/README.md#getbyhash) - Get vertex -- [`dataPrimaryNetworkVerticesListByHeight`](docs/sdks/vertices/README.md#listbyheight) - List vertices by height -- [`dataPrimaryNetworkVerticesListLatest`](docs/sdks/vertices/README.md#listlatest) - List vertices -- [`dataSignatureAggregatorAggregate`](docs/sdks/signatureaggregator/README.md#aggregate) - Aggregate Signatures -- [`dataSignatureAggregatorGet`](docs/sdks/signatureaggregator/README.md#get) - Get Aggregated Signatures -- [`dataUsageMetricsGetLogs`](docs/sdks/usagemetrics/README.md#getlogs) - Get logs for requests made by client -- [`dataUsageMetricsGetSubnetRpcUsage`](docs/sdks/usagemetrics/README.md#getsubnetrpcusage) - Get usage metrics for the Subnet RPC -- [`dataUsageMetricsGetUsage`](docs/sdks/usagemetrics/README.md#getusage) - Get usage metrics for the Data API -- ~~[`dataEvmChainsGetAddressChains`](docs/sdks/chains/README.md#getaddresschains)~~ - **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . :warning: **Deprecated** -- ~~[`dataEvmChainsListAllLatestBlocks`](docs/sdks/chains/README.md#listalllatestblocks)~~ - **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . :warning: **Deprecated** -- ~~[`dataEvmChainsListAllLatestTransactions`](docs/sdks/chains/README.md#listalllatesttransactions)~~ - **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . :warning: **Deprecated** -- ~~[`dataTeleporterGetTeleporterMessage`](docs/sdks/teleporter/README.md#getteleportermessage)~~ - **[Deprecated]** Gets a teleporter message by message ID. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . :warning: **Deprecated** -- ~~[`dataTeleporterListTeleporterMessages`](docs/sdks/teleporter/README.md#listteleportermessages)~~ - **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . :warning: **Deprecated** -- ~~[`dataTeleporterListTeleporterMessagesByAddress`](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress)~~ - **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . :warning: **Deprecated** -- ~~[`dataUsageMetricsGetRpcUsageMetrics`](docs/sdks/usagemetrics/README.md#getrpcusagemetrics)~~ - **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. :warning: **Deprecated** - -
- - - -## Global Parameters - -Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `chainId` to `"43114"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getNative`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameters are available. - -| Name | Type | Description | -| ------- | ----------------------------- | -------------------------------------------------------- | -| chainId | string | A supported EVM chain id, chain alias, or blockchain id. | -| network | components.GlobalParamNetwork | A supported network type mainnet or testnet/fuji. | - -### Example - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.getNative({ - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - currency: "usd", - }); - - console.log(result); -} - -run(); - -``` - - - -## Pagination - -Some of the endpoints in this SDK support pagination. To use pagination, you -make your SDK calls as usual, but the returned response object will also be an -async iterable that can be consumed using the [`for await...of`][for-await-of] -syntax. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of - -Here's an example of one such pagination call: - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.listErc20({ - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddresses: - "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", - currency: "usd", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); - -``` - - - -## Retries - -Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. - -To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.healthCheck({ - retries: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, - }); - - console.log(result); -} - -run(); - -``` - -If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - retryConfig: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, -}); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Error Handling - -[`AvalancheError`](./src/models/errors/avalancheerror.ts) is the base class for all HTTP error responses. It has the following properties: - -| Property | Type | Description | -| ------------------- | ---------- | --------------------------------------------------------------------------------------- | -| `error.message` | `string` | Error message | -| `error.statusCode` | `number` | HTTP response status code eg `404` | -| `error.headers` | `Headers` | HTTP response headers | -| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | -| `error.rawResponse` | `Response` | Raw HTTP response | -| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | - -### Example -```typescript -import { Avalanche } from "@avalanche-sdk/data"; -import * as errors from "@avalanche-sdk/data/models/errors"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - try { - await avalanche.data.nfts.reindex({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", - }); - } catch (error) { - // The base class for HTTP error responses - if (error instanceof errors.AvalancheError) { - console.log(error.message); - console.log(error.statusCode); - console.log(error.body); - console.log(error.headers); - - // Depending on the method different errors may be thrown - if (error instanceof errors.BadRequestError) { - console.log(error.data$.message); // errors.BadRequestMessage - console.log(error.data$.statusCode); // number - console.log(error.data$.error); // string - } - } - } -} - -run(); - -``` - -### Error Classes -**Primary errors:** -* [`AvalancheError`](./src/models/errors/avalancheerror.ts): The base class for HTTP error responses. - * [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad requests generally mean the client has passed invalid or malformed parameters. Error messages in the response could help in evaluating the error. Status code `400`. - * [`UnauthorizedError`](./src/models/errors/unauthorizederror.ts): When a client attempts to access resources that require authorization credentials but the client lacks proper authentication in the request, the server responds with 401. Status code `401`. - * [`ForbiddenError`](./src/models/errors/forbiddenerror.ts): When a client attempts to access resources with valid credentials but doesn't have the privilege to perform that action, the server responds with 403. Status code `403`. - * [`NotFoundError`](./src/models/errors/notfounderror.ts): The error is mostly returned when the client requests with either mistyped URL, or the passed resource is moved or deleted, or the resource doesn't exist. Status code `404`. - * [`TooManyRequestsError`](./src/models/errors/toomanyrequestserror.ts): This error is returned when the client has sent too many, and has hit the rate limit. Status code `429`. - * [`InternalServerError`](./src/models/errors/internalservererror.ts): The error is a generic server side error that is returned for any uncaught and unexpected issues on the server side. This should be very rare, and you may reach out to us if the problem persists for a longer duration. Status code `500`. - * [`BadGatewayError`](./src/models/errors/badgatewayerror.ts): This is an internal error indicating invalid response received by the client-facing proxy or gateway from the upstream server. Status code `502`. - * [`ServiceUnavailableError`](./src/models/errors/serviceunavailableerror.ts): The error is returned for certain routes on a particular Subnet. This indicates an internal problem with our Subnet node, and may not necessarily mean the Subnet is down or affected. Status code `503`. - -
Less common errors (6) - -
- -**Network errors:** -* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. -* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. -* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. -* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. -* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. - - -**Inherit from [`AvalancheError`](./src/models/errors/avalancheerror.ts)**: -* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. - -
- - - -## Server Selection - -### Override Server URL Per-Client - -The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - serverURL: "https://glacier-api.avax.network", -}); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Custom HTTP Client - -The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native -[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This -client is a thin wrapper around `fetch` and provides the ability to attach hooks -around the request lifecycle that can be used to modify the request or handle -errors and response. - -The `HTTPClient` constructor takes an optional `fetcher` argument that can be -used to integrate a third-party HTTP client or when writing tests to mock out -the HTTP client and feed in fixtures. - -The following example shows how to use the `"beforeRequest"` hook to to add a -custom header and a timeout to requests and how to use the `"requestError"` hook -to log errors: - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; -import { HTTPClient } from "@avalanche-sdk/data/lib/http"; - -const httpClient = new HTTPClient({ - // fetcher takes a function that has the same signature as native `fetch`. - fetcher: (request) => { - return fetch(request); - } -}); - -httpClient.addHook("beforeRequest", (request) => { - const nextRequest = new Request(request, { - signal: request.signal || AbortSignal.timeout(5000) - }); - - nextRequest.headers.set("x-custom-header", "custom value"); - - return nextRequest; -}); - -httpClient.addHook("requestError", (error, request) => { - console.group("Request Error"); - console.log("Reason:", `${error}`); - console.log("Endpoint:", `${request.method} ${request.url}`); - console.groupEnd(); -}); - -const sdk = new Avalanche({ httpClient }); -``` - - - -## Debugging - -You can setup your SDK to emit debug logs for SDK requests and responses. - -You can pass a logger that matches `console`'s interface as an SDK option. - -> [!WARNING] -> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production. - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const sdk = new Avalanche({ debugLogger: console }); -``` - - - - -# Development - -## Maturity - -This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage -to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally -looking for the latest version. - -## Contributions - -While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. -We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of diff --git a/data/RELEASES.md b/data/RELEASES.md deleted file mode 100644 index 2bf7dbe4..00000000 --- a/data/RELEASES.md +++ /dev/null @@ -1,151 +0,0 @@ - - -## 2025-03-11 21:44:41 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.517.0 (2.548.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.2] data -### Releases -- [NPM v0.0.2] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.0.2 - data - -## 2025-03-18 19:51:04 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.520.0 (2.555.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.0] data -### Releases -- [NPM v0.1.0] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.1.0 - data - -## 2025-03-25 20:01:13 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.523.2 (2.560.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.0] data -### Releases -- [NPM v0.2.0] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.0 - data - -## 2025-03-26 20:58:17 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.524.0 (2.562.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.1] data -### Releases -- [NPM v0.2.1] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.1 - data - -## 2025-03-31 18:39:58 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.2] data -### Releases -- [NPM v0.2.2] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.2 - data - -## 2025-04-05 18:37:32 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.529.1 (2.566.5) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.3] data -### Releases -- [NPM v0.2.3] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.3 - data - -## 2025-04-30 18:40:33 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.541.0 (2.595.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.4] data -### Releases -- [NPM v0.2.4] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.4 - data - -## 2025-05-20 18:41:35 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.548.3 (2.605.6) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.5] data -### Releases -- [NPM v0.2.5] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.5 - data - -## 2025-05-22 18:41:10 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.549.1 (2.607.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.6] data -### Releases -- [NPM v0.2.6] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.2.6 - data - -## 2025-06-24 18:42:13 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.0] data -### Releases -- [NPM v0.3.0] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.3.0 - data - -## 2025-06-26 10:58:04 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.570.1 (2.638.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.0] data -### Releases -- [NPM v0.4.0] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.4.0 - data - -## 2025-07-15 18:44:10 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.582.0 (2.657.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.0] data -### Releases -- [NPM v0.5.0] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.5.0 - data - -## 2025-07-23 18:43:57 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.1] data -### Releases -- [NPM v0.5.1] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.5.1 - data - -## 2025-08-05 18:45:46 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.597.0 (2.673.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.2] data -### Releases -- [NPM v0.5.2] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.5.2 - data - -## 2025-08-06 18:44:44 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.598.2 (2.674.3) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.3] data -### Releases -- [NPM v0.5.3] https://www.npmjs.com/package/@avalanche-sdk/data/v/0.5.3 - data \ No newline at end of file diff --git a/data/RUNTIMES.md b/data/RUNTIMES.md deleted file mode 100644 index db7ea942..00000000 --- a/data/RUNTIMES.md +++ /dev/null @@ -1,48 +0,0 @@ -# Supported JavaScript runtimes - -This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: - -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` - -[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API -[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API -[async-iter]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols - -Runtime environments that are explicitly supported are: - -- Evergreen browsers which include: Chrome, Safari, Edge, Firefox -- Node.js active and maintenance LTS releases - - Currently, this is v18 and v20 -- Bun v1 and above -- Deno v1.39 - - Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming]) - -[deno-file-streaming]: https://github.com/denoland/deno/issues/11018 - -## Recommended TypeScript compiler options - -The following `tsconfig.json` options are recommended for projects using this -SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], -[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and -so on): - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of -[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal -[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request -[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response - -```jsonc -{ - "compilerOptions": { - "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], - } -} -``` - -While `target` can be set to older ECMAScript versions, it may result in extra, -unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file diff --git a/data/USAGE.md b/data/USAGE.md deleted file mode 100644 index b9c892d1..00000000 --- a/data/USAGE.md +++ /dev/null @@ -1,16 +0,0 @@ - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); - -``` - \ No newline at end of file diff --git a/data/docs/lib/utils/retryconfig.md b/data/docs/lib/utils/retryconfig.md deleted file mode 100644 index 08f95f45..00000000 --- a/data/docs/lib/utils/retryconfig.md +++ /dev/null @@ -1,24 +0,0 @@ -# RetryConfig - -Allows customizing the default retry configuration. It is only permitted in methods that accept retry policies. - -## Fields - -| Name | Type | Description | Example | -| ------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------ | ----------- | -| `strategy` | `"backoff" | "none"` | The retry strategy to use. | `"backoff"` | -| `backoff` | [BackoffStrategy](#backoffstrategy) | When strategy is "backoff", this configurates for the backoff parameters. | | -| `retryConnectionErrors` | `*boolean*` | When strategy is "backoff", this determines whether or not to retry on connection errors. | `true` | - -## BackoffStrategy - -The backoff strategy allows retrying a request with an exponential backoff between each retry. - -### Fields - -| Name | Type | Description | Example | -| ------------------ | ------------ | ----------------------------------------- | -------- | -| `initialInterval` | `*number*` | The initial interval in milliseconds. | `500` | -| `maxInterval` | `*number*` | The maximum interval in milliseconds. | `60000` | -| `exponent` | `*number*` | The exponent to use for the backoff. | `1.5` | -| `maxElapsedTime` | `*number*` | The maximum elapsed time in milliseconds. | `300000` | \ No newline at end of file diff --git a/data/docs/models/components/activedelegatordetails.md b/data/docs/models/components/activedelegatordetails.md deleted file mode 100644 index b52d2047..00000000 --- a/data/docs/models/components/activedelegatordetails.md +++ /dev/null @@ -1,37 +0,0 @@ -# ActiveDelegatorDetails - -## Example Usage - -```typescript -import { ActiveDelegatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: ActiveDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 1058.92, - endTimestamp: 337.36, - estimatedGrossReward: "", - estimatedNetReward: "", - delegationStatus: "active", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `rewardAddresses` | *string*[] | :heavy_check_mark: | N/A | -| `amountDelegated` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_check_mark: | N/A | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `estimatedGrossReward` | *string* | :heavy_check_mark: | N/A | -| `estimatedNetReward` | *string* | :heavy_check_mark: | N/A | -| `delegationStatus` | [components.ActiveDelegatorDetailsDelegationStatus](../../models/components/activedelegatordetailsdelegationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/activedelegatordetailsdelegationstatus.md b/data/docs/models/components/activedelegatordetailsdelegationstatus.md deleted file mode 100644 index 6ed7ae46..00000000 --- a/data/docs/models/components/activedelegatordetailsdelegationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ActiveDelegatorDetailsDelegationStatus - -## Example Usage - -```typescript -import { ActiveDelegatorDetailsDelegationStatus } from "@avalanche-sdk/data/models/components"; - -let value: ActiveDelegatorDetailsDelegationStatus = "active"; -``` - -## Values - -```typescript -"active" -``` \ No newline at end of file diff --git a/data/docs/models/components/activevalidatordetails.md b/data/docs/models/components/activevalidatordetails.md deleted file mode 100644 index 612c4713..00000000 --- a/data/docs/models/components/activevalidatordetails.md +++ /dev/null @@ -1,54 +0,0 @@ -# ActiveValidatorDetails - -## Example Usage - -```typescript -import { ActiveValidatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: ActiveValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 9332.67, - endTimestamp: 6572.88, - stakePercentage: 6001.77, - delegatorCount: 5325.15, - uptimePerformance: 1851.65, - potentialRewards: { - validationRewardAmount: "", - delegationRewardAmount: "", - }, - validationStatus: "active", - validatorHealth: { - reachabilityPercent: 566.69, - benchedPChainRequestsPercent: 5374.7, - benchedXChainRequestsPercent: 3074.95, - benchedCChainRequestsPercent: 4408.25, - }, - geolocation: null, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_minus_sign: | The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blsCredentials` | [components.BlsCredentials](../../models/components/blscredentials.md) | :heavy_minus_sign: | Present for AddPermissionlessValidatorTx | -| `stakePercentage` | *number* | :heavy_check_mark: | The percentage of this validator's stake amount to the total active stake. | -| `delegatorCount` | *number* | :heavy_check_mark: | The number of delegators linked to the validator. | -| `amountDelegated` | *string* | :heavy_minus_sign: | The total amount in nAVAX delegated to the validator. | -| `uptimePerformance` | *number* | :heavy_check_mark: | The validator's uptime percentage, as observed by our internal node and measured over time. | -| `avalancheGoVersion` | *string* | :heavy_minus_sign: | N/A | -| `delegationCapacity` | *string* | :heavy_minus_sign: | The amount of stake in nAVAX that can be delegated to this validator. | -| `potentialRewards` | [components.Rewards](../../models/components/rewards.md) | :heavy_check_mark: | Estimated rewards for the validator if the validation is successful. | -| `validationStatus` | [components.ActiveValidatorDetailsValidationStatus](../../models/components/activevalidatordetailsvalidationstatus.md) | :heavy_check_mark: | N/A | -| `validatorHealth` | [components.ValidatorHealthDetails](../../models/components/validatorhealthdetails.md) | :heavy_check_mark: | N/A | -| `geolocation` | [components.Geolocation](../../models/components/geolocation.md) | :heavy_check_mark: | The geographical location of the validator node, if available. | \ No newline at end of file diff --git a/data/docs/models/components/activevalidatordetailsvalidationstatus.md b/data/docs/models/components/activevalidatordetailsvalidationstatus.md deleted file mode 100644 index 12c38a15..00000000 --- a/data/docs/models/components/activevalidatordetailsvalidationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ActiveValidatorDetailsValidationStatus - -## Example Usage - -```typescript -import { ActiveValidatorDetailsValidationStatus } from "@avalanche-sdk/data/models/components"; - -let value: ActiveValidatorDetailsValidationStatus = "active"; -``` - -## Values - -```typescript -"active" -``` \ No newline at end of file diff --git a/data/docs/models/components/aggregatedassetamount.md b/data/docs/models/components/aggregatedassetamount.md deleted file mode 100644 index d5453134..00000000 --- a/data/docs/models/components/aggregatedassetamount.md +++ /dev/null @@ -1,29 +0,0 @@ -# AggregatedAssetAmount - -## Example Usage - -```typescript -import { AggregatedAssetAmount } from "@avalanche-sdk/data/models/components"; - -let value: AggregatedAssetAmount = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | -| `utxoCount` | *number* | :heavy_check_mark: | N/A | 1 | \ No newline at end of file diff --git a/data/docs/models/components/apifeature.md b/data/docs/models/components/apifeature.md deleted file mode 100644 index 72fd1eee..00000000 --- a/data/docs/models/components/apifeature.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiFeature - -## Example Usage - -```typescript -import { ApiFeature } from "@avalanche-sdk/data/models/components"; - -let value: ApiFeature = "nftIndexing"; -``` - -## Values - -```typescript -"nftIndexing" | "webhooks" | "teleporter" -``` \ No newline at end of file diff --git a/data/docs/models/components/assetamount.md b/data/docs/models/components/assetamount.md deleted file mode 100644 index 8315ba5f..00000000 --- a/data/docs/models/components/assetamount.md +++ /dev/null @@ -1,27 +0,0 @@ -# AssetAmount - -## Example Usage - -```typescript -import { AssetAmount } from "@avalanche-sdk/data/models/components"; - -let value: AssetAmount = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | \ No newline at end of file diff --git a/data/docs/models/components/assetwithpriceinfo.md b/data/docs/models/components/assetwithpriceinfo.md deleted file mode 100644 index 4594d3a1..00000000 --- a/data/docs/models/components/assetwithpriceinfo.md +++ /dev/null @@ -1,32 +0,0 @@ -# AssetWithPriceInfo - -## Example Usage - -```typescript -import { AssetWithPriceInfo } from "@avalanche-sdk/data/models/components"; - -let value: AssetWithPriceInfo = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - historicalPrice: { - currencyCode: "usd", - value: 42.42, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | -| `historicalPrice` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago. | | \ No newline at end of file diff --git a/data/docs/models/components/balanceowner.md b/data/docs/models/components/balanceowner.md deleted file mode 100644 index 82a63696..00000000 --- a/data/docs/models/components/balanceowner.md +++ /dev/null @@ -1,22 +0,0 @@ -# BalanceOwner - -## Example Usage - -```typescript -import { BalanceOwner } from "@avalanche-sdk/data/models/components"; - -let value: BalanceOwner = { - addresses: [ - "", - "", - ], - threshold: 328.11, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `addresses` | *string*[] | :heavy_check_mark: | N/A | -| `threshold` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/blockchain.md b/data/docs/models/components/blockchain.md deleted file mode 100644 index 8b6b8bfa..00000000 --- a/data/docs/models/components/blockchain.md +++ /dev/null @@ -1,31 +0,0 @@ -# Blockchain - -## Example Usage - -```typescript -import { Blockchain } from "@avalanche-sdk/data/models/components"; - -let value: Blockchain = { - createBlockTimestamp: 9906.3, - createBlockNumber: "", - blockchainId: "", - vmId: "", - subnetId: "", - blockchainName: "", - evmChainId: 43114, - genesisData: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| `createBlockTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `createBlockNumber` | *string* | :heavy_check_mark: | N/A | | -| `blockchainId` | *string* | :heavy_check_mark: | N/A | | -| `vmId` | *string* | :heavy_check_mark: | N/A | | -| `subnetId` | *string* | :heavy_check_mark: | N/A | | -| `blockchainName` | *string* | :heavy_check_mark: | N/A | | -| `evmChainId` | *number* | :heavy_check_mark: | EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well. | 43114 | -| `genesisData` | [components.BlockchainGenesisData](../../models/components/blockchaingenesisdata.md) | :heavy_minus_sign: | The genesis data of the blockchain. | {"chainId": 43114} | \ No newline at end of file diff --git a/data/docs/models/components/blockchaingenesisdata.md b/data/docs/models/components/blockchaingenesisdata.md deleted file mode 100644 index e216b8c3..00000000 --- a/data/docs/models/components/blockchaingenesisdata.md +++ /dev/null @@ -1,16 +0,0 @@ -# BlockchainGenesisData - -The genesis data of the blockchain. - -## Example Usage - -```typescript -import { BlockchainGenesisData } from "@avalanche-sdk/data/models/components"; - -let value: BlockchainGenesisData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/data/docs/models/components/blockchainid.md b/data/docs/models/components/blockchainid.md deleted file mode 100644 index 3068b6c1..00000000 --- a/data/docs/models/components/blockchainid.md +++ /dev/null @@ -1,15 +0,0 @@ -# BlockchainId - -## Example Usage - -```typescript -import { BlockchainId } from "@avalanche-sdk/data/models/components"; - -let value: BlockchainId = "p-chain"; -``` - -## Values - -```typescript -"11111111111111111111111111111111LpoYY" | "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" | "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" | "p-chain" | "x-chain" | "c-chain" -``` \ No newline at end of file diff --git a/data/docs/models/components/blockchainids.md b/data/docs/models/components/blockchainids.md deleted file mode 100644 index 3aafb50a..00000000 --- a/data/docs/models/components/blockchainids.md +++ /dev/null @@ -1,15 +0,0 @@ -# BlockchainIds - -## Example Usage - -```typescript -import { BlockchainIds } from "@avalanche-sdk/data/models/components"; - -let value: BlockchainIds = "11111111111111111111111111111111LpoYY"; -``` - -## Values - -```typescript -"11111111111111111111111111111111LpoYY" | "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" | "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" -``` \ No newline at end of file diff --git a/data/docs/models/components/blockchaininfo.md b/data/docs/models/components/blockchaininfo.md deleted file mode 100644 index b109d962..00000000 --- a/data/docs/models/components/blockchaininfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# BlockchainInfo - -## Example Usage - -```typescript -import { BlockchainInfo } from "@avalanche-sdk/data/models/components"; - -let value: BlockchainInfo = { - chainName: "", - vmId: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `chainName` | *string* | :heavy_check_mark: | N/A | -| `vmId` | *string* | :heavy_check_mark: | N/A | -| `genesisData` | [components.BlockchainInfoGenesisData](../../models/components/blockchaininfogenesisdata.md) | :heavy_minus_sign: | The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM | \ No newline at end of file diff --git a/data/docs/models/components/blockchaininfogenesisdata.md b/data/docs/models/components/blockchaininfogenesisdata.md deleted file mode 100644 index be6f9340..00000000 --- a/data/docs/models/components/blockchaininfogenesisdata.md +++ /dev/null @@ -1,16 +0,0 @@ -# BlockchainInfoGenesisData - -The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM - -## Example Usage - -```typescript -import { BlockchainInfoGenesisData } from "@avalanche-sdk/data/models/components"; - -let value: BlockchainInfoGenesisData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/data/docs/models/components/blscredentials.md b/data/docs/models/components/blscredentials.md deleted file mode 100644 index ec54fa31..00000000 --- a/data/docs/models/components/blscredentials.md +++ /dev/null @@ -1,19 +0,0 @@ -# BlsCredentials - -## Example Usage - -```typescript -import { BlsCredentials } from "@avalanche-sdk/data/models/components"; - -let value: BlsCredentials = { - publicKey: "", - proofOfPossession: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `publicKey` | *string* | :heavy_check_mark: | N/A | -| `proofOfPossession` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/cchainatomicbalances.md b/data/docs/models/components/cchainatomicbalances.md deleted file mode 100644 index 3b598d88..00000000 --- a/data/docs/models/components/cchainatomicbalances.md +++ /dev/null @@ -1,30 +0,0 @@ -# CChainAtomicBalances - -## Example Usage - -```typescript -import { CChainAtomicBalances } from "@avalanche-sdk/data/models/components"; - -let value: CChainAtomicBalances = { - atomicMemoryUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - atomicMemoryLocked: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `atomicMemoryUnlocked` | [components.CChainSharedAssetBalance](../../models/components/cchainsharedassetbalance.md)[] | :heavy_check_mark: | N/A | -| `atomicMemoryLocked` | [components.CChainSharedAssetBalance](../../models/components/cchainsharedassetbalance.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/cchainexporttransaction.md b/data/docs/models/components/cchainexporttransaction.md deleted file mode 100644 index 0b52a148..00000000 --- a/data/docs/models/components/cchainexporttransaction.md +++ /dev/null @@ -1,58 +0,0 @@ -# CChainExportTransaction - -## Example Usage - -```typescript -import { CChainExportTransaction } from "@avalanche-sdk/data/models/components"; - -let value: CChainExportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [], - emittedUtxos: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | Unique ID for this transaction. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `blockHeight` | *number* | :heavy_check_mark: | Height of the block this transaction belongs to. | 1005 | -| `blockHash` | *string* | :heavy_check_mark: | Hash of the block this transaction belongs to. | 0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee | -| `timestamp` | *number* | :heavy_check_mark: | Latest timestamp in seconds this transaction was accepted. | 1600762738 | -| `memo` | *string* | :heavy_check_mark: | Hex encoded memo bytes for this transaction. | 0x546865204176616c616e6368652050726f6a656374 | -| `amountUnlocked` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets unlocked by inputs of this transaction. | | -| `amountCreated` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets created by outputs of this transaction. | | -| `sourceChain` | *string* | :heavy_check_mark: | Source chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `destinationChain` | *string* | :heavy_check_mark: | Destination chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `txType` | [components.CChainExportTransactionTxType](../../models/components/cchainexporttransactiontxtype.md) | :heavy_check_mark: | Type of transaction. | ExportTx | -| `evmInputs` | [components.EVMInput](../../models/components/evminput.md)[] | :heavy_check_mark: | N/A | | -| `emittedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/cchainexporttransactiontxtype.md b/data/docs/models/components/cchainexporttransactiontxtype.md deleted file mode 100644 index c78c01b2..00000000 --- a/data/docs/models/components/cchainexporttransactiontxtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CChainExportTransactionTxType - -Type of transaction. - -## Example Usage - -```typescript -import { CChainExportTransactionTxType } from "@avalanche-sdk/data/models/components"; - -let value: CChainExportTransactionTxType = "ExportTx"; -``` - -## Values - -```typescript -"ExportTx" -``` \ No newline at end of file diff --git a/data/docs/models/components/cchainimporttransaction.md b/data/docs/models/components/cchainimporttransaction.md deleted file mode 100644 index 926dae52..00000000 --- a/data/docs/models/components/cchainimporttransaction.md +++ /dev/null @@ -1,70 +0,0 @@ -# CChainImportTransaction - -## Example Usage - -```typescript -import { CChainImportTransaction } from "@avalanche-sdk/data/models/components"; - -let value: CChainImportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ImportTx", - evmOutputs: [ - { - toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - }, - ], - consumedUtxos: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | Unique ID for this transaction. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `blockHeight` | *number* | :heavy_check_mark: | Height of the block this transaction belongs to. | 1005 | -| `blockHash` | *string* | :heavy_check_mark: | Hash of the block this transaction belongs to. | 0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee | -| `timestamp` | *number* | :heavy_check_mark: | Latest timestamp in seconds this transaction was accepted. | 1600762738 | -| `memo` | *string* | :heavy_check_mark: | Hex encoded memo bytes for this transaction. | 0x546865204176616c616e6368652050726f6a656374 | -| `amountUnlocked` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets unlocked by inputs of this transaction. | | -| `amountCreated` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets created by outputs of this transaction. | | -| `sourceChain` | *string* | :heavy_check_mark: | Source chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `destinationChain` | *string* | :heavy_check_mark: | Destination chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `txType` | [components.CChainImportTransactionTxType](../../models/components/cchainimporttransactiontxtype.md) | :heavy_check_mark: | Type of transaction. | ImportTx | -| `evmOutputs` | [components.EVMOutput](../../models/components/evmoutput.md)[] | :heavy_check_mark: | N/A | | -| `consumedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/cchainimporttransactiontxtype.md b/data/docs/models/components/cchainimporttransactiontxtype.md deleted file mode 100644 index 163f1005..00000000 --- a/data/docs/models/components/cchainimporttransactiontxtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CChainImportTransactionTxType - -Type of transaction. - -## Example Usage - -```typescript -import { CChainImportTransactionTxType } from "@avalanche-sdk/data/models/components"; - -let value: CChainImportTransactionTxType = "ImportTx"; -``` - -## Values - -```typescript -"ImportTx" -``` \ No newline at end of file diff --git a/data/docs/models/components/cchainsharedassetbalance.md b/data/docs/models/components/cchainsharedassetbalance.md deleted file mode 100644 index 5902cf11..00000000 --- a/data/docs/models/components/cchainsharedassetbalance.md +++ /dev/null @@ -1,31 +0,0 @@ -# CChainSharedAssetBalance - -## Example Usage - -```typescript -import { CChainSharedAssetBalance } from "@avalanche-sdk/data/models/components"; - -let value: CChainSharedAssetBalance = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | -| `utxoCount` | *number* | :heavy_check_mark: | N/A | 1 | -| `sharedWithChainId` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/chainaddresschainidmap.md b/data/docs/models/components/chainaddresschainidmap.md deleted file mode 100644 index b70a0db0..00000000 --- a/data/docs/models/components/chainaddresschainidmap.md +++ /dev/null @@ -1,21 +0,0 @@ -# ChainAddressChainIdMap - -## Example Usage - -```typescript -import { ChainAddressChainIdMap } from "@avalanche-sdk/data/models/components"; - -let value: ChainAddressChainIdMap = { - address: "52144 Wendy Hills", - blockchainIds: [ - "11111111111111111111111111111111LpoYY", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | N/A | -| `blockchainIds` | [components.BlockchainIds](../../models/components/blockchainids.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/chainaddresschainidmaplistresponse.md b/data/docs/models/components/chainaddresschainidmaplistresponse.md deleted file mode 100644 index 0019c9ba..00000000 --- a/data/docs/models/components/chainaddresschainidmaplistresponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# ChainAddressChainIdMapListResponse - -## Example Usage - -```typescript -import { ChainAddressChainIdMapListResponse } from "@avalanche-sdk/data/models/components"; - -let value: ChainAddressChainIdMapListResponse = { - addresses: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `addresses` | [components.ChainAddressChainIdMap](../../models/components/chainaddresschainidmap.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/chaininfo.md b/data/docs/models/components/chaininfo.md deleted file mode 100644 index f87930cc..00000000 --- a/data/docs/models/components/chaininfo.md +++ /dev/null @@ -1,46 +0,0 @@ -# ChainInfo - -## Example Usage - -```typescript -import { ChainInfo } from "@avalanche-sdk/data/models/components"; - -let value: ChainInfo = { - chainId: "", - status: "OK", - chainName: "", - description: "pro apt suspiciously pick ha railway rapidly finally equally", - vmName: "BITCOIN", - rpcUrl: "https://miserly-dress.info", - isTestnet: false, - networkToken: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `status` | [components.ChainStatus](../../models/components/chainstatus.md) | :heavy_check_mark: | Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. | -| `chainName` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_check_mark: | N/A | -| `platformChainId` | *string* | :heavy_minus_sign: | N/A | -| `subnetId` | *string* | :heavy_minus_sign: | N/A | -| `vmId` | *string* | :heavy_minus_sign: | N/A | -| `vmName` | [components.VmName](../../models/components/vmname.md) | :heavy_check_mark: | N/A | -| `explorerUrl` | *string* | :heavy_minus_sign: | N/A | -| `rpcUrl` | *string* | :heavy_check_mark: | N/A | -| `wsUrl` | *string* | :heavy_minus_sign: | N/A | -| `isTestnet` | *boolean* | :heavy_check_mark: | N/A | -| `utilityAddresses` | [components.UtilityAddresses](../../models/components/utilityaddresses.md) | :heavy_minus_sign: | N/A | -| `networkToken` | [components.NetworkToken](../../models/components/networktoken.md) | :heavy_check_mark: | N/A | -| `chainLogoUri` | *string* | :heavy_minus_sign: | N/A | -| `private` | *boolean* | :heavy_minus_sign: | N/A | -| `enabledFeatures` | [components.ChainInfoEnabledFeature](../../models/components/chaininfoenabledfeature.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/chaininfoenabledfeature.md b/data/docs/models/components/chaininfoenabledfeature.md deleted file mode 100644 index d4eb8ed8..00000000 --- a/data/docs/models/components/chaininfoenabledfeature.md +++ /dev/null @@ -1,15 +0,0 @@ -# ChainInfoEnabledFeature - -## Example Usage - -```typescript -import { ChainInfoEnabledFeature } from "@avalanche-sdk/data/models/components"; - -let value: ChainInfoEnabledFeature = "nftIndexing"; -``` - -## Values - -```typescript -"nftIndexing" | "webhooks" | "teleporter" -``` \ No newline at end of file diff --git a/data/docs/models/components/chainstatus.md b/data/docs/models/components/chainstatus.md deleted file mode 100644 index 579d5628..00000000 --- a/data/docs/models/components/chainstatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# ChainStatus - -Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. - -## Example Usage - -```typescript -import { ChainStatus } from "@avalanche-sdk/data/models/components"; - -let value: ChainStatus = "UNAVAILABLE"; -``` - -## Values - -```typescript -"OK" | "UNAVAILABLE" -``` \ No newline at end of file diff --git a/data/docs/models/components/collectiblebalance.md b/data/docs/models/components/collectiblebalance.md deleted file mode 100644 index cbf4f362..00000000 --- a/data/docs/models/components/collectiblebalance.md +++ /dev/null @@ -1,39 +0,0 @@ -# CollectibleBalance - - -## Supported Types - -### `components.Erc721TokenBalance` - -```typescript -const value: components.Erc721TokenBalance = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://normal-skeleton.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - chainId: "43114", -}; -``` - -### `components.Erc1155TokenBalance` - -```typescript -const value: components.Erc1155TokenBalance = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://talkative-parsnip.net/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - chainId: "43114", - balance: "2000000000000000000", -}; -``` - diff --git a/data/docs/models/components/completeddelegatordetails.md b/data/docs/models/components/completeddelegatordetails.md deleted file mode 100644 index 2190fe36..00000000 --- a/data/docs/models/components/completeddelegatordetails.md +++ /dev/null @@ -1,38 +0,0 @@ -# CompletedDelegatorDetails - -## Example Usage - -```typescript -import { CompletedDelegatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: CompletedDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 6019.22, - endTimestamp: 5820.57, - grossReward: "", - netReward: "", - delegationStatus: "completed", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `rewardAddresses` | *string*[] | :heavy_check_mark: | N/A | -| `amountDelegated` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_check_mark: | N/A | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `grossReward` | *string* | :heavy_check_mark: | Total rewards distributed for the successful delegation. | -| `netReward` | *string* | :heavy_check_mark: | Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation. | -| `delegationStatus` | [components.CompletedDelegatorDetailsDelegationStatus](../../models/components/completeddelegatordetailsdelegationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/completeddelegatordetailsdelegationstatus.md b/data/docs/models/components/completeddelegatordetailsdelegationstatus.md deleted file mode 100644 index 1cc45b8b..00000000 --- a/data/docs/models/components/completeddelegatordetailsdelegationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# CompletedDelegatorDetailsDelegationStatus - -## Example Usage - -```typescript -import { CompletedDelegatorDetailsDelegationStatus } from "@avalanche-sdk/data/models/components"; - -let value: CompletedDelegatorDetailsDelegationStatus = "completed"; -``` - -## Values - -```typescript -"completed" -``` \ No newline at end of file diff --git a/data/docs/models/components/completedvalidatordetails.md b/data/docs/models/components/completedvalidatordetails.md deleted file mode 100644 index 767b3350..00000000 --- a/data/docs/models/components/completedvalidatordetails.md +++ /dev/null @@ -1,39 +0,0 @@ -# CompletedValidatorDetails - -## Example Usage - -```typescript -import { CompletedValidatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: CompletedValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 5378.27, - endTimestamp: 6683.55, - delegatorCount: 7443.98, - rewards: { - validationRewardAmount: "", - delegationRewardAmount: "", - }, - validationStatus: "completed", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_minus_sign: | The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blsCredentials` | [components.BlsCredentials](../../models/components/blscredentials.md) | :heavy_minus_sign: | Present for AddPermissionlessValidatorTx | -| `delegatorCount` | *number* | :heavy_check_mark: | N/A | -| `amountDelegated` | *string* | :heavy_minus_sign: | N/A | -| `rewards` | [components.Rewards](../../models/components/rewards.md) | :heavy_check_mark: | N/A | -| `validationStatus` | [components.CompletedValidatorDetailsValidationStatus](../../models/components/completedvalidatordetailsvalidationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/completedvalidatordetailsvalidationstatus.md b/data/docs/models/components/completedvalidatordetailsvalidationstatus.md deleted file mode 100644 index 420008b9..00000000 --- a/data/docs/models/components/completedvalidatordetailsvalidationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# CompletedValidatorDetailsValidationStatus - -## Example Usage - -```typescript -import { CompletedValidatorDetailsValidationStatus } from "@avalanche-sdk/data/models/components"; - -let value: CompletedValidatorDetailsValidationStatus = "completed"; -``` - -## Values - -```typescript -"completed" -``` \ No newline at end of file diff --git a/data/docs/models/components/contract.md b/data/docs/models/components/contract.md deleted file mode 100644 index 646e2e27..00000000 --- a/data/docs/models/components/contract.md +++ /dev/null @@ -1,49 +0,0 @@ -# Contract - - -## Supported Types - -### `components.Erc721Contract` - -```typescript -const value: components.Erc721Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-721", - symbol: "WAVAX", -}; -``` - -### `components.Erc1155Contract` - -```typescript -const value: components.Erc1155Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - symbol: "WAVAX", -}; -``` - -### `components.Erc20Contract` - -```typescript -const value: components.Erc20Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-20", - symbol: "WAVAX", - decimals: 18, -}; -``` - -### `components.UnknownContract` - -```typescript -const value: components.UnknownContract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "UNKNOWN", -}; -``` - diff --git a/data/docs/models/components/contractdeploymentdetails.md b/data/docs/models/components/contractdeploymentdetails.md deleted file mode 100644 index 993911fc..00000000 --- a/data/docs/models/components/contractdeploymentdetails.md +++ /dev/null @@ -1,20 +0,0 @@ -# ContractDeploymentDetails - -## Example Usage - -```typescript -import { ContractDeploymentDetails } from "@avalanche-sdk/data/models/components"; - -let value: ContractDeploymentDetails = { - txHash: "", - deployerAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `deployerAddress` | *string* | :heavy_check_mark: | The address that initiated the transaction which deployed this contract. | -| `deployerContractAddress` | *string* | :heavy_minus_sign: | The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution. | \ No newline at end of file diff --git a/data/docs/models/components/createevmtransactionexportrequest.md b/data/docs/models/components/createevmtransactionexportrequest.md deleted file mode 100644 index 5fc77f6a..00000000 --- a/data/docs/models/components/createevmtransactionexportrequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# CreateEvmTransactionExportRequest - -## Example Usage - -```typescript -import { CreateEvmTransactionExportRequest } from "@avalanche-sdk/data/models/components"; - -let value: CreateEvmTransactionExportRequest = { - type: "TRANSACTION_EXPORT_EVM", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - addresses: [ - "", - "", - "", - ], - includeChains: [ - "43114", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `type` | [components.EVMOperationType](../../models/components/evmoperationtype.md) | :heavy_check_mark: | N/A | | -| `firstDate` | *string* | :heavy_minus_sign: | N/A | 2023-05-01 | -| `lastDate` | *string* | :heavy_minus_sign: | N/A | 2023-05-02 | -| ~~`startDate`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 2023-05-01 | -| ~~`endDate`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 2023-05-02 | -| `options` | [components.EvmNetworkOptions](../../models/components/evmnetworkoptions.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/createprimarynetworktransactionexportrequest.md b/data/docs/models/components/createprimarynetworktransactionexportrequest.md deleted file mode 100644 index 5e169b38..00000000 --- a/data/docs/models/components/createprimarynetworktransactionexportrequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# CreatePrimaryNetworkTransactionExportRequest - -## Example Usage - -```typescript -import { CreatePrimaryNetworkTransactionExportRequest } from "@avalanche-sdk/data/models/components"; - -let value: CreatePrimaryNetworkTransactionExportRequest = { - type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - includeChains: [ - "p-chain", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `type` | [components.PrimaryNetworkOperationType](../../models/components/primarynetworkoperationtype.md) | :heavy_check_mark: | N/A | | -| `firstDate` | *string* | :heavy_minus_sign: | N/A | 2023-05-01 | -| `lastDate` | *string* | :heavy_minus_sign: | N/A | 2023-05-02 | -| ~~`startDate`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 2023-05-01 | -| ~~`endDate`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 2023-05-02 | -| `options` | [components.PrimaryNetworkOptions](../../models/components/primarynetworkoptions.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/currencycode.md b/data/docs/models/components/currencycode.md deleted file mode 100644 index 423fb9f7..00000000 --- a/data/docs/models/components/currencycode.md +++ /dev/null @@ -1,17 +0,0 @@ -# CurrencyCode - -ISO 4217 currency code. - -## Example Usage - -```typescript -import { CurrencyCode } from "@avalanche-sdk/data/models/components"; - -let value: CurrencyCode = "usd"; -``` - -## Values - -```typescript -"usd" | "eur" | "aud" | "cad" | "chf" | "clp" | "cny" | "czk" | "dkk" | "gbp" | "hkd" | "huf" | "jpy" | "nzd" -``` \ No newline at end of file diff --git a/data/docs/models/components/delegationstatustype.md b/data/docs/models/components/delegationstatustype.md deleted file mode 100644 index a5caf902..00000000 --- a/data/docs/models/components/delegationstatustype.md +++ /dev/null @@ -1,15 +0,0 @@ -# DelegationStatusType - -## Example Usage - -```typescript -import { DelegationStatusType } from "@avalanche-sdk/data/models/components"; - -let value: DelegationStatusType = "completed"; -``` - -## Values - -```typescript -"completed" | "active" | "pending" -``` \ No newline at end of file diff --git a/data/docs/models/components/delegator.md b/data/docs/models/components/delegator.md deleted file mode 100644 index 965718a3..00000000 --- a/data/docs/models/components/delegator.md +++ /dev/null @@ -1,63 +0,0 @@ -# Delegator - - -## Supported Types - -### `components.ActiveDelegatorDetails` - -```typescript -const value: components.ActiveDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 1058.92, - endTimestamp: 337.36, - estimatedGrossReward: "", - estimatedNetReward: "", - delegationStatus: "active", -}; -``` - -### `components.PendingDelegatorDetails` - -```typescript -const value: components.PendingDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 5278.42, - endTimestamp: 9478.17, - estimatedGrossReward: "", - estimatedNetReward: "", - delegationStatus: "pending", -}; -``` - -### `components.CompletedDelegatorDetails` - -```typescript -const value: components.CompletedDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 6019.22, - endTimestamp: 5820.57, - grossReward: "", - netReward: "", - delegationStatus: "completed", -}; -``` - diff --git a/data/docs/models/components/delegatorsdetails.md b/data/docs/models/components/delegatorsdetails.md deleted file mode 100644 index 744c5c62..00000000 --- a/data/docs/models/components/delegatorsdetails.md +++ /dev/null @@ -1,19 +0,0 @@ -# DelegatorsDetails - -## Example Usage - -```typescript -import { DelegatorsDetails } from "@avalanche-sdk/data/models/components"; - -let value: DelegatorsDetails = { - delegatorCount: 7517.48, - totalAmountStaked: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `delegatorCount` | *number* | :heavy_check_mark: | N/A | -| `totalAmountStaked` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/deliveredicmmessage.md b/data/docs/models/components/deliveredicmmessage.md deleted file mode 100644 index 185df2d4..00000000 --- a/data/docs/models/components/deliveredicmmessage.md +++ /dev/null @@ -1,71 +0,0 @@ -# DeliveredIcmMessage - -## Example Usage - -```typescript -import { DeliveredIcmMessage } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: true, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `icmContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.IcmReceipt](../../models/components/icmreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.IcmRewardDetails](../../models/components/icmrewarddetails.md) | :heavy_check_mark: | N/A | -| `sourceTransaction` | [components.IcmSourceTransaction](../../models/components/icmsourcetransaction.md) | :heavy_check_mark: | N/A | -| `destinationTransaction` | [components.IcmDestinationTransaction](../../models/components/icmdestinationtransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.DeliveredIcmMessageStatus](../../models/components/deliveredicmmessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/deliveredicmmessagestatus.md b/data/docs/models/components/deliveredicmmessagestatus.md deleted file mode 100644 index 1e61d366..00000000 --- a/data/docs/models/components/deliveredicmmessagestatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeliveredIcmMessageStatus - -## Example Usage - -```typescript -import { DeliveredIcmMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredIcmMessageStatus = "delivered"; -``` - -## Values - -```typescript -"delivered" -``` \ No newline at end of file diff --git a/data/docs/models/components/deliveredsourcenotindexedicmmessage.md b/data/docs/models/components/deliveredsourcenotindexedicmmessage.md deleted file mode 100644 index 58ba4430..00000000 --- a/data/docs/models/components/deliveredsourcenotindexedicmmessage.md +++ /dev/null @@ -1,65 +0,0 @@ -# DeliveredSourceNotIndexedIcmMessage - -## Example Usage - -```typescript -import { DeliveredSourceNotIndexedIcmMessage } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredSourceNotIndexedIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `icmContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.IcmReceipt](../../models/components/icmreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.IcmRewardDetails](../../models/components/icmrewarddetails.md) | :heavy_check_mark: | N/A | -| `destinationTransaction` | [components.IcmDestinationTransaction](../../models/components/icmdestinationtransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.DeliveredSourceNotIndexedIcmMessageStatus](../../models/components/deliveredsourcenotindexedicmmessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md b/data/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md deleted file mode 100644 index a535bfb0..00000000 --- a/data/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeliveredSourceNotIndexedIcmMessageStatus - -## Example Usage - -```typescript -import { DeliveredSourceNotIndexedIcmMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredSourceNotIndexedIcmMessageStatus = - "delivered_source_not_indexed"; -``` - -## Values - -```typescript -"delivered_source_not_indexed" -``` \ No newline at end of file diff --git a/data/docs/models/components/deliveredsourcenotindexedteleportermessage.md b/data/docs/models/components/deliveredsourcenotindexedteleportermessage.md deleted file mode 100644 index 3f970efd..00000000 --- a/data/docs/models/components/deliveredsourcenotindexedteleportermessage.md +++ /dev/null @@ -1,70 +0,0 @@ -# DeliveredSourceNotIndexedTeleporterMessage - -## Example Usage - -```typescript -import { DeliveredSourceNotIndexedTeleporterMessage } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredSourceNotIndexedTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: true, - receipts: [ - { - receivedMessageNonce: "", - relayerRewardAddress: "", - }, - ], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 4770.43, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `teleporterContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.TeleporterReceipt](../../models/components/teleporterreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.TeleporterRewardDetails](../../models/components/teleporterrewarddetails.md) | :heavy_check_mark: | N/A | -| `destinationTransaction` | [components.TeleporterDestinationTransaction](../../models/components/teleporterdestinationtransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.DeliveredSourceNotIndexedTeleporterMessageStatus](../../models/components/deliveredsourcenotindexedteleportermessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md b/data/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md deleted file mode 100644 index 4b1abd1d..00000000 --- a/data/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeliveredSourceNotIndexedTeleporterMessageStatus - -## Example Usage - -```typescript -import { DeliveredSourceNotIndexedTeleporterMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredSourceNotIndexedTeleporterMessageStatus = - "delivered_source_not_indexed"; -``` - -## Values - -```typescript -"delivered_source_not_indexed" -``` \ No newline at end of file diff --git a/data/docs/models/components/deliveredteleportermessage.md b/data/docs/models/components/deliveredteleportermessage.md deleted file mode 100644 index 3dda3833..00000000 --- a/data/docs/models/components/deliveredteleportermessage.md +++ /dev/null @@ -1,71 +0,0 @@ -# DeliveredTeleporterMessage - -## Example Usage - -```typescript -import { DeliveredTeleporterMessage } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 4770.43, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `teleporterContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.TeleporterReceipt](../../models/components/teleporterreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.TeleporterRewardDetails](../../models/components/teleporterrewarddetails.md) | :heavy_check_mark: | N/A | -| `sourceTransaction` | [components.TeleporterSourceTransaction](../../models/components/teleportersourcetransaction.md) | :heavy_check_mark: | N/A | -| `destinationTransaction` | [components.TeleporterDestinationTransaction](../../models/components/teleporterdestinationtransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.DeliveredTeleporterMessageStatus](../../models/components/deliveredteleportermessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/deliveredteleportermessagestatus.md b/data/docs/models/components/deliveredteleportermessagestatus.md deleted file mode 100644 index a0529e98..00000000 --- a/data/docs/models/components/deliveredteleportermessagestatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeliveredTeleporterMessageStatus - -## Example Usage - -```typescript -import { DeliveredTeleporterMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: DeliveredTeleporterMessageStatus = "delivered"; -``` - -## Values - -```typescript -"delivered" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc1155contract.md b/data/docs/models/components/erc1155contract.md deleted file mode 100644 index 32cf4699..00000000 --- a/data/docs/models/components/erc1155contract.md +++ /dev/null @@ -1,33 +0,0 @@ -# Erc1155Contract - -## Example Usage - -```typescript -import { Erc1155Contract } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - symbol: "WAVAX", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The contract name. | Wrapped AVAX | -| `description` | *string* | :heavy_minus_sign: | N/A | | -| `officialSite` | *string* | :heavy_minus_sign: | N/A | | -| `email` | *string* | :heavy_minus_sign: | N/A | | -| `logoAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `bannerAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `color` | *string* | :heavy_minus_sign: | N/A | | -| `resourceLinks` | [components.ResourceLink](../../models/components/resourcelink.md)[] | :heavy_minus_sign: | N/A | | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `deploymentDetails` | [components.ContractDeploymentDetails](../../models/components/contractdeploymentdetails.md) | :heavy_minus_sign: | N/A | | -| `ercType` | [components.Erc1155ContractErcType](../../models/components/erc1155contracterctype.md) | :heavy_check_mark: | N/A | | -| `symbol` | *string* | :heavy_minus_sign: | The contract symbol. | WAVAX | -| `pricingProviders` | [components.PricingProviders](../../models/components/pricingproviders.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc1155contracterctype.md b/data/docs/models/components/erc1155contracterctype.md deleted file mode 100644 index 4875ec8a..00000000 --- a/data/docs/models/components/erc1155contracterctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc1155ContractErcType - -## Example Usage - -```typescript -import { Erc1155ContractErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155ContractErcType = "ERC-1155"; -``` - -## Values - -```typescript -"ERC-1155" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc1155token.md b/data/docs/models/components/erc1155token.md deleted file mode 100644 index 17e6f347..00000000 --- a/data/docs/models/components/erc1155token.md +++ /dev/null @@ -1,27 +0,0 @@ -# Erc1155Token - -## Example Usage - -```typescript -import { Erc1155Token } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://babyish-adult.name", - metadata: { - indexStatus: "INVALID_METADATA", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `ercType` | [components.Erc1155TokenErcType](../../models/components/erc1155tokenerctype.md) | :heavy_check_mark: | N/A | | -| `tokenId` | *string* | :heavy_check_mark: | N/A | | -| `tokenUri` | *string* | :heavy_check_mark: | N/A | | -| `metadata` | [components.Erc1155TokenMetadata](../../models/components/erc1155tokenmetadata.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc1155tokenbalance.md b/data/docs/models/components/erc1155tokenbalance.md deleted file mode 100644 index 98e36fda..00000000 --- a/data/docs/models/components/erc1155tokenbalance.md +++ /dev/null @@ -1,31 +0,0 @@ -# Erc1155TokenBalance - -## Example Usage - -```typescript -import { Erc1155TokenBalance } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155TokenBalance = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://talkative-parsnip.net/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - chainId: "43114", - balance: "2000000000000000000", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `ercType` | [components.Erc1155TokenBalanceErcType](../../models/components/erc1155tokenbalanceerctype.md) | :heavy_check_mark: | N/A | | -| `tokenId` | *string* | :heavy_check_mark: | N/A | | -| `tokenUri` | *string* | :heavy_check_mark: | N/A | | -| `metadata` | [components.Erc1155TokenMetadata](../../models/components/erc1155tokenmetadata.md) | :heavy_check_mark: | N/A | | -| `chainId` | *string* | :heavy_check_mark: | The evm chain id. | 43114 | -| `balance` | *string* | :heavy_check_mark: | The address balance for the token, in units specified by the `decimals` value for the contract. | 2000000000000000000 | \ No newline at end of file diff --git a/data/docs/models/components/erc1155tokenbalanceerctype.md b/data/docs/models/components/erc1155tokenbalanceerctype.md deleted file mode 100644 index 88811b29..00000000 --- a/data/docs/models/components/erc1155tokenbalanceerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc1155TokenBalanceErcType - -## Example Usage - -```typescript -import { Erc1155TokenBalanceErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155TokenBalanceErcType = "ERC-1155"; -``` - -## Values - -```typescript -"ERC-1155" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc1155tokenerctype.md b/data/docs/models/components/erc1155tokenerctype.md deleted file mode 100644 index c61c7aba..00000000 --- a/data/docs/models/components/erc1155tokenerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc1155TokenErcType - -## Example Usage - -```typescript -import { Erc1155TokenErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155TokenErcType = "ERC-1155"; -``` - -## Values - -```typescript -"ERC-1155" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc1155tokenmetadata.md b/data/docs/models/components/erc1155tokenmetadata.md deleted file mode 100644 index e5018ca8..00000000 --- a/data/docs/models/components/erc1155tokenmetadata.md +++ /dev/null @@ -1,27 +0,0 @@ -# Erc1155TokenMetadata - -## Example Usage - -```typescript -import { Erc1155TokenMetadata } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155TokenMetadata = { - indexStatus: "THROTTLED_TOKEN_URI", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `indexStatus` | [components.NftTokenMetadataStatus](../../models/components/nfttokenmetadatastatus.md) | :heavy_check_mark: | The metadata indexing status of the nft. | -| `metadataLastUpdatedTimestamp` | *number* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `symbol` | *string* | :heavy_minus_sign: | N/A | -| `imageUri` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `animationUri` | *string* | :heavy_minus_sign: | N/A | -| `externalUrl` | *string* | :heavy_minus_sign: | N/A | -| `background` | *string* | :heavy_minus_sign: | N/A | -| `decimals` | *number* | :heavy_minus_sign: | N/A | -| `properties` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/erc1155transfer.md b/data/docs/models/components/erc1155transfer.md deleted file mode 100644 index 1eb0c6dd..00000000 --- a/data/docs/models/components/erc1155transfer.md +++ /dev/null @@ -1,56 +0,0 @@ -# Erc1155Transfer - -## Example Usage - -```typescript -import { Erc1155Transfer } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4248.38, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `logIndex` | *number* | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `erc1155Token` | [components.Erc1155Token](../../models/components/erc1155token.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc1155transferdetails.md b/data/docs/models/components/erc1155transferdetails.md deleted file mode 100644 index ea4c49e2..00000000 --- a/data/docs/models/components/erc1155transferdetails.md +++ /dev/null @@ -1,47 +0,0 @@ -# Erc1155TransferDetails - -## Example Usage - -```typescript -import { Erc1155TransferDetails } from "@avalanche-sdk/data/models/components"; - -let value: Erc1155TransferDetails = { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 3757.05, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `logIndex` | *number* | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `erc1155Token` | [components.Erc1155Token](../../models/components/erc1155token.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc20contract.md b/data/docs/models/components/erc20contract.md deleted file mode 100644 index 599f916d..00000000 --- a/data/docs/models/components/erc20contract.md +++ /dev/null @@ -1,35 +0,0 @@ -# Erc20Contract - -## Example Usage - -```typescript -import { Erc20Contract } from "@avalanche-sdk/data/models/components"; - -let value: Erc20Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-20", - symbol: "WAVAX", - decimals: 18, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The contract name. | Wrapped AVAX | -| `description` | *string* | :heavy_minus_sign: | N/A | | -| `officialSite` | *string* | :heavy_minus_sign: | N/A | | -| `email` | *string* | :heavy_minus_sign: | N/A | | -| `logoAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `bannerAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `color` | *string* | :heavy_minus_sign: | N/A | | -| `resourceLinks` | [components.ResourceLink](../../models/components/resourcelink.md)[] | :heavy_minus_sign: | N/A | | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `deploymentDetails` | [components.ContractDeploymentDetails](../../models/components/contractdeploymentdetails.md) | :heavy_minus_sign: | N/A | | -| `ercType` | [components.Erc20ContractErcType](../../models/components/erc20contracterctype.md) | :heavy_check_mark: | N/A | | -| `symbol` | *string* | :heavy_minus_sign: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `pricingProviders` | [components.PricingProviders](../../models/components/pricingproviders.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc20contracterctype.md b/data/docs/models/components/erc20contracterctype.md deleted file mode 100644 index 05df0f54..00000000 --- a/data/docs/models/components/erc20contracterctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc20ContractErcType - -## Example Usage - -```typescript -import { Erc20ContractErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc20ContractErcType = "ERC-20"; -``` - -## Values - -```typescript -"ERC-20" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc20token.md b/data/docs/models/components/erc20token.md deleted file mode 100644 index 4397c996..00000000 --- a/data/docs/models/components/erc20token.md +++ /dev/null @@ -1,33 +0,0 @@ -# Erc20Token - -## Example Usage - -```typescript -import { Erc20Token } from "@avalanche-sdk/data/models/components"; - -let value: Erc20Token = { - 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, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `ercType` | [components.Erc20TokenErcType](../../models/components/erc20tokenerctype.md) | :heavy_check_mark: | N/A | | -| `price` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The token price, if available. | | \ No newline at end of file diff --git a/data/docs/models/components/erc20tokenbalance.md b/data/docs/models/components/erc20tokenbalance.md deleted file mode 100644 index 8e0bf9a2..00000000 --- a/data/docs/models/components/erc20tokenbalance.md +++ /dev/null @@ -1,44 +0,0 @@ -# Erc20TokenBalance - -## Example Usage - -```typescript -import { Erc20TokenBalance } from "@avalanche-sdk/data/models/components"; - -let value: Erc20TokenBalance = { - 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, - }, - chainId: "43114", - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - tokenReputation: "Malicious", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `ercType` | [components.Erc20TokenBalanceErcType](../../models/components/erc20tokenbalanceerctype.md) | :heavy_check_mark: | N/A | | -| `price` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The token price, if available. | | -| `chainId` | *string* | :heavy_check_mark: | The evm chain id. | 43114 | -| `balance` | *string* | :heavy_check_mark: | The address balance for the token, in units specified by the `decimals` value for the contract. | 2000000000000000000 | -| `balanceValue` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The monetary value of the balance, if a price is available for the token. | | -| `tokenReputation` | [components.TokenReputation](../../models/components/tokenreputation.md) | :heavy_check_mark: | Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. | Malicious | \ No newline at end of file diff --git a/data/docs/models/components/erc20tokenbalanceerctype.md b/data/docs/models/components/erc20tokenbalanceerctype.md deleted file mode 100644 index 50fa30d6..00000000 --- a/data/docs/models/components/erc20tokenbalanceerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc20TokenBalanceErcType - -## Example Usage - -```typescript -import { Erc20TokenBalanceErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc20TokenBalanceErcType = "ERC-20"; -``` - -## Values - -```typescript -"ERC-20" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc20tokenerctype.md b/data/docs/models/components/erc20tokenerctype.md deleted file mode 100644 index 215fe79d..00000000 --- a/data/docs/models/components/erc20tokenerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc20TokenErcType - -## Example Usage - -```typescript -import { Erc20TokenErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc20TokenErcType = "ERC-20"; -``` - -## Values - -```typescript -"ERC-20" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc20transfer.md b/data/docs/models/components/erc20transfer.md deleted file mode 100644 index 4df15f38..00000000 --- a/data/docs/models/components/erc20transfer.md +++ /dev/null @@ -1,60 +0,0 @@ -# Erc20Transfer - -## Example Usage - -```typescript -import { Erc20Transfer } from "@avalanche-sdk/data/models/components"; - -let value: Erc20Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4639.57, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `logIndex` | *number* | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `erc20Token` | [components.Erc20Token](../../models/components/erc20token.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc20transferdetails.md b/data/docs/models/components/erc20transferdetails.md deleted file mode 100644 index 9e4b8cfe..00000000 --- a/data/docs/models/components/erc20transferdetails.md +++ /dev/null @@ -1,51 +0,0 @@ -# Erc20TransferDetails - -## Example Usage - -```typescript -import { Erc20TransferDetails } from "@avalanche-sdk/data/models/components"; - -let value: Erc20TransferDetails = { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2549.85, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `logIndex` | *number* | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `erc20Token` | [components.Erc20Token](../../models/components/erc20token.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc721contract.md b/data/docs/models/components/erc721contract.md deleted file mode 100644 index c7619087..00000000 --- a/data/docs/models/components/erc721contract.md +++ /dev/null @@ -1,32 +0,0 @@ -# Erc721Contract - -## Example Usage - -```typescript -import { Erc721Contract } from "@avalanche-sdk/data/models/components"; - -let value: Erc721Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-721", - symbol: "WAVAX", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The contract name. | Wrapped AVAX | -| `description` | *string* | :heavy_minus_sign: | N/A | | -| `officialSite` | *string* | :heavy_minus_sign: | N/A | | -| `email` | *string* | :heavy_minus_sign: | N/A | | -| `logoAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `bannerAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `color` | *string* | :heavy_minus_sign: | N/A | | -| `resourceLinks` | [components.ResourceLink](../../models/components/resourcelink.md)[] | :heavy_minus_sign: | N/A | | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `deploymentDetails` | [components.ContractDeploymentDetails](../../models/components/contractdeploymentdetails.md) | :heavy_minus_sign: | N/A | | -| `ercType` | [components.Erc721ContractErcType](../../models/components/erc721contracterctype.md) | :heavy_check_mark: | N/A | | -| `symbol` | *string* | :heavy_minus_sign: | The contract symbol. | WAVAX | \ No newline at end of file diff --git a/data/docs/models/components/erc721contracterctype.md b/data/docs/models/components/erc721contracterctype.md deleted file mode 100644 index f46976d7..00000000 --- a/data/docs/models/components/erc721contracterctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc721ContractErcType - -## Example Usage - -```typescript -import { Erc721ContractErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc721ContractErcType = "ERC-721"; -``` - -## Values - -```typescript -"ERC-721" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc721token.md b/data/docs/models/components/erc721token.md deleted file mode 100644 index 83a0d295..00000000 --- a/data/docs/models/components/erc721token.md +++ /dev/null @@ -1,33 +0,0 @@ -# Erc721Token - -## Example Usage - -```typescript -import { Erc721Token } from "@avalanche-sdk/data/models/components"; - -let value: Erc721Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://whopping-role.name/", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `ercType` | [components.Erc721TokenErcType](../../models/components/erc721tokenerctype.md) | :heavy_check_mark: | N/A | | -| `tokenId` | *string* | :heavy_check_mark: | N/A | | -| `tokenUri` | *string* | :heavy_check_mark: | N/A | | -| `metadata` | [components.Erc721TokenMetadata](../../models/components/erc721tokenmetadata.md) | :heavy_check_mark: | N/A | | -| `ownerAddress` | *string* | :heavy_minus_sign: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/components/erc721tokenbalance.md b/data/docs/models/components/erc721tokenbalance.md deleted file mode 100644 index 4575d3f9..00000000 --- a/data/docs/models/components/erc721tokenbalance.md +++ /dev/null @@ -1,35 +0,0 @@ -# Erc721TokenBalance - -## Example Usage - -```typescript -import { Erc721TokenBalance } from "@avalanche-sdk/data/models/components"; - -let value: Erc721TokenBalance = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://normal-skeleton.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `ercType` | [components.Erc721TokenBalanceErcType](../../models/components/erc721tokenbalanceerctype.md) | :heavy_check_mark: | N/A | | -| `tokenId` | *string* | :heavy_check_mark: | N/A | | -| `tokenUri` | *string* | :heavy_check_mark: | N/A | | -| `metadata` | [components.Erc721TokenMetadata](../../models/components/erc721tokenmetadata.md) | :heavy_check_mark: | N/A | | -| `ownerAddress` | *string* | :heavy_minus_sign: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `chainId` | *string* | :heavy_check_mark: | The evm chain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/components/erc721tokenbalanceerctype.md b/data/docs/models/components/erc721tokenbalanceerctype.md deleted file mode 100644 index da8319fa..00000000 --- a/data/docs/models/components/erc721tokenbalanceerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc721TokenBalanceErcType - -## Example Usage - -```typescript -import { Erc721TokenBalanceErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc721TokenBalanceErcType = "ERC-721"; -``` - -## Values - -```typescript -"ERC-721" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc721tokenerctype.md b/data/docs/models/components/erc721tokenerctype.md deleted file mode 100644 index acfacf26..00000000 --- a/data/docs/models/components/erc721tokenerctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Erc721TokenErcType - -## Example Usage - -```typescript -import { Erc721TokenErcType } from "@avalanche-sdk/data/models/components"; - -let value: Erc721TokenErcType = "ERC-721"; -``` - -## Values - -```typescript -"ERC-721" -``` \ No newline at end of file diff --git a/data/docs/models/components/erc721tokenmetadata.md b/data/docs/models/components/erc721tokenmetadata.md deleted file mode 100644 index 22228987..00000000 --- a/data/docs/models/components/erc721tokenmetadata.md +++ /dev/null @@ -1,26 +0,0 @@ -# Erc721TokenMetadata - -## Example Usage - -```typescript -import { Erc721TokenMetadata } from "@avalanche-sdk/data/models/components"; - -let value: Erc721TokenMetadata = { - indexStatus: "INVALID_TOKEN_URI_SCHEME", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `indexStatus` | [components.NftTokenMetadataStatus](../../models/components/nfttokenmetadatastatus.md) | :heavy_check_mark: | The metadata indexing status of the nft. | -| `metadataLastUpdatedTimestamp` | *number* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `symbol` | *string* | :heavy_minus_sign: | N/A | -| `imageUri` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `animationUri` | *string* | :heavy_minus_sign: | N/A | -| `externalUrl` | *string* | :heavy_minus_sign: | N/A | -| `background` | *string* | :heavy_minus_sign: | N/A | -| `attributes` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/erc721transfer.md b/data/docs/models/components/erc721transfer.md deleted file mode 100644 index a8a142bc..00000000 --- a/data/docs/models/components/erc721transfer.md +++ /dev/null @@ -1,57 +0,0 @@ -# Erc721Transfer - -## Example Usage - -```typescript -import { Erc721Transfer } from "@avalanche-sdk/data/models/components"; - -let value: Erc721Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 148.11, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `logIndex` | *number* | :heavy_check_mark: | N/A | | -| `erc721Token` | [components.Erc721Token](../../models/components/erc721token.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/erc721transferdetails.md b/data/docs/models/components/erc721transferdetails.md deleted file mode 100644 index b4d16f4e..00000000 --- a/data/docs/models/components/erc721transferdetails.md +++ /dev/null @@ -1,48 +0,0 @@ -# Erc721TransferDetails - -## Example Usage - -```typescript -import { Erc721TransferDetails } from "@avalanche-sdk/data/models/components"; - -let value: Erc721TransferDetails = { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 5782.32, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | -| `logIndex` | *number* | :heavy_check_mark: | N/A | -| `erc721Token` | [components.Erc721Token](../../models/components/erc721token.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/evmblock.md b/data/docs/models/components/evmblock.md deleted file mode 100644 index 47872401..00000000 --- a/data/docs/models/components/evmblock.md +++ /dev/null @@ -1,40 +0,0 @@ -# EvmBlock - -## Example Usage - -```typescript -import { EvmBlock } from "@avalanche-sdk/data/models/components"; - -let value: EvmBlock = { - chainId: "43114", - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 4089.02, - baseFee: "", - gasUsed: "", - gasLimit: "", - gasCost: "", - parentHash: "", - feesSpent: "", - cumulativeTransactions: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_check_mark: | The EVM chain ID on which the block was created. | 43114 | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txCount` | *number* | :heavy_check_mark: | The number of evm transactions in the block. | | -| `baseFee` | *string* | :heavy_check_mark: | The base gas fee for a transaction to be included in the block. | | -| `gasUsed` | *string* | :heavy_check_mark: | The gas used for transactions in the block. | | -| `gasLimit` | *string* | :heavy_check_mark: | The total gas limit set for transactions in the block. | | -| `gasCost` | *string* | :heavy_check_mark: | N/A | | -| `parentHash` | *string* | :heavy_check_mark: | The hash of the parent block. | | -| `feesSpent` | *string* | :heavy_check_mark: | The amount of fees spent/burned for transactions in the block. | | -| `cumulativeTransactions` | *string* | :heavy_check_mark: | The cumulative number of transactions for the chain including this block. | | \ No newline at end of file diff --git a/data/docs/models/components/evminput.md b/data/docs/models/components/evminput.md deleted file mode 100644 index 8aa4e52f..00000000 --- a/data/docs/models/components/evminput.md +++ /dev/null @@ -1,28 +0,0 @@ -# EVMInput - -## Example Usage - -```typescript -import { EVMInput } from "@avalanche-sdk/data/models/components"; - -let value: EVMInput = { - fromAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - credentials: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `fromAddress` | *string* | :heavy_check_mark: | EVM address from which the asset is exported in ExportTx. | 0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c | -| `asset` | [components.AssetAmount](../../models/components/assetamount.md) | :heavy_check_mark: | AssetAmount details for the asset being transferred. | | -| `credentials` | [components.UtxoCredential](../../models/components/utxocredential.md)[] | :heavy_check_mark: | Credentials that signed this transaction. | | \ No newline at end of file diff --git a/data/docs/models/components/evmnetworkoptions.md b/data/docs/models/components/evmnetworkoptions.md deleted file mode 100644 index fb1266b9..00000000 --- a/data/docs/models/components/evmnetworkoptions.md +++ /dev/null @@ -1,21 +0,0 @@ -# EvmNetworkOptions - -## Example Usage - -```typescript -import { EvmNetworkOptions } from "@avalanche-sdk/data/models/components"; - -let value: EvmNetworkOptions = { - addresses: [], - includeChains: [ - "43114", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `addresses` | *string*[] | :heavy_check_mark: | N/A | | -| `includeChains` | *string*[] | :heavy_check_mark: | N/A | [
"43114"
] | \ No newline at end of file diff --git a/data/docs/models/components/evmoperationtype.md b/data/docs/models/components/evmoperationtype.md deleted file mode 100644 index 901a0cf5..00000000 --- a/data/docs/models/components/evmoperationtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# EVMOperationType - -## Example Usage - -```typescript -import { EVMOperationType } from "@avalanche-sdk/data/models/components"; - -let value: EVMOperationType = "TRANSACTION_EXPORT_EVM"; -``` - -## Values - -```typescript -"TRANSACTION_EXPORT_EVM" -``` \ No newline at end of file diff --git a/data/docs/models/components/evmoutput.md b/data/docs/models/components/evmoutput.md deleted file mode 100644 index 2bf3dfae..00000000 --- a/data/docs/models/components/evmoutput.md +++ /dev/null @@ -1,26 +0,0 @@ -# EVMOutput - -## Example Usage - -```typescript -import { EVMOutput } from "@avalanche-sdk/data/models/components"; - -let value: EVMOutput = { - toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `toAddress` | *string* | :heavy_check_mark: | EVM address to which the asset is imported in ImportTx | 0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c | -| `asset` | [components.AssetAmount](../../models/components/assetamount.md) | :heavy_check_mark: | AssetAmount details for the asset being transferred. | | \ No newline at end of file diff --git a/data/docs/models/components/fullnativetransactiondetails.md b/data/docs/models/components/fullnativetransactiondetails.md deleted file mode 100644 index c6ff77cf..00000000 --- a/data/docs/models/components/fullnativetransactiondetails.md +++ /dev/null @@ -1,72 +0,0 @@ -# FullNativeTransactionDetails - -## Example Usage - -```typescript -import { FullNativeTransactionDetails } from "@avalanche-sdk/data/models/components"; - -let value: FullNativeTransactionDetails = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - chainId: "43114", - blockIndex: 0, - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - txStatus: "1", - txType: 1, - gasLimit: "51373", - gasUsed: "51373", - gasPrice: "470000000000", - nonce: "1", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - method: { - callType: "CONTRACT_CREATION", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", - }, - value: "10000000000000000000", - input: "", - baseFeePerGas: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `chainId` | *string* | :heavy_check_mark: | The EVM chain ID on which the transaction occured. | 43114 | -| `blockIndex` | *number* | :heavy_check_mark: | The index at which the transaction occured in the block (0-indexed). | 0 | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `txStatus` | *string* | :heavy_check_mark: | The transaction status, which is either 0 (failed) or 1 (successful). | 1 | -| `txType` | *number* | :heavy_check_mark: | The transaction type. | 1 | -| `gasLimit` | *string* | :heavy_check_mark: | The gas limit set for the transaction. | 51373 | -| `gasUsed` | *string* | :heavy_check_mark: | The amount of gas used. | 51373 | -| `gasPrice` | *string* | :heavy_check_mark: | The gas price denominated by the number of decimals of the native token. | 470000000000 | -| `nonce` | *string* | :heavy_check_mark: | The nonce used by the sender of the transaction. | 1 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `method` | [components.Method](../../models/components/method.md) | :heavy_minus_sign: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `input` | *string* | :heavy_check_mark: | The data sent for the transaction. | | -| `baseFeePerGas` | *string* | :heavy_check_mark: | N/A | | -| `maxFeePerGas` | *string* | :heavy_minus_sign: | N/A | | -| `maxPriorityFeePerGas` | *string* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/geolocation.md b/data/docs/models/components/geolocation.md deleted file mode 100644 index 8536c28e..00000000 --- a/data/docs/models/components/geolocation.md +++ /dev/null @@ -1,27 +0,0 @@ -# Geolocation - -The geographical location of the validator node, if available. - -## Example Usage - -```typescript -import { Geolocation } from "@avalanche-sdk/data/models/components"; - -let value: Geolocation = { - city: "Antelope", - country: "Oman", - countryCode: "NR", - latitude: 6205.17, - longitude: 1551.06, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `city` | *string* | :heavy_check_mark: | The name of the validator node. | -| `country` | *string* | :heavy_check_mark: | The city of the validator node. | -| `countryCode` | *string* | :heavy_check_mark: | The country code of the validator node. | -| `latitude` | *number* | :heavy_check_mark: | The latitude of the validator node. | -| `longitude` | *number* | :heavy_check_mark: | The longitude of the validator node. | \ No newline at end of file diff --git a/data/docs/models/components/getchainresponse.md b/data/docs/models/components/getchainresponse.md deleted file mode 100644 index f6542feb..00000000 --- a/data/docs/models/components/getchainresponse.md +++ /dev/null @@ -1,46 +0,0 @@ -# GetChainResponse - -## Example Usage - -```typescript -import { GetChainResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetChainResponse = { - chainId: "", - status: "OK", - chainName: "", - description: "colour hmph soon so fidget merrily unexpectedly utilization", - vmName: "ETHEREUM", - rpcUrl: "https://pleasant-gradient.info", - isTestnet: false, - networkToken: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `status` | [components.ChainStatus](../../models/components/chainstatus.md) | :heavy_check_mark: | Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. | -| `chainName` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_check_mark: | N/A | -| `platformChainId` | *string* | :heavy_minus_sign: | N/A | -| `subnetId` | *string* | :heavy_minus_sign: | N/A | -| `vmId` | *string* | :heavy_minus_sign: | N/A | -| `vmName` | [components.VmName](../../models/components/vmname.md) | :heavy_check_mark: | N/A | -| `explorerUrl` | *string* | :heavy_minus_sign: | N/A | -| `rpcUrl` | *string* | :heavy_check_mark: | N/A | -| `wsUrl` | *string* | :heavy_minus_sign: | N/A | -| `isTestnet` | *boolean* | :heavy_check_mark: | N/A | -| `utilityAddresses` | [components.UtilityAddresses](../../models/components/utilityaddresses.md) | :heavy_minus_sign: | N/A | -| `networkToken` | [components.NetworkToken](../../models/components/networktoken.md) | :heavy_check_mark: | N/A | -| `chainLogoUri` | *string* | :heavy_minus_sign: | N/A | -| `private` | *boolean* | :heavy_minus_sign: | N/A | -| `enabledFeatures` | [components.GetChainResponseEnabledFeature](../../models/components/getchainresponseenabledfeature.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/getchainresponseenabledfeature.md b/data/docs/models/components/getchainresponseenabledfeature.md deleted file mode 100644 index 1125d8ab..00000000 --- a/data/docs/models/components/getchainresponseenabledfeature.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetChainResponseEnabledFeature - -## Example Usage - -```typescript -import { GetChainResponseEnabledFeature } from "@avalanche-sdk/data/models/components"; - -let value: GetChainResponseEnabledFeature = "teleporter"; -``` - -## Values - -```typescript -"nftIndexing" | "webhooks" | "teleporter" -``` \ No newline at end of file diff --git a/data/docs/models/components/getevmblockresponse.md b/data/docs/models/components/getevmblockresponse.md deleted file mode 100644 index 2dd57374..00000000 --- a/data/docs/models/components/getevmblockresponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# GetEvmBlockResponse - -## Example Usage - -```typescript -import { GetEvmBlockResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetEvmBlockResponse = { - chainId: "43114", - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 951.35, - baseFee: "", - gasUsed: "", - gasLimit: "", - gasCost: "", - parentHash: "", - feesSpent: "", - cumulativeTransactions: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_check_mark: | The EVM chain ID on which the block was created. | 43114 | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txCount` | *number* | :heavy_check_mark: | The number of evm transactions in the block. | | -| `baseFee` | *string* | :heavy_check_mark: | The base gas fee for a transaction to be included in the block. | | -| `gasUsed` | *string* | :heavy_check_mark: | The gas used for transactions in the block. | | -| `gasLimit` | *string* | :heavy_check_mark: | The total gas limit set for transactions in the block. | | -| `gasCost` | *string* | :heavy_check_mark: | N/A | | -| `parentHash` | *string* | :heavy_check_mark: | The hash of the parent block. | | -| `feesSpent` | *string* | :heavy_check_mark: | The amount of fees spent/burned for transactions in the block. | | -| `cumulativeTransactions` | *string* | :heavy_check_mark: | The cumulative number of transactions for the chain including this block. | | \ No newline at end of file diff --git a/data/docs/models/components/getnativebalanceresponse.md b/data/docs/models/components/getnativebalanceresponse.md deleted file mode 100644 index e7f8e3fd..00000000 --- a/data/docs/models/components/getnativebalanceresponse.md +++ /dev/null @@ -1,33 +0,0 @@ -# GetNativeBalanceResponse - -## Example Usage - -```typescript -import { GetNativeBalanceResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetNativeBalanceResponse = { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `nativeTokenBalance` | [components.NativeTokenBalance](../../models/components/nativetokenbalance.md) | :heavy_check_mark: | The native token balance for the address. | \ No newline at end of file diff --git a/data/docs/models/components/getnetworkdetailsresponse.md b/data/docs/models/components/getnetworkdetailsresponse.md deleted file mode 100644 index 0c98d9cc..00000000 --- a/data/docs/models/components/getnetworkdetailsresponse.md +++ /dev/null @@ -1,28 +0,0 @@ -# GetNetworkDetailsResponse - -## Example Usage - -```typescript -import { GetNetworkDetailsResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetNetworkDetailsResponse = { - validatorDetails: { - validatorCount: 5215.83, - totalAmountStaked: "", - estimatedAnnualStakingReward: "", - stakingDistributionByVersion: [], - stakingRatio: "", - }, - delegatorDetails: { - delegatorCount: 4840.59, - totalAmountStaked: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `validatorDetails` | [components.ValidatorsDetails](../../models/components/validatorsdetails.md) | :heavy_check_mark: | N/A | -| `delegatorDetails` | [components.DelegatorsDetails](../../models/components/delegatorsdetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/getprimarynetworkblockresponse.md b/data/docs/models/components/getprimarynetworkblockresponse.md deleted file mode 100644 index 12c19e93..00000000 --- a/data/docs/models/components/getprimarynetworkblockresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetPrimaryNetworkBlockResponse - -## Example Usage - -```typescript -import { GetPrimaryNetworkBlockResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetPrimaryNetworkBlockResponse = { - blockNumber: "", - blockHash: "", - parentHash: "", - blockTimestamp: 5899, - blockType: "", - txCount: 8829.08, - transactions: [ - "", - "", - ], - blockSizeBytes: 1627.99, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | N/A | -| `blockHash` | *string* | :heavy_check_mark: | N/A | -| `parentHash` | *string* | :heavy_check_mark: | N/A | -| `blockTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blockType` | *string* | :heavy_check_mark: | N/A | -| `txCount` | *number* | :heavy_check_mark: | N/A | -| `transactions` | *string*[] | :heavy_check_mark: | N/A | -| `blockSizeBytes` | *number* | :heavy_check_mark: | N/A | -| `l1ValidatorsAccruedFees` | *number* | :heavy_minus_sign: | N/A | -| `activeL1Validators` | *number* | :heavy_minus_sign: | N/A | -| `currentSupply` | *string* | :heavy_minus_sign: | N/A | -| `proposerDetails` | [components.ProposerDetails](../../models/components/proposerdetails.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/gettransactionresponse.md b/data/docs/models/components/gettransactionresponse.md deleted file mode 100644 index 7374a99f..00000000 --- a/data/docs/models/components/gettransactionresponse.md +++ /dev/null @@ -1,203 +0,0 @@ -# GetTransactionResponse - -## Example Usage - -```typescript -import { GetTransactionResponse } from "@avalanche-sdk/data/models/components"; - -let value: GetTransactionResponse = { - erc20Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2571.83, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, - }, - ], - erc721Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4155.08, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - }, - ], - erc1155Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2068.05, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, - }, - ], - internalTransactions: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - internalTxType: "DELEGATECALL", - value: "10000000000000000000", - isReverted: true, - gasUsed: "", - gasLimit: "", - }, - ], - networkTokenDetails: { - networkToken: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - }, - currentPrice: { - currencyCode: "usd", - value: 42.42, - }, - historicalPrice: { - currencyCode: "usd", - value: 42.42, - }, - }, - nativeTransaction: { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - chainId: "43114", - blockIndex: 0, - txHash: - "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - txStatus: "1", - txType: 1, - gasLimit: "51373", - gasUsed: "51373", - gasPrice: "470000000000", - nonce: "1", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - method: { - callType: "CONTRACT_CREATION", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", - }, - value: "10000000000000000000", - input: "", - baseFeePerGas: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `erc20Transfers` | [components.Erc20TransferDetails](../../models/components/erc20transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-20 transfers. | -| `erc721Transfers` | [components.Erc721TransferDetails](../../models/components/erc721transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-721 transfers. | -| `erc1155Transfers` | [components.Erc1155TransferDetails](../../models/components/erc1155transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-1155 transfers. | -| `internalTransactions` | [components.InternalTransactionDetails](../../models/components/internaltransactiondetails.md)[] | :heavy_minus_sign: | The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction. | -| `networkTokenDetails` | [components.NetworkTokenDetails](../../models/components/networktokendetails.md) | :heavy_check_mark: | N/A | -| `nativeTransaction` | [components.FullNativeTransactionDetails](../../models/components/fullnativetransactiondetails.md) | :heavy_check_mark: | N/A | -| `teleporterMessageInfo` | [components.TeleporterMessageInfo](../../models/components/teleportermessageinfo.md) | :heavy_minus_sign: | Corresponding teleporter message info if available. | \ No newline at end of file diff --git a/data/docs/models/components/globalparamnetwork.md b/data/docs/models/components/globalparamnetwork.md deleted file mode 100644 index 6375116e..00000000 --- a/data/docs/models/components/globalparamnetwork.md +++ /dev/null @@ -1,15 +0,0 @@ -# GlobalParamNetwork - -## Example Usage - -```typescript -import { GlobalParamNetwork } from "@avalanche-sdk/data/models/components"; - -let value: GlobalParamNetwork = "mainnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "testnet" -``` \ No newline at end of file diff --git a/data/docs/models/components/healthcheckresultdto.md b/data/docs/models/components/healthcheckresultdto.md deleted file mode 100644 index 59ed9976..00000000 --- a/data/docs/models/components/healthcheckresultdto.md +++ /dev/null @@ -1,30 +0,0 @@ -# HealthCheckResultDto - -## Example Usage - -```typescript -import { HealthCheckResultDto } from "@avalanche-sdk/data/models/components"; - -let value: HealthCheckResultDto = { - info: { - "database": { - status: "up", - }, - }, - error: {}, - details: { - "database": { - status: "up", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `status` | [components.HealthCheckResultDtoStatus](../../models/components/healthcheckresultdtostatus.md) | :heavy_minus_sign: | N/A | | -| `info` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | -| `error` | Record | :heavy_minus_sign: | N/A | {} | -| `details` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | \ No newline at end of file diff --git a/data/docs/models/components/healthcheckresultdtostatus.md b/data/docs/models/components/healthcheckresultdtostatus.md deleted file mode 100644 index 5d972b16..00000000 --- a/data/docs/models/components/healthcheckresultdtostatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthCheckResultDtoStatus - -## Example Usage - -```typescript -import { HealthCheckResultDtoStatus } from "@avalanche-sdk/data/models/components"; - -let value: HealthCheckResultDtoStatus = "error"; -``` - -## Values - -```typescript -"error" | "ok" | "shutting_down" -``` \ No newline at end of file diff --git a/data/docs/models/components/healthindicatorresultdto.md b/data/docs/models/components/healthindicatorresultdto.md deleted file mode 100644 index b767cf0f..00000000 --- a/data/docs/models/components/healthindicatorresultdto.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthIndicatorResultDto - -## Example Usage - -```typescript -import { HealthIndicatorResultDto } from "@avalanche-sdk/data/models/components"; - -let value: HealthIndicatorResultDto = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `status` | [components.HealthIndicatorResultDtoStatus](../../models/components/healthindicatorresultdtostatus.md) | :heavy_minus_sign: | Status of the health indicator. | \ No newline at end of file diff --git a/data/docs/models/components/healthindicatorresultdtostatus.md b/data/docs/models/components/healthindicatorresultdtostatus.md deleted file mode 100644 index 8d2ff077..00000000 --- a/data/docs/models/components/healthindicatorresultdtostatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# HealthIndicatorResultDtoStatus - -Status of the health indicator. - -## Example Usage - -```typescript -import { HealthIndicatorResultDtoStatus } from "@avalanche-sdk/data/models/components"; - -let value: HealthIndicatorResultDtoStatus = "down"; -``` - -## Values - -```typescript -"up" | "down" -``` \ No newline at end of file diff --git a/data/docs/models/components/historicalreward.md b/data/docs/models/components/historicalreward.md deleted file mode 100644 index dccdbbfb..00000000 --- a/data/docs/models/components/historicalreward.md +++ /dev/null @@ -1,50 +0,0 @@ -# HistoricalReward - -## Example Usage - -```typescript -import { HistoricalReward } from "@avalanche-sdk/data/models/components"; - -let value: HistoricalReward = { - addresses: [ - "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - ], - txHash: "", - amountStaked: "", - nodeId: "", - startTimestamp: 4581.33, - endTimestamp: 9670.35, - rewardType: "VALIDATOR", - utxoId: "", - outputIndex: 8004.88, - reward: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - historicalPrice: { - currencyCode: "usd", - value: 42.42, - }, - }, - rewardTxHash: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `addresses` | *string*[] | :heavy_check_mark: | An array of P-Chain wallet addresses. | [
"avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"
] | -| `txHash` | *string* | :heavy_check_mark: | N/A | | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | | -| `nodeId` | *string* | :heavy_check_mark: | N/A | | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `rewardType` | [components.RewardType](../../models/components/rewardtype.md) | :heavy_check_mark: | N/A | | -| `utxoId` | *string* | :heavy_check_mark: | N/A | | -| `outputIndex` | *number* | :heavy_check_mark: | N/A | | -| `reward` | [components.AssetWithPriceInfo](../../models/components/assetwithpriceinfo.md) | :heavy_check_mark: | N/A | | -| `rewardTxHash` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/icmdestinationtransaction.md b/data/docs/models/components/icmdestinationtransaction.md deleted file mode 100644 index bd86318e..00000000 --- a/data/docs/models/components/icmdestinationtransaction.md +++ /dev/null @@ -1,25 +0,0 @@ -# IcmDestinationTransaction - -## Example Usage - -```typescript -import { IcmDestinationTransaction } from "@avalanche-sdk/data/models/components"; - -let value: IcmDestinationTransaction = { - txHash: "", - timestamp: 4661.9, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `timestamp` | *number* | :heavy_check_mark: | N/A | -| `gasSpent` | *string* | :heavy_check_mark: | N/A | -| `rewardRedeemer` | *string* | :heavy_check_mark: | N/A | -| `delivererAddress` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/icmreceipt.md b/data/docs/models/components/icmreceipt.md deleted file mode 100644 index 94b7f82d..00000000 --- a/data/docs/models/components/icmreceipt.md +++ /dev/null @@ -1,19 +0,0 @@ -# IcmReceipt - -## Example Usage - -```typescript -import { IcmReceipt } from "@avalanche-sdk/data/models/components"; - -let value: IcmReceipt = { - receivedMessageNonce: "", - relayerRewardAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `receivedMessageNonce` | *string* | :heavy_check_mark: | N/A | -| `relayerRewardAddress` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/icmrewarddetails.md b/data/docs/models/components/icmrewarddetails.md deleted file mode 100644 index 6fbb1bd1..00000000 --- a/data/docs/models/components/icmrewarddetails.md +++ /dev/null @@ -1,35 +0,0 @@ -# IcmRewardDetails - -## Example Usage - -```typescript -import { IcmRewardDetails } from "@avalanche-sdk/data/models/components"; - -let value: IcmRewardDetails = { - 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, - }, - value: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `ercType` | [components.IcmRewardDetailsErcType](../../models/components/icmrewarddetailserctype.md) | :heavy_check_mark: | N/A | | -| `price` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The token price, if available. | | -| `value` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/icmrewarddetailserctype.md b/data/docs/models/components/icmrewarddetailserctype.md deleted file mode 100644 index aa7cb32d..00000000 --- a/data/docs/models/components/icmrewarddetailserctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# IcmRewardDetailsErcType - -## Example Usage - -```typescript -import { IcmRewardDetailsErcType } from "@avalanche-sdk/data/models/components"; - -let value: IcmRewardDetailsErcType = "ERC-20"; -``` - -## Values - -```typescript -"ERC-20" -``` \ No newline at end of file diff --git a/data/docs/models/components/icmsourcetransaction.md b/data/docs/models/components/icmsourcetransaction.md deleted file mode 100644 index 67672212..00000000 --- a/data/docs/models/components/icmsourcetransaction.md +++ /dev/null @@ -1,21 +0,0 @@ -# IcmSourceTransaction - -## Example Usage - -```typescript -import { IcmSourceTransaction } from "@avalanche-sdk/data/models/components"; - -let value: IcmSourceTransaction = { - txHash: "", - timestamp: 761.62, - gasSpent: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `timestamp` | *number* | :heavy_check_mark: | N/A | -| `gasSpent` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/imageasset.md b/data/docs/models/components/imageasset.md deleted file mode 100644 index 945c8594..00000000 --- a/data/docs/models/components/imageasset.md +++ /dev/null @@ -1,16 +0,0 @@ -# ImageAsset - -## Example Usage - -```typescript -import { ImageAsset } from "@avalanche-sdk/data/models/components"; - -let value: ImageAsset = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `assetId` | *string* | :heavy_minus_sign: | N/A | -| `imageUri` | *string* | :heavy_minus_sign: | OUTPUT ONLY | \ No newline at end of file diff --git a/data/docs/models/components/includechain.md b/data/docs/models/components/includechain.md deleted file mode 100644 index 16667158..00000000 --- a/data/docs/models/components/includechain.md +++ /dev/null @@ -1,15 +0,0 @@ -# IncludeChain - -## Example Usage - -```typescript -import { IncludeChain } from "@avalanche-sdk/data/models/components"; - -let value: IncludeChain = "p-chain"; -``` - -## Values - -```typescript -"11111111111111111111111111111111LpoYY" | "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" | "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" | "p-chain" | "x-chain" | "c-chain" -``` \ No newline at end of file diff --git a/data/docs/models/components/internaltransaction.md b/data/docs/models/components/internaltransaction.md deleted file mode 100644 index 4fb13d5a..00000000 --- a/data/docs/models/components/internaltransaction.md +++ /dev/null @@ -1,52 +0,0 @@ -# InternalTransaction - -## Example Usage - -```typescript -import { InternalTransaction } from "@avalanche-sdk/data/models/components"; - -let value: InternalTransaction = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - internalTxType: "CREATE2", - value: "10000000000000000000", - isReverted: false, - gasUsed: "", - gasLimit: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `internalTxType` | [components.InternalTransactionOpCall](../../models/components/internaltransactionopcall.md) | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `isReverted` | *boolean* | :heavy_check_mark: | True if the internal transaction was reverted. | | -| `gasUsed` | *string* | :heavy_check_mark: | N/A | | -| `gasLimit` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/internaltransactiondetails.md b/data/docs/models/components/internaltransactiondetails.md deleted file mode 100644 index e7245a43..00000000 --- a/data/docs/models/components/internaltransactiondetails.md +++ /dev/null @@ -1,43 +0,0 @@ -# InternalTransactionDetails - -## Example Usage - -```typescript -import { InternalTransactionDetails } from "@avalanche-sdk/data/models/components"; - -let value: InternalTransactionDetails = { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - internalTxType: "CREATE3", - value: "10000000000000000000", - isReverted: false, - gasUsed: "", - gasLimit: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `internalTxType` | [components.InternalTransactionOpCall](../../models/components/internaltransactionopcall.md) | :heavy_check_mark: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | -| `isReverted` | *boolean* | :heavy_check_mark: | True if the internal transaction was reverted. | | -| `gasUsed` | *string* | :heavy_check_mark: | N/A | | -| `gasLimit` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/internaltransactionopcall.md b/data/docs/models/components/internaltransactionopcall.md deleted file mode 100644 index e0de3ee6..00000000 --- a/data/docs/models/components/internaltransactionopcall.md +++ /dev/null @@ -1,15 +0,0 @@ -# InternalTransactionOpCall - -## Example Usage - -```typescript -import { InternalTransactionOpCall } from "@avalanche-sdk/data/models/components"; - -let value: InternalTransactionOpCall = "STATICCALL"; -``` - -## Values - -```typescript -"UNKNOWN" | "CALL" | "CREATE" | "CREATE2" | "CREATE3" | "CALLCODE" | "DELEGATECALL" | "STATICCALL" -``` \ No newline at end of file diff --git a/data/docs/models/components/l1validatordetailsfull.md b/data/docs/models/components/l1validatordetailsfull.md deleted file mode 100644 index e0fff653..00000000 --- a/data/docs/models/components/l1validatordetailsfull.md +++ /dev/null @@ -1,46 +0,0 @@ -# L1ValidatorDetailsFull - -## Example Usage - -```typescript -import { L1ValidatorDetailsFull } from "@avalanche-sdk/data/models/components"; - -let value: L1ValidatorDetailsFull = { - validationId: "", - validationIdHex: "", - nodeId: "", - subnetId: "", - weight: 9185.04, - remainingBalance: 9870.68, - creationTimestamp: 2511.36, - blsCredentials: {}, - remainingBalanceOwner: { - addresses: [ - "", - "", - ], - threshold: 7038.52, - }, - deactivationOwner: { - addresses: [ - "", - ], - threshold: 4642.49, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `validationId` | *string* | :heavy_check_mark: | Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. | -| `validationIdHex` | *string* | :heavy_check_mark: | Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `weight` | *number* | :heavy_check_mark: | Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid | -| `remainingBalance` | *number* | :heavy_check_mark: | Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx | -| `creationTimestamp` | *number* | :heavy_check_mark: | The timestamp of the transaction which created this L1 validator | -| `blsCredentials` | [components.L1ValidatorDetailsFullBlsCredentials](../../models/components/l1validatordetailsfullblscredentials.md) | :heavy_check_mark: | N/A | -| `remainingBalanceOwner` | [components.BalanceOwner](../../models/components/balanceowner.md) | :heavy_check_mark: | The L1 validator owner's balance, returned after it's disabled or removed | -| `deactivationOwner` | [components.BalanceOwner](../../models/components/balanceowner.md) | :heavy_check_mark: | Owner ddresses details which can disable or remove the L1 validator | \ No newline at end of file diff --git a/data/docs/models/components/l1validatordetailsfullblscredentials.md b/data/docs/models/components/l1validatordetailsfullblscredentials.md deleted file mode 100644 index 1684e7e8..00000000 --- a/data/docs/models/components/l1validatordetailsfullblscredentials.md +++ /dev/null @@ -1,14 +0,0 @@ -# L1ValidatorDetailsFullBlsCredentials - -## Example Usage - -```typescript -import { L1ValidatorDetailsFullBlsCredentials } from "@avalanche-sdk/data/models/components"; - -let value: L1ValidatorDetailsFullBlsCredentials = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/data/docs/models/components/l1validatordetailstransaction.md b/data/docs/models/components/l1validatordetailstransaction.md deleted file mode 100644 index fb75c0e1..00000000 --- a/data/docs/models/components/l1validatordetailstransaction.md +++ /dev/null @@ -1,29 +0,0 @@ -# L1ValidatorDetailsTransaction - -## Example Usage - -```typescript -import { L1ValidatorDetailsTransaction } from "@avalanche-sdk/data/models/components"; - -let value: L1ValidatorDetailsTransaction = { - validationId: "", - validationIdHex: "", - nodeId: "", - subnetId: "", - weight: 5125.49, - remainingBalance: 5784.59, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `validationId` | *string* | :heavy_check_mark: | Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. | -| `validationIdHex` | *string* | :heavy_check_mark: | Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `weight` | *number* | :heavy_check_mark: | Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid | -| `remainingBalance` | *number* | :heavy_check_mark: | Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx | -| `balanceChange` | *number* | :heavy_minus_sign: | The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative | -| `blsCredentials` | [components.L1ValidatorDetailsTransactionBlsCredentials](../../models/components/l1validatordetailstransactionblscredentials.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/l1validatordetailstransactionblscredentials.md b/data/docs/models/components/l1validatordetailstransactionblscredentials.md deleted file mode 100644 index 9230f2b5..00000000 --- a/data/docs/models/components/l1validatordetailstransactionblscredentials.md +++ /dev/null @@ -1,14 +0,0 @@ -# L1ValidatorDetailsTransactionBlsCredentials - -## Example Usage - -```typescript -import { L1ValidatorDetailsTransactionBlsCredentials } from "@avalanche-sdk/data/models/components"; - -let value: L1ValidatorDetailsTransactionBlsCredentials = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/data/docs/models/components/l1validatormanagerdetails.md b/data/docs/models/components/l1validatormanagerdetails.md deleted file mode 100644 index dfcd920f..00000000 --- a/data/docs/models/components/l1validatormanagerdetails.md +++ /dev/null @@ -1,19 +0,0 @@ -# L1ValidatorManagerDetails - -## Example Usage - -```typescript -import { L1ValidatorManagerDetails } from "@avalanche-sdk/data/models/components"; - -let value: L1ValidatorManagerDetails = { - blockchainId: "", - contractAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `blockchainId` | *string* | :heavy_check_mark: | N/A | -| `contractAddress` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listaddresschainsresponse.md b/data/docs/models/components/listaddresschainsresponse.md deleted file mode 100644 index a992bdc5..00000000 --- a/data/docs/models/components/listaddresschainsresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# ListAddressChainsResponse - -## Example Usage - -```typescript -import { ListAddressChainsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListAddressChainsResponse = { - indexedChains: [ - { - chainId: "", - status: "OK", - chainName: "", - description: "pro needy lavish energetic excepting serpentine", - vmName: "BITCOIN", - rpcUrl: "https://true-newsprint.biz", - isTestnet: false, - networkToken: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - }, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `indexedChains` | [components.ChainInfo](../../models/components/chaininfo.md)[] | :heavy_minus_sign: | N/A | -| `unindexedChains` | *string*[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listblockchainsresponse.md b/data/docs/models/components/listblockchainsresponse.md deleted file mode 100644 index 25539c87..00000000 --- a/data/docs/models/components/listblockchainsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListBlockchainsResponse - -## Example Usage - -```typescript -import { ListBlockchainsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListBlockchainsResponse = { - blockchains: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `blockchains` | [components.Blockchain](../../models/components/blockchain.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listcchainatomicbalancesresponse.md b/data/docs/models/components/listcchainatomicbalancesresponse.md deleted file mode 100644 index 50826234..00000000 --- a/data/docs/models/components/listcchainatomicbalancesresponse.md +++ /dev/null @@ -1,47 +0,0 @@ -# ListCChainAtomicBalancesResponse - -## Example Usage - -```typescript -import { ListCChainAtomicBalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListCChainAtomicBalancesResponse = { - balances: { - atomicMemoryUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - atomicMemoryLocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `balances` | [components.CChainAtomicBalances](../../models/components/cchainatomicbalances.md) | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listcchainatomictransactionsresponse.md b/data/docs/models/components/listcchainatomictransactionsresponse.md deleted file mode 100644 index 29feea23..00000000 --- a/data/docs/models/components/listcchainatomictransactionsresponse.md +++ /dev/null @@ -1,61 +0,0 @@ -# ListCChainAtomicTransactionsResponse - -## Example Usage - -```typescript -import { ListCChainAtomicTransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListCChainAtomicTransactionsResponse = { - transactions: [ - { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [ - { - fromAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - credentials: [], - }, - ], - emittedUtxos: [], - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | *components.ListCChainAtomicTransactionsResponseTransaction*[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listcchainatomictransactionsresponsetransaction.md b/data/docs/models/components/listcchainatomictransactionsresponsetransaction.md deleted file mode 100644 index 938855d7..00000000 --- a/data/docs/models/components/listcchainatomictransactionsresponsetransaction.md +++ /dev/null @@ -1,93 +0,0 @@ -# ListCChainAtomicTransactionsResponseTransaction - - -## Supported Types - -### `components.CChainExportTransaction` - -```typescript -const value: components.CChainExportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [], - emittedUtxos: [], -}; -``` - -### `components.CChainImportTransaction` - -```typescript -const value: components.CChainImportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ImportTx", - evmOutputs: [ - { - toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - }, - ], - consumedUtxos: [], -}; -``` - diff --git a/data/docs/models/components/listchainsresponse.md b/data/docs/models/components/listchainsresponse.md deleted file mode 100644 index 627fc3ae..00000000 --- a/data/docs/models/components/listchainsresponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListChainsResponse - -## Example Usage - -```typescript -import { ListChainsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListChainsResponse = { - chains: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `chains` | [components.ChainInfo](../../models/components/chaininfo.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listcollectiblebalancesresponse.md b/data/docs/models/components/listcollectiblebalancesresponse.md deleted file mode 100644 index 81873f06..00000000 --- a/data/docs/models/components/listcollectiblebalancesresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListCollectibleBalancesResponse - -## Example Usage - -```typescript -import { ListCollectibleBalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListCollectibleBalancesResponse = { - collectibleBalances: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `collectibleBalances` | *components.CollectibleBalance*[] | :heavy_check_mark: | The list of ERC-721 and ERC-1155 token balances for the address. | \ No newline at end of file diff --git a/data/docs/models/components/listcontractsresponse.md b/data/docs/models/components/listcontractsresponse.md deleted file mode 100644 index 588d2540..00000000 --- a/data/docs/models/components/listcontractsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListContractsResponse - -## Example Usage - -```typescript -import { ListContractsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListContractsResponse = { - contracts: [ - { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "UNKNOWN", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `contracts` | *components.Contract*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listdelegatordetailsresponse.md b/data/docs/models/components/listdelegatordetailsresponse.md deleted file mode 100644 index e796d8a2..00000000 --- a/data/docs/models/components/listdelegatordetailsresponse.md +++ /dev/null @@ -1,34 +0,0 @@ -# ListDelegatorDetailsResponse - -## Example Usage - -```typescript -import { ListDelegatorDetailsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListDelegatorDetailsResponse = { - delegators: [ - { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 9637.39, - endTimestamp: 8297.65, - grossReward: "", - netReward: "", - delegationStatus: "completed", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `delegators` | *components.Delegator*[] | :heavy_check_mark: | The list of Delegator Details. | \ No newline at end of file diff --git a/data/docs/models/components/listerc1155balancesresponse.md b/data/docs/models/components/listerc1155balancesresponse.md deleted file mode 100644 index 3e0d2a7f..00000000 --- a/data/docs/models/components/listerc1155balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc1155BalancesResponse - -## Example Usage - -```typescript -import { ListErc1155BalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc1155BalancesResponse = { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc1155TokenBalances: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `nativeTokenBalance` | [components.NativeTokenBalance](../../models/components/nativetokenbalance.md) | :heavy_check_mark: | The native token balance for the address. | -| `erc1155TokenBalances` | [components.Erc1155TokenBalance](../../models/components/erc1155tokenbalance.md)[] | :heavy_check_mark: | The list of ERC-1155 token balances for the address. | \ No newline at end of file diff --git a/data/docs/models/components/listerc1155transactionsresponse.md b/data/docs/models/components/listerc1155transactionsresponse.md deleted file mode 100644 index c83e519c..00000000 --- a/data/docs/models/components/listerc1155transactionsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListErc1155TransactionsResponse - -## Example Usage - -```typescript -import { ListErc1155TransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc1155TransactionsResponse = { - transactions: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.Erc1155Transfer](../../models/components/erc1155transfer.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listerc20balancesresponse.md b/data/docs/models/components/listerc20balancesresponse.md deleted file mode 100644 index e3221281..00000000 --- a/data/docs/models/components/listerc20balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc20BalancesResponse - -## Example Usage - -```typescript -import { ListErc20BalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc20BalancesResponse = { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc20TokenBalances: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `nativeTokenBalance` | [components.NativeTokenBalance](../../models/components/nativetokenbalance.md) | :heavy_check_mark: | The native token balance for the address. | -| `erc20TokenBalances` | [components.Erc20TokenBalance](../../models/components/erc20tokenbalance.md)[] | :heavy_check_mark: | The list of ERC-20 token balances for the address. | \ No newline at end of file diff --git a/data/docs/models/components/listerc20transactionsresponse.md b/data/docs/models/components/listerc20transactionsresponse.md deleted file mode 100644 index 4f12bdc5..00000000 --- a/data/docs/models/components/listerc20transactionsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListErc20TransactionsResponse - -## Example Usage - -```typescript -import { ListErc20TransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc20TransactionsResponse = { - transactions: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.Erc20Transfer](../../models/components/erc20transfer.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listerc721balancesresponse.md b/data/docs/models/components/listerc721balancesresponse.md deleted file mode 100644 index ac1abcd0..00000000 --- a/data/docs/models/components/listerc721balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc721BalancesResponse - -## Example Usage - -```typescript -import { ListErc721BalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc721BalancesResponse = { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc721TokenBalances: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `nativeTokenBalance` | [components.NativeTokenBalance](../../models/components/nativetokenbalance.md) | :heavy_check_mark: | The native token balance for the address. | -| `erc721TokenBalances` | [components.Erc721TokenBalance](../../models/components/erc721tokenbalance.md)[] | :heavy_check_mark: | The list of ERC-721 token balances for the address. | \ No newline at end of file diff --git a/data/docs/models/components/listerc721transactionsresponse.md b/data/docs/models/components/listerc721transactionsresponse.md deleted file mode 100644 index c85b9ae2..00000000 --- a/data/docs/models/components/listerc721transactionsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListErc721TransactionsResponse - -## Example Usage - -```typescript -import { ListErc721TransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListErc721TransactionsResponse = { - transactions: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.Erc721Transfer](../../models/components/erc721transfer.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listevmblocksresponse.md b/data/docs/models/components/listevmblocksresponse.md deleted file mode 100644 index d0870aef..00000000 --- a/data/docs/models/components/listevmblocksresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListEvmBlocksResponse - -## Example Usage - -```typescript -import { ListEvmBlocksResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListEvmBlocksResponse = { - blocks: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `blocks` | [components.EvmBlock](../../models/components/evmblock.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listhistoricalrewardsresponse.md b/data/docs/models/components/listhistoricalrewardsresponse.md deleted file mode 100644 index 676e8b4e..00000000 --- a/data/docs/models/components/listhistoricalrewardsresponse.md +++ /dev/null @@ -1,45 +0,0 @@ -# ListHistoricalRewardsResponse - -## Example Usage - -```typescript -import { ListHistoricalRewardsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListHistoricalRewardsResponse = { - historicalRewards: [ - { - addresses: [ - "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - ], - txHash: "", - amountStaked: "", - nodeId: "", - startTimestamp: 2607.75, - endTimestamp: 6998.52, - rewardType: "VALIDATOR_FEE", - utxoId: "", - outputIndex: 3714.13, - reward: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - historicalPrice: { - currencyCode: "usd", - value: 42.42, - }, - }, - rewardTxHash: "", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `historicalRewards` | [components.HistoricalReward](../../models/components/historicalreward.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listicmmessagesresponse.md b/data/docs/models/components/listicmmessagesresponse.md deleted file mode 100644 index 0de400c1..00000000 --- a/data/docs/models/components/listicmmessagesresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListIcmMessagesResponse - -## Example Usage - -```typescript -import { ListIcmMessagesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListIcmMessagesResponse = { - messages: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `messages` | *components.ListIcmMessagesResponseMessage*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listicmmessagesresponsemessage.md b/data/docs/models/components/listicmmessagesresponsemessage.md deleted file mode 100644 index a3b31c6b..00000000 --- a/data/docs/models/components/listicmmessagesresponsemessage.md +++ /dev/null @@ -1,131 +0,0 @@ -# ListIcmMessagesResponseMessage - - -## Supported Types - -### `components.DeliveredIcmMessage` - -```typescript -const value: components.DeliveredIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: true, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -### `components.PendingIcmMessage` - -```typescript -const value: components.PendingIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - status: "pending", -}; -``` - -### `components.DeliveredSourceNotIndexedIcmMessage` - -```typescript -const value: components.DeliveredSourceNotIndexedIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - diff --git a/data/docs/models/components/listinternaltransactionsresponse.md b/data/docs/models/components/listinternaltransactionsresponse.md deleted file mode 100644 index 9eebcfbe..00000000 --- a/data/docs/models/components/listinternaltransactionsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListInternalTransactionsResponse - -## Example Usage - -```typescript -import { ListInternalTransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListInternalTransactionsResponse = { - transactions: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.InternalTransaction](../../models/components/internaltransaction.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listl1validatorsresponse.md b/data/docs/models/components/listl1validatorsresponse.md deleted file mode 100644 index b92ccf91..00000000 --- a/data/docs/models/components/listl1validatorsresponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# ListL1ValidatorsResponse - -## Example Usage - -```typescript -import { ListL1ValidatorsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListL1ValidatorsResponse = { - validators: [ - { - validationId: "", - validationIdHex: "", - nodeId: "", - subnetId: "", - weight: 5368.44, - remainingBalance: 7020.98, - creationTimestamp: 5485.65, - blsCredentials: {}, - remainingBalanceOwner: { - addresses: [ - "", - "", - ], - threshold: 7038.52, - }, - deactivationOwner: { - addresses: [ - "", - ], - threshold: 4642.49, - }, - }, - ], - blockHeight: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `validators` | [components.L1ValidatorDetailsFull](../../models/components/l1validatordetailsfull.md)[] | :heavy_check_mark: | The list of L1 validations for the given Subnet ID, NodeId or validationId | -| `blockHeight` | *string* | :heavy_check_mark: | Block height at which the L1 validator's remaining balance is calculated | \ No newline at end of file diff --git a/data/docs/models/components/listnativetransactionsresponse.md b/data/docs/models/components/listnativetransactionsresponse.md deleted file mode 100644 index f45924c4..00000000 --- a/data/docs/models/components/listnativetransactionsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListNativeTransactionsResponse - -## Example Usage - -```typescript -import { ListNativeTransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListNativeTransactionsResponse = { - transactions: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.NativeTransaction](../../models/components/nativetransaction.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listnfttokens.md b/data/docs/models/components/listnfttokens.md deleted file mode 100644 index d4431bc2..00000000 --- a/data/docs/models/components/listnfttokens.md +++ /dev/null @@ -1,31 +0,0 @@ -# ListNftTokens - -## Example Usage - -```typescript -import { ListNftTokens } from "@avalanche-sdk/data/models/components"; - -let value: ListNftTokens = { - tokens: [ - { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://gracious-reservation.biz/", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `tokens` | *components.Token*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listpchainbalancesresponse.md b/data/docs/models/components/listpchainbalancesresponse.md deleted file mode 100644 index f9469356..00000000 --- a/data/docs/models/components/listpchainbalancesresponse.md +++ /dev/null @@ -1,53 +0,0 @@ -# ListPChainBalancesResponse - -## Example Usage - -```typescript -import { ListPChainBalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListPChainBalancesResponse = { - balances: { - unlockedUnstaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - }, - ], - unlockedStaked: [], - lockedPlatform: [], - lockedStakeable: [], - lockedStaked: [], - pendingStaked: [], - atomicMemoryUnlocked: [], - atomicMemoryLocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - status: "", - }, - ], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `balances` | [components.PChainBalance](../../models/components/pchainbalance.md) | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listpchaintransactionsresponse.md b/data/docs/models/components/listpchaintransactionsresponse.md deleted file mode 100644 index 50446fe8..00000000 --- a/data/docs/models/components/listpchaintransactionsresponse.md +++ /dev/null @@ -1,64 +0,0 @@ -# ListPChainTransactionsResponse - -## Example Usage - -```typescript -import { ListPChainTransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListPChainTransactionsResponse = { - transactions: [ - { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "ExportTx", - blockTimestamp: 1648672486, - blockNumber: "", - blockHash: "", - consumedUtxos: [], - emittedUtxos: [], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - value: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountBurned: [], - amountStaked: [], - amountL1ValidatorBalanceBurned: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - subnetOwnershipInfo: { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - }, - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.PChainTransaction](../../models/components/pchaintransaction.md)[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listpchainutxosresponse.md b/data/docs/models/components/listpchainutxosresponse.md deleted file mode 100644 index 8179a849..00000000 --- a/data/docs/models/components/listpchainutxosresponse.md +++ /dev/null @@ -1,48 +0,0 @@ -# ListPChainUtxosResponse - -## Example Usage - -```typescript -import { ListPChainUtxosResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListPChainUtxosResponse = { - utxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "871.14", - assetId: "", - blockNumber: "", - blockTimestamp: 9647.88, - outputIndex: 5158.07, - txHash: "", - utxoType: "STAKE", - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `utxos` | [components.PChainUtxo](../../models/components/pchainutxo.md)[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listpendingrewardsresponse.md b/data/docs/models/components/listpendingrewardsresponse.md deleted file mode 100644 index e8fe6cc9..00000000 --- a/data/docs/models/components/listpendingrewardsresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListPendingRewardsResponse - -## Example Usage - -```typescript -import { ListPendingRewardsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListPendingRewardsResponse = { - pendingRewards: [ - { - addresses: [ - "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - ], - txHash: "", - amountStaked: "", - nodeId: "", - startTimestamp: 3021.53, - endTimestamp: 7116.81, - rewardType: "VALIDATOR", - progress: 8716.72, - estimatedReward: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `pendingRewards` | [components.PendingReward](../../models/components/pendingreward.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listprimarynetworkblocksresponse.md b/data/docs/models/components/listprimarynetworkblocksresponse.md deleted file mode 100644 index 3cdc7dfd..00000000 --- a/data/docs/models/components/listprimarynetworkblocksresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListPrimaryNetworkBlocksResponse - -## Example Usage - -```typescript -import { ListPrimaryNetworkBlocksResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListPrimaryNetworkBlocksResponse = { - blocks: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `blocks` | [components.PrimaryNetworkBlock](../../models/components/primarynetworkblock.md)[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listsubnetsresponse.md b/data/docs/models/components/listsubnetsresponse.md deleted file mode 100644 index 6f16fbba..00000000 --- a/data/docs/models/components/listsubnetsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListSubnetsResponse - -## Example Usage - -```typescript -import { ListSubnetsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListSubnetsResponse = { - subnets: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `subnets` | [components.Subnet](../../models/components/subnet.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listteleportermessagesresponse.md b/data/docs/models/components/listteleportermessagesresponse.md deleted file mode 100644 index 7beca1f9..00000000 --- a/data/docs/models/components/listteleportermessagesresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListTeleporterMessagesResponse - -## Example Usage - -```typescript -import { ListTeleporterMessagesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListTeleporterMessagesResponse = { - messages: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `messages` | *components.ListTeleporterMessagesResponseMessage*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listteleportermessagesresponsemessage.md b/data/docs/models/components/listteleportermessagesresponsemessage.md deleted file mode 100644 index b4ae0f2a..00000000 --- a/data/docs/models/components/listteleportermessagesresponsemessage.md +++ /dev/null @@ -1,131 +0,0 @@ -# ListTeleporterMessagesResponseMessage - - -## Supported Types - -### `components.DeliveredTeleporterMessage` - -```typescript -const value: components.DeliveredTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 4770.43, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -### `components.PendingTeleporterMessage` - -```typescript -const value: components.PendingTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - status: "pending", -}; -``` - -### `components.DeliveredSourceNotIndexedIcmMessage` - -```typescript -const value: components.DeliveredSourceNotIndexedIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - diff --git a/data/docs/models/components/listtransactiondetailsresponse.md b/data/docs/models/components/listtransactiondetailsresponse.md deleted file mode 100644 index a6d7bcfb..00000000 --- a/data/docs/models/components/listtransactiondetailsresponse.md +++ /dev/null @@ -1,183 +0,0 @@ -# ListTransactionDetailsResponse - -## Example Usage - -```typescript -import { ListTransactionDetailsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListTransactionDetailsResponse = { - transactions: [ - { - nativeTransaction: { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - chainId: "43114", - blockIndex: 0, - txHash: - "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - txStatus: "1", - txType: 1, - gasLimit: "51373", - gasUsed: "51373", - gasPrice: "470000000000", - nonce: "1", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - method: { - callType: "CONTRACT_CREATION", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", - }, - value: "10000000000000000000", - }, - erc20Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2571.83, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, - }, - ], - erc721Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4155.08, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - }, - ], - erc1155Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2068.05, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, - }, - ], - internalTransactions: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - internalTxType: "DELEGATECALL", - value: "10000000000000000000", - isReverted: true, - gasUsed: "", - gasLimit: "", - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | [components.TransactionDetails](../../models/components/transactiondetails.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listtransfersresponse.md b/data/docs/models/components/listtransfersresponse.md deleted file mode 100644 index 02156cc8..00000000 --- a/data/docs/models/components/listtransfersresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListTransfersResponse - -## Example Usage - -```typescript -import { ListTransfersResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListTransfersResponse = { - transfers: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transfers` | *components.Transfer*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listutxosresponse.md b/data/docs/models/components/listutxosresponse.md deleted file mode 100644 index 97650f75..00000000 --- a/data/docs/models/components/listutxosresponse.md +++ /dev/null @@ -1,55 +0,0 @@ -# ListUtxosResponse - -## Example Usage - -```typescript -import { ListUtxosResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListUtxosResponse = { - utxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `utxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listvalidatordetailsresponse.md b/data/docs/models/components/listvalidatordetailsresponse.md deleted file mode 100644 index 1cd72ec6..00000000 --- a/data/docs/models/components/listvalidatordetailsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListValidatorDetailsResponse - -## Example Usage - -```typescript -import { ListValidatorDetailsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListValidatorDetailsResponse = { - validators: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `validators` | *components.Validator*[] | :heavy_check_mark: | The list of validator Details. | \ No newline at end of file diff --git a/data/docs/models/components/listxchainbalancesresponse.md b/data/docs/models/components/listxchainbalancesresponse.md deleted file mode 100644 index 4095b8a1..00000000 --- a/data/docs/models/components/listxchainbalancesresponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# ListXChainBalancesResponse - -## Example Usage - -```typescript -import { ListXChainBalancesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListXChainBalancesResponse = { - balances: { - locked: [], - unlocked: [], - atomicMemoryUnlocked: [], - atomicMemoryLocked: [], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `balances` | [components.XChainBalances](../../models/components/xchainbalances.md) | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listxchaintransactionsresponse.md b/data/docs/models/components/listxchaintransactionsresponse.md deleted file mode 100644 index 7424d27f..00000000 --- a/data/docs/models/components/listxchaintransactionsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListXChainTransactionsResponse - -## Example Usage - -```typescript -import { ListXChainTransactionsResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListXChainTransactionsResponse = { - transactions: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `transactions` | *components.ListXChainTransactionsResponseTransaction*[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/listxchaintransactionsresponsetransaction.md b/data/docs/models/components/listxchaintransactionsresponsetransaction.md deleted file mode 100644 index d5989fcb..00000000 --- a/data/docs/models/components/listxchaintransactionsresponsetransaction.md +++ /dev/null @@ -1,153 +0,0 @@ -# ListXChainTransactionsResponseTransaction - - -## Supported Types - -### `components.XChainNonLinearTransaction` - -```typescript -const value: components.XChainNonLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "ExportTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [], - emittedUtxos: [], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - vertices: [], -}; -``` - -### `components.XChainLinearTransaction` - -```typescript -const value: components.XChainLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "CreateAssetTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - emittedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - blockHeight: 1005, - blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", -}; -``` - diff --git a/data/docs/models/components/listxchainverticesresponse.md b/data/docs/models/components/listxchainverticesresponse.md deleted file mode 100644 index 6aa5cf72..00000000 --- a/data/docs/models/components/listxchainverticesresponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# ListXChainVerticesResponse - -## Example Usage - -```typescript -import { ListXChainVerticesResponse } from "@avalanche-sdk/data/models/components"; - -let value: ListXChainVerticesResponse = { - vertices: [ - { - vertexHash: "", - parentHashes: [ - "", - "", - ], - vertexHeight: 7539.02, - vertexIndex: 1786.08, - vertexTimestamp: 3626.95, - txCount: 7721.81, - transactions: [ - "", - ], - vertexSizeBytes: 3579.84, - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `vertices` | [components.XChainVertex](../../models/components/xchainvertex.md)[] | :heavy_check_mark: | N/A | -| `chainInfo` | [components.PrimaryNetworkChainInfo](../../models/components/primarynetworkchaininfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/logsformat.md b/data/docs/models/components/logsformat.md deleted file mode 100644 index 10cdfc62..00000000 --- a/data/docs/models/components/logsformat.md +++ /dev/null @@ -1,45 +0,0 @@ -# LogsFormat - -## Example Usage - -```typescript -import { LogsFormat } from "@avalanche-sdk/data/models/components"; - -let value: LogsFormat = { - orgId: "", - logId: "", - eventTimestamp: 4271.59, - apiKeyId: "", - apiKeyAlias: "", - hostRegion: "", - requestType: "rpc", - requestPath: "", - apiCreditsConsumed: 7807.32, - requestDurationMsecs: 298.8, - responseCode: 6483.06, - metadata: { - ipAddress: "91.34.232.64", - host: "ironclad-pigpen.org", - userAgent: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `orgId` | *string* | :heavy_check_mark: | The organization id of the request. | -| `logId` | *string* | :heavy_check_mark: | The unique log id of the request. | -| `eventTimestamp` | *number* | :heavy_check_mark: | The timestamp of the request. | -| `apiKeyId` | *string* | :heavy_check_mark: | The apiKey used to make the request. | -| `apiKeyAlias` | *string* | :heavy_check_mark: | The alias of the apiKey used to make the request. | -| `hostRegion` | *string* | :heavy_check_mark: | The region of the host for the request made by the client. | -| `requestType` | [components.RequestType](../../models/components/requesttype.md) | :heavy_check_mark: | The type of request made by the client. | -| `requestPath` | *string* | :heavy_check_mark: | The path of the request made by the client. | -| `apiCreditsConsumed` | *number* | :heavy_check_mark: | The number of API credits consumed by the request. | -| `requestDurationMsecs` | *number* | :heavy_check_mark: | The duration of the request in milliseconds. | -| `responseCode` | *number* | :heavy_check_mark: | The response code of the request. | -| `chainId` | *string* | :heavy_minus_sign: | The chain id of the request. | -| `rpcMethod` | *string* | :heavy_minus_sign: | The rpc method of the request. | -| `metadata` | [components.LogsFormatMetadata](../../models/components/logsformatmetadata.md) | :heavy_check_mark: | The metadata of the request. | \ No newline at end of file diff --git a/data/docs/models/components/logsformatmetadata.md b/data/docs/models/components/logsformatmetadata.md deleted file mode 100644 index 1e5f1787..00000000 --- a/data/docs/models/components/logsformatmetadata.md +++ /dev/null @@ -1,21 +0,0 @@ -# LogsFormatMetadata - -## Example Usage - -```typescript -import { LogsFormatMetadata } from "@avalanche-sdk/data/models/components"; - -let value: LogsFormatMetadata = { - ipAddress: "6096:abfc:d0e7:8753:846d:4ace:cf2a:e4bb", - host: "authentic-statue.org", - userAgent: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `ipAddress` | *string* | :heavy_check_mark: | The IP address of the client that made the request. | -| `host` | *string* | :heavy_check_mark: | The host for the request made by the client. | -| `userAgent` | *string* | :heavy_check_mark: | The user agent of the client that made the request. | \ No newline at end of file diff --git a/data/docs/models/components/logsresponsedto.md b/data/docs/models/components/logsresponsedto.md deleted file mode 100644 index dc3f9bfb..00000000 --- a/data/docs/models/components/logsresponsedto.md +++ /dev/null @@ -1,20 +0,0 @@ -# LogsResponseDTO - -## Example Usage - -```typescript -import { LogsResponseDTO } from "@avalanche-sdk/data/models/components"; - -let value: LogsResponseDTO = { - orgId: "", - logs: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `orgId` | *string* | :heavy_check_mark: | The organization id of the request. | -| `logs` | [components.LogsFormat](../../models/components/logsformat.md)[] | :heavy_check_mark: | An array of logs representing the requests made by clients. | \ No newline at end of file diff --git a/data/docs/models/components/metadata.md b/data/docs/models/components/metadata.md deleted file mode 100644 index acbec440..00000000 --- a/data/docs/models/components/metadata.md +++ /dev/null @@ -1,11 +0,0 @@ -# Metadata - - -## Supported Types - -### `components.TransactionExportMetadata` - -```typescript -const value: components.TransactionExportMetadata = {}; -``` - diff --git a/data/docs/models/components/method.md b/data/docs/models/components/method.md deleted file mode 100644 index 4d458983..00000000 --- a/data/docs/models/components/method.md +++ /dev/null @@ -1,21 +0,0 @@ -# Method - -## Example Usage - -```typescript -import { Method } from "@avalanche-sdk/data/models/components"; - -let value: Method = { - callType: "NATIVE_TRANSFER", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `callType` | [components.TransactionMethodType](../../models/components/transactionmethodtype.md) | :heavy_check_mark: | The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation. | | -| `methodHash` | *string* | :heavy_check_mark: | The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`. | 0xa9059cbb | -| `methodName` | *string* | :heavy_minus_sign: | The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'. | transfer(address,uint256) | \ No newline at end of file diff --git a/data/docs/models/components/metric.md b/data/docs/models/components/metric.md deleted file mode 100644 index b52d8613..00000000 --- a/data/docs/models/components/metric.md +++ /dev/null @@ -1,19 +0,0 @@ -# Metric - -## Example Usage - -```typescript -import { Metric } from "@avalanche-sdk/data/models/components"; - -let value: Metric = { - timestamp: 8029.57, - values: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `timestamp` | *number* | :heavy_check_mark: | The timestamp of the metrics value | -| `values` | [components.UsageMetricsValueDTO](../../models/components/usagemetricsvaluedto.md)[] | :heavy_check_mark: | The metrics values for the timestamp | \ No newline at end of file diff --git a/data/docs/models/components/money.md b/data/docs/models/components/money.md deleted file mode 100644 index df32e867..00000000 --- a/data/docs/models/components/money.md +++ /dev/null @@ -1,19 +0,0 @@ -# Money - -## Example Usage - -```typescript -import { Money } from "@avalanche-sdk/data/models/components"; - -let value: Money = { - currencyCode: "usd", - value: 42.42, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `currencyCode` | [components.CurrencyCode](../../models/components/currencycode.md) | :heavy_check_mark: | ISO 4217 currency code. | usd | -| `value` | *number* | :heavy_check_mark: | Monetary value in base 10 decimals. | 42.42 | \ No newline at end of file diff --git a/data/docs/models/components/nativetokenbalance.md b/data/docs/models/components/nativetokenbalance.md deleted file mode 100644 index 544e162f..00000000 --- a/data/docs/models/components/nativetokenbalance.md +++ /dev/null @@ -1,38 +0,0 @@ -# NativeTokenBalance - -## Example Usage - -```typescript -import { NativeTokenBalance } from "@avalanche-sdk/data/models/components"; - -let value: NativeTokenBalance = { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `chainId` | *string* | :heavy_check_mark: | The evm chain id. | 43114 | -| `price` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The token price, if available. | | -| `balance` | *string* | :heavy_check_mark: | The address balance for the token, in units specified by the `decimals` value for the contract. | 2000000000000000000 | -| `balanceValue` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The monetary value of the balance, if a price is available for the token. | | \ No newline at end of file diff --git a/data/docs/models/components/nativetransaction.md b/data/docs/models/components/nativetransaction.md deleted file mode 100644 index b3e2ac7d..00000000 --- a/data/docs/models/components/nativetransaction.md +++ /dev/null @@ -1,66 +0,0 @@ -# NativeTransaction - -## Example Usage - -```typescript -import { NativeTransaction } from "@avalanche-sdk/data/models/components"; - -let value: NativeTransaction = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - chainId: "43114", - blockIndex: 0, - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - txStatus: "1", - txType: 1, - gasLimit: "51373", - gasUsed: "51373", - gasPrice: "470000000000", - nonce: "1", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - method: { - callType: "CONTRACT_CREATION", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", - }, - value: "10000000000000000000", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | The block number on the chain. | 339 | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockHash` | *string* | :heavy_check_mark: | The block hash identifier. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | -| `chainId` | *string* | :heavy_check_mark: | The EVM chain ID on which the transaction occured. | 43114 | -| `blockIndex` | *number* | :heavy_check_mark: | The index at which the transaction occured in the block (0-indexed). | 0 | -| `txHash` | *string* | :heavy_check_mark: | The transaction hash identifier. | 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 | -| `txStatus` | *string* | :heavy_check_mark: | The transaction status, which is either 0 (failed) or 1 (successful). | 1 | -| `txType` | *number* | :heavy_check_mark: | The transaction type. | 1 | -| `gasLimit` | *string* | :heavy_check_mark: | The gas limit set for the transaction. | 51373 | -| `gasUsed` | *string* | :heavy_check_mark: | The amount of gas used. | 51373 | -| `gasPrice` | *string* | :heavy_check_mark: | The gas price denominated by the number of decimals of the native token. | 470000000000 | -| `nonce` | *string* | :heavy_check_mark: | The nonce used by the sender of the transaction. | 1 | -| `from` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `to` | [components.RichAddress](../../models/components/richaddress.md) | :heavy_check_mark: | N/A | | -| `method` | [components.Method](../../models/components/method.md) | :heavy_minus_sign: | N/A | | -| `value` | *string* | :heavy_check_mark: | N/A | 10000000000000000000 | \ No newline at end of file diff --git a/data/docs/models/components/network.md b/data/docs/models/components/network.md deleted file mode 100644 index 88b739eb..00000000 --- a/data/docs/models/components/network.md +++ /dev/null @@ -1,15 +0,0 @@ -# Network - -## Example Usage - -```typescript -import { Network } from "@avalanche-sdk/data/models/components"; - -let value: Network = "mainnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "testnet" -``` \ No newline at end of file diff --git a/data/docs/models/components/networktoken.md b/data/docs/models/components/networktoken.md deleted file mode 100644 index 7454dde7..00000000 --- a/data/docs/models/components/networktoken.md +++ /dev/null @@ -1,25 +0,0 @@ -# NetworkToken - -## Example Usage - -```typescript -import { NetworkToken } from "@avalanche-sdk/data/models/components"; - -let value: NetworkToken = { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `description` | *string* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/networktokendetails.md b/data/docs/models/components/networktokendetails.md deleted file mode 100644 index 362dbcbc..00000000 --- a/data/docs/models/components/networktokendetails.md +++ /dev/null @@ -1,33 +0,0 @@ -# NetworkTokenDetails - -## Example Usage - -```typescript -import { NetworkTokenDetails } from "@avalanche-sdk/data/models/components"; - -let value: NetworkTokenDetails = { - networkToken: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - }, - currentPrice: { - currencyCode: "usd", - value: 42.42, - }, - historicalPrice: { - currencyCode: "usd", - value: 42.42, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `networkToken` | [components.NetworkToken](../../models/components/networktoken.md) | :heavy_check_mark: | N/A | -| `currentPrice` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The current token price, if available. | -| `historicalPrice` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago. | \ No newline at end of file diff --git a/data/docs/models/components/nfttokenmetadatastatus.md b/data/docs/models/components/nfttokenmetadatastatus.md deleted file mode 100644 index 575d70cc..00000000 --- a/data/docs/models/components/nfttokenmetadatastatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# NftTokenMetadataStatus - -The metadata indexing status of the nft. - -## Example Usage - -```typescript -import { NftTokenMetadataStatus } from "@avalanche-sdk/data/models/components"; - -let value: NftTokenMetadataStatus = "UNREACHABLE_TOKEN_URI"; -``` - -## Values - -```typescript -"UNKNOWN" | "MISSING_TOKEN" | "INVALID_TOKEN_URI" | "INVALID_TOKEN_URI_SCHEME" | "UNREACHABLE_TOKEN_URI" | "THROTTLED_TOKEN_URI" | "METADATA_CONTENT_TOO_LARGE" | "INVALID_METADATA" | "INVALID_METADATA_JSON" | "INDEXED" | "UNINDEXED" -``` \ No newline at end of file diff --git a/data/docs/models/components/operationstatus.md b/data/docs/models/components/operationstatus.md deleted file mode 100644 index 33d3758a..00000000 --- a/data/docs/models/components/operationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# OperationStatus - -## Example Usage - -```typescript -import { OperationStatus } from "@avalanche-sdk/data/models/components"; - -let value: OperationStatus = "COMPLETED"; -``` - -## Values - -```typescript -"RUNNING" | "COMPLETED" | "COMPLETED_WITH_WARNING" | "FAILED" -``` \ No newline at end of file diff --git a/data/docs/models/components/operationstatuscode.md b/data/docs/models/components/operationstatuscode.md deleted file mode 100644 index fa16c1e2..00000000 --- a/data/docs/models/components/operationstatuscode.md +++ /dev/null @@ -1,15 +0,0 @@ -# OperationStatusCode - -## Example Usage - -```typescript -import { OperationStatusCode } from "@avalanche-sdk/data/models/components"; - -let value: OperationStatusCode = "ErrInvalidRequest"; -``` - -## Values - -```typescript -"ErrInvalidRequest" | "ErrInternal" | "WarnTruncatedExport" -``` \ No newline at end of file diff --git a/data/docs/models/components/operationstatusresponse.md b/data/docs/models/components/operationstatusresponse.md deleted file mode 100644 index 1f0e157a..00000000 --- a/data/docs/models/components/operationstatusresponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# OperationStatusResponse - -## Example Usage - -```typescript -import { OperationStatusResponse } from "@avalanche-sdk/data/models/components"; - -let value: OperationStatusResponse = { - operationId: "", - operationType: "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", - operationStatus: "COMPLETED_WITH_WARNING", - createdAtTimestamp: 6609.69, - updatedAtTimestamp: 952.97, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `operationId` | *string* | :heavy_check_mark: | N/A | -| `operationType` | [components.OperationType](../../models/components/operationtype.md) | :heavy_check_mark: | N/A | -| `operationStatus` | [components.OperationStatus](../../models/components/operationstatus.md) | :heavy_check_mark: | N/A | -| `message` | *string* | :heavy_minus_sign: | N/A | -| `metadata` | *components.Metadata* | :heavy_minus_sign: | N/A | -| `createdAtTimestamp` | *number* | :heavy_check_mark: | N/A | -| `updatedAtTimestamp` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/operationtype.md b/data/docs/models/components/operationtype.md deleted file mode 100644 index 9563e908..00000000 --- a/data/docs/models/components/operationtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# OperationType - -## Example Usage - -```typescript -import { OperationType } from "@avalanche-sdk/data/models/components"; - -let value: OperationType = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"; -``` - -## Values - -```typescript -"TRANSACTION_EXPORT_PRIMARY_NETWORK" | "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING" | "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE" | "TRANSACTION_EXPORT_EVM" -``` \ No newline at end of file diff --git a/data/docs/models/components/pchainbalance.md b/data/docs/models/components/pchainbalance.md deleted file mode 100644 index 39c5d13e..00000000 --- a/data/docs/models/components/pchainbalance.md +++ /dev/null @@ -1,61 +0,0 @@ -# PChainBalance - -## Example Usage - -```typescript -import { PChainBalance } from "@avalanche-sdk/data/models/components"; - -let value: PChainBalance = { - unlockedUnstaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - }, - ], - unlockedStaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - utxoCount: 1, - }, - ], - lockedPlatform: [], - lockedStakeable: [], - lockedStaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - }, - ], - pendingStaked: [], - atomicMemoryUnlocked: [], - atomicMemoryLocked: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `unlockedUnstaked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction. | -| `unlockedStaked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends. | -| `lockedPlatform` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time. | -| `lockedStakeable` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions. | -| `lockedStaked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends. | -| `pendingStaked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started. | -| `atomicMemoryUnlocked` | [components.PChainSharedAsset](../../models/components/pchainsharedasset.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain. | -| `atomicMemoryLocked` | [components.PChainSharedAsset](../../models/components/pchainsharedasset.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain. | \ No newline at end of file diff --git a/data/docs/models/components/pchainid.md b/data/docs/models/components/pchainid.md deleted file mode 100644 index ecbec247..00000000 --- a/data/docs/models/components/pchainid.md +++ /dev/null @@ -1,15 +0,0 @@ -# PChainId - -## Example Usage - -```typescript -import { PChainId } from "@avalanche-sdk/data/models/components"; - -let value: PChainId = "p-chain"; -``` - -## Values - -```typescript -"11111111111111111111111111111111LpoYY" | "p-chain" -``` \ No newline at end of file diff --git a/data/docs/models/components/pchainsharedasset.md b/data/docs/models/components/pchainsharedasset.md deleted file mode 100644 index ed486301..00000000 --- a/data/docs/models/components/pchainsharedasset.md +++ /dev/null @@ -1,33 +0,0 @@ -# PChainSharedAsset - -## Example Usage - -```typescript -import { PChainSharedAsset } from "@avalanche-sdk/data/models/components"; - -let value: PChainSharedAsset = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - status: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | -| `utxoCount` | *number* | :heavy_check_mark: | N/A | 1 | -| `sharedWithChainId` | *string* | :heavy_check_mark: | N/A | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `status` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/pchaintransaction.md b/data/docs/models/components/pchaintransaction.md deleted file mode 100644 index 1f3b45b9..00000000 --- a/data/docs/models/components/pchaintransaction.md +++ /dev/null @@ -1,122 +0,0 @@ -# PChainTransaction - -## Example Usage - -```typescript -import { PChainTransaction } from "@avalanche-sdk/data/models/components"; - -let value: PChainTransaction = { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "AddValidatorTx", - blockTimestamp: 1648672486, - blockNumber: "", - blockHash: "", - consumedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "578.02", - assetId: "", - blockNumber: "", - blockTimestamp: 1090.15, - outputIndex: 9797.87, - txHash: "", - utxoType: "STAKE", - }, - ], - emittedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "606.41", - assetId: "", - blockNumber: "", - blockTimestamp: 5338.13, - outputIndex: 1061.23, - txHash: "", - utxoType: "TRANSFER", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - value: [], - amountBurned: [], - amountStaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - amountL1ValidatorBalanceBurned: [], - subnetOwnershipInfo: { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | A P-Chain transaction hash. | 3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP | -| `txType` | [components.PChainTransactionType](../../models/components/pchaintransactiontype.md) | :heavy_check_mark: | N/A | | -| `blockTimestamp` | *number* | :heavy_check_mark: | The block finality timestamp. | 1648672486 | -| `blockNumber` | *string* | :heavy_check_mark: | The height of the block in which the transaction was included | | -| `blockHash` | *string* | :heavy_check_mark: | N/A | | -| `consumedUtxos` | [components.PChainUtxo](../../models/components/pchainutxo.md)[] | :heavy_check_mark: | The consumed UTXOs of the transaction | | -| `emittedUtxos` | [components.PChainUtxo](../../models/components/pchainutxo.md)[] | :heavy_check_mark: | The newly created UTXOs of the transaction | | -| `sourceChain` | *string* | :heavy_minus_sign: | Source chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `destinationChain` | *string* | :heavy_minus_sign: | Destination chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `value` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction | | -| `amountBurned` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee | | -| `amountStaked` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | | -| `amountL1ValidatorBalanceBurned` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation. | | -| `startTimestamp` | *number* | :heavy_minus_sign: | Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | | -| `endTimestamp` | *number* | :heavy_minus_sign: | Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | | -| `delegationFeePercent` | *string* | :heavy_minus_sign: | The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx | | -| `nodeId` | *string* | :heavy_minus_sign: | The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | | -| `subnetId` | *string* | :heavy_minus_sign: | Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx | | -| `l1ValidatorManagerDetails` | [components.L1ValidatorManagerDetails](../../models/components/l1validatormanagerdetails.md) | :heavy_minus_sign: | Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1 | | -| `l1ValidatorDetails` | [components.L1ValidatorDetailsTransaction](../../models/components/l1validatordetailstransaction.md)[] | :heavy_minus_sign: | Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time | | -| `estimatedReward` | *string* | :heavy_minus_sign: | Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx | | -| `rewardTxHash` | *string* | :heavy_minus_sign: | Reward transaction hash for the completed validations or delegations | | -| `rewardAddresses` | *string*[] | :heavy_minus_sign: | N/A | | -| `memo` | *string* | :heavy_minus_sign: | N/A | | -| `stakingTxHash` | *string* | :heavy_minus_sign: | Staking transaction corresponding to the RewardValidatorTx | | -| `subnetOwnershipInfo` | [components.SubnetOwnershipInfo](../../models/components/subnetownershipinfo.md) | :heavy_minus_sign: | Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx | | -| `blsCredentials` | [components.BlsCredentials](../../models/components/blscredentials.md) | :heavy_minus_sign: | Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx | | -| `blockchainInfo` | [components.BlockchainInfo](../../models/components/blockchaininfo.md) | :heavy_minus_sign: | Details of the blockchain that was created in the CreateChainTx | | \ No newline at end of file diff --git a/data/docs/models/components/pchaintransactiontype.md b/data/docs/models/components/pchaintransactiontype.md deleted file mode 100644 index ef2f78b3..00000000 --- a/data/docs/models/components/pchaintransactiontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# PChainTransactionType - -## Example Usage - -```typescript -import { PChainTransactionType } from "@avalanche-sdk/data/models/components"; - -let value: PChainTransactionType = "AddValidatorTx"; -``` - -## Values - -```typescript -"AddValidatorTx" | "AddSubnetValidatorTx" | "AddDelegatorTx" | "CreateChainTx" | "CreateSubnetTx" | "ImportTx" | "ExportTx" | "AdvanceTimeTx" | "RewardValidatorTx" | "RemoveSubnetValidatorTx" | "TransformSubnetTx" | "AddPermissionlessValidatorTx" | "AddPermissionlessDelegatorTx" | "BaseTx" | "TransferSubnetOwnershipTx" | "ConvertSubnetToL1Tx" | "RegisterL1ValidatorTx" | "SetL1ValidatorWeightTx" | "DisableL1ValidatorTx" | "IncreaseL1ValidatorBalanceTx" | "UNKNOWN" -``` \ No newline at end of file diff --git a/data/docs/models/components/pchainutxo.md b/data/docs/models/components/pchainutxo.md deleted file mode 100644 index 488ea651..00000000 --- a/data/docs/models/components/pchainutxo.md +++ /dev/null @@ -1,59 +0,0 @@ -# PChainUtxo - -## Example Usage - -```typescript -import { PChainUtxo } from "@avalanche-sdk/data/models/components"; - -let value: PChainUtxo = { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "354.95", - assetId: "", - blockNumber: "", - blockTimestamp: 4349.03, - outputIndex: 8048.36, - txHash: "", - utxoType: "TRANSFER", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string*[] | :heavy_check_mark: | Addresses that are eligible to sign the consumption of this output. | [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
] | -| `asset` | [components.AssetAmount](../../models/components/assetamount.md) | :heavy_check_mark: | N/A | | -| `consumedOnChainId` | *string* | :heavy_check_mark: | Blockchain ID on which this output is consumed on. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `consumingTxHash` | *string* | :heavy_minus_sign: | Transaction ID that consumed this output. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `createdOnChainId` | *string* | :heavy_check_mark: | Blockchain ID on which this output is created on. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `utxoId` | *string* | :heavy_check_mark: | UTXO ID for this output. | 68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC | -| ~~`amount`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | -| ~~`assetId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | -| `blockNumber` | *string* | :heavy_check_mark: | N/A | | -| `blockTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `consumingBlockNumber` | *string* | :heavy_minus_sign: | Block height in which the transaction consuming this UTXO was included | | -| `consumingBlockTimestamp` | *number* | :heavy_minus_sign: | Timestamp in seconds at which this UTXO is used in a consuming transaction | | -| `platformLocktime` | *number* | :heavy_minus_sign: | Timestamp in seconds after which this UTXO can be consumed | | -| `outputIndex` | *number* | :heavy_check_mark: | The index of the UTXO in the transaction | | -| `rewardType` | [components.RewardType](../../models/components/rewardtype.md) | :heavy_minus_sign: | N/A | | -| `stakeableLocktime` | *number* | :heavy_minus_sign: | Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything | | -| `staked` | *boolean* | :heavy_minus_sign: | N/A | | -| `threshold` | *number* | :heavy_minus_sign: | The minimum number of signatures required to spend this UTXO | | -| `txHash` | *string* | :heavy_check_mark: | The hash of the transaction that created this UTXO | | -| `utxoEndTimestamp` | *number* | :heavy_minus_sign: | Timestamp in seconds after which the staked UTXO will be unlocked. | | -| `utxoStartTimestamp` | *number* | :heavy_minus_sign: | Timestamp in seconds at which the staked UTXO was locked. | | -| `utxoType` | [components.UtxoType](../../models/components/utxotype.md) | :heavy_check_mark: | Indicates whether the UTXO is staked or transferable | | \ No newline at end of file diff --git a/data/docs/models/components/pendingdelegatordetails.md b/data/docs/models/components/pendingdelegatordetails.md deleted file mode 100644 index 82f839e2..00000000 --- a/data/docs/models/components/pendingdelegatordetails.md +++ /dev/null @@ -1,37 +0,0 @@ -# PendingDelegatorDetails - -## Example Usage - -```typescript -import { PendingDelegatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: PendingDelegatorDetails = { - txHash: "", - nodeId: "", - rewardAddresses: [ - "", - ], - amountDelegated: "", - delegationFee: "", - startTimestamp: 5278.42, - endTimestamp: 9478.17, - estimatedGrossReward: "", - estimatedNetReward: "", - delegationStatus: "pending", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `rewardAddresses` | *string*[] | :heavy_check_mark: | N/A | -| `amountDelegated` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_check_mark: | N/A | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `estimatedGrossReward` | *string* | :heavy_check_mark: | Estimated total rewards that will be distributed for the successful delegation. | -| `estimatedNetReward` | *string* | :heavy_check_mark: | Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation. | -| `delegationStatus` | [components.PendingDelegatorDetailsDelegationStatus](../../models/components/pendingdelegatordetailsdelegationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/pendingdelegatordetailsdelegationstatus.md b/data/docs/models/components/pendingdelegatordetailsdelegationstatus.md deleted file mode 100644 index 1dfdc735..00000000 --- a/data/docs/models/components/pendingdelegatordetailsdelegationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# PendingDelegatorDetailsDelegationStatus - -## Example Usage - -```typescript -import { PendingDelegatorDetailsDelegationStatus } from "@avalanche-sdk/data/models/components"; - -let value: PendingDelegatorDetailsDelegationStatus = "pending"; -``` - -## Values - -```typescript -"pending" -``` \ No newline at end of file diff --git a/data/docs/models/components/pendingicmmessage.md b/data/docs/models/components/pendingicmmessage.md deleted file mode 100644 index debf3579..00000000 --- a/data/docs/models/components/pendingicmmessage.md +++ /dev/null @@ -1,63 +0,0 @@ -# PendingIcmMessage - -## Example Usage - -```typescript -import { PendingIcmMessage } from "@avalanche-sdk/data/models/components"; - -let value: PendingIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - status: "pending", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `icmContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.IcmReceipt](../../models/components/icmreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.IcmRewardDetails](../../models/components/icmrewarddetails.md) | :heavy_check_mark: | N/A | -| `sourceTransaction` | [components.IcmSourceTransaction](../../models/components/icmsourcetransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.PendingIcmMessageStatus](../../models/components/pendingicmmessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/pendingicmmessagestatus.md b/data/docs/models/components/pendingicmmessagestatus.md deleted file mode 100644 index 3a088d05..00000000 --- a/data/docs/models/components/pendingicmmessagestatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# PendingIcmMessageStatus - -## Example Usage - -```typescript -import { PendingIcmMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: PendingIcmMessageStatus = "pending"; -``` - -## Values - -```typescript -"pending" -``` \ No newline at end of file diff --git a/data/docs/models/components/pendingreward.md b/data/docs/models/components/pendingreward.md deleted file mode 100644 index a4a5c70c..00000000 --- a/data/docs/models/components/pendingreward.md +++ /dev/null @@ -1,42 +0,0 @@ -# PendingReward - -## Example Usage - -```typescript -import { PendingReward } from "@avalanche-sdk/data/models/components"; - -let value: PendingReward = { - addresses: [ - "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - ], - txHash: "", - amountStaked: "", - nodeId: "", - startTimestamp: 3021.86, - endTimestamp: 1563.84, - rewardType: "VALIDATOR", - progress: 3727.95, - estimatedReward: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `addresses` | *string*[] | :heavy_check_mark: | An array of P-Chain wallet addresses. | [
"avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"
] | -| `txHash` | *string* | :heavy_check_mark: | N/A | | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | | -| `nodeId` | *string* | :heavy_check_mark: | N/A | | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | | -| `rewardType` | [components.RewardType](../../models/components/rewardtype.md) | :heavy_check_mark: | N/A | | -| `progress` | *number* | :heavy_check_mark: | N/A | | -| `estimatedReward` | [components.AssetAmount](../../models/components/assetamount.md) | :heavy_check_mark: | An object containing P-chain Asset basic info and the amount of that Asset ID. | | \ No newline at end of file diff --git a/data/docs/models/components/pendingteleportermessage.md b/data/docs/models/components/pendingteleportermessage.md deleted file mode 100644 index c93f5397..00000000 --- a/data/docs/models/components/pendingteleportermessage.md +++ /dev/null @@ -1,63 +0,0 @@ -# PendingTeleporterMessage - -## Example Usage - -```typescript -import { PendingTeleporterMessage } from "@avalanche-sdk/data/models/components"; - -let value: PendingTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - status: "pending", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `messageId` | *string* | :heavy_check_mark: | N/A | -| `teleporterContractAddress` | *string* | :heavy_check_mark: | N/A | -| `sourceBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `destinationBlockchainId` | *string* | :heavy_check_mark: | N/A | -| `sourceEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `destinationEvmChainId` | *string* | :heavy_check_mark: | N/A | -| `messageNonce` | *string* | :heavy_check_mark: | N/A | -| `from` | *string* | :heavy_check_mark: | N/A | -| `to` | *string* | :heavy_check_mark: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `messageExecuted` | *boolean* | :heavy_check_mark: | N/A | -| `receipts` | [components.TeleporterReceipt](../../models/components/teleporterreceipt.md)[] | :heavy_check_mark: | N/A | -| `receiptDelivered` | *boolean* | :heavy_check_mark: | N/A | -| `rewardDetails` | [components.TeleporterRewardDetails](../../models/components/teleporterrewarddetails.md) | :heavy_check_mark: | N/A | -| `sourceTransaction` | [components.TeleporterSourceTransaction](../../models/components/teleportersourcetransaction.md) | :heavy_check_mark: | N/A | -| `status` | [components.PendingTeleporterMessageStatus](../../models/components/pendingteleportermessagestatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/pendingteleportermessagestatus.md b/data/docs/models/components/pendingteleportermessagestatus.md deleted file mode 100644 index 1c789327..00000000 --- a/data/docs/models/components/pendingteleportermessagestatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# PendingTeleporterMessageStatus - -## Example Usage - -```typescript -import { PendingTeleporterMessageStatus } from "@avalanche-sdk/data/models/components"; - -let value: PendingTeleporterMessageStatus = "pending"; -``` - -## Values - -```typescript -"pending" -``` \ No newline at end of file diff --git a/data/docs/models/components/pendingvalidatordetails.md b/data/docs/models/components/pendingvalidatordetails.md deleted file mode 100644 index 1106bb92..00000000 --- a/data/docs/models/components/pendingvalidatordetails.md +++ /dev/null @@ -1,31 +0,0 @@ -# PendingValidatorDetails - -## Example Usage - -```typescript -import { PendingValidatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: PendingValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 9843.29, - endTimestamp: 5112.58, - validationStatus: "pending", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_minus_sign: | The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blsCredentials` | [components.BlsCredentials](../../models/components/blscredentials.md) | :heavy_minus_sign: | Present for AddPermissionlessValidatorTx | -| `validationStatus` | [components.PendingValidatorDetailsValidationStatus](../../models/components/pendingvalidatordetailsvalidationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/pendingvalidatordetailsvalidationstatus.md b/data/docs/models/components/pendingvalidatordetailsvalidationstatus.md deleted file mode 100644 index d3e64909..00000000 --- a/data/docs/models/components/pendingvalidatordetailsvalidationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# PendingValidatorDetailsValidationStatus - -## Example Usage - -```typescript -import { PendingValidatorDetailsValidationStatus } from "@avalanche-sdk/data/models/components"; - -let value: PendingValidatorDetailsValidationStatus = "pending"; -``` - -## Values - -```typescript -"pending" -``` \ No newline at end of file diff --git a/data/docs/models/components/pricingproviders.md b/data/docs/models/components/pricingproviders.md deleted file mode 100644 index 9f9319a2..00000000 --- a/data/docs/models/components/pricingproviders.md +++ /dev/null @@ -1,15 +0,0 @@ -# PricingProviders - -## Example Usage - -```typescript -import { PricingProviders } from "@avalanche-sdk/data/models/components"; - -let value: PricingProviders = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `coingeckoCoinId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkassetcap.md b/data/docs/models/components/primarynetworkassetcap.md deleted file mode 100644 index 0029076b..00000000 --- a/data/docs/models/components/primarynetworkassetcap.md +++ /dev/null @@ -1,17 +0,0 @@ -# PrimaryNetworkAssetCap - -Cap represents if an asset is a variable or fixed cap asset. - -## Example Usage - -```typescript -import { PrimaryNetworkAssetCap } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkAssetCap = "fixed"; -``` - -## Values - -```typescript -"fixed" | "variable" -``` \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkassettype.md b/data/docs/models/components/primarynetworkassettype.md deleted file mode 100644 index 0c77394d..00000000 --- a/data/docs/models/components/primarynetworkassettype.md +++ /dev/null @@ -1,17 +0,0 @@ -# PrimaryNetworkAssetType - -Type of asset like SECP256K1 or NFT. - -## Example Usage - -```typescript -import { PrimaryNetworkAssetType } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkAssetType = "nft"; -``` - -## Values - -```typescript -"secp256k1" | "nft" -``` \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkblock.md b/data/docs/models/components/primarynetworkblock.md deleted file mode 100644 index e0ae1590..00000000 --- a/data/docs/models/components/primarynetworkblock.md +++ /dev/null @@ -1,39 +0,0 @@ -# PrimaryNetworkBlock - -## Example Usage - -```typescript -import { PrimaryNetworkBlock } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkBlock = { - blockNumber: "", - blockHash: "", - parentHash: "", - blockTimestamp: 4948.69, - blockType: "", - txCount: 8198.34, - transactions: [ - "", - "", - "", - ], - blockSizeBytes: 8383.87, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `blockNumber` | *string* | :heavy_check_mark: | N/A | -| `blockHash` | *string* | :heavy_check_mark: | N/A | -| `parentHash` | *string* | :heavy_check_mark: | N/A | -| `blockTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blockType` | *string* | :heavy_check_mark: | N/A | -| `txCount` | *number* | :heavy_check_mark: | N/A | -| `transactions` | *string*[] | :heavy_check_mark: | N/A | -| `blockSizeBytes` | *number* | :heavy_check_mark: | N/A | -| `l1ValidatorsAccruedFees` | *number* | :heavy_minus_sign: | N/A | -| `activeL1Validators` | *number* | :heavy_minus_sign: | N/A | -| `currentSupply` | *string* | :heavy_minus_sign: | N/A | -| `proposerDetails` | [components.ProposerDetails](../../models/components/proposerdetails.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkchaininfo.md b/data/docs/models/components/primarynetworkchaininfo.md deleted file mode 100644 index 979b8f03..00000000 --- a/data/docs/models/components/primarynetworkchaininfo.md +++ /dev/null @@ -1,19 +0,0 @@ -# PrimaryNetworkChainInfo - -## Example Usage - -```typescript -import { PrimaryNetworkChainInfo } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkChainInfo = { - chainName: "c-chain", - network: "mainnet", -}; -``` - -## Fields - -| 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/data/docs/models/components/primarynetworkchainname.md b/data/docs/models/components/primarynetworkchainname.md deleted file mode 100644 index ecb05434..00000000 --- a/data/docs/models/components/primarynetworkchainname.md +++ /dev/null @@ -1,15 +0,0 @@ -# PrimaryNetworkChainName - -## Example Usage - -```typescript -import { PrimaryNetworkChainName } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkChainName = "x-chain"; -``` - -## Values - -```typescript -"p-chain" | "x-chain" | "c-chain" -``` \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkoperationtype.md b/data/docs/models/components/primarynetworkoperationtype.md deleted file mode 100644 index c9a26d10..00000000 --- a/data/docs/models/components/primarynetworkoperationtype.md +++ /dev/null @@ -1,16 +0,0 @@ -# PrimaryNetworkOperationType - -## Example Usage - -```typescript -import { PrimaryNetworkOperationType } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkOperationType = - "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"; -``` - -## Values - -```typescript -"TRANSACTION_EXPORT_PRIMARY_NETWORK" | "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING" | "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE" -``` \ No newline at end of file diff --git a/data/docs/models/components/primarynetworkoptions.md b/data/docs/models/components/primarynetworkoptions.md deleted file mode 100644 index f1abc9ac..00000000 --- a/data/docs/models/components/primarynetworkoptions.md +++ /dev/null @@ -1,21 +0,0 @@ -# PrimaryNetworkOptions - -## Example Usage - -```typescript -import { PrimaryNetworkOptions } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkOptions = { - includeChains: [ - "p-chain", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `addresses` | *string*[] | :heavy_minus_sign: | N/A | | -| `cChainEvmAddresses` | *string*[] | :heavy_minus_sign: | N/A | | -| `includeChains` | [components.IncludeChain](../../models/components/includechain.md)[] | :heavy_check_mark: | N/A | [
"p-chain"
] | \ No newline at end of file diff --git a/data/docs/models/components/primarynetworktxtype.md b/data/docs/models/components/primarynetworktxtype.md deleted file mode 100644 index 9bd941e6..00000000 --- a/data/docs/models/components/primarynetworktxtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# PrimaryNetworkTxType - -## Example Usage - -```typescript -import { PrimaryNetworkTxType } from "@avalanche-sdk/data/models/components"; - -let value: PrimaryNetworkTxType = "AdvanceTimeTx"; -``` - -## Values - -```typescript -"AddValidatorTx" | "AddSubnetValidatorTx" | "AddDelegatorTx" | "CreateChainTx" | "CreateSubnetTx" | "ImportTx" | "ExportTx" | "AdvanceTimeTx" | "RewardValidatorTx" | "RemoveSubnetValidatorTx" | "TransformSubnetTx" | "AddPermissionlessValidatorTx" | "AddPermissionlessDelegatorTx" | "BaseTx" | "TransferSubnetOwnershipTx" | "ConvertSubnetToL1Tx" | "RegisterL1ValidatorTx" | "SetL1ValidatorWeightTx" | "DisableL1ValidatorTx" | "IncreaseL1ValidatorBalanceTx" | "UNKNOWN" | "CreateAssetTx" | "OperationTx" -``` \ No newline at end of file diff --git a/data/docs/models/components/proposerdetails.md b/data/docs/models/components/proposerdetails.md deleted file mode 100644 index 4e1e19d3..00000000 --- a/data/docs/models/components/proposerdetails.md +++ /dev/null @@ -1,19 +0,0 @@ -# ProposerDetails - -## Example Usage - -```typescript -import { ProposerDetails } from "@avalanche-sdk/data/models/components"; - -let value: ProposerDetails = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `proposerId` | *string* | :heavy_minus_sign: | N/A | -| `proposerParentId` | *string* | :heavy_minus_sign: | N/A | -| `proposerNodeId` | *string* | :heavy_minus_sign: | N/A | -| `proposerPChainHeight` | *number* | :heavy_minus_sign: | N/A | -| `proposerTimestamp` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/removedvalidatordetails.md b/data/docs/models/components/removedvalidatordetails.md deleted file mode 100644 index 6762a4fb..00000000 --- a/data/docs/models/components/removedvalidatordetails.md +++ /dev/null @@ -1,35 +0,0 @@ -# RemovedValidatorDetails - -## Example Usage - -```typescript -import { RemovedValidatorDetails } from "@avalanche-sdk/data/models/components"; - -let value: RemovedValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 1722.34, - endTimestamp: 1657.27, - removeTxHash: "", - removeTimestamp: 3786.23, - validationStatus: "removed", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `nodeId` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| `amountStaked` | *string* | :heavy_check_mark: | N/A | -| `delegationFee` | *string* | :heavy_minus_sign: | The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. | -| `startTimestamp` | *number* | :heavy_check_mark: | N/A | -| `endTimestamp` | *number* | :heavy_check_mark: | N/A | -| `blsCredentials` | [components.BlsCredentials](../../models/components/blscredentials.md) | :heavy_minus_sign: | Present for AddPermissionlessValidatorTx | -| `removeTxHash` | *string* | :heavy_check_mark: | The transaction hash that removed the permissioned subnet validator. | -| `removeTimestamp` | *number* | :heavy_check_mark: | The timestamp of the transaction that removed the permissioned subnet validator. | -| `validationStatus` | [components.RemovedValidatorDetailsValidationStatus](../../models/components/removedvalidatordetailsvalidationstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/removedvalidatordetailsvalidationstatus.md b/data/docs/models/components/removedvalidatordetailsvalidationstatus.md deleted file mode 100644 index 79cdce27..00000000 --- a/data/docs/models/components/removedvalidatordetailsvalidationstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# RemovedValidatorDetailsValidationStatus - -## Example Usage - -```typescript -import { RemovedValidatorDetailsValidationStatus } from "@avalanche-sdk/data/models/components"; - -let value: RemovedValidatorDetailsValidationStatus = "removed"; -``` - -## Values - -```typescript -"removed" -``` \ No newline at end of file diff --git a/data/docs/models/components/requesttype.md b/data/docs/models/components/requesttype.md deleted file mode 100644 index 00e6704d..00000000 --- a/data/docs/models/components/requesttype.md +++ /dev/null @@ -1,17 +0,0 @@ -# RequestType - -The type of request made by the client. - -## Example Usage - -```typescript -import { RequestType } from "@avalanche-sdk/data/models/components"; - -let value: RequestType = "data"; -``` - -## Values - -```typescript -"data" | "rpc" -``` \ No newline at end of file diff --git a/data/docs/models/components/resourcelink.md b/data/docs/models/components/resourcelink.md deleted file mode 100644 index 2f1b0e2c..00000000 --- a/data/docs/models/components/resourcelink.md +++ /dev/null @@ -1,19 +0,0 @@ -# ResourceLink - -## Example Usage - -```typescript -import { ResourceLink } from "@avalanche-sdk/data/models/components"; - -let value: ResourceLink = { - type: "Twitter", - url: "https://putrid-sightseeing.org", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `type` | [components.ResourceLinkType](../../models/components/resourcelinktype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/resourcelinktype.md b/data/docs/models/components/resourcelinktype.md deleted file mode 100644 index e9629a71..00000000 --- a/data/docs/models/components/resourcelinktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceLinkType - -## Example Usage - -```typescript -import { ResourceLinkType } from "@avalanche-sdk/data/models/components"; - -let value: ResourceLinkType = "Telegram"; -``` - -## Values - -```typescript -"Blog" | "CoinGecko" | "CoinMarketCap" | "Discord" | "Documentation" | "Facebook" | "Github" | "Instagram" | "LinkedIn" | "Medium" | "Reddit" | "Support" | "Telegram" | "TikTok" | "Twitter" | "Website" | "Whitepaper" | "Youtube" -``` \ No newline at end of file diff --git a/data/docs/models/components/rewards.md b/data/docs/models/components/rewards.md deleted file mode 100644 index fe50f7e5..00000000 --- a/data/docs/models/components/rewards.md +++ /dev/null @@ -1,21 +0,0 @@ -# Rewards - -## Example Usage - -```typescript -import { Rewards } from "@avalanche-sdk/data/models/components"; - -let value: Rewards = { - validationRewardAmount: "", - delegationRewardAmount: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------ | ------------------------ | ------------------------ | ------------------------ | -| `validationRewardAmount` | *string* | :heavy_check_mark: | N/A | -| `delegationRewardAmount` | *string* | :heavy_check_mark: | N/A | -| `rewardAddresses` | *string*[] | :heavy_minus_sign: | N/A | -| `rewardTxHash` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/rewardtype.md b/data/docs/models/components/rewardtype.md deleted file mode 100644 index f85f33ce..00000000 --- a/data/docs/models/components/rewardtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# RewardType - -## Example Usage - -```typescript -import { RewardType } from "@avalanche-sdk/data/models/components"; - -let value: RewardType = "VALIDATOR_FEE"; -``` - -## Values - -```typescript -"VALIDATOR" | "DELEGATOR" | "VALIDATOR_FEE" -``` \ No newline at end of file diff --git a/data/docs/models/components/richaddress.md b/data/docs/models/components/richaddress.md deleted file mode 100644 index a913fb63..00000000 --- a/data/docs/models/components/richaddress.md +++ /dev/null @@ -1,26 +0,0 @@ -# RichAddress - -## Example Usage - -```typescript -import { RichAddress } from "@avalanche-sdk/data/models/components"; - -let value: RichAddress = { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_minus_sign: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_minus_sign: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/components/rpcmetrics.md b/data/docs/models/components/rpcmetrics.md deleted file mode 100644 index 444e3f2d..00000000 --- a/data/docs/models/components/rpcmetrics.md +++ /dev/null @@ -1,19 +0,0 @@ -# RpcMetrics - -## Example Usage - -```typescript -import { RpcMetrics } from "@avalanche-sdk/data/models/components"; - -let value: RpcMetrics = { - timestamp: 1158.29, - values: [], -}; -``` - -## 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/data/docs/models/components/rpcusagemetricsgroupbyenum.md b/data/docs/models/components/rpcusagemetricsgroupbyenum.md deleted file mode 100644 index ddc2f11f..00000000 --- a/data/docs/models/components/rpcusagemetricsgroupbyenum.md +++ /dev/null @@ -1,15 +0,0 @@ -# RpcUsageMetricsGroupByEnum - -## Example Usage - -```typescript -import { RpcUsageMetricsGroupByEnum } from "@avalanche-sdk/data/models/components"; - -let value: RpcUsageMetricsGroupByEnum = "rpcMethod"; -``` - -## Values - -```typescript -"rpcMethod" | "responseCode" | "rlBypassToken" -``` \ No newline at end of file diff --git a/data/docs/models/components/rpcusagemetricsvalueaggregated.md b/data/docs/models/components/rpcusagemetricsvalueaggregated.md deleted file mode 100644 index bef6b776..00000000 --- a/data/docs/models/components/rpcusagemetricsvalueaggregated.md +++ /dev/null @@ -1,32 +0,0 @@ -# RpcUsageMetricsValueAggregated - -## Example Usage - -```typescript -import { RpcUsageMetricsValueAggregated } from "@avalanche-sdk/data/models/components"; - -let value: RpcUsageMetricsValueAggregated = { - totalRequests: 5754.46, - apiCreditsUsed: 4964.38, - requestsPerSecond: 4611.48, - successRatePercent: 7818.05, - medianResponseTimeMsecs: 7082.67, - invalidRequests: 7783.3, - apiCreditsWasted: 7954.49, - groupedBy: "rpcMethod", -}; -``` - -## 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 | -| `apiCreditsWasted` | *number* | :heavy_check_mark: | The number of API credits wasted on 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/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md b/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md deleted file mode 100644 index eaab7ca1..00000000 --- a/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md +++ /dev/null @@ -1,17 +0,0 @@ -# RpcUsageMetricsValueAggregatedGroupedBy - -Column name used for data aggregation - -## Example Usage - -```typescript -import { RpcUsageMetricsValueAggregatedGroupedBy } from "@avalanche-sdk/data/models/components"; - -let value: RpcUsageMetricsValueAggregatedGroupedBy = "rlBypassToken"; -``` - -## Values - -```typescript -"rpcMethod" | "responseCode" | "rlBypassToken" | "requestPath" | "country" | "continent" | "userAgent" | "None" -``` \ No newline at end of file diff --git a/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md b/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md deleted file mode 100644 index 6f3f6b76..00000000 --- a/data/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md +++ /dev/null @@ -1,19 +0,0 @@ -# RpcUsageMetricsValueAggregatedGroupValue - -The value of the column used for data aggregation - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `number` - -```typescript -const value: number = 1284.03; -``` - diff --git a/data/docs/models/components/security.md b/data/docs/models/components/security.md deleted file mode 100644 index 81cb97e3..00000000 --- a/data/docs/models/components/security.md +++ /dev/null @@ -1,15 +0,0 @@ -# Security - -## Example Usage - -```typescript -import { Security } from "@avalanche-sdk/data/models/components"; - -let value: Security = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `apiKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/signatureaggregationresponse.md b/data/docs/models/components/signatureaggregationresponse.md deleted file mode 100644 index 7f0a2a0e..00000000 --- a/data/docs/models/components/signatureaggregationresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# SignatureAggregationResponse - -## Example Usage - -```typescript -import { SignatureAggregationResponse } from "@avalanche-sdk/data/models/components"; - -let value: SignatureAggregationResponse = { - signedMessage: - "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `signedMessage` | *string* | :heavy_check_mark: | N/A | 0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af | \ No newline at end of file diff --git a/data/docs/models/components/signatureaggregatorrequest.md b/data/docs/models/components/signatureaggregatorrequest.md deleted file mode 100644 index adcd51d5..00000000 --- a/data/docs/models/components/signatureaggregatorrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# SignatureAggregatorRequest - -## Example Usage - -```typescript -import { SignatureAggregatorRequest } from "@avalanche-sdk/data/models/components"; - -let value: SignatureAggregatorRequest = { - message: - "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", - justification: "0001abcdabcfff", - signingSubnetId: "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", - quorumPercentage: 50, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `message` | *string* | :heavy_check_mark: | N/A | 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000 | -| `justification` | *string* | :heavy_minus_sign: | N/A | 0001abcdabcfff | -| `signingSubnetId` | *string* | :heavy_minus_sign: | N/A | 7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5 | -| `quorumPercentage` | *number* | :heavy_minus_sign: | N/A | 50 | \ No newline at end of file diff --git a/data/docs/models/components/sortbyoption.md b/data/docs/models/components/sortbyoption.md deleted file mode 100644 index 31cea1d9..00000000 --- a/data/docs/models/components/sortbyoption.md +++ /dev/null @@ -1,15 +0,0 @@ -# SortByOption - -## Example Usage - -```typescript -import { SortByOption } from "@avalanche-sdk/data/models/components"; - -let value: SortByOption = "delegationCapacity"; -``` - -## Values - -```typescript -"blockIndex" | "delegationCapacity" | "timeRemaining" | "delegationFee" | "uptimePerformance" -``` \ No newline at end of file diff --git a/data/docs/models/components/sortorder.md b/data/docs/models/components/sortorder.md deleted file mode 100644 index 918cbb9b..00000000 --- a/data/docs/models/components/sortorder.md +++ /dev/null @@ -1,15 +0,0 @@ -# SortOrder - -## Example Usage - -```typescript -import { SortOrder } from "@avalanche-sdk/data/models/components"; - -let value: SortOrder = "asc"; -``` - -## Values - -```typescript -"asc" | "desc" -``` \ No newline at end of file diff --git a/data/docs/models/components/stakingdistribution.md b/data/docs/models/components/stakingdistribution.md deleted file mode 100644 index f62cabfe..00000000 --- a/data/docs/models/components/stakingdistribution.md +++ /dev/null @@ -1,21 +0,0 @@ -# StakingDistribution - -## Example Usage - -```typescript -import { StakingDistribution } from "@avalanche-sdk/data/models/components"; - -let value: StakingDistribution = { - version: "", - amountStaked: "", - validatorCount: 5735.99, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `version` | *string* | :heavy_check_mark: | AvalancheGo version for the validator node. | -| `amountStaked` | *string* | :heavy_check_mark: | The total amount staked by validators using this version. | -| `validatorCount` | *number* | :heavy_check_mark: | The number of validators using this version. | \ No newline at end of file diff --git a/data/docs/models/components/subnet.md b/data/docs/models/components/subnet.md deleted file mode 100644 index 66a71cbc..00000000 --- a/data/docs/models/components/subnet.md +++ /dev/null @@ -1,55 +0,0 @@ -# Subnet - -## Example Usage - -```typescript -import { Subnet } from "@avalanche-sdk/data/models/components"; - -let value: Subnet = { - createBlockTimestamp: 1836.04, - createBlockIndex: "", - subnetId: "", - ownerAddresses: [ - "", - "", - ], - threshold: 94.67, - locktime: 7674.75, - subnetOwnershipInfo: { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - }, - isL1: false, - blockchains: [ - { - createBlockTimestamp: 4077.57, - createBlockNumber: "", - blockchainId: "", - vmId: "", - subnetId: "", - blockchainName: "", - evmChainId: 43114, - genesisData: {}, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `createBlockTimestamp` | *number* | :heavy_check_mark: | N/A | -| `createBlockIndex` | *string* | :heavy_check_mark: | N/A | -| `subnetId` | *string* | :heavy_check_mark: | N/A | -| ~~`ownerAddresses`~~ | *string*[] | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Use subnetOwnershipInfo instead. | -| ~~`threshold`~~ | *number* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Use subnetOwnershipInfo instead. | -| ~~`locktime`~~ | *number* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Use subnetOwnershipInfo instead. | -| `subnetOwnershipInfo` | [components.SubnetOwnershipInfo](../../models/components/subnetownershipinfo.md) | :heavy_check_mark: | Latest subnet owner details for this Subnet. | -| `isL1` | *boolean* | :heavy_check_mark: | Whether the subnet is an L1 or not. | -| `l1ConversionTransactionHash` | *string* | :heavy_minus_sign: | Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1. | -| `l1ValidatorManagerDetails` | [components.L1ValidatorManagerDetails](../../models/components/l1validatormanagerdetails.md) | :heavy_minus_sign: | L1 validator manager details. | -| `blockchains` | [components.Blockchain](../../models/components/blockchain.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/subnetownershipinfo.md b/data/docs/models/components/subnetownershipinfo.md deleted file mode 100644 index 8c2d2180..00000000 --- a/data/docs/models/components/subnetownershipinfo.md +++ /dev/null @@ -1,23 +0,0 @@ -# SubnetOwnershipInfo - -## Example Usage - -```typescript -import { SubnetOwnershipInfo } from "@avalanche-sdk/data/models/components"; - -let value: SubnetOwnershipInfo = { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `locktime` | *number* | :heavy_check_mark: | Locktime in seconds after which Subnet owners can control this Subnet. | 0 | -| `threshold` | *number* | :heavy_check_mark: | Minimum number of signatures required to sign the Subnet update transactions. | 1 | -| `addresses` | *string*[] | :heavy_check_mark: | Addresses that are eligible to sign the Subnet update transactions. | [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
] | \ No newline at end of file diff --git a/data/docs/models/components/subnetrpctimeintervalgranularity.md b/data/docs/models/components/subnetrpctimeintervalgranularity.md deleted file mode 100644 index fc60d392..00000000 --- a/data/docs/models/components/subnetrpctimeintervalgranularity.md +++ /dev/null @@ -1,15 +0,0 @@ -# SubnetRpcTimeIntervalGranularity - -## Example Usage - -```typescript -import { SubnetRpcTimeIntervalGranularity } from "@avalanche-sdk/data/models/components"; - -let value: SubnetRpcTimeIntervalGranularity = "daily"; -``` - -## Values - -```typescript -"hourly" | "daily" | "weekly" | "monthly" -``` \ No newline at end of file diff --git a/data/docs/models/components/subnetrpcusagemetricsresponsedto.md b/data/docs/models/components/subnetrpcusagemetricsresponsedto.md deleted file mode 100644 index 040923e8..00000000 --- a/data/docs/models/components/subnetrpcusagemetricsresponsedto.md +++ /dev/null @@ -1,37 +0,0 @@ -# SubnetRpcUsageMetricsResponseDTO - -## Example Usage - -```typescript -import { SubnetRpcUsageMetricsResponseDTO } from "@avalanche-sdk/data/models/components"; - -let value: SubnetRpcUsageMetricsResponseDTO = { - aggregateDuration: "", - metrics: [ - { - timestamp: 9703.82, - values: [ - { - totalRequests: 3314.38, - apiCreditsUsed: 1605.69, - requestsPerSecond: 666.46, - successRatePercent: 8157.7, - medianResponseTimeMsecs: 5283.35, - invalidRequests: 2407.59, - apiCreditsWasted: 6937.55, - groupedBy: "continent", - }, - ], - }, - ], - chainId: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `aggregateDuration` | *string* | :heavy_check_mark: | Duration in which the metrics value is aggregated | -| `metrics` | [components.RpcMetrics](../../models/components/rpcmetrics.md)[] | :heavy_check_mark: | Metrics values | -| `chainId` | *string* | :heavy_check_mark: | ChainId for which the metrics are aggregated | \ No newline at end of file diff --git a/data/docs/models/components/teleporterdestinationtransaction.md b/data/docs/models/components/teleporterdestinationtransaction.md deleted file mode 100644 index 6c3260f2..00000000 --- a/data/docs/models/components/teleporterdestinationtransaction.md +++ /dev/null @@ -1,25 +0,0 @@ -# TeleporterDestinationTransaction - -## Example Usage - -```typescript -import { TeleporterDestinationTransaction } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterDestinationTransaction = { - txHash: "", - timestamp: 7589.74, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `timestamp` | *number* | :heavy_check_mark: | N/A | -| `gasSpent` | *string* | :heavy_check_mark: | N/A | -| `rewardRedeemer` | *string* | :heavy_check_mark: | N/A | -| `delivererAddress` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/teleportermessageinfo.md b/data/docs/models/components/teleportermessageinfo.md deleted file mode 100644 index 3cbd973d..00000000 --- a/data/docs/models/components/teleportermessageinfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# TeleporterMessageInfo - -## Example Usage - -```typescript -import { TeleporterMessageInfo } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterMessageInfo = { - teleporterMessageId: "", - direction: "DESTINATION_TRANSACTION", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `teleporterMessageId` | *string* | :heavy_check_mark: | N/A | -| `direction` | [components.TransactionDirectionType](../../models/components/transactiondirectiontype.md) | :heavy_check_mark: | N/A | -| `sourceChainId` | *string* | :heavy_minus_sign: | chain id of the source chain. valid only for destination transactions | -| `destinationChainId` | *string* | :heavy_minus_sign: | chain id of the destination chain. valid only for source transactions | \ No newline at end of file diff --git a/data/docs/models/components/teleporterreceipt.md b/data/docs/models/components/teleporterreceipt.md deleted file mode 100644 index dcc8d6ff..00000000 --- a/data/docs/models/components/teleporterreceipt.md +++ /dev/null @@ -1,19 +0,0 @@ -# TeleporterReceipt - -## Example Usage - -```typescript -import { TeleporterReceipt } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterReceipt = { - receivedMessageNonce: "", - relayerRewardAddress: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `receivedMessageNonce` | *string* | :heavy_check_mark: | N/A | -| `relayerRewardAddress` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/teleporterrewarddetails.md b/data/docs/models/components/teleporterrewarddetails.md deleted file mode 100644 index 8de0c552..00000000 --- a/data/docs/models/components/teleporterrewarddetails.md +++ /dev/null @@ -1,35 +0,0 @@ -# TeleporterRewardDetails - -## Example Usage - -```typescript -import { TeleporterRewardDetails } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterRewardDetails = { - 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, - }, - value: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `name` | *string* | :heavy_check_mark: | The contract name. | Wrapped AVAX | -| `symbol` | *string* | :heavy_check_mark: | The contract symbol. | WAVAX | -| `decimals` | *number* | :heavy_check_mark: | The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. | 18 | -| `logoUri` | *string* | :heavy_minus_sign: | The logo uri for the address. | https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg | -| `ercType` | [components.TeleporterRewardDetailsErcType](../../models/components/teleporterrewarddetailserctype.md) | :heavy_check_mark: | N/A | | -| `price` | [components.Money](../../models/components/money.md) | :heavy_minus_sign: | The token price, if available. | | -| `value` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/teleporterrewarddetailserctype.md b/data/docs/models/components/teleporterrewarddetailserctype.md deleted file mode 100644 index 2b7cc7c0..00000000 --- a/data/docs/models/components/teleporterrewarddetailserctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# TeleporterRewardDetailsErcType - -## Example Usage - -```typescript -import { TeleporterRewardDetailsErcType } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterRewardDetailsErcType = "ERC-20"; -``` - -## Values - -```typescript -"ERC-20" -``` \ No newline at end of file diff --git a/data/docs/models/components/teleportersourcetransaction.md b/data/docs/models/components/teleportersourcetransaction.md deleted file mode 100644 index 8e3f82fe..00000000 --- a/data/docs/models/components/teleportersourcetransaction.md +++ /dev/null @@ -1,21 +0,0 @@ -# TeleporterSourceTransaction - -## Example Usage - -```typescript -import { TeleporterSourceTransaction } from "@avalanche-sdk/data/models/components"; - -let value: TeleporterSourceTransaction = { - txHash: "", - timestamp: 1697.04, - gasSpent: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `txHash` | *string* | :heavy_check_mark: | N/A | -| `timestamp` | *number* | :heavy_check_mark: | N/A | -| `gasSpent` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/timeintervalgranularityextended.md b/data/docs/models/components/timeintervalgranularityextended.md deleted file mode 100644 index 6e094c89..00000000 --- a/data/docs/models/components/timeintervalgranularityextended.md +++ /dev/null @@ -1,15 +0,0 @@ -# TimeIntervalGranularityExtended - -## Example Usage - -```typescript -import { TimeIntervalGranularityExtended } from "@avalanche-sdk/data/models/components"; - -let value: TimeIntervalGranularityExtended = "daily"; -``` - -## Values - -```typescript -"minute" | "hourly" | "daily" | "weekly" | "monthly" -``` \ No newline at end of file diff --git a/data/docs/models/components/token.md b/data/docs/models/components/token.md deleted file mode 100644 index f7db1bdd..00000000 --- a/data/docs/models/components/token.md +++ /dev/null @@ -1,36 +0,0 @@ -# Token - - -## Supported Types - -### `components.Erc721Token` - -```typescript -const value: components.Erc721Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://whopping-role.name/", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -### `components.Erc1155Token` - -```typescript -const value: components.Erc1155Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://babyish-adult.name", - metadata: { - indexStatus: "INVALID_METADATA", - }, -}; -``` - diff --git a/data/docs/models/components/tokenreputation.md b/data/docs/models/components/tokenreputation.md deleted file mode 100644 index 7b224120..00000000 --- a/data/docs/models/components/tokenreputation.md +++ /dev/null @@ -1,17 +0,0 @@ -# TokenReputation - -Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. - -## Example Usage - -```typescript -import { TokenReputation } from "@avalanche-sdk/data/models/components"; - -let value: TokenReputation = "Malicious"; -``` - -## Values - -```typescript -"Malicious" | "Benign" -``` \ No newline at end of file diff --git a/data/docs/models/components/transactiondetails.md b/data/docs/models/components/transactiondetails.md deleted file mode 100644 index 424829a1..00000000 --- a/data/docs/models/components/transactiondetails.md +++ /dev/null @@ -1,182 +0,0 @@ -# TransactionDetails - -## Example Usage - -```typescript -import { TransactionDetails } from "@avalanche-sdk/data/models/components"; - -let value: TransactionDetails = { - nativeTransaction: { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - chainId: "43114", - blockIndex: 0, - txHash: - "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - txStatus: "1", - txType: 1, - gasLimit: "51373", - gasUsed: "51373", - gasPrice: "470000000000", - nonce: "1", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - method: { - callType: "CONTRACT_CREATION", - methodHash: "0xa9059cbb", - methodName: "transfer(address,uint256)", - }, - value: "10000000000000000000", - }, - erc20Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2571.83, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, - }, - ], - erc721Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4155.08, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - }, - ], - erc1155Transfers: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 2068.05, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, - }, - ], - internalTransactions: [ - { - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - internalTxType: "DELEGATECALL", - value: "10000000000000000000", - isReverted: true, - gasUsed: "", - gasLimit: "", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `nativeTransaction` | [components.NativeTransaction](../../models/components/nativetransaction.md) | :heavy_check_mark: | The native (top-level) transaction details. | -| `erc20Transfers` | [components.Erc20TransferDetails](../../models/components/erc20transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-20 transfers. | -| `erc721Transfers` | [components.Erc721TransferDetails](../../models/components/erc721transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-721 transfers. | -| `erc1155Transfers` | [components.Erc1155TransferDetails](../../models/components/erc1155transferdetails.md)[] | :heavy_minus_sign: | The list of ERC-1155 transfers. | -| `internalTransactions` | [components.InternalTransactionDetails](../../models/components/internaltransactiondetails.md)[] | :heavy_minus_sign: | The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction. | \ No newline at end of file diff --git a/data/docs/models/components/transactiondirectiontype.md b/data/docs/models/components/transactiondirectiontype.md deleted file mode 100644 index 5eae5261..00000000 --- a/data/docs/models/components/transactiondirectiontype.md +++ /dev/null @@ -1,15 +0,0 @@ -# TransactionDirectionType - -## Example Usage - -```typescript -import { TransactionDirectionType } from "@avalanche-sdk/data/models/components"; - -let value: TransactionDirectionType = "SOURCE_TRANSACTION"; -``` - -## Values - -```typescript -"SOURCE_TRANSACTION" | "DESTINATION_TRANSACTION" -``` \ No newline at end of file diff --git a/data/docs/models/components/transactionexportmetadata.md b/data/docs/models/components/transactionexportmetadata.md deleted file mode 100644 index 01bc837a..00000000 --- a/data/docs/models/components/transactionexportmetadata.md +++ /dev/null @@ -1,17 +0,0 @@ -# TransactionExportMetadata - -## Example Usage - -```typescript -import { TransactionExportMetadata } from "@avalanche-sdk/data/models/components"; - -let value: TransactionExportMetadata = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `code` | [components.OperationStatusCode](../../models/components/operationstatuscode.md) | :heavy_minus_sign: | N/A | -| `downloadUrl` | *string* | :heavy_minus_sign: | File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations. | -| `nextDate` | *string* | :heavy_minus_sign: | The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'. | \ No newline at end of file diff --git a/data/docs/models/components/transactionmethodtype.md b/data/docs/models/components/transactionmethodtype.md deleted file mode 100644 index ada36496..00000000 --- a/data/docs/models/components/transactionmethodtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# TransactionMethodType - -The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation. - -## Example Usage - -```typescript -import { TransactionMethodType } from "@avalanche-sdk/data/models/components"; - -let value: TransactionMethodType = "NATIVE_TRANSFER"; -``` - -## Values - -```typescript -"NATIVE_TRANSFER" | "CONTRACT_CALL" | "CONTRACT_CREATION" -``` \ No newline at end of file diff --git a/data/docs/models/components/transactionstatus.md b/data/docs/models/components/transactionstatus.md deleted file mode 100644 index 7ef6dc61..00000000 --- a/data/docs/models/components/transactionstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# TransactionStatus - -## Example Usage - -```typescript -import { TransactionStatus } from "@avalanche-sdk/data/models/components"; - -let value: TransactionStatus = "success"; -``` - -## Values - -```typescript -"failed" | "success" -``` \ No newline at end of file diff --git a/data/docs/models/components/transactionvertexdetail.md b/data/docs/models/components/transactionvertexdetail.md deleted file mode 100644 index fae3ec1c..00000000 --- a/data/docs/models/components/transactionvertexdetail.md +++ /dev/null @@ -1,21 +0,0 @@ -# TransactionVertexDetail - -## Example Usage - -```typescript -import { TransactionVertexDetail } from "@avalanche-sdk/data/models/components"; - -let value: TransactionVertexDetail = { - hash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", - height: 1961, - timestamp: 1600762738, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `hash` | *string* | :heavy_check_mark: | Vertex ID of the vertex this transaction belongs to. | 82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S | -| `height` | *number* | :heavy_check_mark: | Vertex height of the vertex this transaction belongs to. | 1961 | -| `timestamp` | *number* | :heavy_check_mark: | Timestamp in seconds this vertex was accepted. | 1600762738 | \ No newline at end of file diff --git a/data/docs/models/components/transfer.md b/data/docs/models/components/transfer.md deleted file mode 100644 index d49661dd..00000000 --- a/data/docs/models/components/transfer.md +++ /dev/null @@ -1,128 +0,0 @@ -# Transfer - - -## Supported Types - -### `components.Erc20Transfer` - -```typescript -const value: components.Erc20Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4639.57, - value: "10000000000000000000", - erc20Token: { - 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, - }, - }, -}; -``` - -### `components.Erc721Transfer` - -```typescript -const value: components.Erc721Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 148.11, - erc721Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://elliptical-programme.info", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, -}; -``` - -### `components.Erc1155Transfer` - -```typescript -const value: components.Erc1155Transfer = { - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txHash: "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4", - from: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - to: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }, - logIndex: 4248.38, - value: "10000000000000000000", - erc1155Token: { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://worse-sonata.org/", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, -}; -``` - diff --git a/data/docs/models/components/unknowncontract.md b/data/docs/models/components/unknowncontract.md deleted file mode 100644 index 459fe580..00000000 --- a/data/docs/models/components/unknowncontract.md +++ /dev/null @@ -1,30 +0,0 @@ -# UnknownContract - -## Example Usage - -```typescript -import { UnknownContract } from "@avalanche-sdk/data/models/components"; - -let value: UnknownContract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "UNKNOWN", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | The contract name. | Wrapped AVAX | -| `description` | *string* | :heavy_minus_sign: | N/A | | -| `officialSite` | *string* | :heavy_minus_sign: | N/A | | -| `email` | *string* | :heavy_minus_sign: | N/A | | -| `logoAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `bannerAsset` | [components.ImageAsset](../../models/components/imageasset.md) | :heavy_minus_sign: | N/A | | -| `color` | *string* | :heavy_minus_sign: | N/A | | -| `resourceLinks` | [components.ResourceLink](../../models/components/resourcelink.md)[] | :heavy_minus_sign: | N/A | | -| `tags` | *string*[] | :heavy_minus_sign: | N/A | | -| `address` | *string* | :heavy_check_mark: | A wallet or contract address in mixed-case checksum encoding. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `deploymentDetails` | [components.ContractDeploymentDetails](../../models/components/contractdeploymentdetails.md) | :heavy_minus_sign: | N/A | | -| `ercType` | [components.UnknownContractErcType](../../models/components/unknowncontracterctype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/unknowncontracterctype.md b/data/docs/models/components/unknowncontracterctype.md deleted file mode 100644 index 58b67743..00000000 --- a/data/docs/models/components/unknowncontracterctype.md +++ /dev/null @@ -1,15 +0,0 @@ -# UnknownContractErcType - -## Example Usage - -```typescript -import { UnknownContractErcType } from "@avalanche-sdk/data/models/components"; - -let value: UnknownContractErcType = "UNKNOWN"; -``` - -## Values - -```typescript -"UNKNOWN" -``` \ No newline at end of file diff --git a/data/docs/models/components/usagemetricsgroupbyenum.md b/data/docs/models/components/usagemetricsgroupbyenum.md deleted file mode 100644 index 7562b43f..00000000 --- a/data/docs/models/components/usagemetricsgroupbyenum.md +++ /dev/null @@ -1,15 +0,0 @@ -# UsageMetricsGroupByEnum - -## Example Usage - -```typescript -import { UsageMetricsGroupByEnum } from "@avalanche-sdk/data/models/components"; - -let value: UsageMetricsGroupByEnum = "requestPath"; -``` - -## Values - -```typescript -"requestPath" | "responseCode" | "chainId" | "apiKeyId" | "requestType" -``` \ No newline at end of file diff --git a/data/docs/models/components/usagemetricsresponsedto.md b/data/docs/models/components/usagemetricsresponsedto.md deleted file mode 100644 index a08b7b08..00000000 --- a/data/docs/models/components/usagemetricsresponsedto.md +++ /dev/null @@ -1,37 +0,0 @@ -# UsageMetricsResponseDTO - -## Example Usage - -```typescript -import { UsageMetricsResponseDTO } from "@avalanche-sdk/data/models/components"; - -let value: UsageMetricsResponseDTO = { - aggregateDuration: "", - orgId: "", - metrics: [ - { - timestamp: 3713.32, - values: [ - { - groupedBy: "None", - totalRequests: 8311.07, - requestsPerSecond: 1144.51, - successRatePercent: 4238.17, - medianResponseTimeMsecs: 1690.43, - invalidRequests: 4387.18, - apiCreditsUsed: 5704.86, - apiCreditsWasted: 7901.21, - }, - ], - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `aggregateDuration` | *string* | :heavy_check_mark: | Duration in which the metrics value is aggregated | -| `orgId` | *string* | :heavy_check_mark: | Org ID for which the metrics are aggregated | -| `metrics` | [components.Metric](../../models/components/metric.md)[] | :heavy_check_mark: | Metrics values | \ No newline at end of file diff --git a/data/docs/models/components/usagemetricsvaluedto.md b/data/docs/models/components/usagemetricsvaluedto.md deleted file mode 100644 index 29c68cbb..00000000 --- a/data/docs/models/components/usagemetricsvaluedto.md +++ /dev/null @@ -1,32 +0,0 @@ -# UsageMetricsValueDTO - -## Example Usage - -```typescript -import { UsageMetricsValueDTO } from "@avalanche-sdk/data/models/components"; - -let value: UsageMetricsValueDTO = { - groupedBy: "responseCode", - totalRequests: 2554.96, - requestsPerSecond: 1717.24, - successRatePercent: 1638.92, - medianResponseTimeMsecs: 1696.97, - invalidRequests: 7852.47, - apiCreditsUsed: 3204.65, - apiCreditsWasted: 2630.57, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `groupedBy` | [components.UsageMetricsValueDTOGroupedBy](../../models/components/usagemetricsvaluedtogroupedby.md) | :heavy_check_mark: | Column name used for data aggregation | -| `groupValue` | *components.UsageMetricsValueDTOGroupValue* | :heavy_minus_sign: | The value of the column used for data aggregation | -| `totalRequests` | *number* | :heavy_check_mark: | The total number of requests | -| `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 | -| `apiCreditsUsed` | *number* | :heavy_check_mark: | The number of API credits used | -| `apiCreditsWasted` | *number* | :heavy_check_mark: | The number of API credits wasted on invalid requests | \ No newline at end of file diff --git a/data/docs/models/components/usagemetricsvaluedtogroupedby.md b/data/docs/models/components/usagemetricsvaluedtogroupedby.md deleted file mode 100644 index 0f5f139a..00000000 --- a/data/docs/models/components/usagemetricsvaluedtogroupedby.md +++ /dev/null @@ -1,17 +0,0 @@ -# UsageMetricsValueDTOGroupedBy - -Column name used for data aggregation - -## Example Usage - -```typescript -import { UsageMetricsValueDTOGroupedBy } from "@avalanche-sdk/data/models/components"; - -let value: UsageMetricsValueDTOGroupedBy = "responseCode"; -``` - -## Values - -```typescript -"requestPath" | "responseCode" | "chainId" | "apiKeyId" | "requestType" | "None" -``` \ No newline at end of file diff --git a/data/docs/models/components/usagemetricsvaluedtogroupvalue.md b/data/docs/models/components/usagemetricsvaluedtogroupvalue.md deleted file mode 100644 index 3389bc7e..00000000 --- a/data/docs/models/components/usagemetricsvaluedtogroupvalue.md +++ /dev/null @@ -1,19 +0,0 @@ -# UsageMetricsValueDTOGroupValue - -The value of the column used for data aggregation - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `number` - -```typescript -const value: number = 1284.03; -``` - diff --git a/data/docs/models/components/utilityaddresses.md b/data/docs/models/components/utilityaddresses.md deleted file mode 100644 index 887040f9..00000000 --- a/data/docs/models/components/utilityaddresses.md +++ /dev/null @@ -1,15 +0,0 @@ -# UtilityAddresses - -## Example Usage - -```typescript -import { UtilityAddresses } from "@avalanche-sdk/data/models/components"; - -let value: UtilityAddresses = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `multicall` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/utxo.md b/data/docs/models/components/utxo.md deleted file mode 100644 index 502d0a35..00000000 --- a/data/docs/models/components/utxo.md +++ /dev/null @@ -1,60 +0,0 @@ -# Utxo - -## Example Usage - -```typescript -import { Utxo } from "@avalanche-sdk/data/models/components"; - -let value: Utxo = { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `addresses` | *string*[] | :heavy_check_mark: | Addresses that are eligible to sign the consumption of this output. | [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
] | -| `asset` | [components.AssetAmount](../../models/components/assetamount.md) | :heavy_check_mark: | N/A | | -| `consumedOnChainId` | *string* | :heavy_check_mark: | Blockchain ID on which this output is consumed on. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `consumingTxHash` | *string* | :heavy_minus_sign: | Transaction ID that consumed this output. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `createdOnChainId` | *string* | :heavy_check_mark: | Blockchain ID on which this output is created on. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `utxoId` | *string* | :heavy_check_mark: | UTXO ID for this output. | 68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC | -| `consumingTxTimestamp` | *number* | :heavy_minus_sign: | Unix timestamp in seconds at which this output was consumed. | 1599696000 | -| `creationTxHash` | *string* | :heavy_check_mark: | Transaction ID that created this output. | FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z | -| `credentials` | [components.UtxoCredential](../../models/components/utxocredential.md)[] | :heavy_minus_sign: | Credentials that signed the transaction to consume this utxo | | -| `groupId` | *number* | :heavy_minus_sign: | Index representing the minting set for the NFT mint output. | | -| `locktime` | *number* | :heavy_check_mark: | Locktime in seconds after which this output can be consumed. | 0 | -| `outputIndex` | *string* | :heavy_check_mark: | Postion of this output in a list of lexiographically sorted outputs of a transaction. | 38 | -| `payload` | *string* | :heavy_minus_sign: | Hex encoded data for NFT assets. | | -| `threshold` | *number* | :heavy_check_mark: | Minimum number of signatures required to consume this output. | 1 | -| `timestamp` | *number* | :heavy_check_mark: | Unix timestamp in seconds at which this outptut was created. | 1599696000 | -| `utxoType` | *string* | :heavy_check_mark: | Type of output. | mint | \ No newline at end of file diff --git a/data/docs/models/components/utxocredential.md b/data/docs/models/components/utxocredential.md deleted file mode 100644 index 53ff3638..00000000 --- a/data/docs/models/components/utxocredential.md +++ /dev/null @@ -1,20 +0,0 @@ -# UtxoCredential - -## Example Usage - -```typescript -import { UtxoCredential } from "@avalanche-sdk/data/models/components"; - -let value: UtxoCredential = { - signature: - "bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA", - publicKey: "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `signature` | *string* | :heavy_minus_sign: | Signature provided to consume the output. | bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA | -| `publicKey` | *string* | :heavy_minus_sign: | Public key associated with the signature. | AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI | \ No newline at end of file diff --git a/data/docs/models/components/utxotype.md b/data/docs/models/components/utxotype.md deleted file mode 100644 index e715a492..00000000 --- a/data/docs/models/components/utxotype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UtxoType - -Indicates whether the UTXO is staked or transferable - -## Example Usage - -```typescript -import { UtxoType } from "@avalanche-sdk/data/models/components"; - -let value: UtxoType = "TRANSFER"; -``` - -## Values - -```typescript -"STAKE" | "TRANSFER" -``` \ No newline at end of file diff --git a/data/docs/models/components/validationstatustype.md b/data/docs/models/components/validationstatustype.md deleted file mode 100644 index 9f134b0e..00000000 --- a/data/docs/models/components/validationstatustype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ValidationStatusType - -## Example Usage - -```typescript -import { ValidationStatusType } from "@avalanche-sdk/data/models/components"; - -let value: ValidationStatusType = "completed"; -``` - -## Values - -```typescript -"completed" | "active" | "pending" | "removed" -``` \ No newline at end of file diff --git a/data/docs/models/components/validator.md b/data/docs/models/components/validator.md deleted file mode 100644 index 554224df..00000000 --- a/data/docs/models/components/validator.md +++ /dev/null @@ -1,82 +0,0 @@ -# Validator - - -## Supported Types - -### `components.ActiveValidatorDetails` - -```typescript -const value: components.ActiveValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 9332.67, - endTimestamp: 6572.88, - stakePercentage: 6001.77, - delegatorCount: 5325.15, - uptimePerformance: 1851.65, - potentialRewards: { - validationRewardAmount: "", - delegationRewardAmount: "", - }, - validationStatus: "active", - validatorHealth: { - reachabilityPercent: 566.69, - benchedPChainRequestsPercent: 5374.7, - benchedXChainRequestsPercent: 3074.95, - benchedCChainRequestsPercent: 4408.25, - }, - geolocation: null, -}; -``` - -### `components.CompletedValidatorDetails` - -```typescript -const value: components.CompletedValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 5378.27, - endTimestamp: 6683.55, - delegatorCount: 7443.98, - rewards: { - validationRewardAmount: "", - delegationRewardAmount: "", - }, - validationStatus: "completed", -}; -``` - -### `components.RemovedValidatorDetails` - -```typescript -const value: components.RemovedValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 1722.34, - endTimestamp: 1657.27, - removeTxHash: "", - removeTimestamp: 3786.23, - validationStatus: "removed", -}; -``` - -### `components.PendingValidatorDetails` - -```typescript -const value: components.PendingValidatorDetails = { - txHash: "", - nodeId: "", - subnetId: "", - amountStaked: "", - startTimestamp: 9843.29, - endTimestamp: 5112.58, - validationStatus: "pending", -}; -``` - diff --git a/data/docs/models/components/validatorhealthdetails.md b/data/docs/models/components/validatorhealthdetails.md deleted file mode 100644 index 26b59f8a..00000000 --- a/data/docs/models/components/validatorhealthdetails.md +++ /dev/null @@ -1,23 +0,0 @@ -# ValidatorHealthDetails - -## Example Usage - -```typescript -import { ValidatorHealthDetails } from "@avalanche-sdk/data/models/components"; - -let value: ValidatorHealthDetails = { - reachabilityPercent: 2996.22, - benchedPChainRequestsPercent: 9253.34, - benchedXChainRequestsPercent: 7666.18, - benchedCChainRequestsPercent: 8034.32, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `reachabilityPercent` | *number* | :heavy_check_mark: | Percent of requests responded to in last polling. | -| `benchedPChainRequestsPercent` | *number* | :heavy_check_mark: | Percent of requests benched on the P-Chain in last polling. | -| `benchedXChainRequestsPercent` | *number* | :heavy_check_mark: | Percentage of requests benched on the X-Chain in last polling. | -| `benchedCChainRequestsPercent` | *number* | :heavy_check_mark: | Percentage of requests benched on the C-Chain in last polling. | \ No newline at end of file diff --git a/data/docs/models/components/validatorsdetails.md b/data/docs/models/components/validatorsdetails.md deleted file mode 100644 index f5476552..00000000 --- a/data/docs/models/components/validatorsdetails.md +++ /dev/null @@ -1,31 +0,0 @@ -# ValidatorsDetails - -## Example Usage - -```typescript -import { ValidatorsDetails } from "@avalanche-sdk/data/models/components"; - -let value: ValidatorsDetails = { - validatorCount: 4440.38, - totalAmountStaked: "", - estimatedAnnualStakingReward: "", - stakingDistributionByVersion: [ - { - version: "", - amountStaked: "", - validatorCount: 7680.04, - }, - ], - stakingRatio: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `validatorCount` | *number* | :heavy_check_mark: | N/A | -| `totalAmountStaked` | *string* | :heavy_check_mark: | N/A | -| `estimatedAnnualStakingReward` | *string* | :heavy_check_mark: | Total potential rewards from currently active validations and delegations. | -| `stakingDistributionByVersion` | [components.StakingDistribution](../../models/components/stakingdistribution.md)[] | :heavy_check_mark: | N/A | -| `stakingRatio` | *string* | :heavy_check_mark: | Ratio of total active stake amount to the current supply. | \ No newline at end of file diff --git a/data/docs/models/components/vmname.md b/data/docs/models/components/vmname.md deleted file mode 100644 index 2f7e3b73..00000000 --- a/data/docs/models/components/vmname.md +++ /dev/null @@ -1,15 +0,0 @@ -# VmName - -## Example Usage - -```typescript -import { VmName } from "@avalanche-sdk/data/models/components"; - -let value: VmName = "EVM"; -``` - -## Values - -```typescript -"EVM" | "BITCOIN" | "ETHEREUM" -``` \ No newline at end of file diff --git a/data/docs/models/components/xchainassetdetails.md b/data/docs/models/components/xchainassetdetails.md deleted file mode 100644 index 03bb7ceb..00000000 --- a/data/docs/models/components/xchainassetdetails.md +++ /dev/null @@ -1,29 +0,0 @@ -# XChainAssetDetails - -## Example Usage - -```typescript -import { XChainAssetDetails } from "@avalanche-sdk/data/models/components"; - -let value: XChainAssetDetails = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `createdAtTimestamp` | *number* | :heavy_check_mark: | Timestamp in seconds this asset was created on. | 1675444720 | -| `cap` | [components.PrimaryNetworkAssetCap](../../models/components/primarynetworkassetcap.md) | :heavy_check_mark: | Cap represents if an asset is a variable or fixed cap asset. | | \ No newline at end of file diff --git a/data/docs/models/components/xchainbalances.md b/data/docs/models/components/xchainbalances.md deleted file mode 100644 index d83cecd0..00000000 --- a/data/docs/models/components/xchainbalances.md +++ /dev/null @@ -1,45 +0,0 @@ -# XChainBalances - -## Example Usage - -```typescript -import { XChainBalances } from "@avalanche-sdk/data/models/components"; - -let value: XChainBalances = { - locked: [], - unlocked: [], - atomicMemoryUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - atomicMemoryLocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `locked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing X-chain Asset balance information. | -| `unlocked` | [components.AggregatedAssetAmount](../../models/components/aggregatedassetamount.md)[] | :heavy_check_mark: | A list of objects containing X-chain Asset balance information. | -| `atomicMemoryUnlocked` | [components.XChainSharedAssetBalance](../../models/components/xchainsharedassetbalance.md)[] | :heavy_check_mark: | N/A | -| `atomicMemoryLocked` | [components.XChainSharedAssetBalance](../../models/components/xchainsharedassetbalance.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/components/xchainid.md b/data/docs/models/components/xchainid.md deleted file mode 100644 index 67bba3de..00000000 --- a/data/docs/models/components/xchainid.md +++ /dev/null @@ -1,15 +0,0 @@ -# XChainId - -## Example Usage - -```typescript -import { XChainId } from "@avalanche-sdk/data/models/components"; - -let value: XChainId = "x-chain"; -``` - -## Values - -```typescript -"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "x-chain" -``` \ No newline at end of file diff --git a/data/docs/models/components/xchainlineartransaction.md b/data/docs/models/components/xchainlineartransaction.md deleted file mode 100644 index 51c18d20..00000000 --- a/data/docs/models/components/xchainlineartransaction.md +++ /dev/null @@ -1,124 +0,0 @@ -# XChainLinearTransaction - -## Example Usage - -```typescript -import { XChainLinearTransaction } from "@avalanche-sdk/data/models/components"; - -let value: XChainLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "CreateAssetTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - emittedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - blockHeight: 1005, - blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | Unique ID for this transaction. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `chainFormat` | [components.XChainLinearTransactionChainFormat](../../models/components/xchainlineartransactionchainformat.md) | :heavy_check_mark: | Represents chain format this transaction is included in. | non-linear | -| `timestamp` | *number* | :heavy_check_mark: | Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices. | 1600762738 | -| `txType` | [components.XChainTransactionType](../../models/components/xchaintransactiontype.md) | :heavy_check_mark: | Type of transaction. | | -| `memo` | *string* | :heavy_check_mark: | Hex encoded memo bytes for this transaction. | 0x546865204176616c616e6368652050726f6a656374 | -| `consumedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | -| `emittedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | -| `amountUnlocked` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets unlocked by inputs of this transaction. | | -| `amountCreated` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets created by outputs of this transaction. | | -| `sourceChain` | *string* | :heavy_minus_sign: | Source chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `destinationChain` | *string* | :heavy_minus_sign: | Destination chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `assetCreated` | [components.XChainAssetDetails](../../models/components/xchainassetdetails.md) | :heavy_minus_sign: | AssetAmount details of the asset created in CreateAssetTx | | -| `blockHeight` | *number* | :heavy_check_mark: | Height of the block this transaction belongs to. | 1005 | -| `blockHash` | *string* | :heavy_check_mark: | Hash of the block this transaction belongs to. | 82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S | \ No newline at end of file diff --git a/data/docs/models/components/xchainlineartransactionchainformat.md b/data/docs/models/components/xchainlineartransactionchainformat.md deleted file mode 100644 index b2c23c23..00000000 --- a/data/docs/models/components/xchainlineartransactionchainformat.md +++ /dev/null @@ -1,17 +0,0 @@ -# XChainLinearTransactionChainFormat - -Represents chain format this transaction is included in. - -## Example Usage - -```typescript -import { XChainLinearTransactionChainFormat } from "@avalanche-sdk/data/models/components"; - -let value: XChainLinearTransactionChainFormat = "non-linear"; -``` - -## Values - -```typescript -"non-linear" | "linear" -``` \ No newline at end of file diff --git a/data/docs/models/components/xchainnonlineartransaction.md b/data/docs/models/components/xchainnonlineartransaction.md deleted file mode 100644 index d17af32e..00000000 --- a/data/docs/models/components/xchainnonlineartransaction.md +++ /dev/null @@ -1,67 +0,0 @@ -# XChainNonLinearTransaction - -## Example Usage - -```typescript -import { XChainNonLinearTransaction } from "@avalanche-sdk/data/models/components"; - -let value: XChainNonLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "ExportTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [], - emittedUtxos: [], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - vertices: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `txHash` | *string* | :heavy_check_mark: | Unique ID for this transaction. | 3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c | -| `chainFormat` | [components.XChainNonLinearTransactionChainFormat](../../models/components/xchainnonlineartransactionchainformat.md) | :heavy_check_mark: | Represents chain format this transaction is included in. | non-linear | -| `timestamp` | *number* | :heavy_check_mark: | Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices. | 1600762738 | -| `txType` | [components.XChainTransactionType](../../models/components/xchaintransactiontype.md) | :heavy_check_mark: | Type of transaction. | | -| `memo` | *string* | :heavy_check_mark: | Hex encoded memo bytes for this transaction. | 0x546865204176616c616e6368652050726f6a656374 | -| `consumedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | -| `emittedUtxos` | [components.Utxo](../../models/components/utxo.md)[] | :heavy_check_mark: | N/A | | -| `amountUnlocked` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets unlocked by inputs of this transaction. | | -| `amountCreated` | [components.AssetAmount](../../models/components/assetamount.md)[] | :heavy_check_mark: | Assets created by outputs of this transaction. | | -| `sourceChain` | *string* | :heavy_minus_sign: | Source chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `destinationChain` | *string* | :heavy_minus_sign: | Destination chain for an atomic transaction. | 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM | -| `assetCreated` | [components.XChainAssetDetails](../../models/components/xchainassetdetails.md) | :heavy_minus_sign: | AssetAmount details of the asset created in CreateAssetTx | | -| `vertices` | [components.TransactionVertexDetail](../../models/components/transactionvertexdetail.md)[] | :heavy_check_mark: | A transaction on X-Chain can be accepted over multiple vertices. | | \ No newline at end of file diff --git a/data/docs/models/components/xchainnonlineartransactionchainformat.md b/data/docs/models/components/xchainnonlineartransactionchainformat.md deleted file mode 100644 index c80c89c2..00000000 --- a/data/docs/models/components/xchainnonlineartransactionchainformat.md +++ /dev/null @@ -1,17 +0,0 @@ -# XChainNonLinearTransactionChainFormat - -Represents chain format this transaction is included in. - -## Example Usage - -```typescript -import { XChainNonLinearTransactionChainFormat } from "@avalanche-sdk/data/models/components"; - -let value: XChainNonLinearTransactionChainFormat = "non-linear"; -``` - -## Values - -```typescript -"non-linear" | "linear" -``` \ No newline at end of file diff --git a/data/docs/models/components/xchainsharedassetbalance.md b/data/docs/models/components/xchainsharedassetbalance.md deleted file mode 100644 index cc05b14b..00000000 --- a/data/docs/models/components/xchainsharedassetbalance.md +++ /dev/null @@ -1,31 +0,0 @@ -# XChainSharedAssetBalance - -## Example Usage - -```typescript -import { XChainSharedAssetBalance } from "@avalanche-sdk/data/models/components"; - -let value: XChainSharedAssetBalance = { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `assetId` | *string* | :heavy_check_mark: | Unique ID for an asset. | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | -| `name` | *string* | :heavy_check_mark: | Name of this asset. | Avalanche | -| `symbol` | *string* | :heavy_check_mark: | Symbol for this asset (max 4 characters). | AVAX | -| `denomination` | *number* | :heavy_check_mark: | Denomination of this asset to represent fungibility. | 9 | -| `type` | [components.PrimaryNetworkAssetType](../../models/components/primarynetworkassettype.md) | :heavy_check_mark: | Type of asset like SECP256K1 or NFT. | | -| `amount` | *string* | :heavy_check_mark: | Amount of the asset. | 5001000 | -| `utxoCount` | *number* | :heavy_check_mark: | N/A | 1 | -| `sharedWithChainId` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/components/xchaintransactiontype.md b/data/docs/models/components/xchaintransactiontype.md deleted file mode 100644 index 479ff940..00000000 --- a/data/docs/models/components/xchaintransactiontype.md +++ /dev/null @@ -1,17 +0,0 @@ -# XChainTransactionType - -Type of transaction. - -## Example Usage - -```typescript -import { XChainTransactionType } from "@avalanche-sdk/data/models/components"; - -let value: XChainTransactionType = "ImportTx"; -``` - -## Values - -```typescript -"BaseTx" | "CreateAssetTx" | "OperationTx" | "ImportTx" | "ExportTx" | "UNKNOWN" -``` \ No newline at end of file diff --git a/data/docs/models/components/xchainvertex.md b/data/docs/models/components/xchainvertex.md deleted file mode 100644 index d4d42663..00000000 --- a/data/docs/models/components/xchainvertex.md +++ /dev/null @@ -1,35 +0,0 @@ -# XChainVertex - -## Example Usage - -```typescript -import { XChainVertex } from "@avalanche-sdk/data/models/components"; - -let value: XChainVertex = { - vertexHash: "", - parentHashes: [ - "", - ], - vertexHeight: 5902.46, - vertexIndex: 8444.73, - vertexTimestamp: 489.21, - txCount: 3285.61, - transactions: [ - "", - ], - vertexSizeBytes: 1754.76, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `vertexHash` | *string* | :heavy_check_mark: | N/A | -| `parentHashes` | *string*[] | :heavy_check_mark: | N/A | -| `vertexHeight` | *number* | :heavy_check_mark: | N/A | -| `vertexIndex` | *number* | :heavy_check_mark: | N/A | -| `vertexTimestamp` | *number* | :heavy_check_mark: | N/A | -| `txCount` | *number* | :heavy_check_mark: | N/A | -| `transactions` | *string*[] | :heavy_check_mark: | N/A | -| `vertexSizeBytes` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/errors/badgatewayerror.md b/data/docs/models/errors/badgatewayerror.md deleted file mode 100644 index 3217d596..00000000 --- a/data/docs/models/errors/badgatewayerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadGatewayError - -## Example Usage - -```typescript -import { BadGatewayError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadGatewayMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 502 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Gateway | \ No newline at end of file diff --git a/data/docs/models/errors/badgatewaymessage.md b/data/docs/models/errors/badgatewaymessage.md deleted file mode 100644 index 0d48b33e..00000000 --- a/data/docs/models/errors/badgatewaymessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadGatewayMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/badrequesterror.md b/data/docs/models/errors/badrequesterror.md deleted file mode 100644 index 28d21a40..00000000 --- a/data/docs/models/errors/badrequesterror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadRequestError - -## Example Usage - -```typescript -import { BadRequestError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadRequestMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 400 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Request | \ No newline at end of file diff --git a/data/docs/models/errors/badrequestmessage.md b/data/docs/models/errors/badrequestmessage.md deleted file mode 100644 index 8d4e5cef..00000000 --- a/data/docs/models/errors/badrequestmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadRequestMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/forbiddenerror.md b/data/docs/models/errors/forbiddenerror.md deleted file mode 100644 index 596ce518..00000000 --- a/data/docs/models/errors/forbiddenerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ForbiddenError - -## Example Usage - -```typescript -import { ForbiddenError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ForbiddenMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 403 | -| `error` | *string* | :heavy_check_mark: | The type of error | Forbidden | \ No newline at end of file diff --git a/data/docs/models/errors/forbiddenmessage.md b/data/docs/models/errors/forbiddenmessage.md deleted file mode 100644 index ca64f097..00000000 --- a/data/docs/models/errors/forbiddenmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ForbiddenMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/internalservererror.md b/data/docs/models/errors/internalservererror.md deleted file mode 100644 index 10b81b17..00000000 --- a/data/docs/models/errors/internalservererror.md +++ /dev/null @@ -1,17 +0,0 @@ -# InternalServerError - -## Example Usage - -```typescript -import { InternalServerError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.InternalServerErrorMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 500 | -| `error` | *string* | :heavy_check_mark: | The type of error | Internal Server Error | \ No newline at end of file diff --git a/data/docs/models/errors/internalservererrormessage.md b/data/docs/models/errors/internalservererrormessage.md deleted file mode 100644 index f27ce805..00000000 --- a/data/docs/models/errors/internalservererrormessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# InternalServerErrorMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/notfounderror.md b/data/docs/models/errors/notfounderror.md deleted file mode 100644 index ff936618..00000000 --- a/data/docs/models/errors/notfounderror.md +++ /dev/null @@ -1,17 +0,0 @@ -# NotFoundError - -## Example Usage - -```typescript -import { NotFoundError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.NotFoundMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 404 | -| `error` | *string* | :heavy_check_mark: | The type of error | Not Found | \ No newline at end of file diff --git a/data/docs/models/errors/notfoundmessage.md b/data/docs/models/errors/notfoundmessage.md deleted file mode 100644 index dda6ca1d..00000000 --- a/data/docs/models/errors/notfoundmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# NotFoundMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/serviceunavailableerror.md b/data/docs/models/errors/serviceunavailableerror.md deleted file mode 100644 index 2c33cc63..00000000 --- a/data/docs/models/errors/serviceunavailableerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ServiceUnavailableError - -## Example Usage - -```typescript -import { ServiceUnavailableError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ServiceUnavailableMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 503 | -| `error` | *string* | :heavy_check_mark: | The type of error | Service Unavailable | \ No newline at end of file diff --git a/data/docs/models/errors/serviceunavailablemessage.md b/data/docs/models/errors/serviceunavailablemessage.md deleted file mode 100644 index 10c05c8f..00000000 --- a/data/docs/models/errors/serviceunavailablemessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ServiceUnavailableMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/toomanyrequestserror.md b/data/docs/models/errors/toomanyrequestserror.md deleted file mode 100644 index eed08755..00000000 --- a/data/docs/models/errors/toomanyrequestserror.md +++ /dev/null @@ -1,17 +0,0 @@ -# TooManyRequestsError - -## Example Usage - -```typescript -import { TooManyRequestsError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.TooManyRequestsMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 429 | -| `error` | *string* | :heavy_check_mark: | The type of error | Too Many Requests | \ No newline at end of file diff --git a/data/docs/models/errors/toomanyrequestsmessage.md b/data/docs/models/errors/toomanyrequestsmessage.md deleted file mode 100644 index 9967ac24..00000000 --- a/data/docs/models/errors/toomanyrequestsmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# TooManyRequestsMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/errors/unauthorizederror.md b/data/docs/models/errors/unauthorizederror.md deleted file mode 100644 index 1ace25b3..00000000 --- a/data/docs/models/errors/unauthorizederror.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnauthorizedError - -## Example Usage - -```typescript -import { UnauthorizedError } from "@avalanche-sdk/data/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.UnauthorizedMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 401 | -| `error` | *string* | :heavy_check_mark: | The type of error | Unauthorized | \ No newline at end of file diff --git a/data/docs/models/errors/unauthorizedmessage.md b/data/docs/models/errors/unauthorizedmessage.md deleted file mode 100644 index 3df6c725..00000000 --- a/data/docs/models/errors/unauthorizedmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# UnauthorizedMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/data/docs/models/operations/aggregatesignaturesglobals.md b/data/docs/models/operations/aggregatesignaturesglobals.md deleted file mode 100644 index 259761cf..00000000 --- a/data/docs/models/operations/aggregatesignaturesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# AggregateSignaturesGlobals - -## Example Usage - -```typescript -import { AggregateSignaturesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: AggregateSignaturesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/aggregatesignaturesrequest.md b/data/docs/models/operations/aggregatesignaturesrequest.md deleted file mode 100644 index e751d852..00000000 --- a/data/docs/models/operations/aggregatesignaturesrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# AggregateSignaturesRequest - -## Example Usage - -```typescript -import { AggregateSignaturesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: AggregateSignaturesRequest = { - signatureAggregatorRequest: { - message: - "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", - justification: "0001abcdabcfff", - signingSubnetId: "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", - quorumPercentage: 50, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `signatureAggregatorRequest` | [components.SignatureAggregatorRequest](../../models/components/signatureaggregatorrequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/data/docs/models/operations/getaddresschainsrequest.md b/data/docs/models/operations/getaddresschainsrequest.md deleted file mode 100644 index f9371218..00000000 --- a/data/docs/models/operations/getaddresschainsrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAddressChainsRequest - -## Example Usage - -```typescript -import { GetAddressChainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetAddressChainsRequest = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/getaggregatedsignaturesglobals.md b/data/docs/models/operations/getaggregatedsignaturesglobals.md deleted file mode 100644 index c16098ae..00000000 --- a/data/docs/models/operations/getaggregatedsignaturesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAggregatedSignaturesGlobals - -## Example Usage - -```typescript -import { GetAggregatedSignaturesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetAggregatedSignaturesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getaggregatedsignaturesrequest.md b/data/docs/models/operations/getaggregatedsignaturesrequest.md deleted file mode 100644 index 998090a6..00000000 --- a/data/docs/models/operations/getaggregatedsignaturesrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetAggregatedSignaturesRequest - -## Example Usage - -```typescript -import { GetAggregatedSignaturesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetAggregatedSignaturesRequest = { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `txHash` | *string* | :heavy_check_mark: | A primary network (P or X chain) transaction hash. | 3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP | \ No newline at end of file diff --git a/data/docs/models/operations/getapilogsrequest.md b/data/docs/models/operations/getapilogsrequest.md deleted file mode 100644 index 135aa54b..00000000 --- a/data/docs/models/operations/getapilogsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetApiLogsRequest - -## Example Usage - -```typescript -import { GetApiLogsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetApiLogsRequest = { - startTimestamp: 1739507200, - endTimestamp: 1739664000, -}; -``` - -## Fields - -| 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. | 1739507200 | -| `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. | 1739664000 | -| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | -| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | -| `requestType` | [operations.GetApiLogsRequestType](../../models/operations/getapilogsrequesttype.md) | :heavy_minus_sign: | Filter data by request type. | | -| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | -| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | -| `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/data/docs/models/operations/getapilogsrequesttype.md b/data/docs/models/operations/getapilogsrequesttype.md deleted file mode 100644 index b405c1a2..00000000 --- a/data/docs/models/operations/getapilogsrequesttype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetApiLogsRequestType - -Filter data by request type. - -## Example Usage - -```typescript -import { GetApiLogsRequestType } from "@avalanche-sdk/data/models/operations"; - -let value: GetApiLogsRequestType = "data"; -``` - -## Values - -```typescript -"data" | "rpc" -``` \ No newline at end of file diff --git a/data/docs/models/operations/getapilogsresponse.md b/data/docs/models/operations/getapilogsresponse.md deleted file mode 100644 index 22946c36..00000000 --- a/data/docs/models/operations/getapilogsresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetApiLogsResponse - -## Example Usage - -```typescript -import { GetApiLogsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: GetApiLogsResponse = { - result: { - orgId: "", - logs: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `result` | [components.LogsResponseDTO](../../models/components/logsresponsedto.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/getapiusagemetricsrequest.md b/data/docs/models/operations/getapiusagemetricsrequest.md deleted file mode 100644 index 76c00635..00000000 --- a/data/docs/models/operations/getapiusagemetricsrequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# GetApiUsageMetricsRequest - -## Example Usage - -```typescript -import { GetApiUsageMetricsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetApiUsageMetricsRequest = { - startTimestamp: 1739507200, - endTimestamp: 1739664000, - timeInterval: "daily", - groupBy: "requestPath", -}; -``` - -## Fields - -| 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. | 1739507200 | -| `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. | 1739664000 | -| `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. | | -| `responseCode` | *string* | :heavy_minus_sign: | Filter data by response status code. | | -| `requestType` | [operations.GetApiUsageMetricsRequestType](../../models/operations/getapiusagemetricsrequesttype.md) | :heavy_minus_sign: | Filter data by request type. | | -| `apiKeyId` | *string* | :heavy_minus_sign: | Filter data by API key ID. | | -| `requestPath` | *string* | :heavy_minus_sign: | Filter data by request path. | | \ No newline at end of file diff --git a/data/docs/models/operations/getapiusagemetricsrequesttype.md b/data/docs/models/operations/getapiusagemetricsrequesttype.md deleted file mode 100644 index 65135a40..00000000 --- a/data/docs/models/operations/getapiusagemetricsrequesttype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetApiUsageMetricsRequestType - -Filter data by request type. - -## Example Usage - -```typescript -import { GetApiUsageMetricsRequestType } from "@avalanche-sdk/data/models/operations"; - -let value: GetApiUsageMetricsRequestType = "data"; -``` - -## Values - -```typescript -"data" | "rpc" -``` \ No newline at end of file diff --git a/data/docs/models/operations/getassetdetailsglobals.md b/data/docs/models/operations/getassetdetailsglobals.md deleted file mode 100644 index 1881881a..00000000 --- a/data/docs/models/operations/getassetdetailsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAssetDetailsGlobals - -## Example Usage - -```typescript -import { GetAssetDetailsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetAssetDetailsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getassetdetailsrequest.md b/data/docs/models/operations/getassetdetailsrequest.md deleted file mode 100644 index 4bb54184..00000000 --- a/data/docs/models/operations/getassetdetailsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetAssetDetailsRequest - -## Example Usage - -```typescript -import { GetAssetDetailsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetAssetDetailsRequest = { - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `blockchainId` | [components.XChainId](../../models/components/xchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | x-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `assetId` | *string* | :heavy_check_mark: | Asset ID for any asset on X-Chain | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | \ No newline at end of file diff --git a/data/docs/models/operations/getbalancesbyaddressesglobals.md b/data/docs/models/operations/getbalancesbyaddressesglobals.md deleted file mode 100644 index b40e4b89..00000000 --- a/data/docs/models/operations/getbalancesbyaddressesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBalancesByAddressesGlobals - -## Example Usage - -```typescript -import { GetBalancesByAddressesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetBalancesByAddressesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getbalancesbyaddressesrequest.md b/data/docs/models/operations/getbalancesbyaddressesrequest.md deleted file mode 100644 index 72ebc46a..00000000 --- a/data/docs/models/operations/getbalancesbyaddressesrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetBalancesByAddressesRequest - -## Example Usage - -```typescript -import { GetBalancesByAddressesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetBalancesByAddressesRequest = { - blockTimestamp: 1599696000, - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `blockTimestamp` | *number* | :heavy_minus_sign: | An epoch timestamp in seconds. Balance will be calculated at this timestamp. | 1599696000 | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getbalancesbyaddressesresponse.md b/data/docs/models/operations/getbalancesbyaddressesresponse.md deleted file mode 100644 index 6cc91b7d..00000000 --- a/data/docs/models/operations/getbalancesbyaddressesresponse.md +++ /dev/null @@ -1,104 +0,0 @@ -# GetBalancesByAddressesResponse - -Successful response - - -## Supported Types - -### `components.ListPChainBalancesResponse` - -```typescript -const value: components.ListPChainBalancesResponse = { - balances: { - unlockedUnstaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - }, - ], - unlockedStaked: [], - lockedPlatform: [], - lockedStakeable: [], - lockedStaked: [], - pendingStaked: [], - atomicMemoryUnlocked: [], - atomicMemoryLocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - status: "", - }, - ], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -### `components.ListXChainBalancesResponse` - -```typescript -const value: components.ListXChainBalancesResponse = { - balances: { - locked: [], - unlocked: [], - atomicMemoryUnlocked: [], - atomicMemoryLocked: [], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -### `components.ListCChainAtomicBalancesResponse` - -```typescript -const value: components.ListCChainAtomicBalancesResponse = { - balances: { - atomicMemoryUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - atomicMemoryLocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - utxoCount: 1, - sharedWithChainId: "", - }, - ], - }, - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - diff --git a/data/docs/models/operations/getblockbyidglobals.md b/data/docs/models/operations/getblockbyidglobals.md deleted file mode 100644 index 004f0f1a..00000000 --- a/data/docs/models/operations/getblockbyidglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBlockByIdGlobals - -## Example Usage - -```typescript -import { GetBlockByIdGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockByIdGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getblockbyidrequest.md b/data/docs/models/operations/getblockbyidrequest.md deleted file mode 100644 index dbcebec3..00000000 --- a/data/docs/models/operations/getblockbyidrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetBlockByIdRequest - -## Example Usage - -```typescript -import { GetBlockByIdRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockByIdRequest = { - blockchainId: "p-chain", - blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `blockId` | *string* | :heavy_check_mark: | A block identifier which is either a block number or the block hash. | 5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S | \ No newline at end of file diff --git a/data/docs/models/operations/getblockchainbyidglobals.md b/data/docs/models/operations/getblockchainbyidglobals.md deleted file mode 100644 index 763f1a78..00000000 --- a/data/docs/models/operations/getblockchainbyidglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBlockchainByIdGlobals - -## Example Usage - -```typescript -import { GetBlockchainByIdGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockchainByIdGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getblockchainbyidrequest.md b/data/docs/models/operations/getblockchainbyidrequest.md deleted file mode 100644 index fb422879..00000000 --- a/data/docs/models/operations/getblockchainbyidrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetBlockchainByIdRequest - -## Example Usage - -```typescript -import { GetBlockchainByIdRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockchainByIdRequest = { - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `blockchainId` | *string* | :heavy_check_mark: | The blockchain ID of the blockchain to retrieve. | 2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getblockglobals.md b/data/docs/models/operations/getblockglobals.md deleted file mode 100644 index e5c5933f..00000000 --- a/data/docs/models/operations/getblockglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBlockGlobals - -## Example Usage - -```typescript -import { GetBlockGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getblockrequest.md b/data/docs/models/operations/getblockrequest.md deleted file mode 100644 index 492cd062..00000000 --- a/data/docs/models/operations/getblockrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetBlockRequest - -## Example Usage - -```typescript -import { GetBlockRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetBlockRequest = { - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `blockId` | *string* | :heavy_check_mark: | A block identifier which is either a block number or the block hash. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | \ No newline at end of file diff --git a/data/docs/models/operations/getchainidsforaddressesglobals.md b/data/docs/models/operations/getchainidsforaddressesglobals.md deleted file mode 100644 index 4ef6c930..00000000 --- a/data/docs/models/operations/getchainidsforaddressesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetChainIdsForAddressesGlobals - -## Example Usage - -```typescript -import { GetChainIdsForAddressesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetChainIdsForAddressesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getchainidsforaddressesrequest.md b/data/docs/models/operations/getchainidsforaddressesrequest.md deleted file mode 100644 index 9ccae195..00000000 --- a/data/docs/models/operations/getchainidsforaddressesrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetChainIdsForAddressesRequest - -## Example Usage - -```typescript -import { GetChainIdsForAddressesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetChainIdsForAddressesRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_check_mark: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getchaininfoglobals.md b/data/docs/models/operations/getchaininfoglobals.md deleted file mode 100644 index 89846c92..00000000 --- a/data/docs/models/operations/getchaininfoglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetChainInfoGlobals - -## Example Usage - -```typescript -import { GetChainInfoGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetChainInfoGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getchaininforequest.md b/data/docs/models/operations/getchaininforequest.md deleted file mode 100644 index 727e51fd..00000000 --- a/data/docs/models/operations/getchaininforequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetChainInfoRequest - -## Example Usage - -```typescript -import { GetChainInfoRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetChainInfoRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getcontractmetadataglobals.md b/data/docs/models/operations/getcontractmetadataglobals.md deleted file mode 100644 index 3fcf5f19..00000000 --- a/data/docs/models/operations/getcontractmetadataglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetContractMetadataGlobals - -## Example Usage - -```typescript -import { GetContractMetadataGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetContractMetadataGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getcontractmetadatarequest.md b/data/docs/models/operations/getcontractmetadatarequest.md deleted file mode 100644 index ba117d4b..00000000 --- a/data/docs/models/operations/getcontractmetadatarequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetContractMetadataRequest - -## Example Usage - -```typescript -import { GetContractMetadataRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetContractMetadataRequest = { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | \ No newline at end of file diff --git a/data/docs/models/operations/getcontractmetadataresponse.md b/data/docs/models/operations/getcontractmetadataresponse.md deleted file mode 100644 index c41ce055..00000000 --- a/data/docs/models/operations/getcontractmetadataresponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetContractMetadataResponse - -Successful response - - -## Supported Types - -### `components.Erc20Contract` - -```typescript -const value: components.Erc20Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-20", - symbol: "WAVAX", - decimals: 18, -}; -``` - -### `components.Erc721Contract` - -```typescript -const value: components.Erc721Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-721", - symbol: "WAVAX", -}; -``` - -### `components.Erc1155Contract` - -```typescript -const value: components.Erc1155Contract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - symbol: "WAVAX", -}; -``` - -### `components.UnknownContract` - -```typescript -const value: components.UnknownContract = { - name: "Wrapped AVAX", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "UNKNOWN", -}; -``` - diff --git a/data/docs/models/operations/getdeploymenttransactionglobals.md b/data/docs/models/operations/getdeploymenttransactionglobals.md deleted file mode 100644 index 1645bf47..00000000 --- a/data/docs/models/operations/getdeploymenttransactionglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetDeploymentTransactionGlobals - -## Example Usage - -```typescript -import { GetDeploymentTransactionGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetDeploymentTransactionGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getdeploymenttransactionrequest.md b/data/docs/models/operations/getdeploymenttransactionrequest.md deleted file mode 100644 index 91a1fda3..00000000 --- a/data/docs/models/operations/getdeploymenttransactionrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetDeploymentTransactionRequest - -## Example Usage - -```typescript -import { GetDeploymentTransactionRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetDeploymentTransactionRequest = { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - currency: "usd", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | -| `currency` | [components.CurrencyCode](../../models/components/currencycode.md) | :heavy_minus_sign: | The currency that return values should use. Defaults to USD. | usd | \ No newline at end of file diff --git a/data/docs/models/operations/geticmmessagerequest.md b/data/docs/models/operations/geticmmessagerequest.md deleted file mode 100644 index 111090ef..00000000 --- a/data/docs/models/operations/geticmmessagerequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetIcmMessageRequest - -## Example Usage - -```typescript -import { GetIcmMessageRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetIcmMessageRequest = { - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | The teleporter message ID of the ICM message. | acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d | \ No newline at end of file diff --git a/data/docs/models/operations/geticmmessageresponse.md b/data/docs/models/operations/geticmmessageresponse.md deleted file mode 100644 index 25cb8526..00000000 --- a/data/docs/models/operations/geticmmessageresponse.md +++ /dev/null @@ -1,133 +0,0 @@ -# GetIcmMessageResponse - -Successful response - - -## Supported Types - -### `components.DeliveredIcmMessage` - -```typescript -const value: components.DeliveredIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: true, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -### `components.PendingIcmMessage` - -```typescript -const value: components.PendingIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 6459.73, - gasSpent: "", - }, - status: "pending", -}; -``` - -### `components.DeliveredSourceNotIndexedIcmMessage` - -```typescript -const value: components.DeliveredSourceNotIndexedIcmMessage = { - messageId: "", - icmContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - diff --git a/data/docs/models/operations/getlatestblocksglobals.md b/data/docs/models/operations/getlatestblocksglobals.md deleted file mode 100644 index c03c53c9..00000000 --- a/data/docs/models/operations/getlatestblocksglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLatestBlocksGlobals - -## Example Usage - -```typescript -import { GetLatestBlocksGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetLatestBlocksGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getlatestblocksrequest.md b/data/docs/models/operations/getlatestblocksrequest.md deleted file mode 100644 index d4c8bb85..00000000 --- a/data/docs/models/operations/getlatestblocksrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLatestBlocksRequest - -## Example Usage - -```typescript -import { GetLatestBlocksRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetLatestBlocksRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getlatestblocksresponse.md b/data/docs/models/operations/getlatestblocksresponse.md deleted file mode 100644 index fb0f1c82..00000000 --- a/data/docs/models/operations/getlatestblocksresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# GetLatestBlocksResponse - -## Example Usage - -```typescript -import { GetLatestBlocksResponse } from "@avalanche-sdk/data/models/operations"; - -let value: GetLatestBlocksResponse = { - result: { - blocks: [ - { - chainId: "43114", - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 6022.29, - baseFee: "", - gasUsed: "", - gasLimit: "", - gasCost: "", - parentHash: "", - feesSpent: "", - cumulativeTransactions: "", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `result` | [components.ListEvmBlocksResponse](../../models/components/listevmblocksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/getnativebalanceglobals.md b/data/docs/models/operations/getnativebalanceglobals.md deleted file mode 100644 index 700acb1d..00000000 --- a/data/docs/models/operations/getnativebalanceglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNativeBalanceGlobals - -## Example Usage - -```typescript -import { GetNativeBalanceGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetNativeBalanceGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/getnativebalancerequest.md b/data/docs/models/operations/getnativebalancerequest.md deleted file mode 100644 index 6766966a..00000000 --- a/data/docs/models/operations/getnativebalancerequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetNativeBalanceRequest - -## Example Usage - -```typescript -import { GetNativeBalanceRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetNativeBalanceRequest = { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - currency: "usd", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `blockNumber` | *string* | :heavy_minus_sign: | The block number, if not defined the block number will be the latest block. | 6479329 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `currency` | [components.CurrencyCode](../../models/components/currencycode.md) | :heavy_minus_sign: | The currency that return values should use. Defaults to USD. | usd | \ No newline at end of file diff --git a/data/docs/models/operations/getnetworkdetailsglobals.md b/data/docs/models/operations/getnetworkdetailsglobals.md deleted file mode 100644 index 9e99e802..00000000 --- a/data/docs/models/operations/getnetworkdetailsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNetworkDetailsGlobals - -## Example Usage - -```typescript -import { GetNetworkDetailsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetNetworkDetailsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getnetworkdetailsrequest.md b/data/docs/models/operations/getnetworkdetailsrequest.md deleted file mode 100644 index 32d20341..00000000 --- a/data/docs/models/operations/getnetworkdetailsrequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetNetworkDetailsRequest - -## Example Usage - -```typescript -import { GetNetworkDetailsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetNetworkDetailsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getoperationresultrequest.md b/data/docs/models/operations/getoperationresultrequest.md deleted file mode 100644 index 8e089e71..00000000 --- a/data/docs/models/operations/getoperationresultrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetOperationResultRequest - -## Example Usage - -```typescript -import { GetOperationResultRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetOperationResultRequest = { - operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `operationId` | *string* | :heavy_check_mark: | UUID of given operation | aa22054a-cb7c-4a4e-9b83-59f2ede74138 | \ No newline at end of file diff --git a/data/docs/models/operations/getrpcusagemetricsrequest.md b/data/docs/models/operations/getrpcusagemetricsrequest.md deleted file mode 100644 index f96796e9..00000000 --- a/data/docs/models/operations/getrpcusagemetricsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetRpcUsageMetricsRequest - -## Example Usage - -```typescript -import { GetRpcUsageMetricsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetRpcUsageMetricsRequest = { - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `timeInterval` | [components.SubnetRpcTimeIntervalGranularity](../../models/components/subnetrpctimeintervalgranularity.md) | :heavy_minus_sign: | Time interval granularity for data aggregation for subnet
rpc metrics | daily | -| `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. | 1739507200 | -| `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. | 1739664000 | -| `groupBy` | [components.RpcUsageMetricsGroupByEnum](../../models/components/rpcusagemetricsgroupbyenum.md) | :heavy_minus_sign: | Query param for the criterion used for grouping metrics | rpcMethod | -| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | -| `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/data/docs/models/operations/getsinglevalidatordetailsglobals.md b/data/docs/models/operations/getsinglevalidatordetailsglobals.md deleted file mode 100644 index aeaacbc1..00000000 --- a/data/docs/models/operations/getsinglevalidatordetailsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSingleValidatorDetailsGlobals - -## Example Usage - -```typescript -import { GetSingleValidatorDetailsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetSingleValidatorDetailsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getsinglevalidatordetailsrequest.md b/data/docs/models/operations/getsinglevalidatordetailsrequest.md deleted file mode 100644 index 7f92322a..00000000 --- a/data/docs/models/operations/getsinglevalidatordetailsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetSingleValidatorDetailsRequest - -## Example Usage - -```typescript -import { GetSingleValidatorDetailsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetSingleValidatorDetailsRequest = { - nodeId: "NodeID-111111111111111111116DBWJs", - validationStatus: "completed", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeId` | *string* | :heavy_check_mark: | A primary network (P or X chain) nodeId. | NodeID-111111111111111111116DBWJs | -| `validationStatus` | [components.ValidationStatusType](../../models/components/validationstatustype.md) | :heavy_minus_sign: | Validation status of the node. | completed | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/getsinglevalidatordetailsresponse.md b/data/docs/models/operations/getsinglevalidatordetailsresponse.md deleted file mode 100644 index 6ed9a07c..00000000 --- a/data/docs/models/operations/getsinglevalidatordetailsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetSingleValidatorDetailsResponse - -## Example Usage - -```typescript -import { GetSingleValidatorDetailsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: GetSingleValidatorDetailsResponse = { - result: { - validators: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [components.ListValidatorDetailsResponse](../../models/components/listvalidatordetailsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/getsubnetbyidglobals.md b/data/docs/models/operations/getsubnetbyidglobals.md deleted file mode 100644 index 32f95fd9..00000000 --- a/data/docs/models/operations/getsubnetbyidglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSubnetByIdGlobals - -## Example Usage - -```typescript -import { GetSubnetByIdGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetSubnetByIdGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getsubnetbyidrequest.md b/data/docs/models/operations/getsubnetbyidrequest.md deleted file mode 100644 index aa9eaf53..00000000 --- a/data/docs/models/operations/getsubnetbyidrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSubnetByIdRequest - -## Example Usage - -```typescript -import { GetSubnetByIdRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetSubnetByIdRequest = { - subnetId: "11111111111111111111111111111111LpoYY", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `subnetId` | *string* | :heavy_check_mark: | Subnet ID to fetch details for | 11111111111111111111111111111111LpoYY | \ No newline at end of file diff --git a/data/docs/models/operations/getsubnetrpcusagemetricsrequest.md b/data/docs/models/operations/getsubnetrpcusagemetricsrequest.md deleted file mode 100644 index 689c121c..00000000 --- a/data/docs/models/operations/getsubnetrpcusagemetricsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetSubnetRpcUsageMetricsRequest - -## Example Usage - -```typescript -import { GetSubnetRpcUsageMetricsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetSubnetRpcUsageMetricsRequest = { - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `timeInterval` | [components.SubnetRpcTimeIntervalGranularity](../../models/components/subnetrpctimeintervalgranularity.md) | :heavy_minus_sign: | Time interval granularity for data aggregation for subnet
rpc metrics | daily | -| `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. | 1739507200 | -| `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. | 1739664000 | -| `groupBy` | [components.RpcUsageMetricsGroupByEnum](../../models/components/rpcusagemetricsgroupbyenum.md) | :heavy_minus_sign: | Query param for the criterion used for grouping metrics | rpcMethod | -| `chainId` | *string* | :heavy_minus_sign: | Filter data by chain ID. | | -| `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/data/docs/models/operations/getteleportermessagerequest.md b/data/docs/models/operations/getteleportermessagerequest.md deleted file mode 100644 index 973fab42..00000000 --- a/data/docs/models/operations/getteleportermessagerequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTeleporterMessageRequest - -## Example Usage - -```typescript -import { GetTeleporterMessageRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetTeleporterMessageRequest = { - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `messageId` | *string* | :heavy_check_mark: | The message ID of the teleporter message. | acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d | \ No newline at end of file diff --git a/data/docs/models/operations/getteleportermessageresponse.md b/data/docs/models/operations/getteleportermessageresponse.md deleted file mode 100644 index d796f8fe..00000000 --- a/data/docs/models/operations/getteleportermessageresponse.md +++ /dev/null @@ -1,138 +0,0 @@ -# GetTeleporterMessageResponse - -Successful response - - -## Supported Types - -### `components.PendingTeleporterMessage` - -```typescript -const value: components.PendingTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - status: "pending", -}; -``` - -### `components.DeliveredTeleporterMessage` - -```typescript -const value: components.DeliveredTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: false, - receipts: [], - receiptDelivered: true, - rewardDetails: { - 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, - }, - value: "", - }, - sourceTransaction: { - txHash: "", - timestamp: 1403.23, - gasSpent: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 4770.43, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", -}; -``` - -### `components.DeliveredSourceNotIndexedTeleporterMessage` - -```typescript -const value: components.DeliveredSourceNotIndexedTeleporterMessage = { - messageId: "", - teleporterContractAddress: "", - sourceBlockchainId: "", - destinationBlockchainId: "", - sourceEvmChainId: "", - destinationEvmChainId: "", - messageNonce: "", - from: "", - to: "", - messageExecuted: true, - receipts: [ - { - receivedMessageNonce: "", - relayerRewardAddress: "", - }, - ], - receiptDelivered: false, - rewardDetails: { - 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, - }, - value: "", - }, - destinationTransaction: { - txHash: "", - timestamp: 4770.43, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered_source_not_indexed", -}; -``` - diff --git a/data/docs/models/operations/gettokendetailsglobals.md b/data/docs/models/operations/gettokendetailsglobals.md deleted file mode 100644 index 31b2ca62..00000000 --- a/data/docs/models/operations/gettokendetailsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTokenDetailsGlobals - -## Example Usage - -```typescript -import { GetTokenDetailsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetTokenDetailsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/gettokendetailsrequest.md b/data/docs/models/operations/gettokendetailsrequest.md deleted file mode 100644 index dfcecb36..00000000 --- a/data/docs/models/operations/gettokendetailsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetTokenDetailsRequest - -## Example Usage - -```typescript -import { GetTokenDetailsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetTokenDetailsRequest = { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | -| `tokenId` | *string* | :heavy_check_mark: | TokenId on the contract | 145 | \ No newline at end of file diff --git a/data/docs/models/operations/gettokendetailsresponse.md b/data/docs/models/operations/gettokendetailsresponse.md deleted file mode 100644 index 01d745b7..00000000 --- a/data/docs/models/operations/gettokendetailsresponse.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetTokenDetailsResponse - -Successful response - - -## Supported Types - -### `components.Erc721Token` - -```typescript -const value: components.Erc721Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - name: "Wrapped AVAX", - symbol: "WAVAX", - ercType: "ERC-721", - tokenId: "", - tokenUri: "https://whopping-role.name/", - metadata: { - indexStatus: "THROTTLED_TOKEN_URI", - }, - ownerAddress: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -### `components.Erc1155Token` - -```typescript -const value: components.Erc1155Token = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://babyish-adult.name", - metadata: { - indexStatus: "INVALID_METADATA", - }, -}; -``` - diff --git a/data/docs/models/operations/gettransactionglobals.md b/data/docs/models/operations/gettransactionglobals.md deleted file mode 100644 index 1641a79b..00000000 --- a/data/docs/models/operations/gettransactionglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTransactionGlobals - -## Example Usage - -```typescript -import { GetTransactionGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetTransactionGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/gettransactionrequest.md b/data/docs/models/operations/gettransactionrequest.md deleted file mode 100644 index 5bd1cf43..00000000 --- a/data/docs/models/operations/gettransactionrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTransactionRequest - -## Example Usage - -```typescript -import { GetTransactionRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetTransactionRequest = { - txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `txHash` | *string* | :heavy_check_mark: | A transaction hash. | 0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45 | \ No newline at end of file diff --git a/data/docs/models/operations/gettransactionsforblockglobals.md b/data/docs/models/operations/gettransactionsforblockglobals.md deleted file mode 100644 index 4d9a206e..00000000 --- a/data/docs/models/operations/gettransactionsforblockglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTransactionsForBlockGlobals - -## Example Usage - -```typescript -import { GetTransactionsForBlockGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetTransactionsForBlockGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/gettransactionsforblockrequest.md b/data/docs/models/operations/gettransactionsforblockrequest.md deleted file mode 100644 index 1f6caba5..00000000 --- a/data/docs/models/operations/gettransactionsforblockrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTransactionsForBlockRequest - -## Example Usage - -```typescript -import { GetTransactionsForBlockRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetTransactionsForBlockRequest = { - pageSize: 10, - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 0. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `blockId` | *string* | :heavy_check_mark: | A block identifier which is either a block number or the block hash. | 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c | \ No newline at end of file diff --git a/data/docs/models/operations/gettxbyhashglobals.md b/data/docs/models/operations/gettxbyhashglobals.md deleted file mode 100644 index a9a7402b..00000000 --- a/data/docs/models/operations/gettxbyhashglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTxByHashGlobals - -## Example Usage - -```typescript -import { GetTxByHashGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetTxByHashGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/gettxbyhashrequest.md b/data/docs/models/operations/gettxbyhashrequest.md deleted file mode 100644 index 445cc63b..00000000 --- a/data/docs/models/operations/gettxbyhashrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetTxByHashRequest - -## Example Usage - -```typescript -import { GetTxByHashRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetTxByHashRequest = { - blockchainId: "p-chain", - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `txHash` | *string* | :heavy_check_mark: | A primary network (P or X chain) transaction hash. | 3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP | \ No newline at end of file diff --git a/data/docs/models/operations/gettxbyhashresponse.md b/data/docs/models/operations/gettxbyhashresponse.md deleted file mode 100644 index 212986b6..00000000 --- a/data/docs/models/operations/gettxbyhashresponse.md +++ /dev/null @@ -1,329 +0,0 @@ -# GetTxByHashResponse - -Successful response - - -## Supported Types - -### `components.PChainTransaction` - -```typescript -const value: components.PChainTransaction = { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "AddValidatorTx", - blockTimestamp: 1648672486, - blockNumber: "", - blockHash: "", - consumedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "578.02", - assetId: "", - blockNumber: "", - blockTimestamp: 1090.15, - outputIndex: 9797.87, - txHash: "", - utxoType: "STAKE", - }, - ], - emittedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "606.41", - assetId: "", - blockNumber: "", - blockTimestamp: 5338.13, - outputIndex: 1061.23, - txHash: "", - utxoType: "TRANSFER", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - value: [], - amountBurned: [], - amountStaked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - amountL1ValidatorBalanceBurned: [], - subnetOwnershipInfo: { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - }, -}; -``` - -### `components.XChainNonLinearTransaction` - -```typescript -const value: components.XChainNonLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "ExportTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [], - emittedUtxos: [], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - vertices: [], -}; -``` - -### `components.XChainLinearTransaction` - -```typescript -const value: components.XChainLinearTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - chainFormat: "non-linear", - timestamp: 1600762738, - txType: "CreateAssetTx", - memo: "0x546865204176616c616e6368652050726f6a656374", - consumedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - emittedUtxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - assetCreated: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - createdAtTimestamp: 1675444720, - cap: "variable", - }, - blockHeight: 1005, - blockHash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", -}; -``` - -### `components.CChainExportTransaction` - -```typescript -const value: components.CChainExportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [], - emittedUtxos: [], -}; -``` - -### `components.CChainImportTransaction` - -```typescript -const value: components.CChainImportTransaction = { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ImportTx", - evmOutputs: [ - { - toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - }, - ], - consumedUtxos: [], -}; -``` - diff --git a/data/docs/models/operations/getutxosbyaddressesglobals.md b/data/docs/models/operations/getutxosbyaddressesglobals.md deleted file mode 100644 index b632c50c..00000000 --- a/data/docs/models/operations/getutxosbyaddressesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUtxosByAddressesGlobals - -## Example Usage - -```typescript -import { GetUtxosByAddressesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetUtxosByAddressesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getutxosbyaddressesrequest.md b/data/docs/models/operations/getutxosbyaddressesrequest.md deleted file mode 100644 index a6636eb6..00000000 --- a/data/docs/models/operations/getutxosbyaddressesrequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# GetUtxosByAddressesRequest - -## Example Usage - -```typescript -import { GetUtxosByAddressesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetUtxosByAddressesRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `assetId` | *string* | :heavy_minus_sign: | Asset ID for any asset (only applicable X-Chain) | | -| `includeSpent` | *boolean* | :heavy_minus_sign: | Boolean filter to include spent UTXOs. | | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/getutxosbyaddressesresponse.md b/data/docs/models/operations/getutxosbyaddressesresponse.md deleted file mode 100644 index 3232dc7d..00000000 --- a/data/docs/models/operations/getutxosbyaddressesresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetUtxosByAddressesResponse - -## Example Usage - -```typescript -import { GetUtxosByAddressesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: GetUtxosByAddressesResponse = { - result: { - utxos: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `result` | *operations.GetUtxosByAddressesResponseBody* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/getutxosbyaddressesresponsebody.md b/data/docs/models/operations/getutxosbyaddressesresponsebody.md deleted file mode 100644 index 6aa224eb..00000000 --- a/data/docs/models/operations/getutxosbyaddressesresponsebody.md +++ /dev/null @@ -1,88 +0,0 @@ -# GetUtxosByAddressesResponseBody - -Successful response - - -## Supported Types - -### `components.ListPChainUtxosResponse` - -```typescript -const value: components.ListPChainUtxosResponse = { - utxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC", - amount: "871.14", - assetId: "", - blockNumber: "", - blockTimestamp: 9647.88, - outputIndex: 5158.07, - txHash: "", - utxoType: "STAKE", - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -### `components.ListUtxosResponse` - -```typescript -const value: components.ListUtxosResponse = { - utxos: [ - { - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - 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", - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - diff --git a/data/docs/models/operations/getvertexbyhashglobals.md b/data/docs/models/operations/getvertexbyhashglobals.md deleted file mode 100644 index 1e2d1675..00000000 --- a/data/docs/models/operations/getvertexbyhashglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetVertexByHashGlobals - -## Example Usage - -```typescript -import { GetVertexByHashGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetVertexByHashGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getvertexbyhashrequest.md b/data/docs/models/operations/getvertexbyhashrequest.md deleted file mode 100644 index 52a84746..00000000 --- a/data/docs/models/operations/getvertexbyhashrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetVertexByHashRequest - -## Example Usage - -```typescript -import { GetVertexByHashRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetVertexByHashRequest = { - vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr", - blockchainId: "x-chain", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `vertexHash` | *string* | :heavy_check_mark: | A vertex hash string. | haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr | -| `blockchainId` | [components.XChainId](../../models/components/xchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | x-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getvertexbyheightglobals.md b/data/docs/models/operations/getvertexbyheightglobals.md deleted file mode 100644 index 2d265447..00000000 --- a/data/docs/models/operations/getvertexbyheightglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetVertexByHeightGlobals - -## Example Usage - -```typescript -import { GetVertexByHeightGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: GetVertexByHeightGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/getvertexbyheightrequest.md b/data/docs/models/operations/getvertexbyheightrequest.md deleted file mode 100644 index 0d317333..00000000 --- a/data/docs/models/operations/getvertexbyheightrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetVertexByHeightRequest - -## Example Usage - -```typescript -import { GetVertexByHeightRequest } from "@avalanche-sdk/data/models/operations"; - -let value: GetVertexByHeightRequest = { - vertexHeight: 123, - blockchainId: "x-chain", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `vertexHeight` | *number* | :heavy_check_mark: | The height of a vertex. | 123 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.XChainId](../../models/components/xchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | x-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/getvertexbyheightresponse.md b/data/docs/models/operations/getvertexbyheightresponse.md deleted file mode 100644 index b64bb331..00000000 --- a/data/docs/models/operations/getvertexbyheightresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetVertexByHeightResponse - -## Example Usage - -```typescript -import { GetVertexByHeightResponse } from "@avalanche-sdk/data/models/operations"; - -let value: GetVertexByHeightResponse = { - result: { - vertices: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [components.ListXChainVerticesResponse](../../models/components/listxchainverticesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md b/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md deleted file mode 100644 index 9df4703a..00000000 --- a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListActivePrimaryNetworkStakingTransactionsGlobals - -## Example Usage - -```typescript -import { ListActivePrimaryNetworkStakingTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListActivePrimaryNetworkStakingTransactionsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md b/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md deleted file mode 100644 index e8cb459a..00000000 --- a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md +++ /dev/null @@ -1,32 +0,0 @@ -# ListActivePrimaryNetworkStakingTransactionsRequest - -## Example Usage - -```typescript -import { ListActivePrimaryNetworkStakingTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListActivePrimaryNetworkStakingTransactionsRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `txTypes` | [components.PrimaryNetworkTxType](../../models/components/primarynetworktxtype.md)[] | :heavy_minus_sign: | Query param for filtering items based on transaction types. | [
"AddValidatorTx"
] | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.PChainId](../../models/components/pchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md b/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md deleted file mode 100644 index 3427a974..00000000 --- a/data/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListActivePrimaryNetworkStakingTransactionsResponse - -## Example Usage - -```typescript -import { ListActivePrimaryNetworkStakingTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListActivePrimaryNetworkStakingTransactionsResponse = { - result: { - transactions: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListPChainTransactionsResponse](../../models/components/listpchaintransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listaddresschainsrequest.md b/data/docs/models/operations/listaddresschainsrequest.md deleted file mode 100644 index cacb0d27..00000000 --- a/data/docs/models/operations/listaddresschainsrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListAddressChainsRequest - -## Example Usage - -```typescript -import { ListAddressChainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListAddressChainsRequest = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listalllatestblocksrequest.md b/data/docs/models/operations/listalllatestblocksrequest.md deleted file mode 100644 index 792b2dba..00000000 --- a/data/docs/models/operations/listalllatestblocksrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListAllLatestBlocksRequest - -## Example Usage - -```typescript -import { ListAllLatestBlocksRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListAllLatestBlocksRequest = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listalllatestblocksresponse.md b/data/docs/models/operations/listalllatestblocksresponse.md deleted file mode 100644 index 31cd1d1f..00000000 --- a/data/docs/models/operations/listalllatestblocksresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# ListAllLatestBlocksResponse - -## Example Usage - -```typescript -import { ListAllLatestBlocksResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListAllLatestBlocksResponse = { - result: { - blocks: [ - { - chainId: "43114", - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 6022.29, - baseFee: "", - gasUsed: "", - gasLimit: "", - gasCost: "", - parentHash: "", - feesSpent: "", - cumulativeTransactions: "", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `result` | [components.ListEvmBlocksResponse](../../models/components/listevmblocksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listalllatesttransactionsrequest.md b/data/docs/models/operations/listalllatesttransactionsrequest.md deleted file mode 100644 index e4e8527f..00000000 --- a/data/docs/models/operations/listalllatesttransactionsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ListAllLatestTransactionsRequest - -## Example Usage - -```typescript -import { ListAllLatestTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListAllLatestTransactionsRequest = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `status` | [components.TransactionStatus](../../models/components/transactionstatus.md) | :heavy_minus_sign: | A status filter for listed transactions. | | \ No newline at end of file diff --git a/data/docs/models/operations/listalllatesttransactionsresponse.md b/data/docs/models/operations/listalllatesttransactionsresponse.md deleted file mode 100644 index 8611f256..00000000 --- a/data/docs/models/operations/listalllatesttransactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListAllLatestTransactionsResponse - -## Example Usage - -```typescript -import { ListAllLatestTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListAllLatestTransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListNativeTransactionsResponse](../../models/components/listnativetransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listassettransactionsglobals.md b/data/docs/models/operations/listassettransactionsglobals.md deleted file mode 100644 index 23394beb..00000000 --- a/data/docs/models/operations/listassettransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListAssetTransactionsGlobals - -## Example Usage - -```typescript -import { ListAssetTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListAssetTransactionsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listassettransactionsrequest.md b/data/docs/models/operations/listassettransactionsrequest.md deleted file mode 100644 index 89888c2f..00000000 --- a/data/docs/models/operations/listassettransactionsrequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# ListAssetTransactionsRequest - -## Example Usage - -```typescript -import { ListAssetTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListAssetTransactionsRequest = { - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `txTypes` | [components.PrimaryNetworkTxType](../../models/components/primarynetworktxtype.md)[] | :heavy_minus_sign: | Query param for filtering items based on transaction types. | [
"AddValidatorTx"
] | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.XChainId](../../models/components/xchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | x-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `assetId` | *string* | :heavy_check_mark: | Asset ID for any asset on X-Chain | th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof | \ No newline at end of file diff --git a/data/docs/models/operations/listassettransactionsresponse.md b/data/docs/models/operations/listassettransactionsresponse.md deleted file mode 100644 index 9729cb1f..00000000 --- a/data/docs/models/operations/listassettransactionsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListAssetTransactionsResponse - -## Example Usage - -```typescript -import { ListAssetTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListAssetTransactionsResponse = { - result: { - transactions: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListXChainTransactionsResponse](../../models/components/listxchaintransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listblockchainsglobals.md b/data/docs/models/operations/listblockchainsglobals.md deleted file mode 100644 index b0bde0ec..00000000 --- a/data/docs/models/operations/listblockchainsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListBlockchainsGlobals - -## Example Usage - -```typescript -import { ListBlockchainsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListBlockchainsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listblockchainsrequest.md b/data/docs/models/operations/listblockchainsrequest.md deleted file mode 100644 index 9d79639a..00000000 --- a/data/docs/models/operations/listblockchainsrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListBlockchainsRequest - -## Example Usage - -```typescript -import { ListBlockchainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListBlockchainsRequest = { - pageSize: 10, - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 10000. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listblockchainsresponse.md b/data/docs/models/operations/listblockchainsresponse.md deleted file mode 100644 index 5d1ecb72..00000000 --- a/data/docs/models/operations/listblockchainsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListBlockchainsResponse - -## Example Usage - -```typescript -import { ListBlockchainsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListBlockchainsResponse = { - result: { - blockchains: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `result` | [components.ListBlockchainsResponse](../../models/components/listblockchainsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listcollectiblebalancesglobals.md b/data/docs/models/operations/listcollectiblebalancesglobals.md deleted file mode 100644 index d17299ae..00000000 --- a/data/docs/models/operations/listcollectiblebalancesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListCollectibleBalancesGlobals - -## Example Usage - -```typescript -import { ListCollectibleBalancesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListCollectibleBalancesGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listcollectiblebalancesrequest.md b/data/docs/models/operations/listcollectiblebalancesrequest.md deleted file mode 100644 index 85299c1a..00000000 --- a/data/docs/models/operations/listcollectiblebalancesrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# ListCollectibleBalancesRequest - -## Example Usage - -```typescript -import { ListCollectibleBalancesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListCollectibleBalancesRequest = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 500. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `contractAddress` | *string* | :heavy_minus_sign: | A contract addresses to filter by. | 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 | \ No newline at end of file diff --git a/data/docs/models/operations/listcollectiblebalancesresponse.md b/data/docs/models/operations/listcollectiblebalancesresponse.md deleted file mode 100644 index f7ae61ce..00000000 --- a/data/docs/models/operations/listcollectiblebalancesresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListCollectibleBalancesResponse - -## Example Usage - -```typescript -import { ListCollectibleBalancesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListCollectibleBalancesResponse = { - result: { - collectibleBalances: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `result` | [components.ListCollectibleBalancesResponse](../../models/components/listcollectiblebalancesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listcontractdeploymentsglobals.md b/data/docs/models/operations/listcontractdeploymentsglobals.md deleted file mode 100644 index aca884c0..00000000 --- a/data/docs/models/operations/listcontractdeploymentsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListContractDeploymentsGlobals - -## Example Usage - -```typescript -import { ListContractDeploymentsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListContractDeploymentsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listcontractdeploymentsrequest.md b/data/docs/models/operations/listcontractdeploymentsrequest.md deleted file mode 100644 index 82ad84e4..00000000 --- a/data/docs/models/operations/listcontractdeploymentsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ListContractDeploymentsRequest - -## Example Usage - -```typescript -import { ListContractDeploymentsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListContractDeploymentsRequest = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listcontractdeploymentsresponse.md b/data/docs/models/operations/listcontractdeploymentsresponse.md deleted file mode 100644 index a3c69066..00000000 --- a/data/docs/models/operations/listcontractdeploymentsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListContractDeploymentsResponse - -## Example Usage - -```typescript -import { ListContractDeploymentsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListContractDeploymentsResponse = { - result: { - contracts: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `result` | [components.ListContractsResponse](../../models/components/listcontractsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listdelegatorsglobals.md b/data/docs/models/operations/listdelegatorsglobals.md deleted file mode 100644 index 59d646cf..00000000 --- a/data/docs/models/operations/listdelegatorsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListDelegatorsGlobals - -## Example Usage - -```typescript -import { ListDelegatorsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListDelegatorsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listdelegatorsrequest.md b/data/docs/models/operations/listdelegatorsrequest.md deleted file mode 100644 index 532db892..00000000 --- a/data/docs/models/operations/listdelegatorsrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# ListDelegatorsRequest - -## Example Usage - -```typescript -import { ListDelegatorsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListDelegatorsRequest = { - rewardAddresses: - "P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc", - sortOrder: "asc", - delegationStatus: "completed", - nodeIds: - "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `rewardAddresses` | *string* | :heavy_minus_sign: | A comma separated list of reward addresses to filter by. | P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | -| `delegationStatus` | [components.DelegationStatusType](../../models/components/delegationstatustype.md) | :heavy_minus_sign: | Delegation status of the node. | completed | -| `nodeIds` | *string* | :heavy_minus_sign: | A comma separated list of node ids to filter by. | NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs | \ No newline at end of file diff --git a/data/docs/models/operations/listdelegatorsresponse.md b/data/docs/models/operations/listdelegatorsresponse.md deleted file mode 100644 index 102541a0..00000000 --- a/data/docs/models/operations/listdelegatorsresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# ListDelegatorsResponse - -## Example Usage - -```typescript -import { ListDelegatorsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListDelegatorsResponse = { - result: { - delegators: [ - { - txHash: "", - nodeId: "", - rewardAddresses: [], - amountDelegated: "", - delegationFee: "", - startTimestamp: 5873.83, - endTimestamp: 2262.7, - estimatedGrossReward: "", - estimatedNetReward: "", - delegationStatus: "pending", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [components.ListDelegatorDetailsResponse](../../models/components/listdelegatordetailsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155balancesglobals.md b/data/docs/models/operations/listerc1155balancesglobals.md deleted file mode 100644 index 99b495e4..00000000 --- a/data/docs/models/operations/listerc1155balancesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc1155BalancesGlobals - -## Example Usage - -```typescript -import { ListErc1155BalancesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155BalancesGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155balancesrequest.md b/data/docs/models/operations/listerc1155balancesrequest.md deleted file mode 100644 index 784dbeba..00000000 --- a/data/docs/models/operations/listerc1155balancesrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListErc1155BalancesRequest - -## Example Usage - -```typescript -import { ListErc1155BalancesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155BalancesRequest = { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `blockNumber` | *string* | :heavy_minus_sign: | The block number, if not defined the block number will be the latest block. | 6479329 | -| `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. The minimum page size is 1. The maximum pageSize is 500. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `contractAddress` | *string* | :heavy_minus_sign: | A contract addresses to filter by. | 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155balancesresponse.md b/data/docs/models/operations/listerc1155balancesresponse.md deleted file mode 100644 index 8a97ae1c..00000000 --- a/data/docs/models/operations/listerc1155balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc1155BalancesResponse - -## Example Usage - -```typescript -import { ListErc1155BalancesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155BalancesResponse = { - result: { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc1155TokenBalances: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `result` | [components.ListErc1155BalancesResponse](../../models/components/listerc1155balancesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155transactionsglobals.md b/data/docs/models/operations/listerc1155transactionsglobals.md deleted file mode 100644 index eb05333c..00000000 --- a/data/docs/models/operations/listerc1155transactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc1155TransactionsGlobals - -## Example Usage - -```typescript -import { ListErc1155TransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155TransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155transactionsrequest.md b/data/docs/models/operations/listerc1155transactionsrequest.md deleted file mode 100644 index 49cf6203..00000000 --- a/data/docs/models/operations/listerc1155transactionsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListErc1155TransactionsRequest - -## Example Usage - -```typescript -import { ListErc1155TransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155TransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listerc1155transactionsresponse.md b/data/docs/models/operations/listerc1155transactionsresponse.md deleted file mode 100644 index 1dcb8c0c..00000000 --- a/data/docs/models/operations/listerc1155transactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListErc1155TransactionsResponse - -## Example Usage - -```typescript -import { ListErc1155TransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc1155TransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `result` | [components.ListErc1155TransactionsResponse](../../models/components/listerc1155transactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20balancesglobals.md b/data/docs/models/operations/listerc20balancesglobals.md deleted file mode 100644 index 1bb19df0..00000000 --- a/data/docs/models/operations/listerc20balancesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc20BalancesGlobals - -## Example Usage - -```typescript -import { ListErc20BalancesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20BalancesGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20balancesrequest.md b/data/docs/models/operations/listerc20balancesrequest.md deleted file mode 100644 index 8fda42a3..00000000 --- a/data/docs/models/operations/listerc20balancesrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# ListErc20BalancesRequest - -## Example Usage - -```typescript -import { ListErc20BalancesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20BalancesRequest = { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddresses: - "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", - currency: "usd", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `blockNumber` | *string* | :heavy_minus_sign: | The block number, if not defined the block number will be the latest block. | 6479329 | -| `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. The minimum page size is 1. The maximum pageSize is 500. | 10 | -| `filterSpamTokens` | *boolean* | :heavy_minus_sign: | whether to filter out spam tokens from the response. Default is true. | | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `contractAddresses` | *string* | :heavy_minus_sign: | A comma separated list of contract addresses to filter by. | 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB | -| `currency` | [components.CurrencyCode](../../models/components/currencycode.md) | :heavy_minus_sign: | The currency that return values should use. Defaults to USD. | usd | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20balancesresponse.md b/data/docs/models/operations/listerc20balancesresponse.md deleted file mode 100644 index b0644c59..00000000 --- a/data/docs/models/operations/listerc20balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc20BalancesResponse - -## Example Usage - -```typescript -import { ListErc20BalancesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20BalancesResponse = { - result: { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc20TokenBalances: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `result` | [components.ListErc20BalancesResponse](../../models/components/listerc20balancesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20transactionsglobals.md b/data/docs/models/operations/listerc20transactionsglobals.md deleted file mode 100644 index bda555cd..00000000 --- a/data/docs/models/operations/listerc20transactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc20TransactionsGlobals - -## Example Usage - -```typescript -import { ListErc20TransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20TransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20transactionsrequest.md b/data/docs/models/operations/listerc20transactionsrequest.md deleted file mode 100644 index 69134112..00000000 --- a/data/docs/models/operations/listerc20transactionsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListErc20TransactionsRequest - -## Example Usage - -```typescript -import { ListErc20TransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20TransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listerc20transactionsresponse.md b/data/docs/models/operations/listerc20transactionsresponse.md deleted file mode 100644 index fb850f53..00000000 --- a/data/docs/models/operations/listerc20transactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListErc20TransactionsResponse - -## Example Usage - -```typescript -import { ListErc20TransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc20TransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [components.ListErc20TransactionsResponse](../../models/components/listerc20transactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721balancesglobals.md b/data/docs/models/operations/listerc721balancesglobals.md deleted file mode 100644 index 85e8b12d..00000000 --- a/data/docs/models/operations/listerc721balancesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc721BalancesGlobals - -## Example Usage - -```typescript -import { ListErc721BalancesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721BalancesGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721balancesrequest.md b/data/docs/models/operations/listerc721balancesrequest.md deleted file mode 100644 index b7e6cbf9..00000000 --- a/data/docs/models/operations/listerc721balancesrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# ListErc721BalancesRequest - -## Example Usage - -```typescript -import { ListErc721BalancesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721BalancesRequest = { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 500. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `contractAddress` | *string* | :heavy_minus_sign: | A contract addresses to filter by. | 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721balancesresponse.md b/data/docs/models/operations/listerc721balancesresponse.md deleted file mode 100644 index e6586c33..00000000 --- a/data/docs/models/operations/listerc721balancesresponse.md +++ /dev/null @@ -1,36 +0,0 @@ -# ListErc721BalancesResponse - -## Example Usage - -```typescript -import { ListErc721BalancesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721BalancesResponse = { - result: { - nativeTokenBalance: { - name: "Wrapped AVAX", - symbol: "WAVAX", - decimals: 18, - logoUri: - "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg", - chainId: "43114", - price: { - currencyCode: "usd", - value: 42.42, - }, - balance: "2000000000000000000", - balanceValue: { - currencyCode: "usd", - value: 42.42, - }, - }, - erc721TokenBalances: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [components.ListErc721BalancesResponse](../../models/components/listerc721balancesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721transactionsglobals.md b/data/docs/models/operations/listerc721transactionsglobals.md deleted file mode 100644 index 7d3f12d5..00000000 --- a/data/docs/models/operations/listerc721transactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListErc721TransactionsGlobals - -## Example Usage - -```typescript -import { ListErc721TransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721TransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721transactionsrequest.md b/data/docs/models/operations/listerc721transactionsrequest.md deleted file mode 100644 index b76dcbf3..00000000 --- a/data/docs/models/operations/listerc721transactionsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListErc721TransactionsRequest - -## Example Usage - -```typescript -import { ListErc721TransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721TransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listerc721transactionsresponse.md b/data/docs/models/operations/listerc721transactionsresponse.md deleted file mode 100644 index ab0186da..00000000 --- a/data/docs/models/operations/listerc721transactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListErc721TransactionsResponse - -## Example Usage - -```typescript -import { ListErc721TransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListErc721TransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListErc721TransactionsResponse](../../models/components/listerc721transactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md b/data/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md deleted file mode 100644 index 01807f75..00000000 --- a/data/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListHistoricalPrimaryNetworkRewardsGlobals - -## Example Usage - -```typescript -import { ListHistoricalPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListHistoricalPrimaryNetworkRewardsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md b/data/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md deleted file mode 100644 index 3f4bc87d..00000000 --- a/data/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# ListHistoricalPrimaryNetworkRewardsRequest - -## Example Usage - -```typescript -import { ListHistoricalPrimaryNetworkRewardsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListHistoricalPrimaryNetworkRewardsRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: - "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - currency: "usd", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required. | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeIds` | *string* | :heavy_minus_sign: | A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required. | NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | -| `currency` | [components.CurrencyCode](../../models/components/currencycode.md) | :heavy_minus_sign: | The currency that return values should use. Defaults to USD. | usd | \ No newline at end of file diff --git a/data/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md b/data/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md deleted file mode 100644 index 0a0afabd..00000000 --- a/data/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListHistoricalPrimaryNetworkRewardsResponse - -## Example Usage - -```typescript -import { ListHistoricalPrimaryNetworkRewardsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListHistoricalPrimaryNetworkRewardsResponse = { - result: { - historicalRewards: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `result` | [components.ListHistoricalRewardsResponse](../../models/components/listhistoricalrewardsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listicmmessagesbyaddressrequest.md b/data/docs/models/operations/listicmmessagesbyaddressrequest.md deleted file mode 100644 index d03ec39f..00000000 --- a/data/docs/models/operations/listicmmessagesbyaddressrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListIcmMessagesByAddressRequest - -## Example Usage - -```typescript -import { ListIcmMessagesByAddressRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListIcmMessagesByAddressRequest = { - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `address` | *string* | :heavy_check_mark: | An EVM address. | 0x8578AE7723751446B196bD5124e1bF57B40EB7Bc | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listicmmessagesrequest.md b/data/docs/models/operations/listicmmessagesrequest.md deleted file mode 100644 index 8cb47c6c..00000000 --- a/data/docs/models/operations/listicmmessagesrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# ListIcmMessagesRequest - -## Example Usage - -```typescript -import { ListIcmMessagesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListIcmMessagesRequest = { - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `sourceBlockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from. | 2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY | -| `destinationBlockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to. | yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp | -| `blockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with. | | -| `to` | *string* | :heavy_minus_sign: | The address of the recipient of the ICM message. | 0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC | -| `from` | *string* | :heavy_minus_sign: | The address of the sender of the ICM message. | 0x321eDA69247566D662178feE695C7026c604Cd94 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listicmmessagesresponse.md b/data/docs/models/operations/listicmmessagesresponse.md deleted file mode 100644 index 8b73a514..00000000 --- a/data/docs/models/operations/listicmmessagesresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListIcmMessagesResponse - -## Example Usage - -```typescript -import { ListIcmMessagesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListIcmMessagesResponse = { - result: { - messages: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `result` | [components.ListIcmMessagesResponse](../../models/components/listicmmessagesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listinternaltransactionsglobals.md b/data/docs/models/operations/listinternaltransactionsglobals.md deleted file mode 100644 index 6bec3752..00000000 --- a/data/docs/models/operations/listinternaltransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListInternalTransactionsGlobals - -## Example Usage - -```typescript -import { ListInternalTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListInternalTransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listinternaltransactionsrequest.md b/data/docs/models/operations/listinternaltransactionsrequest.md deleted file mode 100644 index 9d2e574c..00000000 --- a/data/docs/models/operations/listinternaltransactionsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListInternalTransactionsRequest - -## Example Usage - -```typescript -import { ListInternalTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListInternalTransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listinternaltransactionsresponse.md b/data/docs/models/operations/listinternaltransactionsresponse.md deleted file mode 100644 index 9eaf388d..00000000 --- a/data/docs/models/operations/listinternaltransactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListInternalTransactionsResponse - -## Example Usage - -```typescript -import { ListInternalTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListInternalTransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `result` | [components.ListInternalTransactionsResponse](../../models/components/listinternaltransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listl1validatorsglobals.md b/data/docs/models/operations/listl1validatorsglobals.md deleted file mode 100644 index 6228b423..00000000 --- a/data/docs/models/operations/listl1validatorsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListL1ValidatorsGlobals - -## Example Usage - -```typescript -import { ListL1ValidatorsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListL1ValidatorsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listl1validatorsrequest.md b/data/docs/models/operations/listl1validatorsrequest.md deleted file mode 100644 index c3cd8cf9..00000000 --- a/data/docs/models/operations/listl1validatorsrequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# ListL1ValidatorsRequest - -## Example Usage - -```typescript -import { ListL1ValidatorsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListL1ValidatorsRequest = { - l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX", - nodeId: "NodeID-111111111111111111116DBWJs", - subnetId: "11111111111111111111111111111111LpoYY", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `l1ValidationId` | *string* | :heavy_minus_sign: | The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned. | BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX | -| `includeInactiveL1Validators` | *boolean* | :heavy_minus_sign: | N/A | | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeId` | *string* | :heavy_minus_sign: | A valid node ID in format 'NodeID-HASH'. | NodeID-111111111111111111116DBWJs | -| `subnetId` | *any* | :heavy_minus_sign: | The subnet ID to filter by. If not provided, then all subnets will be returned. | 11111111111111111111111111111111LpoYY | \ No newline at end of file diff --git a/data/docs/models/operations/listl1validatorsresponse.md b/data/docs/models/operations/listl1validatorsresponse.md deleted file mode 100644 index 77652aa6..00000000 --- a/data/docs/models/operations/listl1validatorsresponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# ListL1ValidatorsResponse - -## Example Usage - -```typescript -import { ListL1ValidatorsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListL1ValidatorsResponse = { - result: { - validators: [ - { - validationId: "", - validationIdHex: "", - nodeId: "", - subnetId: "", - weight: 5368.44, - remainingBalance: 7020.98, - creationTimestamp: 5485.65, - blsCredentials: {}, - remainingBalanceOwner: { - addresses: [ - "", - "", - ], - threshold: 7038.52, - }, - deactivationOwner: { - addresses: [ - "", - ], - threshold: 4642.49, - }, - }, - ], - blockHeight: "", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `result` | [components.ListL1ValidatorsResponse](../../models/components/listl1validatorsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestblocksallchainsrequest.md b/data/docs/models/operations/listlatestblocksallchainsrequest.md deleted file mode 100644 index f870695e..00000000 --- a/data/docs/models/operations/listlatestblocksallchainsrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListLatestBlocksAllChainsRequest - -## Example Usage - -```typescript -import { ListLatestBlocksAllChainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestBlocksAllChainsRequest = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestblocksallchainsresponse.md b/data/docs/models/operations/listlatestblocksallchainsresponse.md deleted file mode 100644 index 277fa10d..00000000 --- a/data/docs/models/operations/listlatestblocksallchainsresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# ListLatestBlocksAllChainsResponse - -## Example Usage - -```typescript -import { ListLatestBlocksAllChainsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestBlocksAllChainsResponse = { - result: { - blocks: [ - { - chainId: "43114", - blockNumber: "339", - blockTimestamp: 1648672486, - blockHash: - "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - txCount: 6022.29, - baseFee: "", - gasUsed: "", - gasLimit: "", - gasCost: "", - parentHash: "", - feesSpent: "", - cumulativeTransactions: "", - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `result` | [components.ListEvmBlocksResponse](../../models/components/listevmblocksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworkblocksglobals.md b/data/docs/models/operations/listlatestprimarynetworkblocksglobals.md deleted file mode 100644 index 37118946..00000000 --- a/data/docs/models/operations/listlatestprimarynetworkblocksglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListLatestPrimaryNetworkBlocksGlobals - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkBlocksGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkBlocksGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworkblocksrequest.md b/data/docs/models/operations/listlatestprimarynetworkblocksrequest.md deleted file mode 100644 index 51ef3578..00000000 --- a/data/docs/models/operations/listlatestprimarynetworkblocksrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListLatestPrimaryNetworkBlocksRequest - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkBlocksRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkBlocksRequest = { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworkblocksresponse.md b/data/docs/models/operations/listlatestprimarynetworkblocksresponse.md deleted file mode 100644 index 04a20b3f..00000000 --- a/data/docs/models/operations/listlatestprimarynetworkblocksresponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListLatestPrimaryNetworkBlocksResponse - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkBlocksResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkBlocksResponse = { - result: { - blocks: [ - { - blockNumber: "", - blockHash: "", - parentHash: "", - blockTimestamp: 5630.13, - blockType: "", - txCount: 7319.16, - transactions: [ - "", - "", - ], - blockSizeBytes: 4652.32, - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `result` | [components.ListPrimaryNetworkBlocksResponse](../../models/components/listprimarynetworkblocksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworktransactionsglobals.md b/data/docs/models/operations/listlatestprimarynetworktransactionsglobals.md deleted file mode 100644 index 3e6a2d7d..00000000 --- a/data/docs/models/operations/listlatestprimarynetworktransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListLatestPrimaryNetworkTransactionsGlobals - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkTransactionsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworktransactionsrequest.md b/data/docs/models/operations/listlatestprimarynetworktransactionsrequest.md deleted file mode 100644 index 2a5ed9ea..00000000 --- a/data/docs/models/operations/listlatestprimarynetworktransactionsrequest.md +++ /dev/null @@ -1,33 +0,0 @@ -# ListLatestPrimaryNetworkTransactionsRequest - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkTransactionsRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups. | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `l1ValidationId` | *string* | :heavy_minus_sign: | N/A | | -| `txTypes` | [components.PrimaryNetworkTxType](../../models/components/primarynetworktxtype.md)[] | :heavy_minus_sign: | Query param for filtering items based on transaction types. | [
"AddValidatorTx"
] | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworktransactionsresponse.md b/data/docs/models/operations/listlatestprimarynetworktransactionsresponse.md deleted file mode 100644 index 378ac779..00000000 --- a/data/docs/models/operations/listlatestprimarynetworktransactionsresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListLatestPrimaryNetworkTransactionsResponse - -## Example Usage - -```typescript -import { ListLatestPrimaryNetworkTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestPrimaryNetworkTransactionsResponse = { - result: { - transactions: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `result` | *operations.ListLatestPrimaryNetworkTransactionsResponseBody* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md b/data/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md deleted file mode 100644 index ffbd9c23..00000000 --- a/data/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md +++ /dev/null @@ -1,122 +0,0 @@ -# ListLatestPrimaryNetworkTransactionsResponseBody - -Successful response - - -## Supported Types - -### `components.ListPChainTransactionsResponse` - -```typescript -const value: components.ListPChainTransactionsResponse = { - transactions: [ - { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - txType: "ExportTx", - blockTimestamp: 1648672486, - blockNumber: "", - blockHash: "", - consumedUtxos: [], - emittedUtxos: [], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - value: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "secp256k1", - amount: "5001000", - }, - ], - amountBurned: [], - amountStaked: [], - amountL1ValidatorBalanceBurned: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - subnetOwnershipInfo: { - locktime: 0, - threshold: 1, - addresses: [ - "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", - ], - }, - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -### `components.ListXChainTransactionsResponse` - -```typescript -const value: components.ListXChainTransactionsResponse = { - transactions: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - -### `components.ListCChainAtomicTransactionsResponse` - -```typescript -const value: components.ListCChainAtomicTransactionsResponse = { - transactions: [ - { - txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", - blockHeight: 1005, - blockHash: - "0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee", - timestamp: 1600762738, - memo: "0x546865204176616c616e6368652050726f6a656374", - amountUnlocked: [], - amountCreated: [ - { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - ], - sourceChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - destinationChain: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - txType: "ExportTx", - evmInputs: [ - { - fromAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", - asset: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - credentials: [], - }, - ], - emittedUtxos: [], - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, -}; -``` - diff --git a/data/docs/models/operations/listlatesttransactionsallchainsrequest.md b/data/docs/models/operations/listlatesttransactionsallchainsrequest.md deleted file mode 100644 index 91e2bc1e..00000000 --- a/data/docs/models/operations/listlatesttransactionsallchainsrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ListLatestTransactionsAllChainsRequest - -## Example Usage - -```typescript -import { ListLatestTransactionsAllChainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestTransactionsAllChainsRequest = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `status` | [components.TransactionStatus](../../models/components/transactionstatus.md) | :heavy_minus_sign: | A status filter for listed transactions. | | \ No newline at end of file diff --git a/data/docs/models/operations/listlatesttransactionsallchainsresponse.md b/data/docs/models/operations/listlatesttransactionsallchainsresponse.md deleted file mode 100644 index 354fa77a..00000000 --- a/data/docs/models/operations/listlatesttransactionsallchainsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListLatestTransactionsAllChainsResponse - -## Example Usage - -```typescript -import { ListLatestTransactionsAllChainsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestTransactionsAllChainsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListNativeTransactionsResponse](../../models/components/listnativetransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatesttransactionsglobals.md b/data/docs/models/operations/listlatesttransactionsglobals.md deleted file mode 100644 index 85f9571f..00000000 --- a/data/docs/models/operations/listlatesttransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListLatestTransactionsGlobals - -## Example Usage - -```typescript -import { ListLatestTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestTransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listlatesttransactionsrequest.md b/data/docs/models/operations/listlatesttransactionsrequest.md deleted file mode 100644 index 00b499a6..00000000 --- a/data/docs/models/operations/listlatesttransactionsrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListLatestTransactionsRequest - -## Example Usage - -```typescript -import { ListLatestTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestTransactionsRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `status` | [components.TransactionStatus](../../models/components/transactionstatus.md) | :heavy_minus_sign: | A status filter for listed transactions. | | \ No newline at end of file diff --git a/data/docs/models/operations/listlatesttransactionsresponse.md b/data/docs/models/operations/listlatesttransactionsresponse.md deleted file mode 100644 index 51ca5f90..00000000 --- a/data/docs/models/operations/listlatesttransactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListLatestTransactionsResponse - -## Example Usage - -```typescript -import { ListLatestTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestTransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListNativeTransactionsResponse](../../models/components/listnativetransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestxchainverticesglobals.md b/data/docs/models/operations/listlatestxchainverticesglobals.md deleted file mode 100644 index 3265d495..00000000 --- a/data/docs/models/operations/listlatestxchainverticesglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListLatestXChainVerticesGlobals - -## Example Usage - -```typescript -import { ListLatestXChainVerticesGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestXChainVerticesGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestxchainverticesrequest.md b/data/docs/models/operations/listlatestxchainverticesrequest.md deleted file mode 100644 index 9e34223f..00000000 --- a/data/docs/models/operations/listlatestxchainverticesrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ListLatestXChainVerticesRequest - -## Example Usage - -```typescript -import { ListLatestXChainVerticesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestXChainVerticesRequest = { - blockchainId: "x-chain", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.XChainId](../../models/components/xchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | x-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listlatestxchainverticesresponse.md b/data/docs/models/operations/listlatestxchainverticesresponse.md deleted file mode 100644 index 2aa4d241..00000000 --- a/data/docs/models/operations/listlatestxchainverticesresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# ListLatestXChainVerticesResponse - -## Example Usage - -```typescript -import { ListLatestXChainVerticesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListLatestXChainVerticesResponse = { - result: { - vertices: [], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [components.ListXChainVerticesResponse](../../models/components/listxchainverticesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listnativetransactionsglobals.md b/data/docs/models/operations/listnativetransactionsglobals.md deleted file mode 100644 index 55b74ff8..00000000 --- a/data/docs/models/operations/listnativetransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListNativeTransactionsGlobals - -## Example Usage - -```typescript -import { ListNativeTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListNativeTransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listnativetransactionsrequest.md b/data/docs/models/operations/listnativetransactionsrequest.md deleted file mode 100644 index 7ecab865..00000000 --- a/data/docs/models/operations/listnativetransactionsrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListNativeTransactionsRequest - -## Example Usage - -```typescript -import { ListNativeTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListNativeTransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listnativetransactionsresponse.md b/data/docs/models/operations/listnativetransactionsresponse.md deleted file mode 100644 index c80293f1..00000000 --- a/data/docs/models/operations/listnativetransactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListNativeTransactionsResponse - -## Example Usage - -```typescript -import { ListNativeTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListNativeTransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListNativeTransactionsResponse](../../models/components/listnativetransactionsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listpendingprimarynetworkrewardsglobals.md b/data/docs/models/operations/listpendingprimarynetworkrewardsglobals.md deleted file mode 100644 index d9e737d0..00000000 --- a/data/docs/models/operations/listpendingprimarynetworkrewardsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListPendingPrimaryNetworkRewardsGlobals - -## Example Usage - -```typescript -import { ListPendingPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListPendingPrimaryNetworkRewardsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listpendingprimarynetworkrewardsrequest.md b/data/docs/models/operations/listpendingprimarynetworkrewardsrequest.md deleted file mode 100644 index 05b89140..00000000 --- a/data/docs/models/operations/listpendingprimarynetworkrewardsrequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# ListPendingPrimaryNetworkRewardsRequest - -## Example Usage - -```typescript -import { ListPendingPrimaryNetworkRewardsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListPendingPrimaryNetworkRewardsRequest = { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: - "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required. | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeIds` | *string* | :heavy_minus_sign: | A comma separated list of node ids to filter by. One of addresses or nodeIds is required. | NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listpendingprimarynetworkrewardsresponse.md b/data/docs/models/operations/listpendingprimarynetworkrewardsresponse.md deleted file mode 100644 index 7055922c..00000000 --- a/data/docs/models/operations/listpendingprimarynetworkrewardsresponse.md +++ /dev/null @@ -1,40 +0,0 @@ -# ListPendingPrimaryNetworkRewardsResponse - -## Example Usage - -```typescript -import { ListPendingPrimaryNetworkRewardsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListPendingPrimaryNetworkRewardsResponse = { - result: { - pendingRewards: [ - { - addresses: [ - "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - ], - txHash: "", - amountStaked: "", - nodeId: "", - startTimestamp: 3021.53, - endTimestamp: 7116.81, - rewardType: "VALIDATOR", - progress: 8716.72, - estimatedReward: { - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - name: "Avalanche", - symbol: "AVAX", - denomination: 9, - type: "nft", - amount: "5001000", - }, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [components.ListPendingRewardsResponse](../../models/components/listpendingrewardsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md b/data/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md deleted file mode 100644 index ccb3773a..00000000 --- a/data/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListPrimaryNetworkBlocksByNodeIdGlobals - -## Example Usage - -```typescript -import { ListPrimaryNetworkBlocksByNodeIdGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListPrimaryNetworkBlocksByNodeIdGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md b/data/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md deleted file mode 100644 index b16bcf19..00000000 --- a/data/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# ListPrimaryNetworkBlocksByNodeIdRequest - -## Example Usage - -```typescript -import { ListPrimaryNetworkBlocksByNodeIdRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListPrimaryNetworkBlocksByNodeIdRequest = { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - nodeId: "NodeID-111111111111111111116DBWJs", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `blockchainId` | [components.BlockchainId](../../models/components/blockchainid.md) | :heavy_check_mark: | A primary network blockchain id or alias. | p-chain | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeId` | *string* | :heavy_check_mark: | A primary network (P or X chain) nodeId. | NodeID-111111111111111111116DBWJs | \ No newline at end of file diff --git a/data/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md b/data/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md deleted file mode 100644 index c3351152..00000000 --- a/data/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md +++ /dev/null @@ -1,37 +0,0 @@ -# ListPrimaryNetworkBlocksByNodeIdResponse - -## Example Usage - -```typescript -import { ListPrimaryNetworkBlocksByNodeIdResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListPrimaryNetworkBlocksByNodeIdResponse = { - result: { - blocks: [ - { - blockNumber: "", - blockHash: "", - parentHash: "", - blockTimestamp: 5630.13, - blockType: "", - txCount: 7319.16, - transactions: [ - "", - "", - ], - blockSizeBytes: 4652.32, - }, - ], - chainInfo: { - chainName: "c-chain", - network: "mainnet", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `result` | [components.ListPrimaryNetworkBlocksResponse](../../models/components/listprimarynetworkblocksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listsubnetsglobals.md b/data/docs/models/operations/listsubnetsglobals.md deleted file mode 100644 index 405647f5..00000000 --- a/data/docs/models/operations/listsubnetsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListSubnetsGlobals - -## Example Usage - -```typescript -import { ListSubnetsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListSubnetsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listsubnetsrequest.md b/data/docs/models/operations/listsubnetsrequest.md deleted file mode 100644 index a0e1d1d4..00000000 --- a/data/docs/models/operations/listsubnetsrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListSubnetsRequest - -## Example Usage - -```typescript -import { ListSubnetsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListSubnetsRequest = { - pageSize: 10, - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 10000. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listsubnetsresponse.md b/data/docs/models/operations/listsubnetsresponse.md deleted file mode 100644 index 2d162010..00000000 --- a/data/docs/models/operations/listsubnetsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListSubnetsResponse - -## Example Usage - -```typescript -import { ListSubnetsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListSubnetsResponse = { - result: { - subnets: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `result` | [components.ListSubnetsResponse](../../models/components/listsubnetsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listteleportermessagesbyaddressrequest.md b/data/docs/models/operations/listteleportermessagesbyaddressrequest.md deleted file mode 100644 index 391787a0..00000000 --- a/data/docs/models/operations/listteleportermessagesbyaddressrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# ListTeleporterMessagesByAddressRequest - -## Example Usage - -```typescript -import { ListTeleporterMessagesByAddressRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListTeleporterMessagesByAddressRequest = { - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `address` | *string* | :heavy_check_mark: | An EVM address. | 0x8578AE7723751446B196bD5124e1bF57B40EB7Bc | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listteleportermessagesrequest.md b/data/docs/models/operations/listteleportermessagesrequest.md deleted file mode 100644 index 7b673dfe..00000000 --- a/data/docs/models/operations/listteleportermessagesrequest.md +++ /dev/null @@ -1,28 +0,0 @@ -# ListTeleporterMessagesRequest - -## Example Usage - -```typescript -import { ListTeleporterMessagesRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListTeleporterMessagesRequest = { - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `sourceBlockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from. | 2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY | -| `destinationBlockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to. | yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp | -| `blockchainId` | *string* | :heavy_minus_sign: | The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with. | | -| `to` | *string* | :heavy_minus_sign: | The address of the recipient of the teleporter message. | 0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC | -| `from` | *string* | :heavy_minus_sign: | The address of the sender of the teleporter message. | 0x321eDA69247566D662178feE695C7026c604Cd94 | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listteleportermessagesresponse.md b/data/docs/models/operations/listteleportermessagesresponse.md deleted file mode 100644 index 7b0d186d..00000000 --- a/data/docs/models/operations/listteleportermessagesresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListTeleporterMessagesResponse - -## Example Usage - -```typescript -import { ListTeleporterMessagesResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListTeleporterMessagesResponse = { - result: { - messages: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListTeleporterMessagesResponse](../../models/components/listteleportermessagesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listtokensglobals.md b/data/docs/models/operations/listtokensglobals.md deleted file mode 100644 index d1af06cf..00000000 --- a/data/docs/models/operations/listtokensglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListTokensGlobals - -## Example Usage - -```typescript -import { ListTokensGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListTokensGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listtokensrequest.md b/data/docs/models/operations/listtokensrequest.md deleted file mode 100644 index 5eeea3e5..00000000 --- a/data/docs/models/operations/listtokensrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ListTokensRequest - -## Example Usage - -```typescript -import { ListTokensRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListTokensRequest = { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | \ No newline at end of file diff --git a/data/docs/models/operations/listtokensresponse.md b/data/docs/models/operations/listtokensresponse.md deleted file mode 100644 index d12e9220..00000000 --- a/data/docs/models/operations/listtokensresponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# ListTokensResponse - -## Example Usage - -```typescript -import { ListTokensResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListTokensResponse = { - result: { - tokens: [ - { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", - tokenId: "", - tokenUri: "https://babyish-volleyball.info", - metadata: { - indexStatus: "INVALID_METADATA", - }, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `result` | [components.ListNftTokens](../../models/components/listnfttokens.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listtransactionsglobals.md b/data/docs/models/operations/listtransactionsglobals.md deleted file mode 100644 index cd610f2f..00000000 --- a/data/docs/models/operations/listtransactionsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListTransactionsGlobals - -## Example Usage - -```typescript -import { ListTransactionsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransactionsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listtransactionsrequest.md b/data/docs/models/operations/listtransactionsrequest.md deleted file mode 100644 index 20a4ef81..00000000 --- a/data/docs/models/operations/listtransactionsrequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# ListTransactionsRequest - -## Example Usage - -```typescript -import { ListTransactionsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransactionsRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - sortOrder: "asc", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | \ No newline at end of file diff --git a/data/docs/models/operations/listtransactionsresponse.md b/data/docs/models/operations/listtransactionsresponse.md deleted file mode 100644 index ebde6ba1..00000000 --- a/data/docs/models/operations/listtransactionsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListTransactionsResponse - -## Example Usage - -```typescript -import { ListTransactionsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransactionsResponse = { - result: { - transactions: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ListTransactionDetailsResponse](../../models/components/listtransactiondetailsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listtransfersglobals.md b/data/docs/models/operations/listtransfersglobals.md deleted file mode 100644 index 0ad83b04..00000000 --- a/data/docs/models/operations/listtransfersglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListTransfersGlobals - -## Example Usage - -```typescript -import { ListTransfersGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransfersGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/listtransfersrequest.md b/data/docs/models/operations/listtransfersrequest.md deleted file mode 100644 index 6677eb90..00000000 --- a/data/docs/models/operations/listtransfersrequest.md +++ /dev/null @@ -1,24 +0,0 @@ -# ListTransfersRequest - -## Example Usage - -```typescript -import { ListTransfersRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransfersRequest = { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `startBlock` | *number* | :heavy_minus_sign: | The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. | 6479329 | -| `endBlock` | *number* | :heavy_minus_sign: | The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. | 6479330 | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | A wallet address. | 0x71C7656EC7ab88b098defB751B7401B5f6d8976F | \ No newline at end of file diff --git a/data/docs/models/operations/listtransfersresponse.md b/data/docs/models/operations/listtransfersresponse.md deleted file mode 100644 index bdc278a7..00000000 --- a/data/docs/models/operations/listtransfersresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListTransfersResponse - -## Example Usage - -```typescript -import { ListTransfersResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListTransfersResponse = { - result: { - transfers: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `result` | [components.ListTransfersResponse](../../models/components/listtransfersresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/listvalidatorsglobals.md b/data/docs/models/operations/listvalidatorsglobals.md deleted file mode 100644 index 1f3cf041..00000000 --- a/data/docs/models/operations/listvalidatorsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListValidatorsGlobals - -## Example Usage - -```typescript -import { ListValidatorsGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ListValidatorsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/data/docs/models/operations/listvalidatorsrequest.md b/data/docs/models/operations/listvalidatorsrequest.md deleted file mode 100644 index 4879d35a..00000000 --- a/data/docs/models/operations/listvalidatorsrequest.md +++ /dev/null @@ -1,44 +0,0 @@ -# ListValidatorsRequest - -## Example Usage - -```typescript -import { ListValidatorsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ListValidatorsRequest = { - nodeIds: - "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - validationStatus: "completed", - minDelegationCapacity: "0", - maxDelegationCapacity: "720000000000000000", - minTimeRemaining: 0, - maxTimeRemaining: 2147483647, - minFeePercentage: 2, - maxFeePercentage: 100, - minUptimePerformance: 90, - maxUptimePerformance: 100, - subnetId: "11111111111111111111111111111111LpoYY", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `nodeIds` | *string* | :heavy_minus_sign: | A comma separated list of node ids to filter by. Supports substring matching. | NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs | -| `sortBy` | [components.SortByOption](../../models/components/sortbyoption.md) | :heavy_minus_sign: | Which property to sort by, in conjunction with sortOrder.

Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option. | | -| `sortOrder` | [components.SortOrder](../../models/components/sortorder.md) | :heavy_minus_sign: | The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. | asc | -| `validationStatus` | [components.ValidationStatusType](../../models/components/validationstatustype.md) | :heavy_minus_sign: | Validation status of the node. | completed | -| `minDelegationCapacity` | *string* | :heavy_minus_sign: | The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000 | 0 | -| `maxDelegationCapacity` | *string* | :heavy_minus_sign: | The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000. | 720000000000000000 | -| `minTimeRemaining` | *number* | :heavy_minus_sign: | The minimum validation time remaining, in seconds, used to filter the set of nodes being returned. | 0 | -| `maxTimeRemaining` | *number* | :heavy_minus_sign: | The maximum validation time remaining, in seconds, used to filter the set of nodes being returned. | 2147483647 | -| `minFeePercentage` | *number* | :heavy_minus_sign: | The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec. | 2 | -| `maxFeePercentage` | *number* | :heavy_minus_sign: | The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0. | 100 | -| `minUptimePerformance` | *number* | :heavy_minus_sign: | The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90. | 90 | -| `maxUptimePerformance` | *number* | :heavy_minus_sign: | The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100. | 100 | -| `subnetId` | *any* | :heavy_minus_sign: | The subnet ID to filter by. If not provided, then all subnets will be returned. | 11111111111111111111111111111111LpoYY | \ No newline at end of file diff --git a/data/docs/models/operations/listvalidatorsresponse.md b/data/docs/models/operations/listvalidatorsresponse.md deleted file mode 100644 index 6c619f0d..00000000 --- a/data/docs/models/operations/listvalidatorsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListValidatorsResponse - -## Example Usage - -```typescript -import { ListValidatorsResponse } from "@avalanche-sdk/data/models/operations"; - -let value: ListValidatorsResponse = { - result: { - validators: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [components.ListValidatorDetailsResponse](../../models/components/listvalidatordetailsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/data/docs/models/operations/posttransactionexportjobrequest.md b/data/docs/models/operations/posttransactionexportjobrequest.md deleted file mode 100644 index a1da64e0..00000000 --- a/data/docs/models/operations/posttransactionexportjobrequest.md +++ /dev/null @@ -1,40 +0,0 @@ -# PostTransactionExportJobRequest - - -## Supported Types - -### `components.CreateEvmTransactionExportRequest` - -```typescript -const value: components.CreateEvmTransactionExportRequest = { - type: "TRANSACTION_EXPORT_EVM", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - addresses: [ - "", - "", - "", - ], - includeChains: [ - "43114", - ], - }, -}; -``` - -### `components.CreatePrimaryNetworkTransactionExportRequest` - -```typescript -const value: components.CreatePrimaryNetworkTransactionExportRequest = { - type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - includeChains: [ - "p-chain", - ], - }, -}; -``` - diff --git a/data/docs/models/operations/reindexnftglobals.md b/data/docs/models/operations/reindexnftglobals.md deleted file mode 100644 index e35e595c..00000000 --- a/data/docs/models/operations/reindexnftglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# ReindexNftGlobals - -## Example Usage - -```typescript -import { ReindexNftGlobals } from "@avalanche-sdk/data/models/operations"; - -let value: ReindexNftGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/data/docs/models/operations/reindexnftrequest.md b/data/docs/models/operations/reindexnftrequest.md deleted file mode 100644 index 122a9cbe..00000000 --- a/data/docs/models/operations/reindexnftrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# ReindexNftRequest - -## Example Usage - -```typescript -import { ReindexNftRequest } from "@avalanche-sdk/data/models/operations"; - -let value: ReindexNftRequest = { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | -| `tokenId` | *string* | :heavy_check_mark: | TokenId on the contract | 145 | \ No newline at end of file diff --git a/data/docs/models/operations/supportedchainsrequest.md b/data/docs/models/operations/supportedchainsrequest.md deleted file mode 100644 index 87fb4c8c..00000000 --- a/data/docs/models/operations/supportedchainsrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# SupportedChainsRequest - -## Example Usage - -```typescript -import { SupportedChainsRequest } from "@avalanche-sdk/data/models/operations"; - -let value: SupportedChainsRequest = { - network: "mainnet", - feature: "nftIndexing", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `feature` | [components.ApiFeature](../../models/components/apifeature.md) | :heavy_minus_sign: | Filter by feature. | nftIndexing | \ No newline at end of file diff --git a/data/docs/sdks/addressbalances/README.md b/data/docs/sdks/addressbalances/README.md deleted file mode 100644 index 0ea2789d..00000000 --- a/data/docs/sdks/addressbalances/README.md +++ /dev/null @@ -1,465 +0,0 @@ -# AddressBalances -(*data.evm.address.balances*) - -## Overview - -### Available Operations - -* [getNative](#getnative) - Get native token balance -* [listErc20](#listerc20) - List ERC-20 balances -* [listErc721](#listerc721) - List ERC-721 balances -* [listErc1155](#listerc1155) - List ERC-1155 balances -* [listCollectibles](#listcollectibles) - List collectible (ERC-721/ERC-1155) balances - -## getNative - -Gets native token balance of a wallet address. - -Balance at a given block can be retrieved with the `blockNumber` parameter. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.getNative({ - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - currency: "usd", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressBalancesGetNative } from "@avalanche-sdk/data/funcs/dataEvmAddressBalancesGetNative.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressBalancesGetNative(avalanche, { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - currency: "usd", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmAddressBalancesGetNative failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetNativeBalanceRequest](../../models/operations/getnativebalancerequest.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. | - -### Response - -**Promise\<[components.GetNativeBalanceResponse](../../models/components/getnativebalanceresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc20 - -Lists ERC-20 token balances of a wallet address. - -Balance at a given block can be retrieved with the `blockNumber` parameter. - -Balance for specific contracts can be retrieved with the `contractAddresses` parameter. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.listErc20({ - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddresses: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", - currency: "usd", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressBalancesListErc20 } from "@avalanche-sdk/data/funcs/dataEvmAddressBalancesListErc20.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressBalancesListErc20(avalanche, { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddresses: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB", - currency: "usd", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressBalancesListErc20 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc20BalancesRequest](../../models/operations/listerc20balancesrequest.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. | - -### Response - -**Promise\<[operations.ListErc20BalancesResponse](../../models/operations/listerc20balancesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc721 - -Lists ERC-721 token balances of a wallet address. - -Balance for a specific contract can be retrieved with the `contractAddress` parameter. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.listErc721({ - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressBalancesListErc721 } from "@avalanche-sdk/data/funcs/dataEvmAddressBalancesListErc721.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressBalancesListErc721(avalanche, { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressBalancesListErc721 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc721BalancesRequest](../../models/operations/listerc721balancesrequest.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. | - -### Response - -**Promise\<[operations.ListErc721BalancesResponse](../../models/operations/listerc721balancesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc1155 - -Lists ERC-1155 token balances of a wallet address. - -Balance at a given block can be retrieved with the `blockNumber` parameter. - -Balance for a specific contract can be retrieved with the `contractAddress` parameter. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.listErc1155({ - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressBalancesListErc1155 } from "@avalanche-sdk/data/funcs/dataEvmAddressBalancesListErc1155.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressBalancesListErc1155(avalanche, { - blockNumber: "6479329", - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressBalancesListErc1155 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc1155BalancesRequest](../../models/operations/listerc1155balancesrequest.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. | - -### Response - -**Promise\<[operations.ListErc1155BalancesResponse](../../models/operations/listerc1155balancesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listCollectibles - -Lists ERC-721 and ERC-1155 token balances of a wallet address. - -Balance for a specific contract can be retrieved with the `contractAddress` parameter. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.balances.listCollectibles({ - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressBalancesListCollectibles } from "@avalanche-sdk/data/funcs/dataEvmAddressBalancesListCollectibles.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressBalancesListCollectibles(avalanche, { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - contractAddress: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressBalancesListCollectibles failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListCollectibleBalancesRequest](../../models/operations/listcollectiblebalancesrequest.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. | - -### Response - -**Promise\<[operations.ListCollectibleBalancesResponse](../../models/operations/listcollectiblebalancesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/addresschains/README.md b/data/docs/sdks/addresschains/README.md deleted file mode 100644 index 4fd5bd62..00000000 --- a/data/docs/sdks/addresschains/README.md +++ /dev/null @@ -1,85 +0,0 @@ -# AddressChains -(*data.evm.address.chains*) - -## Overview - -### Available Operations - -* [list](#list) - List all chains associated with a given address - -## list - -Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.address.chains.list({ - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressChainsList } from "@avalanche-sdk/data/funcs/dataEvmAddressChainsList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmAddressChainsList(avalanche, { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmAddressChainsList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAddressChainsRequest](../../models/operations/listaddresschainsrequest.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. | - -### Response - -**Promise\<[components.ListAddressChainsResponse](../../models/components/listaddresschainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/addresscontracts/README.md b/data/docs/sdks/addresscontracts/README.md deleted file mode 100644 index 259920f1..00000000 --- a/data/docs/sdks/addresscontracts/README.md +++ /dev/null @@ -1,93 +0,0 @@ -# AddressContracts -(*data.evm.address.contracts*) - -## Overview - -### Available Operations - -* [listDeployments](#listdeployments) - List deployed contracts - -## listDeployments - -Lists all contracts deployed by the given address. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.contracts.listDeployments({ - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressContractsListDeployments } from "@avalanche-sdk/data/funcs/dataEvmAddressContractsListDeployments.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressContractsListDeployments(avalanche, { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressContractsListDeployments failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListContractDeploymentsRequest](../../models/operations/listcontractdeploymentsrequest.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. | - -### Response - -**Promise\<[operations.ListContractDeploymentsResponse](../../models/operations/listcontractdeploymentsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/addresstransactions/README.md b/data/docs/sdks/addresstransactions/README.md deleted file mode 100644 index f2d12547..00000000 --- a/data/docs/sdks/addresstransactions/README.md +++ /dev/null @@ -1,553 +0,0 @@ -# AddressTransactions -(*data.evm.address.transactions*) - -## Overview - -### Available Operations - -* [list](#list) - List transactions -* [listNative](#listnative) - List native transactions -* [listErc20](#listerc20) - List ERC-20 transfers -* [listErc721](#listerc721) - List ERC-721 transfers -* [listErc1155](#listerc1155) - List ERC-1155 transfers -* [listInternal](#listinternal) - List internal transactions - -## list - -Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint. - -Filterable by block ranges. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.list({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsList } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsList(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTransactionsRequest](../../models/operations/listtransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListTransactionsResponse](../../models/operations/listtransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listNative - -Lists native transactions for an address. Filterable by block range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.listNative({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsListNative } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsListNative.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsListNative(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsListNative failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListNativeTransactionsRequest](../../models/operations/listnativetransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListNativeTransactionsResponse](../../models/operations/listnativetransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc20 - -Lists ERC-20 transfers for an address. Filterable by block range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.listErc20({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsListErc20 } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsListErc20.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsListErc20(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsListErc20 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc20TransactionsRequest](../../models/operations/listerc20transactionsrequest.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. | - -### Response - -**Promise\<[operations.ListErc20TransactionsResponse](../../models/operations/listerc20transactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc721 - -Lists ERC-721 transfers for an address. Filterable by block range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.listErc721({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsListErc721 } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsListErc721.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsListErc721(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsListErc721 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc721TransactionsRequest](../../models/operations/listerc721transactionsrequest.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. | - -### Response - -**Promise\<[operations.ListErc721TransactionsResponse](../../models/operations/listerc721transactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listErc1155 - -Lists ERC-1155 transfers for an address. Filterable by block range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.listErc1155({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsListErc1155 } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsListErc1155.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsListErc1155(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsListErc1155 failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListErc1155TransactionsRequest](../../models/operations/listerc1155transactionsrequest.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. | - -### Response - -**Promise\<[operations.ListErc1155TransactionsResponse](../../models/operations/listerc1155transactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listInternal - -Returns a list of internal transactions for an address and chain. Filterable by block range. - -Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.address.transactions.listInternal({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmAddressTransactionsListInternal } from "@avalanche-sdk/data/funcs/dataEvmAddressTransactionsListInternal.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmAddressTransactionsListInternal(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmAddressTransactionsListInternal failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListInternalTransactionsRequest](../../models/operations/listinternaltransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListInternalTransactionsResponse](../../models/operations/listinternaltransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/avalanche/README.md b/data/docs/sdks/avalanche/README.md deleted file mode 100644 index e0d18582..00000000 --- a/data/docs/sdks/avalanche/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Avalanche SDK - -## Overview - -Data API: The Data API provides web3 application developers with multi-chain data related to Avalanche's primary network, Avalanche subnets, and Ethereum. With Data API, you can easily build products that leverage real-time and historical transaction and transfer history, native and token balances, and various types of token metadata. The API is in Beta and may be subject to change.

If you have feedback or feature requests for the API, please submit them here. Bug reports can be submitted here, and any potential security issues can be reported here. - -### Available Operations diff --git a/data/docs/sdks/chains/README.md b/data/docs/sdks/chains/README.md deleted file mode 100644 index b658e60e..00000000 --- a/data/docs/sdks/chains/README.md +++ /dev/null @@ -1,425 +0,0 @@ -# Chains -(*data.evm.chains*) - -## Overview - -### Available Operations - -* [list](#list) - List chains -* [get](#get) - Get chain information -* [~~getAddressChains~~](#getaddresschains) - **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . :warning: **Deprecated** -* [~~listAllLatestTransactions~~](#listalllatesttransactions) - **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . :warning: **Deprecated** -* [~~listAllLatestBlocks~~](#listalllatestblocks) - **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . :warning: **Deprecated** - -## list - -Lists the AvaCloud supported EVM-compatible chains. Filterable by network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.chains.list({ - network: "mainnet", - feature: "nftIndexing", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmChainsList } from "@avalanche-sdk/data/funcs/dataEvmChainsList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmChainsList(avalanche, { - network: "mainnet", - feature: "nftIndexing", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmChainsList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.SupportedChainsRequest](../../models/operations/supportedchainsrequest.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. | - -### Response - -**Promise\<[components.ListChainsResponse](../../models/components/listchainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Gets chain information for the EVM-compatible chain if supported by AvaCloud. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.chains.get({}); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmChainsGet } from "@avalanche-sdk/data/funcs/dataEvmChainsGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmChainsGet(avalanche, {}); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmChainsGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetChainInfoRequest](../../models/operations/getchaininforequest.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. | - -### Response - -**Promise\<[components.GetChainResponse](../../models/components/getchainresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~getAddressChains~~ - -**[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.chains.getAddressChains({ - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmChainsGetAddressChains } from "@avalanche-sdk/data/funcs/dataEvmChainsGetAddressChains.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmChainsGetAddressChains(avalanche, { - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmChainsGetAddressChains failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAddressChainsRequest](../../models/operations/getaddresschainsrequest.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. | - -### Response - -**Promise\<[components.ListAddressChainsResponse](../../models/components/listaddresschainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~listAllLatestTransactions~~ - -**[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.chains.listAllLatestTransactions({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmChainsListAllLatestTransactions } from "@avalanche-sdk/data/funcs/dataEvmChainsListAllLatestTransactions.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmChainsListAllLatestTransactions(avalanche, { - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmChainsListAllLatestTransactions failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAllLatestTransactionsRequest](../../models/operations/listalllatesttransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListAllLatestTransactionsResponse](../../models/operations/listalllatesttransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~listAllLatestBlocks~~ - -**[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.chains.listAllLatestBlocks({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmChainsListAllLatestBlocks } from "@avalanche-sdk/data/funcs/dataEvmChainsListAllLatestBlocks.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmChainsListAllLatestBlocks(avalanche, { - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmChainsListAllLatestBlocks failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAllLatestBlocksRequest](../../models/operations/listalllatestblocksrequest.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. | - -### Response - -**Promise\<[operations.ListAllLatestBlocksResponse](../../models/operations/listalllatestblocksresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/contracts/README.md b/data/docs/sdks/contracts/README.md deleted file mode 100644 index 1bc4617e..00000000 --- a/data/docs/sdks/contracts/README.md +++ /dev/null @@ -1,263 +0,0 @@ -# Contracts -(*data.evm.contracts*) - -## Overview - -### Available Operations - -* [getDeploymentTransaction](#getdeploymenttransaction) - Get deployment transaction -* [getMetadata](#getmetadata) - Get contract metadata -* [listTransfers](#listtransfers) - List ERC transfers - -## getDeploymentTransaction - -If the address is a smart contract, returns the transaction in which it was deployed. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.contracts.getDeploymentTransaction({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - currency: "usd", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmContractsGetDeploymentTransaction } from "@avalanche-sdk/data/funcs/dataEvmContractsGetDeploymentTransaction.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmContractsGetDeploymentTransaction(avalanche, { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - currency: "usd", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmContractsGetDeploymentTransaction failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDeploymentTransactionRequest](../../models/operations/getdeploymenttransactionrequest.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. | - -### Response - -**Promise\<[components.GetTransactionResponse](../../models/components/gettransactionresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getMetadata - -Gets metadata about the contract at the given address. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.contracts.getMetadata({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmContractsGetMetadata } from "@avalanche-sdk/data/funcs/dataEvmContractsGetMetadata.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmContractsGetMetadata(avalanche, { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmContractsGetMetadata failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetContractMetadataRequest](../../models/operations/getcontractmetadatarequest.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. | - -### Response - -**Promise\<[operations.GetContractMetadataResponse](../../models/operations/getcontractmetadataresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listTransfers - -Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.contracts.listTransfers({ - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmContractsListTransfers } from "@avalanche-sdk/data/funcs/dataEvmContractsListTransfers.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmContractsListTransfers(avalanche, { - startBlock: 6479329, - endBlock: 6479330, - address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmContractsListTransfers failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTransfersRequest](../../models/operations/listtransfersrequest.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. | - -### Response - -**Promise\<[operations.ListTransfersResponse](../../models/operations/listtransfersresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/data/README.md b/data/docs/sdks/data/README.md deleted file mode 100644 index bcd70f12..00000000 --- a/data/docs/sdks/data/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# Data -(*data*) - -## Overview - -### Available Operations - -* [healthCheck](#healthcheck) - Get the health of the service - -## healthCheck - -Check the health of the service. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.healthCheck(); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataHealthCheck } from "@avalanche-sdk/data/funcs/dataHealthCheck.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataHealthCheck(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataHealthCheck failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | - -### Response - -**Promise\<[components.HealthCheckResultDto](../../models/components/healthcheckresultdto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/evmblocks/README.md b/data/docs/sdks/evmblocks/README.md deleted file mode 100644 index ec95c800..00000000 --- a/data/docs/sdks/evmblocks/README.md +++ /dev/null @@ -1,337 +0,0 @@ -# EvmBlocks -(*data.evm.blocks*) - -## Overview - -### Available Operations - -* [listLatestAllChains](#listlatestallchains) - List latest blocks across all supported EVM chains -* [listLatest](#listlatest) - List latest blocks -* [get](#get) - Get block -* [listTransactions](#listtransactions) - List transactions for a block - -## listLatestAllChains - -Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.blocks.listLatestAllChains({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmBlocksListLatestAllChains } from "@avalanche-sdk/data/funcs/dataEvmBlocksListLatestAllChains.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmBlocksListLatestAllChains(avalanche, { - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmBlocksListLatestAllChains failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestBlocksAllChainsRequest](../../models/operations/listlatestblocksallchainsrequest.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. | - -### Response - -**Promise\<[operations.ListLatestBlocksAllChainsResponse](../../models/operations/listlatestblocksallchainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listLatest - -Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.blocks.listLatest({}); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmBlocksListLatest } from "@avalanche-sdk/data/funcs/dataEvmBlocksListLatest.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmBlocksListLatest(avalanche, {}); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmBlocksListLatest failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetLatestBlocksRequest](../../models/operations/getlatestblocksrequest.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. | - -### Response - -**Promise\<[operations.GetLatestBlocksResponse](../../models/operations/getlatestblocksresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Gets the details of an individual block on the EVM-compatible chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.blocks.get({ - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmBlocksGet } from "@avalanche-sdk/data/funcs/dataEvmBlocksGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmBlocksGet(avalanche, { - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmBlocksGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetBlockRequest](../../models/operations/getblockrequest.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. | - -### Response - -**Promise\<[components.GetEvmBlockResponse](../../models/components/getevmblockresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listTransactions - -Lists the transactions that occured in a given block. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.blocks.listTransactions({ - pageSize: 10, - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmBlocksListTransactions } from "@avalanche-sdk/data/funcs/dataEvmBlocksListTransactions.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmBlocksListTransactions(avalanche, { - pageSize: 10, - blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmBlocksListTransactions failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTransactionsForBlockRequest](../../models/operations/gettransactionsforblockrequest.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. | - -### Response - -**Promise\<[components.ListNativeTransactionsResponse](../../models/components/listnativetransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/evmtransactions/README.md b/data/docs/sdks/evmtransactions/README.md deleted file mode 100644 index 124d8778..00000000 --- a/data/docs/sdks/evmtransactions/README.md +++ /dev/null @@ -1,253 +0,0 @@ -# EvmTransactions -(*data.evm.transactions*) - -## Overview - -### Available Operations - -* [listLatestAllChains](#listlatestallchains) - List the latest transactions across all supported EVM chains -* [get](#get) - Get transaction -* [listLatest](#listlatest) - List latest transactions - -## listLatestAllChains - -Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.evm.transactions.listLatestAllChains({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmTransactionsListLatestAllChains } from "@avalanche-sdk/data/funcs/dataEvmTransactionsListLatestAllChains.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataEvmTransactionsListLatestAllChains(avalanche, { - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmTransactionsListLatestAllChains failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestTransactionsAllChainsRequest](../../models/operations/listlatesttransactionsallchainsrequest.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. | - -### Response - -**Promise\<[operations.ListLatestTransactionsAllChainsResponse](../../models/operations/listlatesttransactionsallchainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Gets the details of a single transaction. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.transactions.get({ - txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmTransactionsGet } from "@avalanche-sdk/data/funcs/dataEvmTransactionsGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmTransactionsGet(avalanche, { - txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataEvmTransactionsGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTransactionRequest](../../models/operations/gettransactionrequest.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. | - -### Response - -**Promise\<[components.GetTransactionResponse](../../models/components/gettransactionresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listLatest - -Lists the latest transactions. Filterable by status. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.evm.transactions.listLatest({}); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataEvmTransactionsListLatest } from "@avalanche-sdk/data/funcs/dataEvmTransactionsListLatest.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataEvmTransactionsListLatest(avalanche, {}); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataEvmTransactionsListLatest failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestTransactionsRequest](../../models/operations/listlatesttransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListLatestTransactionsResponse](../../models/operations/listlatesttransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/icm/README.md b/data/docs/sdks/icm/README.md deleted file mode 100644 index f323d594..00000000 --- a/data/docs/sdks/icm/README.md +++ /dev/null @@ -1,255 +0,0 @@ -# Icm -(*data.icm*) - -## Overview - -### Available Operations - -* [get](#get) - Get an ICM message -* [list](#list) - List ICM messages -* [listByAddress](#listbyaddress) - List ICM messages by address - -## get - -Gets an ICM message by teleporter message ID. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.icm.get({ - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataIcmGet } from "@avalanche-sdk/data/funcs/dataIcmGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataIcmGet(avalanche, { - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataIcmGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetIcmMessageRequest](../../models/operations/geticmmessagerequest.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. | - -### Response - -**Promise\<[operations.GetIcmMessageResponse](../../models/operations/geticmmessageresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## list - -Lists ICM messages. Ordered by timestamp in descending order. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.icm.list({ - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataIcmList } from "@avalanche-sdk/data/funcs/dataIcmList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataIcmList(avalanche, { - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataIcmList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListIcmMessagesRequest](../../models/operations/listicmmessagesrequest.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. | - -### Response - -**Promise\<[operations.ListIcmMessagesResponse](../../models/operations/listicmmessagesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listByAddress - -Lists ICM messages by address. Ordered by timestamp in descending order. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.icm.listByAddress({ - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataIcmListByAddress } from "@avalanche-sdk/data/funcs/dataIcmListByAddress.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataIcmListByAddress(avalanche, { - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataIcmListByAddress failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListIcmMessagesByAddressRequest](../../models/operations/listicmmessagesbyaddressrequest.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. | - -### Response - -**Promise\<[components.ListIcmMessagesResponse](../../models/components/listicmmessagesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/nfts/README.md b/data/docs/sdks/nfts/README.md deleted file mode 100644 index d5bc7c6d..00000000 --- a/data/docs/sdks/nfts/README.md +++ /dev/null @@ -1,261 +0,0 @@ -# Nfts -(*data.nfts*) - -## Overview - -### Available Operations - -* [reindex](#reindex) - Reindex NFT metadata -* [list](#list) - List tokens -* [get](#get) - Get token details - -## reindex - -Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - await avalanche.data.nfts.reindex({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", - }); - - -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataNftsReindex } from "@avalanche-sdk/data/funcs/dataNftsReindex.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataNftsReindex(avalanche, { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", - }); - if (res.ok) { - const { value: result } = res; - - } else { - console.log("dataNftsReindex failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ReindexNftRequest](../../models/operations/reindexnftrequest.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. | - -### Response - -**Promise\** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## list - -Lists tokens for an NFT contract. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.nfts.list({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataNftsList } from "@avalanche-sdk/data/funcs/dataNftsList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataNftsList(avalanche, { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataNftsList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTokensRequest](../../models/operations/listtokensrequest.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. | - -### Response - -**Promise\<[operations.ListTokensResponse](../../models/operations/listtokensresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Gets token details for a specific token of an NFT contract. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.data.nfts.get({ - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataNftsGet } from "@avalanche-sdk/data/funcs/dataNftsGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await dataNftsGet(avalanche, { - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - tokenId: "145", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataNftsGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTokenDetailsRequest](../../models/operations/gettokendetailsrequest.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. | - -### Response - -**Promise\<[operations.GetTokenDetailsResponse](../../models/operations/gettokendetailsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/operations/README.md b/data/docs/sdks/operations/README.md deleted file mode 100644 index 7b817753..00000000 --- a/data/docs/sdks/operations/README.md +++ /dev/null @@ -1,179 +0,0 @@ -# Operations -(*data.operations*) - -## Overview - -### Available Operations - -* [getResult](#getresult) - Get operation -* [exportTransactions](#exporttransactions) - Create transaction export operation - -## getResult - -Gets operation details for the given operation id. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.operations.getResult({ - operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataOperationsGetResult } from "@avalanche-sdk/data/funcs/dataOperationsGetResult.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataOperationsGetResult(avalanche, { - operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataOperationsGetResult failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetOperationResultRequest](../../models/operations/getoperationresultrequest.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. | - -### Response - -**Promise\<[components.OperationStatusResponse](../../models/components/operationstatusresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## exportTransactions - -Trigger a transaction export operation with given parameters. - -The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.operations.exportTransactions({ - type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - includeChains: [ - "p-chain", - ], - }, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataOperationsExportTransactions } from "@avalanche-sdk/data/funcs/dataOperationsExportTransactions.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataOperationsExportTransactions(avalanche, { - type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING", - firstDate: "2023-05-01", - lastDate: "2023-05-02", - options: { - includeChains: [ - "p-chain", - ], - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataOperationsExportTransactions failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.PostTransactionExportJobRequest](../../models/operations/posttransactionexportjobrequest.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. | - -### Response - -**Promise\<[components.OperationStatusResponse](../../models/components/operationstatusresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/primarynetwork/README.md b/data/docs/sdks/primarynetwork/README.md deleted file mode 100644 index 5e795328..00000000 --- a/data/docs/sdks/primarynetwork/README.md +++ /dev/null @@ -1,971 +0,0 @@ -# PrimaryNetwork -(*data.primaryNetwork*) - -## Overview - -### Available Operations - -* [getAssetDetails](#getassetdetails) - Get asset details -* [getChainIdsForAddresses](#getchainidsforaddresses) - Get chain interactions for addresses -* [getNetworkDetails](#getnetworkdetails) - Get network details -* [listBlockchains](#listblockchains) - List blockchains -* [getBlockchainById](#getblockchainbyid) - Get blockchain details by ID -* [listSubnets](#listsubnets) - List subnets -* [getSubnetById](#getsubnetbyid) - Get Subnet details by ID -* [listValidators](#listvalidators) - List validators -* [getValidatorDetails](#getvalidatordetails) - Get single validator details -* [listDelegators](#listdelegators) - List delegators -* [listL1Validators](#listl1validators) - List L1 validators - -## getAssetDetails - -Gets asset details corresponding to the given asset id on the X-Chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getAssetDetails({ - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetAssetDetails } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetAssetDetails.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetAssetDetails(avalanche, { - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkGetAssetDetails failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAssetDetailsRequest](../../models/operations/getassetdetailsrequest.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. | - -### Response - -**Promise\<[components.XChainAssetDetails](../../models/components/xchainassetdetails.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getChainIdsForAddresses - -Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getChainIdsForAddresses({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetChainIdsForAddresses } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetChainIdsForAddresses(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkGetChainIdsForAddresses failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetChainIdsForAddressesRequest](../../models/operations/getchainidsforaddressesrequest.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. | - -### Response - -**Promise\<[components.ChainAddressChainIdMapListResponse](../../models/components/chainaddresschainidmaplistresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getNetworkDetails - -Gets network details such as validator and delegator stats. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getNetworkDetails({}); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetNetworkDetails } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetNetworkDetails.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetNetworkDetails(avalanche, {}); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkGetNetworkDetails failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetNetworkDetailsRequest](../../models/operations/getnetworkdetailsrequest.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. | - -### Response - -**Promise\<[components.GetNetworkDetailsResponse](../../models/components/getnetworkdetailsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listBlockchains - -Lists all blockchains registered on the network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.listBlockchains({ - pageSize: 10, - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkListBlockchains } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkListBlockchains.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkListBlockchains(avalanche, { - pageSize: 10, - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkListBlockchains failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListBlockchainsRequest](../../models/operations/listblockchainsrequest.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. | - -### Response - -**Promise\<[operations.ListBlockchainsResponse](../../models/operations/listblockchainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getBlockchainById - -Get details of the blockchain registered on the network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getBlockchainById({ - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetBlockchainById } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetBlockchainById.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetBlockchainById(avalanche, { - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkGetBlockchainById failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetBlockchainByIdRequest](../../models/operations/getblockchainbyidrequest.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. | - -### Response - -**Promise\<[components.Blockchain](../../models/components/blockchain.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listSubnets - -Lists all subnets registered on the network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.listSubnets({ - pageSize: 10, - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkListSubnets } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkListSubnets.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkListSubnets(avalanche, { - pageSize: 10, - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkListSubnets failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListSubnetsRequest](../../models/operations/listsubnetsrequest.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. | - -### Response - -**Promise\<[operations.ListSubnetsResponse](../../models/operations/listsubnetsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getSubnetById - -Get details of the Subnet registered on the network. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getSubnetById({ - subnetId: "11111111111111111111111111111111LpoYY", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetSubnetById } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetSubnetById.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetSubnetById(avalanche, { - subnetId: "11111111111111111111111111111111LpoYY", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkGetSubnetById failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSubnetByIdRequest](../../models/operations/getsubnetbyidrequest.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. | - -### Response - -**Promise\<[components.Subnet](../../models/components/subnet.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listValidators - -Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.listValidators({ - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - validationStatus: "completed", - minDelegationCapacity: "0", - maxDelegationCapacity: "720000000000000000", - minTimeRemaining: 0, - maxTimeRemaining: 2147483647, - minFeePercentage: 2, - maxFeePercentage: 100, - minUptimePerformance: 90, - maxUptimePerformance: 100, - subnetId: "11111111111111111111111111111111LpoYY", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkListValidators } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkListValidators.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkListValidators(avalanche, { - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - validationStatus: "completed", - minDelegationCapacity: "0", - maxDelegationCapacity: "720000000000000000", - minTimeRemaining: 0, - maxTimeRemaining: 2147483647, - minFeePercentage: 2, - maxFeePercentage: 100, - minUptimePerformance: 90, - maxUptimePerformance: 100, - subnetId: "11111111111111111111111111111111LpoYY", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkListValidators failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListValidatorsRequest](../../models/operations/listvalidatorsrequest.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. | - -### Response - -**Promise\<[operations.ListValidatorsResponse](../../models/operations/listvalidatorsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getValidatorDetails - -List validator details for a single validator. Filterable by validation status. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.getValidatorDetails({ - nodeId: "NodeID-111111111111111111116DBWJs", - validationStatus: "completed", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkGetValidatorDetails } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkGetValidatorDetails.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkGetValidatorDetails(avalanche, { - nodeId: "NodeID-111111111111111111116DBWJs", - validationStatus: "completed", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkGetValidatorDetails failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSingleValidatorDetailsRequest](../../models/operations/getsinglevalidatordetailsrequest.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. | - -### Response - -**Promise\<[operations.GetSingleValidatorDetailsResponse](../../models/operations/getsinglevalidatordetailsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listDelegators - -Lists details for delegators. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.listDelegators({ - rewardAddresses: "P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc", - sortOrder: "asc", - delegationStatus: "completed", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkListDelegators } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkListDelegators.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkListDelegators(avalanche, { - rewardAddresses: "P-avax1679zrp3z9mf7z4an42ddq47qzj36zv6ga20vwl,P-avax1s7kd0kfndlz6mh3l0etrrcmkg5y366k8e0s6cc", - sortOrder: "asc", - delegationStatus: "completed", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkListDelegators failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListDelegatorsRequest](../../models/operations/listdelegatorsrequest.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. | - -### Response - -**Promise\<[operations.ListDelegatorsResponse](../../models/operations/listdelegatorsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listL1Validators - -Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.listL1Validators({ - l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX", - nodeId: "NodeID-111111111111111111116DBWJs", - subnetId: "11111111111111111111111111111111LpoYY", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkListL1Validators } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkListL1Validators.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkListL1Validators(avalanche, { - l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX", - nodeId: "NodeID-111111111111111111116DBWJs", - subnetId: "11111111111111111111111111111111LpoYY", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkListL1Validators failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListL1ValidatorsRequest](../../models/operations/listl1validatorsrequest.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. | - -### Response - -**Promise\<[operations.ListL1ValidatorsResponse](../../models/operations/listl1validatorsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/primarynetworkbalances/README.md b/data/docs/sdks/primarynetworkbalances/README.md deleted file mode 100644 index 62d50ad4..00000000 --- a/data/docs/sdks/primarynetworkbalances/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# PrimaryNetworkBalances -(*data.primaryNetwork.balances*) - -## Overview - -### Available Operations - -* [listByAddresses](#listbyaddresses) - Get balances - -## listByAddresses - -Gets primary network balances for one of the Primary Network chains for the supplied addresses. - -C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.balances.listByAddresses({ - blockTimestamp: 1599696000, - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkBalancesListByAddresses } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkBalancesListByAddresses.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkBalancesListByAddresses(avalanche, { - blockTimestamp: 1599696000, - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkBalancesListByAddresses failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetBalancesByAddressesRequest](../../models/operations/getbalancesbyaddressesrequest.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. | - -### Response - -**Promise\<[operations.GetBalancesByAddressesResponse](../../models/operations/getbalancesbyaddressesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/primarynetworkblocks/README.md b/data/docs/sdks/primarynetworkblocks/README.md deleted file mode 100644 index f6360aaf..00000000 --- a/data/docs/sdks/primarynetworkblocks/README.md +++ /dev/null @@ -1,273 +0,0 @@ -# PrimaryNetworkBlocks -(*data.primaryNetwork.blocks*) - -## Overview - -### Available Operations - -* [get](#get) - Get block -* [listByNodeId](#listbynodeid) - List blocks proposed by node -* [listLatest](#listlatest) - List latest blocks - -## get - -Gets a block by block height or block hash on one of the Primary Network chains. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.blocks.get({ - blockchainId: "p-chain", - blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkBlocksGet } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkBlocksGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkBlocksGet(avalanche, { - blockchainId: "p-chain", - blockId: "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkBlocksGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetBlockByIdRequest](../../models/operations/getblockbyidrequest.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. | - -### Response - -**Promise\<[components.GetPrimaryNetworkBlockResponse](../../models/components/getprimarynetworkblockresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listByNodeId - -Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.blocks.listByNodeId({ - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - nodeId: "NodeID-111111111111111111116DBWJs", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkBlocksListByNodeId } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkBlocksListByNodeId.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkBlocksListByNodeId(avalanche, { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - nodeId: "NodeID-111111111111111111116DBWJs", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkBlocksListByNodeId failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListPrimaryNetworkBlocksByNodeIdRequest](../../models/operations/listprimarynetworkblocksbynodeidrequest.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. | - -### Response - -**Promise\<[operations.ListPrimaryNetworkBlocksByNodeIdResponse](../../models/operations/listprimarynetworkblocksbynodeidresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listLatest - -Lists latest blocks on one of the Primary Network chains. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.blocks.listLatest({ - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkBlocksListLatest } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkBlocksListLatest.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkBlocksListLatest(avalanche, { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkBlocksListLatest failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestPrimaryNetworkBlocksRequest](../../models/operations/listlatestprimarynetworkblocksrequest.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. | - -### Response - -**Promise\<[operations.ListLatestPrimaryNetworkBlocksResponse](../../models/operations/listlatestprimarynetworkblocksresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/primarynetworktransactions/README.md b/data/docs/sdks/primarynetworktransactions/README.md deleted file mode 100644 index 29529417..00000000 --- a/data/docs/sdks/primarynetworktransactions/README.md +++ /dev/null @@ -1,395 +0,0 @@ -# PrimaryNetworkTransactions -(*data.primaryNetwork.transactions*) - -## Overview - -### Available Operations - -* [get](#get) - Get transaction -* [listLatest](#listlatest) - List latest transactions -* [listActiveStakingTransactions](#listactivestakingtransactions) - List staking transactions -* [listAssetTransactions](#listassettransactions) - List asset transactions - -## get - -Gets the details of a single transaction on one of the Primary Network chains. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.transactions.get({ - blockchainId: "p-chain", - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkTransactionsGet } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkTransactionsGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkTransactionsGet(avalanche, { - blockchainId: "p-chain", - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkTransactionsGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTxByHashRequest](../../models/operations/gettxbyhashrequest.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. | - -### Response - -**Promise\<[operations.GetTxByHashResponse](../../models/operations/gettxbyhashresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listLatest - -Lists the latest transactions on one of the Primary Network chains. - -Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters. - -For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well. - -Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.transactions.listLatest({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkTransactionsListLatest } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkTransactionsListLatest.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkTransactionsListLatest(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkTransactionsListLatest failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestPrimaryNetworkTransactionsRequest](../../models/operations/listlatestprimarynetworktransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListLatestPrimaryNetworkTransactionsResponse](../../models/operations/listlatestprimarynetworktransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listActiveStakingTransactions - -Lists active staking transactions on the P-Chain for the supplied addresses. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.transactions.listActiveStakingTransactions({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkTransactionsListActiveStakingTransactions(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "p-chain", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkTransactionsListActiveStakingTransactions failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListActivePrimaryNetworkStakingTransactionsRequest](../../models/operations/listactiveprimarynetworkstakingtransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListActivePrimaryNetworkStakingTransactionsResponse](../../models/operations/listactiveprimarynetworkstakingtransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listAssetTransactions - -Lists asset transactions corresponding to the given asset id on the X-Chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.transactions.listAssetTransactions({ - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkTransactionsListAssetTransactions } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkTransactionsListAssetTransactions(avalanche, { - txTypes: [ - "AddValidatorTx", - ], - startTimestamp: 1689541049, - endTimestamp: 1689800249, - blockchainId: "x-chain", - assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkTransactionsListAssetTransactions failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListAssetTransactionsRequest](../../models/operations/listassettransactionsrequest.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. | - -### Response - -**Promise\<[operations.ListAssetTransactionsResponse](../../models/operations/listassettransactionsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/rewards/README.md b/data/docs/sdks/rewards/README.md deleted file mode 100644 index 381fc876..00000000 --- a/data/docs/sdks/rewards/README.md +++ /dev/null @@ -1,189 +0,0 @@ -# Rewards -(*data.primaryNetwork.rewards*) - -## Overview - -### Available Operations - -* [listPendingRewards](#listpendingrewards) - List pending rewards -* [listHistoricalRewards](#listhistoricalrewards) - List historical rewards - -## listPendingRewards - -Lists pending rewards on the Primary Network for the supplied addresses. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.rewards.listPendingRewards({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkRewardsListPendingRewards } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkRewardsListPendingRewards(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkRewardsListPendingRewards failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListPendingPrimaryNetworkRewardsRequest](../../models/operations/listpendingprimarynetworkrewardsrequest.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. | - -### Response - -**Promise\<[operations.ListPendingPrimaryNetworkRewardsResponse](../../models/operations/listpendingprimarynetworkrewardsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listHistoricalRewards - -Lists historical rewards on the Primary Network for the supplied addresses. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.rewards.listHistoricalRewards({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - currency: "usd", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkRewardsListHistoricalRewards } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkRewardsListHistoricalRewards(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - nodeIds: "NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs", - sortOrder: "asc", - currency: "usd", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkRewardsListHistoricalRewards failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListHistoricalPrimaryNetworkRewardsRequest](../../models/operations/listhistoricalprimarynetworkrewardsrequest.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. | - -### Response - -**Promise\<[operations.ListHistoricalPrimaryNetworkRewardsResponse](../../models/operations/listhistoricalprimarynetworkrewardsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/signatureaggregator/README.md b/data/docs/sdks/signatureaggregator/README.md deleted file mode 100644 index cb701b10..00000000 --- a/data/docs/sdks/signatureaggregator/README.md +++ /dev/null @@ -1,181 +0,0 @@ -# SignatureAggregator -(*data.signatureAggregator*) - -## Overview - -### Available Operations - -* [aggregate](#aggregate) - Aggregate Signatures -* [get](#get) - Get Aggregated Signatures - -## aggregate - -Aggregates Signatures for a Warp message from Subnet validators. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.signatureAggregator.aggregate({ - signatureAggregatorRequest: { - message: "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", - justification: "0001abcdabcfff", - signingSubnetId: "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", - quorumPercentage: 50, - }, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataSignatureAggregatorAggregate } from "@avalanche-sdk/data/funcs/dataSignatureAggregatorAggregate.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataSignatureAggregatorAggregate(avalanche, { - signatureAggregatorRequest: { - message: "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", - justification: "0001abcdabcfff", - signingSubnetId: "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", - quorumPercentage: 50, - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataSignatureAggregatorAggregate failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AggregateSignaturesRequest](../../models/operations/aggregatesignaturesrequest.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. | - -### Response - -**Promise\<[components.SignatureAggregationResponse](../../models/components/signatureaggregationresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Get Aggregated Signatures for a P-Chain L1 related Warp Message. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.signatureAggregator.get({ - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataSignatureAggregatorGet } from "@avalanche-sdk/data/funcs/dataSignatureAggregatorGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataSignatureAggregatorGet(avalanche, { - txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataSignatureAggregatorGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAggregatedSignaturesRequest](../../models/operations/getaggregatedsignaturesrequest.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. | - -### Response - -**Promise\<[components.SignatureAggregationResponse](../../models/components/signatureaggregationresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/teleporter/README.md b/data/docs/sdks/teleporter/README.md deleted file mode 100644 index 9cb2bdcd..00000000 --- a/data/docs/sdks/teleporter/README.md +++ /dev/null @@ -1,273 +0,0 @@ -# Teleporter -(*data.teleporter*) - -## Overview - -### Available Operations - -* [~~getTeleporterMessage~~](#getteleportermessage) - **[Deprecated]** Gets a teleporter message by message ID. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . :warning: **Deprecated** -* [~~listTeleporterMessages~~](#listteleportermessages) - **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . :warning: **Deprecated** -* [~~listTeleporterMessagesByAddress~~](#listteleportermessagesbyaddress) - **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . :warning: **Deprecated** - -## ~~getTeleporterMessage~~ - -**[Deprecated]** Gets a teleporter message by message ID. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.teleporter.getTeleporterMessage({ - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataTeleporterGetTeleporterMessage } from "@avalanche-sdk/data/funcs/dataTeleporterGetTeleporterMessage.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataTeleporterGetTeleporterMessage(avalanche, { - messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataTeleporterGetTeleporterMessage failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTeleporterMessageRequest](../../models/operations/getteleportermessagerequest.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. | - -### Response - -**Promise\<[operations.GetTeleporterMessageResponse](../../models/operations/getteleportermessageresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~listTeleporterMessages~~ - -**[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.teleporter.listTeleporterMessages({ - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataTeleporterListTeleporterMessages } from "@avalanche-sdk/data/funcs/dataTeleporterListTeleporterMessages.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataTeleporterListTeleporterMessages(avalanche, { - sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", - destinationBlockchainId: "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - to: "0x664A4Be5Af2cFc824F9C0914CbAc4703396Da2DC", - from: "0x321eDA69247566D662178feE695C7026c604Cd94", - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataTeleporterListTeleporterMessages failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTeleporterMessagesRequest](../../models/operations/listteleportermessagesrequest.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. | - -### Response - -**Promise\<[operations.ListTeleporterMessagesResponse](../../models/operations/listteleportermessagesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~listTeleporterMessagesByAddress~~ - -**[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.teleporter.listTeleporterMessagesByAddress({ - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataTeleporterListTeleporterMessagesByAddress } from "@avalanche-sdk/data/funcs/dataTeleporterListTeleporterMessagesByAddress.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataTeleporterListTeleporterMessagesByAddress(avalanche, { - address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataTeleporterListTeleporterMessagesByAddress failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListTeleporterMessagesByAddressRequest](../../models/operations/listteleportermessagesbyaddressrequest.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. | - -### Response - -**Promise\<[components.ListTeleporterMessagesResponse](../../models/components/listteleportermessagesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/usagemetrics/README.md b/data/docs/sdks/usagemetrics/README.md deleted file mode 100644 index 992475e4..00000000 --- a/data/docs/sdks/usagemetrics/README.md +++ /dev/null @@ -1,349 +0,0 @@ -# UsageMetrics -(*data.usageMetrics*) - -## Overview - -### Available Operations - -* [getUsage](#getusage) - Get usage metrics for the Data API -* [getLogs](#getlogs) - Get logs for requests made by client -* [getSubnetRpcUsage](#getsubnetrpcusage) - Get usage metrics for the Subnet RPC -* [~~getRpcUsageMetrics~~](#getrpcusagemetrics) - **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. :warning: **Deprecated** - -## getUsage - -Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.usageMetrics.getUsage({ - startTimestamp: 1739507200, - endTimestamp: 1739664000, - timeInterval: "daily", - groupBy: "requestPath", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataUsageMetricsGetUsage } from "@avalanche-sdk/data/funcs/dataUsageMetricsGetUsage.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataUsageMetricsGetUsage(avalanche, { - startTimestamp: 1739507200, - endTimestamp: 1739664000, - timeInterval: "daily", - groupBy: "requestPath", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataUsageMetricsGetUsage failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetApiUsageMetricsRequest](../../models/operations/getapiusagemetricsrequest.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. | - -### Response - -**Promise\<[components.UsageMetricsResponseDTO](../../models/components/usagemetricsresponsedto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getLogs - -Gets logs for requests made by client over a specified time interval for a specific organization. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.usageMetrics.getLogs({ - startTimestamp: 1739507200, - endTimestamp: 1739664000, - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataUsageMetricsGetLogs } from "@avalanche-sdk/data/funcs/dataUsageMetricsGetLogs.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataUsageMetricsGetLogs(avalanche, { - startTimestamp: 1739507200, - endTimestamp: 1739664000, - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataUsageMetricsGetLogs failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetApiLogsRequest](../../models/operations/getapilogsrequest.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. | - -### Response - -**Promise\<[operations.GetApiLogsResponse](../../models/operations/getapilogsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getSubnetRpcUsage - -Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.usageMetrics.getSubnetRpcUsage({ - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataUsageMetricsGetSubnetRpcUsage } from "@avalanche-sdk/data/funcs/dataUsageMetricsGetSubnetRpcUsage.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataUsageMetricsGetSubnetRpcUsage(avalanche, { - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataUsageMetricsGetSubnetRpcUsage failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetSubnetRpcUsageMetricsRequest](../../models/operations/getsubnetrpcusagemetricsrequest.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. | - -### Response - -**Promise\<[components.SubnetRpcUsageMetricsResponseDTO](../../models/components/subnetrpcusagemetricsresponsedto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## ~~getRpcUsageMetrics~~ - -**[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.data.usageMetrics.getRpcUsageMetrics({ - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataUsageMetricsGetRpcUsageMetrics } from "@avalanche-sdk/data/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await dataUsageMetricsGetRpcUsageMetrics(avalanche, { - timeInterval: "daily", - startTimestamp: 1739507200, - endTimestamp: 1739664000, - groupBy: "rpcMethod", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataUsageMetricsGetRpcUsageMetrics failed:", res.error); - } -} - -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. | - -### Response - -**Promise\<[components.SubnetRpcUsageMetricsResponseDTO](../../models/components/subnetrpcusagemetricsresponsedto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/utxos/README.md b/data/docs/sdks/utxos/README.md deleted file mode 100644 index ce552aac..00000000 --- a/data/docs/sdks/utxos/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# Utxos -(*data.primaryNetwork.utxos*) - -## Overview - -### Available Operations - -* [listByAddresses](#listbyaddresses) - List UTXOs - -## listByAddresses - -Lists UTXOs on one of the Primary Network chains for the supplied addresses. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.utxos.listByAddresses({ - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkUtxosListByAddresses } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkUtxosListByAddresses.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkUtxosListByAddresses(avalanche, { - addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", - blockchainId: "p-chain", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkUtxosListByAddresses failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetUtxosByAddressesRequest](../../models/operations/getutxosbyaddressesrequest.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. | - -### Response - -**Promise\<[operations.GetUtxosByAddressesResponse](../../models/operations/getutxosbyaddressesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/docs/sdks/vertices/README.md b/data/docs/sdks/vertices/README.md deleted file mode 100644 index ad33e3a3..00000000 --- a/data/docs/sdks/vertices/README.md +++ /dev/null @@ -1,267 +0,0 @@ -# Vertices -(*data.primaryNetwork.vertices*) - -## Overview - -### Available Operations - -* [listLatest](#listlatest) - List vertices -* [getByHash](#getbyhash) - Get vertex -* [listByHeight](#listbyheight) - List vertices by height - -## listLatest - -Lists latest vertices on the X-Chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.vertices.listLatest({ - blockchainId: "x-chain", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkVerticesListLatest } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkVerticesListLatest.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkVerticesListLatest(avalanche, { - blockchainId: "x-chain", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkVerticesListLatest failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListLatestXChainVerticesRequest](../../models/operations/listlatestxchainverticesrequest.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. | - -### Response - -**Promise\<[operations.ListLatestXChainVerticesResponse](../../models/operations/listlatestxchainverticesresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getByHash - -Gets a single vertex on the X-Chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.vertices.getByHash({ - vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr", - blockchainId: "x-chain", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkVerticesGetByHash } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkVerticesGetByHash.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkVerticesGetByHash(avalanche, { - vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr", - blockchainId: "x-chain", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("dataPrimaryNetworkVerticesGetByHash failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetVertexByHashRequest](../../models/operations/getvertexbyhashrequest.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. | - -### Response - -**Promise\<[components.XChainVertex](../../models/components/xchainvertex.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listByHeight - -Lists vertices at the given vertex height on the X-Chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.data.primaryNetwork.vertices.listByHeight({ - vertexHeight: 123, - blockchainId: "x-chain", - sortOrder: "asc", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/data/core.js"; -import { dataPrimaryNetworkVerticesListByHeight } from "@avalanche-sdk/data/funcs/dataPrimaryNetworkVerticesListByHeight.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await dataPrimaryNetworkVerticesListByHeight(avalanche, { - vertexHeight: 123, - blockchainId: "x-chain", - sortOrder: "asc", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("dataPrimaryNetworkVerticesListByHeight failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetVertexByHeightRequest](../../models/operations/getvertexbyheightrequest.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. | - -### Response - -**Promise\<[operations.GetVertexByHeightResponse](../../models/operations/getvertexbyheightresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/data/eslint.config.mjs b/data/eslint.config.mjs deleted file mode 100644 index 67bccfec..00000000 --- a/data/eslint.config.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import tseslint from "typescript-eslint"; - -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { files: ["**/*.{js,mjs,cjs,ts}"] }, - { languageOptions: { globals: globals.browser } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - { - rules: { - "no-constant-condition": "off", - "no-useless-escape": "off", - // Handled by typescript compiler - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-empty-object-type": "off", - "@typescript-eslint/no-namespace": "off", - }, - }, -]; diff --git a/data/examples/.env.template b/data/examples/.env.template deleted file mode 100644 index 5662248f..00000000 --- a/data/examples/.env.template +++ /dev/null @@ -1,3 +0,0 @@ -# @avalanche-sdk/data SDK Environment Variables -# Copy this file to .env and fill in your actual values -# DO NOT commit the .env file to version control diff --git a/data/examples/README.md b/data/examples/README.md deleted file mode 100644 index 27609d42..00000000 --- a/data/examples/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# @avalanche-sdk/data Examples - -This directory contains example scripts demonstrating how to use the @avalanche-sdk/data SDK. - -## Prerequisites - -- Node.js (v18 or higher) -- npm - -## Setup - -1. Copy `.env.template` to `.env`: - ```bash - cp .env.template .env - ``` - -2. Edit `.env` and add your actual credentials - -## Running the Examples - -To run an example file from the examples directory: - -```bash -npm run build && npx tsx example.ts -``` - -## Creating new examples - -Duplicate an existing example file, they won't be overwritten by the generation process. - - diff --git a/data/examples/dataHealthCheck.example.ts b/data/examples/dataHealthCheck.example.ts deleted file mode 100644 index 6b863ab2..00000000 --- a/data/examples/dataHealthCheck.example.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import dotenv from "dotenv"; -dotenv.config(); -/** - * Example usage of the @avalanche-sdk/data SDK - * - * To run this example from the examples directory: - * npm run build && npx tsx dataHealthCheck.ts - */ - -import { Avalanche } from "@avalanche-sdk/data"; - -const avalanche = new Avalanche(); - -async function main() { - const result = await avalanche.healthCheck(); - - console.log(result); -} - -main().catch(console.error); diff --git a/data/examples/package-lock.json b/data/examples/package-lock.json deleted file mode 100644 index 1e7aab17..00000000 --- a/data/examples/package-lock.json +++ /dev/null @@ -1,628 +0,0 @@ -{ - "name": "@avalanche-sdk/data-examples", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/data-examples", - "version": "1.0.0", - "dependencies": { - "@avalanche-sdk/data": "file:.." - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - } - }, - "..": { - "name": "@avalanche-sdk/data", - "version": "0.5.3", - "dependencies": { - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@avalanche-sdk/data": { - "resolved": "..", - "link": true - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", - "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz", - "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", - "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz", - "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", - "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", - "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", - "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", - "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", - "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", - "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", - "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", - "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", - "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", - "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", - "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", - "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", - "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", - "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", - "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", - "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", - "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", - "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", - "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", - "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", - "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", - "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@types/node": { - "version": "20.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.8.tgz", - "integrity": "sha512-HzbgCY53T6bfu4tT7Aq3TvViJyHjLjPNaAS3HOuMc9pw97KHsUtXNX4L+wu59g1WnjsZSko35MbEqnO58rihhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/dotenv": { - "version": "16.6.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", - "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/esbuild": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz", - "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.6", - "@esbuild/android-arm": "0.25.6", - "@esbuild/android-arm64": "0.25.6", - "@esbuild/android-x64": "0.25.6", - "@esbuild/darwin-arm64": "0.25.6", - "@esbuild/darwin-x64": "0.25.6", - "@esbuild/freebsd-arm64": "0.25.6", - "@esbuild/freebsd-x64": "0.25.6", - "@esbuild/linux-arm": "0.25.6", - "@esbuild/linux-arm64": "0.25.6", - "@esbuild/linux-ia32": "0.25.6", - "@esbuild/linux-loong64": "0.25.6", - "@esbuild/linux-mips64el": "0.25.6", - "@esbuild/linux-ppc64": "0.25.6", - "@esbuild/linux-riscv64": "0.25.6", - "@esbuild/linux-s390x": "0.25.6", - "@esbuild/linux-x64": "0.25.6", - "@esbuild/netbsd-arm64": "0.25.6", - "@esbuild/netbsd-x64": "0.25.6", - "@esbuild/openbsd-arm64": "0.25.6", - "@esbuild/openbsd-x64": "0.25.6", - "@esbuild/openharmony-arm64": "0.25.6", - "@esbuild/sunos-x64": "0.25.6", - "@esbuild/win32-arm64": "0.25.6", - "@esbuild/win32-ia32": "0.25.6", - "@esbuild/win32-x64": "0.25.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-tsconfig": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", - "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/tsx": { - "version": "4.20.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz", - "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.25.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - } - } -} diff --git a/data/examples/package.json b/data/examples/package.json deleted file mode 100644 index 5fc84089..00000000 --- a/data/examples/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@avalanche-sdk/data-examples", - "version": "1.0.0", - "private": true, - "scripts": { - "build:parent": "cd .. && npm i && npm run build && cd -", - "build:examples": "npm i", - "build": "npm run build:parent && npm run build:examples" - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - }, - "dependencies": { - "@avalanche-sdk/data": "file:.." - } -} \ No newline at end of file diff --git a/data/jsr.json b/data/jsr.json deleted file mode 100644 index 5872ee15..00000000 --- a/data/jsr.json +++ /dev/null @@ -1,27 +0,0 @@ - - -{ - "name": "@avalanche-sdk/data", - "version": "0.5.3", - "exports": { - ".": "./src/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./lib/config": "./src/lib/config.ts", - "./lib/http": "./src/lib/http.ts", - "./lib/retries": "./src/lib/retries.ts", - "./lib/sdks": "./src/lib/sdks.ts", - "./types": "./src/types/index.ts" - }, - "publish": { - "include": [ - "LICENSE", - "README.md", - "RUNTIMES.md", - "USAGE.md", - "jsr.json", - "src/**/*.ts" - ] - } -} diff --git a/data/overlays/overlay.yaml b/data/overlays/overlay.yaml deleted file mode 100644 index 03489384..00000000 --- a/data/overlays/overlay.yaml +++ /dev/null @@ -1,17 +0,0 @@ -overlay: 1.0.0 -info: - title: Overlay to change the merged OpenAPI Spec - version: 1.0.0 -actions: - - target: $["paths"]["/v1/chains"]["get"][?(@['servers'][0]['url'] == 'https://glacier-api.avax.network')]["responses"]["200"]["content"]["application/json"]["schema"] - description: Change the response schema for the /v1/chains endpoint in glacier to avoid a merger conflict with Popsicle API Spec - update: - $ref: "#/components/schemas/DataListChainsResponse" - - target: $.paths.*.*[?(@['x-speakeasy-group'] == 'webhooks' || @['x-speakeasy-group'] == 'webhooks.addresses')] - description: Remove all paths that are part of the webhooks group - remove: true - - target: $.webhooks - remove: true - - target: $.paths.*.*[?(@['tags'][0] == 'Notifications')] - description: Remove all paths that are tagged with 'notifications' if they somehow exist - remove: true diff --git a/data/package-lock.json b/data/package-lock.json deleted file mode 100644 index efb98dfb..00000000 --- a/data/package-lock.json +++ /dev/null @@ -1,6433 +0,0 @@ -{ - "name": "@avalanche-sdk/data", - "version": "0.5.3", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/data", - "version": "0.5.3", - "dependencies": { - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.0.tgz", - "integrity": "sha512-RoV8Xs9eNwiDvhv7M+xcL4PWyRyIXRY/FLp3buU4h1EYfdF7unWUy3dOjPqb3C7rMUewIcqwW850PgS8h1o1yg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "dependencies": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": { - "version": "1.53.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", - "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "dependencies": { - "mime-db": "^1.53.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "dependencies": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "cpu": [ - "aarch64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "node_modules/@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "node_modules/@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "node_modules/@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "dependencies": { - "undici-types": "~6.20.0" - } - }, - "node_modules/@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "node_modules/@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/body-parser/node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "cpu": [ - "arm64", - "x64", - "aarch64" - ], - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "os": [ - "darwin", - "linux", - "win32" - ], - "bin": { - "bun": "bin/bun.exe", - "bunx": "bin/bunx.exe" - }, - "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "node_modules/bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "dependencies": { - "eventsource-parser": "^3.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": "^4.11 || 5 || ^5.0.0-beta.1" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "dependencies": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - }, - "engines": { - "node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "dependencies": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/router/node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, - "engines": { - "node": ">=16" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/send/node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "dependencies": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - }, - "bin": { - "sync-content": "dist/mjs/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "dependencies": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "bin": { - "tshy": "dist/esm/index.js" - }, - "engines": { - "node": "16 >=16.17 || 18 >=18.15.0 || >=20.6.1" - } - }, - "node_modules/tshy/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/tshy/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true, - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/tshy/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "3.25.20", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.20.tgz", - "integrity": "sha512-z03fqpTMDF1G02VLKUMt6vyACE7rNWkh3gpXVHgPTw28NPtDFRGvcpTtPwn2kMKtQ0idtYJUTxchytmnqYswcw==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-to-json-schema": { - "version": "3.24.3", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", - "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", - "dev": true, - "peerDependencies": { - "zod": "^3.24.1" - } - } - }, - "dependencies": { - "@eslint-community/eslint-utils": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.0.tgz", - "integrity": "sha512-RoV8Xs9eNwiDvhv7M+xcL4PWyRyIXRY/FLp3buU4h1EYfdF7unWUy3dOjPqb3C7rMUewIcqwW850PgS8h1o1yg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.4.3" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - } - } - }, - "@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true - }, - "@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "requires": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - } - }, - "@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true - }, - "@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.15" - } - }, - "@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true - } - } - }, - "@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true - }, - "@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true - }, - "@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "requires": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - } - }, - "@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true - }, - "@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "requires": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "dependencies": { - "@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true - } - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - } - }, - "@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "dependencies": { - "accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "requires": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - } - }, - "body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "requires": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "dependencies": { - "qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "requires": { - "side-channel": "^1.1.0" - } - } - } - }, - "content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true - }, - "express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "requires": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "requires": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - } - }, - "fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true - }, - "iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true - }, - "merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true - }, - "mime-db": { - "version": "1.53.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", - "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", - "dev": true - }, - "mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "requires": { - "mime-db": "^1.53.0" - } - }, - "negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true - }, - "send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "requires": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "dependencies": { - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - } - } - }, - "serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "requires": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - } - }, - "type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - } - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "dev": true, - "optional": true - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true - }, - "@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "requires": { - "undici-types": "~6.20.0" - } - }, - "@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "requires": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "requires": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - } - }, - "@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - } - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true - }, - "body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "dev": true, - "requires": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true - }, - "cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "requires": { - "ms": "^2.1.3" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - } - }, - "eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true - }, - "espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "requires": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - } - }, - "esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true - }, - "eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "requires": { - "eventsource-parser": "^3.0.0" - } - }, - "eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true - }, - "express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "requires": {} - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "requires": { - "flat-cache": "^4.0.0" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "requires": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - } - }, - "flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "requires": { - "function-bind": "^1.1.2" - } - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "requires": { - "json-buffer": "3.0.1" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true - }, - "merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true - }, - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true - }, - "object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - } - }, - "path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true - }, - "polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - } - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "requires": { - "side-channel": "^1.0.6" - } - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "requires": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - } - }, - "reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true - }, - "rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "requires": { - "glob": "^10.3.7" - } - }, - "router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "requires": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "dependencies": { - "path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true - } - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true - }, - "send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true - } - } - }, - "serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "requires": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - } - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - } - }, - "side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - } - }, - "side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - } - }, - "side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - } - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - } - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "requires": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true - }, - "ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "requires": {} - }, - "tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "requires": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true - }, - "typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "requires": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - } - }, - "undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true - }, - "walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - }, - "zod": { - "version": "3.25.20", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.20.tgz", - "integrity": "sha512-z03fqpTMDF1G02VLKUMt6vyACE7rNWkh3gpXVHgPTw28NPtDFRGvcpTtPwn2kMKtQ0idtYJUTxchytmnqYswcw==" - }, - "zod-to-json-schema": { - "version": "3.24.3", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", - "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", - "dev": true, - "requires": {} - } - } -} diff --git a/data/package.json b/data/package.json deleted file mode 100644 index b5ddbd4e..00000000 --- a/data/package.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "name": "@avalanche-sdk/data", - "version": "0.5.3", - "author": "Avacloud", - "license": "BSD-3-Clause", - "type": "module", - "bin": { - "mcp": "bin/mcp-server.js" - }, - "tshy": { - "sourceDialects": [ - "@avalanche-sdk/data/source" - ], - "exports": { - ".": "./src/index.ts", - "./package.json": "./package.json", - "./types": "./src/types/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./*.js": "./src/*.ts", - "./*": "./src/*.ts" - } - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/ava-labs/avalanche-sdk-typescript.git", - "directory": "data" - }, - "scripts": { - "lint": "eslint --cache --max-warnings=0 src", - "build:mcp": "bun src/mcp-server/build.mts", - "build": "npm run build:mcp && tshy", - "prepublishOnly": "npm run build" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "dependencies": { - "zod": "^3.20.0" - }, - "exports": { - ".": { - "import": { - "@avalanche-sdk/data/source": "./src/index.ts", - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" - } - }, - "./package.json": "./package.json", - "./types": { - "import": { - "@avalanche-sdk/data/source": "./src/types/index.ts", - "types": "./dist/esm/types/index.d.ts", - "default": "./dist/esm/types/index.js" - }, - "require": { - "types": "./dist/commonjs/types/index.d.ts", - "default": "./dist/commonjs/types/index.js" - } - }, - "./models/errors": { - "import": { - "@avalanche-sdk/data/source": "./src/models/errors/index.ts", - "types": "./dist/esm/models/errors/index.d.ts", - "default": "./dist/esm/models/errors/index.js" - }, - "require": { - "types": "./dist/commonjs/models/errors/index.d.ts", - "default": "./dist/commonjs/models/errors/index.js" - } - }, - "./models/components": { - "import": { - "@avalanche-sdk/data/source": "./src/models/components/index.ts", - "types": "./dist/esm/models/components/index.d.ts", - "default": "./dist/esm/models/components/index.js" - }, - "require": { - "types": "./dist/commonjs/models/components/index.d.ts", - "default": "./dist/commonjs/models/components/index.js" - } - }, - "./models/operations": { - "import": { - "@avalanche-sdk/data/source": "./src/models/operations/index.ts", - "types": "./dist/esm/models/operations/index.d.ts", - "default": "./dist/esm/models/operations/index.js" - }, - "require": { - "types": "./dist/commonjs/models/operations/index.d.ts", - "default": "./dist/commonjs/models/operations/index.js" - } - }, - "./*.js": { - "import": { - "@avalanche-sdk/data/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - }, - "./*": { - "import": { - "@avalanche-sdk/data/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - } - }, - "main": "./dist/commonjs/index.js", - "types": "./dist/commonjs/index.d.ts", - "module": "./dist/esm/index.js" -} diff --git a/data/speakeasyusagegen/.speakeasy/logs/naming.log b/data/speakeasyusagegen/.speakeasy/logs/naming.log deleted file mode 100644 index d955ae70..00000000 --- a/data/speakeasyusagegen/.speakeasy/logs/naming.log +++ /dev/null @@ -1,710 +0,0 @@ -DEBUG append_error: Renamed component to "BadRequest_error" - labels: "original_name:BadRequest scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadRequest component:true originalName:BadRequest" -DEBUG append_error: Renamed component to "Unauthorized_error" - labels: "original_name:Unauthorized scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Unauthorized component:true originalName:Unauthorized" -DEBUG append_error: Renamed component to "Forbidden_error" - labels: "original_name:Forbidden scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Forbidden component:true originalName:Forbidden" -DEBUG append_error: Renamed component to "NotFound_error" - labels: "original_name:NotFound scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:NotFound component:true originalName:NotFound" -DEBUG append_error: Renamed component to "TooManyRequests_error" - labels: "original_name:TooManyRequests scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests component:true originalName:TooManyRequests" -DEBUG append_error: Renamed component to "BadGateway_error" - labels: "original_name:BadGateway scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadGateway component:true originalName:BadGateway" -DEBUG append_error: Renamed component to "ServiceUnavailable_error" - labels: "original_name:ServiceUnavailable scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable component:true originalName:ServiceUnavailable" -DEBUG prepend_op_id: Renamed to "postTransactionExportJob_request" - labels: "original_name:request operation:postTransactionExportJob operationTag:data.operations data_type:union" - registrationID: "scope:operations operationTag:data.operations operation:postTransactionExportJob requestResponse:request originalName:RequestBody" -DEBUG prepend_op_id: Renamed to "listLatestPrimaryNetworkTransactions_ResponseBody" - labels: "original_name:ResponseBody operation:listLatestPrimaryNetworkTransactions operationTag:data.primaryNetwork.transactions requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.transactions operation:listLatestPrimaryNetworkTransactions requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: Renamed to "getUtxosByAddresses_ResponseBody" - labels: "original_name:ResponseBody operation:getUtxosByAddresses operationTag:data.primaryNetwork.utxos requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.utxos operation:getUtxosByAddresses requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG - ---- Renaming 8 types with name "status" --- -DEBUG discriminated: Renamed to "HealthCheckResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthCheckResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthCheckResultDto originalName:status" -DEBUG discriminated: Renamed to "HealthIndicatorResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthIndicatorResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthIndicatorResultDto originalName:status" -DEBUG discriminated: Renamed to "PendingTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:PendingTeleporterMessage constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingTeleporterMessage constProperty:pending originalName:status" -DEBUG discriminated: Renamed to "DeliveredTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredTeleporterMessage constProperty:Delivered" - registrationID: "scope:shared refType:Schemas refName:DeliveredTeleporterMessage constProperty:delivered originalName:status" -DEBUG discriminated: Renamed to "DeliveredSourceNotIndexedTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredSourceNotIndexedTeleporterMessage constProperty:DeliveredSourceNotIndexed" - registrationID: "scope:shared refType:Schemas refName:DeliveredSourceNotIndexedTeleporterMessage constProperty:delivered_source_not_indexed originalName:status" -DEBUG discriminated: Renamed to "DeliveredSourceNotIndexedIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredSourceNotIndexedIcmMessage constProperty:DeliveredSourceNotIndexed" - registrationID: "scope:shared refType:Schemas refName:DeliveredSourceNotIndexedIcmMessage constProperty:delivered_source_not_indexed originalName:status" -DEBUG discriminated: Renamed to "PendingIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:PendingIcmMessage constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingIcmMessage constProperty:pending originalName:status" -DEBUG discriminated: Renamed to "DeliveredIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredIcmMessage constProperty:Delivered" - registrationID: "scope:shared refType:Schemas refName:DeliveredIcmMessage constProperty:delivered originalName:status" -DEBUG - ---- Renaming 2 types with name "enabledFeature" --- -DEBUG discriminated: Renamed to "ChainInfo_enabledFeature" - labels: "original_name:enabledFeature scope:shared data_type:enum refName:ChainInfo" - registrationID: "scope:shared refType:Schemas refName:ChainInfo originalName:enabledFeature" -DEBUG discriminated: Renamed to "GetChainResponse_enabledFeature" - labels: "original_name:enabledFeature scope:shared data_type:enum refName:GetChainResponse" - registrationID: "scope:shared refType:Schemas refName:GetChainResponse originalName:enabledFeature" -DEBUG - ---- Renaming 12 types with name "ercType" --- -DEBUG discriminated: Renamed to "Erc721Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721Token constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721Token constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155Token constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155Token constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "TeleporterRewardDetails_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:TeleporterRewardDetails constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:TeleporterRewardDetails constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "IcmRewardDetails_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:IcmRewardDetails constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:IcmRewardDetails constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20TokenBalance constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20TokenBalance constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc721TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721TokenBalance constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721TokenBalance constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155TokenBalance constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155TokenBalance constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20Token constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20Token constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc721Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721Contract constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721Contract constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155Contract constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155Contract constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20Contract constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20Contract constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "UnknownContract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:UnknownContract constProperty:Unknown" - registrationID: "scope:shared refType:Schemas refName:UnknownContract constProperty:UNKNOWN originalName:ercType" -DEBUG - ---- Renaming 3 types with name "blsCredentials" --- -DEBUG discriminated: Renamed to "L1ValidatorDetailsTransaction_blsCredentials" - labels: "original_name:blsCredentials scope:shared refName:L1ValidatorDetailsTransaction" - registrationID: "scope:shared refType:Schemas refName:L1ValidatorDetailsTransaction originalName:blsCredentials" -DEBUG discriminated: Renamed to "L1ValidatorDetailsFull_blsCredentials" - labels: "original_name:blsCredentials scope:shared refName:L1ValidatorDetailsFull" - registrationID: "scope:shared refType:Schemas refName:L1ValidatorDetailsFull originalName:blsCredentials" -DEBUG - ---- Renaming 2 types with name "genesisData" --- -DEBUG discriminated: Renamed to "BlockchainInfo_genesisData" - labels: "original_name:genesisData scope:shared refName:BlockchainInfo" - registrationID: "scope:shared refType:Schemas refName:BlockchainInfo originalName:genesisData" -DEBUG discriminated: Renamed to "Blockchain_genesisData" - labels: "original_name:genesisData scope:shared refName:Blockchain" - registrationID: "scope:shared refType:Schemas refName:Blockchain originalName:genesisData" -DEBUG - ---- Renaming 2 types with name "chainFormat" --- -DEBUG discriminated: Renamed to "XChainNonLinearTransaction_chainFormat" - labels: "original_name:chainFormat scope:shared data_type:enum refName:XChainNonLinearTransaction" - registrationID: "scope:shared refType:Schemas refName:XChainNonLinearTransaction originalName:chainFormat" -DEBUG discriminated: Renamed to "XChainLinearTransaction_chainFormat" - labels: "original_name:chainFormat scope:shared data_type:enum refName:XChainLinearTransaction" - registrationID: "scope:shared refType:Schemas refName:XChainLinearTransaction originalName:chainFormat" -DEBUG - ---- Renaming 2 types with name "txType" --- -DEBUG discriminated: Renamed to "CChainExportTransaction_txType" - labels: "original_name:txType scope:shared data_type:enum refName:CChainExportTransaction constProperty:ExportTx" - registrationID: "scope:shared refType:Schemas refName:CChainExportTransaction constProperty:ExportTx originalName:txType" -DEBUG discriminated: Renamed to "CChainImportTransaction_txType" - labels: "original_name:txType scope:shared data_type:enum refName:CChainImportTransaction constProperty:ImportTx" - registrationID: "scope:shared refType:Schemas refName:CChainImportTransaction constProperty:ImportTx originalName:txType" -DEBUG - ---- Renaming 2 types with name "transaction" --- -DEBUG discriminated: Renamed to "ListXChainTransactionsResponse_transaction" - labels: "original_name:transaction scope:shared data_type:union refName:ListXChainTransactionsResponse" - registrationID: "scope:shared refType:Schemas refName:ListXChainTransactionsResponse originalName:transaction" -DEBUG discriminated: Renamed to "ListCChainAtomicTransactionsResponse_transaction" - labels: "original_name:transaction scope:shared data_type:union refName:ListCChainAtomicTransactionsResponse" - registrationID: "scope:shared refType:Schemas refName:ListCChainAtomicTransactionsResponse originalName:transaction" -DEBUG - ---- Renaming 4 types with name "validationStatus" --- -DEBUG discriminated: Renamed to "CompletedValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:CompletedValidatorDetails constProperty:Completed" - registrationID: "scope:shared refType:Schemas refName:CompletedValidatorDetails constProperty:completed originalName:validationStatus" -DEBUG discriminated: Renamed to "ActiveValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:ActiveValidatorDetails constProperty:Active" - registrationID: "scope:shared refType:Schemas refName:ActiveValidatorDetails constProperty:active originalName:validationStatus" -DEBUG discriminated: Renamed to "PendingValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:PendingValidatorDetails constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingValidatorDetails constProperty:pending originalName:validationStatus" -DEBUG discriminated: Renamed to "RemovedValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:RemovedValidatorDetails constProperty:Removed" - registrationID: "scope:shared refType:Schemas refName:RemovedValidatorDetails constProperty:removed originalName:validationStatus" -DEBUG - ---- Renaming 3 types with name "delegationStatus" --- -DEBUG discriminated: Renamed to "CompletedDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:CompletedDelegatorDetails constProperty:Completed" - registrationID: "scope:shared refType:Schemas refName:CompletedDelegatorDetails constProperty:completed originalName:delegationStatus" -DEBUG discriminated: Renamed to "ActiveDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:ActiveDelegatorDetails constProperty:Active" - registrationID: "scope:shared refType:Schemas refName:ActiveDelegatorDetails constProperty:active originalName:delegationStatus" -DEBUG discriminated: Renamed to "PendingDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:PendingDelegatorDetails constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingDelegatorDetails constProperty:pending originalName:delegationStatus" -DEBUG - ---- Renaming 2 types with name "message" --- -DEBUG discriminated: Renamed to "ListTeleporterMessagesResponse_message" - labels: "original_name:message scope:shared data_type:union refName:ListTeleporterMessagesResponse" - registrationID: "scope:shared refType:Schemas refName:ListTeleporterMessagesResponse originalName:message" -DEBUG discriminated: Renamed to "ListIcmMessagesResponse_message" - labels: "original_name:message scope:shared data_type:union refName:ListIcmMessagesResponse" - registrationID: "scope:shared refType:Schemas refName:ListIcmMessagesResponse originalName:message" -DEBUG - ---- Renaming 2 types with name "groupedBy" --- -DEBUG discriminated: Renamed to "UsageMetricsValueDTO_groupedBy" - labels: "original_name:groupedBy scope:shared data_type:enum refName:UsageMetricsValueDTO" - registrationID: "scope:shared refType:Schemas refName:UsageMetricsValueDTO originalName:groupedBy" -DEBUG discriminated: Renamed to "RpcUsageMetricsValueAggregated_groupedBy" - labels: "original_name:groupedBy scope:shared data_type:enum refName:RpcUsageMetricsValueAggregated" - registrationID: "scope:shared refType:Schemas refName:RpcUsageMetricsValueAggregated originalName:groupedBy" -DEBUG - ---- Renaming 2 types with name "groupValue" --- -DEBUG discriminated: Renamed to "UsageMetricsValueDTO_groupValue" - labels: "original_name:groupValue scope:shared data_type:union refName:UsageMetricsValueDTO" - registrationID: "scope:shared refType:Schemas refName:UsageMetricsValueDTO originalName:groupValue" -DEBUG discriminated: Renamed to "RpcUsageMetricsValueAggregated_groupValue" - labels: "original_name:groupValue scope:shared data_type:union refName:RpcUsageMetricsValueAggregated" - registrationID: "scope:shared refType:Schemas refName:RpcUsageMetricsValueAggregated originalName:groupValue" -DEBUG - ---- Renaming 2 types with name "requestType" --- -DEBUG discriminated: Renamed to "getApiUsageMetrics_requestType" - labels: "original_name:requestType operation:getApiUsageMetrics operationTag:data.usageMetrics data_type:enum parameter:queryParam" - registrationID: "scope:operations operationTag:data.usageMetrics operation:getApiUsageMetrics parameter:queryParam originalName:requestType" -DEBUG discriminated: Renamed to "getApiLogs_requestType" - labels: "original_name:requestType operation:getApiLogs operationTag:data.usageMetrics data_type:enum parameter:queryParam" - registrationID: "scope:operations operationTag:data.usageMetrics operation:getApiLogs parameter:queryParam originalName:requestType" -DEBUG - ---- Renaming 8 types with name "message" --- -DEBUG discriminated: Renamed to "BadRequest_message" - labels: "original_name:message scope:errors data_type:union refName:BadRequest" - registrationID: "scope:errors refType:Schemas refName:BadRequest originalName:message" -DEBUG discriminated: Renamed to "Unauthorized_message" - labels: "original_name:message scope:errors data_type:union refName:Unauthorized" - registrationID: "scope:errors refType:Schemas refName:Unauthorized originalName:message" -DEBUG discriminated: Renamed to "Forbidden_message" - labels: "original_name:message scope:errors data_type:union refName:Forbidden" - registrationID: "scope:errors refType:Schemas refName:Forbidden originalName:message" -DEBUG discriminated: Renamed to "NotFound_message" - labels: "original_name:message scope:errors data_type:union refName:NotFound" - registrationID: "scope:errors refType:Schemas refName:NotFound originalName:message" -DEBUG discriminated: Renamed to "TooManyRequests_message" - labels: "original_name:message scope:errors data_type:union refName:TooManyRequests" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests originalName:message" -DEBUG discriminated: Renamed to "InternalServerError_message" - labels: "original_name:message scope:errors data_type:union refName:InternalServerError" - registrationID: "scope:errors refType:Schemas refName:InternalServerError originalName:message" -DEBUG discriminated: Renamed to "BadGateway_message" - labels: "original_name:message scope:errors data_type:union refName:BadGateway" - registrationID: "scope:errors refType:Schemas refName:BadGateway originalName:message" -DEBUG discriminated: Renamed to "ServiceUnavailable_message" - labels: "original_name:message scope:errors data_type:union refName:ServiceUnavailable" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable originalName:message" -DEBUG - ---- Renaming 2 types with name "chains" --- -DEBUG discriminated: Renamed to "address_chains" - labels: "original_name:chains group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:chains" -DEBUG - ---- Renaming 3 types with name "transactions" --- -DEBUG discriminated: Renamed to "evm_transactions" - labels: "original_name:transactions group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm originalName:transactions" -DEBUG discriminated: Renamed to "primaryNetwork_transactions" - labels: "original_name:transactions group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:transactions" -DEBUG discriminated: Renamed to "address_transactions" - labels: "original_name:transactions group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:transactions" -DEBUG - ---- Renaming 2 types with name "blocks" --- -DEBUG discriminated: Renamed to "evm_blocks" - labels: "original_name:blocks group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm originalName:blocks" -DEBUG discriminated: Renamed to "primaryNetwork_blocks" - labels: "original_name:blocks group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:blocks" -DEBUG - ---- Renaming 2 types with name "balances" --- -DEBUG discriminated: Renamed to "primaryNetwork_balances" - labels: "original_name:balances group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:balances" -DEBUG discriminated: Renamed to "address_balances" - labels: "original_name:balances group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:balances" -DEBUG - ---- Renaming 2 types with name "contracts" --- -DEBUG discriminated: Renamed to "address_contracts" - labels: "original_name:contracts group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:contracts" -DEBUG prepend_op_id: N/A rename "postTransactionExportJob_request" - labels: "original_name:request operation:postTransactionExportJob operationTag:data.operations data_type:union" - registrationID: "scope:operations operationTag:data.operations operation:postTransactionExportJob requestResponse:request originalName:RequestBody" -DEBUG prepend_op_id: N/A rename "listLatestPrimaryNetworkTransactions_ResponseBody" - labels: "original_name:ResponseBody operation:listLatestPrimaryNetworkTransactions operationTag:data.primaryNetwork.transactions requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.transactions operation:listLatestPrimaryNetworkTransactions requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: N/A rename "getUtxosByAddresses_ResponseBody" - labels: "original_name:ResponseBody operation:getUtxosByAddresses operationTag:data.primaryNetwork.utxos requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.utxos operation:getUtxosByAddresses requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG - -Avalanche (SDK empty) -Data (SDK empty) -Evm (SDK empty) -Address (SDK empty) -AddressChains (SDK empty) -ListAddressChainsRequest (address: string) -ListAddressChainsResponse (indexedChains: array, unindexedChains: array) - ChainInfo (chainId: string, status: ChainStatus, chainName: string ...) - ChainStatus (enum: OK, UNAVAILABLE) - VmName (enum: EVM, BITCOIN, ETHEREUM) - UtilityAddresses (multicall: string) - NetworkToken (name: string, symbol: string, decimals: number ...) - ChainInfoEnabledFeature (enum: nftIndexing, webhooks, teleporter) -BadRequestError (error) - BadRequestMessage (union) -UnauthorizedError (error) - UnauthorizedMessage (union) -ForbiddenError (error) - ForbiddenMessage (union) -NotFoundError (error) - NotFoundMessage (union) -TooManyRequestsError (error) - TooManyRequestsMessage (union) -InternalServerError (error) - InternalServerErrorMessage (union) -BadGatewayError (error) - BadGatewayMessage (union) -ServiceUnavailableError (error) - ServiceUnavailableMessage (union) -Security (apiKey: string) -AddressBalances (SDK empty) -GetNativeBalanceRequest (blockNumber: string, chainId: string, address: string ...) - CurrencyCode (enum: usd, eur, aud ...) -GetNativeBalanceResponse (nativeTokenBalance: NativeTokenBalance) - NativeTokenBalance (name: string, symbol: string, decimals: number ...) - Money (currencyCode: CurrencyCode, value: number) -ListErc20BalancesRequest (blockNumber: string, pageToken: string, pageSize: integer ...) -ListErc20BalancesResponse (Result: ListErc20BalancesResponse) - ListErc20BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc20TokenBalances: array) - Erc20TokenBalance (address: string, name: string, symbol: string ...) - Erc20TokenBalanceErcType (enum: ERC-20) - TokenReputation (enum: Malicious, Benign) -ListErc721BalancesRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListErc721BalancesResponse (Result: ListErc721BalancesResponse) - ListErc721BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc721TokenBalances: array) - Erc721TokenBalance (address: string, name: string, symbol: string ...) - Erc721TokenBalanceErcType (enum: ERC-721) - Erc721TokenMetadata (indexStatus: NftTokenMetadataStatus, metadataLastUpdatedTimestamp: number, name: string ...) - NftTokenMetadataStatus (enum: UNKNOWN, MISSING_TOKEN, INVALID_TOKEN_URI ...) -ListErc1155BalancesRequest (blockNumber: string, pageToken: string, pageSize: integer ...) -ListErc1155BalancesResponse (Result: ListErc1155BalancesResponse) - ListErc1155BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc1155TokenBalances: array) - Erc1155TokenBalance (address: string, ercType: enum, tokenId: string ...) - Erc1155TokenBalanceErcType (enum: ERC-1155) - Erc1155TokenMetadata (indexStatus: NftTokenMetadataStatus, metadataLastUpdatedTimestamp: number, name: string ...) -ListCollectibleBalancesRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListCollectibleBalancesResponse (Result: ListCollectibleBalancesResponse) - ListCollectibleBalancesResponse (nextPageToken: string, collectibleBalances: array) - CollectibleBalance (union) -ListCollectibleBalancesGlobals (chainId: string) -AddressContracts (SDK empty) -ListContractDeploymentsRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListContractDeploymentsResponse (Result: ListContractsResponse) - ListContractsResponse (nextPageToken: string, contracts: array) - Contract (union) - Erc721Contract (name: string, description: string, officialSite: string ...) - ImageAsset (assetId: string, imageUri: string) - ResourceLink (type: ResourceLinkType, url: string) - ResourceLinkType (enum: Blog, CoinGecko, CoinMarketCap ...) - ContractDeploymentDetails (txHash: string, deployerAddress: string, deployerContractAddress: string) - Erc721ContractErcType (enum: ERC-721) - Erc1155Contract (name: string, description: string, officialSite: string ...) - Erc1155ContractErcType (enum: ERC-1155) - PricingProviders (coingeckoCoinId: string) - Erc20Contract (name: string, description: string, officialSite: string ...) - Erc20ContractErcType (enum: ERC-20) - UnknownContract (name: string, description: string, officialSite: string ...) - UnknownContractErcType (enum: UNKNOWN) -AddressTransactions (SDK empty) -ListTransactionsRequest (pageToken: string, pageSize: integer, startBlock: number ...) - SortOrder (enum: asc, desc) -ListTransactionsResponse (Result: ListTransactionDetailsResponse) - ListTransactionDetailsResponse (nextPageToken: string, transactions: array) - TransactionDetails (nativeTransaction: NativeTransaction, erc20Transfers: array, erc721Transfers: array ...) - NativeTransaction (blockNumber: string, blockTimestamp: number, blockHash: string ...) - RichAddress (name: string, symbol: string, decimals: number ...) - Method (callType: TransactionMethodType, methodHash: string, methodName: string) - TransactionMethodType (enum: NATIVE_TRANSFER, CONTRACT_CALL, CONTRACT_CREATION) - Erc20TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc20Token (address: string, name: string, symbol: string ...) - Erc20TokenErcType (enum: ERC-20) - Erc721TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc721Token (address: string, name: string, symbol: string ...) - Erc721TokenErcType (enum: ERC-721) - Erc1155TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc1155Token (address: string, ercType: enum, tokenId: string ...) - Erc1155TokenErcType (enum: ERC-1155) - InternalTransactionDetails (from: RichAddress, to: RichAddress, internalTxType: InternalTransactionOpCall ...) - InternalTransactionOpCall (enum: UNKNOWN, CALL, CREATE ...) -ListNativeTransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListNativeTransactionsResponse (Result: ListNativeTransactionsResponse) - ListNativeTransactionsResponse (nextPageToken: string, transactions: array) -ListErc20TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc20TransactionsResponse (Result: ListErc20TransactionsResponse) - ListErc20TransactionsResponse (nextPageToken: string, transactions: array) - Erc20Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListErc721TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc721TransactionsResponse (Result: ListErc721TransactionsResponse) - ListErc721TransactionsResponse (nextPageToken: string, transactions: array) - Erc721Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListErc1155TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc1155TransactionsResponse (Result: ListErc1155TransactionsResponse) - ListErc1155TransactionsResponse (nextPageToken: string, transactions: array) - Erc1155Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListInternalTransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListInternalTransactionsResponse (Result: ListInternalTransactionsResponse) - ListInternalTransactionsResponse (nextPageToken: string, transactions: array) - InternalTransaction (blockNumber: string, blockTimestamp: number, blockHash: string ...) -EvmTransactions (SDK empty) -ListLatestTransactionsAllChainsRequest (pageToken: string, pageSize: integer, network: Network ...) - Network (enum: mainnet, fuji, testnet) - TransactionStatus (enum: failed, success) -ListLatestTransactionsAllChainsResponse (Result: ListNativeTransactionsResponse) -GetTransactionRequest (chainId: string, txHash: string) -GetTransactionResponse (erc20Transfers: array, erc721Transfers: array, erc1155Transfers: array ...) - NetworkTokenDetails (networkToken: NetworkToken, currentPrice: Money, historicalPrice: Money) - FullNativeTransactionDetails (blockNumber: string, blockTimestamp: number, blockHash: string ...) - TeleporterMessageInfo (teleporterMessageId: string, direction: TransactionDirectionType, sourceChainId: string ...) - TransactionDirectionType (enum: SOURCE_TRANSACTION, DESTINATION_TRANSACTION) -ListLatestTransactionsRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListLatestTransactionsResponse (Result: ListNativeTransactionsResponse) -EvmBlocks (SDK empty) -ListLatestBlocksAllChainsRequest (pageToken: string, pageSize: integer, network: Network) -ListLatestBlocksAllChainsResponse (Result: ListEvmBlocksResponse) - ListEvmBlocksResponse (nextPageToken: string, blocks: array) - EvmBlock (chainId: string, blockNumber: string, blockTimestamp: number ...) -GetLatestBlocksRequest (pageToken: string, pageSize: integer, chainId: string) -GetLatestBlocksResponse (Result: ListEvmBlocksResponse) -GetBlockRequest (chainId: string, blockId: string) -GetEvmBlockResponse (chainId: string, blockNumber: string, blockTimestamp: number ...) -GetTransactionsForBlockRequest (pageToken: string, pageSize: integer, chainId: string ...) -Contracts (SDK empty) -GetDeploymentTransactionRequest (chainId: string, address: string, currency: CurrencyCode) -GetContractMetadataRequest (chainId: string, address: string) -GetContractMetadataResponse (union) -ListTransfersRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListTransfersResponse (Result: ListTransfersResponse) - ListTransfersResponse (nextPageToken: string, transfers: array) - Transfer (union) -Chains (SDK empty) -SupportedChainsRequest (network: Network, feature: ApiFeature) - ApiFeature (enum: nftIndexing, webhooks, teleporter) -ListChainsResponse (chains: array) -GetChainInfoRequest (chainId: string) -GetChainResponse (chainId: string, status: ChainStatus, chainName: string ...) - GetChainResponseEnabledFeature (enum: nftIndexing, webhooks, teleporter) -GetAddressChainsRequest (address: string) -ListAllLatestTransactionsRequest (pageToken: string, pageSize: integer, network: Network ...) -ListAllLatestTransactionsResponse (Result: ListNativeTransactionsResponse) -ListAllLatestBlocksRequest (pageToken: string, pageSize: integer, network: Network) -ListAllLatestBlocksResponse (Result: ListEvmBlocksResponse) -Nfts (SDK empty) -ReindexNftRequest (chainId: string, address: string, tokenId: string) -ListTokensRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListTokensResponse (Result: ListNftTokens) - ListNftTokens (nextPageToken: string, tokens: array) - Token (union) -GetTokenDetailsRequest (chainId: string, address: string, tokenId: string) -GetTokenDetailsResponse (union) -Operations (SDK empty) -GetOperationResultRequest (operationId: string) -OperationStatusResponse (operationId: string, operationType: OperationType, operationStatus: OperationStatus ...) - OperationType (enum: TRANSACTION_EXPORT_PRIMARY_NETWORK, TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING, TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE ...) - OperationStatus (enum: RUNNING, COMPLETED, COMPLETED_WITH_WARNING ...) - Metadata (union) - TransactionExportMetadata (code: OperationStatusCode, downloadUrl: string, nextDate: string) - OperationStatusCode (enum: ErrInvalidRequest, ErrInternal, WarnTruncatedExport) -PostTransactionExportJobRequest (union) - CreateEvmTransactionExportRequest (type: EVMOperationType, firstDate: string, lastDate: string ...) - EvmOperationType (enum: TRANSACTION_EXPORT_EVM) - EvmNetworkOptions (addresses: array, includeChains: array) - CreatePrimaryNetworkTransactionExportRequest (type: PrimaryNetworkOperationType, firstDate: string, lastDate: string ...) - PrimaryNetworkOperationType (enum: TRANSACTION_EXPORT_PRIMARY_NETWORK, TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING, TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE) - PrimaryNetworkOptions (addresses: array, cChainEvmAddresses: array, includeChains: array) - IncludeChain (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) -PrimaryNetwork (SDK empty) -PrimaryNetworkTransactions (SDK empty) -GetTxByHashRequest (blockchainId: BlockchainId, network: GlobalParamNetwork, txHash: string) - BlockchainId (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) - GlobalParamNetwork (enum: mainnet, fuji, testnet) -GetTxByHashResponse (union) - PChainTransaction (txHash: string, txType: PChainTransactionType, blockTimestamp: number ...) - PChainTransactionType (enum: AddValidatorTx, AddSubnetValidatorTx, AddDelegatorTx ...) - PChainUtxo (addresses: array, asset: AssetAmount, consumedOnChainId: string ...) - AssetAmount (assetId: string, name: string, symbol: string ...) - PrimaryNetworkAssetType (enum: secp256k1, nft) - RewardType (enum: VALIDATOR, DELEGATOR, VALIDATOR_FEE) - UtxoType (enum: STAKE, TRANSFER) - L1ValidatorManagerDetails (blockchainId: string, contractAddress: string) - L1ValidatorDetailsTransaction (validationId: string, validationIdHex: string, nodeId: string ...) - L1ValidatorDetailsTransactionBlsCredentials (empty) - SubnetOwnershipInfo (locktime: number, threshold: number, addresses: array) - BlsCredentials (publicKey: string, proofOfPossession: string) - BlockchainInfo (chainName: string, vmId: string, genesisData: class) - BlockchainInfoGenesisData (empty) - XChainNonLinearTransaction (txHash: string, chainFormat: enum, timestamp: number ...) - XChainNonLinearTransactionChainFormat (enum: non-linear, linear) - XChainTransactionType (enum: BaseTx, CreateAssetTx, OperationTx ...) - Utxo (addresses: array, asset: AssetAmount, consumedOnChainId: string ...) - UtxoCredential (signature: string, publicKey: string) - XChainAssetDetails (assetId: string, name: string, symbol: string ...) - PrimaryNetworkAssetCap (enum: fixed, variable) - TransactionVertexDetail (hash: string, height: number, timestamp: number) - XChainLinearTransaction (txHash: string, chainFormat: enum, timestamp: number ...) - XChainLinearTransactionChainFormat (enum: non-linear, linear) - CChainExportTransaction (txHash: string, blockHeight: number, blockHash: string ...) - CChainExportTransactionTxType (enum: ExportTx) - EvmInput (fromAddress: string, asset: AssetAmount, credentials: array) - CChainImportTransaction (txHash: string, blockHeight: number, blockHash: string ...) - CChainImportTransactionTxType (enum: ImportTx) - EvmOutput (toAddress: string, asset: AssetAmount) -ListLatestPrimaryNetworkTransactionsRequest (addresses: string, l1ValidationId: string, txTypes: array ...) - PrimaryNetworkTxType (enum: AddValidatorTx, AddSubnetValidatorTx, AddDelegatorTx ...) -ListLatestPrimaryNetworkTransactionsResponse (Result: union) - ListLatestPrimaryNetworkTransactionsResponseBody (union) - ListPChainTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - PrimaryNetworkChainInfo (chainName: PrimaryNetworkChainName, network: Network) - PrimaryNetworkChainName (enum: p-chain, x-chain, c-chain) - ListXChainTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - ListXChainTransactionsResponseTransaction (union) - ListCChainAtomicTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - ListCChainAtomicTransactionsResponseTransaction (union) -ListActivePrimaryNetworkStakingTransactionsRequest (addresses: string, txTypes: array, startTimestamp: integer ...) - PChainId (enum: 11111111111111111111111111111111LpoYY, p-chain) -ListActivePrimaryNetworkStakingTransactionsResponse (Result: ListPChainTransactionsResponse) -ListAssetTransactionsRequest (txTypes: array, startTimestamp: integer, endTimestamp: integer ...) - XChainId (enum: 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm, x-chain) -ListAssetTransactionsResponse (Result: ListXChainTransactionsResponse) -Rewards (SDK empty) -ListPendingPrimaryNetworkRewardsRequest (addresses: string, pageToken: string, pageSize: integer ...) -ListPendingPrimaryNetworkRewardsResponse (Result: ListPendingRewardsResponse) - ListPendingRewardsResponse (nextPageToken: string, pendingRewards: array) - PendingReward (addresses: array, txHash: string, amountStaked: string ...) -ListHistoricalPrimaryNetworkRewardsRequest (addresses: string, pageToken: string, pageSize: integer ...) -ListHistoricalPrimaryNetworkRewardsResponse (Result: ListHistoricalRewardsResponse) - ListHistoricalRewardsResponse (nextPageToken: string, historicalRewards: array) - HistoricalReward (addresses: array, txHash: string, amountStaked: string ...) - AssetWithPriceInfo (assetId: string, name: string, symbol: string ...) -Utxos (SDK empty) -GetUtxosByAddressesRequest (addresses: string, pageToken: string, pageSize: integer ...) -GetUtxosByAddressesResponse (Result: union) - GetUtxosByAddressesResponseBody (union) - ListPChainUtxosResponse (nextPageToken: string, utxos: array, chainInfo: PrimaryNetworkChainInfo) - ListUtxosResponse (nextPageToken: string, utxos: array, chainInfo: PrimaryNetworkChainInfo) -PrimaryNetworkBalances (SDK empty) -GetBalancesByAddressesRequest (blockTimestamp: integer, addresses: string, blockchainId: BlockchainId ...) -GetBalancesByAddressesResponse (union) - ListPChainBalancesResponse (balances: PChainBalance, chainInfo: PrimaryNetworkChainInfo) - PChainBalance (unlockedUnstaked: array, unlockedStaked: array, lockedPlatform: array ...) - AggregatedAssetAmount (assetId: string, name: string, symbol: string ...) - PChainSharedAsset (assetId: string, name: string, symbol: string ...) - ListXChainBalancesResponse (balances: XChainBalances, chainInfo: PrimaryNetworkChainInfo) - XChainBalances (locked: array, unlocked: array, atomicMemoryUnlocked: array ...) - XChainSharedAssetBalance (assetId: string, name: string, symbol: string ...) - ListCChainAtomicBalancesResponse (balances: CChainAtomicBalances, chainInfo: PrimaryNetworkChainInfo) - CChainAtomicBalances (atomicMemoryUnlocked: array, atomicMemoryLocked: array) - CChainSharedAssetBalance (assetId: string, name: string, symbol: string ...) -PrimaryNetworkBlocks (SDK empty) -GetBlockByIdRequest (blockchainId: BlockchainId, network: GlobalParamNetwork, blockId: string) -GetPrimaryNetworkBlockResponse (blockNumber: string, blockHash: string, parentHash: string ...) - ProposerDetails (proposerId: string, proposerParentId: string, proposerNodeId: string ...) -ListPrimaryNetworkBlocksByNodeIdRequest (startTimestamp: integer, endTimestamp: integer, pageToken: string ...) -ListPrimaryNetworkBlocksByNodeIdResponse (Result: ListPrimaryNetworkBlocksResponse) - ListPrimaryNetworkBlocksResponse (nextPageToken: string, blocks: array, chainInfo: PrimaryNetworkChainInfo) - PrimaryNetworkBlock (blockNumber: string, blockHash: string, parentHash: string ...) -ListLatestPrimaryNetworkBlocksRequest (startTimestamp: integer, endTimestamp: integer, pageToken: string ...) -ListLatestPrimaryNetworkBlocksResponse (Result: ListPrimaryNetworkBlocksResponse) -Vertices (SDK empty) -ListLatestXChainVerticesRequest (pageToken: string, pageSize: integer, blockchainId: XChainId ...) -ListLatestXChainVerticesResponse (Result: ListXChainVerticesResponse) - ListXChainVerticesResponse (nextPageToken: string, vertices: array, chainInfo: PrimaryNetworkChainInfo) - XChainVertex (vertexHash: string, parentHashes: array, vertexHeight: number ...) -GetVertexByHashRequest (vertexHash: string, blockchainId: XChainId, network: GlobalParamNetwork) -GetVertexByHeightRequest (vertexHeight: integer, pageToken: string, pageSize: integer ...) -GetVertexByHeightResponse (Result: ListXChainVerticesResponse) -GetAssetDetailsRequest (blockchainId: XChainId, network: GlobalParamNetwork, assetId: string) -GetChainIdsForAddressesRequest (addresses: string, network: GlobalParamNetwork) -ChainAddressChainIdMapListResponse (addresses: array) - ChainAddressChainIdMap (address: string, blockchainIds: array) - BlockchainIds (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) -GetNetworkDetailsRequest (network: GlobalParamNetwork) -GetNetworkDetailsResponse (validatorDetails: ValidatorsDetails, delegatorDetails: DelegatorsDetails) - ValidatorsDetails (validatorCount: number, totalAmountStaked: string, estimatedAnnualStakingReward: string ...) - StakingDistribution (version: string, amountStaked: string, validatorCount: number) - DelegatorsDetails (delegatorCount: number, totalAmountStaked: string) -ListBlockchainsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -ListBlockchainsResponse (Result: ListBlockchainsResponse) - ListBlockchainsResponse (nextPageToken: string, blockchains: array) - Blockchain (createBlockTimestamp: number, createBlockNumber: string, blockchainId: string ...) - BlockchainGenesisData (empty) -GetBlockchainByIdRequest (blockchainId: string, network: GlobalParamNetwork) -ListSubnetsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -ListSubnetsResponse (Result: ListSubnetsResponse) - ListSubnetsResponse (nextPageToken: string, subnets: array) - Subnet (createBlockTimestamp: number, createBlockIndex: string, subnetId: string ...) -GetSubnetByIdRequest (network: GlobalParamNetwork, subnetId: string) -ListValidatorsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) - SortByOption (enum: blockIndex, delegationCapacity, timeRemaining ...) - ValidationStatusType (enum: completed, active, pending ...) -ListValidatorsResponse (Result: ListValidatorDetailsResponse) - ListValidatorDetailsResponse (nextPageToken: string, validators: array) - Validator (union) - CompletedValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - Rewards (validationRewardAmount: string, delegationRewardAmount: string, rewardAddresses: array ...) - CompletedValidatorDetailsValidationStatus (enum: completed) - ActiveValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - ActiveValidatorDetailsValidationStatus (enum: active) - ValidatorHealthDetails (reachabilityPercent: number, benchedPChainRequestsPercent: number, benchedXChainRequestsPercent: number ...) - Geolocation (city: string, country: string, countryCode: string ...) - PendingValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - PendingValidatorDetailsValidationStatus (enum: pending) - RemovedValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - RemovedValidatorDetailsValidationStatus (enum: removed) -GetSingleValidatorDetailsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -GetSingleValidatorDetailsResponse (Result: ListValidatorDetailsResponse) -ListDelegatorsRequest (pageToken: string, pageSize: integer, rewardAddresses: string ...) - DelegationStatusType (enum: completed, active, pending) -ListDelegatorsResponse (Result: ListDelegatorDetailsResponse) - ListDelegatorDetailsResponse (nextPageToken: string, delegators: array) - Delegator (union) - CompletedDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - CompletedDelegatorDetailsDelegationStatus (enum: completed) - ActiveDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - ActiveDelegatorDetailsDelegationStatus (enum: active) - PendingDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - PendingDelegatorDetailsDelegationStatus (enum: pending) -ListL1ValidatorsRequest (pageToken: string, pageSize: integer, l1ValidationId: string ...) -ListL1ValidatorsResponse (Result: ListL1ValidatorsResponse) - ListL1ValidatorsResponse (nextPageToken: string, validators: array, blockHeight: string) - L1ValidatorDetailsFull (validationId: string, validationIdHex: string, nodeId: string ...) - L1ValidatorDetailsFullBlsCredentials (empty) - BalanceOwner (addresses: array, threshold: number) -Teleporter (SDK empty) -GetTeleporterMessageRequest (messageId: string) -GetTeleporterMessageResponse (union) - PendingTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - TeleporterReceipt (receivedMessageNonce: string, relayerRewardAddress: string) - TeleporterRewardDetails (address: string, name: string, symbol: string ...) - TeleporterRewardDetailsErcType (enum: ERC-20) - TeleporterSourceTransaction (txHash: string, timestamp: number, gasSpent: string) - PendingTeleporterMessageStatus (enum: pending) - DeliveredTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - TeleporterDestinationTransaction (txHash: string, timestamp: number, gasSpent: string ...) - DeliveredTeleporterMessageStatus (enum: delivered) - DeliveredSourceNotIndexedTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - DeliveredSourceNotIndexedTeleporterMessageStatus (enum: delivered_source_not_indexed) -ListTeleporterMessagesRequest (pageToken: string, pageSize: integer, sourceBlockchainId: string ...) -ListTeleporterMessagesResponse (Result: ListTeleporterMessagesResponse) - ListTeleporterMessagesResponse (nextPageToken: string, messages: array) - ListTeleporterMessagesResponseMessage (union) - DeliveredSourceNotIndexedIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - IcmReceipt (receivedMessageNonce: string, relayerRewardAddress: string) - IcmRewardDetails (address: string, name: string, symbol: string ...) - IcmRewardDetailsErcType (enum: ERC-20) - IcmDestinationTransaction (txHash: string, timestamp: number, gasSpent: string ...) - DeliveredSourceNotIndexedIcmMessageStatus (enum: delivered_source_not_indexed) -ListTeleporterMessagesByAddressRequest (pageToken: string, pageSize: integer, address: string ...) -Icm (SDK empty) -GetIcmMessageRequest (messageId: string) -GetIcmMessageResponse (union) - PendingIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - IcmSourceTransaction (txHash: string, timestamp: number, gasSpent: string) - PendingIcmMessageStatus (enum: pending) - DeliveredIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - DeliveredIcmMessageStatus (enum: delivered) -ListIcmMessagesRequest (pageToken: string, pageSize: integer, sourceBlockchainId: string ...) -ListIcmMessagesResponse (Result: ListIcmMessagesResponse) - ListIcmMessagesResponse (nextPageToken: string, messages: array) - ListIcmMessagesResponseMessage (union) -ListIcmMessagesByAddressRequest (pageToken: string, pageSize: integer, address: string ...) -UsageMetrics (SDK empty) -GetApiUsageMetricsRequest (orgId: string, startTimestamp: integer, endTimestamp: integer ...) - TimeIntervalGranularityExtended (enum: minute, hourly, daily ...) - UsageMetricsGroupByEnum (enum: requestPath, responseCode, chainId ...) - GetApiUsageMetricsRequestType (enum: data, rpc) -UsageMetricsResponseDto (aggregateDuration: string, orgId: string, metrics: array) - Metric (timestamp: number, values: array) - UsageMetricsValueDto (groupedBy: enum, groupValue: union, totalRequests: number ...) - UsageMetricsValueDtoGroupedBy (enum: requestPath, responseCode, chainId ...) - UsageMetricsValueDtoGroupValue (union) -GetApiLogsRequest (orgId: string, startTimestamp: integer, endTimestamp: integer ...) - GetApiLogsRequestType (enum: data, rpc) -GetApiLogsResponse (Result: LogsResponseDTO) - LogsResponseDto (nextPageToken: string, orgId: string, logs: array) - LogsFormat (orgId: string, logId: string, eventTimestamp: number ...) - RequestType (enum: data, rpc) - LogsFormatMetadata (ipAddress: string, host: string, userAgent: string) -GetSubnetRpcUsageMetricsRequest (timeInterval: SubnetRpcTimeIntervalGranularity, startTimestamp: integer, endTimestamp: integer ...) - SubnetRpcTimeIntervalGranularity (enum: hourly, daily, weekly ...) - RpcUsageMetricsGroupByEnum (enum: rpcMethod, responseCode, rlBypassToken) -SubnetRpcUsageMetricsResponseDto (aggregateDuration: string, metrics: array, chainId: string) - RpcMetrics (timestamp: number, values: array) - RpcUsageMetricsValueAggregated (totalRequests: number, apiCreditsUsed: number, requestsPerSecond: number ...) - RpcUsageMetricsValueAggregatedGroupedBy (enum: rpcMethod, responseCode, rlBypassToken ...) - RpcUsageMetricsValueAggregatedGroupValue (union) -GetRpcUsageMetricsRequest (timeInterval: SubnetRpcTimeIntervalGranularity, startTimestamp: integer, endTimestamp: integer ...) -SignatureAggregator (SDK empty) -AggregateSignaturesRequest (network: GlobalParamNetwork, SignatureAggregatorRequest: SignatureAggregatorRequest) - SignatureAggregatorRequest (message: string, justification: string, signingSubnetId: string ...) -SignatureAggregationResponse (signedMessage: string) -GetAggregatedSignaturesRequest (network: GlobalParamNetwork, txHash: string) -HealthCheckResultDto (status: enum, info: map, error: map ...) - HealthCheckResultDtoStatus (enum: error, ok, shutting_down) - HealthIndicatorResultDto (status: enum) - HealthIndicatorResultDtoStatus (enum: up, down) -Globals (chainId: string, network: GlobalParamNetwork) - diff --git a/data/src/core.ts b/data/src/core.ts deleted file mode 100644 index 413ea3f4..00000000 --- a/data/src/core.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "./lib/sdks.js"; - -/** - * A minimal client to use when calling standalone SDK functions. Typically, an - * instance of this class would be instantiated once at the start of an - * application and passed around through some dependency injection mechanism to - * parts of an application that need to make SDK calls. - */ -export class AvalancheCore extends ClientSDK {} diff --git a/data/src/funcs/dataEvmAddressBalancesGetNative.ts b/data/src/funcs/dataEvmAddressBalancesGetNative.ts deleted file mode 100644 index 507e2ac4..00000000 --- a/data/src/funcs/dataEvmAddressBalancesGetNative.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get native token balance - * - * @remarks - * Gets native token balance of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - */ -export function dataEvmAddressBalancesGetNative( - client: AvalancheCore, - request: operations.GetNativeBalanceRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetNativeBalanceResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetNativeBalanceRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetNativeBalanceResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetNativeBalanceRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/balances:getNative", - )(pathParams); - - const query = encodeFormQuery({ - "blockNumber": payload.blockNumber, - "currency": payload.currency, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getNativeBalance", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetNativeBalanceResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetNativeBalanceResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmAddressBalancesListCollectibles.ts b/data/src/funcs/dataEvmAddressBalancesListCollectibles.ts deleted file mode 100644 index 98a19800..00000000 --- a/data/src/funcs/dataEvmAddressBalancesListCollectibles.ts +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List collectible (ERC-721/ERC-1155) balances - * - * @remarks - * Lists ERC-721 and ERC-1155 token balances of a wallet address. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ -export function dataEvmAddressBalancesListCollectibles( - client: AvalancheCore, - request: operations.ListCollectibleBalancesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListCollectibleBalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListCollectibleBalancesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListCollectibleBalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListCollectibleBalancesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles", - )(pathParams); - - const query = encodeFormQuery({ - "contractAddress": payload.contractAddress, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listCollectibleBalances", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListCollectibleBalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListCollectibleBalancesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListCollectibleBalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressBalancesListCollectibles( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressBalancesListErc1155.ts b/data/src/funcs/dataEvmAddressBalancesListErc1155.ts deleted file mode 100644 index 8337a05d..00000000 --- a/data/src/funcs/dataEvmAddressBalancesListErc1155.ts +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-1155 balances - * - * @remarks - * Lists ERC-1155 token balances of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ -export function dataEvmAddressBalancesListErc1155( - client: AvalancheCore, - request: operations.ListErc1155BalancesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc1155BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc1155BalancesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc1155BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListErc1155BalancesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/balances:listErc1155", - )(pathParams); - - const query = encodeFormQuery({ - "blockNumber": payload.blockNumber, - "contractAddress": payload.contractAddress, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc1155Balances", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc1155BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc1155BalancesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc1155BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressBalancesListErc1155( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressBalancesListErc20.ts b/data/src/funcs/dataEvmAddressBalancesListErc20.ts deleted file mode 100644 index 23ae658b..00000000 --- a/data/src/funcs/dataEvmAddressBalancesListErc20.ts +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-20 balances - * - * @remarks - * Lists ERC-20 token balances of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - * - * Balance for specific contracts can be retrieved with the `contractAddresses` parameter. - */ -export function dataEvmAddressBalancesListErc20( - client: AvalancheCore, - request: operations.ListErc20BalancesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc20BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc20BalancesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc20BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListErc20BalancesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/balances:listErc20", - )(pathParams); - - const query = encodeFormQuery({ - "blockNumber": payload.blockNumber, - "contractAddresses": payload.contractAddresses, - "currency": payload.currency, - "filterSpamTokens": payload.filterSpamTokens, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc20Balances", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc20BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc20BalancesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc20BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressBalancesListErc20( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressBalancesListErc721.ts b/data/src/funcs/dataEvmAddressBalancesListErc721.ts deleted file mode 100644 index 15157260..00000000 --- a/data/src/funcs/dataEvmAddressBalancesListErc721.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-721 balances - * - * @remarks - * Lists ERC-721 token balances of a wallet address. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ -export function dataEvmAddressBalancesListErc721( - client: AvalancheCore, - request: operations.ListErc721BalancesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc721BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc721BalancesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc721BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListErc721BalancesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/balances:listErc721", - )(pathParams); - - const query = encodeFormQuery({ - "contractAddress": payload.contractAddress, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc721Balances", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc721BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc721BalancesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc721BalancesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressBalancesListErc721( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressChainsList.ts b/data/src/funcs/dataEvmAddressChainsList.ts deleted file mode 100644 index d8ccfefa..00000000 --- a/data/src/funcs/dataEvmAddressChainsList.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * List all chains associated with a given address - * - * @remarks - * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes. - */ -export function dataEvmAddressChainsList( - client: AvalancheCore, - request: operations.ListAddressChainsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListAddressChainsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListAddressChainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/address/{address}/chains")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listAddressChains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListAddressChainsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmAddressContractsListDeployments.ts b/data/src/funcs/dataEvmAddressContractsListDeployments.ts deleted file mode 100644 index 53100789..00000000 --- a/data/src/funcs/dataEvmAddressContractsListDeployments.ts +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List deployed contracts - * - * @remarks - * Lists all contracts deployed by the given address. - */ -export function dataEvmAddressContractsListDeployments( - client: AvalancheCore, - request: operations.ListContractDeploymentsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListContractDeploymentsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListContractDeploymentsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListContractDeploymentsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListContractDeploymentsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/contracts/{address}/deployments", - )(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listContractDeployments", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListContractDeploymentsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListContractDeploymentsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListContractDeploymentsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressContractsListDeployments( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsList.ts b/data/src/funcs/dataEvmAddressTransactionsList.ts deleted file mode 100644 index fa132648..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsList.ts +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List transactions - * - * @remarks - * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint. - * - * Filterable by block ranges. - */ -export function dataEvmAddressTransactionsList( - client: AvalancheCore, - request: operations.ListTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsListErc1155.ts b/data/src/funcs/dataEvmAddressTransactionsListErc1155.ts deleted file mode 100644 index de37ea3c..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsListErc1155.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-1155 transfers - * - * @remarks - * Lists ERC-1155 transfers for an address. Filterable by block range. - */ -export function dataEvmAddressTransactionsListErc1155( - client: AvalancheCore, - request: operations.ListErc1155TransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc1155TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc1155TransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc1155TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListErc1155TransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc1155Transactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc1155TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc1155TransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc1155TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsListErc1155( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsListErc20.ts b/data/src/funcs/dataEvmAddressTransactionsListErc20.ts deleted file mode 100644 index 8e032a1a..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsListErc20.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-20 transfers - * - * @remarks - * Lists ERC-20 transfers for an address. Filterable by block range. - */ -export function dataEvmAddressTransactionsListErc20( - client: AvalancheCore, - request: operations.ListErc20TransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc20TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc20TransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc20TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListErc20TransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc20Transactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc20TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc20TransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc20TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsListErc20( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsListErc721.ts b/data/src/funcs/dataEvmAddressTransactionsListErc721.ts deleted file mode 100644 index a63e3fce..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsListErc721.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC-721 transfers - * - * @remarks - * Lists ERC-721 transfers for an address. Filterable by block range. - */ -export function dataEvmAddressTransactionsListErc721( - client: AvalancheCore, - request: operations.ListErc721TransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListErc721TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListErc721TransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListErc721TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListErc721TransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listErc721Transactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListErc721TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListErc721TransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListErc721TransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsListErc721( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsListInternal.ts b/data/src/funcs/dataEvmAddressTransactionsListInternal.ts deleted file mode 100644 index 3d3af731..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsListInternal.ts +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List internal transactions - * - * @remarks - * Returns a list of internal transactions for an address and chain. Filterable by block range. - * - * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node. - */ -export function dataEvmAddressTransactionsListInternal( - client: AvalancheCore, - request: operations.ListInternalTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListInternalTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListInternalTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListInternalTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListInternalTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listInternalTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListInternalTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListInternalTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListInternalTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsListInternal( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmAddressTransactionsListNative.ts b/data/src/funcs/dataEvmAddressTransactionsListNative.ts deleted file mode 100644 index b87cb168..00000000 --- a/data/src/funcs/dataEvmAddressTransactionsListNative.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List native transactions - * - * @remarks - * Lists native transactions for an address. Filterable by block range. - */ -export function dataEvmAddressTransactionsListNative( - client: AvalancheCore, - request: operations.ListNativeTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListNativeTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListNativeTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/addresses/{address}/transactions:listNative", - )(pathParams); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listNativeTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListNativeTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmAddressTransactionsListNative( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmBlocksGet.ts b/data/src/funcs/dataEvmBlocksGet.ts deleted file mode 100644 index a95d328a..00000000 --- a/data/src/funcs/dataEvmBlocksGet.ts +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get block - * - * @remarks - * Gets the details of an individual block on the EVM-compatible chain. - */ -export function dataEvmBlocksGet( - client: AvalancheCore, - request: operations.GetBlockRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetEvmBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetBlockRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetEvmBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetBlockRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockId: encodeSimple("blockId", payload.blockId, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/blocks/{blockId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getBlock", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetEvmBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetEvmBlockResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmBlocksListLatest.ts b/data/src/funcs/dataEvmBlocksListLatest.ts deleted file mode 100644 index d2bdf530..00000000 --- a/data/src/funcs/dataEvmBlocksListLatest.ts +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List latest blocks - * - * @remarks - * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp. - */ -export function dataEvmBlocksListLatest( - client: AvalancheCore, - request: operations.GetLatestBlocksRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetLatestBlocksRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetLatestBlocksRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/blocks")(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getLatestBlocks", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetLatestBlocksResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmBlocksListLatest( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmBlocksListLatestAllChains.ts b/data/src/funcs/dataEvmBlocksListLatestAllChains.ts deleted file mode 100644 index 35345f84..00000000 --- a/data/src/funcs/dataEvmBlocksListLatestAllChains.ts +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List latest blocks across all supported EVM chains - * - * @remarks - * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network. - */ -export function dataEvmBlocksListLatestAllChains( - client: AvalancheCore, - request: operations.ListLatestBlocksAllChainsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestBlocksAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestBlocksAllChainsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestBlocksAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestBlocksAllChainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/blocks")(); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestBlocksAllChains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestBlocksAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListLatestBlocksAllChainsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestBlocksAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmBlocksListLatestAllChains( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmBlocksListTransactions.ts b/data/src/funcs/dataEvmBlocksListTransactions.ts deleted file mode 100644 index 9e9b9e6b..00000000 --- a/data/src/funcs/dataEvmBlocksListTransactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * List transactions for a block - * - * @remarks - * Lists the transactions that occured in a given block. - */ -export function dataEvmBlocksListTransactions( - client: AvalancheCore, - request: operations.GetTransactionsForBlockRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTransactionsForBlockRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetTransactionsForBlockRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockId: encodeSimple("blockId", payload.blockId, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/blocks/{blockId}/transactions")( - pathParams, - ); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTransactionsForBlock", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListNativeTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListNativeTransactionsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmChainsGet.ts b/data/src/funcs/dataEvmChainsGet.ts deleted file mode 100644 index 6cf60560..00000000 --- a/data/src/funcs/dataEvmChainsGet.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get chain information - * - * @remarks - * Gets chain information for the EVM-compatible chain if supported by AvaCloud. - */ -export function dataEvmChainsGet( - client: AvalancheCore, - request: operations.GetChainInfoRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetChainResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetChainInfoRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetChainResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetChainInfoRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getChainInfo", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetChainResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetChainResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmChainsGetAddressChains.ts b/data/src/funcs/dataEvmChainsGetAddressChains.ts deleted file mode 100644 index 34634e92..00000000 --- a/data/src/funcs/dataEvmChainsGetAddressChains.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataEvmChainsGetAddressChains( - client: AvalancheCore, - request: operations.GetAddressChainsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAddressChainsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetAddressChainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/chains/address/{address}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAddressChains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListAddressChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListAddressChainsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmChainsList.ts b/data/src/funcs/dataEvmChainsList.ts deleted file mode 100644 index 37d2eb2c..00000000 --- a/data/src/funcs/dataEvmChainsList.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * List chains - * - * @remarks - * Lists the AvaCloud supported EVM-compatible chains. Filterable by network. - */ -export function dataEvmChainsList( - client: AvalancheCore, - request: operations.SupportedChainsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.SupportedChainsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.SupportedChainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/chains")(); - - const query = encodeFormQuery({ - "feature": payload.feature, - "network": payload.network, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "supportedChains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListChainsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmChainsListAllLatestBlocks.ts b/data/src/funcs/dataEvmChainsListAllLatestBlocks.ts deleted file mode 100644 index d7094c10..00000000 --- a/data/src/funcs/dataEvmChainsListAllLatestBlocks.ts +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataEvmChainsListAllLatestBlocks( - client: AvalancheCore, - request: operations.ListAllLatestBlocksRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListAllLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListAllLatestBlocksRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListAllLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListAllLatestBlocksRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/chains/allBlocks")(); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listAllLatestBlocks", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListAllLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListAllLatestBlocksResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListAllLatestBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmChainsListAllLatestBlocks( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmChainsListAllLatestTransactions.ts b/data/src/funcs/dataEvmChainsListAllLatestTransactions.ts deleted file mode 100644 index dc6a3159..00000000 --- a/data/src/funcs/dataEvmChainsListAllLatestTransactions.ts +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataEvmChainsListAllLatestTransactions( - client: AvalancheCore, - request: operations.ListAllLatestTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListAllLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListAllLatestTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListAllLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListAllLatestTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/chains/allTransactions")(); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "status": payload.status, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listAllLatestTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListAllLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListAllLatestTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListAllLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmChainsListAllLatestTransactions( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmContractsGetDeploymentTransaction.ts b/data/src/funcs/dataEvmContractsGetDeploymentTransaction.ts deleted file mode 100644 index 0ee5d522..00000000 --- a/data/src/funcs/dataEvmContractsGetDeploymentTransaction.ts +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get deployment transaction - * - * @remarks - * If the address is a smart contract, returns the transaction in which it was deployed. - */ -export function dataEvmContractsGetDeploymentTransaction( - client: AvalancheCore, - request: operations.GetDeploymentTransactionRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetDeploymentTransactionRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetDeploymentTransactionRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment", - )(pathParams); - - const query = encodeFormQuery({ - "currency": payload.currency, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getDeploymentTransaction", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetTransactionResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmContractsGetMetadata.ts b/data/src/funcs/dataEvmContractsGetMetadata.ts deleted file mode 100644 index 75ab26e3..00000000 --- a/data/src/funcs/dataEvmContractsGetMetadata.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get contract metadata - * - * @remarks - * Gets metadata about the contract at the given address. - */ -export function dataEvmContractsGetMetadata( - client: AvalancheCore, - request: operations.GetContractMetadataRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetContractMetadataResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetContractMetadataRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetContractMetadataResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetContractMetadataRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/addresses/{address}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getContractMetadata", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetContractMetadataResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetContractMetadataResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmContractsListTransfers.ts b/data/src/funcs/dataEvmContractsListTransfers.ts deleted file mode 100644 index d2dc2a71..00000000 --- a/data/src/funcs/dataEvmContractsListTransfers.ts +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ERC transfers - * - * @remarks - * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address. - */ -export function dataEvmContractsListTransfers( - client: AvalancheCore, - request: operations.ListTransfersRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListTransfersResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListTransfersRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListTransfersResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListTransfersRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/tokens/{address}/transfers")( - pathParams, - ); - - const query = encodeFormQuery({ - "endBlock": payload.endBlock, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startBlock": payload.startBlock, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listTransfers", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListTransfersResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListTransfersResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListTransfersResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmContractsListTransfers( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmTransactionsGet.ts b/data/src/funcs/dataEvmTransactionsGet.ts deleted file mode 100644 index 990325d1..00000000 --- a/data/src/funcs/dataEvmTransactionsGet.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get transaction - * - * @remarks - * Gets the details of a single transaction. - */ -export function dataEvmTransactionsGet( - client: AvalancheCore, - request: operations.GetTransactionRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTransactionRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetTransactionRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - txHash: encodeSimple("txHash", payload.txHash, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/chains/{chainId}/transactions/{txHash}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTransaction", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetTransactionResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetTransactionResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataEvmTransactionsListLatest.ts b/data/src/funcs/dataEvmTransactionsListLatest.ts deleted file mode 100644 index d5f75eb9..00000000 --- a/data/src/funcs/dataEvmTransactionsListLatest.ts +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List latest transactions - * - * @remarks - * Lists the latest transactions. Filterable by status. - */ -export function dataEvmTransactionsListLatest( - client: AvalancheCore, - request: operations.ListLatestTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/chains/{chainId}/transactions")(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "status": payload.status, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListLatestTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmTransactionsListLatest( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataEvmTransactionsListLatestAllChains.ts b/data/src/funcs/dataEvmTransactionsListLatestAllChains.ts deleted file mode 100644 index b84cf57a..00000000 --- a/data/src/funcs/dataEvmTransactionsListLatestAllChains.ts +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List the latest transactions across all supported EVM chains - * - * @remarks - * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status. - */ -export function dataEvmTransactionsListLatestAllChains( - client: AvalancheCore, - request: operations.ListLatestTransactionsAllChainsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestTransactionsAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestTransactionsAllChainsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestTransactionsAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestTransactionsAllChainsRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/transactions")(); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "status": payload.status, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestTransactionsAllChains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestTransactionsAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListLatestTransactionsAllChainsResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestTransactionsAllChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataEvmTransactionsListLatestAllChains( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataHealthCheck.ts b/data/src/funcs/dataHealthCheck.ts deleted file mode 100644 index e267178f..00000000 --- a/data/src/funcs/dataHealthCheck.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ -export function dataHealthCheck( - client: AvalancheCore, - options?: RequestOptions, -): APIPromise< - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - options, - )); -} - -async function $do( - client: AvalancheCore, - options?: RequestOptions, -): Promise< - [ - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const path = pathToFunc("/v1/health-check")(); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "data-health-check", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.HealthCheckResultDto$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataIcmGet.ts b/data/src/funcs/dataIcmGet.ts deleted file mode 100644 index c4f2d777..00000000 --- a/data/src/funcs/dataIcmGet.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get an ICM message - * - * @remarks - * Gets an ICM message by teleporter message ID. - */ -export function dataIcmGet( - client: AvalancheCore, - request: operations.GetIcmMessageRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetIcmMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetIcmMessageRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetIcmMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetIcmMessageRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - messageId: encodeSimple("messageId", payload.messageId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/icm/messages/{messageId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getIcmMessage", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetIcmMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetIcmMessageResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataIcmList.ts b/data/src/funcs/dataIcmList.ts deleted file mode 100644 index 928476ae..00000000 --- a/data/src/funcs/dataIcmList.ts +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List ICM messages - * - * @remarks - * Lists ICM messages. Ordered by timestamp in descending order. - */ -export function dataIcmList( - client: AvalancheCore, - request: operations.ListIcmMessagesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListIcmMessagesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListIcmMessagesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/icm/messages")(); - - const query = encodeFormQuery({ - "blockchainId": payload.blockchainId, - "destinationBlockchainId": payload.destinationBlockchainId, - "from": payload.from, - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sourceBlockchainId": payload.sourceBlockchainId, - "to": payload.to, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listIcmMessages", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListIcmMessagesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataIcmList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataIcmListByAddress.ts b/data/src/funcs/dataIcmListByAddress.ts deleted file mode 100644 index 916de517..00000000 --- a/data/src/funcs/dataIcmListByAddress.ts +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * List ICM messages by address - * - * @remarks - * Lists ICM messages by address. Ordered by timestamp in descending order. - */ -export function dataIcmListByAddress( - client: AvalancheCore, - request: operations.ListIcmMessagesByAddressRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListIcmMessagesByAddressRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListIcmMessagesByAddressRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/icm/addresses/{address}/messages")(pathParams); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listIcmMessagesByAddress", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListIcmMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListIcmMessagesResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataNftsGet.ts b/data/src/funcs/dataNftsGet.ts deleted file mode 100644 index f1539def..00000000 --- a/data/src/funcs/dataNftsGet.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get token details - * - * @remarks - * Gets token details for a specific token of an NFT contract. - */ -export function dataNftsGet( - client: AvalancheCore, - request: operations.GetTokenDetailsRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetTokenDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTokenDetailsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetTokenDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetTokenDetailsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - tokenId: encodeSimple("tokenId", payload.tokenId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTokenDetails", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetTokenDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetTokenDetailsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataNftsList.ts b/data/src/funcs/dataNftsList.ts deleted file mode 100644 index a7d5176a..00000000 --- a/data/src/funcs/dataNftsList.ts +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List tokens - * - * @remarks - * Lists tokens for an NFT contract. - */ -export function dataNftsList( - client: AvalancheCore, - request: operations.ListTokensRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListTokensResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListTokensRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListTokensResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListTokensRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/nfts/collections/{address}/tokens", - )(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listTokens", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListTokensResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListTokensResponse$inboundSchema, { key: "Result" }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListTokensResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataNftsList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataNftsReindex.ts b/data/src/funcs/dataNftsReindex.ts deleted file mode 100644 index 5a3f2481..00000000 --- a/data/src/funcs/dataNftsReindex.ts +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Reindex NFT metadata - * - * @remarks - * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token. - */ -export function dataNftsReindex( - client: AvalancheCore, - request: operations.ReindexNftRequest, - options?: RequestOptions, -): APIPromise< - Result< - void, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ReindexNftRequest, - options?: RequestOptions, -): Promise< - [ - Result< - void, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ReindexNftRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - tokenId: encodeSimple("tokenId", payload.tokenId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "reindexNft", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - void, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.nil(201, z.void()), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataOperationsExportTransactions.ts b/data/src/funcs/dataOperationsExportTransactions.ts deleted file mode 100644 index b4df1494..00000000 --- a/data/src/funcs/dataOperationsExportTransactions.ts +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Create transaction export operation - * - * @remarks - * Trigger a transaction export operation with given parameters. - * - * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint. - */ -export function dataOperationsExportTransactions( - client: AvalancheCore, - request: operations.PostTransactionExportJobRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.PostTransactionExportJobRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.PostTransactionExportJobRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload, { explode: true }); - - const path = pathToFunc("/v1/operations/transactions:export")(); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "postTransactionExportJob", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(201, components.OperationStatusResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataOperationsGetResult.ts b/data/src/funcs/dataOperationsGetResult.ts deleted file mode 100644 index 8d269184..00000000 --- a/data/src/funcs/dataOperationsGetResult.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get operation - * - * @remarks - * Gets operation details for the given operation id. - */ -export function dataOperationsGetResult( - client: AvalancheCore, - request: operations.GetOperationResultRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetOperationResultRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetOperationResultRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - operationId: encodeSimple("operationId", payload.operationId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/operations/{operationId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getOperationResult", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.OperationStatusResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.OperationStatusResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts b/data/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts deleted file mode 100644 index 88f9c4e4..00000000 --- a/data/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get balances - * - * @remarks - * Gets primary network balances for one of the Primary Network chains for the supplied addresses. - * - * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint. - */ -export function dataPrimaryNetworkBalancesListByAddresses( - client: AvalancheCore, - request: operations.GetBalancesByAddressesRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetBalancesByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetBalancesByAddressesRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetBalancesByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetBalancesByAddressesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/balances", - )(pathParams); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "blockTimestamp": payload.blockTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getBalancesByAddresses", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetBalancesByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetBalancesByAddressesResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkBlocksGet.ts b/data/src/funcs/dataPrimaryNetworkBlocksGet.ts deleted file mode 100644 index 16dcee1f..00000000 --- a/data/src/funcs/dataPrimaryNetworkBlocksGet.ts +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get block - * - * @remarks - * Gets a block by block height or block hash on one of the Primary Network chains. - */ -export function dataPrimaryNetworkBlocksGet( - client: AvalancheCore, - request: operations.GetBlockByIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetPrimaryNetworkBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetBlockByIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetPrimaryNetworkBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetBlockByIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockId: encodeSimple("blockId", payload.blockId, { - explode: false, - charEncoding: "percent", - }), - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getBlockById", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetPrimaryNetworkBlockResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetPrimaryNetworkBlockResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts b/data/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts deleted file mode 100644 index f9675515..00000000 --- a/data/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List blocks proposed by node - * - * @remarks - * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains. - */ -export function dataPrimaryNetworkBlocksListByNodeId( - client: AvalancheCore, - request: operations.ListPrimaryNetworkBlocksByNodeIdRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListPrimaryNetworkBlocksByNodeIdResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListPrimaryNetworkBlocksByNodeIdRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListPrimaryNetworkBlocksByNodeIdResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - nodeId: encodeSimple("nodeId", payload.nodeId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks", - )(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listPrimaryNetworkBlocksByNodeId", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListPrimaryNetworkBlocksByNodeIdResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListPrimaryNetworkBlocksByNodeIdResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkBlocksListByNodeId( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkBlocksListLatest.ts b/data/src/funcs/dataPrimaryNetworkBlocksListLatest.ts deleted file mode 100644 index ab4dfbc6..00000000 --- a/data/src/funcs/dataPrimaryNetworkBlocksListLatest.ts +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List latest blocks - * - * @remarks - * Lists latest blocks on one of the Primary Network chains. - */ -export function dataPrimaryNetworkBlocksListLatest( - client: AvalancheCore, - request: operations.ListLatestPrimaryNetworkBlocksRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestPrimaryNetworkBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestPrimaryNetworkBlocksRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestPrimaryNetworkBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestPrimaryNetworkBlocksRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/blocks", - )(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestPrimaryNetworkBlocks", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestPrimaryNetworkBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListLatestPrimaryNetworkBlocksResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestPrimaryNetworkBlocksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkBlocksListLatest( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetAssetDetails.ts b/data/src/funcs/dataPrimaryNetworkGetAssetDetails.ts deleted file mode 100644 index ee835275..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetAssetDetails.ts +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get asset details - * - * @remarks - * Gets asset details corresponding to the given asset id on the X-Chain. - */ -export function dataPrimaryNetworkGetAssetDetails( - client: AvalancheCore, - request: operations.GetAssetDetailsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.XChainAssetDetails, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAssetDetailsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.XChainAssetDetails, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetAssetDetailsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - assetId: encodeSimple("assetId", payload.assetId, { - explode: false, - charEncoding: "percent", - }), - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAssetDetails", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.XChainAssetDetails, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.XChainAssetDetails$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetBlockchainById.ts b/data/src/funcs/dataPrimaryNetworkGetBlockchainById.ts deleted file mode 100644 index 2a1e8796..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetBlockchainById.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get blockchain details by ID - * - * @remarks - * Get details of the blockchain registered on the network. - */ -export function dataPrimaryNetworkGetBlockchainById( - client: AvalancheCore, - request: operations.GetBlockchainByIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.Blockchain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetBlockchainByIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.Blockchain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetBlockchainByIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/blockchains/{blockchainId}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getBlockchainById", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.Blockchain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.Blockchain$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts b/data/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts deleted file mode 100644 index d3ee7849..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get chain interactions for addresses - * - * @remarks - * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned. - */ -export function dataPrimaryNetworkGetChainIdsForAddresses( - client: AvalancheCore, - request: operations.GetChainIdsForAddressesRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ChainAddressChainIdMapListResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetChainIdsForAddressesRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ChainAddressChainIdMapListResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetChainIdsForAddressesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/addresses:listChainIds")( - pathParams, - ); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getChainIdsForAddresses", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ChainAddressChainIdMapListResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ChainAddressChainIdMapListResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts b/data/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts deleted file mode 100644 index 42f27273..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get network details - * - * @remarks - * Gets network details such as validator and delegator stats. - */ -export function dataPrimaryNetworkGetNetworkDetails( - client: AvalancheCore, - request: operations.GetNetworkDetailsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.GetNetworkDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetNetworkDetailsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.GetNetworkDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetNetworkDetailsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getNetworkDetails", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.GetNetworkDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.GetNetworkDetailsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetSubnetById.ts b/data/src/funcs/dataPrimaryNetworkGetSubnetById.ts deleted file mode 100644 index ecf83d07..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetSubnetById.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get Subnet details by ID - * - * @remarks - * Get details of the Subnet registered on the network. - */ -export function dataPrimaryNetworkGetSubnetById( - client: AvalancheCore, - request: operations.GetSubnetByIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.Subnet, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetSubnetByIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.Subnet, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetSubnetByIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - subnetId: encodeSimple("subnetId", payload.subnetId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/networks/{network}/subnets/{subnetId}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getSubnetById", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.Subnet, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.Subnet$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts b/data/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts deleted file mode 100644 index 0b907318..00000000 --- a/data/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get single validator details - * - * @remarks - * List validator details for a single validator. Filterable by validation status. - */ -export function dataPrimaryNetworkGetValidatorDetails( - client: AvalancheCore, - request: operations.GetSingleValidatorDetailsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetSingleValidatorDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetSingleValidatorDetailsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetSingleValidatorDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetSingleValidatorDetailsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - nodeId: encodeSimple("nodeId", payload.nodeId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/networks/{network}/validators/{nodeId}")( - pathParams, - ); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - "validationStatus": payload.validationStatus, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getSingleValidatorDetails", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetSingleValidatorDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetSingleValidatorDetailsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetSingleValidatorDetailsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkGetValidatorDetails( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkListBlockchains.ts b/data/src/funcs/dataPrimaryNetworkListBlockchains.ts deleted file mode 100644 index 7a356db3..00000000 --- a/data/src/funcs/dataPrimaryNetworkListBlockchains.ts +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List blockchains - * - * @remarks - * Lists all blockchains registered on the network. - */ -export function dataPrimaryNetworkListBlockchains( - client: AvalancheCore, - request: operations.ListBlockchainsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListBlockchainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListBlockchainsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListBlockchainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListBlockchainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/blockchains")(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listBlockchains", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListBlockchainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListBlockchainsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListBlockchainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkListBlockchains( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkListDelegators.ts b/data/src/funcs/dataPrimaryNetworkListDelegators.ts deleted file mode 100644 index 0424a401..00000000 --- a/data/src/funcs/dataPrimaryNetworkListDelegators.ts +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List delegators - * - * @remarks - * Lists details for delegators. - */ -export function dataPrimaryNetworkListDelegators( - client: AvalancheCore, - request: operations.ListDelegatorsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListDelegatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListDelegatorsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListDelegatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListDelegatorsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/delegators")(pathParams); - - const query = encodeFormQuery({ - "delegationStatus": payload.delegationStatus, - "nodeIds": payload.nodeIds, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "rewardAddresses": payload.rewardAddresses, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listDelegators", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListDelegatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListDelegatorsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListDelegatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkListDelegators( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkListL1Validators.ts b/data/src/funcs/dataPrimaryNetworkListL1Validators.ts deleted file mode 100644 index a814fb6c..00000000 --- a/data/src/funcs/dataPrimaryNetworkListL1Validators.ts +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List L1 validators - * - * @remarks - * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id. - */ -export function dataPrimaryNetworkListL1Validators( - client: AvalancheCore, - request: operations.ListL1ValidatorsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListL1ValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListL1ValidatorsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListL1ValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListL1ValidatorsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/l1Validators")(pathParams); - - const query = encodeFormQuery({ - "includeInactiveL1Validators": payload.includeInactiveL1Validators, - "l1ValidationId": payload.l1ValidationId, - "nodeId": payload.nodeId, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "subnetId": payload.subnetId, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listL1Validators", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListL1ValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListL1ValidatorsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListL1ValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkListL1Validators( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkListSubnets.ts b/data/src/funcs/dataPrimaryNetworkListSubnets.ts deleted file mode 100644 index af253bc8..00000000 --- a/data/src/funcs/dataPrimaryNetworkListSubnets.ts +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List subnets - * - * @remarks - * Lists all subnets registered on the network. - */ -export function dataPrimaryNetworkListSubnets( - client: AvalancheCore, - request: operations.ListSubnetsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListSubnetsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListSubnetsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListSubnetsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListSubnetsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/subnets")(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listSubnets", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListSubnetsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListSubnetsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListSubnetsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkListSubnets( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkListValidators.ts b/data/src/funcs/dataPrimaryNetworkListValidators.ts deleted file mode 100644 index fe99483e..00000000 --- a/data/src/funcs/dataPrimaryNetworkListValidators.ts +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List validators - * - * @remarks - * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id. - */ -export function dataPrimaryNetworkListValidators( - client: AvalancheCore, - request: operations.ListValidatorsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListValidatorsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListValidatorsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/validators")(pathParams); - - const query = encodeFormQuery({ - "maxDelegationCapacity": payload.maxDelegationCapacity, - "maxFeePercentage": payload.maxFeePercentage, - "maxTimeRemaining": payload.maxTimeRemaining, - "maxUptimePerformance": payload.maxUptimePerformance, - "minDelegationCapacity": payload.minDelegationCapacity, - "minFeePercentage": payload.minFeePercentage, - "minTimeRemaining": payload.minTimeRemaining, - "minUptimePerformance": payload.minUptimePerformance, - "nodeIds": payload.nodeIds, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortBy": payload.sortBy, - "sortOrder": payload.sortOrder, - "subnetId": payload.subnetId, - "validationStatus": payload.validationStatus, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listValidators", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListValidatorsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListValidatorsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkListValidators( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts b/data/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts deleted file mode 100644 index 1aabac53..00000000 --- a/data/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List historical rewards - * - * @remarks - * Lists historical rewards on the Primary Network for the supplied addresses. - */ -export function dataPrimaryNetworkRewardsListHistoricalRewards( - client: AvalancheCore, - request: operations.ListHistoricalPrimaryNetworkRewardsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListHistoricalPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListHistoricalPrimaryNetworkRewardsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListHistoricalPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema - .parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/rewards")(pathParams); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "currency": payload.currency, - "nodeIds": payload.nodeIds, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listHistoricalPrimaryNetworkRewards", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListHistoricalPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListHistoricalPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkRewardsListHistoricalRewards( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts b/data/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts deleted file mode 100644 index c57a293b..00000000 --- a/data/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List pending rewards - * - * @remarks - * Lists pending rewards on the Primary Network for the supplied addresses. - */ -export function dataPrimaryNetworkRewardsListPendingRewards( - client: AvalancheCore, - request: operations.ListPendingPrimaryNetworkRewardsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListPendingPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListPendingPrimaryNetworkRewardsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListPendingPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListPendingPrimaryNetworkRewardsRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v1/networks/{network}/rewards:listPending")( - pathParams, - ); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "nodeIds": payload.nodeIds, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listPendingPrimaryNetworkRewards", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListPendingPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListPendingPrimaryNetworkRewardsResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListPendingPrimaryNetworkRewardsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkRewardsListPendingRewards( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkTransactionsGet.ts b/data/src/funcs/dataPrimaryNetworkTransactionsGet.ts deleted file mode 100644 index 02acf857..00000000 --- a/data/src/funcs/dataPrimaryNetworkTransactionsGet.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get transaction - * - * @remarks - * Gets the details of a single transaction on one of the Primary Network chains. - */ -export function dataPrimaryNetworkTransactionsGet( - client: AvalancheCore, - request: operations.GetTxByHashRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetTxByHashResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTxByHashRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetTxByHashResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetTxByHashRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - txHash: encodeSimple("txHash", payload.txHash, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTxByHash", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetTxByHashResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetTxByHashResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts b/data/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts deleted file mode 100644 index 3c8e4d90..00000000 --- a/data/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List staking transactions - * - * @remarks - * Lists active staking transactions on the P-Chain for the supplied addresses. - */ -export function dataPrimaryNetworkTransactionsListActiveStakingTransactions( - client: AvalancheCore, - request: operations.ListActivePrimaryNetworkStakingTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListActivePrimaryNetworkStakingTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListActivePrimaryNetworkStakingTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListActivePrimaryNetworkStakingTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations - .ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema - .parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking", - )(pathParams); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - "startTimestamp": payload.startTimestamp, - "txTypes": payload.txTypes, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listActivePrimaryNetworkStakingTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListActivePrimaryNetworkStakingTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations - .ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListActivePrimaryNetworkStakingTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkTransactionsListActiveStakingTransactions( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts b/data/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts deleted file mode 100644 index 6d820353..00000000 --- a/data/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List asset transactions - * - * @remarks - * Lists asset transactions corresponding to the given asset id on the X-Chain. - */ -export function dataPrimaryNetworkTransactionsListAssetTransactions( - client: AvalancheCore, - request: operations.ListAssetTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListAssetTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListAssetTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListAssetTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListAssetTransactionsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - assetId: encodeSimple("assetId", payload.assetId, { - explode: false, - charEncoding: "percent", - }), - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions", - )(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - "txTypes": payload.txTypes, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listAssetTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListAssetTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListAssetTransactionsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListAssetTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkTransactionsListAssetTransactions( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts b/data/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts deleted file mode 100644 index d992025a..00000000 --- a/data/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List latest transactions - * - * @remarks - * Lists the latest transactions on one of the Primary Network chains. - * - * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters. - * - * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well. - * - * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold. - */ -export function dataPrimaryNetworkTransactionsListLatest( - client: AvalancheCore, - request: operations.ListLatestPrimaryNetworkTransactionsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestPrimaryNetworkTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestPrimaryNetworkTransactionsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestPrimaryNetworkTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestPrimaryNetworkTransactionsRequest$outboundSchema - .parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/transactions", - )(pathParams); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "endTimestamp": payload.endTimestamp, - "l1ValidationId": payload.l1ValidationId, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - "startTimestamp": payload.startTimestamp, - "txTypes": payload.txTypes, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestPrimaryNetworkTransactions", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestPrimaryNetworkTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.ListLatestPrimaryNetworkTransactionsResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestPrimaryNetworkTransactionsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkTransactionsListLatest( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts b/data/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts deleted file mode 100644 index 61408e46..00000000 --- a/data/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List UTXOs - * - * @remarks - * Lists UTXOs on one of the Primary Network chains for the supplied addresses. - */ -export function dataPrimaryNetworkUtxosListByAddresses( - client: AvalancheCore, - request: operations.GetUtxosByAddressesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetUtxosByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetUtxosByAddressesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetUtxosByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetUtxosByAddressesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/utxos", - )(pathParams); - - const query = encodeFormQuery({ - "addresses": payload.addresses, - "assetId": payload.assetId, - "includeSpent": payload.includeSpent, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getUtxosByAddresses", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetUtxosByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetUtxosByAddressesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetUtxosByAddressesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkUtxosListByAddresses( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts b/data/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts deleted file mode 100644 index d16ba19d..00000000 --- a/data/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get vertex - * - * @remarks - * Gets a single vertex on the X-Chain. - */ -export function dataPrimaryNetworkVerticesGetByHash( - client: AvalancheCore, - request: operations.GetVertexByHashRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.XChainVertex, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetVertexByHashRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.XChainVertex, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetVertexByHashRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - vertexHash: encodeSimple("vertexHash", payload.vertexHash, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getVertexByHash", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.XChainVertex, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.XChainVertex$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts b/data/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts deleted file mode 100644 index 2595557f..00000000 --- a/data/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List vertices by height - * - * @remarks - * Lists vertices at the given vertex height on the X-Chain. - */ -export function dataPrimaryNetworkVerticesListByHeight( - client: AvalancheCore, - request: operations.GetVertexByHeightRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetVertexByHeightResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetVertexByHeightRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetVertexByHeightResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetVertexByHeightRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/vertices:listByHeight", - )(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sortOrder": payload.sortOrder, - "vertexHeight": payload.vertexHeight, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getVertexByHeight", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetVertexByHeightResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetVertexByHeightResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetVertexByHeightResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkVerticesListByHeight( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataPrimaryNetworkVerticesListLatest.ts b/data/src/funcs/dataPrimaryNetworkVerticesListLatest.ts deleted file mode 100644 index ac746408..00000000 --- a/data/src/funcs/dataPrimaryNetworkVerticesListLatest.ts +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List vertices - * - * @remarks - * Lists latest vertices on the X-Chain. - */ -export function dataPrimaryNetworkVerticesListLatest( - client: AvalancheCore, - request: operations.ListLatestXChainVerticesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListLatestXChainVerticesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListLatestXChainVerticesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListLatestXChainVerticesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListLatestXChainVerticesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - blockchainId: encodeSimple("blockchainId", payload.blockchainId, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/networks/{network}/blockchains/{blockchainId}/vertices", - )(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listLatestXChainVertices", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListLatestXChainVerticesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListLatestXChainVerticesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListLatestXChainVerticesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataPrimaryNetworkVerticesListLatest( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataSignatureAggregatorAggregate.ts b/data/src/funcs/dataSignatureAggregatorAggregate.ts deleted file mode 100644 index 78e01eef..00000000 --- a/data/src/funcs/dataSignatureAggregatorAggregate.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Aggregate Signatures - * - * @remarks - * Aggregates Signatures for a Warp message from Subnet validators. - */ -export function dataSignatureAggregatorAggregate( - client: AvalancheCore, - request: operations.AggregateSignaturesRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.AggregateSignaturesRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.AggregateSignaturesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.SignatureAggregatorRequest, { - explode: true, - }); - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v1/signatureAggregator/{network}/aggregateSignatures", - )(pathParams); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "aggregateSignatures", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(201, components.SignatureAggregationResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataSignatureAggregatorGet.ts b/data/src/funcs/dataSignatureAggregatorGet.ts deleted file mode 100644 index e2fc546f..00000000 --- a/data/src/funcs/dataSignatureAggregatorGet.ts +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get Aggregated Signatures - * - * @remarks - * Get Aggregated Signatures for a P-Chain L1 related Warp Message. - */ -export function dataSignatureAggregatorGet( - client: AvalancheCore, - request: operations.GetAggregatedSignaturesRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAggregatedSignaturesRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetAggregatedSignaturesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - txHash: encodeSimple("txHash", payload.txHash, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/v1/signatureAggregator/{network}/aggregateSignatures/{txHash}", - )(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAggregatedSignatures", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SignatureAggregationResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(201, components.SignatureAggregationResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataTeleporterGetTeleporterMessage.ts b/data/src/funcs/dataTeleporterGetTeleporterMessage.ts deleted file mode 100644 index 1876b6eb..00000000 --- a/data/src/funcs/dataTeleporterGetTeleporterMessage.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * **[Deprecated]** Gets a teleporter message by message ID. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataTeleporterGetTeleporterMessage( - client: AvalancheCore, - request: operations.GetTeleporterMessageRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetTeleporterMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTeleporterMessageRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetTeleporterMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetTeleporterMessageRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - messageId: encodeSimple("messageId", payload.messageId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/teleporter/messages/{messageId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTeleporterMessage", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetTeleporterMessageResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetTeleporterMessageResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataTeleporterListTeleporterMessages.ts b/data/src/funcs/dataTeleporterListTeleporterMessages.ts deleted file mode 100644 index f26faf1e..00000000 --- a/data/src/funcs/dataTeleporterListTeleporterMessages.ts +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataTeleporterListTeleporterMessages( - client: AvalancheCore, - request: operations.ListTeleporterMessagesRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListTeleporterMessagesRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListTeleporterMessagesRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/teleporter/messages")(); - - const query = encodeFormQuery({ - "blockchainId": payload.blockchainId, - "destinationBlockchainId": payload.destinationBlockchainId, - "from": payload.from, - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "sourceBlockchainId": payload.sourceBlockchainId, - "to": payload.to, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listTeleporterMessages", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListTeleporterMessagesResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataTeleporterListTeleporterMessages( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts b/data/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts deleted file mode 100644 index f469dcd8..00000000 --- a/data/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataTeleporterListTeleporterMessagesByAddress( - client: AvalancheCore, - request: operations.ListTeleporterMessagesByAddressRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListTeleporterMessagesByAddressRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.ListTeleporterMessagesByAddressRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/teleporter/addresses/{address}/messages")( - pathParams, - ); - - const query = encodeFormQuery({ - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listTeleporterMessagesByAddress", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ListTeleporterMessagesResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.ListTeleporterMessagesResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataUsageMetricsGetLogs.ts b/data/src/funcs/dataUsageMetricsGetLogs.ts deleted file mode 100644 index 3b6fa9a5..00000000 --- a/data/src/funcs/dataUsageMetricsGetLogs.ts +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get logs for requests made by client - * - * @remarks - * Gets logs for requests made by client over a specified time interval for a specific organization. - */ -export function dataUsageMetricsGetLogs( - client: AvalancheCore, - request: operations.GetApiLogsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetApiLogsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetApiLogsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetApiLogsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetApiLogsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/apiLogs")(); - - const query = encodeFormQuery({ - "apiKeyId": payload.apiKeyId, - "chainId": payload.chainId, - "endTimestamp": payload.endTimestamp, - "orgId": payload.orgId, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "requestPath": payload.requestPath, - "requestType": payload.requestType, - "responseCode": payload.responseCode, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getApiLogs", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetApiLogsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetApiLogsResponse$inboundSchema, { key: "Result" }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetApiLogsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - dataUsageMetricsGetLogs( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/data/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts b/data/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts deleted file mode 100644 index 4a2c11b4..00000000 --- a/data/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ -export function dataUsageMetricsGetRpcUsageMetrics( - client: AvalancheCore, - request: operations.GetRpcUsageMetricsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetRpcUsageMetricsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetRpcUsageMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/rpcUsageMetrics")(); - - const query = encodeFormQuery({ - "chainId": payload.chainId, - "endTimestamp": payload.endTimestamp, - "groupBy": payload.groupBy, - "responseCode": payload.responseCode, - "rlBypassApiToken": payload.rlBypassApiToken, - "rpcMethod": payload.rpcMethod, - "startTimestamp": payload.startTimestamp, - "timeInterval": payload.timeInterval, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getRpcUsageMetrics", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.SubnetRpcUsageMetricsResponseDTO$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts b/data/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts deleted file mode 100644 index a2804440..00000000 --- a/data/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get usage metrics for the Subnet RPC - * - * @remarks - * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - */ -export function dataUsageMetricsGetSubnetRpcUsage( - client: AvalancheCore, - request: operations.GetSubnetRpcUsageMetricsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetSubnetRpcUsageMetricsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetSubnetRpcUsageMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/subnetRpcUsageMetrics")(); - - const query = encodeFormQuery({ - "chainId": payload.chainId, - "endTimestamp": payload.endTimestamp, - "groupBy": payload.groupBy, - "responseCode": payload.responseCode, - "rlBypassApiToken": payload.rlBypassApiToken, - "rpcMethod": payload.rpcMethod, - "startTimestamp": payload.startTimestamp, - "timeInterval": payload.timeInterval, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getSubnetRpcUsageMetrics", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SubnetRpcUsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.SubnetRpcUsageMetricsResponseDTO$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/funcs/dataUsageMetricsGetUsage.ts b/data/src/funcs/dataUsageMetricsGetUsage.ts deleted file mode 100644 index d542dd65..00000000 --- a/data/src/funcs/dataUsageMetricsGetUsage.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get usage metrics for the Data API - * - * @remarks - * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity. - */ -export function dataUsageMetricsGetUsage( - client: AvalancheCore, - request: operations.GetApiUsageMetricsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.UsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetApiUsageMetricsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.UsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetApiUsageMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/apiUsageMetrics")(); - - const query = encodeFormQuery({ - "apiKeyId": payload.apiKeyId, - "chainId": payload.chainId, - "endTimestamp": payload.endTimestamp, - "groupBy": payload.groupBy, - "orgId": payload.orgId, - "requestPath": payload.requestPath, - "requestType": payload.requestType, - "responseCode": payload.responseCode, - "startTimestamp": payload.startTimestamp, - "timeInterval": payload.timeInterval, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getApiUsageMetrics", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.UsageMetricsResponseDTO, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.UsageMetricsResponseDTO$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/data/src/hooks/hooks.ts b/data/src/hooks/hooks.ts deleted file mode 100644 index d34c8849..00000000 --- a/data/src/hooks/hooks.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { RequestInput } from "../lib/http.js"; -import { - AfterErrorContext, - AfterErrorHook, - AfterSuccessContext, - AfterSuccessHook, - BeforeCreateRequestContext, - BeforeCreateRequestHook, - BeforeRequestContext, - BeforeRequestHook, - Hook, - Hooks, - SDKInitHook, - SDKInitOptions, -} from "./types.js"; - -import { initHooks } from "./registration.js"; - -export class SDKHooks implements Hooks { - sdkInitHooks: SDKInitHook[] = []; - beforeCreateRequestHooks: BeforeCreateRequestHook[] = []; - beforeRequestHooks: BeforeRequestHook[] = []; - afterSuccessHooks: AfterSuccessHook[] = []; - afterErrorHooks: AfterErrorHook[] = []; - - constructor() { - const presetHooks: Array = []; - - for (const hook of presetHooks) { - if ("sdkInit" in hook) { - this.registerSDKInitHook(hook); - } - if ("beforeCreateRequest" in hook) { - this.registerBeforeCreateRequestHook(hook); - } - if ("beforeRequest" in hook) { - this.registerBeforeRequestHook(hook); - } - if ("afterSuccess" in hook) { - this.registerAfterSuccessHook(hook); - } - if ("afterError" in hook) { - this.registerAfterErrorHook(hook); - } - } - initHooks(this); - } - - registerSDKInitHook(hook: SDKInitHook) { - this.sdkInitHooks.push(hook); - } - - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook) { - this.beforeCreateRequestHooks.push(hook); - } - - registerBeforeRequestHook(hook: BeforeRequestHook) { - this.beforeRequestHooks.push(hook); - } - - registerAfterSuccessHook(hook: AfterSuccessHook) { - this.afterSuccessHooks.push(hook); - } - - registerAfterErrorHook(hook: AfterErrorHook) { - this.afterErrorHooks.push(hook); - } - - sdkInit(opts: SDKInitOptions): SDKInitOptions { - return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts); - } - - beforeCreateRequest( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ): RequestInput { - let inp = input; - - for (const hook of this.beforeCreateRequestHooks) { - inp = hook.beforeCreateRequest(hookCtx, inp); - } - - return inp; - } - - async beforeRequest( - hookCtx: BeforeRequestContext, - request: Request, - ): Promise { - let req = request; - - for (const hook of this.beforeRequestHooks) { - req = await hook.beforeRequest(hookCtx, req); - } - - return req; - } - - async afterSuccess( - hookCtx: AfterSuccessContext, - response: Response, - ): Promise { - let res = response; - - for (const hook of this.afterSuccessHooks) { - res = await hook.afterSuccess(hookCtx, res); - } - - return res; - } - - async afterError( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ): Promise<{ response: Response | null; error: unknown }> { - let res = response; - let err = error; - - for (const hook of this.afterErrorHooks) { - const result = await hook.afterError(hookCtx, res, err); - res = result.response; - err = result.error; - } - - return { response: res, error: err }; - } -} diff --git a/data/src/hooks/index.ts b/data/src/hooks/index.ts deleted file mode 100644 index f60ec7ac..00000000 --- a/data/src/hooks/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./hooks.js"; -export * from "./types.js"; diff --git a/data/src/hooks/registration.ts b/data/src/hooks/registration.ts deleted file mode 100644 index 70649734..00000000 --- a/data/src/hooks/registration.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Hooks } from "./types.js"; - -/* - * This file is only ever generated once on the first generation and then is free to be modified. - * Any hooks you wish to add should be registered in the initHooks function. Feel free to define them - * in this file or in separate files in the hooks folder. - */ - -// @ts-expect-error remove this line when you add your first hook and hooks is used -export function initHooks(hooks: Hooks) { - // Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook - // with an instance of a hook that implements that specific Hook interface - // Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance -} diff --git a/data/src/hooks/types.ts b/data/src/hooks/types.ts deleted file mode 100644 index 8bfe4fe8..00000000 --- a/data/src/hooks/types.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKOptions } from "../lib/config.js"; -import { HTTPClient, RequestInput } from "../lib/http.js"; -import { RetryConfig } from "../lib/retries.js"; -import { SecurityState } from "../lib/security.js"; - -export type HookContext = { - baseURL: string | URL; - operationID: string; - oAuth2Scopes: string[] | null; - securitySource?: any | (() => Promise); - retryConfig: RetryConfig; - resolvedSecurity: SecurityState | null; - options: SDKOptions; -}; - -export type Awaitable = T | Promise; - -export type SDKInitOptions = { - baseURL: URL | null; - client: HTTPClient; -}; - -export type BeforeCreateRequestContext = HookContext & {}; -export type BeforeRequestContext = HookContext & {}; -export type AfterSuccessContext = HookContext & {}; -export type AfterErrorContext = HookContext & {}; - -/** - * SDKInitHook is called when the SDK is initializing. The - * hook can return a new baseURL and HTTP client to be used by the SDK. - */ -export interface SDKInitHook { - sdkInit: (opts: SDKInitOptions) => SDKInitOptions; -} - -export interface BeforeCreateRequestHook { - /** - * A hook that is called before the SDK creates a `Request` object. The hook - * can modify how a request is constructed since certain modifications, like - * changing the request URL, cannot be done on a request object directly. - */ - beforeCreateRequest: ( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ) => RequestInput; -} - -export interface BeforeRequestHook { - /** - * A hook that is called before the SDK sends a request. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * replace the request before it is sent or throw an error to stop the - * request from being sent. - */ - beforeRequest: ( - hookCtx: BeforeRequestContext, - request: Request, - ) => Awaitable; -} - -export interface AfterSuccessHook { - /** - * A hook that is called after the SDK receives a response. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * modify the response before it is handled or throw an error to stop the - * response from being handled. - */ - afterSuccess: ( - hookCtx: AfterSuccessContext, - response: Response, - ) => Awaitable; -} - -export interface AfterErrorHook { - /** - * A hook that is called after the SDK encounters an error, or a - * non-successful response. The hook can introduce instrumentation code such - * as logging, tracing and metrics or modify the response or error values. - */ - afterError: ( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ) => Awaitable<{ - response: Response | null; - error: unknown; - }>; -} - -export interface Hooks { - /** Registers a hook to be used by the SDK for initialization event. */ - registerSDKInitHook(hook: SDKInitHook): void; - /** Registers a hook to be used by the SDK for to modify `Request` construction. */ - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void; - /** Registers a hook to be used by the SDK for the before request event. */ - registerBeforeRequestHook(hook: BeforeRequestHook): void; - /** Registers a hook to be used by the SDK for the after success event. */ - registerAfterSuccessHook(hook: AfterSuccessHook): void; - /** Registers a hook to be used by the SDK for the after error event. */ - registerAfterErrorHook(hook: AfterErrorHook): void; -} - -export type Hook = - | SDKInitHook - | BeforeCreateRequestHook - | BeforeRequestHook - | AfterSuccessHook - | AfterErrorHook; diff --git a/data/src/index.ts b/data/src/index.ts deleted file mode 100644 index dbcba164..00000000 --- a/data/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./lib/config.js"; -export * as files from "./lib/files.js"; -export { HTTPClient } from "./lib/http.js"; -export type { Fetcher, HTTPClientOptions } from "./lib/http.js"; -export * from "./sdk/sdk.js"; diff --git a/data/src/lib/base64.ts b/data/src/lib/base64.ts deleted file mode 100644 index c2d5b389..00000000 --- a/data/src/lib/base64.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function bytesToBase64(u8arr: Uint8Array): string { - return btoa(String.fromCodePoint(...u8arr)); -} - -export function bytesFromBase64(encoded: string): Uint8Array { - return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0)); -} - -export function stringToBytes(str: string): Uint8Array { - return new TextEncoder().encode(str); -} - -export function stringFromBytes(u8arr: Uint8Array): string { - return new TextDecoder().decode(u8arr); -} - -export function stringToBase64(str: string): string { - return bytesToBase64(stringToBytes(str)); -} - -export function stringFromBase64(b64str: string): string { - return stringFromBytes(bytesFromBase64(b64str)); -} - -export const zodOutbound = z - .instanceof(Uint8Array) - .or(z.string().transform(stringToBytes)); - -export const zodInbound = z - .instanceof(Uint8Array) - .or(z.string().transform(bytesFromBase64)); diff --git a/data/src/lib/config.ts b/data/src/lib/config.ts deleted file mode 100644 index 1e558b90..00000000 --- a/data/src/lib/config.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as components from "../models/components/index.js"; -import { HTTPClient } from "./http.js"; -import { Logger } from "./logger.js"; -import { RetryConfig } from "./retries.js"; -import { Params, pathToFunc } from "./url.js"; - -/** - * Contains the list of servers available to the SDK - */ -export const ServerList = [ - "https://glacier-api.avax.network", -] as const; - -export type SDKOptions = { - apiKey?: string | (() => Promise) | undefined; - - /** - * Allows setting the chainId parameter for all supported operations - */ - chainId?: string | undefined; - - /** - * Allows setting the network parameter for all supported operations - */ - network?: components.GlobalParamNetwork | undefined; - - httpClient?: HTTPClient; - /** - * Allows overriding the default server used by the SDK - */ - serverIdx?: number | undefined; - /** - * Allows overriding the default server URL used by the SDK - */ - serverURL?: string | undefined; - /** - * Allows overriding the default user agent used by the SDK - */ - userAgent?: string | undefined; - /** - * Allows overriding the default retry config used by the SDK - */ - retryConfig?: RetryConfig; - timeoutMs?: number; - debugLogger?: Logger; -}; - -export function serverURLFromOptions(options: SDKOptions): URL | null { - let serverURL = options.serverURL; - - const params: Params = {}; - - if (!serverURL) { - const serverIdx = options.serverIdx ?? 0; - if (serverIdx < 0 || serverIdx >= ServerList.length) { - throw new Error(`Invalid server index ${serverIdx}`); - } - serverURL = ServerList[serverIdx] || ""; - } - - const u = pathToFunc(serverURL)(params); - return new URL(u); -} - -export const SDK_METADATA = { - language: "typescript", - openapiDocVersion: "1.0.0", - sdkVersion: "0.5.3", - genVersion: "2.674.3", - userAgent: "speakeasy-sdk/typescript 0.5.3 2.674.3 1.0.0 @avalanche-sdk/data", -} as const; diff --git a/data/src/lib/dlv.ts b/data/src/lib/dlv.ts deleted file mode 100644 index e81091f5..00000000 --- a/data/src/lib/dlv.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) 2024 Jason Miller (http://jasonformat.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -/** - * @param obj The object to walk - * @param key The key path to walk the object with - * @param def A default value to return if the result is undefined - * - * @example - * dlv(obj, "a.b.c.d") - * @example - * dlv(object, ["a", "b", "c", "d"]) - * @example - * dlv(object, "foo.bar.baz", "Hello, default value!") - */ -export function dlv( - obj: any, - key: string | string[], - def?: T, - p?: number, - undef?: never, -): T | undefined { - key = Array.isArray(key) ? key : key.split("."); - for (p = 0; p < key.length; p++) { - const k = key[p]; - obj = k != null && obj ? obj[k] : undef; - } - return obj === undef ? def : obj; -} diff --git a/data/src/lib/encodings.ts b/data/src/lib/encodings.ts deleted file mode 100644 index 25c9dcba..00000000 --- a/data/src/lib/encodings.ts +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { bytesToBase64 } from "./base64.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export class EncodingError extends Error { - constructor(message: string) { - super(message); - this.name = "EncodingError"; - } -} - -export function encodeMatrix( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - const keyPrefix = encodeString(pk); - tmp = `${keyPrefix}=${encValue}`; - // trim trailing '=' if value was empty - if (tmp === `${keyPrefix}=`) { - tmp = tmp.slice(0, -1); - } - - // If we end up with the nothing then skip forward - if (!tmp) { - return; - } - - out += `;${tmp}`; - }); - - return out; -} - -export function encodeLabel( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let encValue: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join("."); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `.${encodeString(k)}.${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; - encValue = `${k}${encodeValue(pv)}`; - } - - out += encValue == null ? "" : `.${encValue}`; - }); - - return out; -} - -type FormEncoder = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -) => string | undefined; - -function formEncoder(sep: string): FormEncoder { - return ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, - ) => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - const encodedSep = encodeString(sep); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(encodedSep); - } else if (isPlainObject(pv)) { - encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `${encodeString(k)}${encodedSep}${encodeValue(v)}`; - })?.join(encodedSep); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); - }; -} - -export const encodeForm = formEncoder(","); -export const encodeSpaceDelimited = formEncoder(" "); -export const encodePipeDelimited = formEncoder("|"); - -export function encodeBodyForm( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else if (isPlainObject(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else { - encValue = `${encodeValue(pv)}`; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); -} - -export function encodeDeepObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - if (!isPlainObject(value)) { - throw new EncodingError( - `Value of parameter '${key}' which uses deepObject encoding must be an object or null`, - ); - } - - return encodeDeepObjectObject(key, value, options); -} - -export function encodeDeepObjectObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - let out = ""; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - if (!isPlainObject(value)) { - throw new EncodingError(`Expected parameter '${key}' to be an object.`); - } - - Object.entries(value).forEach(([ck, cv]) => { - if (cv == null) { - return; - } - - const pk = `${key}[${ck}]`; - - if (isPlainObject(cv)) { - const objOut = encodeDeepObjectObject(pk, cv, options); - - out += objOut == null ? "" : `&${objOut}`; - - return; - } - - const pairs: unknown[] = Array.isArray(cv) ? cv : [cv]; - const encoded = mapDefined(pairs, (v) => { - return `${encodeString(pk)}=${encodeString(serializeValue(v))}`; - })?.join("&"); - - out += encoded == null ? "" : `&${encoded}`; - }); - - return out.slice(1); -} - -export function encodeJSON( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - if (typeof value === "undefined") { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encVal = encodeString(JSON.stringify(value, jsonReplacer)); - - return options?.explode ? encVal : `${encodeString(key)}=${encVal}`; -} - -export const encodeSimple = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - tmp = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - tmp = mapped?.join("").slice(1); - } else { - const k = options?.explode && isPlainObject(value) ? `${pk}=` : ""; - tmp = `${k}${encodeValue(pv)}`; - } - - out += tmp ? `,${tmp}` : ""; - }); - - return out.slice(1); -}; - -function explode(key: string, value: unknown): [string, unknown][] { - if (Array.isArray(value)) { - return value.map((v) => [key, v]); - } else if (isPlainObject(value)) { - const o = value ?? {}; - return Object.entries(o).map(([k, v]) => [k, v]); - } else { - return [[key, value]]; - } -} - -function serializeValue(value: unknown): string { - if (value == null) { - return ""; - } else if (value instanceof Date) { - return value.toISOString(); - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (typeof value === "object") { - return JSON.stringify(value, jsonReplacer); - } - - return `${value}`; -} - -function jsonReplacer(_: string, value: unknown): unknown { - if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else { - return value; - } -} - -function mapDefined(inp: T[], mapper: (v: T) => R): R[] | null { - const res = inp.reduce((acc, v) => { - if (v == null) { - return acc; - } - - const m = mapper(v); - if (m == null) { - return acc; - } - - acc.push(m); - - return acc; - }, []); - - return res.length ? res : null; -} - -function mapDefinedEntries( - inp: Iterable<[K, V]>, - mapper: (v: [K, V]) => R, -): R[] | null { - const acc: R[] = []; - for (const [k, v] of inp) { - if (v == null) { - continue; - } - - const m = mapper([k, v]); - if (m == null) { - continue; - } - - acc.push(m); - } - - return acc.length ? acc : null; -} - -export function queryJoin(...args: (string | undefined)[]): string { - return args.filter(Boolean).join("&"); -} - -type QueryEncoderOptions = { - explode?: boolean; - charEncoding?: "percent" | "none"; -}; - -type QueryEncoder = ( - key: string, - value: unknown, - options?: QueryEncoderOptions, -) => string | undefined; - -type BulkQueryEncoder = ( - values: Record, - options?: QueryEncoderOptions, -) => string; - -export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( - values: Record, - options?: QueryEncoderOptions, - ): string { - const opts: QueryEncoderOptions = { - ...options, - explode: options?.explode ?? true, - charEncoding: options?.charEncoding ?? "percent", - }; - - const encoded = Object.entries(values).map(([key, value]) => { - return f(key, value, opts); - }); - return queryJoin(...encoded); - }; - - return bulkEncode; -} - -export const encodeJSONQuery = queryEncoder(encodeJSON); -export const encodeFormQuery = queryEncoder(encodeForm); -export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited); -export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited); -export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject); - -export function appendForm( - fd: FormData, - key: string, - value: unknown, - fileName?: string, -): void { - if (value == null) { - return; - } else if (value instanceof Blob && fileName) { - fd.append(key, value, fileName); - } else if (value instanceof Blob) { - fd.append(key, value); - } else { - fd.append(key, String(value)); - } -} diff --git a/data/src/lib/files.ts b/data/src/lib/files.ts deleted file mode 100644 index 0344cd04..00000000 --- a/data/src/lib/files.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Consumes a stream and returns a concatenated array buffer. Useful in - * situations where we need to read the whole file because it forms part of a - * larger payload containing other fields, and we can't modify the underlying - * request structure. - */ -export async function readableStreamToArrayBuffer( - readable: ReadableStream, -): Promise { - const reader = readable.getReader(); - const chunks: Uint8Array[] = []; - - let totalLength = 0; - let done = false; - - while (!done) { - const { value, done: doneReading } = await reader.read(); - - if (doneReading) { - done = true; - } else { - chunks.push(value); - totalLength += value.length; - } - } - - const concatenatedChunks = new Uint8Array(totalLength); - let offset = 0; - - for (const chunk of chunks) { - concatenatedChunks.set(chunk, offset); - offset += chunk.length; - } - - return concatenatedChunks.buffer as ArrayBuffer; -} - -/** - * Determines the MIME content type based on a file's extension. - * Returns null if the extension is not recognized. - */ -export function getContentTypeFromFileName(fileName: string): string | null { - if (!fileName) return null; - - const ext = fileName.toLowerCase().split(".").pop(); - if (!ext) return null; - - const mimeTypes: Record = { - json: "application/json", - xml: "application/xml", - html: "text/html", - htm: "text/html", - txt: "text/plain", - csv: "text/csv", - pdf: "application/pdf", - png: "image/png", - jpg: "image/jpeg", - jpeg: "image/jpeg", - gif: "image/gif", - svg: "image/svg+xml", - js: "application/javascript", - css: "text/css", - zip: "application/zip", - tar: "application/x-tar", - gz: "application/gzip", - mp4: "video/mp4", - mp3: "audio/mpeg", - wav: "audio/wav", - webp: "image/webp", - ico: "image/x-icon", - woff: "font/woff", - woff2: "font/woff2", - ttf: "font/ttf", - otf: "font/otf", - }; - - return mimeTypes[ext] || null; -} diff --git a/data/src/lib/http.ts b/data/src/lib/http.ts deleted file mode 100644 index 13cf1fd7..00000000 --- a/data/src/lib/http.ts +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type Fetcher = ( - input: RequestInfo | URL, - init?: RequestInit, -) => Promise; - -export type Awaitable = T | Promise; - -const DEFAULT_FETCHER: Fetcher = (input, init) => { - // If input is a Request and init is undefined, Bun will discard the method, - // headers, body and other options that were set on the request object. - // Node.js and browers would ignore an undefined init value. This check is - // therefore needed for interop with Bun. - if (init == null) { - return fetch(input); - } else { - return fetch(input, init); - } -}; - -export type RequestInput = { - /** - * The URL the request will use. - */ - url: URL; - /** - * Options used to create a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - */ - options?: RequestInit | undefined; -}; - -export interface HTTPClientOptions { - fetcher?: Fetcher; -} - -export type BeforeRequestHook = (req: Request) => Awaitable; -export type RequestErrorHook = (err: unknown, req: Request) => Awaitable; -export type ResponseHook = (res: Response, req: Request) => Awaitable; - -export class HTTPClient { - private fetcher: Fetcher; - private requestHooks: BeforeRequestHook[] = []; - private requestErrorHooks: RequestErrorHook[] = []; - private responseHooks: ResponseHook[] = []; - - constructor(private options: HTTPClientOptions = {}) { - this.fetcher = options.fetcher || DEFAULT_FETCHER; - } - - async request(request: Request): Promise { - let req = request; - for (const hook of this.requestHooks) { - const nextRequest = await hook(req); - if (nextRequest) { - req = nextRequest; - } - } - - try { - const res = await this.fetcher(req); - - for (const hook of this.responseHooks) { - await hook(res, req); - } - - return res; - } catch (err) { - for (const hook of this.requestErrorHooks) { - await hook(err, req); - } - - throw err; - } - } - - /** - * Registers a hook that is called before a request is made. The hook function - * can mutate the request or return a new request. This may be useful to add - * additional information to request such as request IDs and tracing headers. - */ - addHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** - * Registers a hook that is called when a request cannot be made due to a - * network error. - */ - addHook(hook: "requestError", fn: RequestErrorHook): this; - /** - * Registers a hook that is called when a response has been received from the - * server. - */ - addHook(hook: "response", fn: ResponseHook): this; - addHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ) { - if (args[0] === "beforeRequest") { - this.requestHooks.push(args[1]); - } else if (args[0] === "requestError") { - this.requestErrorHooks.push(args[1]); - } else if (args[0] === "response") { - this.responseHooks.push(args[1]); - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - return this; - } - - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "requestError", fn: RequestErrorHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "response", fn: ResponseHook): this; - removeHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ): this { - let target: unknown[]; - if (args[0] === "beforeRequest") { - target = this.requestHooks; - } else if (args[0] === "requestError") { - target = this.requestErrorHooks; - } else if (args[0] === "response") { - target = this.responseHooks; - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - - const index = target.findIndex((v) => v === args[1]); - if (index >= 0) { - target.splice(index, 1); - } - - return this; - } - - clone(): HTTPClient { - const child = new HTTPClient(this.options); - child.requestHooks = this.requestHooks.slice(); - child.requestErrorHooks = this.requestErrorHooks.slice(); - child.responseHooks = this.responseHooks.slice(); - - return child; - } -} - -export type StatusCodePredicate = number | string | (number | string)[]; - -// A semicolon surrounded by optional whitespace characters is used to separate -// segments in a media type string. -const mediaParamSeparator = /\s*;\s*/g; - -export function matchContentType(response: Response, pattern: string): boolean { - // `*` is a special case which means anything is acceptable. - if (pattern === "*") { - return true; - } - - let contentType = - response.headers.get("content-type")?.trim() || "application/octet-stream"; - contentType = contentType.toLowerCase(); - - const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator); - const [wantType = "", ...wantParams] = wantParts; - - if (wantType.split("/").length !== 2) { - return false; - } - - const gotParts = contentType.split(mediaParamSeparator); - const [gotType = "", ...gotParams] = gotParts; - - const [type = "", subtype = ""] = gotType.split("/"); - if (!type || !subtype) { - return false; - } - - if ( - wantType !== "*/*" && - gotType !== wantType && - `${type}/*` !== wantType && - `*/${subtype}` !== wantType - ) { - return false; - } - - if (gotParams.length < wantParams.length) { - return false; - } - - const params = new Set(gotParams); - for (const wantParam of wantParams) { - if (!params.has(wantParam)) { - return false; - } - } - - return true; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -export function matchStatusCode( - response: Response, - codes: StatusCodePredicate, -): boolean { - const actual = `${response.status}`; - const expectedCodes = Array.isArray(codes) ? codes : [codes]; - if (!expectedCodes.length) { - return false; - } - - return expectedCodes.some((ec) => { - const code = `${ec}`; - - if (code === "default") { - return true; - } - - if (!codeRangeRE.test(`${code}`)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -export function matchResponse( - response: Response, - code: StatusCodePredicate, - contentTypePattern: string, -): boolean { - return ( - matchStatusCode(response, code) && - matchContentType(response, contentTypePattern) - ); -} - -/** - * Uses various heurisitics to determine if an error is a connection error. - */ -export function isConnectionError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Covers fetch in Deno as well - const isBrowserErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("failed to fetch"); - - const isNodeErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("fetch failed"); - - const isBunErr = "name" in err && err.name === "ConnectionError"; - - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnreset"; - - return isBrowserErr || isNodeErr || isGenericErr || isBunErr; -} - -/** - * Uses various heurisitics to determine if an error is a timeout error. - */ -export function isTimeoutError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "TimeoutError"; - const isLegacyNative = "code" in err && err.code === 23; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} - -/** - * Uses various heurisitics to determine if an error is a abort error. - */ -export function isAbortError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "AbortError"; - const isLegacyNative = "code" in err && err.code === 20; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} diff --git a/data/src/lib/is-plain-object.ts b/data/src/lib/is-plain-object.ts deleted file mode 100644 index 61070d3d..00000000 --- a/data/src/lib/is-plain-object.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js - -export function isPlainObject(value: unknown): value is object { - if (typeof value !== "object" || value === null) { - return false; - } - - const prototype = Object.getPrototypeOf(value); - return ( - (prototype === null || - prototype === Object.prototype || - Object.getPrototypeOf(prototype) === null) && - !(Symbol.toStringTag in value) && - !(Symbol.iterator in value) - ); -} diff --git a/data/src/lib/logger.ts b/data/src/lib/logger.ts deleted file mode 100644 index d181f293..00000000 --- a/data/src/lib/logger.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export interface Logger { - group(label?: string): void; - groupEnd(): void; - log(message: any, ...args: any[]): void; -} diff --git a/data/src/lib/matchers.ts b/data/src/lib/matchers.ts deleted file mode 100644 index 6525c6db..00000000 --- a/data/src/lib/matchers.ts +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheAPIError } from "../models/errors/avalancheapierror.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export type Encoding = - | "jsonl" - | "json" - | "text" - | "bytes" - | "stream" - | "sse" - | "nil" - | "fail"; - -const DEFAULT_CONTENT_TYPES: Record = { - jsonl: "application/jsonl", - json: "application/json", - text: "text/plain", - bytes: "application/octet-stream", - stream: "application/octet-stream", - sse: "text/event-stream", - nil: "*", - fail: "*", -}; - -type Schema = { parse(raw: unknown): T }; - -type MatchOptions = { - ctype?: string; - hdrs?: boolean; - key?: string; - sseSentinel?: string; -}; - -export type ValueMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; -}; - -export type ErrorMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; - err: true; -}; - -export type FailMatcher = { - enc: "fail"; - codes: StatusCodePredicate; -}; - -export type Matcher = ValueMatcher | ErrorMatcher | FailMatcher; - -export function jsonErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "json", codes, schema }; -} -export function json( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "json", codes, schema }; -} - -export function jsonl( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "jsonl", codes, schema }; -} - -export function jsonlErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "jsonl", codes, schema }; -} -export function textErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "text", codes, schema }; -} -export function text( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "text", codes, schema }; -} - -export function bytesErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "bytes", codes, schema }; -} -export function bytes( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "bytes", codes, schema }; -} - -export function streamErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "stream", codes, schema }; -} -export function stream( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "stream", codes, schema }; -} - -export function sseErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "sse", codes, schema }; -} -export function sse( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "sse", codes, schema }; -} - -export function nilErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "nil", codes, schema }; -} -export function nil( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "nil", codes, schema }; -} - -export function fail(codes: StatusCodePredicate): FailMatcher { - return { enc: "fail", codes }; -} - -export type MatchedValue = Matchers extends Matcher[] - ? T - : never; -export type MatchedError = Matchers extends Matcher[] - ? E - : never; -export type MatchFunc = ( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, -) => Promise<[result: Result, raw: unknown]>; - -export function match( - ...matchers: Array> -): MatchFunc { - return async function matchFunc( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, - ): Promise< - [ - result: Result, - raw: unknown, - ] - > { - let raw: unknown; - let matcher: Matcher | undefined; - for (const match of matchers) { - const { codes } = match; - const ctpattern = "ctype" in match - ? match.ctype - : DEFAULT_CONTENT_TYPES[match.enc]; - if (ctpattern && matchResponse(response, codes, ctpattern)) { - matcher = match; - break; - } else if (!ctpattern && matchStatusCode(response, codes)) { - matcher = match; - break; - } - } - - if (!matcher) { - return [{ - ok: false, - error: new AvalancheAPIError("Unexpected Status or Content-Type", { - response, - request, - body: await response.text().catch(() => ""), - }), - }, raw]; - } - - const encoding = matcher.enc; - let body = ""; - switch (encoding) { - case "json": - body = await response.text(); - raw = JSON.parse(body); - break; - case "jsonl": - raw = response.body; - break; - case "bytes": - raw = new Uint8Array(await response.arrayBuffer()); - break; - case "stream": - raw = response.body; - break; - case "text": - body = await response.text(); - raw = body; - break; - case "sse": - raw = response.body; - break; - case "nil": - body = await response.text(); - raw = undefined; - break; - case "fail": - body = await response.text(); - raw = body; - break; - default: - encoding satisfies never; - throw new Error(`Unsupported response type: ${encoding}`); - } - - if (matcher.enc === "fail") { - return [{ - ok: false, - error: new AvalancheAPIError("API error occurred", { - request, - response, - body, - }), - }, raw]; - } - - const resultKey = matcher.key || options?.resultKey; - let data: unknown; - - if ("err" in matcher) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - request$: request, - response$: response, - body$: body, - }; - } else if (resultKey) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - [resultKey]: raw, - }; - } else if (matcher.hdrs) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - }; - } else { - data = raw; - } - - if ("err" in matcher) { - const result = safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ); - return [result.ok ? { ok: false, error: result.value } : result, raw]; - } else { - return [ - safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ), - raw, - ]; - } - }; -} - -const headerValRE = /, */; -/** - * Iterates over a Headers object and returns an object with all the header - * entries. Values are represented as an array to account for repeated headers. - */ -export function unpackHeaders(headers: Headers): Record { - const out: Record = {}; - - for (const [k, v] of headers.entries()) { - out[k] = v.split(headerValRE); - } - - return out; -} - -function safeParseResponse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, - httpMeta: { response: Response; request: Request; body: string }, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR( - new ResponseValidationError(errorMessage, { - cause: err, - rawValue, - rawMessage: errorMessage, - ...httpMeta, - }), - ); - } -} diff --git a/data/src/lib/primitives.ts b/data/src/lib/primitives.ts deleted file mode 100644 index d21f1dc4..00000000 --- a/data/src/lib/primitives.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -class InvariantError extends Error { - constructor(message: string) { - super(message); - this.name = "InvariantError"; - } -} - -export function invariant( - condition: unknown, - message: string, -): asserts condition { - if (!condition) { - throw new InvariantError(message); - } -} - -export type ExactPartial = { - [P in keyof T]?: T[P] | undefined; -}; - -export type Remap = { - [k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */ - ? Mapping[k] - : Mapping[k] extends null /* if the mapping is to `null` then drop the key */ - ? never - : k /* otherwise keep the key as-is */]: Inp[k]; -}; - -/** - * Converts or omits an object's keys according to a mapping. - * - * @param inp An object whose keys will be remapped - * @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object. - * @returns A new object with keys remapped or omitted according to the mappings - */ -export function remap< - Inp extends Record, - const Mapping extends { [k in keyof Inp]?: string | null }, ->(inp: Inp, mappings: Mapping): Remap { - let out: any = {}; - - if (!Object.keys(mappings).length) { - out = inp; - return out; - } - - for (const [k, v] of Object.entries(inp)) { - const j = mappings[k]; - if (j === null) { - continue; - } - out[j ?? k] = v; - } - - return out; -} - -export function combineSignals( - ...signals: Array -): AbortSignal | null { - const filtered: AbortSignal[] = []; - for (const signal of signals) { - if (signal) { - filtered.push(signal); - } - } - - switch (filtered.length) { - case 0: - case 1: - return filtered[0] || null; - default: - if ("any" in AbortSignal && typeof AbortSignal.any === "function") { - return AbortSignal.any(filtered); - } - return abortSignalAny(filtered); - } -} - -export function abortSignalAny(signals: AbortSignal[]): AbortSignal { - const controller = new AbortController(); - const result = controller.signal; - if (!signals.length) { - return controller.signal; - } - - if (signals.length === 1) { - return signals[0] || controller.signal; - } - - for (const signal of signals) { - if (signal.aborted) { - return signal; - } - } - - function abort(this: AbortSignal) { - controller.abort(this.reason); - clean(); - } - - const signalRefs: WeakRef[] = []; - function clean() { - for (const signalRef of signalRefs) { - const signal = signalRef.deref(); - if (signal) { - signal.removeEventListener("abort", abort); - } - } - } - - for (const signal of signals) { - signalRefs.push(new WeakRef(signal)); - signal.addEventListener("abort", abort); - } - - return result; -} - -export function compactMap( - values: Record, -): Record { - const out: Record = {}; - - for (const [k, v] of Object.entries(values)) { - if (typeof v !== "undefined") { - out[k] = v; - } - } - - return out; -} - -export function allRequired>( - v: V, -): - | { - [K in keyof V]: NonNullable; - } - | undefined { - if (Object.values(v).every((x) => x == null)) { - return void 0; - } - - return v as ReturnType>; -} diff --git a/data/src/lib/retries.ts b/data/src/lib/retries.ts deleted file mode 100644 index e3ce9aba..00000000 --- a/data/src/lib/retries.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { isConnectionError, isTimeoutError } from "./http.js"; - -export type BackoffStrategy = { - initialInterval: number; - maxInterval: number; - exponent: number; - maxElapsedTime: number; -}; - -const defaultBackoff: BackoffStrategy = { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, -}; - -export type RetryConfig = - | { strategy: "none" } - | { - strategy: "backoff"; - backoff?: BackoffStrategy; - retryConnectionErrors?: boolean; - }; - -/** - * PermanentError is an error that is not recoverable. Throwing this error will - * cause a retry loop to terminate. - */ -export class PermanentError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - - constructor(message: string, options?: { cause?: unknown }) { - let msg = message; - if (options?.cause) { - msg += `: ${options.cause}`; - } - - super(msg, options); - this.name = "PermanentError"; - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = options?.cause; - } - - Object.setPrototypeOf(this, PermanentError.prototype); - } -} - -/** - * TemporaryError is an error is used to signal that an HTTP request can be - * retried as part of a retry loop. If retry attempts are exhausted and this - * error is thrown, the response will be returned to the caller. - */ -export class TemporaryError extends Error { - response: Response; - - constructor(message: string, response: Response) { - super(message); - this.response = response; - this.name = "TemporaryError"; - - Object.setPrototypeOf(this, TemporaryError.prototype); - } -} - -export async function retry( - fetchFn: () => Promise, - options: { - config: RetryConfig; - statusCodes: string[]; - }, -): Promise { - switch (options.config.strategy) { - case "backoff": - return retryBackoff( - wrapFetcher(fetchFn, { - statusCodes: options.statusCodes, - retryConnectionErrors: !!options.config.retryConnectionErrors, - }), - options.config.backoff ?? defaultBackoff, - ); - default: - return await fetchFn(); - } -} - -function wrapFetcher( - fn: () => Promise, - options: { - statusCodes: string[]; - retryConnectionErrors: boolean; - }, -): () => Promise { - return async () => { - try { - const res = await fn(); - if (isRetryableResponse(res, options.statusCodes)) { - throw new TemporaryError( - "Response failed with retryable status code", - res, - ); - } - - return res; - } catch (err: unknown) { - if (err instanceof TemporaryError) { - throw err; - } - - if ( - options.retryConnectionErrors && - (isTimeoutError(err) || isConnectionError(err)) - ) { - throw err; - } - - throw new PermanentError("Permanent error", { cause: err }); - } - }; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -function isRetryableResponse(res: Response, statusCodes: string[]): boolean { - const actual = `${res.status}`; - - return statusCodes.some((code) => { - if (!codeRangeRE.test(code)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -async function retryBackoff( - fn: () => Promise, - strategy: BackoffStrategy, -): Promise { - const { maxElapsedTime, initialInterval, exponent, maxInterval } = strategy; - - const start = Date.now(); - let x = 0; - - while (true) { - try { - const res = await fn(); - return res; - } catch (err: unknown) { - if (err instanceof PermanentError) { - throw err.cause; - } - const elapsed = Date.now() - start; - if (elapsed > maxElapsedTime) { - if (err instanceof TemporaryError) { - return err.response; - } - - throw err; - } - - let retryInterval = 0; - if (err instanceof TemporaryError) { - retryInterval = retryIntervalFromResponse(err.response); - } - - if (retryInterval <= 0) { - retryInterval = - initialInterval * Math.pow(x, exponent) + Math.random() * 1000; - } - - const d = Math.min(retryInterval, maxInterval); - - await delay(d); - x++; - } - } -} - -function retryIntervalFromResponse(res: Response): number { - const retryVal = res.headers.get("retry-after") || ""; - if (!retryVal) { - return 0; - } - - const parsedNumber = Number(retryVal); - if (Number.isInteger(parsedNumber)) { - return parsedNumber * 1000; - } - - const parsedDate = Date.parse(retryVal); - if (Number.isInteger(parsedDate)) { - const deltaMS = parsedDate - Date.now(); - return deltaMS > 0 ? Math.ceil(deltaMS) : 0; - } - - return 0; -} - -async function delay(delay: number): Promise { - return new Promise((resolve) => setTimeout(resolve, delay)); -} diff --git a/data/src/lib/schemas.ts b/data/src/lib/schemas.ts deleted file mode 100644 index 0e340b7e..00000000 --- a/data/src/lib/schemas.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - output, - ZodEffects, - ZodError, - ZodObject, - ZodRawShape, - ZodTypeAny, -} from "zod"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; - -/** - * Utility function that executes some code which may throw a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function parse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Out { - try { - return fn(rawValue); - } catch (err) { - if (err instanceof ZodError) { - throw new SDKValidationError(errorMessage, err, rawValue); - } - throw err; - } -} - -/** - * Utility function that executes some code which may result in a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function safeParse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR(new SDKValidationError(errorMessage, err, rawValue)); - } -} - -export function collectExtraKeys< - Shape extends ZodRawShape, - Catchall extends ZodTypeAny, - K extends string, ->( - obj: ZodObject, - extrasKey: K, - optional: boolean, -): ZodEffects< - typeof obj, - & output> - & { - [k in K]: Record>; - } -> { - return obj.transform((val) => { - const extras: Record> = {}; - const { shape } = obj; - for (const [key] of Object.entries(val)) { - if (key in shape) { - continue; - } - - const v = val[key]; - if (typeof v === "undefined") { - continue; - } - - extras[key] = v; - delete val[key]; - } - - if (optional && Object.keys(extras).length === 0) { - return val; - } - - return { ...val, [extrasKey]: extras }; - }); -} diff --git a/data/src/lib/sdks.ts b/data/src/lib/sdks.ts deleted file mode 100644 index bdb1f37c..00000000 --- a/data/src/lib/sdks.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKHooks } from "../hooks/hooks.js"; -import { HookContext } from "../hooks/types.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { stringToBase64 } from "./base64.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "./config.js"; -import { encodeForm } from "./encodings.js"; -import { - HTTPClient, - isAbortError, - isConnectionError, - isTimeoutError, - matchContentType, - matchStatusCode, -} from "./http.js"; -import { Logger } from "./logger.js"; -import { retry, RetryConfig } from "./retries.js"; -import { SecurityState } from "./security.js"; - -export type RequestOptions = { - /** - * Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If - * `fetchOptions.signal` is set then it will take precedence over this option. - */ - timeoutMs?: number; - /** - * Set or override a retry policy on HTTP calls. - */ - retries?: RetryConfig; - /** - * Specifies the status codes which should be retried using the given retry policy. - */ - retryCodes?: string[]; - /** - * Overrides the base server URL that will be used by an operation. - */ - serverURL?: string | URL; - /** - * @deprecated `fetchOptions` has been flattened into `RequestOptions`. - * - * Sets various request options on the `fetch` call made by an SDK method. - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request} - */ - fetchOptions?: Omit; -} & Omit; - -type RequestConfig = { - method: string; - path: string; - baseURL?: string | URL | undefined; - query?: string; - body?: RequestInit["body"]; - headers?: HeadersInit; - security?: SecurityState | null; - uaHeader?: string; - userAgent?: string | undefined; - timeoutMs?: number; -}; - -const gt: unknown = typeof globalThis === "undefined" ? null : globalThis; -const webWorkerLike = typeof gt === "object" - && gt != null - && "importScripts" in gt - && typeof gt["importScripts"] === "function"; -const isBrowserLike = webWorkerLike - || (typeof navigator !== "undefined" && "serviceWorker" in navigator) - || (typeof window === "object" && typeof window.document !== "undefined"); - -export class ClientSDK { - readonly #httpClient: HTTPClient; - readonly #hooks: SDKHooks; - readonly #logger?: Logger | undefined; - public readonly _baseURL: URL | null; - public readonly _options: SDKOptions & { hooks?: SDKHooks }; - - constructor(options: SDKOptions = {}) { - const opt = options as unknown; - if ( - typeof opt === "object" - && opt != null - && "hooks" in opt - && opt.hooks instanceof SDKHooks - ) { - this.#hooks = opt.hooks; - } else { - this.#hooks = new SDKHooks(); - } - const url = serverURLFromOptions(options); - if (url) { - url.pathname = url.pathname.replace(/\/+$/, "") + "/"; - } - - const { baseURL, client } = this.#hooks.sdkInit({ - baseURL: url, - client: options.httpClient || new HTTPClient(), - }); - this._baseURL = baseURL; - this.#httpClient = client; - - this._options = { ...options, hooks: this.#hooks }; - - this.#logger = this._options.debugLogger; - } - - public _createRequest( - context: HookContext, - conf: RequestConfig, - options?: RequestOptions, - ): Result { - const { method, path, query, headers: opHeaders, security } = conf; - - const base = conf.baseURL ?? this._baseURL; - if (!base) { - return ERR(new InvalidRequestError("No base URL provided for operation")); - } - const reqURL = new URL(base); - const inputURL = new URL(path, reqURL); - - if (path) { - reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/"; - reqURL.pathname += inputURL.pathname.replace(/^\/+/, ""); - } - - let finalQuery = query || ""; - - const secQuery: string[] = []; - for (const [k, v] of Object.entries(security?.queryParams || {})) { - const q = encodeForm(k, v, { charEncoding: "percent" }); - if (typeof q !== "undefined") { - secQuery.push(q); - } - } - if (secQuery.length) { - finalQuery += `&${secQuery.join("&")}`; - } - - if (finalQuery) { - const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery; - reqURL.search = `?${q}`; - } - - const headers = new Headers(opHeaders); - - const username = security?.basic.username; - const password = security?.basic.password; - if (username != null || password != null) { - const encoded = stringToBase64( - [username || "", password || ""].join(":"), - ); - headers.set("Authorization", `Basic ${encoded}`); - } - - const securityHeaders = new Headers(security?.headers || {}); - for (const [k, v] of securityHeaders) { - headers.set(k, v); - } - - let cookie = headers.get("cookie") || ""; - for (const [k, v] of Object.entries(security?.cookies || {})) { - cookie += `; ${k}=${v}`; - } - cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie; - headers.set("cookie", cookie); - - const userHeaders = new Headers( - options?.headers ?? options?.fetchOptions?.headers, - ); - for (const [k, v] of userHeaders) { - headers.set(k, v); - } - - // Only set user agent header in non-browser-like environments since CORS - // policy disallows setting it in browsers e.g. Chrome throws an error. - if (!isBrowserLike) { - headers.set( - conf.uaHeader ?? "user-agent", - conf.userAgent ?? SDK_METADATA.userAgent, - ); - } - - const fetchOptions: Omit = { - ...options?.fetchOptions, - ...options, - }; - if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) { - const timeoutSignal = AbortSignal.timeout(conf.timeoutMs); - fetchOptions.signal = timeoutSignal; - } - - if (conf.body instanceof ReadableStream) { - Object.assign(fetchOptions, { duplex: "half" }); - } - - let input; - try { - input = this.#hooks.beforeCreateRequest(context, { - url: reqURL, - options: { - ...fetchOptions, - body: conf.body ?? null, - headers, - method, - }, - }); - } catch (err: unknown) { - return ERR( - new UnexpectedClientError("Create request hook failed to execute", { - cause: err, - }), - ); - } - - return OK(new Request(input.url, input.options)); - } - - public async _do( - request: Request, - options: { - context: HookContext; - errorCodes: number | string | (number | string)[]; - retryConfig: RetryConfig; - retryCodes: string[]; - }, - ): Promise< - Result< - Response, - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - | UnexpectedClientError - > - > { - const { context, errorCodes } = options; - - return retry( - async () => { - const req = await this.#hooks.beforeRequest(context, request.clone()); - await logRequest(this.#logger, req).catch((e) => - this.#logger?.log("Failed to log request:", e) - ); - - let response = await this.#httpClient.request(req); - - try { - if (matchStatusCode(response, errorCodes)) { - const result = await this.#hooks.afterError( - context, - response, - null, - ); - if (result.error) { - throw result.error; - } - response = result.response || response; - } else { - response = await this.#hooks.afterSuccess(context, response); - } - } finally { - await logResponse(this.#logger, response, req) - .catch(e => this.#logger?.log("Failed to log response:", e)); - } - - return response; - }, - { config: options.retryConfig, statusCodes: options.retryCodes }, - ).then( - (r) => OK(r), - (err) => { - switch (true) { - case isAbortError(err): - return ERR( - new RequestAbortedError("Request aborted by client", { - cause: err, - }), - ); - case isTimeoutError(err): - return ERR( - new RequestTimeoutError("Request timed out", { cause: err }), - ); - case isConnectionError(err): - return ERR( - new ConnectionError("Unable to make request", { cause: err }), - ); - default: - return ERR( - new UnexpectedClientError("Unexpected HTTP client error", { - cause: err, - }), - ); - } - }, - ); - } -} - -const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/; -const jsonlLikeContentTypeRE = - /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/; -async function logRequest(logger: Logger | undefined, req: Request) { - if (!logger) { - return; - } - - const contentType = req.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`> Request: ${req.method} ${req.url}`); - - logger.group("Headers:"); - for (const [k, v] of req.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case jsonLikeContentTypeRE.test(ct): - logger.log(await req.clone().json()); - break; - case ct.startsWith("text/"): - logger.log(await req.clone().text()); - break; - case ct === "multipart/form-data": { - const body = await req.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} - -async function logResponse( - logger: Logger | undefined, - res: Response, - req: Request, -) { - if (!logger) { - return; - } - - const contentType = res.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`< Response: ${req.method} ${req.url}`); - logger.log("Status Code:", res.status, res.statusText); - - logger.group("Headers:"); - for (const [k, v] of res.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case matchContentType(res, "application/json") - || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().json()); - break; - case matchContentType(res, "application/jsonl") - || jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "text/event-stream"): - logger.log(`<${contentType}>`); - break; - case matchContentType(res, "text/*"): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "multipart/form-data"): { - const body = await res.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} diff --git a/data/src/lib/security.ts b/data/src/lib/security.ts deleted file mode 100644 index 250e03fa..00000000 --- a/data/src/lib/security.ts +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as components from "../models/components/index.js"; - -type OAuth2PasswordFlow = { - username: string; - password: string; - clientID?: string | undefined; - clientSecret?: string | undefined; - tokenURL: string; -}; - -export enum SecurityErrorCode { - Incomplete = "incomplete", - UnrecognisedSecurityType = "unrecognized_security_type", -} - -export class SecurityError extends Error { - constructor( - public code: SecurityErrorCode, - message: string, - ) { - super(message); - this.name = "SecurityError"; - } - - static incomplete(): SecurityError { - return new SecurityError( - SecurityErrorCode.Incomplete, - "Security requirements not met in order to perform the operation", - ); - } - static unrecognizedType(type: string): SecurityError { - return new SecurityError( - SecurityErrorCode.UnrecognisedSecurityType, - `Unrecognised security type: ${type}`, - ); - } -} - -export type SecurityState = { - basic: { username?: string | undefined; password?: string | undefined }; - headers: Record; - queryParams: Record; - cookies: Record; - oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" }; -}; - -type SecurityInputBasic = { - type: "http:basic"; - value: - | { username?: string | undefined; password?: string | undefined } - | null - | undefined; -}; - -type SecurityInputBearer = { - type: "http:bearer"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputAPIKey = { - type: "apiKey:header" | "apiKey:query" | "apiKey:cookie"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOIDC = { - type: "openIdConnect"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2 = { - type: "oauth2"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2ClientCredentials = { - type: "oauth2:client_credentials"; - value: - | { clientID?: string | undefined; clientSecret?: string | undefined } - | null - | string - | undefined; - fieldName?: string; -}; - -type SecurityInputOAuth2PasswordCredentials = { - type: "oauth2:password"; - value: - | string - | null - | undefined; - fieldName?: string; -}; - -type SecurityInputCustom = { - type: "http:custom"; - value: any | null | undefined; - fieldName?: string; -}; - -export type SecurityInput = - | SecurityInputBasic - | SecurityInputBearer - | SecurityInputAPIKey - | SecurityInputOAuth2 - | SecurityInputOAuth2ClientCredentials - | SecurityInputOAuth2PasswordCredentials - | SecurityInputOIDC - | SecurityInputCustom; - -export function resolveSecurity( - ...options: SecurityInput[][] -): SecurityState | null { - const state: SecurityState = { - basic: {}, - headers: {}, - queryParams: {}, - cookies: {}, - oauth2: { type: "none" }, - }; - - const option = options.find((opts) => { - return opts.every((o) => { - if (o.value == null) { - return false; - } else if (o.type === "http:basic") { - return o.value.username != null || o.value.password != null; - } else if (o.type === "http:custom") { - return null; - } else if (o.type === "oauth2:password") { - return ( - typeof o.value === "string" && !!o.value - ); - } else if (o.type === "oauth2:client_credentials") { - if (typeof o.value == "string") { - return !!o.value; - } - return o.value.clientID != null || o.value.clientSecret != null; - } else if (typeof o.value === "string") { - return !!o.value; - } else { - throw new Error( - `Unrecognized security type: ${o.type} (value type: ${typeof o - .value})`, - ); - } - }); - }); - if (option == null) { - return null; - } - - option.forEach((spec) => { - if (spec.value == null) { - return; - } - - const { type } = spec; - - switch (type) { - case "apiKey:header": - state.headers[spec.fieldName] = spec.value; - break; - case "apiKey:query": - state.queryParams[spec.fieldName] = spec.value; - break; - case "apiKey:cookie": - state.cookies[spec.fieldName] = spec.value; - break; - case "http:basic": - applyBasic(state, spec); - break; - case "http:custom": - break; - case "http:bearer": - applyBearer(state, spec); - break; - case "oauth2": - applyBearer(state, spec); - break; - case "oauth2:password": - applyBearer(state, spec); - break; - case "oauth2:client_credentials": - break; - case "openIdConnect": - applyBearer(state, spec); - break; - default: - spec satisfies never; - throw SecurityError.unrecognizedType(type); - } - }); - - return state; -} - -function applyBasic( - state: SecurityState, - spec: SecurityInputBasic, -) { - if (spec.value == null) { - return; - } - - state.basic = spec.value; -} - -function applyBearer( - state: SecurityState, - spec: - | SecurityInputBearer - | SecurityInputOAuth2 - | SecurityInputOIDC - | SecurityInputOAuth2PasswordCredentials, -) { - if (typeof spec.value !== "string" || !spec.value) { - return; - } - - let value = spec.value; - if (value.slice(0, 7).toLowerCase() !== "bearer ") { - value = `Bearer ${value}`; - } - - if (spec.fieldName !== undefined) { - state.headers[spec.fieldName] = value; - } -} - -export function resolveGlobalSecurity( - security: Partial | null | undefined, -): SecurityState | null { - return resolveSecurity( - [ - { - fieldName: "x-glacier-api-key", - type: "apiKey:header", - value: security?.apiKey, - }, - ], - ); -} - -export async function extractSecurity< - T extends string | Record, ->(sec: T | (() => Promise) | undefined): Promise { - if (sec == null) { - return; - } - - return typeof sec === "function" ? sec() : sec; -} diff --git a/data/src/lib/url.ts b/data/src/lib/url.ts deleted file mode 100644 index 6bc6356e..00000000 --- a/data/src/lib/url.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const hasOwn = Object.prototype.hasOwnProperty; - -export type Params = Partial>; - -export function pathToFunc( - pathPattern: string, - options?: { charEncoding?: "percent" | "none" }, -): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; - - return function buildURLPath(params: Record = {}): string { - return pathPattern.replace(paramRE, function (_, placeholder) { - if (!hasOwn.call(params, placeholder)) { - throw new Error(`Parameter '${placeholder}' is required`); - } - - const value = params[placeholder]; - if (typeof value !== "string" && typeof value !== "number") { - throw new Error( - `Parameter '${placeholder}' must be a string or number`, - ); - } - - return options?.charEncoding === "percent" - ? encodeURIComponent(`${value}`) - : `${value}`; - }); - }; -} diff --git a/data/src/mcp-server/build.mts b/data/src/mcp-server/build.mts deleted file mode 100644 index a04739f2..00000000 --- a/data/src/mcp-server/build.mts +++ /dev/null @@ -1,16 +0,0 @@ -/// - -import { build } from "bun"; - -const entrypoint = "./src/mcp-server/mcp-server.ts"; - -await build({ - entrypoints: [entrypoint], - outdir: "./bin", - sourcemap: "linked", - target: "node", - format: "esm", - minify: false, - throw: true, - banner: "#!/usr/bin/env node", -}); diff --git a/data/src/mcp-server/cli.ts b/data/src/mcp-server/cli.ts deleted file mode 100644 index b878d8de..00000000 --- a/data/src/mcp-server/cli.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { CommandContext, StricliProcess } from "@stricli/core"; - -export interface LocalContext extends CommandContext { - readonly process: StricliProcess; -} - -export function buildContext(process: NodeJS.Process): LocalContext { - return { process: process as StricliProcess }; -} diff --git a/data/src/mcp-server/cli/start/command.ts b/data/src/mcp-server/cli/start/command.ts deleted file mode 100644 index eac631ea..00000000 --- a/data/src/mcp-server/cli/start/command.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; -import * as components from "../../../models/components/index.js"; -import { consoleLoggerLevels } from "../../console-logger.js"; - -export const startCommand = buildCommand({ - loader: async () => { - const { main } = await import("./impl.js"); - return main; - }, - parameters: { - flags: { - transport: { - kind: "enum", - brief: "The transport to use for communicating with the server", - default: "stdio", - values: ["stdio", "sse"], - }, - port: { - kind: "parsed", - brief: "The port to use when the SSE transport is enabled", - default: "2718", - parse: (val: string) => - z.coerce.number().int().gte(0).lt(65536).parse(val), - }, - tool: { - kind: "parsed", - brief: "Specify tools to mount on the server", - optional: true, - variadic: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "api-key": { - kind: "parsed", - brief: "Sets the apiKey auth field for the API", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "chain-id": { - kind: "parsed", - brief: - "Allows setting the chainId parameter for all supported operations", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - network: { - kind: "parsed", - brief: - "Allows setting the network parameter for all supported operations", - optional: true, - parse: (value) => { - return components.GlobalParamNetwork$inboundSchema.parse(value); - }, - }, - "server-url": { - kind: "parsed", - brief: "Overrides the default server URL used by the SDK", - optional: true, - parse: (value) => new URL(value).toString(), - }, - "server-index": { - kind: "parsed", - brief: "Selects a predefined server used by the SDK", - optional: true, - parse: numberParser, - }, - "log-level": { - kind: "enum", - brief: "The log level to use for the server", - default: "info", - values: consoleLoggerLevels, - }, - env: { - kind: "parsed", - brief: "Environment variables made available to the server", - optional: true, - variadic: true, - parse: (val: string) => { - const sepIdx = val.indexOf("="); - if (sepIdx === -1) { - throw new Error("Invalid environment variable format"); - } - - const key = val.slice(0, sepIdx); - const value = val.slice(sepIdx + 1); - - return [ - z.string().nonempty({ - message: "Environment variable key must be a non-empty string", - }).parse(key), - z.string().nonempty({ - message: "Environment variable value must be a non-empty string", - }).parse(value), - ] satisfies [string, string]; - }, - }, - }, - }, - docs: { - brief: "Run the Model Context Protocol server", - }, -}); diff --git a/data/src/mcp-server/cli/start/impl.ts b/data/src/mcp-server/cli/start/impl.ts deleted file mode 100644 index 2daf11ff..00000000 --- a/data/src/mcp-server/cli/start/impl.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"; -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; -import express from "express"; -import { SDKOptions } from "../../../lib/config.js"; -import { LocalContext } from "../../cli.js"; -import { - ConsoleLoggerLevel, - createConsoleLogger, -} from "../../console-logger.js"; -import { createMCPServer } from "../../server.js"; - -interface StartCommandFlags { - readonly transport: "stdio" | "sse"; - readonly port: number; - readonly tool?: string[]; - readonly "api-key"?: string | undefined; - readonly "chain-id"?: SDKOptions["chainId"] | undefined; - readonly network?: SDKOptions["network"] | undefined; - readonly "server-url"?: string; - readonly "server-index"?: SDKOptions["serverIdx"]; - readonly "log-level": ConsoleLoggerLevel; - readonly env?: [string, string][]; -} - -export async function main(this: LocalContext, flags: StartCommandFlags) { - flags.env?.forEach(([key, value]) => { - process.env[key] = value; - }); - - switch (flags.transport) { - case "stdio": - await startStdio(flags); - break; - case "sse": - await startSSE(flags); - break; - default: - throw new Error(`Invalid transport: ${flags.transport}`); - } -} - -async function startStdio(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const transport = new StdioServerTransport(); - const server = createMCPServer({ - logger, - allowedTools: flags.tool, - ...{ apiKey: flags["api-key"] ?? "" }, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - await server.connect(transport); - - const abort = async () => { - await server.close(); - process.exit(0); - }; - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} - -async function startSSE(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const app = express(); - const mcpServer = createMCPServer({ - logger, - allowedTools: flags.tool, - ...{ apiKey: flags["api-key"] ?? "" }, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - let transport: SSEServerTransport | undefined; - const controller = new AbortController(); - - app.get("/sse", async (_req, res) => { - transport = new SSEServerTransport("/message", res); - - await mcpServer.connect(transport); - - mcpServer.server.onclose = async () => { - res.end(); - }; - }); - - app.post("/message", async (req, res) => { - if (!transport) { - throw new Error("Server transport not initialized"); - } - - await transport.handlePostMessage(req, res); - }); - - const httpServer = app.listen(flags.port, "0.0.0.0", () => { - const ha = httpServer.address(); - const host = typeof ha === "string" ? ha : `${ha?.address}:${ha?.port}`; - logger.info("MCP HTTP server started", { host }); - }); - - let closing = false; - controller.signal.addEventListener("abort", async () => { - if (closing) { - logger.info("Received second signal. Forcing shutdown."); - process.exit(1); - } - closing = true; - - logger.info("Shutting down MCP server"); - - await mcpServer.close(); - - logger.info("Shutting down HTTP server"); - - const timer = setTimeout(() => { - logger.info("Forcing shutdown"); - process.exit(1); - }, 5000); - - httpServer.close(() => { - clearTimeout(timer); - logger.info("Graceful shutdown complete"); - process.exit(0); - }); - }); - - const abort = () => controller.abort(); - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} diff --git a/data/src/mcp-server/console-logger.ts b/data/src/mcp-server/console-logger.ts deleted file mode 100644 index d65a295b..00000000 --- a/data/src/mcp-server/console-logger.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const consoleLoggerLevels = [ - "debug", - "warning", - "info", - "error", -] as const; - -export type ConsoleLoggerLevel = (typeof consoleLoggerLevels)[number]; - -export type ConsoleLogger = { - [key in ConsoleLoggerLevel]: ( - message: string, - data?: Record, - ) => void; -}; - -export function createConsoleLogger(level: ConsoleLoggerLevel): ConsoleLogger { - const min = consoleLoggerLevels.indexOf(level); - const noop = () => {}; - - const logger: ConsoleLogger = { - debug: noop, - warning: noop, - info: noop, - error: noop, - }; - - return consoleLoggerLevels.reduce((logger, level, i) => { - if (i < min) { - return logger; - } - - logger[level] = log.bind(null, level); - - return logger; - }, logger); -} - -function log( - level: ConsoleLoggerLevel, - message: string, - data?: Record, -) { - let line = ""; - const allData = [{ msg: message, l: level }, data]; - - for (const ctx of allData) { - for (const [key, value] of Object.entries(ctx || {})) { - if (value == null) { - line += ` ${key}=<${value}>`; - } else if (typeof value === "function") { - line += ` ${key}=`; - } else if (typeof value === "symbol") { - line += ` ${key}=${value.toString()}`; - } else if (typeof value === "string") { - const v = value.search(/\s/g) >= 0 ? JSON.stringify(value) : value; - line += ` ${key}=${v}`; - } else if (typeof value !== "object") { - line += ` ${key}=${value}`; - } else { - line += ` ${key}="${JSON.stringify(value)}"`; - } - } - } - - console.error(line); -} diff --git a/data/src/mcp-server/extensions.ts b/data/src/mcp-server/extensions.ts deleted file mode 100644 index 7aab2809..00000000 --- a/data/src/mcp-server/extensions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ZodRawShape } from "zod"; -import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; -import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; -import { ToolDefinition } from "./tools.js"; - -export type Register = { - tool: (def: ToolDefinition) => void; - resource: (def: ResourceDefinition) => void; - resourceTemplate: (def: ResourceTemplateDefinition) => void; - prompt: ( - prompt: PromptDefinition, - ) => void; -}; diff --git a/data/src/mcp-server/mcp-server.ts b/data/src/mcp-server/mcp-server.ts deleted file mode 100644 index efc6645f..00000000 --- a/data/src/mcp-server/mcp-server.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildApplication, buildRouteMap, run } from "@stricli/core"; -import process from "node:process"; -import { buildContext } from "./cli.js"; -import { startCommand } from "./cli/start/command.js"; - -const routes = buildRouteMap({ - routes: { - start: startCommand, - }, - docs: { - brief: "MCP server CLI", - }, -}); - -export const app = buildApplication(routes, { - name: "mcp", - versionInfo: { - currentVersion: "0.5.3", - }, -}); - -run(app, process.argv.slice(2), buildContext(process)); diff --git a/data/src/mcp-server/prompts.ts b/data/src/mcp-server/prompts.ts deleted file mode 100644 index 0cc049c6..00000000 --- a/data/src/mcp-server/prompts.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; -import { - objectOutputType, - ZodOptional, - ZodType, - ZodTypeAny, - ZodTypeDef, -} from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; - -// '@modelcontextprotocol/sdk' currently does not export this type -export type PromptArgsRawShape = { - [k: string]: - | ZodType - | ZodOptional>; -}; - -export type PromptDefinition< - Args extends undefined | PromptArgsRawShape = undefined, -> = Args extends PromptArgsRawShape ? { - name: string; - description?: string; - scopes?: MCPScope[]; - args: Args; - prompt: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - } - : { - name: string; - description?: string; - scopes?: MCPScope[]; - args?: undefined; - prompt: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - }; - -// Optional function to assist with formatting prompt results -export async function formatResult(value: string): Promise { - return { - messages: [ - { - role: "user", - content: { - type: "text", - text: value, - }, - }, - ], - }; -} - -export function createRegisterPrompt( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): ( - prompt: PromptDefinition, -) => void { - return ( - prompt: PromptDefinition, - ): void => { - const scopes = prompt.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (prompt.args) { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } else { - server.prompt( - prompt.name, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } - } else { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - async (ctx) => prompt.prompt(sdk, ctx), - ); - } else { - server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx)); - } - } - - logger.debug("Registered prompt", { name: prompt.name }); - }; -} diff --git a/data/src/mcp-server/resources.ts b/data/src/mcp-server/resources.ts deleted file mode 100644 index ac05763b..00000000 --- a/data/src/mcp-server/resources.ts +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - McpServer, - ResourceMetadata, - ResourceTemplate, -} from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ReadResourceCallback = ( - client: AvalancheCore, - uri: URL, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceDefinition = { - name: string; - description?: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: string; - read: ReadResourceCallback; -}; - -export type ReadResourceTemplateCallback = ( - client: AvalancheCore, - uri: URL, - vars: Variables, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceTemplateDefinition = { - name: string; - description: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: ResourceTemplate; - read: ReadResourceTemplateCallback; -}; - -// Optional function to assist with formatting resource results -export async function formatResult( - value: unknown, - uri: URL, - init: { mimeType?: string | undefined; response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { contents: [] }; - } - - let contents: ReadResourceResult["contents"] = []; - - const mimeType = init.mimeType ?? init.response?.headers.get("content-type") - ?? ""; - - if (mimeType.search(/\bjson\b/g) !== -1) { - contents = [{ uri: uri.toString(), mimeType, text: JSON.stringify(value) }]; - } else if ( - mimeType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - contents = [ - { - uri: uri.toString(), - mimeType: "application/json", - text: await stringifySSEToJSON(value), - }, - ]; - } else if ( - (mimeType.startsWith("text/") || mimeType.startsWith("application/")) - && typeof value === "string" - ) { - contents = [{ uri: uri.toString(), mimeType, text: value }]; - } else if (isBinaryData(value)) { - const blob = await valueToBase64(value); - contents = blob == null ? [] : [{ uri: uri.toString(), blob, mimeType }]; - } else { - throw new Error(`Unsupported content type: "${mimeType}"`); - } - - return { contents }; -} - -async function stringifySSEToJSON( - value: AsyncIterable, -): Promise { - const payloads = []; - - for await (const chunk of value) { - payloads.push(chunk); - } - - return JSON.stringify(payloads); -} - -export function createRegisterResource( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceDefinition) => void { - return (resource: ResourceDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, ctx) => resource.read(sdk, uri, ctx), - ); - - logger.debug("Registered resource", { name: resource.name }); - }; -} - -export function createRegisterResourceTemplate( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceTemplateDefinition) => void { - return (resource: ResourceTemplateDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, vars, ctx) => resource.read(sdk, uri, vars, ctx), - ); - - logger.debug("Registered resource template", { name: resource.name }); - }; -} diff --git a/data/src/mcp-server/scopes.ts b/data/src/mcp-server/scopes.ts deleted file mode 100644 index c25696d4..00000000 --- a/data/src/mcp-server/scopes.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const mcpScopes = [] as const; - -export type MCPScope = (typeof mcpScopes)[number]; diff --git a/data/src/mcp-server/server.ts b/data/src/mcp-server/server.ts deleted file mode 100644 index eaaa0c2b..00000000 --- a/data/src/mcp-server/server.ts +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { AvalancheCore } from "../core.js"; -import { SDKOptions } from "../lib/config.js"; -import type { ConsoleLogger } from "./console-logger.js"; -import { createRegisterPrompt } from "./prompts.js"; -import { - createRegisterResource, - createRegisterResourceTemplate, -} from "./resources.js"; -import { MCPScope } from "./scopes.js"; -import { createRegisterTool } from "./tools.js"; -import { tool$dataEvmAddressBalancesGetNative } from "./tools/dataEvmAddressBalancesGetNative.js"; -import { tool$dataEvmAddressBalancesListCollectibles } from "./tools/dataEvmAddressBalancesListCollectibles.js"; -import { tool$dataEvmAddressBalancesListErc1155 } from "./tools/dataEvmAddressBalancesListErc1155.js"; -import { tool$dataEvmAddressBalancesListErc20 } from "./tools/dataEvmAddressBalancesListErc20.js"; -import { tool$dataEvmAddressBalancesListErc721 } from "./tools/dataEvmAddressBalancesListErc721.js"; -import { tool$dataEvmAddressChainsList } from "./tools/dataEvmAddressChainsList.js"; -import { tool$dataEvmAddressContractsListDeployments } from "./tools/dataEvmAddressContractsListDeployments.js"; -import { tool$dataEvmAddressTransactionsList } from "./tools/dataEvmAddressTransactionsList.js"; -import { tool$dataEvmAddressTransactionsListErc1155 } from "./tools/dataEvmAddressTransactionsListErc1155.js"; -import { tool$dataEvmAddressTransactionsListErc20 } from "./tools/dataEvmAddressTransactionsListErc20.js"; -import { tool$dataEvmAddressTransactionsListErc721 } from "./tools/dataEvmAddressTransactionsListErc721.js"; -import { tool$dataEvmAddressTransactionsListInternal } from "./tools/dataEvmAddressTransactionsListInternal.js"; -import { tool$dataEvmAddressTransactionsListNative } from "./tools/dataEvmAddressTransactionsListNative.js"; -import { tool$dataEvmBlocksGet } from "./tools/dataEvmBlocksGet.js"; -import { tool$dataEvmBlocksListLatest } from "./tools/dataEvmBlocksListLatest.js"; -import { tool$dataEvmBlocksListLatestAllChains } from "./tools/dataEvmBlocksListLatestAllChains.js"; -import { tool$dataEvmBlocksListTransactions } from "./tools/dataEvmBlocksListTransactions.js"; -import { tool$dataEvmChainsGet } from "./tools/dataEvmChainsGet.js"; -import { tool$dataEvmChainsGetAddressChains } from "./tools/dataEvmChainsGetAddressChains.js"; -import { tool$dataEvmChainsList } from "./tools/dataEvmChainsList.js"; -import { tool$dataEvmChainsListAllLatestBlocks } from "./tools/dataEvmChainsListAllLatestBlocks.js"; -import { tool$dataEvmChainsListAllLatestTransactions } from "./tools/dataEvmChainsListAllLatestTransactions.js"; -import { tool$dataEvmContractsGetDeploymentTransaction } from "./tools/dataEvmContractsGetDeploymentTransaction.js"; -import { tool$dataEvmContractsGetMetadata } from "./tools/dataEvmContractsGetMetadata.js"; -import { tool$dataEvmContractsListTransfers } from "./tools/dataEvmContractsListTransfers.js"; -import { tool$dataEvmTransactionsGet } from "./tools/dataEvmTransactionsGet.js"; -import { tool$dataEvmTransactionsListLatest } from "./tools/dataEvmTransactionsListLatest.js"; -import { tool$dataEvmTransactionsListLatestAllChains } from "./tools/dataEvmTransactionsListLatestAllChains.js"; -import { tool$dataHealthCheck } from "./tools/dataHealthCheck.js"; -import { tool$dataIcmGet } from "./tools/dataIcmGet.js"; -import { tool$dataIcmList } from "./tools/dataIcmList.js"; -import { tool$dataIcmListByAddress } from "./tools/dataIcmListByAddress.js"; -import { tool$dataNftsGet } from "./tools/dataNftsGet.js"; -import { tool$dataNftsList } from "./tools/dataNftsList.js"; -import { tool$dataNftsReindex } from "./tools/dataNftsReindex.js"; -import { tool$dataOperationsExportTransactions } from "./tools/dataOperationsExportTransactions.js"; -import { tool$dataOperationsGetResult } from "./tools/dataOperationsGetResult.js"; -import { tool$dataPrimaryNetworkBalancesListByAddresses } from "./tools/dataPrimaryNetworkBalancesListByAddresses.js"; -import { tool$dataPrimaryNetworkBlocksGet } from "./tools/dataPrimaryNetworkBlocksGet.js"; -import { tool$dataPrimaryNetworkBlocksListByNodeId } from "./tools/dataPrimaryNetworkBlocksListByNodeId.js"; -import { tool$dataPrimaryNetworkBlocksListLatest } from "./tools/dataPrimaryNetworkBlocksListLatest.js"; -import { tool$dataPrimaryNetworkGetAssetDetails } from "./tools/dataPrimaryNetworkGetAssetDetails.js"; -import { tool$dataPrimaryNetworkGetBlockchainById } from "./tools/dataPrimaryNetworkGetBlockchainById.js"; -import { tool$dataPrimaryNetworkGetChainIdsForAddresses } from "./tools/dataPrimaryNetworkGetChainIdsForAddresses.js"; -import { tool$dataPrimaryNetworkGetNetworkDetails } from "./tools/dataPrimaryNetworkGetNetworkDetails.js"; -import { tool$dataPrimaryNetworkGetSubnetById } from "./tools/dataPrimaryNetworkGetSubnetById.js"; -import { tool$dataPrimaryNetworkGetValidatorDetails } from "./tools/dataPrimaryNetworkGetValidatorDetails.js"; -import { tool$dataPrimaryNetworkListBlockchains } from "./tools/dataPrimaryNetworkListBlockchains.js"; -import { tool$dataPrimaryNetworkListDelegators } from "./tools/dataPrimaryNetworkListDelegators.js"; -import { tool$dataPrimaryNetworkListL1Validators } from "./tools/dataPrimaryNetworkListL1Validators.js"; -import { tool$dataPrimaryNetworkListSubnets } from "./tools/dataPrimaryNetworkListSubnets.js"; -import { tool$dataPrimaryNetworkListValidators } from "./tools/dataPrimaryNetworkListValidators.js"; -import { tool$dataPrimaryNetworkRewardsListHistoricalRewards } from "./tools/dataPrimaryNetworkRewardsListHistoricalRewards.js"; -import { tool$dataPrimaryNetworkRewardsListPendingRewards } from "./tools/dataPrimaryNetworkRewardsListPendingRewards.js"; -import { tool$dataPrimaryNetworkTransactionsGet } from "./tools/dataPrimaryNetworkTransactionsGet.js"; -import { tool$dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "./tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; -import { tool$dataPrimaryNetworkTransactionsListAssetTransactions } from "./tools/dataPrimaryNetworkTransactionsListAssetTransactions.js"; -import { tool$dataPrimaryNetworkTransactionsListLatest } from "./tools/dataPrimaryNetworkTransactionsListLatest.js"; -import { tool$dataPrimaryNetworkUtxosListByAddresses } from "./tools/dataPrimaryNetworkUtxosListByAddresses.js"; -import { tool$dataPrimaryNetworkVerticesGetByHash } from "./tools/dataPrimaryNetworkVerticesGetByHash.js"; -import { tool$dataPrimaryNetworkVerticesListByHeight } from "./tools/dataPrimaryNetworkVerticesListByHeight.js"; -import { tool$dataPrimaryNetworkVerticesListLatest } from "./tools/dataPrimaryNetworkVerticesListLatest.js"; -import { tool$dataSignatureAggregatorAggregate } from "./tools/dataSignatureAggregatorAggregate.js"; -import { tool$dataSignatureAggregatorGet } from "./tools/dataSignatureAggregatorGet.js"; -import { tool$dataTeleporterGetTeleporterMessage } from "./tools/dataTeleporterGetTeleporterMessage.js"; -import { tool$dataTeleporterListTeleporterMessages } from "./tools/dataTeleporterListTeleporterMessages.js"; -import { tool$dataTeleporterListTeleporterMessagesByAddress } from "./tools/dataTeleporterListTeleporterMessagesByAddress.js"; -import { tool$dataUsageMetricsGetLogs } from "./tools/dataUsageMetricsGetLogs.js"; -import { tool$dataUsageMetricsGetRpcUsageMetrics } from "./tools/dataUsageMetricsGetRpcUsageMetrics.js"; -import { tool$dataUsageMetricsGetSubnetRpcUsage } from "./tools/dataUsageMetricsGetSubnetRpcUsage.js"; -import { tool$dataUsageMetricsGetUsage } from "./tools/dataUsageMetricsGetUsage.js"; - -export function createMCPServer(deps: { - logger: ConsoleLogger; - allowedTools?: string[] | undefined; - scopes?: MCPScope[] | undefined; - serverURL?: string | undefined; - apiKey?: SDKOptions["apiKey"] | undefined; - chainId?: SDKOptions["chainId"] | undefined; - network?: SDKOptions["network"] | undefined; - serverIdx?: SDKOptions["serverIdx"] | undefined; -}) { - const server = new McpServer({ - name: "Avalanche", - version: "0.5.3", - }); - - const client = new AvalancheCore({ - apiKey: deps.apiKey, - chainId: deps.chainId, - network: deps.network, - serverURL: deps.serverURL, - serverIdx: deps.serverIdx, - }); - - const scopes = new Set(deps.scopes); - - const allowedTools = deps.allowedTools && new Set(deps.allowedTools); - const tool = createRegisterTool( - deps.logger, - server, - client, - scopes, - allowedTools, - ); - const resource = createRegisterResource(deps.logger, server, client, scopes); - const resourceTemplate = createRegisterResourceTemplate( - deps.logger, - server, - client, - scopes, - ); - const prompt = createRegisterPrompt(deps.logger, server, client, scopes); - const register = { tool, resource, resourceTemplate, prompt }; - void register; // suppress unused warnings - - tool(tool$dataHealthCheck); - tool(tool$dataNftsReindex); - tool(tool$dataNftsList); - tool(tool$dataNftsGet); - tool(tool$dataOperationsGetResult); - tool(tool$dataOperationsExportTransactions); - tool(tool$dataPrimaryNetworkGetAssetDetails); - tool(tool$dataPrimaryNetworkGetChainIdsForAddresses); - tool(tool$dataPrimaryNetworkGetNetworkDetails); - tool(tool$dataPrimaryNetworkListBlockchains); - tool(tool$dataPrimaryNetworkGetBlockchainById); - tool(tool$dataPrimaryNetworkListSubnets); - tool(tool$dataPrimaryNetworkGetSubnetById); - tool(tool$dataPrimaryNetworkListValidators); - tool(tool$dataPrimaryNetworkGetValidatorDetails); - tool(tool$dataPrimaryNetworkListDelegators); - tool(tool$dataPrimaryNetworkListL1Validators); - tool(tool$dataTeleporterGetTeleporterMessage); - tool(tool$dataTeleporterListTeleporterMessages); - tool(tool$dataTeleporterListTeleporterMessagesByAddress); - tool(tool$dataIcmGet); - tool(tool$dataIcmList); - tool(tool$dataIcmListByAddress); - tool(tool$dataUsageMetricsGetUsage); - tool(tool$dataUsageMetricsGetLogs); - tool(tool$dataUsageMetricsGetSubnetRpcUsage); - tool(tool$dataUsageMetricsGetRpcUsageMetrics); - tool(tool$dataSignatureAggregatorAggregate); - tool(tool$dataSignatureAggregatorGet); - tool(tool$dataEvmTransactionsListLatestAllChains); - tool(tool$dataEvmTransactionsGet); - tool(tool$dataEvmTransactionsListLatest); - tool(tool$dataEvmBlocksListLatestAllChains); - tool(tool$dataEvmBlocksListLatest); - tool(tool$dataEvmBlocksGet); - tool(tool$dataEvmBlocksListTransactions); - tool(tool$dataEvmContractsGetDeploymentTransaction); - tool(tool$dataEvmContractsGetMetadata); - tool(tool$dataEvmContractsListTransfers); - tool(tool$dataEvmChainsList); - tool(tool$dataEvmChainsGet); - tool(tool$dataEvmChainsGetAddressChains); - tool(tool$dataEvmChainsListAllLatestTransactions); - tool(tool$dataEvmChainsListAllLatestBlocks); - tool(tool$dataPrimaryNetworkTransactionsGet); - tool(tool$dataPrimaryNetworkTransactionsListLatest); - tool(tool$dataPrimaryNetworkTransactionsListActiveStakingTransactions); - tool(tool$dataPrimaryNetworkTransactionsListAssetTransactions); - tool(tool$dataPrimaryNetworkRewardsListPendingRewards); - tool(tool$dataPrimaryNetworkRewardsListHistoricalRewards); - tool(tool$dataPrimaryNetworkUtxosListByAddresses); - tool(tool$dataPrimaryNetworkBalancesListByAddresses); - tool(tool$dataPrimaryNetworkBlocksGet); - tool(tool$dataPrimaryNetworkBlocksListByNodeId); - tool(tool$dataPrimaryNetworkBlocksListLatest); - tool(tool$dataPrimaryNetworkVerticesListLatest); - tool(tool$dataPrimaryNetworkVerticesGetByHash); - tool(tool$dataPrimaryNetworkVerticesListByHeight); - tool(tool$dataEvmAddressChainsList); - tool(tool$dataEvmAddressBalancesGetNative); - tool(tool$dataEvmAddressBalancesListErc20); - tool(tool$dataEvmAddressBalancesListErc721); - tool(tool$dataEvmAddressBalancesListErc1155); - tool(tool$dataEvmAddressBalancesListCollectibles); - tool(tool$dataEvmAddressContractsListDeployments); - tool(tool$dataEvmAddressTransactionsList); - tool(tool$dataEvmAddressTransactionsListNative); - tool(tool$dataEvmAddressTransactionsListErc20); - tool(tool$dataEvmAddressTransactionsListErc721); - tool(tool$dataEvmAddressTransactionsListErc1155); - tool(tool$dataEvmAddressTransactionsListInternal); - - return server; -} diff --git a/data/src/mcp-server/shared.ts b/data/src/mcp-server/shared.ts deleted file mode 100644 index 9dc6d2f6..00000000 --- a/data/src/mcp-server/shared.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { bytesToBase64 } from "../lib/base64.js"; - -type BinaryData = - | Uint8Array - | ArrayBuffer - | Blob - | ReadableStream - | Response - | string; - -export async function consumeStream( - stream: ReadableStream, -): Promise { - const reader = stream.getReader(); - const chunks: Uint8Array[] = []; - - try { - while (true) { - const { done, value } = await reader.read(); - if (value != null) chunks.push(value); - if (done) break; - } - } finally { - reader.releaseLock(); - } - - return new Uint8Array(await new Blob(chunks).arrayBuffer()); -} - -export function isAsyncIterable( - value: unknown, -): value is AsyncIterable { - return ( - typeof value === "object" && value != null && Symbol.asyncIterator in value - ); -} - -export function isBinaryData(value: unknown): value is BinaryData { - return ( - value instanceof Uint8Array - || value instanceof ArrayBuffer - || value instanceof Blob - || value instanceof ReadableStream - || value instanceof Response - || typeof value === "string" - ); -} - -const base64Schema = z.string().base64(); - -export async function valueToBase64( - value: BinaryData | null | undefined, -): Promise { - if (value == null) { - return null; - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (value instanceof ArrayBuffer) { - return bytesToBase64(new Uint8Array(value)); - } else if (value instanceof Response || value instanceof Blob) { - return bytesToBase64(new Uint8Array(await value.arrayBuffer())); - } else if (value instanceof ReadableStream) { - return bytesToBase64(await consumeStream(value)); - } else if (typeof value === "string") { - return base64Schema.parse(value); - } else { - value satisfies never; - throw new Error(`Unsupported image value type: ${typeof value}`); - } -} diff --git a/data/src/mcp-server/tools.ts b/data/src/mcp-server/tools.ts deleted file mode 100644 index 0cfcb691..00000000 --- a/data/src/mcp-server/tools.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ToolDefinition = - Args extends ZodRawShape ? { - name: string; - description: string; - scopes?: MCPScope[]; - args: Args; - tool: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - } - : { - name: string; - description: string; - scopes?: MCPScope[]; - args?: undefined; - tool: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - }; - -// Optional function to assist with formatting tool results -export async function formatResult( - value: unknown, - init: { response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { content: [] }; - } - - const { response } = init; - const contentType = response?.headers.get("content-type") ?? ""; - let content: CallToolResult["content"] = []; - - if (contentType.search(/\bjson\b/g)) { - content = [{ type: "text", text: JSON.stringify(value) }]; - } else if ( - contentType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - content = await consumeSSE(value); - } else if (contentType.startsWith("text/") && typeof value === "string") { - content = [{ type: "text", text: value }]; - } else if (isBinaryData(value) && contentType.startsWith("image/")) { - const data = await valueToBase64(value); - content = data == null - ? [] - : [{ type: "image", data, mimeType: contentType }]; - } else { - return { - content: [{ - type: "text", - text: `Unsupported content type: "${contentType}"`, - }], - isError: true, - }; - } - - return { content }; -} - -async function consumeSSE( - value: AsyncIterable, -): Promise { - const content: CallToolResult["content"] = []; - - for await (const chunk of value) { - if (typeof chunk === "string") { - content.push({ type: "text", text: chunk }); - } else { - content.push({ type: "text", text: JSON.stringify(chunk) }); - } - } - - return content; -} - -export function createRegisterTool( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, - allowedTools?: Set, -): (tool: ToolDefinition) => void { - return (tool: ToolDefinition): void => { - if (allowedTools && !allowedTools.has(tool.name)) { - return; - } - - const scopes = tool.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (tool.args) { - server.tool(tool.name, tool.description, tool.args, async (args, ctx) => { - return tool.tool(sdk, args, ctx); - }); - } else { - server.tool(tool.name, tool.description, async (ctx) => { - return tool.tool(sdk, ctx); - }); - } - - logger.debug("Registered tool", { name: tool.name }); - }; -} diff --git a/data/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts b/data/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts deleted file mode 100644 index 07d87f25..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesGetNative } from "../../funcs/dataEvmAddressBalancesGetNative.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetNativeBalanceRequest$inboundSchema, -}; - -export const tool$dataEvmAddressBalancesGetNative: ToolDefinition = - { - name: "data-evm-address-balances-get-native", - description: `Get native token balance - -Gets native token balance of a wallet address. - -Balance at a given block can be retrieved with the \`blockNumber\` parameter.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressBalancesGetNative( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts b/data/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts deleted file mode 100644 index e8710a70..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesListCollectibles } from "../../funcs/dataEvmAddressBalancesListCollectibles.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListCollectibleBalancesRequest$inboundSchema, -}; - -export const tool$dataEvmAddressBalancesListCollectibles: ToolDefinition< - typeof args -> = { - name: "data-evm-address-balances-list-collectibles", - description: `List collectible (ERC-721/ERC-1155) balances - -Lists ERC-721 and ERC-1155 token balances of a wallet address. - -Balance for a specific contract can be retrieved with the \`contractAddress\` parameter.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressBalancesListCollectibles( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts b/data/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts deleted file mode 100644 index 1e6d7429..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesListErc1155 } from "../../funcs/dataEvmAddressBalancesListErc1155.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc1155BalancesRequest$inboundSchema, -}; - -export const tool$dataEvmAddressBalancesListErc1155: ToolDefinition< - typeof args -> = { - name: "data-evm-address-balances-list-erc1155", - description: `List ERC-1155 balances - -Lists ERC-1155 token balances of a wallet address. - -Balance at a given block can be retrieved with the \`blockNumber\` parameter. - -Balance for a specific contract can be retrieved with the \`contractAddress\` parameter.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressBalancesListErc1155( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts b/data/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts deleted file mode 100644 index a598301a..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesListErc20 } from "../../funcs/dataEvmAddressBalancesListErc20.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc20BalancesRequest$inboundSchema, -}; - -export const tool$dataEvmAddressBalancesListErc20: ToolDefinition = - { - name: "data-evm-address-balances-list-erc20", - description: `List ERC-20 balances - -Lists ERC-20 token balances of a wallet address. - -Balance at a given block can be retrieved with the \`blockNumber\` parameter. - -Balance for specific contracts can be retrieved with the \`contractAddresses\` parameter.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressBalancesListErc20( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts b/data/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts deleted file mode 100644 index 49091457..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesListErc721 } from "../../funcs/dataEvmAddressBalancesListErc721.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc721BalancesRequest$inboundSchema, -}; - -export const tool$dataEvmAddressBalancesListErc721: ToolDefinition< - typeof args -> = { - name: "data-evm-address-balances-list-erc721", - description: `List ERC-721 balances - -Lists ERC-721 token balances of a wallet address. - -Balance for a specific contract can be retrieved with the \`contractAddress\` parameter.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressBalancesListErc721( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressChainsList.ts b/data/src/mcp-server/tools/dataEvmAddressChainsList.ts deleted file mode 100644 index 467875f3..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressChainsList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressChainsList } from "../../funcs/dataEvmAddressChainsList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListAddressChainsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressChainsList: ToolDefinition = { - name: "data-evm-address-chains-list", - description: `List all chains associated with a given address - -Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressChainsList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts b/data/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts deleted file mode 100644 index 6e0b1e97..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressContractsListDeployments } from "../../funcs/dataEvmAddressContractsListDeployments.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListContractDeploymentsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressContractsListDeployments: ToolDefinition< - typeof args -> = { - name: "data-evm-address-contracts-list-deployments", - description: `List deployed contracts - -Lists all contracts deployed by the given address.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressContractsListDeployments( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsList.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsList.ts deleted file mode 100644 index d1d269a9..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsList.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsList } from "../../funcs/dataEvmAddressTransactionsList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListTransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsList: ToolDefinition = - { - name: "data-evm-address-transactions-list", - description: `List transactions - -Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (\`from\` field) or the receiver (\`to\` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the \`/chains/:chainId/transactions/:txHash\` endpoint. - -Filterable by block ranges.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts deleted file mode 100644 index 0035852b..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsListErc1155 } from "../../funcs/dataEvmAddressTransactionsListErc1155.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc1155TransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsListErc1155: ToolDefinition< - typeof args -> = { - name: "data-evm-address-transactions-list-erc1155", - description: `List ERC-1155 transfers - -Lists ERC-1155 transfers for an address. Filterable by block range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsListErc1155( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts deleted file mode 100644 index 4a594d72..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsListErc20 } from "../../funcs/dataEvmAddressTransactionsListErc20.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc20TransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsListErc20: ToolDefinition< - typeof args -> = { - name: "data-evm-address-transactions-list-erc20", - description: `List ERC-20 transfers - -Lists ERC-20 transfers for an address. Filterable by block range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsListErc20( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts deleted file mode 100644 index 3a869e07..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsListErc721 } from "../../funcs/dataEvmAddressTransactionsListErc721.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListErc721TransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsListErc721: ToolDefinition< - typeof args -> = { - name: "data-evm-address-transactions-list-erc721", - description: `List ERC-721 transfers - -Lists ERC-721 transfers for an address. Filterable by block range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsListErc721( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts deleted file mode 100644 index 66da23c7..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsListInternal } from "../../funcs/dataEvmAddressTransactionsListInternal.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListInternalTransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsListInternal: ToolDefinition< - typeof args -> = { - name: "data-evm-address-transactions-list-internal", - description: `List internal transactions - -Returns a list of internal transactions for an address and chain. Filterable by block range. - -Note that the internal transactions list only contains \`CALL\` or \`CALLCODE\` transactions with a non-zero value and \`CREATE\`/\`CREATE2\`/\`CREATE3\` transactions. To get a complete list of internal transactions use the \`debug_\` prefixed RPC methods on an archive node.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsListInternal( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts b/data/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts deleted file mode 100644 index 02a8a6a7..00000000 --- a/data/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsListNative } from "../../funcs/dataEvmAddressTransactionsListNative.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListNativeTransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmAddressTransactionsListNative: ToolDefinition< - typeof args -> = { - name: "data-evm-address-transactions-list-native", - description: `List native transactions - -Lists native transactions for an address. Filterable by block range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmAddressTransactionsListNative( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmBlocksGet.ts b/data/src/mcp-server/tools/dataEvmBlocksGet.ts deleted file mode 100644 index 613fce42..00000000 --- a/data/src/mcp-server/tools/dataEvmBlocksGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmBlocksGet } from "../../funcs/dataEvmBlocksGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetBlockRequest$inboundSchema, -}; - -export const tool$dataEvmBlocksGet: ToolDefinition = { - name: "data-evm-blocks-get", - description: `Get block - -Gets the details of an individual block on the EVM-compatible chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmBlocksGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmBlocksListLatest.ts b/data/src/mcp-server/tools/dataEvmBlocksListLatest.ts deleted file mode 100644 index 094864a5..00000000 --- a/data/src/mcp-server/tools/dataEvmBlocksListLatest.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmBlocksListLatest } from "../../funcs/dataEvmBlocksListLatest.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetLatestBlocksRequest$inboundSchema, -}; - -export const tool$dataEvmBlocksListLatest: ToolDefinition = { - name: "data-evm-blocks-list-latest", - description: `List latest blocks - -Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmBlocksListLatest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts b/data/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts deleted file mode 100644 index ace59af3..00000000 --- a/data/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmBlocksListLatestAllChains } from "../../funcs/dataEvmBlocksListLatestAllChains.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestBlocksAllChainsRequest$inboundSchema, -}; - -export const tool$dataEvmBlocksListLatestAllChains: ToolDefinition< - typeof args -> = { - name: "data-evm-blocks-list-latest-all-chains", - description: `List latest blocks across all supported EVM chains - -Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmBlocksListLatestAllChains( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmBlocksListTransactions.ts b/data/src/mcp-server/tools/dataEvmBlocksListTransactions.ts deleted file mode 100644 index 33dc294a..00000000 --- a/data/src/mcp-server/tools/dataEvmBlocksListTransactions.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmBlocksListTransactions } from "../../funcs/dataEvmBlocksListTransactions.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTransactionsForBlockRequest$inboundSchema, -}; - -export const tool$dataEvmBlocksListTransactions: ToolDefinition = { - name: "data-evm-blocks-list-transactions", - description: `List transactions for a block - -Lists the transactions that occured in a given block.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmBlocksListTransactions( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmChainsGet.ts b/data/src/mcp-server/tools/dataEvmChainsGet.ts deleted file mode 100644 index 4887c5b0..00000000 --- a/data/src/mcp-server/tools/dataEvmChainsGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsGet } from "../../funcs/dataEvmChainsGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetChainInfoRequest$inboundSchema, -}; - -export const tool$dataEvmChainsGet: ToolDefinition = { - name: "data-evm-chains-get", - description: `Get chain information - -Gets chain information for the EVM-compatible chain if supported by AvaCloud.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmChainsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts b/data/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts deleted file mode 100644 index f6de32fd..00000000 --- a/data/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsGetAddressChains } from "../../funcs/dataEvmChainsGetAddressChains.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAddressChainsRequest$inboundSchema, -}; - -export const tool$dataEvmChainsGetAddressChains: ToolDefinition = { - name: "data-evm-chains-get-address-chains", - description: - `**[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmChainsGetAddressChains( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmChainsList.ts b/data/src/mcp-server/tools/dataEvmChainsList.ts deleted file mode 100644 index fa0c972e..00000000 --- a/data/src/mcp-server/tools/dataEvmChainsList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsList } from "../../funcs/dataEvmChainsList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.SupportedChainsRequest$inboundSchema, -}; - -export const tool$dataEvmChainsList: ToolDefinition = { - name: "data-evm-chains-list", - description: `List chains - -Lists the AvaCloud supported EVM-compatible chains. Filterable by network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmChainsList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts b/data/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts deleted file mode 100644 index bbf1aa7b..00000000 --- a/data/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsListAllLatestBlocks } from "../../funcs/dataEvmChainsListAllLatestBlocks.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListAllLatestBlocksRequest$inboundSchema, -}; - -export const tool$dataEvmChainsListAllLatestBlocks: ToolDefinition< - typeof args -> = { - name: "data-evm-chains-list-all-latest-blocks", - description: - `**[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmChainsListAllLatestBlocks( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts b/data/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts deleted file mode 100644 index 97349477..00000000 --- a/data/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsListAllLatestTransactions } from "../../funcs/dataEvmChainsListAllLatestTransactions.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListAllLatestTransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmChainsListAllLatestTransactions: ToolDefinition< - typeof args -> = { - name: "data-evm-chains-list-all-latest-transactions", - description: - `**[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmChainsListAllLatestTransactions( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts b/data/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts deleted file mode 100644 index 6851bdc7..00000000 --- a/data/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmContractsGetDeploymentTransaction } from "../../funcs/dataEvmContractsGetDeploymentTransaction.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetDeploymentTransactionRequest$inboundSchema, -}; - -export const tool$dataEvmContractsGetDeploymentTransaction: ToolDefinition< - typeof args -> = { - name: "data-evm-contracts-get-deployment-transaction", - description: `Get deployment transaction - -If the address is a smart contract, returns the transaction in which it was deployed.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmContractsGetDeploymentTransaction( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmContractsGetMetadata.ts b/data/src/mcp-server/tools/dataEvmContractsGetMetadata.ts deleted file mode 100644 index 67b4d29f..00000000 --- a/data/src/mcp-server/tools/dataEvmContractsGetMetadata.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmContractsGetMetadata } from "../../funcs/dataEvmContractsGetMetadata.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetContractMetadataRequest$inboundSchema, -}; - -export const tool$dataEvmContractsGetMetadata: ToolDefinition = { - name: "data-evm-contracts-get-metadata", - description: `Get contract metadata - -Gets metadata about the contract at the given address.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmContractsGetMetadata( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmContractsListTransfers.ts b/data/src/mcp-server/tools/dataEvmContractsListTransfers.ts deleted file mode 100644 index 8d30a55c..00000000 --- a/data/src/mcp-server/tools/dataEvmContractsListTransfers.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmContractsListTransfers } from "../../funcs/dataEvmContractsListTransfers.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListTransfersRequest$inboundSchema, -}; - -export const tool$dataEvmContractsListTransfers: ToolDefinition = { - name: "data-evm-contracts-list-transfers", - description: `List ERC transfers - -Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmContractsListTransfers( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmTransactionsGet.ts b/data/src/mcp-server/tools/dataEvmTransactionsGet.ts deleted file mode 100644 index 68e4e7cd..00000000 --- a/data/src/mcp-server/tools/dataEvmTransactionsGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmTransactionsGet } from "../../funcs/dataEvmTransactionsGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTransactionRequest$inboundSchema, -}; - -export const tool$dataEvmTransactionsGet: ToolDefinition = { - name: "data-evm-transactions-get", - description: `Get transaction - -Gets the details of a single transaction.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmTransactionsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmTransactionsListLatest.ts b/data/src/mcp-server/tools/dataEvmTransactionsListLatest.ts deleted file mode 100644 index 219897b7..00000000 --- a/data/src/mcp-server/tools/dataEvmTransactionsListLatest.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmTransactionsListLatest } from "../../funcs/dataEvmTransactionsListLatest.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestTransactionsRequest$inboundSchema, -}; - -export const tool$dataEvmTransactionsListLatest: ToolDefinition = { - name: "data-evm-transactions-list-latest", - description: `List latest transactions - -Lists the latest transactions. Filterable by status.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmTransactionsListLatest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts b/data/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts deleted file mode 100644 index c270f44c..00000000 --- a/data/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmTransactionsListLatestAllChains } from "../../funcs/dataEvmTransactionsListLatestAllChains.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestTransactionsAllChainsRequest$inboundSchema, -}; - -export const tool$dataEvmTransactionsListLatestAllChains: ToolDefinition< - typeof args -> = { - name: "data-evm-transactions-list-latest-all-chains", - description: `List the latest transactions across all supported EVM chains - -Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataEvmTransactionsListLatestAllChains( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataHealthCheck.ts b/data/src/mcp-server/tools/dataHealthCheck.ts deleted file mode 100644 index 3491169a..00000000 --- a/data/src/mcp-server/tools/dataHealthCheck.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataHealthCheck } from "../../funcs/dataHealthCheck.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$dataHealthCheck: ToolDefinition = { - name: "data-health-check", - description: `Get the health of the service - -Check the health of the service.`, - tool: async (client, ctx) => { - const [result, apiCall] = await dataHealthCheck( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataIcmGet.ts b/data/src/mcp-server/tools/dataIcmGet.ts deleted file mode 100644 index ec1ffc4c..00000000 --- a/data/src/mcp-server/tools/dataIcmGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataIcmGet } from "../../funcs/dataIcmGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetIcmMessageRequest$inboundSchema, -}; - -export const tool$dataIcmGet: ToolDefinition = { - name: "data-icm-get", - description: `Get an ICM message - -Gets an ICM message by teleporter message ID.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataIcmGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataIcmList.ts b/data/src/mcp-server/tools/dataIcmList.ts deleted file mode 100644 index 91de7092..00000000 --- a/data/src/mcp-server/tools/dataIcmList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataIcmList } from "../../funcs/dataIcmList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListIcmMessagesRequest$inboundSchema, -}; - -export const tool$dataIcmList: ToolDefinition = { - name: "data-icm-list", - description: `List ICM messages - -Lists ICM messages. Ordered by timestamp in descending order.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataIcmList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataIcmListByAddress.ts b/data/src/mcp-server/tools/dataIcmListByAddress.ts deleted file mode 100644 index 2da77d4f..00000000 --- a/data/src/mcp-server/tools/dataIcmListByAddress.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataIcmListByAddress } from "../../funcs/dataIcmListByAddress.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListIcmMessagesByAddressRequest$inboundSchema, -}; - -export const tool$dataIcmListByAddress: ToolDefinition = { - name: "data-icm-list-by-address", - description: `List ICM messages by address - -Lists ICM messages by address. Ordered by timestamp in descending order.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataIcmListByAddress( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataNftsGet.ts b/data/src/mcp-server/tools/dataNftsGet.ts deleted file mode 100644 index 14cc6b4d..00000000 --- a/data/src/mcp-server/tools/dataNftsGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataNftsGet } from "../../funcs/dataNftsGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTokenDetailsRequest$inboundSchema, -}; - -export const tool$dataNftsGet: ToolDefinition = { - name: "data-nfts-get", - description: `Get token details - -Gets token details for a specific token of an NFT contract.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataNftsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataNftsList.ts b/data/src/mcp-server/tools/dataNftsList.ts deleted file mode 100644 index c5f2af34..00000000 --- a/data/src/mcp-server/tools/dataNftsList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataNftsList } from "../../funcs/dataNftsList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListTokensRequest$inboundSchema, -}; - -export const tool$dataNftsList: ToolDefinition = { - name: "data-nfts-list", - description: `List tokens - -Lists tokens for an NFT contract.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataNftsList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataNftsReindex.ts b/data/src/mcp-server/tools/dataNftsReindex.ts deleted file mode 100644 index 0ec7cdca..00000000 --- a/data/src/mcp-server/tools/dataNftsReindex.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataNftsReindex } from "../../funcs/dataNftsReindex.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ReindexNftRequest$inboundSchema, -}; - -export const tool$dataNftsReindex: ToolDefinition = { - name: "data-nfts-reindex", - description: `Reindex NFT metadata - -Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataNftsReindex( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - return formatResult(void 0, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataOperationsExportTransactions.ts b/data/src/mcp-server/tools/dataOperationsExportTransactions.ts deleted file mode 100644 index 328ef7db..00000000 --- a/data/src/mcp-server/tools/dataOperationsExportTransactions.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataOperationsExportTransactions } from "../../funcs/dataOperationsExportTransactions.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.PostTransactionExportJobRequest$inboundSchema, -}; - -export const tool$dataOperationsExportTransactions: ToolDefinition< - typeof args -> = { - name: "data-operations-export-transactions", - description: `Create transaction export operation - -Trigger a transaction export operation with given parameters. - -The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the \`/v1/operations/:operationId\` endpoint using the \`operationId\` returned from this endpoint.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataOperationsExportTransactions( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataOperationsGetResult.ts b/data/src/mcp-server/tools/dataOperationsGetResult.ts deleted file mode 100644 index 097f46fb..00000000 --- a/data/src/mcp-server/tools/dataOperationsGetResult.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataOperationsGetResult } from "../../funcs/dataOperationsGetResult.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetOperationResultRequest$inboundSchema, -}; - -export const tool$dataOperationsGetResult: ToolDefinition = { - name: "data-operations-get-result", - description: `Get operation - -Gets operation details for the given operation id.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataOperationsGetResult( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts b/data/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts deleted file mode 100644 index c6185dc1..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBalancesListByAddresses } from "../../funcs/dataPrimaryNetworkBalancesListByAddresses.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetBalancesByAddressesRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkBalancesListByAddresses: ToolDefinition< - typeof args -> = { - name: "data-primary-network-balances-list-by-addresses", - description: `Get balances - -Gets primary network balances for one of the Primary Network chains for the supplied addresses. - -C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the \`/v1/chains/:chainId/addresses/:addressId/balances:getNative\` endpoint.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkBalancesListByAddresses( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts b/data/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts deleted file mode 100644 index 5f8ab1cc..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBlocksGet } from "../../funcs/dataPrimaryNetworkBlocksGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetBlockByIdRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkBlocksGet: ToolDefinition = { - name: "data-primary-network-blocks-get", - description: `Get block - -Gets a block by block height or block hash on one of the Primary Network chains.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkBlocksGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts b/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts deleted file mode 100644 index fe528efc..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBlocksListByNodeId } from "../../funcs/dataPrimaryNetworkBlocksListByNodeId.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkBlocksListByNodeId: ToolDefinition< - typeof args -> = { - name: "data-primary-network-blocks-list-by-node-id", - description: `List blocks proposed by node - -Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkBlocksListByNodeId( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts b/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts deleted file mode 100644 index a95e3014..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBlocksListLatest } from "../../funcs/dataPrimaryNetworkBlocksListLatest.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestPrimaryNetworkBlocksRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkBlocksListLatest: ToolDefinition< - typeof args -> = { - name: "data-primary-network-blocks-list-latest", - description: `List latest blocks - -Lists latest blocks on one of the Primary Network chains.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkBlocksListLatest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts deleted file mode 100644 index 4e7c5ecb..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetAssetDetails } from "../../funcs/dataPrimaryNetworkGetAssetDetails.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAssetDetailsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetAssetDetails: ToolDefinition< - typeof args -> = { - name: "data-primary-network-get-asset-details", - description: `Get asset details - -Gets asset details corresponding to the given asset id on the X-Chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetAssetDetails( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts deleted file mode 100644 index aa2c0e6a..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetBlockchainById } from "../../funcs/dataPrimaryNetworkGetBlockchainById.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetBlockchainByIdRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetBlockchainById: ToolDefinition< - typeof args -> = { - name: "data-primary-network-get-blockchain-by-id", - description: `Get blockchain details by ID - -Get details of the blockchain registered on the network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetBlockchainById( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts deleted file mode 100644 index fdcb36d1..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetChainIdsForAddresses } from "../../funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetChainIdsForAddressesRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetChainIdsForAddresses: ToolDefinition< - typeof args -> = { - name: "data-primary-network-get-chain-ids-for-addresses", - description: `Get chain interactions for addresses - -Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetChainIdsForAddresses( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts deleted file mode 100644 index 90723c99..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetNetworkDetails } from "../../funcs/dataPrimaryNetworkGetNetworkDetails.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetNetworkDetailsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetNetworkDetails: ToolDefinition< - typeof args -> = { - name: "data-primary-network-get-network-details", - description: `Get network details - -Gets network details such as validator and delegator stats.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetNetworkDetails( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts deleted file mode 100644 index 96745a16..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetSubnetById } from "../../funcs/dataPrimaryNetworkGetSubnetById.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetSubnetByIdRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetSubnetById: ToolDefinition = - { - name: "data-primary-network-get-subnet-by-id", - description: `Get Subnet details by ID - -Get details of the Subnet registered on the network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetSubnetById( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts b/data/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts deleted file mode 100644 index 882ec508..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetValidatorDetails } from "../../funcs/dataPrimaryNetworkGetValidatorDetails.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetSingleValidatorDetailsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkGetValidatorDetails: ToolDefinition< - typeof args -> = { - name: "data-primary-network-get-validator-details", - description: `Get single validator details - -List validator details for a single validator. Filterable by validation status.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkGetValidatorDetails( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts b/data/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts deleted file mode 100644 index ba134f8e..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkListBlockchains } from "../../funcs/dataPrimaryNetworkListBlockchains.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListBlockchainsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkListBlockchains: ToolDefinition< - typeof args -> = { - name: "data-primary-network-list-blockchains", - description: `List blockchains - -Lists all blockchains registered on the network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkListBlockchains( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts b/data/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts deleted file mode 100644 index 7a8e0519..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkListDelegators } from "../../funcs/dataPrimaryNetworkListDelegators.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListDelegatorsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkListDelegators: ToolDefinition< - typeof args -> = { - name: "data-primary-network-list-delegators", - description: `List delegators - -Lists details for delegators.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkListDelegators( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts b/data/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts deleted file mode 100644 index d1ce66f2..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkListL1Validators } from "../../funcs/dataPrimaryNetworkListL1Validators.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListL1ValidatorsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkListL1Validators: ToolDefinition< - typeof args -> = { - name: "data-primary-network-list-l1-validators", - description: `List L1 validators - -Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkListL1Validators( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts b/data/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts deleted file mode 100644 index 1efeb17c..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkListSubnets } from "../../funcs/dataPrimaryNetworkListSubnets.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListSubnetsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkListSubnets: ToolDefinition = { - name: "data-primary-network-list-subnets", - description: `List subnets - -Lists all subnets registered on the network.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkListSubnets( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts b/data/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts deleted file mode 100644 index f86a1c99..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkListValidators } from "../../funcs/dataPrimaryNetworkListValidators.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListValidatorsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkListValidators: ToolDefinition< - typeof args -> = { - name: "data-primary-network-list-validators", - description: `List validators - -Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkListValidators( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts b/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts deleted file mode 100644 index 7a3571d2..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkRewardsListHistoricalRewards } from "../../funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkRewardsListHistoricalRewards: - ToolDefinition = { - name: "data-primary-network-rewards-list-historical-rewards", - description: `List historical rewards - -Lists historical rewards on the Primary Network for the supplied addresses.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = - await dataPrimaryNetworkRewardsListHistoricalRewards( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts b/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts deleted file mode 100644 index 6ae020f2..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkRewardsListPendingRewards } from "../../funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListPendingPrimaryNetworkRewardsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkRewardsListPendingRewards: ToolDefinition< - typeof args -> = { - name: "data-primary-network-rewards-list-pending-rewards", - description: `List pending rewards - -Lists pending rewards on the Primary Network for the supplied addresses.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkRewardsListPendingRewards( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts b/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts deleted file mode 100644 index 5b55a2cf..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkTransactionsGet } from "../../funcs/dataPrimaryNetworkTransactionsGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTxByHashRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkTransactionsGet: ToolDefinition< - typeof args -> = { - name: "data-primary-network-transactions-get", - description: `Get transaction - -Gets the details of a single transaction on one of the Primary Network chains.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkTransactionsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts b/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts deleted file mode 100644 index 23241aa4..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "../../funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: - operations.ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkTransactionsListActiveStakingTransactions: - ToolDefinition = { - name: "data-primary-network-transactions-list-active-staking-transactions", - description: `List staking transactions - -Lists active staking transactions on the P-Chain for the supplied addresses.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = - await dataPrimaryNetworkTransactionsListActiveStakingTransactions( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts b/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts deleted file mode 100644 index cd43e49d..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkTransactionsListAssetTransactions } from "../../funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListAssetTransactionsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkTransactionsListAssetTransactions: - ToolDefinition = { - name: "data-primary-network-transactions-list-asset-transactions", - description: `List asset transactions - -Lists asset transactions corresponding to the given asset id on the X-Chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = - await dataPrimaryNetworkTransactionsListAssetTransactions( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, - }; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts b/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts deleted file mode 100644 index 625c861e..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkTransactionsListLatest } from "../../funcs/dataPrimaryNetworkTransactionsListLatest.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestPrimaryNetworkTransactionsRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkTransactionsListLatest: ToolDefinition< - typeof args -> = { - name: "data-primary-network-transactions-list-latest", - description: `List latest transactions - -Lists the latest transactions on one of the Primary Network chains. - -Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters. - -For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well. - -Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkTransactionsListLatest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts b/data/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts deleted file mode 100644 index bd129e60..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkUtxosListByAddresses } from "../../funcs/dataPrimaryNetworkUtxosListByAddresses.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetUtxosByAddressesRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkUtxosListByAddresses: ToolDefinition< - typeof args -> = { - name: "data-primary-network-utxos-list-by-addresses", - description: `List UTXOs - -Lists UTXOs on one of the Primary Network chains for the supplied addresses.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkUtxosListByAddresses( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts b/data/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts deleted file mode 100644 index e834887e..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkVerticesGetByHash } from "../../funcs/dataPrimaryNetworkVerticesGetByHash.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetVertexByHashRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkVerticesGetByHash: ToolDefinition< - typeof args -> = { - name: "data-primary-network-vertices-get-by-hash", - description: `Get vertex - -Gets a single vertex on the X-Chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkVerticesGetByHash( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts b/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts deleted file mode 100644 index 4239919f..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkVerticesListByHeight } from "../../funcs/dataPrimaryNetworkVerticesListByHeight.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetVertexByHeightRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkVerticesListByHeight: ToolDefinition< - typeof args -> = { - name: "data-primary-network-vertices-list-by-height", - description: `List vertices by height - -Lists vertices at the given vertex height on the X-Chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkVerticesListByHeight( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts b/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts deleted file mode 100644 index 79be55b1..00000000 --- a/data/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkVerticesListLatest } from "../../funcs/dataPrimaryNetworkVerticesListLatest.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListLatestXChainVerticesRequest$inboundSchema, -}; - -export const tool$dataPrimaryNetworkVerticesListLatest: ToolDefinition< - typeof args -> = { - name: "data-primary-network-vertices-list-latest", - description: `List vertices - -Lists latest vertices on the X-Chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataPrimaryNetworkVerticesListLatest( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts b/data/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts deleted file mode 100644 index 70c51d30..00000000 --- a/data/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataSignatureAggregatorAggregate } from "../../funcs/dataSignatureAggregatorAggregate.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.AggregateSignaturesRequest$inboundSchema, -}; - -export const tool$dataSignatureAggregatorAggregate: ToolDefinition< - typeof args -> = { - name: "data-signature-aggregator-aggregate", - description: `Aggregate Signatures - -Aggregates Signatures for a Warp message from Subnet validators.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataSignatureAggregatorAggregate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataSignatureAggregatorGet.ts b/data/src/mcp-server/tools/dataSignatureAggregatorGet.ts deleted file mode 100644 index a2aa383a..00000000 --- a/data/src/mcp-server/tools/dataSignatureAggregatorGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataSignatureAggregatorGet } from "../../funcs/dataSignatureAggregatorGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAggregatedSignaturesRequest$inboundSchema, -}; - -export const tool$dataSignatureAggregatorGet: ToolDefinition = { - name: "data-signature-aggregator-get", - description: `Get Aggregated Signatures - -Get Aggregated Signatures for a P-Chain L1 related Warp Message.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataSignatureAggregatorGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts b/data/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts deleted file mode 100644 index 9c3185c8..00000000 --- a/data/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataTeleporterGetTeleporterMessage } from "../../funcs/dataTeleporterGetTeleporterMessage.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTeleporterMessageRequest$inboundSchema, -}; - -export const tool$dataTeleporterGetTeleporterMessage: ToolDefinition< - typeof args -> = { - name: "data-teleporter-get-teleporter-message", - description: `**[Deprecated]** Gets a teleporter message by message ID. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataTeleporterGetTeleporterMessage( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts b/data/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts deleted file mode 100644 index 8a08944f..00000000 --- a/data/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataTeleporterListTeleporterMessages } from "../../funcs/dataTeleporterListTeleporterMessages.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListTeleporterMessagesRequest$inboundSchema, -}; - -export const tool$dataTeleporterListTeleporterMessages: ToolDefinition< - typeof args -> = { - name: "data-teleporter-list-teleporter-messages", - description: - `**[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataTeleporterListTeleporterMessages( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts b/data/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts deleted file mode 100644 index 196a1877..00000000 --- a/data/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataTeleporterListTeleporterMessagesByAddress } from "../../funcs/dataTeleporterListTeleporterMessagesByAddress.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListTeleporterMessagesByAddressRequest$inboundSchema, -}; - -export const tool$dataTeleporterListTeleporterMessagesByAddress: ToolDefinition< - typeof args -> = { - name: "data-teleporter-list-teleporter-messages-by-address", - description: - `**[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = - await dataTeleporterListTeleporterMessagesByAddress( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataUsageMetricsGetLogs.ts b/data/src/mcp-server/tools/dataUsageMetricsGetLogs.ts deleted file mode 100644 index 590c3129..00000000 --- a/data/src/mcp-server/tools/dataUsageMetricsGetLogs.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataUsageMetricsGetLogs } from "../../funcs/dataUsageMetricsGetLogs.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetApiLogsRequest$inboundSchema, -}; - -export const tool$dataUsageMetricsGetLogs: ToolDefinition = { - name: "data-usage-metrics-get-logs", - description: `Get logs for requests made by client - -Gets logs for requests made by client over a specified time interval for a specific organization.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataUsageMetricsGetLogs( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts b/data/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts deleted file mode 100644 index 1dd3e988..00000000 --- a/data/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataUsageMetricsGetRpcUsageMetrics } from "../../funcs/dataUsageMetricsGetRpcUsageMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetRpcUsageMetricsRequest$inboundSchema, -}; - -export const tool$dataUsageMetricsGetRpcUsageMetrics: ToolDefinition< - typeof args -> = { - name: "data-usage-metrics-get-rpc-usage-metrics", - description: - `**[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataUsageMetricsGetRpcUsageMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts b/data/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts deleted file mode 100644 index b5be063d..00000000 --- a/data/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataUsageMetricsGetSubnetRpcUsage } from "../../funcs/dataUsageMetricsGetSubnetRpcUsage.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetSubnetRpcUsageMetricsRequest$inboundSchema, -}; - -export const tool$dataUsageMetricsGetSubnetRpcUsage: ToolDefinition< - typeof args -> = { - name: "data-usage-metrics-get-subnet-rpc-usage", - description: `Get usage metrics for the Subnet RPC - -Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataUsageMetricsGetSubnetRpcUsage( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/mcp-server/tools/dataUsageMetricsGetUsage.ts b/data/src/mcp-server/tools/dataUsageMetricsGetUsage.ts deleted file mode 100644 index 6728a714..00000000 --- a/data/src/mcp-server/tools/dataUsageMetricsGetUsage.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataUsageMetricsGetUsage } from "../../funcs/dataUsageMetricsGetUsage.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetApiUsageMetricsRequest$inboundSchema, -}; - -export const tool$dataUsageMetricsGetUsage: ToolDefinition = { - name: "data-usage-metrics-get-usage", - description: `Get usage metrics for the Data API - -Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await dataUsageMetricsGetUsage( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/data/src/models/components/activedelegatordetails.ts b/data/src/models/components/activedelegatordetails.ts deleted file mode 100644 index 24f69c09..00000000 --- a/data/src/models/components/activedelegatordetails.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export const ActiveDelegatorDetailsDelegationStatus = { - Active: "active", -} as const; -export type ActiveDelegatorDetailsDelegationStatus = ClosedEnum< - typeof ActiveDelegatorDetailsDelegationStatus ->; - -export type ActiveDelegatorDetails = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - estimatedGrossReward: string; - estimatedNetReward: string; - delegationStatus: ActiveDelegatorDetailsDelegationStatus; -}; - -/** @internal */ -export const ActiveDelegatorDetailsDelegationStatus$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - ActiveDelegatorDetailsDelegationStatus, - ); - -/** @internal */ -export const ActiveDelegatorDetailsDelegationStatus$outboundSchema: - z.ZodNativeEnum = - ActiveDelegatorDetailsDelegationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActiveDelegatorDetailsDelegationStatus$ { - /** @deprecated use `ActiveDelegatorDetailsDelegationStatus$inboundSchema` instead. */ - export const inboundSchema = - ActiveDelegatorDetailsDelegationStatus$inboundSchema; - /** @deprecated use `ActiveDelegatorDetailsDelegationStatus$outboundSchema` instead. */ - export const outboundSchema = - ActiveDelegatorDetailsDelegationStatus$outboundSchema; -} - -/** @internal */ -export const ActiveDelegatorDetails$inboundSchema: z.ZodType< - ActiveDelegatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - estimatedGrossReward: z.string(), - estimatedNetReward: z.string(), - delegationStatus: ActiveDelegatorDetailsDelegationStatus$inboundSchema, -}); - -/** @internal */ -export type ActiveDelegatorDetails$Outbound = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - estimatedGrossReward: string; - estimatedNetReward: string; - delegationStatus: string; -}; - -/** @internal */ -export const ActiveDelegatorDetails$outboundSchema: z.ZodType< - ActiveDelegatorDetails$Outbound, - z.ZodTypeDef, - ActiveDelegatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - estimatedGrossReward: z.string(), - estimatedNetReward: z.string(), - delegationStatus: ActiveDelegatorDetailsDelegationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActiveDelegatorDetails$ { - /** @deprecated use `ActiveDelegatorDetails$inboundSchema` instead. */ - export const inboundSchema = ActiveDelegatorDetails$inboundSchema; - /** @deprecated use `ActiveDelegatorDetails$outboundSchema` instead. */ - export const outboundSchema = ActiveDelegatorDetails$outboundSchema; - /** @deprecated use `ActiveDelegatorDetails$Outbound` instead. */ - export type Outbound = ActiveDelegatorDetails$Outbound; -} - -export function activeDelegatorDetailsToJSON( - activeDelegatorDetails: ActiveDelegatorDetails, -): string { - return JSON.stringify( - ActiveDelegatorDetails$outboundSchema.parse(activeDelegatorDetails), - ); -} - -export function activeDelegatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActiveDelegatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActiveDelegatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/activevalidatordetails.ts b/data/src/models/components/activevalidatordetails.ts deleted file mode 100644 index d1a24acf..00000000 --- a/data/src/models/components/activevalidatordetails.ts +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BlsCredentials, - BlsCredentials$inboundSchema, - BlsCredentials$Outbound, - BlsCredentials$outboundSchema, -} from "./blscredentials.js"; -import { - Rewards, - Rewards$inboundSchema, - Rewards$Outbound, - Rewards$outboundSchema, -} from "./rewards.js"; -import { - ValidatorHealthDetails, - ValidatorHealthDetails$inboundSchema, - ValidatorHealthDetails$Outbound, - ValidatorHealthDetails$outboundSchema, -} from "./validatorhealthdetails.js"; - -export const ActiveValidatorDetailsValidationStatus = { - Active: "active", -} as const; -export type ActiveValidatorDetailsValidationStatus = ClosedEnum< - typeof ActiveValidatorDetailsValidationStatus ->; - -/** - * The geographical location of the validator node, if available. - */ -export type Geolocation = { - /** - * The name of the validator node. - */ - city: string; - /** - * The city of the validator node. - */ - country: string; - /** - * The country code of the validator node. - */ - countryCode: string; - /** - * The latitude of the validator node. - */ - latitude: number; - /** - * The longitude of the validator node. - */ - longitude: number; -}; - -export type ActiveValidatorDetails = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - /** - * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. - */ - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - /** - * Present for AddPermissionlessValidatorTx - */ - blsCredentials?: BlsCredentials | undefined; - /** - * The percentage of this validator's stake amount to the total active stake. - */ - stakePercentage: number; - /** - * The number of delegators linked to the validator. - */ - delegatorCount: number; - /** - * The total amount in nAVAX delegated to the validator. - */ - amountDelegated?: string | undefined; - /** - * The validator's uptime percentage, as observed by our internal node and measured over time. - */ - uptimePerformance: number; - avalancheGoVersion?: string | undefined; - /** - * The amount of stake in nAVAX that can be delegated to this validator. - */ - delegationCapacity?: string | undefined; - /** - * Estimated rewards for the validator if the validation is successful. - */ - potentialRewards: Rewards; - validationStatus: ActiveValidatorDetailsValidationStatus; - validatorHealth: ValidatorHealthDetails; - /** - * The geographical location of the validator node, if available. - */ - geolocation: Geolocation | null; -}; - -/** @internal */ -export const ActiveValidatorDetailsValidationStatus$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - ActiveValidatorDetailsValidationStatus, - ); - -/** @internal */ -export const ActiveValidatorDetailsValidationStatus$outboundSchema: - z.ZodNativeEnum = - ActiveValidatorDetailsValidationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActiveValidatorDetailsValidationStatus$ { - /** @deprecated use `ActiveValidatorDetailsValidationStatus$inboundSchema` instead. */ - export const inboundSchema = - ActiveValidatorDetailsValidationStatus$inboundSchema; - /** @deprecated use `ActiveValidatorDetailsValidationStatus$outboundSchema` instead. */ - export const outboundSchema = - ActiveValidatorDetailsValidationStatus$outboundSchema; -} - -/** @internal */ -export const Geolocation$inboundSchema: z.ZodType< - Geolocation, - z.ZodTypeDef, - unknown -> = z.object({ - city: z.string(), - country: z.string(), - countryCode: z.string(), - latitude: z.number(), - longitude: z.number(), -}); - -/** @internal */ -export type Geolocation$Outbound = { - city: string; - country: string; - countryCode: string; - latitude: number; - longitude: number; -}; - -/** @internal */ -export const Geolocation$outboundSchema: z.ZodType< - Geolocation$Outbound, - z.ZodTypeDef, - Geolocation -> = z.object({ - city: z.string(), - country: z.string(), - countryCode: z.string(), - latitude: z.number(), - longitude: 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 Geolocation$ { - /** @deprecated use `Geolocation$inboundSchema` instead. */ - export const inboundSchema = Geolocation$inboundSchema; - /** @deprecated use `Geolocation$outboundSchema` instead. */ - export const outboundSchema = Geolocation$outboundSchema; - /** @deprecated use `Geolocation$Outbound` instead. */ - export type Outbound = Geolocation$Outbound; -} - -export function geolocationToJSON(geolocation: Geolocation): string { - return JSON.stringify(Geolocation$outboundSchema.parse(geolocation)); -} - -export function geolocationFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Geolocation$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Geolocation' from JSON`, - ); -} - -/** @internal */ -export const ActiveValidatorDetails$inboundSchema: z.ZodType< - ActiveValidatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$inboundSchema.optional(), - stakePercentage: z.number(), - delegatorCount: z.number(), - amountDelegated: z.string().optional(), - uptimePerformance: z.number(), - avalancheGoVersion: z.string().optional(), - delegationCapacity: z.string().optional(), - potentialRewards: Rewards$inboundSchema, - validationStatus: ActiveValidatorDetailsValidationStatus$inboundSchema, - validatorHealth: ValidatorHealthDetails$inboundSchema, - geolocation: z.nullable(z.lazy(() => Geolocation$inboundSchema)), -}); - -/** @internal */ -export type ActiveValidatorDetails$Outbound = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - blsCredentials?: BlsCredentials$Outbound | undefined; - stakePercentage: number; - delegatorCount: number; - amountDelegated?: string | undefined; - uptimePerformance: number; - avalancheGoVersion?: string | undefined; - delegationCapacity?: string | undefined; - potentialRewards: Rewards$Outbound; - validationStatus: string; - validatorHealth: ValidatorHealthDetails$Outbound; - geolocation: Geolocation$Outbound | null; -}; - -/** @internal */ -export const ActiveValidatorDetails$outboundSchema: z.ZodType< - ActiveValidatorDetails$Outbound, - z.ZodTypeDef, - ActiveValidatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$outboundSchema.optional(), - stakePercentage: z.number(), - delegatorCount: z.number(), - amountDelegated: z.string().optional(), - uptimePerformance: z.number(), - avalancheGoVersion: z.string().optional(), - delegationCapacity: z.string().optional(), - potentialRewards: Rewards$outboundSchema, - validationStatus: ActiveValidatorDetailsValidationStatus$outboundSchema, - validatorHealth: ValidatorHealthDetails$outboundSchema, - geolocation: z.nullable(z.lazy(() => Geolocation$outboundSchema)), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ActiveValidatorDetails$ { - /** @deprecated use `ActiveValidatorDetails$inboundSchema` instead. */ - export const inboundSchema = ActiveValidatorDetails$inboundSchema; - /** @deprecated use `ActiveValidatorDetails$outboundSchema` instead. */ - export const outboundSchema = ActiveValidatorDetails$outboundSchema; - /** @deprecated use `ActiveValidatorDetails$Outbound` instead. */ - export type Outbound = ActiveValidatorDetails$Outbound; -} - -export function activeValidatorDetailsToJSON( - activeValidatorDetails: ActiveValidatorDetails, -): string { - return JSON.stringify( - ActiveValidatorDetails$outboundSchema.parse(activeValidatorDetails), - ); -} - -export function activeValidatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ActiveValidatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ActiveValidatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/aggregatedassetamount.ts b/data/src/models/components/aggregatedassetamount.ts deleted file mode 100644 index 56d1c740..00000000 --- a/data/src/models/components/aggregatedassetamount.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type AggregatedAssetAmount = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; - utxoCount: number; -}; - -/** @internal */ -export const AggregatedAssetAmount$inboundSchema: z.ZodType< - AggregatedAssetAmount, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), - utxoCount: z.number(), -}); - -/** @internal */ -export type AggregatedAssetAmount$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; - utxoCount: number; -}; - -/** @internal */ -export const AggregatedAssetAmount$outboundSchema: z.ZodType< - AggregatedAssetAmount$Outbound, - z.ZodTypeDef, - AggregatedAssetAmount -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), - utxoCount: 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 AggregatedAssetAmount$ { - /** @deprecated use `AggregatedAssetAmount$inboundSchema` instead. */ - export const inboundSchema = AggregatedAssetAmount$inboundSchema; - /** @deprecated use `AggregatedAssetAmount$outboundSchema` instead. */ - export const outboundSchema = AggregatedAssetAmount$outboundSchema; - /** @deprecated use `AggregatedAssetAmount$Outbound` instead. */ - export type Outbound = AggregatedAssetAmount$Outbound; -} - -export function aggregatedAssetAmountToJSON( - aggregatedAssetAmount: AggregatedAssetAmount, -): string { - return JSON.stringify( - AggregatedAssetAmount$outboundSchema.parse(aggregatedAssetAmount), - ); -} - -export function aggregatedAssetAmountFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AggregatedAssetAmount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AggregatedAssetAmount' from JSON`, - ); -} diff --git a/data/src/models/components/apifeature.ts b/data/src/models/components/apifeature.ts deleted file mode 100644 index a8f09e32..00000000 --- a/data/src/models/components/apifeature.ts +++ /dev/null @@ -1,32 +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 ApiFeature = { - NftIndexing: "nftIndexing", - Webhooks: "webhooks", - Teleporter: "teleporter", -} as const; -export type ApiFeature = ClosedEnum; - -/** @internal */ -export const ApiFeature$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ApiFeature); - -/** @internal */ -export const ApiFeature$outboundSchema: z.ZodNativeEnum = - ApiFeature$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ApiFeature$ { - /** @deprecated use `ApiFeature$inboundSchema` instead. */ - export const inboundSchema = ApiFeature$inboundSchema; - /** @deprecated use `ApiFeature$outboundSchema` instead. */ - export const outboundSchema = ApiFeature$outboundSchema; -} diff --git a/data/src/models/components/assetamount.ts b/data/src/models/components/assetamount.ts deleted file mode 100644 index ab5a0cc1..00000000 --- a/data/src/models/components/assetamount.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type AssetAmount = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; -}; - -/** @internal */ -export const AssetAmount$inboundSchema: z.ZodType< - AssetAmount, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), -}); - -/** @internal */ -export type AssetAmount$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; -}; - -/** @internal */ -export const AssetAmount$outboundSchema: z.ZodType< - AssetAmount$Outbound, - z.ZodTypeDef, - AssetAmount -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssetAmount$ { - /** @deprecated use `AssetAmount$inboundSchema` instead. */ - export const inboundSchema = AssetAmount$inboundSchema; - /** @deprecated use `AssetAmount$outboundSchema` instead. */ - export const outboundSchema = AssetAmount$outboundSchema; - /** @deprecated use `AssetAmount$Outbound` instead. */ - export type Outbound = AssetAmount$Outbound; -} - -export function assetAmountToJSON(assetAmount: AssetAmount): string { - return JSON.stringify(AssetAmount$outboundSchema.parse(assetAmount)); -} - -export function assetAmountFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AssetAmount$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AssetAmount' from JSON`, - ); -} diff --git a/data/src/models/components/assetwithpriceinfo.ts b/data/src/models/components/assetwithpriceinfo.ts deleted file mode 100644 index 17125fef..00000000 --- a/data/src/models/components/assetwithpriceinfo.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type AssetWithPriceInfo = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; - /** - * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago. - */ - historicalPrice?: Money | undefined; -}; - -/** @internal */ -export const AssetWithPriceInfo$inboundSchema: z.ZodType< - AssetWithPriceInfo, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), - historicalPrice: Money$inboundSchema.optional(), -}); - -/** @internal */ -export type AssetWithPriceInfo$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; - historicalPrice?: Money$Outbound | undefined; -}; - -/** @internal */ -export const AssetWithPriceInfo$outboundSchema: z.ZodType< - AssetWithPriceInfo$Outbound, - z.ZodTypeDef, - AssetWithPriceInfo -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), - historicalPrice: Money$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AssetWithPriceInfo$ { - /** @deprecated use `AssetWithPriceInfo$inboundSchema` instead. */ - export const inboundSchema = AssetWithPriceInfo$inboundSchema; - /** @deprecated use `AssetWithPriceInfo$outboundSchema` instead. */ - export const outboundSchema = AssetWithPriceInfo$outboundSchema; - /** @deprecated use `AssetWithPriceInfo$Outbound` instead. */ - export type Outbound = AssetWithPriceInfo$Outbound; -} - -export function assetWithPriceInfoToJSON( - assetWithPriceInfo: AssetWithPriceInfo, -): string { - return JSON.stringify( - AssetWithPriceInfo$outboundSchema.parse(assetWithPriceInfo), - ); -} - -export function assetWithPriceInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AssetWithPriceInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AssetWithPriceInfo' from JSON`, - ); -} diff --git a/data/src/models/components/balanceowner.ts b/data/src/models/components/balanceowner.ts deleted file mode 100644 index 344511a9..00000000 --- a/data/src/models/components/balanceowner.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type BalanceOwner = { - addresses: Array; - threshold: number; -}; - -/** @internal */ -export const BalanceOwner$inboundSchema: z.ZodType< - BalanceOwner, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - threshold: z.number(), -}); - -/** @internal */ -export type BalanceOwner$Outbound = { - addresses: Array; - threshold: number; -}; - -/** @internal */ -export const BalanceOwner$outboundSchema: z.ZodType< - BalanceOwner$Outbound, - z.ZodTypeDef, - BalanceOwner -> = z.object({ - addresses: z.array(z.string()), - threshold: 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 BalanceOwner$ { - /** @deprecated use `BalanceOwner$inboundSchema` instead. */ - export const inboundSchema = BalanceOwner$inboundSchema; - /** @deprecated use `BalanceOwner$outboundSchema` instead. */ - export const outboundSchema = BalanceOwner$outboundSchema; - /** @deprecated use `BalanceOwner$Outbound` instead. */ - export type Outbound = BalanceOwner$Outbound; -} - -export function balanceOwnerToJSON(balanceOwner: BalanceOwner): string { - return JSON.stringify(BalanceOwner$outboundSchema.parse(balanceOwner)); -} - -export function balanceOwnerFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BalanceOwner$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BalanceOwner' from JSON`, - ); -} diff --git a/data/src/models/components/blockchain.ts b/data/src/models/components/blockchain.ts deleted file mode 100644 index 37ed18bd..00000000 --- a/data/src/models/components/blockchain.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * The genesis data of the blockchain. - */ -export type BlockchainGenesisData = {}; - -export type Blockchain = { - createBlockTimestamp: number; - createBlockNumber: string; - blockchainId: string; - vmId: string; - subnetId: string; - blockchainName: string; - /** - * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well. - */ - evmChainId: number; - /** - * The genesis data of the blockchain. - */ - genesisData?: BlockchainGenesisData | undefined; -}; - -/** @internal */ -export const BlockchainGenesisData$inboundSchema: z.ZodType< - BlockchainGenesisData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type BlockchainGenesisData$Outbound = {}; - -/** @internal */ -export const BlockchainGenesisData$outboundSchema: z.ZodType< - BlockchainGenesisData$Outbound, - z.ZodTypeDef, - BlockchainGenesisData -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockchainGenesisData$ { - /** @deprecated use `BlockchainGenesisData$inboundSchema` instead. */ - export const inboundSchema = BlockchainGenesisData$inboundSchema; - /** @deprecated use `BlockchainGenesisData$outboundSchema` instead. */ - export const outboundSchema = BlockchainGenesisData$outboundSchema; - /** @deprecated use `BlockchainGenesisData$Outbound` instead. */ - export type Outbound = BlockchainGenesisData$Outbound; -} - -export function blockchainGenesisDataToJSON( - blockchainGenesisData: BlockchainGenesisData, -): string { - return JSON.stringify( - BlockchainGenesisData$outboundSchema.parse(blockchainGenesisData), - ); -} - -export function blockchainGenesisDataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BlockchainGenesisData$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BlockchainGenesisData' from JSON`, - ); -} - -/** @internal */ -export const Blockchain$inboundSchema: z.ZodType< - Blockchain, - z.ZodTypeDef, - unknown -> = z.object({ - createBlockTimestamp: z.number(), - createBlockNumber: z.string(), - blockchainId: z.string(), - vmId: z.string(), - subnetId: z.string(), - blockchainName: z.string(), - evmChainId: z.number(), - genesisData: z.lazy(() => BlockchainGenesisData$inboundSchema).optional(), -}); - -/** @internal */ -export type Blockchain$Outbound = { - createBlockTimestamp: number; - createBlockNumber: string; - blockchainId: string; - vmId: string; - subnetId: string; - blockchainName: string; - evmChainId: number; - genesisData?: BlockchainGenesisData$Outbound | undefined; -}; - -/** @internal */ -export const Blockchain$outboundSchema: z.ZodType< - Blockchain$Outbound, - z.ZodTypeDef, - Blockchain -> = z.object({ - createBlockTimestamp: z.number(), - createBlockNumber: z.string(), - blockchainId: z.string(), - vmId: z.string(), - subnetId: z.string(), - blockchainName: z.string(), - evmChainId: z.number(), - genesisData: z.lazy(() => BlockchainGenesisData$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Blockchain$ { - /** @deprecated use `Blockchain$inboundSchema` instead. */ - export const inboundSchema = Blockchain$inboundSchema; - /** @deprecated use `Blockchain$outboundSchema` instead. */ - export const outboundSchema = Blockchain$outboundSchema; - /** @deprecated use `Blockchain$Outbound` instead. */ - export type Outbound = Blockchain$Outbound; -} - -export function blockchainToJSON(blockchain: Blockchain): string { - return JSON.stringify(Blockchain$outboundSchema.parse(blockchain)); -} - -export function blockchainFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Blockchain$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Blockchain' from JSON`, - ); -} diff --git a/data/src/models/components/blockchainid.ts b/data/src/models/components/blockchainid.ts deleted file mode 100644 index 5e5a8ed9..00000000 --- a/data/src/models/components/blockchainid.ts +++ /dev/null @@ -1,42 +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 BlockchainId = { - ElevenNonillionOneHundredAndElevenOctillionOneHundredAndElevenSeptillionOneHundredAndElevenSextillionOneHundredAndElevenQuintillionOneHundredAndElevenQuadrillionOneHundredAndElevenTrillionOneHundredAndElevenBillionOneHundredAndElevenMillionOneHundredAndElevenThousandOneHundredAndElevenLpoYY: - "11111111111111111111111111111111LpoYY", - TwooYmbnv4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM: - "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - TwoJVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm: - "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm", - Twoq9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAx5UQxse55x1Q5: - "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - YH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp: - "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - PChain: "p-chain", - XChain: "x-chain", - CChain: "c-chain", -} as const; -export type BlockchainId = ClosedEnum; - -/** @internal */ -export const BlockchainId$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(BlockchainId); - -/** @internal */ -export const BlockchainId$outboundSchema: z.ZodNativeEnum = - BlockchainId$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockchainId$ { - /** @deprecated use `BlockchainId$inboundSchema` instead. */ - export const inboundSchema = BlockchainId$inboundSchema; - /** @deprecated use `BlockchainId$outboundSchema` instead. */ - export const outboundSchema = BlockchainId$outboundSchema; -} diff --git a/data/src/models/components/blockchainids.ts b/data/src/models/components/blockchainids.ts deleted file mode 100644 index 7dc83e85..00000000 --- a/data/src/models/components/blockchainids.ts +++ /dev/null @@ -1,41 +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 BlockchainIds = { - ElevenNonillionOneHundredAndElevenOctillionOneHundredAndElevenSeptillionOneHundredAndElevenSextillionOneHundredAndElevenQuintillionOneHundredAndElevenQuadrillionOneHundredAndElevenTrillionOneHundredAndElevenBillionOneHundredAndElevenMillionOneHundredAndElevenThousandOneHundredAndElevenLpoYY: - "11111111111111111111111111111111LpoYY", - TwooYmbnv4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM: - "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - TwoJVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm: - "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm", - Twoq9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAx5UQxse55x1Q5: - "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - YH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp: - "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", -} as const; -export type BlockchainIds = ClosedEnum; - -/** @internal */ -export const BlockchainIds$inboundSchema: z.ZodNativeEnum< - typeof BlockchainIds -> = z.nativeEnum(BlockchainIds); - -/** @internal */ -export const BlockchainIds$outboundSchema: z.ZodNativeEnum< - typeof BlockchainIds -> = BlockchainIds$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockchainIds$ { - /** @deprecated use `BlockchainIds$inboundSchema` instead. */ - export const inboundSchema = BlockchainIds$inboundSchema; - /** @deprecated use `BlockchainIds$outboundSchema` instead. */ - export const outboundSchema = BlockchainIds$outboundSchema; -} diff --git a/data/src/models/components/blockchaininfo.ts b/data/src/models/components/blockchaininfo.ts deleted file mode 100644 index a831b3ae..00000000 --- a/data/src/models/components/blockchaininfo.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM - */ -export type BlockchainInfoGenesisData = {}; - -export type BlockchainInfo = { - chainName: string; - vmId: string; - /** - * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM - */ - genesisData?: BlockchainInfoGenesisData | undefined; -}; - -/** @internal */ -export const BlockchainInfoGenesisData$inboundSchema: z.ZodType< - BlockchainInfoGenesisData, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type BlockchainInfoGenesisData$Outbound = {}; - -/** @internal */ -export const BlockchainInfoGenesisData$outboundSchema: z.ZodType< - BlockchainInfoGenesisData$Outbound, - z.ZodTypeDef, - BlockchainInfoGenesisData -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockchainInfoGenesisData$ { - /** @deprecated use `BlockchainInfoGenesisData$inboundSchema` instead. */ - export const inboundSchema = BlockchainInfoGenesisData$inboundSchema; - /** @deprecated use `BlockchainInfoGenesisData$outboundSchema` instead. */ - export const outboundSchema = BlockchainInfoGenesisData$outboundSchema; - /** @deprecated use `BlockchainInfoGenesisData$Outbound` instead. */ - export type Outbound = BlockchainInfoGenesisData$Outbound; -} - -export function blockchainInfoGenesisDataToJSON( - blockchainInfoGenesisData: BlockchainInfoGenesisData, -): string { - return JSON.stringify( - BlockchainInfoGenesisData$outboundSchema.parse(blockchainInfoGenesisData), - ); -} - -export function blockchainInfoGenesisDataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BlockchainInfoGenesisData$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BlockchainInfoGenesisData' from JSON`, - ); -} - -/** @internal */ -export const BlockchainInfo$inboundSchema: z.ZodType< - BlockchainInfo, - z.ZodTypeDef, - unknown -> = z.object({ - chainName: z.string(), - vmId: z.string(), - genesisData: z.lazy(() => BlockchainInfoGenesisData$inboundSchema).optional(), -}); - -/** @internal */ -export type BlockchainInfo$Outbound = { - chainName: string; - vmId: string; - genesisData?: BlockchainInfoGenesisData$Outbound | undefined; -}; - -/** @internal */ -export const BlockchainInfo$outboundSchema: z.ZodType< - BlockchainInfo$Outbound, - z.ZodTypeDef, - BlockchainInfo -> = z.object({ - chainName: z.string(), - vmId: z.string(), - genesisData: z.lazy(() => BlockchainInfoGenesisData$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlockchainInfo$ { - /** @deprecated use `BlockchainInfo$inboundSchema` instead. */ - export const inboundSchema = BlockchainInfo$inboundSchema; - /** @deprecated use `BlockchainInfo$outboundSchema` instead. */ - export const outboundSchema = BlockchainInfo$outboundSchema; - /** @deprecated use `BlockchainInfo$Outbound` instead. */ - export type Outbound = BlockchainInfo$Outbound; -} - -export function blockchainInfoToJSON(blockchainInfo: BlockchainInfo): string { - return JSON.stringify(BlockchainInfo$outboundSchema.parse(blockchainInfo)); -} - -export function blockchainInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BlockchainInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BlockchainInfo' from JSON`, - ); -} diff --git a/data/src/models/components/blscredentials.ts b/data/src/models/components/blscredentials.ts deleted file mode 100644 index add05322..00000000 --- a/data/src/models/components/blscredentials.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type BlsCredentials = { - publicKey: string; - proofOfPossession: string; -}; - -/** @internal */ -export const BlsCredentials$inboundSchema: z.ZodType< - BlsCredentials, - z.ZodTypeDef, - unknown -> = z.object({ - publicKey: z.string(), - proofOfPossession: z.string(), -}); - -/** @internal */ -export type BlsCredentials$Outbound = { - publicKey: string; - proofOfPossession: string; -}; - -/** @internal */ -export const BlsCredentials$outboundSchema: z.ZodType< - BlsCredentials$Outbound, - z.ZodTypeDef, - BlsCredentials -> = z.object({ - publicKey: z.string(), - proofOfPossession: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BlsCredentials$ { - /** @deprecated use `BlsCredentials$inboundSchema` instead. */ - export const inboundSchema = BlsCredentials$inboundSchema; - /** @deprecated use `BlsCredentials$outboundSchema` instead. */ - export const outboundSchema = BlsCredentials$outboundSchema; - /** @deprecated use `BlsCredentials$Outbound` instead. */ - export type Outbound = BlsCredentials$Outbound; -} - -export function blsCredentialsToJSON(blsCredentials: BlsCredentials): string { - return JSON.stringify(BlsCredentials$outboundSchema.parse(blsCredentials)); -} - -export function blsCredentialsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BlsCredentials$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BlsCredentials' from JSON`, - ); -} diff --git a/data/src/models/components/cchainatomicbalances.ts b/data/src/models/components/cchainatomicbalances.ts deleted file mode 100644 index 7aa8fdf8..00000000 --- a/data/src/models/components/cchainatomicbalances.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CChainSharedAssetBalance, - CChainSharedAssetBalance$inboundSchema, - CChainSharedAssetBalance$Outbound, - CChainSharedAssetBalance$outboundSchema, -} from "./cchainsharedassetbalance.js"; - -export type CChainAtomicBalances = { - atomicMemoryUnlocked: Array; - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const CChainAtomicBalances$inboundSchema: z.ZodType< - CChainAtomicBalances, - z.ZodTypeDef, - unknown -> = z.object({ - atomicMemoryUnlocked: z.array(CChainSharedAssetBalance$inboundSchema), - atomicMemoryLocked: z.array(CChainSharedAssetBalance$inboundSchema), -}); - -/** @internal */ -export type CChainAtomicBalances$Outbound = { - atomicMemoryUnlocked: Array; - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const CChainAtomicBalances$outboundSchema: z.ZodType< - CChainAtomicBalances$Outbound, - z.ZodTypeDef, - CChainAtomicBalances -> = z.object({ - atomicMemoryUnlocked: z.array(CChainSharedAssetBalance$outboundSchema), - atomicMemoryLocked: z.array(CChainSharedAssetBalance$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainAtomicBalances$ { - /** @deprecated use `CChainAtomicBalances$inboundSchema` instead. */ - export const inboundSchema = CChainAtomicBalances$inboundSchema; - /** @deprecated use `CChainAtomicBalances$outboundSchema` instead. */ - export const outboundSchema = CChainAtomicBalances$outboundSchema; - /** @deprecated use `CChainAtomicBalances$Outbound` instead. */ - export type Outbound = CChainAtomicBalances$Outbound; -} - -export function cChainAtomicBalancesToJSON( - cChainAtomicBalances: CChainAtomicBalances, -): string { - return JSON.stringify( - CChainAtomicBalances$outboundSchema.parse(cChainAtomicBalances), - ); -} - -export function cChainAtomicBalancesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CChainAtomicBalances$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CChainAtomicBalances' from JSON`, - ); -} diff --git a/data/src/models/components/cchainexporttransaction.ts b/data/src/models/components/cchainexporttransaction.ts deleted file mode 100644 index 374f5a40..00000000 --- a/data/src/models/components/cchainexporttransaction.ts +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - EVMInput, - EVMInput$inboundSchema, - EVMInput$Outbound, - EVMInput$outboundSchema, -} from "./evminput.js"; -import { - Utxo, - Utxo$inboundSchema, - Utxo$Outbound, - Utxo$outboundSchema, -} from "./utxo.js"; - -/** - * Type of transaction. - */ -export const CChainExportTransactionTxType = { - ExportTx: "ExportTx", -} as const; -/** - * Type of transaction. - */ -export type CChainExportTransactionTxType = ClosedEnum< - typeof CChainExportTransactionTxType ->; - -export type CChainExportTransaction = { - /** - * Unique ID for this transaction. - */ - txHash: string; - /** - * Height of the block this transaction belongs to. - */ - blockHeight: number; - /** - * Hash of the block this transaction belongs to. - */ - blockHash: string; - /** - * Latest timestamp in seconds this transaction was accepted. - */ - timestamp: number; - /** - * Hex encoded memo bytes for this transaction. - */ - memo: string; - /** - * Assets unlocked by inputs of this transaction. - */ - amountUnlocked: Array; - /** - * Assets created by outputs of this transaction. - */ - amountCreated: Array; - /** - * Source chain for an atomic transaction. - */ - sourceChain: string; - /** - * Destination chain for an atomic transaction. - */ - destinationChain: string; - /** - * Type of transaction. - */ - txType: CChainExportTransactionTxType; - evmInputs: Array; - emittedUtxos: Array; -}; - -/** @internal */ -export const CChainExportTransactionTxType$inboundSchema: z.ZodNativeEnum< - typeof CChainExportTransactionTxType -> = z.nativeEnum(CChainExportTransactionTxType); - -/** @internal */ -export const CChainExportTransactionTxType$outboundSchema: z.ZodNativeEnum< - typeof CChainExportTransactionTxType -> = CChainExportTransactionTxType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainExportTransactionTxType$ { - /** @deprecated use `CChainExportTransactionTxType$inboundSchema` instead. */ - export const inboundSchema = CChainExportTransactionTxType$inboundSchema; - /** @deprecated use `CChainExportTransactionTxType$outboundSchema` instead. */ - export const outboundSchema = CChainExportTransactionTxType$outboundSchema; -} - -/** @internal */ -export const CChainExportTransaction$inboundSchema: z.ZodType< - CChainExportTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - blockHeight: z.number(), - blockHash: z.string(), - timestamp: z.number(), - memo: z.string(), - amountUnlocked: z.array(AssetAmount$inboundSchema), - amountCreated: z.array(AssetAmount$inboundSchema), - sourceChain: z.string(), - destinationChain: z.string(), - txType: CChainExportTransactionTxType$inboundSchema, - evmInputs: z.array(EVMInput$inboundSchema), - emittedUtxos: z.array(Utxo$inboundSchema), -}); - -/** @internal */ -export type CChainExportTransaction$Outbound = { - txHash: string; - blockHeight: number; - blockHash: string; - timestamp: number; - memo: string; - amountUnlocked: Array; - amountCreated: Array; - sourceChain: string; - destinationChain: string; - txType: string; - evmInputs: Array; - emittedUtxos: Array; -}; - -/** @internal */ -export const CChainExportTransaction$outboundSchema: z.ZodType< - CChainExportTransaction$Outbound, - z.ZodTypeDef, - CChainExportTransaction -> = z.object({ - txHash: z.string(), - blockHeight: z.number(), - blockHash: z.string(), - timestamp: z.number(), - memo: z.string(), - amountUnlocked: z.array(AssetAmount$outboundSchema), - amountCreated: z.array(AssetAmount$outboundSchema), - sourceChain: z.string(), - destinationChain: z.string(), - txType: CChainExportTransactionTxType$outboundSchema, - evmInputs: z.array(EVMInput$outboundSchema), - emittedUtxos: z.array(Utxo$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainExportTransaction$ { - /** @deprecated use `CChainExportTransaction$inboundSchema` instead. */ - export const inboundSchema = CChainExportTransaction$inboundSchema; - /** @deprecated use `CChainExportTransaction$outboundSchema` instead. */ - export const outboundSchema = CChainExportTransaction$outboundSchema; - /** @deprecated use `CChainExportTransaction$Outbound` instead. */ - export type Outbound = CChainExportTransaction$Outbound; -} - -export function cChainExportTransactionToJSON( - cChainExportTransaction: CChainExportTransaction, -): string { - return JSON.stringify( - CChainExportTransaction$outboundSchema.parse(cChainExportTransaction), - ); -} - -export function cChainExportTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CChainExportTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CChainExportTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/cchainimporttransaction.ts b/data/src/models/components/cchainimporttransaction.ts deleted file mode 100644 index 622759cb..00000000 --- a/data/src/models/components/cchainimporttransaction.ts +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - EVMOutput, - EVMOutput$inboundSchema, - EVMOutput$Outbound, - EVMOutput$outboundSchema, -} from "./evmoutput.js"; -import { - Utxo, - Utxo$inboundSchema, - Utxo$Outbound, - Utxo$outboundSchema, -} from "./utxo.js"; - -/** - * Type of transaction. - */ -export const CChainImportTransactionTxType = { - ImportTx: "ImportTx", -} as const; -/** - * Type of transaction. - */ -export type CChainImportTransactionTxType = ClosedEnum< - typeof CChainImportTransactionTxType ->; - -export type CChainImportTransaction = { - /** - * Unique ID for this transaction. - */ - txHash: string; - /** - * Height of the block this transaction belongs to. - */ - blockHeight: number; - /** - * Hash of the block this transaction belongs to. - */ - blockHash: string; - /** - * Latest timestamp in seconds this transaction was accepted. - */ - timestamp: number; - /** - * Hex encoded memo bytes for this transaction. - */ - memo: string; - /** - * Assets unlocked by inputs of this transaction. - */ - amountUnlocked: Array; - /** - * Assets created by outputs of this transaction. - */ - amountCreated: Array; - /** - * Source chain for an atomic transaction. - */ - sourceChain: string; - /** - * Destination chain for an atomic transaction. - */ - destinationChain: string; - /** - * Type of transaction. - */ - txType: CChainImportTransactionTxType; - evmOutputs: Array; - consumedUtxos: Array; -}; - -/** @internal */ -export const CChainImportTransactionTxType$inboundSchema: z.ZodNativeEnum< - typeof CChainImportTransactionTxType -> = z.nativeEnum(CChainImportTransactionTxType); - -/** @internal */ -export const CChainImportTransactionTxType$outboundSchema: z.ZodNativeEnum< - typeof CChainImportTransactionTxType -> = CChainImportTransactionTxType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainImportTransactionTxType$ { - /** @deprecated use `CChainImportTransactionTxType$inboundSchema` instead. */ - export const inboundSchema = CChainImportTransactionTxType$inboundSchema; - /** @deprecated use `CChainImportTransactionTxType$outboundSchema` instead. */ - export const outboundSchema = CChainImportTransactionTxType$outboundSchema; -} - -/** @internal */ -export const CChainImportTransaction$inboundSchema: z.ZodType< - CChainImportTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - blockHeight: z.number(), - blockHash: z.string(), - timestamp: z.number(), - memo: z.string(), - amountUnlocked: z.array(AssetAmount$inboundSchema), - amountCreated: z.array(AssetAmount$inboundSchema), - sourceChain: z.string(), - destinationChain: z.string(), - txType: CChainImportTransactionTxType$inboundSchema, - evmOutputs: z.array(EVMOutput$inboundSchema), - consumedUtxos: z.array(Utxo$inboundSchema), -}); - -/** @internal */ -export type CChainImportTransaction$Outbound = { - txHash: string; - blockHeight: number; - blockHash: string; - timestamp: number; - memo: string; - amountUnlocked: Array; - amountCreated: Array; - sourceChain: string; - destinationChain: string; - txType: string; - evmOutputs: Array; - consumedUtxos: Array; -}; - -/** @internal */ -export const CChainImportTransaction$outboundSchema: z.ZodType< - CChainImportTransaction$Outbound, - z.ZodTypeDef, - CChainImportTransaction -> = z.object({ - txHash: z.string(), - blockHeight: z.number(), - blockHash: z.string(), - timestamp: z.number(), - memo: z.string(), - amountUnlocked: z.array(AssetAmount$outboundSchema), - amountCreated: z.array(AssetAmount$outboundSchema), - sourceChain: z.string(), - destinationChain: z.string(), - txType: CChainImportTransactionTxType$outboundSchema, - evmOutputs: z.array(EVMOutput$outboundSchema), - consumedUtxos: z.array(Utxo$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainImportTransaction$ { - /** @deprecated use `CChainImportTransaction$inboundSchema` instead. */ - export const inboundSchema = CChainImportTransaction$inboundSchema; - /** @deprecated use `CChainImportTransaction$outboundSchema` instead. */ - export const outboundSchema = CChainImportTransaction$outboundSchema; - /** @deprecated use `CChainImportTransaction$Outbound` instead. */ - export type Outbound = CChainImportTransaction$Outbound; -} - -export function cChainImportTransactionToJSON( - cChainImportTransaction: CChainImportTransaction, -): string { - return JSON.stringify( - CChainImportTransaction$outboundSchema.parse(cChainImportTransaction), - ); -} - -export function cChainImportTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CChainImportTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CChainImportTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/cchainsharedassetbalance.ts b/data/src/models/components/cchainsharedassetbalance.ts deleted file mode 100644 index 5fbb0778..00000000 --- a/data/src/models/components/cchainsharedassetbalance.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type CChainSharedAssetBalance = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; - utxoCount: number; - sharedWithChainId: string; -}; - -/** @internal */ -export const CChainSharedAssetBalance$inboundSchema: z.ZodType< - CChainSharedAssetBalance, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), -}); - -/** @internal */ -export type CChainSharedAssetBalance$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; - utxoCount: number; - sharedWithChainId: string; -}; - -/** @internal */ -export const CChainSharedAssetBalance$outboundSchema: z.ZodType< - CChainSharedAssetBalance$Outbound, - z.ZodTypeDef, - CChainSharedAssetBalance -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CChainSharedAssetBalance$ { - /** @deprecated use `CChainSharedAssetBalance$inboundSchema` instead. */ - export const inboundSchema = CChainSharedAssetBalance$inboundSchema; - /** @deprecated use `CChainSharedAssetBalance$outboundSchema` instead. */ - export const outboundSchema = CChainSharedAssetBalance$outboundSchema; - /** @deprecated use `CChainSharedAssetBalance$Outbound` instead. */ - export type Outbound = CChainSharedAssetBalance$Outbound; -} - -export function cChainSharedAssetBalanceToJSON( - cChainSharedAssetBalance: CChainSharedAssetBalance, -): string { - return JSON.stringify( - CChainSharedAssetBalance$outboundSchema.parse(cChainSharedAssetBalance), - ); -} - -export function cChainSharedAssetBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CChainSharedAssetBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CChainSharedAssetBalance' from JSON`, - ); -} diff --git a/data/src/models/components/chainaddresschainidmap.ts b/data/src/models/components/chainaddresschainidmap.ts deleted file mode 100644 index a0a254c5..00000000 --- a/data/src/models/components/chainaddresschainidmap.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BlockchainIds, - BlockchainIds$inboundSchema, - BlockchainIds$outboundSchema, -} from "./blockchainids.js"; - -export type ChainAddressChainIdMap = { - address: string; - blockchainIds: Array; -}; - -/** @internal */ -export const ChainAddressChainIdMap$inboundSchema: z.ZodType< - ChainAddressChainIdMap, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - blockchainIds: z.array(BlockchainIds$inboundSchema), -}); - -/** @internal */ -export type ChainAddressChainIdMap$Outbound = { - address: string; - blockchainIds: Array; -}; - -/** @internal */ -export const ChainAddressChainIdMap$outboundSchema: z.ZodType< - ChainAddressChainIdMap$Outbound, - z.ZodTypeDef, - ChainAddressChainIdMap -> = z.object({ - address: z.string(), - blockchainIds: z.array(BlockchainIds$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainAddressChainIdMap$ { - /** @deprecated use `ChainAddressChainIdMap$inboundSchema` instead. */ - export const inboundSchema = ChainAddressChainIdMap$inboundSchema; - /** @deprecated use `ChainAddressChainIdMap$outboundSchema` instead. */ - export const outboundSchema = ChainAddressChainIdMap$outboundSchema; - /** @deprecated use `ChainAddressChainIdMap$Outbound` instead. */ - export type Outbound = ChainAddressChainIdMap$Outbound; -} - -export function chainAddressChainIdMapToJSON( - chainAddressChainIdMap: ChainAddressChainIdMap, -): string { - return JSON.stringify( - ChainAddressChainIdMap$outboundSchema.parse(chainAddressChainIdMap), - ); -} - -export function chainAddressChainIdMapFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ChainAddressChainIdMap$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ChainAddressChainIdMap' from JSON`, - ); -} diff --git a/data/src/models/components/chainaddresschainidmaplistresponse.ts b/data/src/models/components/chainaddresschainidmaplistresponse.ts deleted file mode 100644 index 045da62d..00000000 --- a/data/src/models/components/chainaddresschainidmaplistresponse.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainAddressChainIdMap, - ChainAddressChainIdMap$inboundSchema, - ChainAddressChainIdMap$Outbound, - ChainAddressChainIdMap$outboundSchema, -} from "./chainaddresschainidmap.js"; - -export type ChainAddressChainIdMapListResponse = { - addresses: Array; -}; - -/** @internal */ -export const ChainAddressChainIdMapListResponse$inboundSchema: z.ZodType< - ChainAddressChainIdMapListResponse, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(ChainAddressChainIdMap$inboundSchema), -}); - -/** @internal */ -export type ChainAddressChainIdMapListResponse$Outbound = { - addresses: Array; -}; - -/** @internal */ -export const ChainAddressChainIdMapListResponse$outboundSchema: z.ZodType< - ChainAddressChainIdMapListResponse$Outbound, - z.ZodTypeDef, - ChainAddressChainIdMapListResponse -> = z.object({ - addresses: z.array(ChainAddressChainIdMap$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainAddressChainIdMapListResponse$ { - /** @deprecated use `ChainAddressChainIdMapListResponse$inboundSchema` instead. */ - export const inboundSchema = ChainAddressChainIdMapListResponse$inboundSchema; - /** @deprecated use `ChainAddressChainIdMapListResponse$outboundSchema` instead. */ - export const outboundSchema = - ChainAddressChainIdMapListResponse$outboundSchema; - /** @deprecated use `ChainAddressChainIdMapListResponse$Outbound` instead. */ - export type Outbound = ChainAddressChainIdMapListResponse$Outbound; -} - -export function chainAddressChainIdMapListResponseToJSON( - chainAddressChainIdMapListResponse: ChainAddressChainIdMapListResponse, -): string { - return JSON.stringify( - ChainAddressChainIdMapListResponse$outboundSchema.parse( - chainAddressChainIdMapListResponse, - ), - ); -} - -export function chainAddressChainIdMapListResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ChainAddressChainIdMapListResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ChainAddressChainIdMapListResponse' from JSON`, - ); -} diff --git a/data/src/models/components/chaininfo.ts b/data/src/models/components/chaininfo.ts deleted file mode 100644 index 92414879..00000000 --- a/data/src/models/components/chaininfo.ts +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainStatus, - ChainStatus$inboundSchema, - ChainStatus$outboundSchema, -} from "./chainstatus.js"; -import { - NetworkToken, - NetworkToken$inboundSchema, - NetworkToken$Outbound, - NetworkToken$outboundSchema, -} from "./networktoken.js"; -import { - UtilityAddresses, - UtilityAddresses$inboundSchema, - UtilityAddresses$Outbound, - UtilityAddresses$outboundSchema, -} from "./utilityaddresses.js"; -import { - VmName, - VmName$inboundSchema, - VmName$outboundSchema, -} from "./vmname.js"; - -export const ChainInfoEnabledFeature = { - NftIndexing: "nftIndexing", - Webhooks: "webhooks", - Teleporter: "teleporter", -} as const; -export type ChainInfoEnabledFeature = ClosedEnum< - typeof ChainInfoEnabledFeature ->; - -export type ChainInfo = { - chainId: string; - /** - * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. - */ - status: ChainStatus; - chainName: string; - description: string; - platformChainId?: string | undefined; - subnetId?: string | undefined; - vmId?: string | undefined; - vmName: VmName; - explorerUrl?: string | undefined; - rpcUrl: string; - wsUrl?: string | undefined; - isTestnet: boolean; - utilityAddresses?: UtilityAddresses | undefined; - networkToken: NetworkToken; - chainLogoUri?: string | undefined; - private?: boolean | undefined; - enabledFeatures?: Array | undefined; -}; - -/** @internal */ -export const ChainInfoEnabledFeature$inboundSchema: z.ZodNativeEnum< - typeof ChainInfoEnabledFeature -> = z.nativeEnum(ChainInfoEnabledFeature); - -/** @internal */ -export const ChainInfoEnabledFeature$outboundSchema: z.ZodNativeEnum< - typeof ChainInfoEnabledFeature -> = ChainInfoEnabledFeature$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainInfoEnabledFeature$ { - /** @deprecated use `ChainInfoEnabledFeature$inboundSchema` instead. */ - export const inboundSchema = ChainInfoEnabledFeature$inboundSchema; - /** @deprecated use `ChainInfoEnabledFeature$outboundSchema` instead. */ - export const outboundSchema = ChainInfoEnabledFeature$outboundSchema; -} - -/** @internal */ -export const ChainInfo$inboundSchema: z.ZodType< - ChainInfo, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string(), - status: ChainStatus$inboundSchema, - chainName: z.string(), - description: z.string(), - platformChainId: z.string().optional(), - subnetId: z.string().optional(), - vmId: z.string().optional(), - vmName: VmName$inboundSchema, - explorerUrl: z.string().optional(), - rpcUrl: z.string(), - wsUrl: z.string().optional(), - isTestnet: z.boolean(), - utilityAddresses: UtilityAddresses$inboundSchema.optional(), - networkToken: NetworkToken$inboundSchema, - chainLogoUri: z.string().optional(), - private: z.boolean().optional(), - enabledFeatures: z.array(ChainInfoEnabledFeature$inboundSchema).optional(), -}); - -/** @internal */ -export type ChainInfo$Outbound = { - chainId: string; - status: string; - chainName: string; - description: string; - platformChainId?: string | undefined; - subnetId?: string | undefined; - vmId?: string | undefined; - vmName: string; - explorerUrl?: string | undefined; - rpcUrl: string; - wsUrl?: string | undefined; - isTestnet: boolean; - utilityAddresses?: UtilityAddresses$Outbound | undefined; - networkToken: NetworkToken$Outbound; - chainLogoUri?: string | undefined; - private?: boolean | undefined; - enabledFeatures?: Array | undefined; -}; - -/** @internal */ -export const ChainInfo$outboundSchema: z.ZodType< - ChainInfo$Outbound, - z.ZodTypeDef, - ChainInfo -> = z.object({ - chainId: z.string(), - status: ChainStatus$outboundSchema, - chainName: z.string(), - description: z.string(), - platformChainId: z.string().optional(), - subnetId: z.string().optional(), - vmId: z.string().optional(), - vmName: VmName$outboundSchema, - explorerUrl: z.string().optional(), - rpcUrl: z.string(), - wsUrl: z.string().optional(), - isTestnet: z.boolean(), - utilityAddresses: UtilityAddresses$outboundSchema.optional(), - networkToken: NetworkToken$outboundSchema, - chainLogoUri: z.string().optional(), - private: z.boolean().optional(), - enabledFeatures: z.array(ChainInfoEnabledFeature$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainInfo$ { - /** @deprecated use `ChainInfo$inboundSchema` instead. */ - export const inboundSchema = ChainInfo$inboundSchema; - /** @deprecated use `ChainInfo$outboundSchema` instead. */ - export const outboundSchema = ChainInfo$outboundSchema; - /** @deprecated use `ChainInfo$Outbound` instead. */ - export type Outbound = ChainInfo$Outbound; -} - -export function chainInfoToJSON(chainInfo: ChainInfo): string { - return JSON.stringify(ChainInfo$outboundSchema.parse(chainInfo)); -} - -export function chainInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ChainInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ChainInfo' from JSON`, - ); -} diff --git a/data/src/models/components/chainstatus.ts b/data/src/models/components/chainstatus.ts deleted file mode 100644 index 63b7087b..00000000 --- a/data/src/models/components/chainstatus.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. - */ -export const ChainStatus = { - Ok: "OK", - Unavailable: "UNAVAILABLE", -} as const; -/** - * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. - */ -export type ChainStatus = ClosedEnum; - -/** @internal */ -export const ChainStatus$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ChainStatus); - -/** @internal */ -export const ChainStatus$outboundSchema: z.ZodNativeEnum = - ChainStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainStatus$ { - /** @deprecated use `ChainStatus$inboundSchema` instead. */ - export const inboundSchema = ChainStatus$inboundSchema; - /** @deprecated use `ChainStatus$outboundSchema` instead. */ - export const outboundSchema = ChainStatus$outboundSchema; -} diff --git a/data/src/models/components/completeddelegatordetails.ts b/data/src/models/components/completeddelegatordetails.ts deleted file mode 100644 index 069c1ddb..00000000 --- a/data/src/models/components/completeddelegatordetails.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export const CompletedDelegatorDetailsDelegationStatus = { - Completed: "completed", -} as const; -export type CompletedDelegatorDetailsDelegationStatus = ClosedEnum< - typeof CompletedDelegatorDetailsDelegationStatus ->; - -export type CompletedDelegatorDetails = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - /** - * Total rewards distributed for the successful delegation. - */ - grossReward: string; - /** - * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation. - */ - netReward: string; - delegationStatus: CompletedDelegatorDetailsDelegationStatus; -}; - -/** @internal */ -export const CompletedDelegatorDetailsDelegationStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CompletedDelegatorDetailsDelegationStatus); - -/** @internal */ -export const CompletedDelegatorDetailsDelegationStatus$outboundSchema: - z.ZodNativeEnum = - CompletedDelegatorDetailsDelegationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompletedDelegatorDetailsDelegationStatus$ { - /** @deprecated use `CompletedDelegatorDetailsDelegationStatus$inboundSchema` instead. */ - export const inboundSchema = - CompletedDelegatorDetailsDelegationStatus$inboundSchema; - /** @deprecated use `CompletedDelegatorDetailsDelegationStatus$outboundSchema` instead. */ - export const outboundSchema = - CompletedDelegatorDetailsDelegationStatus$outboundSchema; -} - -/** @internal */ -export const CompletedDelegatorDetails$inboundSchema: z.ZodType< - CompletedDelegatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - grossReward: z.string(), - netReward: z.string(), - delegationStatus: CompletedDelegatorDetailsDelegationStatus$inboundSchema, -}); - -/** @internal */ -export type CompletedDelegatorDetails$Outbound = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - grossReward: string; - netReward: string; - delegationStatus: string; -}; - -/** @internal */ -export const CompletedDelegatorDetails$outboundSchema: z.ZodType< - CompletedDelegatorDetails$Outbound, - z.ZodTypeDef, - CompletedDelegatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - grossReward: z.string(), - netReward: z.string(), - delegationStatus: CompletedDelegatorDetailsDelegationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompletedDelegatorDetails$ { - /** @deprecated use `CompletedDelegatorDetails$inboundSchema` instead. */ - export const inboundSchema = CompletedDelegatorDetails$inboundSchema; - /** @deprecated use `CompletedDelegatorDetails$outboundSchema` instead. */ - export const outboundSchema = CompletedDelegatorDetails$outboundSchema; - /** @deprecated use `CompletedDelegatorDetails$Outbound` instead. */ - export type Outbound = CompletedDelegatorDetails$Outbound; -} - -export function completedDelegatorDetailsToJSON( - completedDelegatorDetails: CompletedDelegatorDetails, -): string { - return JSON.stringify( - CompletedDelegatorDetails$outboundSchema.parse(completedDelegatorDetails), - ); -} - -export function completedDelegatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CompletedDelegatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CompletedDelegatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/completedvalidatordetails.ts b/data/src/models/components/completedvalidatordetails.ts deleted file mode 100644 index e6e3194b..00000000 --- a/data/src/models/components/completedvalidatordetails.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BlsCredentials, - BlsCredentials$inboundSchema, - BlsCredentials$Outbound, - BlsCredentials$outboundSchema, -} from "./blscredentials.js"; -import { - Rewards, - Rewards$inboundSchema, - Rewards$Outbound, - Rewards$outboundSchema, -} from "./rewards.js"; - -export const CompletedValidatorDetailsValidationStatus = { - Completed: "completed", -} as const; -export type CompletedValidatorDetailsValidationStatus = ClosedEnum< - typeof CompletedValidatorDetailsValidationStatus ->; - -export type CompletedValidatorDetails = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - /** - * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. - */ - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - /** - * Present for AddPermissionlessValidatorTx - */ - blsCredentials?: BlsCredentials | undefined; - delegatorCount: number; - amountDelegated?: string | undefined; - rewards: Rewards; - validationStatus: CompletedValidatorDetailsValidationStatus; -}; - -/** @internal */ -export const CompletedValidatorDetailsValidationStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CompletedValidatorDetailsValidationStatus); - -/** @internal */ -export const CompletedValidatorDetailsValidationStatus$outboundSchema: - z.ZodNativeEnum = - CompletedValidatorDetailsValidationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompletedValidatorDetailsValidationStatus$ { - /** @deprecated use `CompletedValidatorDetailsValidationStatus$inboundSchema` instead. */ - export const inboundSchema = - CompletedValidatorDetailsValidationStatus$inboundSchema; - /** @deprecated use `CompletedValidatorDetailsValidationStatus$outboundSchema` instead. */ - export const outboundSchema = - CompletedValidatorDetailsValidationStatus$outboundSchema; -} - -/** @internal */ -export const CompletedValidatorDetails$inboundSchema: z.ZodType< - CompletedValidatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$inboundSchema.optional(), - delegatorCount: z.number(), - amountDelegated: z.string().optional(), - rewards: Rewards$inboundSchema, - validationStatus: CompletedValidatorDetailsValidationStatus$inboundSchema, -}); - -/** @internal */ -export type CompletedValidatorDetails$Outbound = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - blsCredentials?: BlsCredentials$Outbound | undefined; - delegatorCount: number; - amountDelegated?: string | undefined; - rewards: Rewards$Outbound; - validationStatus: string; -}; - -/** @internal */ -export const CompletedValidatorDetails$outboundSchema: z.ZodType< - CompletedValidatorDetails$Outbound, - z.ZodTypeDef, - CompletedValidatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$outboundSchema.optional(), - delegatorCount: z.number(), - amountDelegated: z.string().optional(), - rewards: Rewards$outboundSchema, - validationStatus: CompletedValidatorDetailsValidationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CompletedValidatorDetails$ { - /** @deprecated use `CompletedValidatorDetails$inboundSchema` instead. */ - export const inboundSchema = CompletedValidatorDetails$inboundSchema; - /** @deprecated use `CompletedValidatorDetails$outboundSchema` instead. */ - export const outboundSchema = CompletedValidatorDetails$outboundSchema; - /** @deprecated use `CompletedValidatorDetails$Outbound` instead. */ - export type Outbound = CompletedValidatorDetails$Outbound; -} - -export function completedValidatorDetailsToJSON( - completedValidatorDetails: CompletedValidatorDetails, -): string { - return JSON.stringify( - CompletedValidatorDetails$outboundSchema.parse(completedValidatorDetails), - ); -} - -export function completedValidatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CompletedValidatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CompletedValidatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/contractdeploymentdetails.ts b/data/src/models/components/contractdeploymentdetails.ts deleted file mode 100644 index 4bf0adc8..00000000 --- a/data/src/models/components/contractdeploymentdetails.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ContractDeploymentDetails = { - txHash: string; - /** - * The address that initiated the transaction which deployed this contract. - */ - deployerAddress: string; - /** - * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution. - */ - deployerContractAddress?: string | undefined; -}; - -/** @internal */ -export const ContractDeploymentDetails$inboundSchema: z.ZodType< - ContractDeploymentDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - deployerAddress: z.string(), - deployerContractAddress: z.string().optional(), -}); - -/** @internal */ -export type ContractDeploymentDetails$Outbound = { - txHash: string; - deployerAddress: string; - deployerContractAddress?: string | undefined; -}; - -/** @internal */ -export const ContractDeploymentDetails$outboundSchema: z.ZodType< - ContractDeploymentDetails$Outbound, - z.ZodTypeDef, - ContractDeploymentDetails -> = z.object({ - txHash: z.string(), - deployerAddress: z.string(), - deployerContractAddress: 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 ContractDeploymentDetails$ { - /** @deprecated use `ContractDeploymentDetails$inboundSchema` instead. */ - export const inboundSchema = ContractDeploymentDetails$inboundSchema; - /** @deprecated use `ContractDeploymentDetails$outboundSchema` instead. */ - export const outboundSchema = ContractDeploymentDetails$outboundSchema; - /** @deprecated use `ContractDeploymentDetails$Outbound` instead. */ - export type Outbound = ContractDeploymentDetails$Outbound; -} - -export function contractDeploymentDetailsToJSON( - contractDeploymentDetails: ContractDeploymentDetails, -): string { - return JSON.stringify( - ContractDeploymentDetails$outboundSchema.parse(contractDeploymentDetails), - ); -} - -export function contractDeploymentDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ContractDeploymentDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ContractDeploymentDetails' from JSON`, - ); -} diff --git a/data/src/models/components/createevmtransactionexportrequest.ts b/data/src/models/components/createevmtransactionexportrequest.ts deleted file mode 100644 index 1756a7ed..00000000 --- a/data/src/models/components/createevmtransactionexportrequest.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - EvmNetworkOptions, - EvmNetworkOptions$inboundSchema, - EvmNetworkOptions$Outbound, - EvmNetworkOptions$outboundSchema, -} from "./evmnetworkoptions.js"; -import { - EVMOperationType, - EVMOperationType$inboundSchema, - EVMOperationType$outboundSchema, -} from "./evmoperationtype.js"; - -export type CreateEvmTransactionExportRequest = { - type: EVMOperationType; - firstDate?: string | undefined; - lastDate?: string | undefined; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - startDate?: string | undefined; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - endDate?: string | undefined; - options: EvmNetworkOptions; -}; - -/** @internal */ -export const CreateEvmTransactionExportRequest$inboundSchema: z.ZodType< - CreateEvmTransactionExportRequest, - z.ZodTypeDef, - unknown -> = z.object({ - type: EVMOperationType$inboundSchema, - firstDate: z.string().optional(), - lastDate: z.string().optional(), - startDate: z.string().optional(), - endDate: z.string().optional(), - options: EvmNetworkOptions$inboundSchema, -}); - -/** @internal */ -export type CreateEvmTransactionExportRequest$Outbound = { - type: string; - firstDate?: string | undefined; - lastDate?: string | undefined; - startDate?: string | undefined; - endDate?: string | undefined; - options: EvmNetworkOptions$Outbound; -}; - -/** @internal */ -export const CreateEvmTransactionExportRequest$outboundSchema: z.ZodType< - CreateEvmTransactionExportRequest$Outbound, - z.ZodTypeDef, - CreateEvmTransactionExportRequest -> = z.object({ - type: EVMOperationType$outboundSchema, - firstDate: z.string().optional(), - lastDate: z.string().optional(), - startDate: z.string().optional(), - endDate: z.string().optional(), - options: EvmNetworkOptions$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateEvmTransactionExportRequest$ { - /** @deprecated use `CreateEvmTransactionExportRequest$inboundSchema` instead. */ - export const inboundSchema = CreateEvmTransactionExportRequest$inboundSchema; - /** @deprecated use `CreateEvmTransactionExportRequest$outboundSchema` instead. */ - export const outboundSchema = - CreateEvmTransactionExportRequest$outboundSchema; - /** @deprecated use `CreateEvmTransactionExportRequest$Outbound` instead. */ - export type Outbound = CreateEvmTransactionExportRequest$Outbound; -} - -export function createEvmTransactionExportRequestToJSON( - createEvmTransactionExportRequest: CreateEvmTransactionExportRequest, -): string { - return JSON.stringify( - CreateEvmTransactionExportRequest$outboundSchema.parse( - createEvmTransactionExportRequest, - ), - ); -} - -export function createEvmTransactionExportRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateEvmTransactionExportRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateEvmTransactionExportRequest' from JSON`, - ); -} diff --git a/data/src/models/components/createprimarynetworktransactionexportrequest.ts b/data/src/models/components/createprimarynetworktransactionexportrequest.ts deleted file mode 100644 index d5f02f6f..00000000 --- a/data/src/models/components/createprimarynetworktransactionexportrequest.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkOperationType, - PrimaryNetworkOperationType$inboundSchema, - PrimaryNetworkOperationType$outboundSchema, -} from "./primarynetworkoperationtype.js"; -import { - PrimaryNetworkOptions, - PrimaryNetworkOptions$inboundSchema, - PrimaryNetworkOptions$Outbound, - PrimaryNetworkOptions$outboundSchema, -} from "./primarynetworkoptions.js"; - -export type CreatePrimaryNetworkTransactionExportRequest = { - type: PrimaryNetworkOperationType; - firstDate?: string | undefined; - lastDate?: string | undefined; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - startDate?: string | undefined; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - endDate?: string | undefined; - options: PrimaryNetworkOptions; -}; - -/** @internal */ -export const CreatePrimaryNetworkTransactionExportRequest$inboundSchema: - z.ZodType< - CreatePrimaryNetworkTransactionExportRequest, - z.ZodTypeDef, - unknown - > = z.object({ - type: PrimaryNetworkOperationType$inboundSchema, - firstDate: z.string().optional(), - lastDate: z.string().optional(), - startDate: z.string().optional(), - endDate: z.string().optional(), - options: PrimaryNetworkOptions$inboundSchema, - }); - -/** @internal */ -export type CreatePrimaryNetworkTransactionExportRequest$Outbound = { - type: string; - firstDate?: string | undefined; - lastDate?: string | undefined; - startDate?: string | undefined; - endDate?: string | undefined; - options: PrimaryNetworkOptions$Outbound; -}; - -/** @internal */ -export const CreatePrimaryNetworkTransactionExportRequest$outboundSchema: - z.ZodType< - CreatePrimaryNetworkTransactionExportRequest$Outbound, - z.ZodTypeDef, - CreatePrimaryNetworkTransactionExportRequest - > = z.object({ - type: PrimaryNetworkOperationType$outboundSchema, - firstDate: z.string().optional(), - lastDate: z.string().optional(), - startDate: z.string().optional(), - endDate: z.string().optional(), - options: PrimaryNetworkOptions$outboundSchema, - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreatePrimaryNetworkTransactionExportRequest$ { - /** @deprecated use `CreatePrimaryNetworkTransactionExportRequest$inboundSchema` instead. */ - export const inboundSchema = - CreatePrimaryNetworkTransactionExportRequest$inboundSchema; - /** @deprecated use `CreatePrimaryNetworkTransactionExportRequest$outboundSchema` instead. */ - export const outboundSchema = - CreatePrimaryNetworkTransactionExportRequest$outboundSchema; - /** @deprecated use `CreatePrimaryNetworkTransactionExportRequest$Outbound` instead. */ - export type Outbound = CreatePrimaryNetworkTransactionExportRequest$Outbound; -} - -export function createPrimaryNetworkTransactionExportRequestToJSON( - createPrimaryNetworkTransactionExportRequest: - CreatePrimaryNetworkTransactionExportRequest, -): string { - return JSON.stringify( - CreatePrimaryNetworkTransactionExportRequest$outboundSchema.parse( - createPrimaryNetworkTransactionExportRequest, - ), - ); -} - -export function createPrimaryNetworkTransactionExportRequestFromJSON( - jsonString: string, -): SafeParseResult< - CreatePrimaryNetworkTransactionExportRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - CreatePrimaryNetworkTransactionExportRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'CreatePrimaryNetworkTransactionExportRequest' from JSON`, - ); -} diff --git a/data/src/models/components/currencycode.ts b/data/src/models/components/currencycode.ts deleted file mode 100644 index 116b7c8d..00000000 --- a/data/src/models/components/currencycode.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * ISO 4217 currency code. - */ -export const CurrencyCode = { - Usd: "usd", - Eur: "eur", - Aud: "aud", - Cad: "cad", - Chf: "chf", - Clp: "clp", - Cny: "cny", - Czk: "czk", - Dkk: "dkk", - Gbp: "gbp", - Hkd: "hkd", - Huf: "huf", - Jpy: "jpy", - Nzd: "nzd", -} as const; -/** - * ISO 4217 currency code. - */ -export type CurrencyCode = ClosedEnum; - -/** @internal */ -export const CurrencyCode$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(CurrencyCode); - -/** @internal */ -export const CurrencyCode$outboundSchema: z.ZodNativeEnum = - CurrencyCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CurrencyCode$ { - /** @deprecated use `CurrencyCode$inboundSchema` instead. */ - export const inboundSchema = CurrencyCode$inboundSchema; - /** @deprecated use `CurrencyCode$outboundSchema` instead. */ - export const outboundSchema = CurrencyCode$outboundSchema; -} diff --git a/data/src/models/components/delegationstatustype.ts b/data/src/models/components/delegationstatustype.ts deleted file mode 100644 index e69e43df..00000000 --- a/data/src/models/components/delegationstatustype.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 DelegationStatusType = { - Completed: "completed", - Active: "active", - Pending: "pending", -} as const; -export type DelegationStatusType = ClosedEnum; - -/** @internal */ -export const DelegationStatusType$inboundSchema: z.ZodNativeEnum< - typeof DelegationStatusType -> = z.nativeEnum(DelegationStatusType); - -/** @internal */ -export const DelegationStatusType$outboundSchema: z.ZodNativeEnum< - typeof DelegationStatusType -> = DelegationStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DelegationStatusType$ { - /** @deprecated use `DelegationStatusType$inboundSchema` instead. */ - export const inboundSchema = DelegationStatusType$inboundSchema; - /** @deprecated use `DelegationStatusType$outboundSchema` instead. */ - export const outboundSchema = DelegationStatusType$outboundSchema; -} diff --git a/data/src/models/components/delegatorsdetails.ts b/data/src/models/components/delegatorsdetails.ts deleted file mode 100644 index 5e1d8e1f..00000000 --- a/data/src/models/components/delegatorsdetails.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DelegatorsDetails = { - delegatorCount: number; - totalAmountStaked: string; -}; - -/** @internal */ -export const DelegatorsDetails$inboundSchema: z.ZodType< - DelegatorsDetails, - z.ZodTypeDef, - unknown -> = z.object({ - delegatorCount: z.number(), - totalAmountStaked: z.string(), -}); - -/** @internal */ -export type DelegatorsDetails$Outbound = { - delegatorCount: number; - totalAmountStaked: string; -}; - -/** @internal */ -export const DelegatorsDetails$outboundSchema: z.ZodType< - DelegatorsDetails$Outbound, - z.ZodTypeDef, - DelegatorsDetails -> = z.object({ - delegatorCount: z.number(), - totalAmountStaked: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DelegatorsDetails$ { - /** @deprecated use `DelegatorsDetails$inboundSchema` instead. */ - export const inboundSchema = DelegatorsDetails$inboundSchema; - /** @deprecated use `DelegatorsDetails$outboundSchema` instead. */ - export const outboundSchema = DelegatorsDetails$outboundSchema; - /** @deprecated use `DelegatorsDetails$Outbound` instead. */ - export type Outbound = DelegatorsDetails$Outbound; -} - -export function delegatorsDetailsToJSON( - delegatorsDetails: DelegatorsDetails, -): string { - return JSON.stringify( - DelegatorsDetails$outboundSchema.parse(delegatorsDetails), - ); -} - -export function delegatorsDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DelegatorsDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DelegatorsDetails' from JSON`, - ); -} diff --git a/data/src/models/components/deliveredicmmessage.ts b/data/src/models/components/deliveredicmmessage.ts deleted file mode 100644 index eab636d4..00000000 --- a/data/src/models/components/deliveredicmmessage.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - IcmDestinationTransaction, - IcmDestinationTransaction$inboundSchema, - IcmDestinationTransaction$Outbound, - IcmDestinationTransaction$outboundSchema, -} from "./icmdestinationtransaction.js"; -import { - IcmReceipt, - IcmReceipt$inboundSchema, - IcmReceipt$Outbound, - IcmReceipt$outboundSchema, -} from "./icmreceipt.js"; -import { - IcmRewardDetails, - IcmRewardDetails$inboundSchema, - IcmRewardDetails$Outbound, - IcmRewardDetails$outboundSchema, -} from "./icmrewarddetails.js"; -import { - IcmSourceTransaction, - IcmSourceTransaction$inboundSchema, - IcmSourceTransaction$Outbound, - IcmSourceTransaction$outboundSchema, -} from "./icmsourcetransaction.js"; - -export const DeliveredIcmMessageStatus = { - Delivered: "delivered", -} as const; -export type DeliveredIcmMessageStatus = ClosedEnum< - typeof DeliveredIcmMessageStatus ->; - -export type DeliveredIcmMessage = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails; - sourceTransaction: IcmSourceTransaction; - destinationTransaction: IcmDestinationTransaction; - status: DeliveredIcmMessageStatus; -}; - -/** @internal */ -export const DeliveredIcmMessageStatus$inboundSchema: z.ZodNativeEnum< - typeof DeliveredIcmMessageStatus -> = z.nativeEnum(DeliveredIcmMessageStatus); - -/** @internal */ -export const DeliveredIcmMessageStatus$outboundSchema: z.ZodNativeEnum< - typeof DeliveredIcmMessageStatus -> = DeliveredIcmMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredIcmMessageStatus$ { - /** @deprecated use `DeliveredIcmMessageStatus$inboundSchema` instead. */ - export const inboundSchema = DeliveredIcmMessageStatus$inboundSchema; - /** @deprecated use `DeliveredIcmMessageStatus$outboundSchema` instead. */ - export const outboundSchema = DeliveredIcmMessageStatus$outboundSchema; -} - -/** @internal */ -export const DeliveredIcmMessage$inboundSchema: z.ZodType< - DeliveredIcmMessage, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$inboundSchema, - sourceTransaction: IcmSourceTransaction$inboundSchema, - destinationTransaction: IcmDestinationTransaction$inboundSchema, - status: DeliveredIcmMessageStatus$inboundSchema, -}); - -/** @internal */ -export type DeliveredIcmMessage$Outbound = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails$Outbound; - sourceTransaction: IcmSourceTransaction$Outbound; - destinationTransaction: IcmDestinationTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const DeliveredIcmMessage$outboundSchema: z.ZodType< - DeliveredIcmMessage$Outbound, - z.ZodTypeDef, - DeliveredIcmMessage -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$outboundSchema, - sourceTransaction: IcmSourceTransaction$outboundSchema, - destinationTransaction: IcmDestinationTransaction$outboundSchema, - status: DeliveredIcmMessageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredIcmMessage$ { - /** @deprecated use `DeliveredIcmMessage$inboundSchema` instead. */ - export const inboundSchema = DeliveredIcmMessage$inboundSchema; - /** @deprecated use `DeliveredIcmMessage$outboundSchema` instead. */ - export const outboundSchema = DeliveredIcmMessage$outboundSchema; - /** @deprecated use `DeliveredIcmMessage$Outbound` instead. */ - export type Outbound = DeliveredIcmMessage$Outbound; -} - -export function deliveredIcmMessageToJSON( - deliveredIcmMessage: DeliveredIcmMessage, -): string { - return JSON.stringify( - DeliveredIcmMessage$outboundSchema.parse(deliveredIcmMessage), - ); -} - -export function deliveredIcmMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeliveredIcmMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeliveredIcmMessage' from JSON`, - ); -} diff --git a/data/src/models/components/deliveredsourcenotindexedicmmessage.ts b/data/src/models/components/deliveredsourcenotindexedicmmessage.ts deleted file mode 100644 index 0f7e3d76..00000000 --- a/data/src/models/components/deliveredsourcenotindexedicmmessage.ts +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - IcmDestinationTransaction, - IcmDestinationTransaction$inboundSchema, - IcmDestinationTransaction$Outbound, - IcmDestinationTransaction$outboundSchema, -} from "./icmdestinationtransaction.js"; -import { - IcmReceipt, - IcmReceipt$inboundSchema, - IcmReceipt$Outbound, - IcmReceipt$outboundSchema, -} from "./icmreceipt.js"; -import { - IcmRewardDetails, - IcmRewardDetails$inboundSchema, - IcmRewardDetails$Outbound, - IcmRewardDetails$outboundSchema, -} from "./icmrewarddetails.js"; - -export const DeliveredSourceNotIndexedIcmMessageStatus = { - DeliveredSourceNotIndexed: "delivered_source_not_indexed", -} as const; -export type DeliveredSourceNotIndexedIcmMessageStatus = ClosedEnum< - typeof DeliveredSourceNotIndexedIcmMessageStatus ->; - -export type DeliveredSourceNotIndexedIcmMessage = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails; - destinationTransaction: IcmDestinationTransaction; - status: DeliveredSourceNotIndexedIcmMessageStatus; -}; - -/** @internal */ -export const DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(DeliveredSourceNotIndexedIcmMessageStatus); - -/** @internal */ -export const DeliveredSourceNotIndexedIcmMessageStatus$outboundSchema: - z.ZodNativeEnum = - DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredSourceNotIndexedIcmMessageStatus$ { - /** @deprecated use `DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema` instead. */ - export const inboundSchema = - DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedIcmMessageStatus$outboundSchema` instead. */ - export const outboundSchema = - DeliveredSourceNotIndexedIcmMessageStatus$outboundSchema; -} - -/** @internal */ -export const DeliveredSourceNotIndexedIcmMessage$inboundSchema: z.ZodType< - DeliveredSourceNotIndexedIcmMessage, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$inboundSchema, - destinationTransaction: IcmDestinationTransaction$inboundSchema, - status: DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema, -}); - -/** @internal */ -export type DeliveredSourceNotIndexedIcmMessage$Outbound = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails$Outbound; - destinationTransaction: IcmDestinationTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const DeliveredSourceNotIndexedIcmMessage$outboundSchema: z.ZodType< - DeliveredSourceNotIndexedIcmMessage$Outbound, - z.ZodTypeDef, - DeliveredSourceNotIndexedIcmMessage -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$outboundSchema, - destinationTransaction: IcmDestinationTransaction$outboundSchema, - status: DeliveredSourceNotIndexedIcmMessageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredSourceNotIndexedIcmMessage$ { - /** @deprecated use `DeliveredSourceNotIndexedIcmMessage$inboundSchema` instead. */ - export const inboundSchema = - DeliveredSourceNotIndexedIcmMessage$inboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedIcmMessage$outboundSchema` instead. */ - export const outboundSchema = - DeliveredSourceNotIndexedIcmMessage$outboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedIcmMessage$Outbound` instead. */ - export type Outbound = DeliveredSourceNotIndexedIcmMessage$Outbound; -} - -export function deliveredSourceNotIndexedIcmMessageToJSON( - deliveredSourceNotIndexedIcmMessage: DeliveredSourceNotIndexedIcmMessage, -): string { - return JSON.stringify( - DeliveredSourceNotIndexedIcmMessage$outboundSchema.parse( - deliveredSourceNotIndexedIcmMessage, - ), - ); -} - -export function deliveredSourceNotIndexedIcmMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - DeliveredSourceNotIndexedIcmMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeliveredSourceNotIndexedIcmMessage' from JSON`, - ); -} diff --git a/data/src/models/components/deliveredsourcenotindexedteleportermessage.ts b/data/src/models/components/deliveredsourcenotindexedteleportermessage.ts deleted file mode 100644 index 469d4f9a..00000000 --- a/data/src/models/components/deliveredsourcenotindexedteleportermessage.ts +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TeleporterDestinationTransaction, - TeleporterDestinationTransaction$inboundSchema, - TeleporterDestinationTransaction$Outbound, - TeleporterDestinationTransaction$outboundSchema, -} from "./teleporterdestinationtransaction.js"; -import { - TeleporterReceipt, - TeleporterReceipt$inboundSchema, - TeleporterReceipt$Outbound, - TeleporterReceipt$outboundSchema, -} from "./teleporterreceipt.js"; -import { - TeleporterRewardDetails, - TeleporterRewardDetails$inboundSchema, - TeleporterRewardDetails$Outbound, - TeleporterRewardDetails$outboundSchema, -} from "./teleporterrewarddetails.js"; - -export const DeliveredSourceNotIndexedTeleporterMessageStatus = { - DeliveredSourceNotIndexed: "delivered_source_not_indexed", -} as const; -export type DeliveredSourceNotIndexedTeleporterMessageStatus = ClosedEnum< - typeof DeliveredSourceNotIndexedTeleporterMessageStatus ->; - -export type DeliveredSourceNotIndexedTeleporterMessage = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails; - destinationTransaction: TeleporterDestinationTransaction; - status: DeliveredSourceNotIndexedTeleporterMessageStatus; -}; - -/** @internal */ -export const DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(DeliveredSourceNotIndexedTeleporterMessageStatus); - -/** @internal */ -export const DeliveredSourceNotIndexedTeleporterMessageStatus$outboundSchema: - z.ZodNativeEnum = - DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredSourceNotIndexedTeleporterMessageStatus$ { - /** @deprecated use `DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema` instead. */ - export const inboundSchema = - DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedTeleporterMessageStatus$outboundSchema` instead. */ - export const outboundSchema = - DeliveredSourceNotIndexedTeleporterMessageStatus$outboundSchema; -} - -/** @internal */ -export const DeliveredSourceNotIndexedTeleporterMessage$inboundSchema: - z.ZodType = - z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$inboundSchema, - destinationTransaction: TeleporterDestinationTransaction$inboundSchema, - status: DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema, - }); - -/** @internal */ -export type DeliveredSourceNotIndexedTeleporterMessage$Outbound = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails$Outbound; - destinationTransaction: TeleporterDestinationTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const DeliveredSourceNotIndexedTeleporterMessage$outboundSchema: - z.ZodType< - DeliveredSourceNotIndexedTeleporterMessage$Outbound, - z.ZodTypeDef, - DeliveredSourceNotIndexedTeleporterMessage - > = z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$outboundSchema, - destinationTransaction: TeleporterDestinationTransaction$outboundSchema, - status: DeliveredSourceNotIndexedTeleporterMessageStatus$outboundSchema, - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredSourceNotIndexedTeleporterMessage$ { - /** @deprecated use `DeliveredSourceNotIndexedTeleporterMessage$inboundSchema` instead. */ - export const inboundSchema = - DeliveredSourceNotIndexedTeleporterMessage$inboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedTeleporterMessage$outboundSchema` instead. */ - export const outboundSchema = - DeliveredSourceNotIndexedTeleporterMessage$outboundSchema; - /** @deprecated use `DeliveredSourceNotIndexedTeleporterMessage$Outbound` instead. */ - export type Outbound = DeliveredSourceNotIndexedTeleporterMessage$Outbound; -} - -export function deliveredSourceNotIndexedTeleporterMessageToJSON( - deliveredSourceNotIndexedTeleporterMessage: - DeliveredSourceNotIndexedTeleporterMessage, -): string { - return JSON.stringify( - DeliveredSourceNotIndexedTeleporterMessage$outboundSchema.parse( - deliveredSourceNotIndexedTeleporterMessage, - ), - ); -} - -export function deliveredSourceNotIndexedTeleporterMessageFromJSON( - jsonString: string, -): SafeParseResult< - DeliveredSourceNotIndexedTeleporterMessage, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - DeliveredSourceNotIndexedTeleporterMessage$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'DeliveredSourceNotIndexedTeleporterMessage' from JSON`, - ); -} diff --git a/data/src/models/components/deliveredteleportermessage.ts b/data/src/models/components/deliveredteleportermessage.ts deleted file mode 100644 index f868bc2c..00000000 --- a/data/src/models/components/deliveredteleportermessage.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TeleporterDestinationTransaction, - TeleporterDestinationTransaction$inboundSchema, - TeleporterDestinationTransaction$Outbound, - TeleporterDestinationTransaction$outboundSchema, -} from "./teleporterdestinationtransaction.js"; -import { - TeleporterReceipt, - TeleporterReceipt$inboundSchema, - TeleporterReceipt$Outbound, - TeleporterReceipt$outboundSchema, -} from "./teleporterreceipt.js"; -import { - TeleporterRewardDetails, - TeleporterRewardDetails$inboundSchema, - TeleporterRewardDetails$Outbound, - TeleporterRewardDetails$outboundSchema, -} from "./teleporterrewarddetails.js"; -import { - TeleporterSourceTransaction, - TeleporterSourceTransaction$inboundSchema, - TeleporterSourceTransaction$Outbound, - TeleporterSourceTransaction$outboundSchema, -} from "./teleportersourcetransaction.js"; - -export const DeliveredTeleporterMessageStatus = { - Delivered: "delivered", -} as const; -export type DeliveredTeleporterMessageStatus = ClosedEnum< - typeof DeliveredTeleporterMessageStatus ->; - -export type DeliveredTeleporterMessage = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails; - sourceTransaction: TeleporterSourceTransaction; - destinationTransaction: TeleporterDestinationTransaction; - status: DeliveredTeleporterMessageStatus; -}; - -/** @internal */ -export const DeliveredTeleporterMessageStatus$inboundSchema: z.ZodNativeEnum< - typeof DeliveredTeleporterMessageStatus -> = z.nativeEnum(DeliveredTeleporterMessageStatus); - -/** @internal */ -export const DeliveredTeleporterMessageStatus$outboundSchema: z.ZodNativeEnum< - typeof DeliveredTeleporterMessageStatus -> = DeliveredTeleporterMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredTeleporterMessageStatus$ { - /** @deprecated use `DeliveredTeleporterMessageStatus$inboundSchema` instead. */ - export const inboundSchema = DeliveredTeleporterMessageStatus$inboundSchema; - /** @deprecated use `DeliveredTeleporterMessageStatus$outboundSchema` instead. */ - export const outboundSchema = DeliveredTeleporterMessageStatus$outboundSchema; -} - -/** @internal */ -export const DeliveredTeleporterMessage$inboundSchema: z.ZodType< - DeliveredTeleporterMessage, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$inboundSchema, - sourceTransaction: TeleporterSourceTransaction$inboundSchema, - destinationTransaction: TeleporterDestinationTransaction$inboundSchema, - status: DeliveredTeleporterMessageStatus$inboundSchema, -}); - -/** @internal */ -export type DeliveredTeleporterMessage$Outbound = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails$Outbound; - sourceTransaction: TeleporterSourceTransaction$Outbound; - destinationTransaction: TeleporterDestinationTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const DeliveredTeleporterMessage$outboundSchema: z.ZodType< - DeliveredTeleporterMessage$Outbound, - z.ZodTypeDef, - DeliveredTeleporterMessage -> = z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$outboundSchema, - sourceTransaction: TeleporterSourceTransaction$outboundSchema, - destinationTransaction: TeleporterDestinationTransaction$outboundSchema, - status: DeliveredTeleporterMessageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeliveredTeleporterMessage$ { - /** @deprecated use `DeliveredTeleporterMessage$inboundSchema` instead. */ - export const inboundSchema = DeliveredTeleporterMessage$inboundSchema; - /** @deprecated use `DeliveredTeleporterMessage$outboundSchema` instead. */ - export const outboundSchema = DeliveredTeleporterMessage$outboundSchema; - /** @deprecated use `DeliveredTeleporterMessage$Outbound` instead. */ - export type Outbound = DeliveredTeleporterMessage$Outbound; -} - -export function deliveredTeleporterMessageToJSON( - deliveredTeleporterMessage: DeliveredTeleporterMessage, -): string { - return JSON.stringify( - DeliveredTeleporterMessage$outboundSchema.parse(deliveredTeleporterMessage), - ); -} - -export function deliveredTeleporterMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeliveredTeleporterMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeliveredTeleporterMessage' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155contract.ts b/data/src/models/components/erc1155contract.ts deleted file mode 100644 index 5bbd81c1..00000000 --- a/data/src/models/components/erc1155contract.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ContractDeploymentDetails, - ContractDeploymentDetails$inboundSchema, - ContractDeploymentDetails$Outbound, - ContractDeploymentDetails$outboundSchema, -} from "./contractdeploymentdetails.js"; -import { - ImageAsset, - ImageAsset$inboundSchema, - ImageAsset$Outbound, - ImageAsset$outboundSchema, -} from "./imageasset.js"; -import { - PricingProviders, - PricingProviders$inboundSchema, - PricingProviders$Outbound, - PricingProviders$outboundSchema, -} from "./pricingproviders.js"; -import { - ResourceLink, - ResourceLink$inboundSchema, - ResourceLink$Outbound, - ResourceLink$outboundSchema, -} from "./resourcelink.js"; - -export const Erc1155ContractErcType = { - Erc1155: "ERC-1155", -} as const; -export type Erc1155ContractErcType = ClosedEnum; - -export type Erc1155Contract = { - /** - * The contract name. - */ - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset | undefined; - bannerAsset?: ImageAsset | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - deploymentDetails?: ContractDeploymentDetails | undefined; - ercType: Erc1155ContractErcType; - /** - * The contract symbol. - */ - symbol?: string | undefined; - pricingProviders?: PricingProviders | undefined; -}; - -/** @internal */ -export const Erc1155ContractErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc1155ContractErcType -> = z.nativeEnum(Erc1155ContractErcType); - -/** @internal */ -export const Erc1155ContractErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc1155ContractErcType -> = Erc1155ContractErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155ContractErcType$ { - /** @deprecated use `Erc1155ContractErcType$inboundSchema` instead. */ - export const inboundSchema = Erc1155ContractErcType$inboundSchema; - /** @deprecated use `Erc1155ContractErcType$outboundSchema` instead. */ - export const outboundSchema = Erc1155ContractErcType$outboundSchema; -} - -/** @internal */ -export const Erc1155Contract$inboundSchema: z.ZodType< - Erc1155Contract, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$inboundSchema.optional(), - bannerAsset: ImageAsset$inboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$inboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$inboundSchema.optional(), - ercType: Erc1155ContractErcType$inboundSchema, - symbol: z.string().optional(), - pricingProviders: PricingProviders$inboundSchema.optional(), -}); - -/** @internal */ -export type Erc1155Contract$Outbound = { - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset$Outbound | undefined; - bannerAsset?: ImageAsset$Outbound | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - address: string; - deploymentDetails?: ContractDeploymentDetails$Outbound | undefined; - ercType: string; - symbol?: string | undefined; - pricingProviders?: PricingProviders$Outbound | undefined; -}; - -/** @internal */ -export const Erc1155Contract$outboundSchema: z.ZodType< - Erc1155Contract$Outbound, - z.ZodTypeDef, - Erc1155Contract -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$outboundSchema.optional(), - bannerAsset: ImageAsset$outboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$outboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$outboundSchema.optional(), - ercType: Erc1155ContractErcType$outboundSchema, - symbol: z.string().optional(), - pricingProviders: PricingProviders$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155Contract$ { - /** @deprecated use `Erc1155Contract$inboundSchema` instead. */ - export const inboundSchema = Erc1155Contract$inboundSchema; - /** @deprecated use `Erc1155Contract$outboundSchema` instead. */ - export const outboundSchema = Erc1155Contract$outboundSchema; - /** @deprecated use `Erc1155Contract$Outbound` instead. */ - export type Outbound = Erc1155Contract$Outbound; -} - -export function erc1155ContractToJSON( - erc1155Contract: Erc1155Contract, -): string { - return JSON.stringify(Erc1155Contract$outboundSchema.parse(erc1155Contract)); -} - -export function erc1155ContractFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155Contract$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155Contract' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155token.ts b/data/src/models/components/erc1155token.ts deleted file mode 100644 index a55b6fdc..00000000 --- a/data/src/models/components/erc1155token.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TokenMetadata, - Erc1155TokenMetadata$inboundSchema, - Erc1155TokenMetadata$Outbound, - Erc1155TokenMetadata$outboundSchema, -} from "./erc1155tokenmetadata.js"; - -export const Erc1155TokenErcType = { - Erc1155: "ERC-1155", -} as const; -export type Erc1155TokenErcType = ClosedEnum; - -export type Erc1155Token = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - ercType: Erc1155TokenErcType; - tokenId: string; - tokenUri: string; - metadata: Erc1155TokenMetadata; -}; - -/** @internal */ -export const Erc1155TokenErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc1155TokenErcType -> = z.nativeEnum(Erc1155TokenErcType); - -/** @internal */ -export const Erc1155TokenErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc1155TokenErcType -> = Erc1155TokenErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155TokenErcType$ { - /** @deprecated use `Erc1155TokenErcType$inboundSchema` instead. */ - export const inboundSchema = Erc1155TokenErcType$inboundSchema; - /** @deprecated use `Erc1155TokenErcType$outboundSchema` instead. */ - export const outboundSchema = Erc1155TokenErcType$outboundSchema; -} - -/** @internal */ -export const Erc1155Token$inboundSchema: z.ZodType< - Erc1155Token, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - ercType: Erc1155TokenErcType$inboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc1155TokenMetadata$inboundSchema, -}); - -/** @internal */ -export type Erc1155Token$Outbound = { - address: string; - ercType: string; - tokenId: string; - tokenUri: string; - metadata: Erc1155TokenMetadata$Outbound; -}; - -/** @internal */ -export const Erc1155Token$outboundSchema: z.ZodType< - Erc1155Token$Outbound, - z.ZodTypeDef, - Erc1155Token -> = z.object({ - address: z.string(), - ercType: Erc1155TokenErcType$outboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc1155TokenMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155Token$ { - /** @deprecated use `Erc1155Token$inboundSchema` instead. */ - export const inboundSchema = Erc1155Token$inboundSchema; - /** @deprecated use `Erc1155Token$outboundSchema` instead. */ - export const outboundSchema = Erc1155Token$outboundSchema; - /** @deprecated use `Erc1155Token$Outbound` instead. */ - export type Outbound = Erc1155Token$Outbound; -} - -export function erc1155TokenToJSON(erc1155Token: Erc1155Token): string { - return JSON.stringify(Erc1155Token$outboundSchema.parse(erc1155Token)); -} - -export function erc1155TokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155Token$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155Token' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155tokenbalance.ts b/data/src/models/components/erc1155tokenbalance.ts deleted file mode 100644 index eba16cea..00000000 --- a/data/src/models/components/erc1155tokenbalance.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TokenMetadata, - Erc1155TokenMetadata$inboundSchema, - Erc1155TokenMetadata$Outbound, - Erc1155TokenMetadata$outboundSchema, -} from "./erc1155tokenmetadata.js"; - -export const Erc1155TokenBalanceErcType = { - Erc1155: "ERC-1155", -} as const; -export type Erc1155TokenBalanceErcType = ClosedEnum< - typeof Erc1155TokenBalanceErcType ->; - -export type Erc1155TokenBalance = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - ercType: Erc1155TokenBalanceErcType; - tokenId: string; - tokenUri: string; - metadata: Erc1155TokenMetadata; - /** - * The evm chain id. - */ - chainId: string; - /** - * The address balance for the token, in units specified by the `decimals` value for the contract. - */ - balance: string; -}; - -/** @internal */ -export const Erc1155TokenBalanceErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc1155TokenBalanceErcType -> = z.nativeEnum(Erc1155TokenBalanceErcType); - -/** @internal */ -export const Erc1155TokenBalanceErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc1155TokenBalanceErcType -> = Erc1155TokenBalanceErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155TokenBalanceErcType$ { - /** @deprecated use `Erc1155TokenBalanceErcType$inboundSchema` instead. */ - export const inboundSchema = Erc1155TokenBalanceErcType$inboundSchema; - /** @deprecated use `Erc1155TokenBalanceErcType$outboundSchema` instead. */ - export const outboundSchema = Erc1155TokenBalanceErcType$outboundSchema; -} - -/** @internal */ -export const Erc1155TokenBalance$inboundSchema: z.ZodType< - Erc1155TokenBalance, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - ercType: Erc1155TokenBalanceErcType$inboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc1155TokenMetadata$inboundSchema, - chainId: z.string(), - balance: z.string(), -}); - -/** @internal */ -export type Erc1155TokenBalance$Outbound = { - address: string; - ercType: string; - tokenId: string; - tokenUri: string; - metadata: Erc1155TokenMetadata$Outbound; - chainId: string; - balance: string; -}; - -/** @internal */ -export const Erc1155TokenBalance$outboundSchema: z.ZodType< - Erc1155TokenBalance$Outbound, - z.ZodTypeDef, - Erc1155TokenBalance -> = z.object({ - address: z.string(), - ercType: Erc1155TokenBalanceErcType$outboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc1155TokenMetadata$outboundSchema, - chainId: z.string(), - balance: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155TokenBalance$ { - /** @deprecated use `Erc1155TokenBalance$inboundSchema` instead. */ - export const inboundSchema = Erc1155TokenBalance$inboundSchema; - /** @deprecated use `Erc1155TokenBalance$outboundSchema` instead. */ - export const outboundSchema = Erc1155TokenBalance$outboundSchema; - /** @deprecated use `Erc1155TokenBalance$Outbound` instead. */ - export type Outbound = Erc1155TokenBalance$Outbound; -} - -export function erc1155TokenBalanceToJSON( - erc1155TokenBalance: Erc1155TokenBalance, -): string { - return JSON.stringify( - Erc1155TokenBalance$outboundSchema.parse(erc1155TokenBalance), - ); -} - -export function erc1155TokenBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155TokenBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155TokenBalance' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155tokenmetadata.ts b/data/src/models/components/erc1155tokenmetadata.ts deleted file mode 100644 index f943df23..00000000 --- a/data/src/models/components/erc1155tokenmetadata.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NftTokenMetadataStatus, - NftTokenMetadataStatus$inboundSchema, - NftTokenMetadataStatus$outboundSchema, -} from "./nfttokenmetadatastatus.js"; - -export type Erc1155TokenMetadata = { - /** - * The metadata indexing status of the nft. - */ - indexStatus: NftTokenMetadataStatus; - metadataLastUpdatedTimestamp?: number | undefined; - name?: string | undefined; - symbol?: string | undefined; - imageUri?: string | undefined; - description?: string | undefined; - animationUri?: string | undefined; - externalUrl?: string | undefined; - background?: string | undefined; - decimals?: number | undefined; - properties?: string | undefined; -}; - -/** @internal */ -export const Erc1155TokenMetadata$inboundSchema: z.ZodType< - Erc1155TokenMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - indexStatus: NftTokenMetadataStatus$inboundSchema, - metadataLastUpdatedTimestamp: z.number().optional(), - name: z.string().optional(), - symbol: z.string().optional(), - imageUri: z.string().optional(), - description: z.string().optional(), - animationUri: z.string().optional(), - externalUrl: z.string().optional(), - background: z.string().optional(), - decimals: z.number().optional(), - properties: z.string().optional(), -}); - -/** @internal */ -export type Erc1155TokenMetadata$Outbound = { - indexStatus: string; - metadataLastUpdatedTimestamp?: number | undefined; - name?: string | undefined; - symbol?: string | undefined; - imageUri?: string | undefined; - description?: string | undefined; - animationUri?: string | undefined; - externalUrl?: string | undefined; - background?: string | undefined; - decimals?: number | undefined; - properties?: string | undefined; -}; - -/** @internal */ -export const Erc1155TokenMetadata$outboundSchema: z.ZodType< - Erc1155TokenMetadata$Outbound, - z.ZodTypeDef, - Erc1155TokenMetadata -> = z.object({ - indexStatus: NftTokenMetadataStatus$outboundSchema, - metadataLastUpdatedTimestamp: z.number().optional(), - name: z.string().optional(), - symbol: z.string().optional(), - imageUri: z.string().optional(), - description: z.string().optional(), - animationUri: z.string().optional(), - externalUrl: z.string().optional(), - background: z.string().optional(), - decimals: z.number().optional(), - properties: 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 Erc1155TokenMetadata$ { - /** @deprecated use `Erc1155TokenMetadata$inboundSchema` instead. */ - export const inboundSchema = Erc1155TokenMetadata$inboundSchema; - /** @deprecated use `Erc1155TokenMetadata$outboundSchema` instead. */ - export const outboundSchema = Erc1155TokenMetadata$outboundSchema; - /** @deprecated use `Erc1155TokenMetadata$Outbound` instead. */ - export type Outbound = Erc1155TokenMetadata$Outbound; -} - -export function erc1155TokenMetadataToJSON( - erc1155TokenMetadata: Erc1155TokenMetadata, -): string { - return JSON.stringify( - Erc1155TokenMetadata$outboundSchema.parse(erc1155TokenMetadata), - ); -} - -export function erc1155TokenMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155TokenMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155TokenMetadata' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155transfer.ts b/data/src/models/components/erc1155transfer.ts deleted file mode 100644 index 172a5ac8..00000000 --- a/data/src/models/components/erc1155transfer.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Token, - Erc1155Token$inboundSchema, - Erc1155Token$Outbound, - Erc1155Token$outboundSchema, -} from "./erc1155token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc1155Transfer = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The transaction hash identifier. - */ - txHash: string; - from: RichAddress; - to: RichAddress; - logIndex: number; - value: string; - erc1155Token: Erc1155Token; -}; - -/** @internal */ -export const Erc1155Transfer$inboundSchema: z.ZodType< - Erc1155Transfer, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - value: z.string(), - erc1155Token: Erc1155Token$inboundSchema, -}); - -/** @internal */ -export type Erc1155Transfer$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txHash: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - value: string; - erc1155Token: Erc1155Token$Outbound; -}; - -/** @internal */ -export const Erc1155Transfer$outboundSchema: z.ZodType< - Erc1155Transfer$Outbound, - z.ZodTypeDef, - Erc1155Transfer -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - value: z.string(), - erc1155Token: Erc1155Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155Transfer$ { - /** @deprecated use `Erc1155Transfer$inboundSchema` instead. */ - export const inboundSchema = Erc1155Transfer$inboundSchema; - /** @deprecated use `Erc1155Transfer$outboundSchema` instead. */ - export const outboundSchema = Erc1155Transfer$outboundSchema; - /** @deprecated use `Erc1155Transfer$Outbound` instead. */ - export type Outbound = Erc1155Transfer$Outbound; -} - -export function erc1155TransferToJSON( - erc1155Transfer: Erc1155Transfer, -): string { - return JSON.stringify(Erc1155Transfer$outboundSchema.parse(erc1155Transfer)); -} - -export function erc1155TransferFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155Transfer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155Transfer' from JSON`, - ); -} diff --git a/data/src/models/components/erc1155transferdetails.ts b/data/src/models/components/erc1155transferdetails.ts deleted file mode 100644 index fa793185..00000000 --- a/data/src/models/components/erc1155transferdetails.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Token, - Erc1155Token$inboundSchema, - Erc1155Token$Outbound, - Erc1155Token$outboundSchema, -} from "./erc1155token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc1155TransferDetails = { - from: RichAddress; - to: RichAddress; - logIndex: number; - value: string; - erc1155Token: Erc1155Token; -}; - -/** @internal */ -export const Erc1155TransferDetails$inboundSchema: z.ZodType< - Erc1155TransferDetails, - z.ZodTypeDef, - unknown -> = z.object({ - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - value: z.string(), - erc1155Token: Erc1155Token$inboundSchema, -}); - -/** @internal */ -export type Erc1155TransferDetails$Outbound = { - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - value: string; - erc1155Token: Erc1155Token$Outbound; -}; - -/** @internal */ -export const Erc1155TransferDetails$outboundSchema: z.ZodType< - Erc1155TransferDetails$Outbound, - z.ZodTypeDef, - Erc1155TransferDetails -> = z.object({ - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - value: z.string(), - erc1155Token: Erc1155Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc1155TransferDetails$ { - /** @deprecated use `Erc1155TransferDetails$inboundSchema` instead. */ - export const inboundSchema = Erc1155TransferDetails$inboundSchema; - /** @deprecated use `Erc1155TransferDetails$outboundSchema` instead. */ - export const outboundSchema = Erc1155TransferDetails$outboundSchema; - /** @deprecated use `Erc1155TransferDetails$Outbound` instead. */ - export type Outbound = Erc1155TransferDetails$Outbound; -} - -export function erc1155TransferDetailsToJSON( - erc1155TransferDetails: Erc1155TransferDetails, -): string { - return JSON.stringify( - Erc1155TransferDetails$outboundSchema.parse(erc1155TransferDetails), - ); -} - -export function erc1155TransferDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc1155TransferDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc1155TransferDetails' from JSON`, - ); -} diff --git a/data/src/models/components/erc20contract.ts b/data/src/models/components/erc20contract.ts deleted file mode 100644 index f805da51..00000000 --- a/data/src/models/components/erc20contract.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ContractDeploymentDetails, - ContractDeploymentDetails$inboundSchema, - ContractDeploymentDetails$Outbound, - ContractDeploymentDetails$outboundSchema, -} from "./contractdeploymentdetails.js"; -import { - ImageAsset, - ImageAsset$inboundSchema, - ImageAsset$Outbound, - ImageAsset$outboundSchema, -} from "./imageasset.js"; -import { - PricingProviders, - PricingProviders$inboundSchema, - PricingProviders$Outbound, - PricingProviders$outboundSchema, -} from "./pricingproviders.js"; -import { - ResourceLink, - ResourceLink$inboundSchema, - ResourceLink$Outbound, - ResourceLink$outboundSchema, -} from "./resourcelink.js"; - -export const Erc20ContractErcType = { - Erc20: "ERC-20", -} as const; -export type Erc20ContractErcType = ClosedEnum; - -export type Erc20Contract = { - /** - * The contract name. - */ - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset | undefined; - bannerAsset?: ImageAsset | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - deploymentDetails?: ContractDeploymentDetails | undefined; - ercType: Erc20ContractErcType; - /** - * The contract symbol. - */ - symbol?: string | undefined; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - pricingProviders?: PricingProviders | undefined; -}; - -/** @internal */ -export const Erc20ContractErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc20ContractErcType -> = z.nativeEnum(Erc20ContractErcType); - -/** @internal */ -export const Erc20ContractErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc20ContractErcType -> = Erc20ContractErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20ContractErcType$ { - /** @deprecated use `Erc20ContractErcType$inboundSchema` instead. */ - export const inboundSchema = Erc20ContractErcType$inboundSchema; - /** @deprecated use `Erc20ContractErcType$outboundSchema` instead. */ - export const outboundSchema = Erc20ContractErcType$outboundSchema; -} - -/** @internal */ -export const Erc20Contract$inboundSchema: z.ZodType< - Erc20Contract, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$inboundSchema.optional(), - bannerAsset: ImageAsset$inboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$inboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$inboundSchema.optional(), - ercType: Erc20ContractErcType$inboundSchema, - symbol: z.string().optional(), - decimals: z.number(), - pricingProviders: PricingProviders$inboundSchema.optional(), -}); - -/** @internal */ -export type Erc20Contract$Outbound = { - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset$Outbound | undefined; - bannerAsset?: ImageAsset$Outbound | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - address: string; - deploymentDetails?: ContractDeploymentDetails$Outbound | undefined; - ercType: string; - symbol?: string | undefined; - decimals: number; - pricingProviders?: PricingProviders$Outbound | undefined; -}; - -/** @internal */ -export const Erc20Contract$outboundSchema: z.ZodType< - Erc20Contract$Outbound, - z.ZodTypeDef, - Erc20Contract -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$outboundSchema.optional(), - bannerAsset: ImageAsset$outboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$outboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$outboundSchema.optional(), - ercType: Erc20ContractErcType$outboundSchema, - symbol: z.string().optional(), - decimals: z.number(), - pricingProviders: PricingProviders$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20Contract$ { - /** @deprecated use `Erc20Contract$inboundSchema` instead. */ - export const inboundSchema = Erc20Contract$inboundSchema; - /** @deprecated use `Erc20Contract$outboundSchema` instead. */ - export const outboundSchema = Erc20Contract$outboundSchema; - /** @deprecated use `Erc20Contract$Outbound` instead. */ - export type Outbound = Erc20Contract$Outbound; -} - -export function erc20ContractToJSON(erc20Contract: Erc20Contract): string { - return JSON.stringify(Erc20Contract$outboundSchema.parse(erc20Contract)); -} - -export function erc20ContractFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc20Contract$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc20Contract' from JSON`, - ); -} diff --git a/data/src/models/components/erc20token.ts b/data/src/models/components/erc20token.ts deleted file mode 100644 index 5f3d91a8..00000000 --- a/data/src/models/components/erc20token.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; - -export const Erc20TokenErcType = { - Erc20: "ERC-20", -} as const; -export type Erc20TokenErcType = ClosedEnum; - -export type Erc20Token = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - ercType: Erc20TokenErcType; - /** - * The token price, if available. - */ - price?: Money | undefined; -}; - -/** @internal */ -export const Erc20TokenErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc20TokenErcType -> = z.nativeEnum(Erc20TokenErcType); - -/** @internal */ -export const Erc20TokenErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc20TokenErcType -> = Erc20TokenErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20TokenErcType$ { - /** @deprecated use `Erc20TokenErcType$inboundSchema` instead. */ - export const inboundSchema = Erc20TokenErcType$inboundSchema; - /** @deprecated use `Erc20TokenErcType$outboundSchema` instead. */ - export const outboundSchema = Erc20TokenErcType$outboundSchema; -} - -/** @internal */ -export const Erc20Token$inboundSchema: z.ZodType< - Erc20Token, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: Erc20TokenErcType$inboundSchema, - price: Money$inboundSchema.optional(), -}); - -/** @internal */ -export type Erc20Token$Outbound = { - address: string; - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - ercType: string; - price?: Money$Outbound | undefined; -}; - -/** @internal */ -export const Erc20Token$outboundSchema: z.ZodType< - Erc20Token$Outbound, - z.ZodTypeDef, - Erc20Token -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: Erc20TokenErcType$outboundSchema, - price: Money$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20Token$ { - /** @deprecated use `Erc20Token$inboundSchema` instead. */ - export const inboundSchema = Erc20Token$inboundSchema; - /** @deprecated use `Erc20Token$outboundSchema` instead. */ - export const outboundSchema = Erc20Token$outboundSchema; - /** @deprecated use `Erc20Token$Outbound` instead. */ - export type Outbound = Erc20Token$Outbound; -} - -export function erc20TokenToJSON(erc20Token: Erc20Token): string { - return JSON.stringify(Erc20Token$outboundSchema.parse(erc20Token)); -} - -export function erc20TokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc20Token$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc20Token' from JSON`, - ); -} diff --git a/data/src/models/components/erc20tokenbalance.ts b/data/src/models/components/erc20tokenbalance.ts deleted file mode 100644 index 1d12448c..00000000 --- a/data/src/models/components/erc20tokenbalance.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; - -export const Erc20TokenBalanceErcType = { - Erc20: "ERC-20", -} as const; -export type Erc20TokenBalanceErcType = ClosedEnum< - typeof Erc20TokenBalanceErcType ->; - -/** - * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. - */ -export const TokenReputation = { - Malicious: "Malicious", - Benign: "Benign", -} as const; -/** - * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. - */ -export type TokenReputation = ClosedEnum; - -export type Erc20TokenBalance = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - ercType: Erc20TokenBalanceErcType; - /** - * The token price, if available. - */ - price?: Money | undefined; - /** - * The evm chain id. - */ - chainId: string; - /** - * The address balance for the token, in units specified by the `decimals` value for the contract. - */ - balance: string; - /** - * The monetary value of the balance, if a price is available for the token. - */ - balanceValue?: Money | undefined; - /** - * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown. - */ - tokenReputation: TokenReputation | null; -}; - -/** @internal */ -export const Erc20TokenBalanceErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc20TokenBalanceErcType -> = z.nativeEnum(Erc20TokenBalanceErcType); - -/** @internal */ -export const Erc20TokenBalanceErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc20TokenBalanceErcType -> = Erc20TokenBalanceErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20TokenBalanceErcType$ { - /** @deprecated use `Erc20TokenBalanceErcType$inboundSchema` instead. */ - export const inboundSchema = Erc20TokenBalanceErcType$inboundSchema; - /** @deprecated use `Erc20TokenBalanceErcType$outboundSchema` instead. */ - export const outboundSchema = Erc20TokenBalanceErcType$outboundSchema; -} - -/** @internal */ -export const TokenReputation$inboundSchema: z.ZodNativeEnum< - typeof TokenReputation -> = z.nativeEnum(TokenReputation); - -/** @internal */ -export const TokenReputation$outboundSchema: z.ZodNativeEnum< - typeof TokenReputation -> = TokenReputation$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TokenReputation$ { - /** @deprecated use `TokenReputation$inboundSchema` instead. */ - export const inboundSchema = TokenReputation$inboundSchema; - /** @deprecated use `TokenReputation$outboundSchema` instead. */ - export const outboundSchema = TokenReputation$outboundSchema; -} - -/** @internal */ -export const Erc20TokenBalance$inboundSchema: z.ZodType< - Erc20TokenBalance, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: Erc20TokenBalanceErcType$inboundSchema, - price: Money$inboundSchema.optional(), - chainId: z.string(), - balance: z.string(), - balanceValue: Money$inboundSchema.optional(), - tokenReputation: z.nullable(TokenReputation$inboundSchema), -}); - -/** @internal */ -export type Erc20TokenBalance$Outbound = { - address: string; - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - ercType: string; - price?: Money$Outbound | undefined; - chainId: string; - balance: string; - balanceValue?: Money$Outbound | undefined; - tokenReputation: string | null; -}; - -/** @internal */ -export const Erc20TokenBalance$outboundSchema: z.ZodType< - Erc20TokenBalance$Outbound, - z.ZodTypeDef, - Erc20TokenBalance -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: Erc20TokenBalanceErcType$outboundSchema, - price: Money$outboundSchema.optional(), - chainId: z.string(), - balance: z.string(), - balanceValue: Money$outboundSchema.optional(), - tokenReputation: z.nullable(TokenReputation$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20TokenBalance$ { - /** @deprecated use `Erc20TokenBalance$inboundSchema` instead. */ - export const inboundSchema = Erc20TokenBalance$inboundSchema; - /** @deprecated use `Erc20TokenBalance$outboundSchema` instead. */ - export const outboundSchema = Erc20TokenBalance$outboundSchema; - /** @deprecated use `Erc20TokenBalance$Outbound` instead. */ - export type Outbound = Erc20TokenBalance$Outbound; -} - -export function erc20TokenBalanceToJSON( - erc20TokenBalance: Erc20TokenBalance, -): string { - return JSON.stringify( - Erc20TokenBalance$outboundSchema.parse(erc20TokenBalance), - ); -} - -export function erc20TokenBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc20TokenBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc20TokenBalance' from JSON`, - ); -} diff --git a/data/src/models/components/erc20transfer.ts b/data/src/models/components/erc20transfer.ts deleted file mode 100644 index 985a7e35..00000000 --- a/data/src/models/components/erc20transfer.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc20Token, - Erc20Token$inboundSchema, - Erc20Token$Outbound, - Erc20Token$outboundSchema, -} from "./erc20token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc20Transfer = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The transaction hash identifier. - */ - txHash: string; - from: RichAddress; - to: RichAddress; - logIndex: number; - value: string; - erc20Token: Erc20Token; -}; - -/** @internal */ -export const Erc20Transfer$inboundSchema: z.ZodType< - Erc20Transfer, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - value: z.string(), - erc20Token: Erc20Token$inboundSchema, -}); - -/** @internal */ -export type Erc20Transfer$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txHash: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - value: string; - erc20Token: Erc20Token$Outbound; -}; - -/** @internal */ -export const Erc20Transfer$outboundSchema: z.ZodType< - Erc20Transfer$Outbound, - z.ZodTypeDef, - Erc20Transfer -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - value: z.string(), - erc20Token: Erc20Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20Transfer$ { - /** @deprecated use `Erc20Transfer$inboundSchema` instead. */ - export const inboundSchema = Erc20Transfer$inboundSchema; - /** @deprecated use `Erc20Transfer$outboundSchema` instead. */ - export const outboundSchema = Erc20Transfer$outboundSchema; - /** @deprecated use `Erc20Transfer$Outbound` instead. */ - export type Outbound = Erc20Transfer$Outbound; -} - -export function erc20TransferToJSON(erc20Transfer: Erc20Transfer): string { - return JSON.stringify(Erc20Transfer$outboundSchema.parse(erc20Transfer)); -} - -export function erc20TransferFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc20Transfer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc20Transfer' from JSON`, - ); -} diff --git a/data/src/models/components/erc20transferdetails.ts b/data/src/models/components/erc20transferdetails.ts deleted file mode 100644 index 75227cf3..00000000 --- a/data/src/models/components/erc20transferdetails.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc20Token, - Erc20Token$inboundSchema, - Erc20Token$Outbound, - Erc20Token$outboundSchema, -} from "./erc20token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc20TransferDetails = { - from: RichAddress; - to: RichAddress; - logIndex: number; - value: string; - erc20Token: Erc20Token; -}; - -/** @internal */ -export const Erc20TransferDetails$inboundSchema: z.ZodType< - Erc20TransferDetails, - z.ZodTypeDef, - unknown -> = z.object({ - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - value: z.string(), - erc20Token: Erc20Token$inboundSchema, -}); - -/** @internal */ -export type Erc20TransferDetails$Outbound = { - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - value: string; - erc20Token: Erc20Token$Outbound; -}; - -/** @internal */ -export const Erc20TransferDetails$outboundSchema: z.ZodType< - Erc20TransferDetails$Outbound, - z.ZodTypeDef, - Erc20TransferDetails -> = z.object({ - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - value: z.string(), - erc20Token: Erc20Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc20TransferDetails$ { - /** @deprecated use `Erc20TransferDetails$inboundSchema` instead. */ - export const inboundSchema = Erc20TransferDetails$inboundSchema; - /** @deprecated use `Erc20TransferDetails$outboundSchema` instead. */ - export const outboundSchema = Erc20TransferDetails$outboundSchema; - /** @deprecated use `Erc20TransferDetails$Outbound` instead. */ - export type Outbound = Erc20TransferDetails$Outbound; -} - -export function erc20TransferDetailsToJSON( - erc20TransferDetails: Erc20TransferDetails, -): string { - return JSON.stringify( - Erc20TransferDetails$outboundSchema.parse(erc20TransferDetails), - ); -} - -export function erc20TransferDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc20TransferDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc20TransferDetails' from JSON`, - ); -} diff --git a/data/src/models/components/erc721contract.ts b/data/src/models/components/erc721contract.ts deleted file mode 100644 index 8cf79dbc..00000000 --- a/data/src/models/components/erc721contract.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ContractDeploymentDetails, - ContractDeploymentDetails$inboundSchema, - ContractDeploymentDetails$Outbound, - ContractDeploymentDetails$outboundSchema, -} from "./contractdeploymentdetails.js"; -import { - ImageAsset, - ImageAsset$inboundSchema, - ImageAsset$Outbound, - ImageAsset$outboundSchema, -} from "./imageasset.js"; -import { - ResourceLink, - ResourceLink$inboundSchema, - ResourceLink$Outbound, - ResourceLink$outboundSchema, -} from "./resourcelink.js"; - -export const Erc721ContractErcType = { - Erc721: "ERC-721", -} as const; -export type Erc721ContractErcType = ClosedEnum; - -export type Erc721Contract = { - /** - * The contract name. - */ - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset | undefined; - bannerAsset?: ImageAsset | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - deploymentDetails?: ContractDeploymentDetails | undefined; - ercType: Erc721ContractErcType; - /** - * The contract symbol. - */ - symbol?: string | undefined; -}; - -/** @internal */ -export const Erc721ContractErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc721ContractErcType -> = z.nativeEnum(Erc721ContractErcType); - -/** @internal */ -export const Erc721ContractErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc721ContractErcType -> = Erc721ContractErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721ContractErcType$ { - /** @deprecated use `Erc721ContractErcType$inboundSchema` instead. */ - export const inboundSchema = Erc721ContractErcType$inboundSchema; - /** @deprecated use `Erc721ContractErcType$outboundSchema` instead. */ - export const outboundSchema = Erc721ContractErcType$outboundSchema; -} - -/** @internal */ -export const Erc721Contract$inboundSchema: z.ZodType< - Erc721Contract, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$inboundSchema.optional(), - bannerAsset: ImageAsset$inboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$inboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$inboundSchema.optional(), - ercType: Erc721ContractErcType$inboundSchema, - symbol: z.string().optional(), -}); - -/** @internal */ -export type Erc721Contract$Outbound = { - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset$Outbound | undefined; - bannerAsset?: ImageAsset$Outbound | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - address: string; - deploymentDetails?: ContractDeploymentDetails$Outbound | undefined; - ercType: string; - symbol?: string | undefined; -}; - -/** @internal */ -export const Erc721Contract$outboundSchema: z.ZodType< - Erc721Contract$Outbound, - z.ZodTypeDef, - Erc721Contract -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$outboundSchema.optional(), - bannerAsset: ImageAsset$outboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$outboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$outboundSchema.optional(), - ercType: Erc721ContractErcType$outboundSchema, - symbol: 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 Erc721Contract$ { - /** @deprecated use `Erc721Contract$inboundSchema` instead. */ - export const inboundSchema = Erc721Contract$inboundSchema; - /** @deprecated use `Erc721Contract$outboundSchema` instead. */ - export const outboundSchema = Erc721Contract$outboundSchema; - /** @deprecated use `Erc721Contract$Outbound` instead. */ - export type Outbound = Erc721Contract$Outbound; -} - -export function erc721ContractToJSON(erc721Contract: Erc721Contract): string { - return JSON.stringify(Erc721Contract$outboundSchema.parse(erc721Contract)); -} - -export function erc721ContractFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721Contract$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721Contract' from JSON`, - ); -} diff --git a/data/src/models/components/erc721token.ts b/data/src/models/components/erc721token.ts deleted file mode 100644 index a6d00aba..00000000 --- a/data/src/models/components/erc721token.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721TokenMetadata, - Erc721TokenMetadata$inboundSchema, - Erc721TokenMetadata$Outbound, - Erc721TokenMetadata$outboundSchema, -} from "./erc721tokenmetadata.js"; - -export const Erc721TokenErcType = { - Erc721: "ERC-721", -} as const; -export type Erc721TokenErcType = ClosedEnum; - -export type Erc721Token = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - ercType: Erc721TokenErcType; - tokenId: string; - tokenUri: string; - metadata: Erc721TokenMetadata; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - ownerAddress?: string | undefined; -}; - -/** @internal */ -export const Erc721TokenErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc721TokenErcType -> = z.nativeEnum(Erc721TokenErcType); - -/** @internal */ -export const Erc721TokenErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc721TokenErcType -> = Erc721TokenErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721TokenErcType$ { - /** @deprecated use `Erc721TokenErcType$inboundSchema` instead. */ - export const inboundSchema = Erc721TokenErcType$inboundSchema; - /** @deprecated use `Erc721TokenErcType$outboundSchema` instead. */ - export const outboundSchema = Erc721TokenErcType$outboundSchema; -} - -/** @internal */ -export const Erc721Token$inboundSchema: z.ZodType< - Erc721Token, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - ercType: Erc721TokenErcType$inboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc721TokenMetadata$inboundSchema, - ownerAddress: z.string().optional(), -}); - -/** @internal */ -export type Erc721Token$Outbound = { - address: string; - name: string; - symbol: string; - ercType: string; - tokenId: string; - tokenUri: string; - metadata: Erc721TokenMetadata$Outbound; - ownerAddress?: string | undefined; -}; - -/** @internal */ -export const Erc721Token$outboundSchema: z.ZodType< - Erc721Token$Outbound, - z.ZodTypeDef, - Erc721Token -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - ercType: Erc721TokenErcType$outboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc721TokenMetadata$outboundSchema, - ownerAddress: 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 Erc721Token$ { - /** @deprecated use `Erc721Token$inboundSchema` instead. */ - export const inboundSchema = Erc721Token$inboundSchema; - /** @deprecated use `Erc721Token$outboundSchema` instead. */ - export const outboundSchema = Erc721Token$outboundSchema; - /** @deprecated use `Erc721Token$Outbound` instead. */ - export type Outbound = Erc721Token$Outbound; -} - -export function erc721TokenToJSON(erc721Token: Erc721Token): string { - return JSON.stringify(Erc721Token$outboundSchema.parse(erc721Token)); -} - -export function erc721TokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721Token$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721Token' from JSON`, - ); -} diff --git a/data/src/models/components/erc721tokenbalance.ts b/data/src/models/components/erc721tokenbalance.ts deleted file mode 100644 index 690f5825..00000000 --- a/data/src/models/components/erc721tokenbalance.ts +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721TokenMetadata, - Erc721TokenMetadata$inboundSchema, - Erc721TokenMetadata$Outbound, - Erc721TokenMetadata$outboundSchema, -} from "./erc721tokenmetadata.js"; - -export const Erc721TokenBalanceErcType = { - Erc721: "ERC-721", -} as const; -export type Erc721TokenBalanceErcType = ClosedEnum< - typeof Erc721TokenBalanceErcType ->; - -export type Erc721TokenBalance = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - ercType: Erc721TokenBalanceErcType; - tokenId: string; - tokenUri: string; - metadata: Erc721TokenMetadata; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - ownerAddress?: string | undefined; - /** - * The evm chain id. - */ - chainId: string; -}; - -/** @internal */ -export const Erc721TokenBalanceErcType$inboundSchema: z.ZodNativeEnum< - typeof Erc721TokenBalanceErcType -> = z.nativeEnum(Erc721TokenBalanceErcType); - -/** @internal */ -export const Erc721TokenBalanceErcType$outboundSchema: z.ZodNativeEnum< - typeof Erc721TokenBalanceErcType -> = Erc721TokenBalanceErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721TokenBalanceErcType$ { - /** @deprecated use `Erc721TokenBalanceErcType$inboundSchema` instead. */ - export const inboundSchema = Erc721TokenBalanceErcType$inboundSchema; - /** @deprecated use `Erc721TokenBalanceErcType$outboundSchema` instead. */ - export const outboundSchema = Erc721TokenBalanceErcType$outboundSchema; -} - -/** @internal */ -export const Erc721TokenBalance$inboundSchema: z.ZodType< - Erc721TokenBalance, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - ercType: Erc721TokenBalanceErcType$inboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc721TokenMetadata$inboundSchema, - ownerAddress: z.string().optional(), - chainId: z.string(), -}); - -/** @internal */ -export type Erc721TokenBalance$Outbound = { - address: string; - name: string; - symbol: string; - ercType: string; - tokenId: string; - tokenUri: string; - metadata: Erc721TokenMetadata$Outbound; - ownerAddress?: string | undefined; - chainId: string; -}; - -/** @internal */ -export const Erc721TokenBalance$outboundSchema: z.ZodType< - Erc721TokenBalance$Outbound, - z.ZodTypeDef, - Erc721TokenBalance -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - ercType: Erc721TokenBalanceErcType$outboundSchema, - tokenId: z.string(), - tokenUri: z.string(), - metadata: Erc721TokenMetadata$outboundSchema, - ownerAddress: z.string().optional(), - chainId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721TokenBalance$ { - /** @deprecated use `Erc721TokenBalance$inboundSchema` instead. */ - export const inboundSchema = Erc721TokenBalance$inboundSchema; - /** @deprecated use `Erc721TokenBalance$outboundSchema` instead. */ - export const outboundSchema = Erc721TokenBalance$outboundSchema; - /** @deprecated use `Erc721TokenBalance$Outbound` instead. */ - export type Outbound = Erc721TokenBalance$Outbound; -} - -export function erc721TokenBalanceToJSON( - erc721TokenBalance: Erc721TokenBalance, -): string { - return JSON.stringify( - Erc721TokenBalance$outboundSchema.parse(erc721TokenBalance), - ); -} - -export function erc721TokenBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721TokenBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721TokenBalance' from JSON`, - ); -} diff --git a/data/src/models/components/erc721tokenmetadata.ts b/data/src/models/components/erc721tokenmetadata.ts deleted file mode 100644 index efe96c82..00000000 --- a/data/src/models/components/erc721tokenmetadata.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NftTokenMetadataStatus, - NftTokenMetadataStatus$inboundSchema, - NftTokenMetadataStatus$outboundSchema, -} from "./nfttokenmetadatastatus.js"; - -export type Erc721TokenMetadata = { - /** - * The metadata indexing status of the nft. - */ - indexStatus: NftTokenMetadataStatus; - metadataLastUpdatedTimestamp?: number | undefined; - name?: string | undefined; - symbol?: string | undefined; - imageUri?: string | undefined; - description?: string | undefined; - animationUri?: string | undefined; - externalUrl?: string | undefined; - background?: string | undefined; - attributes?: string | undefined; -}; - -/** @internal */ -export const Erc721TokenMetadata$inboundSchema: z.ZodType< - Erc721TokenMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - indexStatus: NftTokenMetadataStatus$inboundSchema, - metadataLastUpdatedTimestamp: z.number().optional(), - name: z.string().optional(), - symbol: z.string().optional(), - imageUri: z.string().optional(), - description: z.string().optional(), - animationUri: z.string().optional(), - externalUrl: z.string().optional(), - background: z.string().optional(), - attributes: z.string().optional(), -}); - -/** @internal */ -export type Erc721TokenMetadata$Outbound = { - indexStatus: string; - metadataLastUpdatedTimestamp?: number | undefined; - name?: string | undefined; - symbol?: string | undefined; - imageUri?: string | undefined; - description?: string | undefined; - animationUri?: string | undefined; - externalUrl?: string | undefined; - background?: string | undefined; - attributes?: string | undefined; -}; - -/** @internal */ -export const Erc721TokenMetadata$outboundSchema: z.ZodType< - Erc721TokenMetadata$Outbound, - z.ZodTypeDef, - Erc721TokenMetadata -> = z.object({ - indexStatus: NftTokenMetadataStatus$outboundSchema, - metadataLastUpdatedTimestamp: z.number().optional(), - name: z.string().optional(), - symbol: z.string().optional(), - imageUri: z.string().optional(), - description: z.string().optional(), - animationUri: z.string().optional(), - externalUrl: z.string().optional(), - background: z.string().optional(), - attributes: 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 Erc721TokenMetadata$ { - /** @deprecated use `Erc721TokenMetadata$inboundSchema` instead. */ - export const inboundSchema = Erc721TokenMetadata$inboundSchema; - /** @deprecated use `Erc721TokenMetadata$outboundSchema` instead. */ - export const outboundSchema = Erc721TokenMetadata$outboundSchema; - /** @deprecated use `Erc721TokenMetadata$Outbound` instead. */ - export type Outbound = Erc721TokenMetadata$Outbound; -} - -export function erc721TokenMetadataToJSON( - erc721TokenMetadata: Erc721TokenMetadata, -): string { - return JSON.stringify( - Erc721TokenMetadata$outboundSchema.parse(erc721TokenMetadata), - ); -} - -export function erc721TokenMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721TokenMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721TokenMetadata' from JSON`, - ); -} diff --git a/data/src/models/components/erc721transfer.ts b/data/src/models/components/erc721transfer.ts deleted file mode 100644 index df85d5e9..00000000 --- a/data/src/models/components/erc721transfer.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721Token, - Erc721Token$inboundSchema, - Erc721Token$Outbound, - Erc721Token$outboundSchema, -} from "./erc721token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc721Transfer = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The transaction hash identifier. - */ - txHash: string; - from: RichAddress; - to: RichAddress; - logIndex: number; - erc721Token: Erc721Token; -}; - -/** @internal */ -export const Erc721Transfer$inboundSchema: z.ZodType< - Erc721Transfer, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - erc721Token: Erc721Token$inboundSchema, -}); - -/** @internal */ -export type Erc721Transfer$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txHash: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - erc721Token: Erc721Token$Outbound; -}; - -/** @internal */ -export const Erc721Transfer$outboundSchema: z.ZodType< - Erc721Transfer$Outbound, - z.ZodTypeDef, - Erc721Transfer -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - erc721Token: Erc721Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721Transfer$ { - /** @deprecated use `Erc721Transfer$inboundSchema` instead. */ - export const inboundSchema = Erc721Transfer$inboundSchema; - /** @deprecated use `Erc721Transfer$outboundSchema` instead. */ - export const outboundSchema = Erc721Transfer$outboundSchema; - /** @deprecated use `Erc721Transfer$Outbound` instead. */ - export type Outbound = Erc721Transfer$Outbound; -} - -export function erc721TransferToJSON(erc721Transfer: Erc721Transfer): string { - return JSON.stringify(Erc721Transfer$outboundSchema.parse(erc721Transfer)); -} - -export function erc721TransferFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721Transfer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721Transfer' from JSON`, - ); -} diff --git a/data/src/models/components/erc721transferdetails.ts b/data/src/models/components/erc721transferdetails.ts deleted file mode 100644 index 26481ae8..00000000 --- a/data/src/models/components/erc721transferdetails.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721Token, - Erc721Token$inboundSchema, - Erc721Token$Outbound, - Erc721Token$outboundSchema, -} from "./erc721token.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type Erc721TransferDetails = { - from: RichAddress; - to: RichAddress; - logIndex: number; - erc721Token: Erc721Token; -}; - -/** @internal */ -export const Erc721TransferDetails$inboundSchema: z.ZodType< - Erc721TransferDetails, - z.ZodTypeDef, - unknown -> = z.object({ - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - logIndex: z.number(), - erc721Token: Erc721Token$inboundSchema, -}); - -/** @internal */ -export type Erc721TransferDetails$Outbound = { - from: RichAddress$Outbound; - to: RichAddress$Outbound; - logIndex: number; - erc721Token: Erc721Token$Outbound; -}; - -/** @internal */ -export const Erc721TransferDetails$outboundSchema: z.ZodType< - Erc721TransferDetails$Outbound, - z.ZodTypeDef, - Erc721TransferDetails -> = z.object({ - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - logIndex: z.number(), - erc721Token: Erc721Token$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Erc721TransferDetails$ { - /** @deprecated use `Erc721TransferDetails$inboundSchema` instead. */ - export const inboundSchema = Erc721TransferDetails$inboundSchema; - /** @deprecated use `Erc721TransferDetails$outboundSchema` instead. */ - export const outboundSchema = Erc721TransferDetails$outboundSchema; - /** @deprecated use `Erc721TransferDetails$Outbound` instead. */ - export type Outbound = Erc721TransferDetails$Outbound; -} - -export function erc721TransferDetailsToJSON( - erc721TransferDetails: Erc721TransferDetails, -): string { - return JSON.stringify( - Erc721TransferDetails$outboundSchema.parse(erc721TransferDetails), - ); -} - -export function erc721TransferDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Erc721TransferDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Erc721TransferDetails' from JSON`, - ); -} diff --git a/data/src/models/components/evmblock.ts b/data/src/models/components/evmblock.ts deleted file mode 100644 index 150d223d..00000000 --- a/data/src/models/components/evmblock.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EvmBlock = { - /** - * The EVM chain ID on which the block was created. - */ - chainId: string; - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The number of evm transactions in the block. - */ - txCount: number; - /** - * The base gas fee for a transaction to be included in the block. - */ - baseFee: string; - /** - * The gas used for transactions in the block. - */ - gasUsed: string; - /** - * The total gas limit set for transactions in the block. - */ - gasLimit: string; - gasCost: string; - /** - * The hash of the parent block. - */ - parentHash: string; - /** - * The amount of fees spent/burned for transactions in the block. - */ - feesSpent: string; - /** - * The cumulative number of transactions for the chain including this block. - */ - cumulativeTransactions: string; -}; - -/** @internal */ -export const EvmBlock$inboundSchema: z.ZodType< - EvmBlock, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txCount: z.number(), - baseFee: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - gasCost: z.string(), - parentHash: z.string(), - feesSpent: z.string(), - cumulativeTransactions: z.string(), -}); - -/** @internal */ -export type EvmBlock$Outbound = { - chainId: string; - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txCount: number; - baseFee: string; - gasUsed: string; - gasLimit: string; - gasCost: string; - parentHash: string; - feesSpent: string; - cumulativeTransactions: string; -}; - -/** @internal */ -export const EvmBlock$outboundSchema: z.ZodType< - EvmBlock$Outbound, - z.ZodTypeDef, - EvmBlock -> = z.object({ - chainId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txCount: z.number(), - baseFee: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - gasCost: z.string(), - parentHash: z.string(), - feesSpent: z.string(), - cumulativeTransactions: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EvmBlock$ { - /** @deprecated use `EvmBlock$inboundSchema` instead. */ - export const inboundSchema = EvmBlock$inboundSchema; - /** @deprecated use `EvmBlock$outboundSchema` instead. */ - export const outboundSchema = EvmBlock$outboundSchema; - /** @deprecated use `EvmBlock$Outbound` instead. */ - export type Outbound = EvmBlock$Outbound; -} - -export function evmBlockToJSON(evmBlock: EvmBlock): string { - return JSON.stringify(EvmBlock$outboundSchema.parse(evmBlock)); -} - -export function evmBlockFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EvmBlock$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EvmBlock' from JSON`, - ); -} diff --git a/data/src/models/components/evminput.ts b/data/src/models/components/evminput.ts deleted file mode 100644 index fd35a01a..00000000 --- a/data/src/models/components/evminput.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - UtxoCredential, - UtxoCredential$inboundSchema, - UtxoCredential$Outbound, - UtxoCredential$outboundSchema, -} from "./utxocredential.js"; - -export type EVMInput = { - /** - * EVM address from which the asset is exported in ExportTx. - */ - fromAddress: string; - /** - * AssetAmount details for the asset being transferred. - */ - asset: AssetAmount; - /** - * Credentials that signed this transaction. - */ - credentials: Array; -}; - -/** @internal */ -export const EVMInput$inboundSchema: z.ZodType< - EVMInput, - z.ZodTypeDef, - unknown -> = z.object({ - fromAddress: z.string(), - asset: AssetAmount$inboundSchema, - credentials: z.array(UtxoCredential$inboundSchema), -}); - -/** @internal */ -export type EVMInput$Outbound = { - fromAddress: string; - asset: AssetAmount$Outbound; - credentials: Array; -}; - -/** @internal */ -export const EVMInput$outboundSchema: z.ZodType< - EVMInput$Outbound, - z.ZodTypeDef, - EVMInput -> = z.object({ - fromAddress: z.string(), - asset: AssetAmount$outboundSchema, - credentials: z.array(UtxoCredential$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMInput$ { - /** @deprecated use `EVMInput$inboundSchema` instead. */ - export const inboundSchema = EVMInput$inboundSchema; - /** @deprecated use `EVMInput$outboundSchema` instead. */ - export const outboundSchema = EVMInput$outboundSchema; - /** @deprecated use `EVMInput$Outbound` instead. */ - export type Outbound = EVMInput$Outbound; -} - -export function evmInputToJSON(evmInput: EVMInput): string { - return JSON.stringify(EVMInput$outboundSchema.parse(evmInput)); -} - -export function evmInputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EVMInput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EVMInput' from JSON`, - ); -} diff --git a/data/src/models/components/evmnetworkoptions.ts b/data/src/models/components/evmnetworkoptions.ts deleted file mode 100644 index 85e558ab..00000000 --- a/data/src/models/components/evmnetworkoptions.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type EvmNetworkOptions = { - addresses: Array; - includeChains: Array; -}; - -/** @internal */ -export const EvmNetworkOptions$inboundSchema: z.ZodType< - EvmNetworkOptions, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - includeChains: z.array(z.string()), -}); - -/** @internal */ -export type EvmNetworkOptions$Outbound = { - addresses: Array; - includeChains: Array; -}; - -/** @internal */ -export const EvmNetworkOptions$outboundSchema: z.ZodType< - EvmNetworkOptions$Outbound, - z.ZodTypeDef, - EvmNetworkOptions -> = z.object({ - addresses: z.array(z.string()), - includeChains: z.array(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EvmNetworkOptions$ { - /** @deprecated use `EvmNetworkOptions$inboundSchema` instead. */ - export const inboundSchema = EvmNetworkOptions$inboundSchema; - /** @deprecated use `EvmNetworkOptions$outboundSchema` instead. */ - export const outboundSchema = EvmNetworkOptions$outboundSchema; - /** @deprecated use `EvmNetworkOptions$Outbound` instead. */ - export type Outbound = EvmNetworkOptions$Outbound; -} - -export function evmNetworkOptionsToJSON( - evmNetworkOptions: EvmNetworkOptions, -): string { - return JSON.stringify( - EvmNetworkOptions$outboundSchema.parse(evmNetworkOptions), - ); -} - -export function evmNetworkOptionsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EvmNetworkOptions$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EvmNetworkOptions' from JSON`, - ); -} diff --git a/data/src/models/components/evmoperationtype.ts b/data/src/models/components/evmoperationtype.ts deleted file mode 100644 index ced8e58c..00000000 --- a/data/src/models/components/evmoperationtype.ts +++ /dev/null @@ -1,32 +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 EVMOperationType = { - TransactionExportEvm: "TRANSACTION_EXPORT_EVM", -} as const; -export type EVMOperationType = ClosedEnum; - -/** @internal */ -export const EVMOperationType$inboundSchema: z.ZodNativeEnum< - typeof EVMOperationType -> = z.nativeEnum(EVMOperationType); - -/** @internal */ -export const EVMOperationType$outboundSchema: z.ZodNativeEnum< - typeof EVMOperationType -> = EVMOperationType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMOperationType$ { - /** @deprecated use `EVMOperationType$inboundSchema` instead. */ - export const inboundSchema = EVMOperationType$inboundSchema; - /** @deprecated use `EVMOperationType$outboundSchema` instead. */ - export const outboundSchema = EVMOperationType$outboundSchema; -} diff --git a/data/src/models/components/evmoutput.ts b/data/src/models/components/evmoutput.ts deleted file mode 100644 index 46c7f6a6..00000000 --- a/data/src/models/components/evmoutput.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; - -export type EVMOutput = { - /** - * EVM address to which the asset is imported in ImportTx - */ - toAddress: string; - /** - * AssetAmount details for the asset being transferred. - */ - asset: AssetAmount; -}; - -/** @internal */ -export const EVMOutput$inboundSchema: z.ZodType< - EVMOutput, - z.ZodTypeDef, - unknown -> = z.object({ - toAddress: z.string(), - asset: AssetAmount$inboundSchema, -}); - -/** @internal */ -export type EVMOutput$Outbound = { - toAddress: string; - asset: AssetAmount$Outbound; -}; - -/** @internal */ -export const EVMOutput$outboundSchema: z.ZodType< - EVMOutput$Outbound, - z.ZodTypeDef, - EVMOutput -> = z.object({ - toAddress: z.string(), - asset: AssetAmount$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMOutput$ { - /** @deprecated use `EVMOutput$inboundSchema` instead. */ - export const inboundSchema = EVMOutput$inboundSchema; - /** @deprecated use `EVMOutput$outboundSchema` instead. */ - export const outboundSchema = EVMOutput$outboundSchema; - /** @deprecated use `EVMOutput$Outbound` instead. */ - export type Outbound = EVMOutput$Outbound; -} - -export function evmOutputToJSON(evmOutput: EVMOutput): string { - return JSON.stringify(EVMOutput$outboundSchema.parse(evmOutput)); -} - -export function evmOutputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EVMOutput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EVMOutput' from JSON`, - ); -} diff --git a/data/src/models/components/fullnativetransactiondetails.ts b/data/src/models/components/fullnativetransactiondetails.ts deleted file mode 100644 index 1ee03f75..00000000 --- a/data/src/models/components/fullnativetransactiondetails.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Method, - Method$inboundSchema, - Method$Outbound, - Method$outboundSchema, -} from "./method.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type FullNativeTransactionDetails = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The EVM chain ID on which the transaction occured. - */ - chainId: string; - /** - * The index at which the transaction occured in the block (0-indexed). - */ - blockIndex: number; - /** - * The transaction hash identifier. - */ - txHash: string; - /** - * The transaction status, which is either 0 (failed) or 1 (successful). - */ - txStatus: string; - /** - * The transaction type. - */ - txType: number; - /** - * The gas limit set for the transaction. - */ - gasLimit: string; - /** - * The amount of gas used. - */ - gasUsed: string; - /** - * The gas price denominated by the number of decimals of the native token. - */ - gasPrice: string; - /** - * The nonce used by the sender of the transaction. - */ - nonce: string; - from: RichAddress; - to: RichAddress; - method?: Method | undefined; - value: string; - /** - * The data sent for the transaction. - */ - input: string; - baseFeePerGas: string; - maxFeePerGas?: string | undefined; - maxPriorityFeePerGas?: string | undefined; -}; - -/** @internal */ -export const FullNativeTransactionDetails$inboundSchema: z.ZodType< - FullNativeTransactionDetails, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - chainId: z.string(), - blockIndex: z.number(), - txHash: z.string(), - txStatus: z.string(), - txType: z.number(), - gasLimit: z.string(), - gasUsed: z.string(), - gasPrice: z.string(), - nonce: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - method: Method$inboundSchema.optional(), - value: z.string(), - input: z.string(), - baseFeePerGas: z.string(), - maxFeePerGas: z.string().optional(), - maxPriorityFeePerGas: z.string().optional(), -}); - -/** @internal */ -export type FullNativeTransactionDetails$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - chainId: string; - blockIndex: number; - txHash: string; - txStatus: string; - txType: number; - gasLimit: string; - gasUsed: string; - gasPrice: string; - nonce: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - method?: Method$Outbound | undefined; - value: string; - input: string; - baseFeePerGas: string; - maxFeePerGas?: string | undefined; - maxPriorityFeePerGas?: string | undefined; -}; - -/** @internal */ -export const FullNativeTransactionDetails$outboundSchema: z.ZodType< - FullNativeTransactionDetails$Outbound, - z.ZodTypeDef, - FullNativeTransactionDetails -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - chainId: z.string(), - blockIndex: z.number(), - txHash: z.string(), - txStatus: z.string(), - txType: z.number(), - gasLimit: z.string(), - gasUsed: z.string(), - gasPrice: z.string(), - nonce: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - method: Method$outboundSchema.optional(), - value: z.string(), - input: z.string(), - baseFeePerGas: z.string(), - maxFeePerGas: z.string().optional(), - maxPriorityFeePerGas: 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 FullNativeTransactionDetails$ { - /** @deprecated use `FullNativeTransactionDetails$inboundSchema` instead. */ - export const inboundSchema = FullNativeTransactionDetails$inboundSchema; - /** @deprecated use `FullNativeTransactionDetails$outboundSchema` instead. */ - export const outboundSchema = FullNativeTransactionDetails$outboundSchema; - /** @deprecated use `FullNativeTransactionDetails$Outbound` instead. */ - export type Outbound = FullNativeTransactionDetails$Outbound; -} - -export function fullNativeTransactionDetailsToJSON( - fullNativeTransactionDetails: FullNativeTransactionDetails, -): string { - return JSON.stringify( - FullNativeTransactionDetails$outboundSchema.parse( - fullNativeTransactionDetails, - ), - ); -} - -export function fullNativeTransactionDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => FullNativeTransactionDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'FullNativeTransactionDetails' from JSON`, - ); -} diff --git a/data/src/models/components/getchainresponse.ts b/data/src/models/components/getchainresponse.ts deleted file mode 100644 index 986ea936..00000000 --- a/data/src/models/components/getchainresponse.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainStatus, - ChainStatus$inboundSchema, - ChainStatus$outboundSchema, -} from "./chainstatus.js"; -import { - NetworkToken, - NetworkToken$inboundSchema, - NetworkToken$Outbound, - NetworkToken$outboundSchema, -} from "./networktoken.js"; -import { - UtilityAddresses, - UtilityAddresses$inboundSchema, - UtilityAddresses$Outbound, - UtilityAddresses$outboundSchema, -} from "./utilityaddresses.js"; -import { - VmName, - VmName$inboundSchema, - VmName$outboundSchema, -} from "./vmname.js"; - -export const GetChainResponseEnabledFeature = { - NftIndexing: "nftIndexing", - Webhooks: "webhooks", - Teleporter: "teleporter", -} as const; -export type GetChainResponseEnabledFeature = ClosedEnum< - typeof GetChainResponseEnabledFeature ->; - -export type GetChainResponse = { - chainId: string; - /** - * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors. - */ - status: ChainStatus; - chainName: string; - description: string; - platformChainId?: string | undefined; - subnetId?: string | undefined; - vmId?: string | undefined; - vmName: VmName; - explorerUrl?: string | undefined; - rpcUrl: string; - wsUrl?: string | undefined; - isTestnet: boolean; - utilityAddresses?: UtilityAddresses | undefined; - networkToken: NetworkToken; - chainLogoUri?: string | undefined; - private?: boolean | undefined; - enabledFeatures?: Array | undefined; -}; - -/** @internal */ -export const GetChainResponseEnabledFeature$inboundSchema: z.ZodNativeEnum< - typeof GetChainResponseEnabledFeature -> = z.nativeEnum(GetChainResponseEnabledFeature); - -/** @internal */ -export const GetChainResponseEnabledFeature$outboundSchema: z.ZodNativeEnum< - typeof GetChainResponseEnabledFeature -> = GetChainResponseEnabledFeature$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChainResponseEnabledFeature$ { - /** @deprecated use `GetChainResponseEnabledFeature$inboundSchema` instead. */ - export const inboundSchema = GetChainResponseEnabledFeature$inboundSchema; - /** @deprecated use `GetChainResponseEnabledFeature$outboundSchema` instead. */ - export const outboundSchema = GetChainResponseEnabledFeature$outboundSchema; -} - -/** @internal */ -export const GetChainResponse$inboundSchema: z.ZodType< - GetChainResponse, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string(), - status: ChainStatus$inboundSchema, - chainName: z.string(), - description: z.string(), - platformChainId: z.string().optional(), - subnetId: z.string().optional(), - vmId: z.string().optional(), - vmName: VmName$inboundSchema, - explorerUrl: z.string().optional(), - rpcUrl: z.string(), - wsUrl: z.string().optional(), - isTestnet: z.boolean(), - utilityAddresses: UtilityAddresses$inboundSchema.optional(), - networkToken: NetworkToken$inboundSchema, - chainLogoUri: z.string().optional(), - private: z.boolean().optional(), - enabledFeatures: z.array(GetChainResponseEnabledFeature$inboundSchema) - .optional(), -}); - -/** @internal */ -export type GetChainResponse$Outbound = { - chainId: string; - status: string; - chainName: string; - description: string; - platformChainId?: string | undefined; - subnetId?: string | undefined; - vmId?: string | undefined; - vmName: string; - explorerUrl?: string | undefined; - rpcUrl: string; - wsUrl?: string | undefined; - isTestnet: boolean; - utilityAddresses?: UtilityAddresses$Outbound | undefined; - networkToken: NetworkToken$Outbound; - chainLogoUri?: string | undefined; - private?: boolean | undefined; - enabledFeatures?: Array | undefined; -}; - -/** @internal */ -export const GetChainResponse$outboundSchema: z.ZodType< - GetChainResponse$Outbound, - z.ZodTypeDef, - GetChainResponse -> = z.object({ - chainId: z.string(), - status: ChainStatus$outboundSchema, - chainName: z.string(), - description: z.string(), - platformChainId: z.string().optional(), - subnetId: z.string().optional(), - vmId: z.string().optional(), - vmName: VmName$outboundSchema, - explorerUrl: z.string().optional(), - rpcUrl: z.string(), - wsUrl: z.string().optional(), - isTestnet: z.boolean(), - utilityAddresses: UtilityAddresses$outboundSchema.optional(), - networkToken: NetworkToken$outboundSchema, - chainLogoUri: z.string().optional(), - private: z.boolean().optional(), - enabledFeatures: z.array(GetChainResponseEnabledFeature$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChainResponse$ { - /** @deprecated use `GetChainResponse$inboundSchema` instead. */ - export const inboundSchema = GetChainResponse$inboundSchema; - /** @deprecated use `GetChainResponse$outboundSchema` instead. */ - export const outboundSchema = GetChainResponse$outboundSchema; - /** @deprecated use `GetChainResponse$Outbound` instead. */ - export type Outbound = GetChainResponse$Outbound; -} - -export function getChainResponseToJSON( - getChainResponse: GetChainResponse, -): string { - return JSON.stringify( - GetChainResponse$outboundSchema.parse(getChainResponse), - ); -} - -export function getChainResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainResponse' from JSON`, - ); -} diff --git a/data/src/models/components/getevmblockresponse.ts b/data/src/models/components/getevmblockresponse.ts deleted file mode 100644 index 52348744..00000000 --- a/data/src/models/components/getevmblockresponse.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetEvmBlockResponse = { - /** - * The EVM chain ID on which the block was created. - */ - chainId: string; - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The number of evm transactions in the block. - */ - txCount: number; - /** - * The base gas fee for a transaction to be included in the block. - */ - baseFee: string; - /** - * The gas used for transactions in the block. - */ - gasUsed: string; - /** - * The total gas limit set for transactions in the block. - */ - gasLimit: string; - gasCost: string; - /** - * The hash of the parent block. - */ - parentHash: string; - /** - * The amount of fees spent/burned for transactions in the block. - */ - feesSpent: string; - /** - * The cumulative number of transactions for the chain including this block. - */ - cumulativeTransactions: string; -}; - -/** @internal */ -export const GetEvmBlockResponse$inboundSchema: z.ZodType< - GetEvmBlockResponse, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txCount: z.number(), - baseFee: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - gasCost: z.string(), - parentHash: z.string(), - feesSpent: z.string(), - cumulativeTransactions: z.string(), -}); - -/** @internal */ -export type GetEvmBlockResponse$Outbound = { - chainId: string; - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txCount: number; - baseFee: string; - gasUsed: string; - gasLimit: string; - gasCost: string; - parentHash: string; - feesSpent: string; - cumulativeTransactions: string; -}; - -/** @internal */ -export const GetEvmBlockResponse$outboundSchema: z.ZodType< - GetEvmBlockResponse$Outbound, - z.ZodTypeDef, - GetEvmBlockResponse -> = z.object({ - chainId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txCount: z.number(), - baseFee: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - gasCost: z.string(), - parentHash: z.string(), - feesSpent: z.string(), - cumulativeTransactions: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEvmBlockResponse$ { - /** @deprecated use `GetEvmBlockResponse$inboundSchema` instead. */ - export const inboundSchema = GetEvmBlockResponse$inboundSchema; - /** @deprecated use `GetEvmBlockResponse$outboundSchema` instead. */ - export const outboundSchema = GetEvmBlockResponse$outboundSchema; - /** @deprecated use `GetEvmBlockResponse$Outbound` instead. */ - export type Outbound = GetEvmBlockResponse$Outbound; -} - -export function getEvmBlockResponseToJSON( - getEvmBlockResponse: GetEvmBlockResponse, -): string { - return JSON.stringify( - GetEvmBlockResponse$outboundSchema.parse(getEvmBlockResponse), - ); -} - -export function getEvmBlockResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetEvmBlockResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmBlockResponse' from JSON`, - ); -} diff --git a/data/src/models/components/getnativebalanceresponse.ts b/data/src/models/components/getnativebalanceresponse.ts deleted file mode 100644 index 89273d03..00000000 --- a/data/src/models/components/getnativebalanceresponse.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NativeTokenBalance, - NativeTokenBalance$inboundSchema, - NativeTokenBalance$Outbound, - NativeTokenBalance$outboundSchema, -} from "./nativetokenbalance.js"; - -export type GetNativeBalanceResponse = { - /** - * The native token balance for the address. - */ - nativeTokenBalance: NativeTokenBalance; -}; - -/** @internal */ -export const GetNativeBalanceResponse$inboundSchema: z.ZodType< - GetNativeBalanceResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nativeTokenBalance: NativeTokenBalance$inboundSchema, -}); - -/** @internal */ -export type GetNativeBalanceResponse$Outbound = { - nativeTokenBalance: NativeTokenBalance$Outbound; -}; - -/** @internal */ -export const GetNativeBalanceResponse$outboundSchema: z.ZodType< - GetNativeBalanceResponse$Outbound, - z.ZodTypeDef, - GetNativeBalanceResponse -> = z.object({ - nativeTokenBalance: NativeTokenBalance$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNativeBalanceResponse$ { - /** @deprecated use `GetNativeBalanceResponse$inboundSchema` instead. */ - export const inboundSchema = GetNativeBalanceResponse$inboundSchema; - /** @deprecated use `GetNativeBalanceResponse$outboundSchema` instead. */ - export const outboundSchema = GetNativeBalanceResponse$outboundSchema; - /** @deprecated use `GetNativeBalanceResponse$Outbound` instead. */ - export type Outbound = GetNativeBalanceResponse$Outbound; -} - -export function getNativeBalanceResponseToJSON( - getNativeBalanceResponse: GetNativeBalanceResponse, -): string { - return JSON.stringify( - GetNativeBalanceResponse$outboundSchema.parse(getNativeBalanceResponse), - ); -} - -export function getNativeBalanceResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNativeBalanceResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNativeBalanceResponse' from JSON`, - ); -} diff --git a/data/src/models/components/getnetworkdetailsresponse.ts b/data/src/models/components/getnetworkdetailsresponse.ts deleted file mode 100644 index 325c93a8..00000000 --- a/data/src/models/components/getnetworkdetailsresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - DelegatorsDetails, - DelegatorsDetails$inboundSchema, - DelegatorsDetails$Outbound, - DelegatorsDetails$outboundSchema, -} from "./delegatorsdetails.js"; -import { - ValidatorsDetails, - ValidatorsDetails$inboundSchema, - ValidatorsDetails$Outbound, - ValidatorsDetails$outboundSchema, -} from "./validatorsdetails.js"; - -export type GetNetworkDetailsResponse = { - validatorDetails: ValidatorsDetails; - delegatorDetails: DelegatorsDetails; -}; - -/** @internal */ -export const GetNetworkDetailsResponse$inboundSchema: z.ZodType< - GetNetworkDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - validatorDetails: ValidatorsDetails$inboundSchema, - delegatorDetails: DelegatorsDetails$inboundSchema, -}); - -/** @internal */ -export type GetNetworkDetailsResponse$Outbound = { - validatorDetails: ValidatorsDetails$Outbound; - delegatorDetails: DelegatorsDetails$Outbound; -}; - -/** @internal */ -export const GetNetworkDetailsResponse$outboundSchema: z.ZodType< - GetNetworkDetailsResponse$Outbound, - z.ZodTypeDef, - GetNetworkDetailsResponse -> = z.object({ - validatorDetails: ValidatorsDetails$outboundSchema, - delegatorDetails: DelegatorsDetails$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNetworkDetailsResponse$ { - /** @deprecated use `GetNetworkDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = GetNetworkDetailsResponse$inboundSchema; - /** @deprecated use `GetNetworkDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = GetNetworkDetailsResponse$outboundSchema; - /** @deprecated use `GetNetworkDetailsResponse$Outbound` instead. */ - export type Outbound = GetNetworkDetailsResponse$Outbound; -} - -export function getNetworkDetailsResponseToJSON( - getNetworkDetailsResponse: GetNetworkDetailsResponse, -): string { - return JSON.stringify( - GetNetworkDetailsResponse$outboundSchema.parse(getNetworkDetailsResponse), - ); -} - -export function getNetworkDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNetworkDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNetworkDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/getprimarynetworkblockresponse.ts b/data/src/models/components/getprimarynetworkblockresponse.ts deleted file mode 100644 index 1e8c6cc9..00000000 --- a/data/src/models/components/getprimarynetworkblockresponse.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ProposerDetails, - ProposerDetails$inboundSchema, - ProposerDetails$Outbound, - ProposerDetails$outboundSchema, -} from "./proposerdetails.js"; - -export type GetPrimaryNetworkBlockResponse = { - blockNumber: string; - blockHash: string; - parentHash: string; - blockTimestamp: number; - blockType: string; - txCount: number; - transactions: Array; - blockSizeBytes: number; - l1ValidatorsAccruedFees?: number | undefined; - activeL1Validators?: number | undefined; - currentSupply?: string | undefined; - proposerDetails?: ProposerDetails | undefined; -}; - -/** @internal */ -export const GetPrimaryNetworkBlockResponse$inboundSchema: z.ZodType< - GetPrimaryNetworkBlockResponse, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockHash: z.string(), - parentHash: z.string(), - blockTimestamp: z.number(), - blockType: z.string(), - txCount: z.number(), - transactions: z.array(z.string()), - blockSizeBytes: z.number(), - l1ValidatorsAccruedFees: z.number().optional(), - activeL1Validators: z.number().optional(), - currentSupply: z.string().optional(), - proposerDetails: ProposerDetails$inboundSchema.optional(), -}); - -/** @internal */ -export type GetPrimaryNetworkBlockResponse$Outbound = { - blockNumber: string; - blockHash: string; - parentHash: string; - blockTimestamp: number; - blockType: string; - txCount: number; - transactions: Array; - blockSizeBytes: number; - l1ValidatorsAccruedFees?: number | undefined; - activeL1Validators?: number | undefined; - currentSupply?: string | undefined; - proposerDetails?: ProposerDetails$Outbound | undefined; -}; - -/** @internal */ -export const GetPrimaryNetworkBlockResponse$outboundSchema: z.ZodType< - GetPrimaryNetworkBlockResponse$Outbound, - z.ZodTypeDef, - GetPrimaryNetworkBlockResponse -> = z.object({ - blockNumber: z.string(), - blockHash: z.string(), - parentHash: z.string(), - blockTimestamp: z.number(), - blockType: z.string(), - txCount: z.number(), - transactions: z.array(z.string()), - blockSizeBytes: z.number(), - l1ValidatorsAccruedFees: z.number().optional(), - activeL1Validators: z.number().optional(), - currentSupply: z.string().optional(), - proposerDetails: ProposerDetails$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetPrimaryNetworkBlockResponse$ { - /** @deprecated use `GetPrimaryNetworkBlockResponse$inboundSchema` instead. */ - export const inboundSchema = GetPrimaryNetworkBlockResponse$inboundSchema; - /** @deprecated use `GetPrimaryNetworkBlockResponse$outboundSchema` instead. */ - export const outboundSchema = GetPrimaryNetworkBlockResponse$outboundSchema; - /** @deprecated use `GetPrimaryNetworkBlockResponse$Outbound` instead. */ - export type Outbound = GetPrimaryNetworkBlockResponse$Outbound; -} - -export function getPrimaryNetworkBlockResponseToJSON( - getPrimaryNetworkBlockResponse: GetPrimaryNetworkBlockResponse, -): string { - return JSON.stringify( - GetPrimaryNetworkBlockResponse$outboundSchema.parse( - getPrimaryNetworkBlockResponse, - ), - ); -} - -export function getPrimaryNetworkBlockResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetPrimaryNetworkBlockResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetPrimaryNetworkBlockResponse' from JSON`, - ); -} diff --git a/data/src/models/components/gettransactionresponse.ts b/data/src/models/components/gettransactionresponse.ts deleted file mode 100644 index cccb412a..00000000 --- a/data/src/models/components/gettransactionresponse.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TransferDetails, - Erc1155TransferDetails$inboundSchema, - Erc1155TransferDetails$Outbound, - Erc1155TransferDetails$outboundSchema, -} from "./erc1155transferdetails.js"; -import { - Erc20TransferDetails, - Erc20TransferDetails$inboundSchema, - Erc20TransferDetails$Outbound, - Erc20TransferDetails$outboundSchema, -} from "./erc20transferdetails.js"; -import { - Erc721TransferDetails, - Erc721TransferDetails$inboundSchema, - Erc721TransferDetails$Outbound, - Erc721TransferDetails$outboundSchema, -} from "./erc721transferdetails.js"; -import { - FullNativeTransactionDetails, - FullNativeTransactionDetails$inboundSchema, - FullNativeTransactionDetails$Outbound, - FullNativeTransactionDetails$outboundSchema, -} from "./fullnativetransactiondetails.js"; -import { - InternalTransactionDetails, - InternalTransactionDetails$inboundSchema, - InternalTransactionDetails$Outbound, - InternalTransactionDetails$outboundSchema, -} from "./internaltransactiondetails.js"; -import { - NetworkTokenDetails, - NetworkTokenDetails$inboundSchema, - NetworkTokenDetails$Outbound, - NetworkTokenDetails$outboundSchema, -} from "./networktokendetails.js"; -import { - TeleporterMessageInfo, - TeleporterMessageInfo$inboundSchema, - TeleporterMessageInfo$Outbound, - TeleporterMessageInfo$outboundSchema, -} from "./teleportermessageinfo.js"; - -export type GetTransactionResponse = { - /** - * The list of ERC-20 transfers. - */ - erc20Transfers?: Array | undefined; - /** - * The list of ERC-721 transfers. - */ - erc721Transfers?: Array | undefined; - /** - * The list of ERC-1155 transfers. - */ - erc1155Transfers?: Array | undefined; - /** - * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction. - */ - internalTransactions?: Array | undefined; - networkTokenDetails: NetworkTokenDetails; - nativeTransaction: FullNativeTransactionDetails; - /** - * Corresponding teleporter message info if available. - */ - teleporterMessageInfo?: TeleporterMessageInfo | undefined; -}; - -/** @internal */ -export const GetTransactionResponse$inboundSchema: z.ZodType< - GetTransactionResponse, - z.ZodTypeDef, - unknown -> = z.object({ - erc20Transfers: z.array(Erc20TransferDetails$inboundSchema).optional(), - erc721Transfers: z.array(Erc721TransferDetails$inboundSchema).optional(), - erc1155Transfers: z.array(Erc1155TransferDetails$inboundSchema).optional(), - internalTransactions: z.array(InternalTransactionDetails$inboundSchema) - .optional(), - networkTokenDetails: NetworkTokenDetails$inboundSchema, - nativeTransaction: FullNativeTransactionDetails$inboundSchema, - teleporterMessageInfo: TeleporterMessageInfo$inboundSchema.optional(), -}); - -/** @internal */ -export type GetTransactionResponse$Outbound = { - erc20Transfers?: Array | undefined; - erc721Transfers?: Array | undefined; - erc1155Transfers?: Array | undefined; - internalTransactions?: Array | undefined; - networkTokenDetails: NetworkTokenDetails$Outbound; - nativeTransaction: FullNativeTransactionDetails$Outbound; - teleporterMessageInfo?: TeleporterMessageInfo$Outbound | undefined; -}; - -/** @internal */ -export const GetTransactionResponse$outboundSchema: z.ZodType< - GetTransactionResponse$Outbound, - z.ZodTypeDef, - GetTransactionResponse -> = z.object({ - erc20Transfers: z.array(Erc20TransferDetails$outboundSchema).optional(), - erc721Transfers: z.array(Erc721TransferDetails$outboundSchema).optional(), - erc1155Transfers: z.array(Erc1155TransferDetails$outboundSchema).optional(), - internalTransactions: z.array(InternalTransactionDetails$outboundSchema) - .optional(), - networkTokenDetails: NetworkTokenDetails$outboundSchema, - nativeTransaction: FullNativeTransactionDetails$outboundSchema, - teleporterMessageInfo: TeleporterMessageInfo$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionResponse$ { - /** @deprecated use `GetTransactionResponse$inboundSchema` instead. */ - export const inboundSchema = GetTransactionResponse$inboundSchema; - /** @deprecated use `GetTransactionResponse$outboundSchema` instead. */ - export const outboundSchema = GetTransactionResponse$outboundSchema; - /** @deprecated use `GetTransactionResponse$Outbound` instead. */ - export type Outbound = GetTransactionResponse$Outbound; -} - -export function getTransactionResponseToJSON( - getTransactionResponse: GetTransactionResponse, -): string { - return JSON.stringify( - GetTransactionResponse$outboundSchema.parse(getTransactionResponse), - ); -} - -export function getTransactionResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransactionResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransactionResponse' from JSON`, - ); -} diff --git a/data/src/models/components/globalparamnetwork.ts b/data/src/models/components/globalparamnetwork.ts deleted file mode 100644 index 41aa1b36..00000000 --- a/data/src/models/components/globalparamnetwork.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 GlobalParamNetwork = { - Mainnet: "mainnet", - Fuji: "fuji", - Testnet: "testnet", -} as const; -export type GlobalParamNetwork = ClosedEnum; - -/** @internal */ -export const GlobalParamNetwork$inboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = z.nativeEnum(GlobalParamNetwork); - -/** @internal */ -export const GlobalParamNetwork$outboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = GlobalParamNetwork$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GlobalParamNetwork$ { - /** @deprecated use `GlobalParamNetwork$inboundSchema` instead. */ - export const inboundSchema = GlobalParamNetwork$inboundSchema; - /** @deprecated use `GlobalParamNetwork$outboundSchema` instead. */ - export const outboundSchema = GlobalParamNetwork$outboundSchema; -} diff --git a/data/src/models/components/healthcheckresultdto.ts b/data/src/models/components/healthcheckresultdto.ts deleted file mode 100644 index 97df22fe..00000000 --- a/data/src/models/components/healthcheckresultdto.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HealthIndicatorResultDto, - HealthIndicatorResultDto$inboundSchema, - HealthIndicatorResultDto$Outbound, - HealthIndicatorResultDto$outboundSchema, -} from "./healthindicatorresultdto.js"; - -export const HealthCheckResultDtoStatus = { - Error: "error", - Ok: "ok", - ShuttingDown: "shutting_down", -} as const; -export type HealthCheckResultDtoStatus = ClosedEnum< - typeof HealthCheckResultDtoStatus ->; - -export type HealthCheckResultDto = { - status?: HealthCheckResultDtoStatus | undefined; - info?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = z.nativeEnum(HealthCheckResultDtoStatus); - -/** @internal */ -export const HealthCheckResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = HealthCheckResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDtoStatus$ { - /** @deprecated use `HealthCheckResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDtoStatus$inboundSchema; - /** @deprecated use `HealthCheckResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthCheckResultDto$inboundSchema: z.ZodType< - HealthCheckResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthCheckResultDtoStatus$inboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)).optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$inboundSchema).optional(), -}); - -/** @internal */ -export type HealthCheckResultDto$Outbound = { - status?: string | undefined; - info?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto$Outbound } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDto$outboundSchema: z.ZodType< - HealthCheckResultDto$Outbound, - z.ZodTypeDef, - HealthCheckResultDto -> = z.object({ - status: HealthCheckResultDtoStatus$outboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDto$ { - /** @deprecated use `HealthCheckResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDto$inboundSchema; - /** @deprecated use `HealthCheckResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDto$outboundSchema; - /** @deprecated use `HealthCheckResultDto$Outbound` instead. */ - export type Outbound = HealthCheckResultDto$Outbound; -} - -export function healthCheckResultDtoToJSON( - healthCheckResultDto: HealthCheckResultDto, -): string { - return JSON.stringify( - HealthCheckResultDto$outboundSchema.parse(healthCheckResultDto), - ); -} - -export function healthCheckResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthCheckResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthCheckResultDto' from JSON`, - ); -} diff --git a/data/src/models/components/healthindicatorresultdto.ts b/data/src/models/components/healthindicatorresultdto.ts deleted file mode 100644 index 9f05c384..00000000 --- a/data/src/models/components/healthindicatorresultdto.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Status of the health indicator. - */ -export const HealthIndicatorResultDtoStatus = { - Up: "up", - Down: "down", -} as const; -/** - * Status of the health indicator. - */ -export type HealthIndicatorResultDtoStatus = ClosedEnum< - typeof HealthIndicatorResultDtoStatus ->; - -export type HealthIndicatorResultDto = { - /** - * Status of the health indicator. - */ - status?: HealthIndicatorResultDtoStatus | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = z.nativeEnum(HealthIndicatorResultDtoStatus); - -/** @internal */ -export const HealthIndicatorResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = HealthIndicatorResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDtoStatus$ { - /** @deprecated use `HealthIndicatorResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDtoStatus$inboundSchema; - /** @deprecated use `HealthIndicatorResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthIndicatorResultDto$inboundSchema: z.ZodType< - HealthIndicatorResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthIndicatorResultDtoStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type HealthIndicatorResultDto$Outbound = { - status?: string | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDto$outboundSchema: z.ZodType< - HealthIndicatorResultDto$Outbound, - z.ZodTypeDef, - HealthIndicatorResultDto -> = z.object({ - status: HealthIndicatorResultDtoStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDto$ { - /** @deprecated use `HealthIndicatorResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDto$inboundSchema; - /** @deprecated use `HealthIndicatorResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDto$outboundSchema; - /** @deprecated use `HealthIndicatorResultDto$Outbound` instead. */ - export type Outbound = HealthIndicatorResultDto$Outbound; -} - -export function healthIndicatorResultDtoToJSON( - healthIndicatorResultDto: HealthIndicatorResultDto, -): string { - return JSON.stringify( - HealthIndicatorResultDto$outboundSchema.parse(healthIndicatorResultDto), - ); -} - -export function healthIndicatorResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthIndicatorResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthIndicatorResultDto' from JSON`, - ); -} diff --git a/data/src/models/components/historicalreward.ts b/data/src/models/components/historicalreward.ts deleted file mode 100644 index fb84a89e..00000000 --- a/data/src/models/components/historicalreward.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetWithPriceInfo, - AssetWithPriceInfo$inboundSchema, - AssetWithPriceInfo$Outbound, - AssetWithPriceInfo$outboundSchema, -} from "./assetwithpriceinfo.js"; -import { - RewardType, - RewardType$inboundSchema, - RewardType$outboundSchema, -} from "./rewardtype.js"; - -export type HistoricalReward = { - /** - * An array of P-Chain wallet addresses. - */ - addresses: Array; - txHash: string; - amountStaked: string; - nodeId: string; - startTimestamp: number; - endTimestamp: number; - rewardType: RewardType; - utxoId: string; - outputIndex: number; - reward: AssetWithPriceInfo; - rewardTxHash: string; -}; - -/** @internal */ -export const HistoricalReward$inboundSchema: z.ZodType< - HistoricalReward, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - txHash: z.string(), - amountStaked: z.string(), - nodeId: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - rewardType: RewardType$inboundSchema, - utxoId: z.string(), - outputIndex: z.number(), - reward: AssetWithPriceInfo$inboundSchema, - rewardTxHash: z.string(), -}); - -/** @internal */ -export type HistoricalReward$Outbound = { - addresses: Array; - txHash: string; - amountStaked: string; - nodeId: string; - startTimestamp: number; - endTimestamp: number; - rewardType: string; - utxoId: string; - outputIndex: number; - reward: AssetWithPriceInfo$Outbound; - rewardTxHash: string; -}; - -/** @internal */ -export const HistoricalReward$outboundSchema: z.ZodType< - HistoricalReward$Outbound, - z.ZodTypeDef, - HistoricalReward -> = z.object({ - addresses: z.array(z.string()), - txHash: z.string(), - amountStaked: z.string(), - nodeId: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - rewardType: RewardType$outboundSchema, - utxoId: z.string(), - outputIndex: z.number(), - reward: AssetWithPriceInfo$outboundSchema, - rewardTxHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HistoricalReward$ { - /** @deprecated use `HistoricalReward$inboundSchema` instead. */ - export const inboundSchema = HistoricalReward$inboundSchema; - /** @deprecated use `HistoricalReward$outboundSchema` instead. */ - export const outboundSchema = HistoricalReward$outboundSchema; - /** @deprecated use `HistoricalReward$Outbound` instead. */ - export type Outbound = HistoricalReward$Outbound; -} - -export function historicalRewardToJSON( - historicalReward: HistoricalReward, -): string { - return JSON.stringify( - HistoricalReward$outboundSchema.parse(historicalReward), - ); -} - -export function historicalRewardFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HistoricalReward$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HistoricalReward' from JSON`, - ); -} diff --git a/data/src/models/components/icmdestinationtransaction.ts b/data/src/models/components/icmdestinationtransaction.ts deleted file mode 100644 index 64a0e632..00000000 --- a/data/src/models/components/icmdestinationtransaction.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type IcmDestinationTransaction = { - txHash: string; - timestamp: number; - gasSpent: string; - rewardRedeemer: string; - delivererAddress: string; -}; - -/** @internal */ -export const IcmDestinationTransaction$inboundSchema: z.ZodType< - IcmDestinationTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), - rewardRedeemer: z.string(), - delivererAddress: z.string(), -}); - -/** @internal */ -export type IcmDestinationTransaction$Outbound = { - txHash: string; - timestamp: number; - gasSpent: string; - rewardRedeemer: string; - delivererAddress: string; -}; - -/** @internal */ -export const IcmDestinationTransaction$outboundSchema: z.ZodType< - IcmDestinationTransaction$Outbound, - z.ZodTypeDef, - IcmDestinationTransaction -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), - rewardRedeemer: z.string(), - delivererAddress: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IcmDestinationTransaction$ { - /** @deprecated use `IcmDestinationTransaction$inboundSchema` instead. */ - export const inboundSchema = IcmDestinationTransaction$inboundSchema; - /** @deprecated use `IcmDestinationTransaction$outboundSchema` instead. */ - export const outboundSchema = IcmDestinationTransaction$outboundSchema; - /** @deprecated use `IcmDestinationTransaction$Outbound` instead. */ - export type Outbound = IcmDestinationTransaction$Outbound; -} - -export function icmDestinationTransactionToJSON( - icmDestinationTransaction: IcmDestinationTransaction, -): string { - return JSON.stringify( - IcmDestinationTransaction$outboundSchema.parse(icmDestinationTransaction), - ); -} - -export function icmDestinationTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IcmDestinationTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IcmDestinationTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/icmreceipt.ts b/data/src/models/components/icmreceipt.ts deleted file mode 100644 index ab3b93e2..00000000 --- a/data/src/models/components/icmreceipt.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type IcmReceipt = { - receivedMessageNonce: string; - relayerRewardAddress: string; -}; - -/** @internal */ -export const IcmReceipt$inboundSchema: z.ZodType< - IcmReceipt, - z.ZodTypeDef, - unknown -> = z.object({ - receivedMessageNonce: z.string(), - relayerRewardAddress: z.string(), -}); - -/** @internal */ -export type IcmReceipt$Outbound = { - receivedMessageNonce: string; - relayerRewardAddress: string; -}; - -/** @internal */ -export const IcmReceipt$outboundSchema: z.ZodType< - IcmReceipt$Outbound, - z.ZodTypeDef, - IcmReceipt -> = z.object({ - receivedMessageNonce: z.string(), - relayerRewardAddress: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IcmReceipt$ { - /** @deprecated use `IcmReceipt$inboundSchema` instead. */ - export const inboundSchema = IcmReceipt$inboundSchema; - /** @deprecated use `IcmReceipt$outboundSchema` instead. */ - export const outboundSchema = IcmReceipt$outboundSchema; - /** @deprecated use `IcmReceipt$Outbound` instead. */ - export type Outbound = IcmReceipt$Outbound; -} - -export function icmReceiptToJSON(icmReceipt: IcmReceipt): string { - return JSON.stringify(IcmReceipt$outboundSchema.parse(icmReceipt)); -} - -export function icmReceiptFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IcmReceipt$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IcmReceipt' from JSON`, - ); -} diff --git a/data/src/models/components/icmrewarddetails.ts b/data/src/models/components/icmrewarddetails.ts deleted file mode 100644 index 1e9fc45b..00000000 --- a/data/src/models/components/icmrewarddetails.ts +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; - -export const IcmRewardDetailsErcType = { - Erc20: "ERC-20", -} as const; -export type IcmRewardDetailsErcType = ClosedEnum< - typeof IcmRewardDetailsErcType ->; - -export type IcmRewardDetails = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - ercType: IcmRewardDetailsErcType; - /** - * The token price, if available. - */ - price?: Money | undefined; - value: string; -}; - -/** @internal */ -export const IcmRewardDetailsErcType$inboundSchema: z.ZodNativeEnum< - typeof IcmRewardDetailsErcType -> = z.nativeEnum(IcmRewardDetailsErcType); - -/** @internal */ -export const IcmRewardDetailsErcType$outboundSchema: z.ZodNativeEnum< - typeof IcmRewardDetailsErcType -> = IcmRewardDetailsErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IcmRewardDetailsErcType$ { - /** @deprecated use `IcmRewardDetailsErcType$inboundSchema` instead. */ - export const inboundSchema = IcmRewardDetailsErcType$inboundSchema; - /** @deprecated use `IcmRewardDetailsErcType$outboundSchema` instead. */ - export const outboundSchema = IcmRewardDetailsErcType$outboundSchema; -} - -/** @internal */ -export const IcmRewardDetails$inboundSchema: z.ZodType< - IcmRewardDetails, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: IcmRewardDetailsErcType$inboundSchema, - price: Money$inboundSchema.optional(), - value: z.string(), -}); - -/** @internal */ -export type IcmRewardDetails$Outbound = { - address: string; - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - ercType: string; - price?: Money$Outbound | undefined; - value: string; -}; - -/** @internal */ -export const IcmRewardDetails$outboundSchema: z.ZodType< - IcmRewardDetails$Outbound, - z.ZodTypeDef, - IcmRewardDetails -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: IcmRewardDetailsErcType$outboundSchema, - price: Money$outboundSchema.optional(), - value: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IcmRewardDetails$ { - /** @deprecated use `IcmRewardDetails$inboundSchema` instead. */ - export const inboundSchema = IcmRewardDetails$inboundSchema; - /** @deprecated use `IcmRewardDetails$outboundSchema` instead. */ - export const outboundSchema = IcmRewardDetails$outboundSchema; - /** @deprecated use `IcmRewardDetails$Outbound` instead. */ - export type Outbound = IcmRewardDetails$Outbound; -} - -export function icmRewardDetailsToJSON( - icmRewardDetails: IcmRewardDetails, -): string { - return JSON.stringify( - IcmRewardDetails$outboundSchema.parse(icmRewardDetails), - ); -} - -export function icmRewardDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IcmRewardDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IcmRewardDetails' from JSON`, - ); -} diff --git a/data/src/models/components/icmsourcetransaction.ts b/data/src/models/components/icmsourcetransaction.ts deleted file mode 100644 index a209f8a6..00000000 --- a/data/src/models/components/icmsourcetransaction.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type IcmSourceTransaction = { - txHash: string; - timestamp: number; - gasSpent: string; -}; - -/** @internal */ -export const IcmSourceTransaction$inboundSchema: z.ZodType< - IcmSourceTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), -}); - -/** @internal */ -export type IcmSourceTransaction$Outbound = { - txHash: string; - timestamp: number; - gasSpent: string; -}; - -/** @internal */ -export const IcmSourceTransaction$outboundSchema: z.ZodType< - IcmSourceTransaction$Outbound, - z.ZodTypeDef, - IcmSourceTransaction -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IcmSourceTransaction$ { - /** @deprecated use `IcmSourceTransaction$inboundSchema` instead. */ - export const inboundSchema = IcmSourceTransaction$inboundSchema; - /** @deprecated use `IcmSourceTransaction$outboundSchema` instead. */ - export const outboundSchema = IcmSourceTransaction$outboundSchema; - /** @deprecated use `IcmSourceTransaction$Outbound` instead. */ - export type Outbound = IcmSourceTransaction$Outbound; -} - -export function icmSourceTransactionToJSON( - icmSourceTransaction: IcmSourceTransaction, -): string { - return JSON.stringify( - IcmSourceTransaction$outboundSchema.parse(icmSourceTransaction), - ); -} - -export function icmSourceTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => IcmSourceTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'IcmSourceTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/imageasset.ts b/data/src/models/components/imageasset.ts deleted file mode 100644 index e5e591f7..00000000 --- a/data/src/models/components/imageasset.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ImageAsset = { - assetId?: string | undefined; - /** - * OUTPUT ONLY - */ - imageUri?: string | undefined; -}; - -/** @internal */ -export const ImageAsset$inboundSchema: z.ZodType< - ImageAsset, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string().optional(), - imageUri: z.string().optional(), -}); - -/** @internal */ -export type ImageAsset$Outbound = { - assetId?: string | undefined; - imageUri?: string | undefined; -}; - -/** @internal */ -export const ImageAsset$outboundSchema: z.ZodType< - ImageAsset$Outbound, - z.ZodTypeDef, - ImageAsset -> = z.object({ - assetId: z.string().optional(), - imageUri: 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 ImageAsset$ { - /** @deprecated use `ImageAsset$inboundSchema` instead. */ - export const inboundSchema = ImageAsset$inboundSchema; - /** @deprecated use `ImageAsset$outboundSchema` instead. */ - export const outboundSchema = ImageAsset$outboundSchema; - /** @deprecated use `ImageAsset$Outbound` instead. */ - export type Outbound = ImageAsset$Outbound; -} - -export function imageAssetToJSON(imageAsset: ImageAsset): string { - return JSON.stringify(ImageAsset$outboundSchema.parse(imageAsset)); -} - -export function imageAssetFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ImageAsset$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ImageAsset' from JSON`, - ); -} diff --git a/data/src/models/components/index.ts b/data/src/models/components/index.ts deleted file mode 100644 index be1ea1d8..00000000 --- a/data/src/models/components/index.ts +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./activedelegatordetails.js"; -export * from "./activevalidatordetails.js"; -export * from "./aggregatedassetamount.js"; -export * from "./apifeature.js"; -export * from "./assetamount.js"; -export * from "./assetwithpriceinfo.js"; -export * from "./balanceowner.js"; -export * from "./blockchain.js"; -export * from "./blockchainid.js"; -export * from "./blockchainids.js"; -export * from "./blockchaininfo.js"; -export * from "./blscredentials.js"; -export * from "./cchainatomicbalances.js"; -export * from "./cchainexporttransaction.js"; -export * from "./cchainimporttransaction.js"; -export * from "./cchainsharedassetbalance.js"; -export * from "./chainaddresschainidmap.js"; -export * from "./chainaddresschainidmaplistresponse.js"; -export * from "./chaininfo.js"; -export * from "./chainstatus.js"; -export * from "./completeddelegatordetails.js"; -export * from "./completedvalidatordetails.js"; -export * from "./contractdeploymentdetails.js"; -export * from "./createevmtransactionexportrequest.js"; -export * from "./createprimarynetworktransactionexportrequest.js"; -export * from "./currencycode.js"; -export * from "./delegationstatustype.js"; -export * from "./delegatorsdetails.js"; -export * from "./deliveredicmmessage.js"; -export * from "./deliveredsourcenotindexedicmmessage.js"; -export * from "./deliveredsourcenotindexedteleportermessage.js"; -export * from "./deliveredteleportermessage.js"; -export * from "./erc1155contract.js"; -export * from "./erc1155token.js"; -export * from "./erc1155tokenbalance.js"; -export * from "./erc1155tokenmetadata.js"; -export * from "./erc1155transfer.js"; -export * from "./erc1155transferdetails.js"; -export * from "./erc20contract.js"; -export * from "./erc20token.js"; -export * from "./erc20tokenbalance.js"; -export * from "./erc20transfer.js"; -export * from "./erc20transferdetails.js"; -export * from "./erc721contract.js"; -export * from "./erc721token.js"; -export * from "./erc721tokenbalance.js"; -export * from "./erc721tokenmetadata.js"; -export * from "./erc721transfer.js"; -export * from "./erc721transferdetails.js"; -export * from "./evmblock.js"; -export * from "./evminput.js"; -export * from "./evmnetworkoptions.js"; -export * from "./evmoperationtype.js"; -export * from "./evmoutput.js"; -export * from "./fullnativetransactiondetails.js"; -export * from "./getchainresponse.js"; -export * from "./getevmblockresponse.js"; -export * from "./getnativebalanceresponse.js"; -export * from "./getnetworkdetailsresponse.js"; -export * from "./getprimarynetworkblockresponse.js"; -export * from "./gettransactionresponse.js"; -export * from "./globalparamnetwork.js"; -export * from "./healthcheckresultdto.js"; -export * from "./healthindicatorresultdto.js"; -export * from "./historicalreward.js"; -export * from "./icmdestinationtransaction.js"; -export * from "./icmreceipt.js"; -export * from "./icmrewarddetails.js"; -export * from "./icmsourcetransaction.js"; -export * from "./imageasset.js"; -export * from "./internaltransaction.js"; -export * from "./internaltransactiondetails.js"; -export * from "./internaltransactionopcall.js"; -export * from "./l1validatordetailsfull.js"; -export * from "./l1validatordetailstransaction.js"; -export * from "./l1validatormanagerdetails.js"; -export * from "./listaddresschainsresponse.js"; -export * from "./listblockchainsresponse.js"; -export * from "./listcchainatomicbalancesresponse.js"; -export * from "./listcchainatomictransactionsresponse.js"; -export * from "./listchainsresponse.js"; -export * from "./listcollectiblebalancesresponse.js"; -export * from "./listcontractsresponse.js"; -export * from "./listdelegatordetailsresponse.js"; -export * from "./listerc1155balancesresponse.js"; -export * from "./listerc1155transactionsresponse.js"; -export * from "./listerc20balancesresponse.js"; -export * from "./listerc20transactionsresponse.js"; -export * from "./listerc721balancesresponse.js"; -export * from "./listerc721transactionsresponse.js"; -export * from "./listevmblocksresponse.js"; -export * from "./listhistoricalrewardsresponse.js"; -export * from "./listicmmessagesresponse.js"; -export * from "./listinternaltransactionsresponse.js"; -export * from "./listl1validatorsresponse.js"; -export * from "./listnativetransactionsresponse.js"; -export * from "./listnfttokens.js"; -export * from "./listpchainbalancesresponse.js"; -export * from "./listpchaintransactionsresponse.js"; -export * from "./listpchainutxosresponse.js"; -export * from "./listpendingrewardsresponse.js"; -export * from "./listprimarynetworkblocksresponse.js"; -export * from "./listsubnetsresponse.js"; -export * from "./listteleportermessagesresponse.js"; -export * from "./listtransactiondetailsresponse.js"; -export * from "./listtransfersresponse.js"; -export * from "./listutxosresponse.js"; -export * from "./listvalidatordetailsresponse.js"; -export * from "./listxchainbalancesresponse.js"; -export * from "./listxchaintransactionsresponse.js"; -export * from "./listxchainverticesresponse.js"; -export * from "./logsformat.js"; -export * from "./logsformatmetadata.js"; -export * from "./logsresponsedto.js"; -export * from "./method.js"; -export * from "./metric.js"; -export * from "./money.js"; -export * from "./nativetokenbalance.js"; -export * from "./nativetransaction.js"; -export * from "./network.js"; -export * from "./networktoken.js"; -export * from "./networktokendetails.js"; -export * from "./nfttokenmetadatastatus.js"; -export * from "./operationstatus.js"; -export * from "./operationstatuscode.js"; -export * from "./operationstatusresponse.js"; -export * from "./operationtype.js"; -export * from "./pchainbalance.js"; -export * from "./pchainid.js"; -export * from "./pchainsharedasset.js"; -export * from "./pchaintransaction.js"; -export * from "./pchaintransactiontype.js"; -export * from "./pchainutxo.js"; -export * from "./pendingdelegatordetails.js"; -export * from "./pendingicmmessage.js"; -export * from "./pendingreward.js"; -export * from "./pendingteleportermessage.js"; -export * from "./pendingvalidatordetails.js"; -export * from "./pricingproviders.js"; -export * from "./primarynetworkassetcap.js"; -export * from "./primarynetworkassettype.js"; -export * from "./primarynetworkblock.js"; -export * from "./primarynetworkchaininfo.js"; -export * from "./primarynetworkchainname.js"; -export * from "./primarynetworkoperationtype.js"; -export * from "./primarynetworkoptions.js"; -export * from "./primarynetworktxtype.js"; -export * from "./proposerdetails.js"; -export * from "./removedvalidatordetails.js"; -export * from "./requesttype.js"; -export * from "./resourcelink.js"; -export * from "./resourcelinktype.js"; -export * from "./rewards.js"; -export * from "./rewardtype.js"; -export * from "./richaddress.js"; -export * from "./rpcmetrics.js"; -export * from "./rpcusagemetricsgroupbyenum.js"; -export * from "./rpcusagemetricsvalueaggregated.js"; -export * from "./security.js"; -export * from "./signatureaggregationresponse.js"; -export * from "./signatureaggregatorrequest.js"; -export * from "./sortbyoption.js"; -export * from "./sortorder.js"; -export * from "./stakingdistribution.js"; -export * from "./subnet.js"; -export * from "./subnetownershipinfo.js"; -export * from "./subnetrpctimeintervalgranularity.js"; -export * from "./subnetrpcusagemetricsresponsedto.js"; -export * from "./teleporterdestinationtransaction.js"; -export * from "./teleportermessageinfo.js"; -export * from "./teleporterreceipt.js"; -export * from "./teleporterrewarddetails.js"; -export * from "./teleportersourcetransaction.js"; -export * from "./timeintervalgranularityextended.js"; -export * from "./transactiondetails.js"; -export * from "./transactiondirectiontype.js"; -export * from "./transactionexportmetadata.js"; -export * from "./transactionmethodtype.js"; -export * from "./transactionstatus.js"; -export * from "./transactionvertexdetail.js"; -export * from "./unknowncontract.js"; -export * from "./usagemetricsgroupbyenum.js"; -export * from "./usagemetricsresponsedto.js"; -export * from "./usagemetricsvaluedto.js"; -export * from "./utilityaddresses.js"; -export * from "./utxo.js"; -export * from "./utxocredential.js"; -export * from "./utxotype.js"; -export * from "./validationstatustype.js"; -export * from "./validatorhealthdetails.js"; -export * from "./validatorsdetails.js"; -export * from "./vmname.js"; -export * from "./xchainassetdetails.js"; -export * from "./xchainbalances.js"; -export * from "./xchainid.js"; -export * from "./xchainlineartransaction.js"; -export * from "./xchainnonlineartransaction.js"; -export * from "./xchainsharedassetbalance.js"; -export * from "./xchaintransactiontype.js"; -export * from "./xchainvertex.js"; diff --git a/data/src/models/components/internaltransaction.ts b/data/src/models/components/internaltransaction.ts deleted file mode 100644 index c20b385f..00000000 --- a/data/src/models/components/internaltransaction.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - InternalTransactionOpCall, - InternalTransactionOpCall$inboundSchema, - InternalTransactionOpCall$outboundSchema, -} from "./internaltransactionopcall.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type InternalTransaction = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The transaction hash identifier. - */ - txHash: string; - from: RichAddress; - to: RichAddress; - internalTxType: InternalTransactionOpCall; - value: string; - /** - * True if the internal transaction was reverted. - */ - isReverted: boolean; - gasUsed: string; - gasLimit: string; -}; - -/** @internal */ -export const InternalTransaction$inboundSchema: z.ZodType< - InternalTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - internalTxType: InternalTransactionOpCall$inboundSchema, - value: z.string(), - isReverted: z.boolean(), - gasUsed: z.string(), - gasLimit: z.string(), -}); - -/** @internal */ -export type InternalTransaction$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - txHash: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - internalTxType: string; - value: string; - isReverted: boolean; - gasUsed: string; - gasLimit: string; -}; - -/** @internal */ -export const InternalTransaction$outboundSchema: z.ZodType< - InternalTransaction$Outbound, - z.ZodTypeDef, - InternalTransaction -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - txHash: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - internalTxType: InternalTransactionOpCall$outboundSchema, - value: z.string(), - isReverted: z.boolean(), - gasUsed: z.string(), - gasLimit: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalTransaction$ { - /** @deprecated use `InternalTransaction$inboundSchema` instead. */ - export const inboundSchema = InternalTransaction$inboundSchema; - /** @deprecated use `InternalTransaction$outboundSchema` instead. */ - export const outboundSchema = InternalTransaction$outboundSchema; - /** @deprecated use `InternalTransaction$Outbound` instead. */ - export type Outbound = InternalTransaction$Outbound; -} - -export function internalTransactionToJSON( - internalTransaction: InternalTransaction, -): string { - return JSON.stringify( - InternalTransaction$outboundSchema.parse(internalTransaction), - ); -} - -export function internalTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InternalTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InternalTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/internaltransactiondetails.ts b/data/src/models/components/internaltransactiondetails.ts deleted file mode 100644 index 3714c067..00000000 --- a/data/src/models/components/internaltransactiondetails.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - InternalTransactionOpCall, - InternalTransactionOpCall$inboundSchema, - InternalTransactionOpCall$outboundSchema, -} from "./internaltransactionopcall.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type InternalTransactionDetails = { - from: RichAddress; - to: RichAddress; - internalTxType: InternalTransactionOpCall; - value: string; - /** - * True if the internal transaction was reverted. - */ - isReverted: boolean; - gasUsed: string; - gasLimit: string; -}; - -/** @internal */ -export const InternalTransactionDetails$inboundSchema: z.ZodType< - InternalTransactionDetails, - z.ZodTypeDef, - unknown -> = z.object({ - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - internalTxType: InternalTransactionOpCall$inboundSchema, - value: z.string(), - isReverted: z.boolean(), - gasUsed: z.string(), - gasLimit: z.string(), -}); - -/** @internal */ -export type InternalTransactionDetails$Outbound = { - from: RichAddress$Outbound; - to: RichAddress$Outbound; - internalTxType: string; - value: string; - isReverted: boolean; - gasUsed: string; - gasLimit: string; -}; - -/** @internal */ -export const InternalTransactionDetails$outboundSchema: z.ZodType< - InternalTransactionDetails$Outbound, - z.ZodTypeDef, - InternalTransactionDetails -> = z.object({ - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - internalTxType: InternalTransactionOpCall$outboundSchema, - value: z.string(), - isReverted: z.boolean(), - gasUsed: z.string(), - gasLimit: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalTransactionDetails$ { - /** @deprecated use `InternalTransactionDetails$inboundSchema` instead. */ - export const inboundSchema = InternalTransactionDetails$inboundSchema; - /** @deprecated use `InternalTransactionDetails$outboundSchema` instead. */ - export const outboundSchema = InternalTransactionDetails$outboundSchema; - /** @deprecated use `InternalTransactionDetails$Outbound` instead. */ - export type Outbound = InternalTransactionDetails$Outbound; -} - -export function internalTransactionDetailsToJSON( - internalTransactionDetails: InternalTransactionDetails, -): string { - return JSON.stringify( - InternalTransactionDetails$outboundSchema.parse(internalTransactionDetails), - ); -} - -export function internalTransactionDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InternalTransactionDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InternalTransactionDetails' from JSON`, - ); -} diff --git a/data/src/models/components/internaltransactionopcall.ts b/data/src/models/components/internaltransactionopcall.ts deleted file mode 100644 index e72d6291..00000000 --- a/data/src/models/components/internaltransactionopcall.ts +++ /dev/null @@ -1,41 +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 InternalTransactionOpCall = { - Unknown: "UNKNOWN", - Call: "CALL", - Create: "CREATE", - Create2: "CREATE2", - Create3: "CREATE3", - Callcode: "CALLCODE", - Delegatecall: "DELEGATECALL", - Staticcall: "STATICCALL", -} as const; -export type InternalTransactionOpCall = ClosedEnum< - typeof InternalTransactionOpCall ->; - -/** @internal */ -export const InternalTransactionOpCall$inboundSchema: z.ZodNativeEnum< - typeof InternalTransactionOpCall -> = z.nativeEnum(InternalTransactionOpCall); - -/** @internal */ -export const InternalTransactionOpCall$outboundSchema: z.ZodNativeEnum< - typeof InternalTransactionOpCall -> = InternalTransactionOpCall$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalTransactionOpCall$ { - /** @deprecated use `InternalTransactionOpCall$inboundSchema` instead. */ - export const inboundSchema = InternalTransactionOpCall$inboundSchema; - /** @deprecated use `InternalTransactionOpCall$outboundSchema` instead. */ - export const outboundSchema = InternalTransactionOpCall$outboundSchema; -} diff --git a/data/src/models/components/l1validatordetailsfull.ts b/data/src/models/components/l1validatordetailsfull.ts deleted file mode 100644 index 5a7718b3..00000000 --- a/data/src/models/components/l1validatordetailsfull.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BalanceOwner, - BalanceOwner$inboundSchema, - BalanceOwner$Outbound, - BalanceOwner$outboundSchema, -} from "./balanceowner.js"; - -export type L1ValidatorDetailsFullBlsCredentials = {}; - -export type L1ValidatorDetailsFull = { - /** - * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. - */ - validationId: string; - /** - * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format - */ - validationIdHex: string; - nodeId: string; - subnetId: string; - /** - * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid - */ - weight: number; - /** - * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx - */ - remainingBalance: number; - /** - * The timestamp of the transaction which created this L1 validator - */ - creationTimestamp: number; - blsCredentials: L1ValidatorDetailsFullBlsCredentials; - /** - * The L1 validator owner's balance, returned after it's disabled or removed - */ - remainingBalanceOwner: BalanceOwner; - /** - * Owner ddresses details which can disable or remove the L1 validator - */ - deactivationOwner: BalanceOwner; -}; - -/** @internal */ -export const L1ValidatorDetailsFullBlsCredentials$inboundSchema: z.ZodType< - L1ValidatorDetailsFullBlsCredentials, - z.ZodTypeDef, - unknown -> = z.object({}); - -/** @internal */ -export type L1ValidatorDetailsFullBlsCredentials$Outbound = {}; - -/** @internal */ -export const L1ValidatorDetailsFullBlsCredentials$outboundSchema: z.ZodType< - L1ValidatorDetailsFullBlsCredentials$Outbound, - z.ZodTypeDef, - L1ValidatorDetailsFullBlsCredentials -> = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace L1ValidatorDetailsFullBlsCredentials$ { - /** @deprecated use `L1ValidatorDetailsFullBlsCredentials$inboundSchema` instead. */ - export const inboundSchema = - L1ValidatorDetailsFullBlsCredentials$inboundSchema; - /** @deprecated use `L1ValidatorDetailsFullBlsCredentials$outboundSchema` instead. */ - export const outboundSchema = - L1ValidatorDetailsFullBlsCredentials$outboundSchema; - /** @deprecated use `L1ValidatorDetailsFullBlsCredentials$Outbound` instead. */ - export type Outbound = L1ValidatorDetailsFullBlsCredentials$Outbound; -} - -export function l1ValidatorDetailsFullBlsCredentialsToJSON( - l1ValidatorDetailsFullBlsCredentials: L1ValidatorDetailsFullBlsCredentials, -): string { - return JSON.stringify( - L1ValidatorDetailsFullBlsCredentials$outboundSchema.parse( - l1ValidatorDetailsFullBlsCredentials, - ), - ); -} - -export function l1ValidatorDetailsFullBlsCredentialsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - L1ValidatorDetailsFullBlsCredentials$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'L1ValidatorDetailsFullBlsCredentials' from JSON`, - ); -} - -/** @internal */ -export const L1ValidatorDetailsFull$inboundSchema: z.ZodType< - L1ValidatorDetailsFull, - z.ZodTypeDef, - unknown -> = z.object({ - validationId: z.string(), - validationIdHex: z.string(), - nodeId: z.string(), - subnetId: z.string(), - weight: z.number(), - remainingBalance: z.number(), - creationTimestamp: z.number(), - blsCredentials: z.lazy(() => - L1ValidatorDetailsFullBlsCredentials$inboundSchema - ), - remainingBalanceOwner: BalanceOwner$inboundSchema, - deactivationOwner: BalanceOwner$inboundSchema, -}); - -/** @internal */ -export type L1ValidatorDetailsFull$Outbound = { - validationId: string; - validationIdHex: string; - nodeId: string; - subnetId: string; - weight: number; - remainingBalance: number; - creationTimestamp: number; - blsCredentials: L1ValidatorDetailsFullBlsCredentials$Outbound; - remainingBalanceOwner: BalanceOwner$Outbound; - deactivationOwner: BalanceOwner$Outbound; -}; - -/** @internal */ -export const L1ValidatorDetailsFull$outboundSchema: z.ZodType< - L1ValidatorDetailsFull$Outbound, - z.ZodTypeDef, - L1ValidatorDetailsFull -> = z.object({ - validationId: z.string(), - validationIdHex: z.string(), - nodeId: z.string(), - subnetId: z.string(), - weight: z.number(), - remainingBalance: z.number(), - creationTimestamp: z.number(), - blsCredentials: z.lazy(() => - L1ValidatorDetailsFullBlsCredentials$outboundSchema - ), - remainingBalanceOwner: BalanceOwner$outboundSchema, - deactivationOwner: BalanceOwner$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace L1ValidatorDetailsFull$ { - /** @deprecated use `L1ValidatorDetailsFull$inboundSchema` instead. */ - export const inboundSchema = L1ValidatorDetailsFull$inboundSchema; - /** @deprecated use `L1ValidatorDetailsFull$outboundSchema` instead. */ - export const outboundSchema = L1ValidatorDetailsFull$outboundSchema; - /** @deprecated use `L1ValidatorDetailsFull$Outbound` instead. */ - export type Outbound = L1ValidatorDetailsFull$Outbound; -} - -export function l1ValidatorDetailsFullToJSON( - l1ValidatorDetailsFull: L1ValidatorDetailsFull, -): string { - return JSON.stringify( - L1ValidatorDetailsFull$outboundSchema.parse(l1ValidatorDetailsFull), - ); -} - -export function l1ValidatorDetailsFullFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => L1ValidatorDetailsFull$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'L1ValidatorDetailsFull' from JSON`, - ); -} diff --git a/data/src/models/components/l1validatordetailstransaction.ts b/data/src/models/components/l1validatordetailstransaction.ts deleted file mode 100644 index ec2effc7..00000000 --- a/data/src/models/components/l1validatordetailstransaction.ts +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type L1ValidatorDetailsTransactionBlsCredentials = {}; - -export type L1ValidatorDetailsTransaction = { - /** - * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. - */ - validationId: string; - /** - * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format - */ - validationIdHex: string; - nodeId: string; - subnetId: string; - /** - * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid - */ - weight: number; - /** - * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx - */ - remainingBalance: number; - /** - * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative - */ - balanceChange?: number | undefined; - blsCredentials?: L1ValidatorDetailsTransactionBlsCredentials | undefined; -}; - -/** @internal */ -export const L1ValidatorDetailsTransactionBlsCredentials$inboundSchema: - z.ZodType< - L1ValidatorDetailsTransactionBlsCredentials, - z.ZodTypeDef, - unknown - > = z.object({}); - -/** @internal */ -export type L1ValidatorDetailsTransactionBlsCredentials$Outbound = {}; - -/** @internal */ -export const L1ValidatorDetailsTransactionBlsCredentials$outboundSchema: - z.ZodType< - L1ValidatorDetailsTransactionBlsCredentials$Outbound, - z.ZodTypeDef, - L1ValidatorDetailsTransactionBlsCredentials - > = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace L1ValidatorDetailsTransactionBlsCredentials$ { - /** @deprecated use `L1ValidatorDetailsTransactionBlsCredentials$inboundSchema` instead. */ - export const inboundSchema = - L1ValidatorDetailsTransactionBlsCredentials$inboundSchema; - /** @deprecated use `L1ValidatorDetailsTransactionBlsCredentials$outboundSchema` instead. */ - export const outboundSchema = - L1ValidatorDetailsTransactionBlsCredentials$outboundSchema; - /** @deprecated use `L1ValidatorDetailsTransactionBlsCredentials$Outbound` instead. */ - export type Outbound = L1ValidatorDetailsTransactionBlsCredentials$Outbound; -} - -export function l1ValidatorDetailsTransactionBlsCredentialsToJSON( - l1ValidatorDetailsTransactionBlsCredentials: - L1ValidatorDetailsTransactionBlsCredentials, -): string { - return JSON.stringify( - L1ValidatorDetailsTransactionBlsCredentials$outboundSchema.parse( - l1ValidatorDetailsTransactionBlsCredentials, - ), - ); -} - -export function l1ValidatorDetailsTransactionBlsCredentialsFromJSON( - jsonString: string, -): SafeParseResult< - L1ValidatorDetailsTransactionBlsCredentials, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - L1ValidatorDetailsTransactionBlsCredentials$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'L1ValidatorDetailsTransactionBlsCredentials' from JSON`, - ); -} - -/** @internal */ -export const L1ValidatorDetailsTransaction$inboundSchema: z.ZodType< - L1ValidatorDetailsTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - validationId: z.string(), - validationIdHex: z.string(), - nodeId: z.string(), - subnetId: z.string(), - weight: z.number(), - remainingBalance: z.number(), - balanceChange: z.number().optional(), - blsCredentials: z.lazy(() => - L1ValidatorDetailsTransactionBlsCredentials$inboundSchema - ).optional(), -}); - -/** @internal */ -export type L1ValidatorDetailsTransaction$Outbound = { - validationId: string; - validationIdHex: string; - nodeId: string; - subnetId: string; - weight: number; - remainingBalance: number; - balanceChange?: number | undefined; - blsCredentials?: - | L1ValidatorDetailsTransactionBlsCredentials$Outbound - | undefined; -}; - -/** @internal */ -export const L1ValidatorDetailsTransaction$outboundSchema: z.ZodType< - L1ValidatorDetailsTransaction$Outbound, - z.ZodTypeDef, - L1ValidatorDetailsTransaction -> = z.object({ - validationId: z.string(), - validationIdHex: z.string(), - nodeId: z.string(), - subnetId: z.string(), - weight: z.number(), - remainingBalance: z.number(), - balanceChange: z.number().optional(), - blsCredentials: z.lazy(() => - L1ValidatorDetailsTransactionBlsCredentials$outboundSchema - ).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace L1ValidatorDetailsTransaction$ { - /** @deprecated use `L1ValidatorDetailsTransaction$inboundSchema` instead. */ - export const inboundSchema = L1ValidatorDetailsTransaction$inboundSchema; - /** @deprecated use `L1ValidatorDetailsTransaction$outboundSchema` instead. */ - export const outboundSchema = L1ValidatorDetailsTransaction$outboundSchema; - /** @deprecated use `L1ValidatorDetailsTransaction$Outbound` instead. */ - export type Outbound = L1ValidatorDetailsTransaction$Outbound; -} - -export function l1ValidatorDetailsTransactionToJSON( - l1ValidatorDetailsTransaction: L1ValidatorDetailsTransaction, -): string { - return JSON.stringify( - L1ValidatorDetailsTransaction$outboundSchema.parse( - l1ValidatorDetailsTransaction, - ), - ); -} - -export function l1ValidatorDetailsTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => L1ValidatorDetailsTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'L1ValidatorDetailsTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/l1validatormanagerdetails.ts b/data/src/models/components/l1validatormanagerdetails.ts deleted file mode 100644 index 98bc57a7..00000000 --- a/data/src/models/components/l1validatormanagerdetails.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type L1ValidatorManagerDetails = { - blockchainId: string; - contractAddress: string; -}; - -/** @internal */ -export const L1ValidatorManagerDetails$inboundSchema: z.ZodType< - L1ValidatorManagerDetails, - z.ZodTypeDef, - unknown -> = z.object({ - blockchainId: z.string(), - contractAddress: z.string(), -}); - -/** @internal */ -export type L1ValidatorManagerDetails$Outbound = { - blockchainId: string; - contractAddress: string; -}; - -/** @internal */ -export const L1ValidatorManagerDetails$outboundSchema: z.ZodType< - L1ValidatorManagerDetails$Outbound, - z.ZodTypeDef, - L1ValidatorManagerDetails -> = z.object({ - blockchainId: z.string(), - contractAddress: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace L1ValidatorManagerDetails$ { - /** @deprecated use `L1ValidatorManagerDetails$inboundSchema` instead. */ - export const inboundSchema = L1ValidatorManagerDetails$inboundSchema; - /** @deprecated use `L1ValidatorManagerDetails$outboundSchema` instead. */ - export const outboundSchema = L1ValidatorManagerDetails$outboundSchema; - /** @deprecated use `L1ValidatorManagerDetails$Outbound` instead. */ - export type Outbound = L1ValidatorManagerDetails$Outbound; -} - -export function l1ValidatorManagerDetailsToJSON( - l1ValidatorManagerDetails: L1ValidatorManagerDetails, -): string { - return JSON.stringify( - L1ValidatorManagerDetails$outboundSchema.parse(l1ValidatorManagerDetails), - ); -} - -export function l1ValidatorManagerDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => L1ValidatorManagerDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'L1ValidatorManagerDetails' from JSON`, - ); -} diff --git a/data/src/models/components/listaddresschainsresponse.ts b/data/src/models/components/listaddresschainsresponse.ts deleted file mode 100644 index fc8bf0dd..00000000 --- a/data/src/models/components/listaddresschainsresponse.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainInfo, - ChainInfo$inboundSchema, - ChainInfo$Outbound, - ChainInfo$outboundSchema, -} from "./chaininfo.js"; - -export type ListAddressChainsResponse = { - indexedChains?: Array | undefined; - unindexedChains?: Array | undefined; -}; - -/** @internal */ -export const ListAddressChainsResponse$inboundSchema: z.ZodType< - ListAddressChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - indexedChains: z.array(ChainInfo$inboundSchema).optional(), - unindexedChains: z.array(z.string()).optional(), -}); - -/** @internal */ -export type ListAddressChainsResponse$Outbound = { - indexedChains?: Array | undefined; - unindexedChains?: Array | undefined; -}; - -/** @internal */ -export const ListAddressChainsResponse$outboundSchema: z.ZodType< - ListAddressChainsResponse$Outbound, - z.ZodTypeDef, - ListAddressChainsResponse -> = z.object({ - indexedChains: z.array(ChainInfo$outboundSchema).optional(), - unindexedChains: z.array(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 ListAddressChainsResponse$ { - /** @deprecated use `ListAddressChainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListAddressChainsResponse$inboundSchema; - /** @deprecated use `ListAddressChainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListAddressChainsResponse$outboundSchema; - /** @deprecated use `ListAddressChainsResponse$Outbound` instead. */ - export type Outbound = ListAddressChainsResponse$Outbound; -} - -export function listAddressChainsResponseToJSON( - listAddressChainsResponse: ListAddressChainsResponse, -): string { - return JSON.stringify( - ListAddressChainsResponse$outboundSchema.parse(listAddressChainsResponse), - ); -} - -export function listAddressChainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAddressChainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAddressChainsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listblockchainsresponse.ts b/data/src/models/components/listblockchainsresponse.ts deleted file mode 100644 index 8d1c365c..00000000 --- a/data/src/models/components/listblockchainsresponse.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Blockchain, - Blockchain$inboundSchema, - Blockchain$Outbound, - Blockchain$outboundSchema, -} from "./blockchain.js"; - -export type ListBlockchainsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - blockchains: Array; -}; - -/** @internal */ -export const ListBlockchainsResponse$inboundSchema: z.ZodType< - ListBlockchainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - blockchains: z.array(Blockchain$inboundSchema), -}); - -/** @internal */ -export type ListBlockchainsResponse$Outbound = { - nextPageToken?: string | undefined; - blockchains: Array; -}; - -/** @internal */ -export const ListBlockchainsResponse$outboundSchema: z.ZodType< - ListBlockchainsResponse$Outbound, - z.ZodTypeDef, - ListBlockchainsResponse -> = z.object({ - nextPageToken: z.string().optional(), - blockchains: z.array(Blockchain$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBlockchainsResponse$ { - /** @deprecated use `ListBlockchainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListBlockchainsResponse$inboundSchema; - /** @deprecated use `ListBlockchainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListBlockchainsResponse$outboundSchema; - /** @deprecated use `ListBlockchainsResponse$Outbound` instead. */ - export type Outbound = ListBlockchainsResponse$Outbound; -} - -export function listBlockchainsResponseToJSON( - listBlockchainsResponse: ListBlockchainsResponse, -): string { - return JSON.stringify( - ListBlockchainsResponse$outboundSchema.parse(listBlockchainsResponse), - ); -} - -export function listBlockchainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListBlockchainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListBlockchainsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listcchainatomicbalancesresponse.ts b/data/src/models/components/listcchainatomicbalancesresponse.ts deleted file mode 100644 index 7817e93a..00000000 --- a/data/src/models/components/listcchainatomicbalancesresponse.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CChainAtomicBalances, - CChainAtomicBalances$inboundSchema, - CChainAtomicBalances$Outbound, - CChainAtomicBalances$outboundSchema, -} from "./cchainatomicbalances.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListCChainAtomicBalancesResponse = { - balances: CChainAtomicBalances; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListCChainAtomicBalancesResponse$inboundSchema: z.ZodType< - ListCChainAtomicBalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - balances: CChainAtomicBalances$inboundSchema, - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListCChainAtomicBalancesResponse$Outbound = { - balances: CChainAtomicBalances$Outbound; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListCChainAtomicBalancesResponse$outboundSchema: z.ZodType< - ListCChainAtomicBalancesResponse$Outbound, - z.ZodTypeDef, - ListCChainAtomicBalancesResponse -> = z.object({ - balances: CChainAtomicBalances$outboundSchema, - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCChainAtomicBalancesResponse$ { - /** @deprecated use `ListCChainAtomicBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListCChainAtomicBalancesResponse$inboundSchema; - /** @deprecated use `ListCChainAtomicBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListCChainAtomicBalancesResponse$outboundSchema; - /** @deprecated use `ListCChainAtomicBalancesResponse$Outbound` instead. */ - export type Outbound = ListCChainAtomicBalancesResponse$Outbound; -} - -export function listCChainAtomicBalancesResponseToJSON( - listCChainAtomicBalancesResponse: ListCChainAtomicBalancesResponse, -): string { - return JSON.stringify( - ListCChainAtomicBalancesResponse$outboundSchema.parse( - listCChainAtomicBalancesResponse, - ), - ); -} - -export function listCChainAtomicBalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListCChainAtomicBalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCChainAtomicBalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listcchainatomictransactionsresponse.ts b/data/src/models/components/listcchainatomictransactionsresponse.ts deleted file mode 100644 index 50b9b336..00000000 --- a/data/src/models/components/listcchainatomictransactionsresponse.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CChainExportTransaction, - CChainExportTransaction$inboundSchema, - CChainExportTransaction$Outbound, - CChainExportTransaction$outboundSchema, -} from "./cchainexporttransaction.js"; -import { - CChainImportTransaction, - CChainImportTransaction$inboundSchema, - CChainImportTransaction$Outbound, - CChainImportTransaction$outboundSchema, -} from "./cchainimporttransaction.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListCChainAtomicTransactionsResponseTransaction = - | CChainExportTransaction - | CChainImportTransaction; - -export type ListCChainAtomicTransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListCChainAtomicTransactionsResponseTransaction$inboundSchema: - z.ZodType< - ListCChainAtomicTransactionsResponseTransaction, - z.ZodTypeDef, - unknown - > = z.union([ - CChainExportTransaction$inboundSchema, - CChainImportTransaction$inboundSchema, - ]); - -/** @internal */ -export type ListCChainAtomicTransactionsResponseTransaction$Outbound = - | CChainExportTransaction$Outbound - | CChainImportTransaction$Outbound; - -/** @internal */ -export const ListCChainAtomicTransactionsResponseTransaction$outboundSchema: - z.ZodType< - ListCChainAtomicTransactionsResponseTransaction$Outbound, - z.ZodTypeDef, - ListCChainAtomicTransactionsResponseTransaction - > = z.union([ - CChainExportTransaction$outboundSchema, - CChainImportTransaction$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCChainAtomicTransactionsResponseTransaction$ { - /** @deprecated use `ListCChainAtomicTransactionsResponseTransaction$inboundSchema` instead. */ - export const inboundSchema = - ListCChainAtomicTransactionsResponseTransaction$inboundSchema; - /** @deprecated use `ListCChainAtomicTransactionsResponseTransaction$outboundSchema` instead. */ - export const outboundSchema = - ListCChainAtomicTransactionsResponseTransaction$outboundSchema; - /** @deprecated use `ListCChainAtomicTransactionsResponseTransaction$Outbound` instead. */ - export type Outbound = - ListCChainAtomicTransactionsResponseTransaction$Outbound; -} - -export function listCChainAtomicTransactionsResponseTransactionToJSON( - listCChainAtomicTransactionsResponseTransaction: - ListCChainAtomicTransactionsResponseTransaction, -): string { - return JSON.stringify( - ListCChainAtomicTransactionsResponseTransaction$outboundSchema.parse( - listCChainAtomicTransactionsResponseTransaction, - ), - ); -} - -export function listCChainAtomicTransactionsResponseTransactionFromJSON( - jsonString: string, -): SafeParseResult< - ListCChainAtomicTransactionsResponseTransaction, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListCChainAtomicTransactionsResponseTransaction$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListCChainAtomicTransactionsResponseTransaction' from JSON`, - ); -} - -/** @internal */ -export const ListCChainAtomicTransactionsResponse$inboundSchema: z.ZodType< - ListCChainAtomicTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array( - z.union([ - CChainExportTransaction$inboundSchema, - CChainImportTransaction$inboundSchema, - ]), - ), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListCChainAtomicTransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array< - CChainExportTransaction$Outbound | CChainImportTransaction$Outbound - >; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListCChainAtomicTransactionsResponse$outboundSchema: z.ZodType< - ListCChainAtomicTransactionsResponse$Outbound, - z.ZodTypeDef, - ListCChainAtomicTransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array( - z.union([ - CChainExportTransaction$outboundSchema, - CChainImportTransaction$outboundSchema, - ]), - ), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCChainAtomicTransactionsResponse$ { - /** @deprecated use `ListCChainAtomicTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListCChainAtomicTransactionsResponse$inboundSchema; - /** @deprecated use `ListCChainAtomicTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListCChainAtomicTransactionsResponse$outboundSchema; - /** @deprecated use `ListCChainAtomicTransactionsResponse$Outbound` instead. */ - export type Outbound = ListCChainAtomicTransactionsResponse$Outbound; -} - -export function listCChainAtomicTransactionsResponseToJSON( - listCChainAtomicTransactionsResponse: ListCChainAtomicTransactionsResponse, -): string { - return JSON.stringify( - ListCChainAtomicTransactionsResponse$outboundSchema.parse( - listCChainAtomicTransactionsResponse, - ), - ); -} - -export function listCChainAtomicTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListCChainAtomicTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCChainAtomicTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listchainsresponse.ts b/data/src/models/components/listchainsresponse.ts deleted file mode 100644 index b78c23a9..00000000 --- a/data/src/models/components/listchainsresponse.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainInfo, - ChainInfo$inboundSchema, - ChainInfo$Outbound, - ChainInfo$outboundSchema, -} from "./chaininfo.js"; - -export type ListChainsResponse = { - chains: Array; -}; - -/** @internal */ -export const ListChainsResponse$inboundSchema: z.ZodType< - ListChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - chains: z.array(ChainInfo$inboundSchema), -}); - -/** @internal */ -export type ListChainsResponse$Outbound = { - chains: Array; -}; - -/** @internal */ -export const ListChainsResponse$outboundSchema: z.ZodType< - ListChainsResponse$Outbound, - z.ZodTypeDef, - ListChainsResponse -> = z.object({ - chains: z.array(ChainInfo$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListChainsResponse$ { - /** @deprecated use `ListChainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListChainsResponse$inboundSchema; - /** @deprecated use `ListChainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListChainsResponse$outboundSchema; - /** @deprecated use `ListChainsResponse$Outbound` instead. */ - export type Outbound = ListChainsResponse$Outbound; -} - -export function listChainsResponseToJSON( - listChainsResponse: ListChainsResponse, -): string { - return JSON.stringify( - ListChainsResponse$outboundSchema.parse(listChainsResponse), - ); -} - -export function listChainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListChainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListChainsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listcollectiblebalancesresponse.ts b/data/src/models/components/listcollectiblebalancesresponse.ts deleted file mode 100644 index 234b1070..00000000 --- a/data/src/models/components/listcollectiblebalancesresponse.ts +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TokenBalance, - Erc1155TokenBalance$inboundSchema, - Erc1155TokenBalance$Outbound, - Erc1155TokenBalance$outboundSchema, -} from "./erc1155tokenbalance.js"; -import { - Erc721TokenBalance, - Erc721TokenBalance$inboundSchema, - Erc721TokenBalance$Outbound, - Erc721TokenBalance$outboundSchema, -} from "./erc721tokenbalance.js"; - -export type CollectibleBalance = Erc721TokenBalance | Erc1155TokenBalance; - -export type ListCollectibleBalancesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The list of ERC-721 and ERC-1155 token balances for the address. - */ - collectibleBalances: Array; -}; - -/** @internal */ -export const CollectibleBalance$inboundSchema: z.ZodType< - CollectibleBalance, - z.ZodTypeDef, - unknown -> = z.union([ - Erc721TokenBalance$inboundSchema, - Erc1155TokenBalance$inboundSchema, -]); - -/** @internal */ -export type CollectibleBalance$Outbound = - | Erc721TokenBalance$Outbound - | Erc1155TokenBalance$Outbound; - -/** @internal */ -export const CollectibleBalance$outboundSchema: z.ZodType< - CollectibleBalance$Outbound, - z.ZodTypeDef, - CollectibleBalance -> = z.union([ - Erc721TokenBalance$outboundSchema, - Erc1155TokenBalance$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CollectibleBalance$ { - /** @deprecated use `CollectibleBalance$inboundSchema` instead. */ - export const inboundSchema = CollectibleBalance$inboundSchema; - /** @deprecated use `CollectibleBalance$outboundSchema` instead. */ - export const outboundSchema = CollectibleBalance$outboundSchema; - /** @deprecated use `CollectibleBalance$Outbound` instead. */ - export type Outbound = CollectibleBalance$Outbound; -} - -export function collectibleBalanceToJSON( - collectibleBalance: CollectibleBalance, -): string { - return JSON.stringify( - CollectibleBalance$outboundSchema.parse(collectibleBalance), - ); -} - -export function collectibleBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CollectibleBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CollectibleBalance' from JSON`, - ); -} - -/** @internal */ -export const ListCollectibleBalancesResponse$inboundSchema: z.ZodType< - ListCollectibleBalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - collectibleBalances: z.array( - z.union([ - Erc721TokenBalance$inboundSchema, - Erc1155TokenBalance$inboundSchema, - ]), - ), -}); - -/** @internal */ -export type ListCollectibleBalancesResponse$Outbound = { - nextPageToken?: string | undefined; - collectibleBalances: Array< - Erc721TokenBalance$Outbound | Erc1155TokenBalance$Outbound - >; -}; - -/** @internal */ -export const ListCollectibleBalancesResponse$outboundSchema: z.ZodType< - ListCollectibleBalancesResponse$Outbound, - z.ZodTypeDef, - ListCollectibleBalancesResponse -> = z.object({ - nextPageToken: z.string().optional(), - collectibleBalances: z.array( - z.union([ - Erc721TokenBalance$outboundSchema, - Erc1155TokenBalance$outboundSchema, - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCollectibleBalancesResponse$ { - /** @deprecated use `ListCollectibleBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListCollectibleBalancesResponse$inboundSchema; - /** @deprecated use `ListCollectibleBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListCollectibleBalancesResponse$outboundSchema; - /** @deprecated use `ListCollectibleBalancesResponse$Outbound` instead. */ - export type Outbound = ListCollectibleBalancesResponse$Outbound; -} - -export function listCollectibleBalancesResponseToJSON( - listCollectibleBalancesResponse: ListCollectibleBalancesResponse, -): string { - return JSON.stringify( - ListCollectibleBalancesResponse$outboundSchema.parse( - listCollectibleBalancesResponse, - ), - ); -} - -export function listCollectibleBalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListCollectibleBalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCollectibleBalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listcontractsresponse.ts b/data/src/models/components/listcontractsresponse.ts deleted file mode 100644 index a0e547f0..00000000 --- a/data/src/models/components/listcontractsresponse.ts +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Contract, - Erc1155Contract$inboundSchema, - Erc1155Contract$Outbound, - Erc1155Contract$outboundSchema, -} from "./erc1155contract.js"; -import { - Erc20Contract, - Erc20Contract$inboundSchema, - Erc20Contract$Outbound, - Erc20Contract$outboundSchema, -} from "./erc20contract.js"; -import { - Erc721Contract, - Erc721Contract$inboundSchema, - Erc721Contract$Outbound, - Erc721Contract$outboundSchema, -} from "./erc721contract.js"; -import { - UnknownContract, - UnknownContract$inboundSchema, - UnknownContract$Outbound, - UnknownContract$outboundSchema, -} from "./unknowncontract.js"; - -export type Contract = - | (Erc20Contract & { ercType: "ERC-20" }) - | (Erc721Contract & { ercType: "ERC-721" }) - | (Erc1155Contract & { ercType: "ERC-1155" }) - | (UnknownContract & { ercType: "UNKNOWN" }); - -export type ListContractsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - contracts: Array< - | (Erc20Contract & { ercType: "ERC-20" }) - | (Erc721Contract & { ercType: "ERC-721" }) - | (Erc1155Contract & { ercType: "ERC-1155" }) - | (UnknownContract & { ercType: "UNKNOWN" }) - >; -}; - -/** @internal */ -export const Contract$inboundSchema: z.ZodType< - Contract, - z.ZodTypeDef, - unknown -> = z.union([ - Erc20Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc721Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc1155Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - UnknownContract$inboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** @internal */ -export type Contract$Outbound = - | (Erc20Contract$Outbound & { ercType: "ERC-20" }) - | (Erc721Contract$Outbound & { ercType: "ERC-721" }) - | (Erc1155Contract$Outbound & { ercType: "ERC-1155" }) - | (UnknownContract$Outbound & { ercType: "UNKNOWN" }); - -/** @internal */ -export const Contract$outboundSchema: z.ZodType< - Contract$Outbound, - z.ZodTypeDef, - Contract -> = z.union([ - Erc20Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc721Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc1155Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - UnknownContract$outboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Contract$ { - /** @deprecated use `Contract$inboundSchema` instead. */ - export const inboundSchema = Contract$inboundSchema; - /** @deprecated use `Contract$outboundSchema` instead. */ - export const outboundSchema = Contract$outboundSchema; - /** @deprecated use `Contract$Outbound` instead. */ - export type Outbound = Contract$Outbound; -} - -export function contractToJSON(contract: Contract): string { - return JSON.stringify(Contract$outboundSchema.parse(contract)); -} - -export function contractFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Contract$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Contract' from JSON`, - ); -} - -/** @internal */ -export const ListContractsResponse$inboundSchema: z.ZodType< - ListContractsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - contracts: z.array( - z.union([ - Erc20Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc721Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc1155Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - UnknownContract$inboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - ]), - ), -}); - -/** @internal */ -export type ListContractsResponse$Outbound = { - nextPageToken?: string | undefined; - contracts: Array< - | (Erc20Contract$Outbound & { ercType: "ERC-20" }) - | (Erc721Contract$Outbound & { ercType: "ERC-721" }) - | (Erc1155Contract$Outbound & { ercType: "ERC-1155" }) - | (UnknownContract$Outbound & { ercType: "UNKNOWN" }) - >; -}; - -/** @internal */ -export const ListContractsResponse$outboundSchema: z.ZodType< - ListContractsResponse$Outbound, - z.ZodTypeDef, - ListContractsResponse -> = z.object({ - nextPageToken: z.string().optional(), - contracts: z.array( - z.union([ - Erc20Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc721Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - Erc1155Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - UnknownContract$outboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContractsResponse$ { - /** @deprecated use `ListContractsResponse$inboundSchema` instead. */ - export const inboundSchema = ListContractsResponse$inboundSchema; - /** @deprecated use `ListContractsResponse$outboundSchema` instead. */ - export const outboundSchema = ListContractsResponse$outboundSchema; - /** @deprecated use `ListContractsResponse$Outbound` instead. */ - export type Outbound = ListContractsResponse$Outbound; -} - -export function listContractsResponseToJSON( - listContractsResponse: ListContractsResponse, -): string { - return JSON.stringify( - ListContractsResponse$outboundSchema.parse(listContractsResponse), - ); -} - -export function listContractsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContractsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContractsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listdelegatordetailsresponse.ts b/data/src/models/components/listdelegatordetailsresponse.ts deleted file mode 100644 index 955fc9f7..00000000 --- a/data/src/models/components/listdelegatordetailsresponse.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ActiveDelegatorDetails, - ActiveDelegatorDetails$inboundSchema, - ActiveDelegatorDetails$Outbound, - ActiveDelegatorDetails$outboundSchema, -} from "./activedelegatordetails.js"; -import { - CompletedDelegatorDetails, - CompletedDelegatorDetails$inboundSchema, - CompletedDelegatorDetails$Outbound, - CompletedDelegatorDetails$outboundSchema, -} from "./completeddelegatordetails.js"; -import { - PendingDelegatorDetails, - PendingDelegatorDetails$inboundSchema, - PendingDelegatorDetails$Outbound, - PendingDelegatorDetails$outboundSchema, -} from "./pendingdelegatordetails.js"; - -export type Delegator = - | (ActiveDelegatorDetails & { delegationStatus: "active" }) - | (PendingDelegatorDetails & { delegationStatus: "pending" }) - | (CompletedDelegatorDetails & { delegationStatus: "completed" }); - -export type ListDelegatorDetailsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The list of Delegator Details. - */ - delegators: Array< - | (ActiveDelegatorDetails & { delegationStatus: "active" }) - | (PendingDelegatorDetails & { delegationStatus: "pending" }) - | (CompletedDelegatorDetails & { delegationStatus: "completed" }) - >; -}; - -/** @internal */ -export const Delegator$inboundSchema: z.ZodType< - Delegator, - z.ZodTypeDef, - unknown -> = z.union([ - ActiveDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("active") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - PendingDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("pending") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - CompletedDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("completed") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), -]); - -/** @internal */ -export type Delegator$Outbound = - | (ActiveDelegatorDetails$Outbound & { delegationStatus: "active" }) - | (PendingDelegatorDetails$Outbound & { delegationStatus: "pending" }) - | (CompletedDelegatorDetails$Outbound & { delegationStatus: "completed" }); - -/** @internal */ -export const Delegator$outboundSchema: z.ZodType< - Delegator$Outbound, - z.ZodTypeDef, - Delegator -> = z.union([ - ActiveDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("active") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - PendingDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("pending") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - CompletedDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("completed") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Delegator$ { - /** @deprecated use `Delegator$inboundSchema` instead. */ - export const inboundSchema = Delegator$inboundSchema; - /** @deprecated use `Delegator$outboundSchema` instead. */ - export const outboundSchema = Delegator$outboundSchema; - /** @deprecated use `Delegator$Outbound` instead. */ - export type Outbound = Delegator$Outbound; -} - -export function delegatorToJSON(delegator: Delegator): string { - return JSON.stringify(Delegator$outboundSchema.parse(delegator)); -} - -export function delegatorFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Delegator$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Delegator' from JSON`, - ); -} - -/** @internal */ -export const ListDelegatorDetailsResponse$inboundSchema: z.ZodType< - ListDelegatorDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - delegators: z.array( - z.union([ - ActiveDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("active") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - PendingDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("pending") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - CompletedDelegatorDetails$inboundSchema.and( - z.object({ delegationStatus: z.literal("completed") }).transform(( - v, - ) => ({ delegationStatus: v.delegationStatus })), - ), - ]), - ), -}); - -/** @internal */ -export type ListDelegatorDetailsResponse$Outbound = { - nextPageToken?: string | undefined; - delegators: Array< - | (ActiveDelegatorDetails$Outbound & { delegationStatus: "active" }) - | (PendingDelegatorDetails$Outbound & { delegationStatus: "pending" }) - | (CompletedDelegatorDetails$Outbound & { delegationStatus: "completed" }) - >; -}; - -/** @internal */ -export const ListDelegatorDetailsResponse$outboundSchema: z.ZodType< - ListDelegatorDetailsResponse$Outbound, - z.ZodTypeDef, - ListDelegatorDetailsResponse -> = z.object({ - nextPageToken: z.string().optional(), - delegators: z.array( - z.union([ - ActiveDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("active") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - PendingDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("pending") }).transform((v) => ({ - delegationStatus: v.delegationStatus, - })), - ), - CompletedDelegatorDetails$outboundSchema.and( - z.object({ delegationStatus: z.literal("completed") }).transform(( - v, - ) => ({ delegationStatus: v.delegationStatus })), - ), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDelegatorDetailsResponse$ { - /** @deprecated use `ListDelegatorDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = ListDelegatorDetailsResponse$inboundSchema; - /** @deprecated use `ListDelegatorDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = ListDelegatorDetailsResponse$outboundSchema; - /** @deprecated use `ListDelegatorDetailsResponse$Outbound` instead. */ - export type Outbound = ListDelegatorDetailsResponse$Outbound; -} - -export function listDelegatorDetailsResponseToJSON( - listDelegatorDetailsResponse: ListDelegatorDetailsResponse, -): string { - return JSON.stringify( - ListDelegatorDetailsResponse$outboundSchema.parse( - listDelegatorDetailsResponse, - ), - ); -} - -export function listDelegatorDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDelegatorDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDelegatorDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc1155balancesresponse.ts b/data/src/models/components/listerc1155balancesresponse.ts deleted file mode 100644 index c33fd2b4..00000000 --- a/data/src/models/components/listerc1155balancesresponse.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TokenBalance, - Erc1155TokenBalance$inboundSchema, - Erc1155TokenBalance$Outbound, - Erc1155TokenBalance$outboundSchema, -} from "./erc1155tokenbalance.js"; -import { - NativeTokenBalance, - NativeTokenBalance$inboundSchema, - NativeTokenBalance$Outbound, - NativeTokenBalance$outboundSchema, -} from "./nativetokenbalance.js"; - -export type ListErc1155BalancesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The native token balance for the address. - */ - nativeTokenBalance: NativeTokenBalance; - /** - * The list of ERC-1155 token balances for the address. - */ - erc1155TokenBalances: Array; -}; - -/** @internal */ -export const ListErc1155BalancesResponse$inboundSchema: z.ZodType< - ListErc1155BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$inboundSchema, - erc1155TokenBalances: z.array(Erc1155TokenBalance$inboundSchema), -}); - -/** @internal */ -export type ListErc1155BalancesResponse$Outbound = { - nextPageToken?: string | undefined; - nativeTokenBalance: NativeTokenBalance$Outbound; - erc1155TokenBalances: Array; -}; - -/** @internal */ -export const ListErc1155BalancesResponse$outboundSchema: z.ZodType< - ListErc1155BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc1155BalancesResponse -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$outboundSchema, - erc1155TokenBalances: z.array(Erc1155TokenBalance$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc1155BalancesResponse$ { - /** @deprecated use `ListErc1155BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc1155BalancesResponse$inboundSchema; - /** @deprecated use `ListErc1155BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc1155BalancesResponse$outboundSchema; - /** @deprecated use `ListErc1155BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc1155BalancesResponse$Outbound; -} - -export function listErc1155BalancesResponseToJSON( - listErc1155BalancesResponse: ListErc1155BalancesResponse, -): string { - return JSON.stringify( - ListErc1155BalancesResponse$outboundSchema.parse( - listErc1155BalancesResponse, - ), - ); -} - -export function listErc1155BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc1155transactionsresponse.ts b/data/src/models/components/listerc1155transactionsresponse.ts deleted file mode 100644 index a9a80f46..00000000 --- a/data/src/models/components/listerc1155transactionsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Transfer, - Erc1155Transfer$inboundSchema, - Erc1155Transfer$Outbound, - Erc1155Transfer$outboundSchema, -} from "./erc1155transfer.js"; - -export type ListErc1155TransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc1155TransactionsResponse$inboundSchema: z.ZodType< - ListErc1155TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc1155Transfer$inboundSchema), -}); - -/** @internal */ -export type ListErc1155TransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc1155TransactionsResponse$outboundSchema: z.ZodType< - ListErc1155TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc1155TransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc1155Transfer$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc1155TransactionsResponse$ { - /** @deprecated use `ListErc1155TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc1155TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc1155TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc1155TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc1155TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc1155TransactionsResponse$Outbound; -} - -export function listErc1155TransactionsResponseToJSON( - listErc1155TransactionsResponse: ListErc1155TransactionsResponse, -): string { - return JSON.stringify( - ListErc1155TransactionsResponse$outboundSchema.parse( - listErc1155TransactionsResponse, - ), - ); -} - -export function listErc1155TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc20balancesresponse.ts b/data/src/models/components/listerc20balancesresponse.ts deleted file mode 100644 index bab236e9..00000000 --- a/data/src/models/components/listerc20balancesresponse.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc20TokenBalance, - Erc20TokenBalance$inboundSchema, - Erc20TokenBalance$Outbound, - Erc20TokenBalance$outboundSchema, -} from "./erc20tokenbalance.js"; -import { - NativeTokenBalance, - NativeTokenBalance$inboundSchema, - NativeTokenBalance$Outbound, - NativeTokenBalance$outboundSchema, -} from "./nativetokenbalance.js"; - -export type ListErc20BalancesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The native token balance for the address. - */ - nativeTokenBalance: NativeTokenBalance; - /** - * The list of ERC-20 token balances for the address. - */ - erc20TokenBalances: Array; -}; - -/** @internal */ -export const ListErc20BalancesResponse$inboundSchema: z.ZodType< - ListErc20BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$inboundSchema, - erc20TokenBalances: z.array(Erc20TokenBalance$inboundSchema), -}); - -/** @internal */ -export type ListErc20BalancesResponse$Outbound = { - nextPageToken?: string | undefined; - nativeTokenBalance: NativeTokenBalance$Outbound; - erc20TokenBalances: Array; -}; - -/** @internal */ -export const ListErc20BalancesResponse$outboundSchema: z.ZodType< - ListErc20BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc20BalancesResponse -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$outboundSchema, - erc20TokenBalances: z.array(Erc20TokenBalance$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20BalancesResponse$ { - /** @deprecated use `ListErc20BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc20BalancesResponse$inboundSchema; - /** @deprecated use `ListErc20BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc20BalancesResponse$outboundSchema; - /** @deprecated use `ListErc20BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc20BalancesResponse$Outbound; -} - -export function listErc20BalancesResponseToJSON( - listErc20BalancesResponse: ListErc20BalancesResponse, -): string { - return JSON.stringify( - ListErc20BalancesResponse$outboundSchema.parse(listErc20BalancesResponse), - ); -} - -export function listErc20BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc20transactionsresponse.ts b/data/src/models/components/listerc20transactionsresponse.ts deleted file mode 100644 index 8c257dc2..00000000 --- a/data/src/models/components/listerc20transactionsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc20Transfer, - Erc20Transfer$inboundSchema, - Erc20Transfer$Outbound, - Erc20Transfer$outboundSchema, -} from "./erc20transfer.js"; - -export type ListErc20TransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc20TransactionsResponse$inboundSchema: z.ZodType< - ListErc20TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc20Transfer$inboundSchema), -}); - -/** @internal */ -export type ListErc20TransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc20TransactionsResponse$outboundSchema: z.ZodType< - ListErc20TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc20TransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc20Transfer$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20TransactionsResponse$ { - /** @deprecated use `ListErc20TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc20TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc20TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc20TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc20TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc20TransactionsResponse$Outbound; -} - -export function listErc20TransactionsResponseToJSON( - listErc20TransactionsResponse: ListErc20TransactionsResponse, -): string { - return JSON.stringify( - ListErc20TransactionsResponse$outboundSchema.parse( - listErc20TransactionsResponse, - ), - ); -} - -export function listErc20TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc721balancesresponse.ts b/data/src/models/components/listerc721balancesresponse.ts deleted file mode 100644 index cb71f563..00000000 --- a/data/src/models/components/listerc721balancesresponse.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721TokenBalance, - Erc721TokenBalance$inboundSchema, - Erc721TokenBalance$Outbound, - Erc721TokenBalance$outboundSchema, -} from "./erc721tokenbalance.js"; -import { - NativeTokenBalance, - NativeTokenBalance$inboundSchema, - NativeTokenBalance$Outbound, - NativeTokenBalance$outboundSchema, -} from "./nativetokenbalance.js"; - -export type ListErc721BalancesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The native token balance for the address. - */ - nativeTokenBalance: NativeTokenBalance; - /** - * The list of ERC-721 token balances for the address. - */ - erc721TokenBalances: Array; -}; - -/** @internal */ -export const ListErc721BalancesResponse$inboundSchema: z.ZodType< - ListErc721BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$inboundSchema, - erc721TokenBalances: z.array(Erc721TokenBalance$inboundSchema), -}); - -/** @internal */ -export type ListErc721BalancesResponse$Outbound = { - nextPageToken?: string | undefined; - nativeTokenBalance: NativeTokenBalance$Outbound; - erc721TokenBalances: Array; -}; - -/** @internal */ -export const ListErc721BalancesResponse$outboundSchema: z.ZodType< - ListErc721BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc721BalancesResponse -> = z.object({ - nextPageToken: z.string().optional(), - nativeTokenBalance: NativeTokenBalance$outboundSchema, - erc721TokenBalances: z.array(Erc721TokenBalance$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc721BalancesResponse$ { - /** @deprecated use `ListErc721BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc721BalancesResponse$inboundSchema; - /** @deprecated use `ListErc721BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc721BalancesResponse$outboundSchema; - /** @deprecated use `ListErc721BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc721BalancesResponse$Outbound; -} - -export function listErc721BalancesResponseToJSON( - listErc721BalancesResponse: ListErc721BalancesResponse, -): string { - return JSON.stringify( - ListErc721BalancesResponse$outboundSchema.parse(listErc721BalancesResponse), - ); -} - -export function listErc721BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listerc721transactionsresponse.ts b/data/src/models/components/listerc721transactionsresponse.ts deleted file mode 100644 index d570fed0..00000000 --- a/data/src/models/components/listerc721transactionsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc721Transfer, - Erc721Transfer$inboundSchema, - Erc721Transfer$Outbound, - Erc721Transfer$outboundSchema, -} from "./erc721transfer.js"; - -export type ListErc721TransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc721TransactionsResponse$inboundSchema: z.ZodType< - ListErc721TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc721Transfer$inboundSchema), -}); - -/** @internal */ -export type ListErc721TransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListErc721TransactionsResponse$outboundSchema: z.ZodType< - ListErc721TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc721TransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(Erc721Transfer$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc721TransactionsResponse$ { - /** @deprecated use `ListErc721TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc721TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc721TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc721TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc721TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc721TransactionsResponse$Outbound; -} - -export function listErc721TransactionsResponseToJSON( - listErc721TransactionsResponse: ListErc721TransactionsResponse, -): string { - return JSON.stringify( - ListErc721TransactionsResponse$outboundSchema.parse( - listErc721TransactionsResponse, - ), - ); -} - -export function listErc721TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listevmblocksresponse.ts b/data/src/models/components/listevmblocksresponse.ts deleted file mode 100644 index a260e0fd..00000000 --- a/data/src/models/components/listevmblocksresponse.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - EvmBlock, - EvmBlock$inboundSchema, - EvmBlock$Outbound, - EvmBlock$outboundSchema, -} from "./evmblock.js"; - -export type ListEvmBlocksResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - blocks: Array; -}; - -/** @internal */ -export const ListEvmBlocksResponse$inboundSchema: z.ZodType< - ListEvmBlocksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - blocks: z.array(EvmBlock$inboundSchema), -}); - -/** @internal */ -export type ListEvmBlocksResponse$Outbound = { - nextPageToken?: string | undefined; - blocks: Array; -}; - -/** @internal */ -export const ListEvmBlocksResponse$outboundSchema: z.ZodType< - ListEvmBlocksResponse$Outbound, - z.ZodTypeDef, - ListEvmBlocksResponse -> = z.object({ - nextPageToken: z.string().optional(), - blocks: z.array(EvmBlock$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListEvmBlocksResponse$ { - /** @deprecated use `ListEvmBlocksResponse$inboundSchema` instead. */ - export const inboundSchema = ListEvmBlocksResponse$inboundSchema; - /** @deprecated use `ListEvmBlocksResponse$outboundSchema` instead. */ - export const outboundSchema = ListEvmBlocksResponse$outboundSchema; - /** @deprecated use `ListEvmBlocksResponse$Outbound` instead. */ - export type Outbound = ListEvmBlocksResponse$Outbound; -} - -export function listEvmBlocksResponseToJSON( - listEvmBlocksResponse: ListEvmBlocksResponse, -): string { - return JSON.stringify( - ListEvmBlocksResponse$outboundSchema.parse(listEvmBlocksResponse), - ); -} - -export function listEvmBlocksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListEvmBlocksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListEvmBlocksResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listhistoricalrewardsresponse.ts b/data/src/models/components/listhistoricalrewardsresponse.ts deleted file mode 100644 index de608cc4..00000000 --- a/data/src/models/components/listhistoricalrewardsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HistoricalReward, - HistoricalReward$inboundSchema, - HistoricalReward$Outbound, - HistoricalReward$outboundSchema, -} from "./historicalreward.js"; - -export type ListHistoricalRewardsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - historicalRewards: Array; -}; - -/** @internal */ -export const ListHistoricalRewardsResponse$inboundSchema: z.ZodType< - ListHistoricalRewardsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - historicalRewards: z.array(HistoricalReward$inboundSchema), -}); - -/** @internal */ -export type ListHistoricalRewardsResponse$Outbound = { - nextPageToken?: string | undefined; - historicalRewards: Array; -}; - -/** @internal */ -export const ListHistoricalRewardsResponse$outboundSchema: z.ZodType< - ListHistoricalRewardsResponse$Outbound, - z.ZodTypeDef, - ListHistoricalRewardsResponse -> = z.object({ - nextPageToken: z.string().optional(), - historicalRewards: z.array(HistoricalReward$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHistoricalRewardsResponse$ { - /** @deprecated use `ListHistoricalRewardsResponse$inboundSchema` instead. */ - export const inboundSchema = ListHistoricalRewardsResponse$inboundSchema; - /** @deprecated use `ListHistoricalRewardsResponse$outboundSchema` instead. */ - export const outboundSchema = ListHistoricalRewardsResponse$outboundSchema; - /** @deprecated use `ListHistoricalRewardsResponse$Outbound` instead. */ - export type Outbound = ListHistoricalRewardsResponse$Outbound; -} - -export function listHistoricalRewardsResponseToJSON( - listHistoricalRewardsResponse: ListHistoricalRewardsResponse, -): string { - return JSON.stringify( - ListHistoricalRewardsResponse$outboundSchema.parse( - listHistoricalRewardsResponse, - ), - ); -} - -export function listHistoricalRewardsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListHistoricalRewardsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListHistoricalRewardsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listicmmessagesresponse.ts b/data/src/models/components/listicmmessagesresponse.ts deleted file mode 100644 index a565bffc..00000000 --- a/data/src/models/components/listicmmessagesresponse.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - DeliveredIcmMessage, - DeliveredIcmMessage$inboundSchema, - DeliveredIcmMessage$Outbound, - DeliveredIcmMessage$outboundSchema, -} from "./deliveredicmmessage.js"; -import { - DeliveredSourceNotIndexedIcmMessage, - DeliveredSourceNotIndexedIcmMessage$inboundSchema, - DeliveredSourceNotIndexedIcmMessage$Outbound, - DeliveredSourceNotIndexedIcmMessage$outboundSchema, -} from "./deliveredsourcenotindexedicmmessage.js"; -import { - PendingIcmMessage, - PendingIcmMessage$inboundSchema, - PendingIcmMessage$Outbound, - PendingIcmMessage$outboundSchema, -} from "./pendingicmmessage.js"; - -export type ListIcmMessagesResponseMessage = - | (DeliveredIcmMessage & { status: "delivered" }) - | (PendingIcmMessage & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage & { - status: "delivered_source_not_indexed"; - }); - -export type ListIcmMessagesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - messages: Array< - | (DeliveredIcmMessage & { status: "delivered" }) - | (PendingIcmMessage & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage & { - status: "delivered_source_not_indexed"; - }) - >; -}; - -/** @internal */ -export const ListIcmMessagesResponseMessage$inboundSchema: z.ZodType< - ListIcmMessagesResponseMessage, - z.ZodTypeDef, - unknown -> = z.union([ - DeliveredIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingIcmMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** @internal */ -export type ListIcmMessagesResponseMessage$Outbound = - | (DeliveredIcmMessage$Outbound & { status: "delivered" }) - | (PendingIcmMessage$Outbound & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage$Outbound & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const ListIcmMessagesResponseMessage$outboundSchema: z.ZodType< - ListIcmMessagesResponseMessage$Outbound, - z.ZodTypeDef, - ListIcmMessagesResponseMessage -> = z.union([ - DeliveredIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingIcmMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListIcmMessagesResponseMessage$ { - /** @deprecated use `ListIcmMessagesResponseMessage$inboundSchema` instead. */ - export const inboundSchema = ListIcmMessagesResponseMessage$inboundSchema; - /** @deprecated use `ListIcmMessagesResponseMessage$outboundSchema` instead. */ - export const outboundSchema = ListIcmMessagesResponseMessage$outboundSchema; - /** @deprecated use `ListIcmMessagesResponseMessage$Outbound` instead. */ - export type Outbound = ListIcmMessagesResponseMessage$Outbound; -} - -export function listIcmMessagesResponseMessageToJSON( - listIcmMessagesResponseMessage: ListIcmMessagesResponseMessage, -): string { - return JSON.stringify( - ListIcmMessagesResponseMessage$outboundSchema.parse( - listIcmMessagesResponseMessage, - ), - ); -} - -export function listIcmMessagesResponseMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListIcmMessagesResponseMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListIcmMessagesResponseMessage' from JSON`, - ); -} - -/** @internal */ -export const ListIcmMessagesResponse$inboundSchema: z.ZodType< - ListIcmMessagesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - messages: z.array( - z.union([ - DeliveredIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingIcmMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }) - .transform((v) => ({ status: v.status })), - ), - ]), - ), -}); - -/** @internal */ -export type ListIcmMessagesResponse$Outbound = { - nextPageToken?: string | undefined; - messages: Array< - | (DeliveredIcmMessage$Outbound & { status: "delivered" }) - | (PendingIcmMessage$Outbound & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage$Outbound & { - status: "delivered_source_not_indexed"; - }) - >; -}; - -/** @internal */ -export const ListIcmMessagesResponse$outboundSchema: z.ZodType< - ListIcmMessagesResponse$Outbound, - z.ZodTypeDef, - ListIcmMessagesResponse -> = z.object({ - nextPageToken: z.string().optional(), - messages: z.array( - z.union([ - DeliveredIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingIcmMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }) - .transform((v) => ({ status: v.status })), - ), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListIcmMessagesResponse$ { - /** @deprecated use `ListIcmMessagesResponse$inboundSchema` instead. */ - export const inboundSchema = ListIcmMessagesResponse$inboundSchema; - /** @deprecated use `ListIcmMessagesResponse$outboundSchema` instead. */ - export const outboundSchema = ListIcmMessagesResponse$outboundSchema; - /** @deprecated use `ListIcmMessagesResponse$Outbound` instead. */ - export type Outbound = ListIcmMessagesResponse$Outbound; -} - -export function listIcmMessagesResponseToJSON( - listIcmMessagesResponse: ListIcmMessagesResponse, -): string { - return JSON.stringify( - ListIcmMessagesResponse$outboundSchema.parse(listIcmMessagesResponse), - ); -} - -export function listIcmMessagesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListIcmMessagesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListIcmMessagesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listinternaltransactionsresponse.ts b/data/src/models/components/listinternaltransactionsresponse.ts deleted file mode 100644 index 38ec0a19..00000000 --- a/data/src/models/components/listinternaltransactionsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - InternalTransaction, - InternalTransaction$inboundSchema, - InternalTransaction$Outbound, - InternalTransaction$outboundSchema, -} from "./internaltransaction.js"; - -export type ListInternalTransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListInternalTransactionsResponse$inboundSchema: z.ZodType< - ListInternalTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(InternalTransaction$inboundSchema), -}); - -/** @internal */ -export type ListInternalTransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListInternalTransactionsResponse$outboundSchema: z.ZodType< - ListInternalTransactionsResponse$Outbound, - z.ZodTypeDef, - ListInternalTransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(InternalTransaction$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInternalTransactionsResponse$ { - /** @deprecated use `ListInternalTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListInternalTransactionsResponse$inboundSchema; - /** @deprecated use `ListInternalTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListInternalTransactionsResponse$outboundSchema; - /** @deprecated use `ListInternalTransactionsResponse$Outbound` instead. */ - export type Outbound = ListInternalTransactionsResponse$Outbound; -} - -export function listInternalTransactionsResponseToJSON( - listInternalTransactionsResponse: ListInternalTransactionsResponse, -): string { - return JSON.stringify( - ListInternalTransactionsResponse$outboundSchema.parse( - listInternalTransactionsResponse, - ), - ); -} - -export function listInternalTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListInternalTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListInternalTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listl1validatorsresponse.ts b/data/src/models/components/listl1validatorsresponse.ts deleted file mode 100644 index ec3055bc..00000000 --- a/data/src/models/components/listl1validatorsresponse.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - L1ValidatorDetailsFull, - L1ValidatorDetailsFull$inboundSchema, - L1ValidatorDetailsFull$Outbound, - L1ValidatorDetailsFull$outboundSchema, -} from "./l1validatordetailsfull.js"; - -export type ListL1ValidatorsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The list of L1 validations for the given Subnet ID, NodeId or validationId - */ - validators: Array; - /** - * Block height at which the L1 validator's remaining balance is calculated - */ - blockHeight: string; -}; - -/** @internal */ -export const ListL1ValidatorsResponse$inboundSchema: z.ZodType< - ListL1ValidatorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - validators: z.array(L1ValidatorDetailsFull$inboundSchema), - blockHeight: z.string(), -}); - -/** @internal */ -export type ListL1ValidatorsResponse$Outbound = { - nextPageToken?: string | undefined; - validators: Array; - blockHeight: string; -}; - -/** @internal */ -export const ListL1ValidatorsResponse$outboundSchema: z.ZodType< - ListL1ValidatorsResponse$Outbound, - z.ZodTypeDef, - ListL1ValidatorsResponse -> = z.object({ - nextPageToken: z.string().optional(), - validators: z.array(L1ValidatorDetailsFull$outboundSchema), - blockHeight: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListL1ValidatorsResponse$ { - /** @deprecated use `ListL1ValidatorsResponse$inboundSchema` instead. */ - export const inboundSchema = ListL1ValidatorsResponse$inboundSchema; - /** @deprecated use `ListL1ValidatorsResponse$outboundSchema` instead. */ - export const outboundSchema = ListL1ValidatorsResponse$outboundSchema; - /** @deprecated use `ListL1ValidatorsResponse$Outbound` instead. */ - export type Outbound = ListL1ValidatorsResponse$Outbound; -} - -export function listL1ValidatorsResponseToJSON( - listL1ValidatorsResponse: ListL1ValidatorsResponse, -): string { - return JSON.stringify( - ListL1ValidatorsResponse$outboundSchema.parse(listL1ValidatorsResponse), - ); -} - -export function listL1ValidatorsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListL1ValidatorsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListL1ValidatorsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listnativetransactionsresponse.ts b/data/src/models/components/listnativetransactionsresponse.ts deleted file mode 100644 index aafef3ed..00000000 --- a/data/src/models/components/listnativetransactionsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NativeTransaction, - NativeTransaction$inboundSchema, - NativeTransaction$Outbound, - NativeTransaction$outboundSchema, -} from "./nativetransaction.js"; - -export type ListNativeTransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListNativeTransactionsResponse$inboundSchema: z.ZodType< - ListNativeTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(NativeTransaction$inboundSchema), -}); - -/** @internal */ -export type ListNativeTransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListNativeTransactionsResponse$outboundSchema: z.ZodType< - ListNativeTransactionsResponse$Outbound, - z.ZodTypeDef, - ListNativeTransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(NativeTransaction$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNativeTransactionsResponse$ { - /** @deprecated use `ListNativeTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListNativeTransactionsResponse$inboundSchema; - /** @deprecated use `ListNativeTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListNativeTransactionsResponse$outboundSchema; - /** @deprecated use `ListNativeTransactionsResponse$Outbound` instead. */ - export type Outbound = ListNativeTransactionsResponse$Outbound; -} - -export function listNativeTransactionsResponseToJSON( - listNativeTransactionsResponse: ListNativeTransactionsResponse, -): string { - return JSON.stringify( - ListNativeTransactionsResponse$outboundSchema.parse( - listNativeTransactionsResponse, - ), - ); -} - -export function listNativeTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListNativeTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListNativeTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listnfttokens.ts b/data/src/models/components/listnfttokens.ts deleted file mode 100644 index f99c61e8..00000000 --- a/data/src/models/components/listnfttokens.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Token, - Erc1155Token$inboundSchema, - Erc1155Token$Outbound, - Erc1155Token$outboundSchema, -} from "./erc1155token.js"; -import { - Erc721Token, - Erc721Token$inboundSchema, - Erc721Token$Outbound, - Erc721Token$outboundSchema, -} from "./erc721token.js"; - -export type Token = Erc721Token | Erc1155Token; - -export type ListNftTokens = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - tokens: Array; -}; - -/** @internal */ -export const Token$inboundSchema: z.ZodType = z - .union([Erc721Token$inboundSchema, Erc1155Token$inboundSchema]); - -/** @internal */ -export type Token$Outbound = Erc721Token$Outbound | Erc1155Token$Outbound; - -/** @internal */ -export const Token$outboundSchema: z.ZodType< - Token$Outbound, - z.ZodTypeDef, - Token -> = z.union([Erc721Token$outboundSchema, Erc1155Token$outboundSchema]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Token$ { - /** @deprecated use `Token$inboundSchema` instead. */ - export const inboundSchema = Token$inboundSchema; - /** @deprecated use `Token$outboundSchema` instead. */ - export const outboundSchema = Token$outboundSchema; - /** @deprecated use `Token$Outbound` instead. */ - export type Outbound = Token$Outbound; -} - -export function tokenToJSON(token: Token): string { - return JSON.stringify(Token$outboundSchema.parse(token)); -} - -export function tokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Token$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Token' from JSON`, - ); -} - -/** @internal */ -export const ListNftTokens$inboundSchema: z.ZodType< - ListNftTokens, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - tokens: z.array( - z.union([Erc721Token$inboundSchema, Erc1155Token$inboundSchema]), - ), -}); - -/** @internal */ -export type ListNftTokens$Outbound = { - nextPageToken?: string | undefined; - tokens: Array; -}; - -/** @internal */ -export const ListNftTokens$outboundSchema: z.ZodType< - ListNftTokens$Outbound, - z.ZodTypeDef, - ListNftTokens -> = z.object({ - nextPageToken: z.string().optional(), - tokens: z.array( - z.union([Erc721Token$outboundSchema, Erc1155Token$outboundSchema]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNftTokens$ { - /** @deprecated use `ListNftTokens$inboundSchema` instead. */ - export const inboundSchema = ListNftTokens$inboundSchema; - /** @deprecated use `ListNftTokens$outboundSchema` instead. */ - export const outboundSchema = ListNftTokens$outboundSchema; - /** @deprecated use `ListNftTokens$Outbound` instead. */ - export type Outbound = ListNftTokens$Outbound; -} - -export function listNftTokensToJSON(listNftTokens: ListNftTokens): string { - return JSON.stringify(ListNftTokens$outboundSchema.parse(listNftTokens)); -} - -export function listNftTokensFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListNftTokens$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListNftTokens' from JSON`, - ); -} diff --git a/data/src/models/components/listpchainbalancesresponse.ts b/data/src/models/components/listpchainbalancesresponse.ts deleted file mode 100644 index dc5b37d7..00000000 --- a/data/src/models/components/listpchainbalancesresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PChainBalance, - PChainBalance$inboundSchema, - PChainBalance$Outbound, - PChainBalance$outboundSchema, -} from "./pchainbalance.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListPChainBalancesResponse = { - balances: PChainBalance; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListPChainBalancesResponse$inboundSchema: z.ZodType< - ListPChainBalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - balances: PChainBalance$inboundSchema, - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListPChainBalancesResponse$Outbound = { - balances: PChainBalance$Outbound; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListPChainBalancesResponse$outboundSchema: z.ZodType< - ListPChainBalancesResponse$Outbound, - z.ZodTypeDef, - ListPChainBalancesResponse -> = z.object({ - balances: PChainBalance$outboundSchema, - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPChainBalancesResponse$ { - /** @deprecated use `ListPChainBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListPChainBalancesResponse$inboundSchema; - /** @deprecated use `ListPChainBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListPChainBalancesResponse$outboundSchema; - /** @deprecated use `ListPChainBalancesResponse$Outbound` instead. */ - export type Outbound = ListPChainBalancesResponse$Outbound; -} - -export function listPChainBalancesResponseToJSON( - listPChainBalancesResponse: ListPChainBalancesResponse, -): string { - return JSON.stringify( - ListPChainBalancesResponse$outboundSchema.parse(listPChainBalancesResponse), - ); -} - -export function listPChainBalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPChainBalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPChainBalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listpchaintransactionsresponse.ts b/data/src/models/components/listpchaintransactionsresponse.ts deleted file mode 100644 index 8e561753..00000000 --- a/data/src/models/components/listpchaintransactionsresponse.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PChainTransaction, - PChainTransaction$inboundSchema, - PChainTransaction$Outbound, - PChainTransaction$outboundSchema, -} from "./pchaintransaction.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListPChainTransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListPChainTransactionsResponse$inboundSchema: z.ZodType< - ListPChainTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(PChainTransaction$inboundSchema), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListPChainTransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListPChainTransactionsResponse$outboundSchema: z.ZodType< - ListPChainTransactionsResponse$Outbound, - z.ZodTypeDef, - ListPChainTransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(PChainTransaction$outboundSchema), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPChainTransactionsResponse$ { - /** @deprecated use `ListPChainTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListPChainTransactionsResponse$inboundSchema; - /** @deprecated use `ListPChainTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListPChainTransactionsResponse$outboundSchema; - /** @deprecated use `ListPChainTransactionsResponse$Outbound` instead. */ - export type Outbound = ListPChainTransactionsResponse$Outbound; -} - -export function listPChainTransactionsResponseToJSON( - listPChainTransactionsResponse: ListPChainTransactionsResponse, -): string { - return JSON.stringify( - ListPChainTransactionsResponse$outboundSchema.parse( - listPChainTransactionsResponse, - ), - ); -} - -export function listPChainTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPChainTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPChainTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listpchainutxosresponse.ts b/data/src/models/components/listpchainutxosresponse.ts deleted file mode 100644 index d86090a9..00000000 --- a/data/src/models/components/listpchainutxosresponse.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PChainUtxo, - PChainUtxo$inboundSchema, - PChainUtxo$Outbound, - PChainUtxo$outboundSchema, -} from "./pchainutxo.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListPChainUtxosResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - utxos: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListPChainUtxosResponse$inboundSchema: z.ZodType< - ListPChainUtxosResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - utxos: z.array(PChainUtxo$inboundSchema), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListPChainUtxosResponse$Outbound = { - nextPageToken?: string | undefined; - utxos: Array; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListPChainUtxosResponse$outboundSchema: z.ZodType< - ListPChainUtxosResponse$Outbound, - z.ZodTypeDef, - ListPChainUtxosResponse -> = z.object({ - nextPageToken: z.string().optional(), - utxos: z.array(PChainUtxo$outboundSchema), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPChainUtxosResponse$ { - /** @deprecated use `ListPChainUtxosResponse$inboundSchema` instead. */ - export const inboundSchema = ListPChainUtxosResponse$inboundSchema; - /** @deprecated use `ListPChainUtxosResponse$outboundSchema` instead. */ - export const outboundSchema = ListPChainUtxosResponse$outboundSchema; - /** @deprecated use `ListPChainUtxosResponse$Outbound` instead. */ - export type Outbound = ListPChainUtxosResponse$Outbound; -} - -export function listPChainUtxosResponseToJSON( - listPChainUtxosResponse: ListPChainUtxosResponse, -): string { - return JSON.stringify( - ListPChainUtxosResponse$outboundSchema.parse(listPChainUtxosResponse), - ); -} - -export function listPChainUtxosResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPChainUtxosResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPChainUtxosResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listpendingrewardsresponse.ts b/data/src/models/components/listpendingrewardsresponse.ts deleted file mode 100644 index 188bd934..00000000 --- a/data/src/models/components/listpendingrewardsresponse.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PendingReward, - PendingReward$inboundSchema, - PendingReward$Outbound, - PendingReward$outboundSchema, -} from "./pendingreward.js"; - -export type ListPendingRewardsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - pendingRewards: Array; -}; - -/** @internal */ -export const ListPendingRewardsResponse$inboundSchema: z.ZodType< - ListPendingRewardsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - pendingRewards: z.array(PendingReward$inboundSchema), -}); - -/** @internal */ -export type ListPendingRewardsResponse$Outbound = { - nextPageToken?: string | undefined; - pendingRewards: Array; -}; - -/** @internal */ -export const ListPendingRewardsResponse$outboundSchema: z.ZodType< - ListPendingRewardsResponse$Outbound, - z.ZodTypeDef, - ListPendingRewardsResponse -> = z.object({ - nextPageToken: z.string().optional(), - pendingRewards: z.array(PendingReward$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPendingRewardsResponse$ { - /** @deprecated use `ListPendingRewardsResponse$inboundSchema` instead. */ - export const inboundSchema = ListPendingRewardsResponse$inboundSchema; - /** @deprecated use `ListPendingRewardsResponse$outboundSchema` instead. */ - export const outboundSchema = ListPendingRewardsResponse$outboundSchema; - /** @deprecated use `ListPendingRewardsResponse$Outbound` instead. */ - export type Outbound = ListPendingRewardsResponse$Outbound; -} - -export function listPendingRewardsResponseToJSON( - listPendingRewardsResponse: ListPendingRewardsResponse, -): string { - return JSON.stringify( - ListPendingRewardsResponse$outboundSchema.parse(listPendingRewardsResponse), - ); -} - -export function listPendingRewardsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPendingRewardsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPendingRewardsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listprimarynetworkblocksresponse.ts b/data/src/models/components/listprimarynetworkblocksresponse.ts deleted file mode 100644 index d19e12e4..00000000 --- a/data/src/models/components/listprimarynetworkblocksresponse.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkBlock, - PrimaryNetworkBlock$inboundSchema, - PrimaryNetworkBlock$Outbound, - PrimaryNetworkBlock$outboundSchema, -} from "./primarynetworkblock.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; - -export type ListPrimaryNetworkBlocksResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - blocks: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksResponse$inboundSchema: z.ZodType< - ListPrimaryNetworkBlocksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - blocks: z.array(PrimaryNetworkBlock$inboundSchema), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListPrimaryNetworkBlocksResponse$Outbound = { - nextPageToken?: string | undefined; - blocks: Array; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksResponse$outboundSchema: z.ZodType< - ListPrimaryNetworkBlocksResponse$Outbound, - z.ZodTypeDef, - ListPrimaryNetworkBlocksResponse -> = z.object({ - nextPageToken: z.string().optional(), - blocks: z.array(PrimaryNetworkBlock$outboundSchema), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPrimaryNetworkBlocksResponse$ { - /** @deprecated use `ListPrimaryNetworkBlocksResponse$inboundSchema` instead. */ - export const inboundSchema = ListPrimaryNetworkBlocksResponse$inboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksResponse$outboundSchema` instead. */ - export const outboundSchema = ListPrimaryNetworkBlocksResponse$outboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksResponse$Outbound` instead. */ - export type Outbound = ListPrimaryNetworkBlocksResponse$Outbound; -} - -export function listPrimaryNetworkBlocksResponseToJSON( - listPrimaryNetworkBlocksResponse: ListPrimaryNetworkBlocksResponse, -): string { - return JSON.stringify( - ListPrimaryNetworkBlocksResponse$outboundSchema.parse( - listPrimaryNetworkBlocksResponse, - ), - ); -} - -export function listPrimaryNetworkBlocksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListPrimaryNetworkBlocksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListPrimaryNetworkBlocksResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listsubnetsresponse.ts b/data/src/models/components/listsubnetsresponse.ts deleted file mode 100644 index ecb22e16..00000000 --- a/data/src/models/components/listsubnetsresponse.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Subnet, - Subnet$inboundSchema, - Subnet$Outbound, - Subnet$outboundSchema, -} from "./subnet.js"; - -export type ListSubnetsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - subnets: Array; -}; - -/** @internal */ -export const ListSubnetsResponse$inboundSchema: z.ZodType< - ListSubnetsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - subnets: z.array(Subnet$inboundSchema), -}); - -/** @internal */ -export type ListSubnetsResponse$Outbound = { - nextPageToken?: string | undefined; - subnets: Array; -}; - -/** @internal */ -export const ListSubnetsResponse$outboundSchema: z.ZodType< - ListSubnetsResponse$Outbound, - z.ZodTypeDef, - ListSubnetsResponse -> = z.object({ - nextPageToken: z.string().optional(), - subnets: z.array(Subnet$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSubnetsResponse$ { - /** @deprecated use `ListSubnetsResponse$inboundSchema` instead. */ - export const inboundSchema = ListSubnetsResponse$inboundSchema; - /** @deprecated use `ListSubnetsResponse$outboundSchema` instead. */ - export const outboundSchema = ListSubnetsResponse$outboundSchema; - /** @deprecated use `ListSubnetsResponse$Outbound` instead. */ - export type Outbound = ListSubnetsResponse$Outbound; -} - -export function listSubnetsResponseToJSON( - listSubnetsResponse: ListSubnetsResponse, -): string { - return JSON.stringify( - ListSubnetsResponse$outboundSchema.parse(listSubnetsResponse), - ); -} - -export function listSubnetsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSubnetsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSubnetsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listteleportermessagesresponse.ts b/data/src/models/components/listteleportermessagesresponse.ts deleted file mode 100644 index 050b622b..00000000 --- a/data/src/models/components/listteleportermessagesresponse.ts +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - DeliveredSourceNotIndexedIcmMessage, - DeliveredSourceNotIndexedIcmMessage$inboundSchema, - DeliveredSourceNotIndexedIcmMessage$Outbound, - DeliveredSourceNotIndexedIcmMessage$outboundSchema, -} from "./deliveredsourcenotindexedicmmessage.js"; -import { - DeliveredTeleporterMessage, - DeliveredTeleporterMessage$inboundSchema, - DeliveredTeleporterMessage$Outbound, - DeliveredTeleporterMessage$outboundSchema, -} from "./deliveredteleportermessage.js"; -import { - PendingTeleporterMessage, - PendingTeleporterMessage$inboundSchema, - PendingTeleporterMessage$Outbound, - PendingTeleporterMessage$outboundSchema, -} from "./pendingteleportermessage.js"; - -export type ListTeleporterMessagesResponseMessage = - | (DeliveredTeleporterMessage & { status: "delivered" }) - | (PendingTeleporterMessage & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage & { - status: "delivered_source_not_indexed"; - }); - -export type ListTeleporterMessagesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - messages: Array< - | (DeliveredTeleporterMessage & { status: "delivered" }) - | (PendingTeleporterMessage & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage & { - status: "delivered_source_not_indexed"; - }) - >; -}; - -/** @internal */ -export const ListTeleporterMessagesResponseMessage$inboundSchema: z.ZodType< - ListTeleporterMessagesResponseMessage, - z.ZodTypeDef, - unknown -> = z.union([ - DeliveredTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** @internal */ -export type ListTeleporterMessagesResponseMessage$Outbound = - | (DeliveredTeleporterMessage$Outbound & { status: "delivered" }) - | (PendingTeleporterMessage$Outbound & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage$Outbound & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const ListTeleporterMessagesResponseMessage$outboundSchema: z.ZodType< - ListTeleporterMessagesResponseMessage$Outbound, - z.ZodTypeDef, - ListTeleporterMessagesResponseMessage -> = z.union([ - DeliveredTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeleporterMessagesResponseMessage$ { - /** @deprecated use `ListTeleporterMessagesResponseMessage$inboundSchema` instead. */ - export const inboundSchema = - ListTeleporterMessagesResponseMessage$inboundSchema; - /** @deprecated use `ListTeleporterMessagesResponseMessage$outboundSchema` instead. */ - export const outboundSchema = - ListTeleporterMessagesResponseMessage$outboundSchema; - /** @deprecated use `ListTeleporterMessagesResponseMessage$Outbound` instead. */ - export type Outbound = ListTeleporterMessagesResponseMessage$Outbound; -} - -export function listTeleporterMessagesResponseMessageToJSON( - listTeleporterMessagesResponseMessage: ListTeleporterMessagesResponseMessage, -): string { - return JSON.stringify( - ListTeleporterMessagesResponseMessage$outboundSchema.parse( - listTeleporterMessagesResponseMessage, - ), - ); -} - -export function listTeleporterMessagesResponseMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListTeleporterMessagesResponseMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTeleporterMessagesResponseMessage' from JSON`, - ); -} - -/** @internal */ -export const ListTeleporterMessagesResponse$inboundSchema: z.ZodType< - ListTeleporterMessagesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - messages: z.array( - z.union([ - DeliveredTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }) - .transform((v) => ({ status: v.status })), - ), - ]), - ), -}); - -/** @internal */ -export type ListTeleporterMessagesResponse$Outbound = { - nextPageToken?: string | undefined; - messages: Array< - | (DeliveredTeleporterMessage$Outbound & { status: "delivered" }) - | (PendingTeleporterMessage$Outbound & { status: "pending" }) - | (DeliveredSourceNotIndexedIcmMessage$Outbound & { - status: "delivered_source_not_indexed"; - }) - >; -}; - -/** @internal */ -export const ListTeleporterMessagesResponse$outboundSchema: z.ZodType< - ListTeleporterMessagesResponse$Outbound, - z.ZodTypeDef, - ListTeleporterMessagesResponse -> = z.object({ - nextPageToken: z.string().optional(), - messages: z.array( - z.union([ - DeliveredTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - PendingTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - DeliveredSourceNotIndexedIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }) - .transform((v) => ({ status: v.status })), - ), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeleporterMessagesResponse$ { - /** @deprecated use `ListTeleporterMessagesResponse$inboundSchema` instead. */ - export const inboundSchema = ListTeleporterMessagesResponse$inboundSchema; - /** @deprecated use `ListTeleporterMessagesResponse$outboundSchema` instead. */ - export const outboundSchema = ListTeleporterMessagesResponse$outboundSchema; - /** @deprecated use `ListTeleporterMessagesResponse$Outbound` instead. */ - export type Outbound = ListTeleporterMessagesResponse$Outbound; -} - -export function listTeleporterMessagesResponseToJSON( - listTeleporterMessagesResponse: ListTeleporterMessagesResponse, -): string { - return JSON.stringify( - ListTeleporterMessagesResponse$outboundSchema.parse( - listTeleporterMessagesResponse, - ), - ); -} - -export function listTeleporterMessagesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTeleporterMessagesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTeleporterMessagesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listtransactiondetailsresponse.ts b/data/src/models/components/listtransactiondetailsresponse.ts deleted file mode 100644 index 84e6e279..00000000 --- a/data/src/models/components/listtransactiondetailsresponse.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TransactionDetails, - TransactionDetails$inboundSchema, - TransactionDetails$Outbound, - TransactionDetails$outboundSchema, -} from "./transactiondetails.js"; - -export type ListTransactionDetailsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListTransactionDetailsResponse$inboundSchema: z.ZodType< - ListTransactionDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(TransactionDetails$inboundSchema), -}); - -/** @internal */ -export type ListTransactionDetailsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array; -}; - -/** @internal */ -export const ListTransactionDetailsResponse$outboundSchema: z.ZodType< - ListTransactionDetailsResponse$Outbound, - z.ZodTypeDef, - ListTransactionDetailsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array(TransactionDetails$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionDetailsResponse$ { - /** @deprecated use `ListTransactionDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = ListTransactionDetailsResponse$inboundSchema; - /** @deprecated use `ListTransactionDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = ListTransactionDetailsResponse$outboundSchema; - /** @deprecated use `ListTransactionDetailsResponse$Outbound` instead. */ - export type Outbound = ListTransactionDetailsResponse$Outbound; -} - -export function listTransactionDetailsResponseToJSON( - listTransactionDetailsResponse: ListTransactionDetailsResponse, -): string { - return JSON.stringify( - ListTransactionDetailsResponse$outboundSchema.parse( - listTransactionDetailsResponse, - ), - ); -} - -export function listTransactionDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransactionDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransactionDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listtransfersresponse.ts b/data/src/models/components/listtransfersresponse.ts deleted file mode 100644 index e3e1e985..00000000 --- a/data/src/models/components/listtransfersresponse.ts +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155Transfer, - Erc1155Transfer$inboundSchema, - Erc1155Transfer$Outbound, - Erc1155Transfer$outboundSchema, -} from "./erc1155transfer.js"; -import { - Erc20Transfer, - Erc20Transfer$inboundSchema, - Erc20Transfer$Outbound, - Erc20Transfer$outboundSchema, -} from "./erc20transfer.js"; -import { - Erc721Transfer, - Erc721Transfer$inboundSchema, - Erc721Transfer$Outbound, - Erc721Transfer$outboundSchema, -} from "./erc721transfer.js"; - -export type Transfer = Erc20Transfer | Erc1155Transfer | Erc721Transfer; - -export type ListTransfersResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transfers: Array; -}; - -/** @internal */ -export const Transfer$inboundSchema: z.ZodType< - Transfer, - z.ZodTypeDef, - unknown -> = z.union([ - Erc20Transfer$inboundSchema, - Erc1155Transfer$inboundSchema, - Erc721Transfer$inboundSchema, -]); - -/** @internal */ -export type Transfer$Outbound = - | Erc20Transfer$Outbound - | Erc1155Transfer$Outbound - | Erc721Transfer$Outbound; - -/** @internal */ -export const Transfer$outboundSchema: z.ZodType< - Transfer$Outbound, - z.ZodTypeDef, - Transfer -> = z.union([ - Erc20Transfer$outboundSchema, - Erc1155Transfer$outboundSchema, - Erc721Transfer$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Transfer$ { - /** @deprecated use `Transfer$inboundSchema` instead. */ - export const inboundSchema = Transfer$inboundSchema; - /** @deprecated use `Transfer$outboundSchema` instead. */ - export const outboundSchema = Transfer$outboundSchema; - /** @deprecated use `Transfer$Outbound` instead. */ - export type Outbound = Transfer$Outbound; -} - -export function transferToJSON(transfer: Transfer): string { - return JSON.stringify(Transfer$outboundSchema.parse(transfer)); -} - -export function transferFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Transfer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Transfer' from JSON`, - ); -} - -/** @internal */ -export const ListTransfersResponse$inboundSchema: z.ZodType< - ListTransfersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transfers: z.array( - z.union([ - Erc20Transfer$inboundSchema, - Erc1155Transfer$inboundSchema, - Erc721Transfer$inboundSchema, - ]), - ), -}); - -/** @internal */ -export type ListTransfersResponse$Outbound = { - nextPageToken?: string | undefined; - transfers: Array< - Erc20Transfer$Outbound | Erc1155Transfer$Outbound | Erc721Transfer$Outbound - >; -}; - -/** @internal */ -export const ListTransfersResponse$outboundSchema: z.ZodType< - ListTransfersResponse$Outbound, - z.ZodTypeDef, - ListTransfersResponse -> = z.object({ - nextPageToken: z.string().optional(), - transfers: z.array( - z.union([ - Erc20Transfer$outboundSchema, - Erc1155Transfer$outboundSchema, - Erc721Transfer$outboundSchema, - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransfersResponse$ { - /** @deprecated use `ListTransfersResponse$inboundSchema` instead. */ - export const inboundSchema = ListTransfersResponse$inboundSchema; - /** @deprecated use `ListTransfersResponse$outboundSchema` instead. */ - export const outboundSchema = ListTransfersResponse$outboundSchema; - /** @deprecated use `ListTransfersResponse$Outbound` instead. */ - export type Outbound = ListTransfersResponse$Outbound; -} - -export function listTransfersResponseToJSON( - listTransfersResponse: ListTransfersResponse, -): string { - return JSON.stringify( - ListTransfersResponse$outboundSchema.parse(listTransfersResponse), - ); -} - -export function listTransfersResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransfersResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransfersResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listutxosresponse.ts b/data/src/models/components/listutxosresponse.ts deleted file mode 100644 index c0a29bb1..00000000 --- a/data/src/models/components/listutxosresponse.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; -import { - Utxo, - Utxo$inboundSchema, - Utxo$Outbound, - Utxo$outboundSchema, -} from "./utxo.js"; - -export type ListUtxosResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - utxos: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListUtxosResponse$inboundSchema: z.ZodType< - ListUtxosResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - utxos: z.array(Utxo$inboundSchema), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListUtxosResponse$Outbound = { - nextPageToken?: string | undefined; - utxos: Array; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListUtxosResponse$outboundSchema: z.ZodType< - ListUtxosResponse$Outbound, - z.ZodTypeDef, - ListUtxosResponse -> = z.object({ - nextPageToken: z.string().optional(), - utxos: z.array(Utxo$outboundSchema), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListUtxosResponse$ { - /** @deprecated use `ListUtxosResponse$inboundSchema` instead. */ - export const inboundSchema = ListUtxosResponse$inboundSchema; - /** @deprecated use `ListUtxosResponse$outboundSchema` instead. */ - export const outboundSchema = ListUtxosResponse$outboundSchema; - /** @deprecated use `ListUtxosResponse$Outbound` instead. */ - export type Outbound = ListUtxosResponse$Outbound; -} - -export function listUtxosResponseToJSON( - listUtxosResponse: ListUtxosResponse, -): string { - return JSON.stringify( - ListUtxosResponse$outboundSchema.parse(listUtxosResponse), - ); -} - -export function listUtxosResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListUtxosResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListUtxosResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listvalidatordetailsresponse.ts b/data/src/models/components/listvalidatordetailsresponse.ts deleted file mode 100644 index e086ddb7..00000000 --- a/data/src/models/components/listvalidatordetailsresponse.ts +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ActiveValidatorDetails, - ActiveValidatorDetails$inboundSchema, - ActiveValidatorDetails$Outbound, - ActiveValidatorDetails$outboundSchema, -} from "./activevalidatordetails.js"; -import { - CompletedValidatorDetails, - CompletedValidatorDetails$inboundSchema, - CompletedValidatorDetails$Outbound, - CompletedValidatorDetails$outboundSchema, -} from "./completedvalidatordetails.js"; -import { - PendingValidatorDetails, - PendingValidatorDetails$inboundSchema, - PendingValidatorDetails$Outbound, - PendingValidatorDetails$outboundSchema, -} from "./pendingvalidatordetails.js"; -import { - RemovedValidatorDetails, - RemovedValidatorDetails$inboundSchema, - RemovedValidatorDetails$Outbound, - RemovedValidatorDetails$outboundSchema, -} from "./removedvalidatordetails.js"; - -export type Validator = - | (ActiveValidatorDetails & { validationStatus: "active" }) - | (CompletedValidatorDetails & { validationStatus: "completed" }) - | (RemovedValidatorDetails & { validationStatus: "removed" }) - | (PendingValidatorDetails & { validationStatus: "pending" }); - -export type ListValidatorDetailsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The list of validator Details. - */ - validators: Array< - | (ActiveValidatorDetails & { validationStatus: "active" }) - | (CompletedValidatorDetails & { validationStatus: "completed" }) - | (RemovedValidatorDetails & { validationStatus: "removed" }) - | (PendingValidatorDetails & { validationStatus: "pending" }) - >; -}; - -/** @internal */ -export const Validator$inboundSchema: z.ZodType< - Validator, - z.ZodTypeDef, - unknown -> = z.union([ - ActiveValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("active") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - CompletedValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("completed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - RemovedValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("removed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - PendingValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("pending") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), -]); - -/** @internal */ -export type Validator$Outbound = - | (ActiveValidatorDetails$Outbound & { validationStatus: "active" }) - | (CompletedValidatorDetails$Outbound & { validationStatus: "completed" }) - | (RemovedValidatorDetails$Outbound & { validationStatus: "removed" }) - | (PendingValidatorDetails$Outbound & { validationStatus: "pending" }); - -/** @internal */ -export const Validator$outboundSchema: z.ZodType< - Validator$Outbound, - z.ZodTypeDef, - Validator -> = z.union([ - ActiveValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("active") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - CompletedValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("completed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - RemovedValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("removed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - PendingValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("pending") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Validator$ { - /** @deprecated use `Validator$inboundSchema` instead. */ - export const inboundSchema = Validator$inboundSchema; - /** @deprecated use `Validator$outboundSchema` instead. */ - export const outboundSchema = Validator$outboundSchema; - /** @deprecated use `Validator$Outbound` instead. */ - export type Outbound = Validator$Outbound; -} - -export function validatorToJSON(validator: Validator): string { - return JSON.stringify(Validator$outboundSchema.parse(validator)); -} - -export function validatorFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Validator$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Validator' from JSON`, - ); -} - -/** @internal */ -export const ListValidatorDetailsResponse$inboundSchema: z.ZodType< - ListValidatorDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - validators: z.array( - z.union([ - ActiveValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("active") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - CompletedValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("completed") }).transform(( - v, - ) => ({ validationStatus: v.validationStatus })), - ), - RemovedValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("removed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - PendingValidatorDetails$inboundSchema.and( - z.object({ validationStatus: z.literal("pending") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - ]), - ), -}); - -/** @internal */ -export type ListValidatorDetailsResponse$Outbound = { - nextPageToken?: string | undefined; - validators: Array< - | (ActiveValidatorDetails$Outbound & { validationStatus: "active" }) - | (CompletedValidatorDetails$Outbound & { validationStatus: "completed" }) - | (RemovedValidatorDetails$Outbound & { validationStatus: "removed" }) - | (PendingValidatorDetails$Outbound & { validationStatus: "pending" }) - >; -}; - -/** @internal */ -export const ListValidatorDetailsResponse$outboundSchema: z.ZodType< - ListValidatorDetailsResponse$Outbound, - z.ZodTypeDef, - ListValidatorDetailsResponse -> = z.object({ - nextPageToken: z.string().optional(), - validators: z.array( - z.union([ - ActiveValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("active") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - CompletedValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("completed") }).transform(( - v, - ) => ({ validationStatus: v.validationStatus })), - ), - RemovedValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("removed") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - PendingValidatorDetails$outboundSchema.and( - z.object({ validationStatus: z.literal("pending") }).transform((v) => ({ - validationStatus: v.validationStatus, - })), - ), - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListValidatorDetailsResponse$ { - /** @deprecated use `ListValidatorDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = ListValidatorDetailsResponse$inboundSchema; - /** @deprecated use `ListValidatorDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = ListValidatorDetailsResponse$outboundSchema; - /** @deprecated use `ListValidatorDetailsResponse$Outbound` instead. */ - export type Outbound = ListValidatorDetailsResponse$Outbound; -} - -export function listValidatorDetailsResponseToJSON( - listValidatorDetailsResponse: ListValidatorDetailsResponse, -): string { - return JSON.stringify( - ListValidatorDetailsResponse$outboundSchema.parse( - listValidatorDetailsResponse, - ), - ); -} - -export function listValidatorDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListValidatorDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListValidatorDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listxchainbalancesresponse.ts b/data/src/models/components/listxchainbalancesresponse.ts deleted file mode 100644 index a95b8735..00000000 --- a/data/src/models/components/listxchainbalancesresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; -import { - XChainBalances, - XChainBalances$inboundSchema, - XChainBalances$Outbound, - XChainBalances$outboundSchema, -} from "./xchainbalances.js"; - -export type ListXChainBalancesResponse = { - balances: XChainBalances; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListXChainBalancesResponse$inboundSchema: z.ZodType< - ListXChainBalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - balances: XChainBalances$inboundSchema, - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListXChainBalancesResponse$Outbound = { - balances: XChainBalances$Outbound; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListXChainBalancesResponse$outboundSchema: z.ZodType< - ListXChainBalancesResponse$Outbound, - z.ZodTypeDef, - ListXChainBalancesResponse -> = z.object({ - balances: XChainBalances$outboundSchema, - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListXChainBalancesResponse$ { - /** @deprecated use `ListXChainBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListXChainBalancesResponse$inboundSchema; - /** @deprecated use `ListXChainBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListXChainBalancesResponse$outboundSchema; - /** @deprecated use `ListXChainBalancesResponse$Outbound` instead. */ - export type Outbound = ListXChainBalancesResponse$Outbound; -} - -export function listXChainBalancesResponseToJSON( - listXChainBalancesResponse: ListXChainBalancesResponse, -): string { - return JSON.stringify( - ListXChainBalancesResponse$outboundSchema.parse(listXChainBalancesResponse), - ); -} - -export function listXChainBalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListXChainBalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListXChainBalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listxchaintransactionsresponse.ts b/data/src/models/components/listxchaintransactionsresponse.ts deleted file mode 100644 index 911ba522..00000000 --- a/data/src/models/components/listxchaintransactionsresponse.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; -import { - XChainLinearTransaction, - XChainLinearTransaction$inboundSchema, - XChainLinearTransaction$Outbound, - XChainLinearTransaction$outboundSchema, -} from "./xchainlineartransaction.js"; -import { - XChainNonLinearTransaction, - XChainNonLinearTransaction$inboundSchema, - XChainNonLinearTransaction$Outbound, - XChainNonLinearTransaction$outboundSchema, -} from "./xchainnonlineartransaction.js"; - -export type ListXChainTransactionsResponseTransaction = - | XChainLinearTransaction - | XChainNonLinearTransaction; - -export type ListXChainTransactionsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - transactions: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListXChainTransactionsResponseTransaction$inboundSchema: z.ZodType< - ListXChainTransactionsResponseTransaction, - z.ZodTypeDef, - unknown -> = z.union([ - XChainLinearTransaction$inboundSchema, - XChainNonLinearTransaction$inboundSchema, -]); - -/** @internal */ -export type ListXChainTransactionsResponseTransaction$Outbound = - | XChainLinearTransaction$Outbound - | XChainNonLinearTransaction$Outbound; - -/** @internal */ -export const ListXChainTransactionsResponseTransaction$outboundSchema: - z.ZodType< - ListXChainTransactionsResponseTransaction$Outbound, - z.ZodTypeDef, - ListXChainTransactionsResponseTransaction - > = z.union([ - XChainLinearTransaction$outboundSchema, - XChainNonLinearTransaction$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListXChainTransactionsResponseTransaction$ { - /** @deprecated use `ListXChainTransactionsResponseTransaction$inboundSchema` instead. */ - export const inboundSchema = - ListXChainTransactionsResponseTransaction$inboundSchema; - /** @deprecated use `ListXChainTransactionsResponseTransaction$outboundSchema` instead. */ - export const outboundSchema = - ListXChainTransactionsResponseTransaction$outboundSchema; - /** @deprecated use `ListXChainTransactionsResponseTransaction$Outbound` instead. */ - export type Outbound = ListXChainTransactionsResponseTransaction$Outbound; -} - -export function listXChainTransactionsResponseTransactionToJSON( - listXChainTransactionsResponseTransaction: - ListXChainTransactionsResponseTransaction, -): string { - return JSON.stringify( - ListXChainTransactionsResponseTransaction$outboundSchema.parse( - listXChainTransactionsResponseTransaction, - ), - ); -} - -export function listXChainTransactionsResponseTransactionFromJSON( - jsonString: string, -): SafeParseResult< - ListXChainTransactionsResponseTransaction, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListXChainTransactionsResponseTransaction$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListXChainTransactionsResponseTransaction' from JSON`, - ); -} - -/** @internal */ -export const ListXChainTransactionsResponse$inboundSchema: z.ZodType< - ListXChainTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array( - z.union([ - XChainLinearTransaction$inboundSchema, - XChainNonLinearTransaction$inboundSchema, - ]), - ), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListXChainTransactionsResponse$Outbound = { - nextPageToken?: string | undefined; - transactions: Array< - XChainLinearTransaction$Outbound | XChainNonLinearTransaction$Outbound - >; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListXChainTransactionsResponse$outboundSchema: z.ZodType< - ListXChainTransactionsResponse$Outbound, - z.ZodTypeDef, - ListXChainTransactionsResponse -> = z.object({ - nextPageToken: z.string().optional(), - transactions: z.array( - z.union([ - XChainLinearTransaction$outboundSchema, - XChainNonLinearTransaction$outboundSchema, - ]), - ), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListXChainTransactionsResponse$ { - /** @deprecated use `ListXChainTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListXChainTransactionsResponse$inboundSchema; - /** @deprecated use `ListXChainTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListXChainTransactionsResponse$outboundSchema; - /** @deprecated use `ListXChainTransactionsResponse$Outbound` instead. */ - export type Outbound = ListXChainTransactionsResponse$Outbound; -} - -export function listXChainTransactionsResponseToJSON( - listXChainTransactionsResponse: ListXChainTransactionsResponse, -): string { - return JSON.stringify( - ListXChainTransactionsResponse$outboundSchema.parse( - listXChainTransactionsResponse, - ), - ); -} - -export function listXChainTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListXChainTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListXChainTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/components/listxchainverticesresponse.ts b/data/src/models/components/listxchainverticesresponse.ts deleted file mode 100644 index 9b5e3d94..00000000 --- a/data/src/models/components/listxchainverticesresponse.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkChainInfo, - PrimaryNetworkChainInfo$inboundSchema, - PrimaryNetworkChainInfo$Outbound, - PrimaryNetworkChainInfo$outboundSchema, -} from "./primarynetworkchaininfo.js"; -import { - XChainVertex, - XChainVertex$inboundSchema, - XChainVertex$Outbound, - XChainVertex$outboundSchema, -} from "./xchainvertex.js"; - -export type ListXChainVerticesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - vertices: Array; - chainInfo: PrimaryNetworkChainInfo; -}; - -/** @internal */ -export const ListXChainVerticesResponse$inboundSchema: z.ZodType< - ListXChainVerticesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - vertices: z.array(XChainVertex$inboundSchema), - chainInfo: PrimaryNetworkChainInfo$inboundSchema, -}); - -/** @internal */ -export type ListXChainVerticesResponse$Outbound = { - nextPageToken?: string | undefined; - vertices: Array; - chainInfo: PrimaryNetworkChainInfo$Outbound; -}; - -/** @internal */ -export const ListXChainVerticesResponse$outboundSchema: z.ZodType< - ListXChainVerticesResponse$Outbound, - z.ZodTypeDef, - ListXChainVerticesResponse -> = z.object({ - nextPageToken: z.string().optional(), - vertices: z.array(XChainVertex$outboundSchema), - chainInfo: PrimaryNetworkChainInfo$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListXChainVerticesResponse$ { - /** @deprecated use `ListXChainVerticesResponse$inboundSchema` instead. */ - export const inboundSchema = ListXChainVerticesResponse$inboundSchema; - /** @deprecated use `ListXChainVerticesResponse$outboundSchema` instead. */ - export const outboundSchema = ListXChainVerticesResponse$outboundSchema; - /** @deprecated use `ListXChainVerticesResponse$Outbound` instead. */ - export type Outbound = ListXChainVerticesResponse$Outbound; -} - -export function listXChainVerticesResponseToJSON( - listXChainVerticesResponse: ListXChainVerticesResponse, -): string { - return JSON.stringify( - ListXChainVerticesResponse$outboundSchema.parse(listXChainVerticesResponse), - ); -} - -export function listXChainVerticesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListXChainVerticesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListXChainVerticesResponse' from JSON`, - ); -} diff --git a/data/src/models/components/logsformat.ts b/data/src/models/components/logsformat.ts deleted file mode 100644 index d8b782ae..00000000 --- a/data/src/models/components/logsformat.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - LogsFormatMetadata, - LogsFormatMetadata$inboundSchema, - LogsFormatMetadata$Outbound, - LogsFormatMetadata$outboundSchema, -} from "./logsformatmetadata.js"; -import { - RequestType, - RequestType$inboundSchema, - RequestType$outboundSchema, -} from "./requesttype.js"; - -export type LogsFormat = { - /** - * The organization id of the request. - */ - orgId: string; - /** - * The unique log id of the request. - */ - logId: string; - /** - * The timestamp of the request. - */ - eventTimestamp: number; - /** - * The apiKey used to make the request. - */ - apiKeyId: string; - /** - * The alias of the apiKey used to make the request. - */ - apiKeyAlias: string; - /** - * The region of the host for the request made by the client. - */ - hostRegion: string; - /** - * The type of request made by the client. - */ - requestType: RequestType; - /** - * The path of the request made by the client. - */ - requestPath: string; - /** - * The number of API credits consumed by the request. - */ - apiCreditsConsumed: number; - /** - * The duration of the request in milliseconds. - */ - requestDurationMsecs: number; - /** - * The response code of the request. - */ - responseCode: number; - /** - * The chain id of the request. - */ - chainId?: string | undefined; - /** - * The rpc method of the request. - */ - rpcMethod?: string | undefined; - /** - * The metadata of the request. - */ - metadata: LogsFormatMetadata; -}; - -/** @internal */ -export const LogsFormat$inboundSchema: z.ZodType< - LogsFormat, - z.ZodTypeDef, - unknown -> = z.object({ - orgId: z.string(), - logId: z.string(), - eventTimestamp: z.number(), - apiKeyId: z.string(), - apiKeyAlias: z.string(), - hostRegion: z.string(), - requestType: RequestType$inboundSchema, - requestPath: z.string(), - apiCreditsConsumed: z.number(), - requestDurationMsecs: z.number(), - responseCode: z.number(), - chainId: z.string().optional(), - rpcMethod: z.string().optional(), - metadata: LogsFormatMetadata$inboundSchema, -}); - -/** @internal */ -export type LogsFormat$Outbound = { - orgId: string; - logId: string; - eventTimestamp: number; - apiKeyId: string; - apiKeyAlias: string; - hostRegion: string; - requestType: string; - requestPath: string; - apiCreditsConsumed: number; - requestDurationMsecs: number; - responseCode: number; - chainId?: string | undefined; - rpcMethod?: string | undefined; - metadata: LogsFormatMetadata$Outbound; -}; - -/** @internal */ -export const LogsFormat$outboundSchema: z.ZodType< - LogsFormat$Outbound, - z.ZodTypeDef, - LogsFormat -> = z.object({ - orgId: z.string(), - logId: z.string(), - eventTimestamp: z.number(), - apiKeyId: z.string(), - apiKeyAlias: z.string(), - hostRegion: z.string(), - requestType: RequestType$outboundSchema, - requestPath: z.string(), - apiCreditsConsumed: z.number(), - requestDurationMsecs: z.number(), - responseCode: z.number(), - chainId: z.string().optional(), - rpcMethod: z.string().optional(), - metadata: LogsFormatMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogsFormat$ { - /** @deprecated use `LogsFormat$inboundSchema` instead. */ - export const inboundSchema = LogsFormat$inboundSchema; - /** @deprecated use `LogsFormat$outboundSchema` instead. */ - export const outboundSchema = LogsFormat$outboundSchema; - /** @deprecated use `LogsFormat$Outbound` instead. */ - export type Outbound = LogsFormat$Outbound; -} - -export function logsFormatToJSON(logsFormat: LogsFormat): string { - return JSON.stringify(LogsFormat$outboundSchema.parse(logsFormat)); -} - -export function logsFormatFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LogsFormat$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogsFormat' from JSON`, - ); -} diff --git a/data/src/models/components/logsformatmetadata.ts b/data/src/models/components/logsformatmetadata.ts deleted file mode 100644 index b52be427..00000000 --- a/data/src/models/components/logsformatmetadata.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type LogsFormatMetadata = { - /** - * The IP address of the client that made the request. - */ - ipAddress: string; - /** - * The host for the request made by the client. - */ - host: string; - /** - * The user agent of the client that made the request. - */ - userAgent: string; -}; - -/** @internal */ -export const LogsFormatMetadata$inboundSchema: z.ZodType< - LogsFormatMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - ipAddress: z.string(), - host: z.string(), - userAgent: z.string(), -}); - -/** @internal */ -export type LogsFormatMetadata$Outbound = { - ipAddress: string; - host: string; - userAgent: string; -}; - -/** @internal */ -export const LogsFormatMetadata$outboundSchema: z.ZodType< - LogsFormatMetadata$Outbound, - z.ZodTypeDef, - LogsFormatMetadata -> = z.object({ - ipAddress: z.string(), - host: z.string(), - userAgent: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogsFormatMetadata$ { - /** @deprecated use `LogsFormatMetadata$inboundSchema` instead. */ - export const inboundSchema = LogsFormatMetadata$inboundSchema; - /** @deprecated use `LogsFormatMetadata$outboundSchema` instead. */ - export const outboundSchema = LogsFormatMetadata$outboundSchema; - /** @deprecated use `LogsFormatMetadata$Outbound` instead. */ - export type Outbound = LogsFormatMetadata$Outbound; -} - -export function logsFormatMetadataToJSON( - logsFormatMetadata: LogsFormatMetadata, -): string { - return JSON.stringify( - LogsFormatMetadata$outboundSchema.parse(logsFormatMetadata), - ); -} - -export function logsFormatMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LogsFormatMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogsFormatMetadata' from JSON`, - ); -} diff --git a/data/src/models/components/logsresponsedto.ts b/data/src/models/components/logsresponsedto.ts deleted file mode 100644 index 18c7d3d7..00000000 --- a/data/src/models/components/logsresponsedto.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - LogsFormat, - LogsFormat$inboundSchema, - LogsFormat$Outbound, - LogsFormat$outboundSchema, -} from "./logsformat.js"; - -export type LogsResponseDTO = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * The organization id of the request. - */ - orgId: string; - /** - * An array of logs representing the requests made by clients. - */ - logs: Array; -}; - -/** @internal */ -export const LogsResponseDTO$inboundSchema: z.ZodType< - LogsResponseDTO, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - orgId: z.string(), - logs: z.array(LogsFormat$inboundSchema), -}); - -/** @internal */ -export type LogsResponseDTO$Outbound = { - nextPageToken?: string | undefined; - orgId: string; - logs: Array; -}; - -/** @internal */ -export const LogsResponseDTO$outboundSchema: z.ZodType< - LogsResponseDTO$Outbound, - z.ZodTypeDef, - LogsResponseDTO -> = z.object({ - nextPageToken: z.string().optional(), - orgId: z.string(), - logs: z.array(LogsFormat$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogsResponseDTO$ { - /** @deprecated use `LogsResponseDTO$inboundSchema` instead. */ - export const inboundSchema = LogsResponseDTO$inboundSchema; - /** @deprecated use `LogsResponseDTO$outboundSchema` instead. */ - export const outboundSchema = LogsResponseDTO$outboundSchema; - /** @deprecated use `LogsResponseDTO$Outbound` instead. */ - export type Outbound = LogsResponseDTO$Outbound; -} - -export function logsResponseDTOToJSON( - logsResponseDTO: LogsResponseDTO, -): string { - return JSON.stringify(LogsResponseDTO$outboundSchema.parse(logsResponseDTO)); -} - -export function logsResponseDTOFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LogsResponseDTO$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogsResponseDTO' from JSON`, - ); -} diff --git a/data/src/models/components/method.ts b/data/src/models/components/method.ts deleted file mode 100644 index 9cf2d4b6..00000000 --- a/data/src/models/components/method.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TransactionMethodType, - TransactionMethodType$inboundSchema, - TransactionMethodType$outboundSchema, -} from "./transactionmethodtype.js"; - -export type Method = { - /** - * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation. - */ - callType: TransactionMethodType; - /** - * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`. - */ - methodHash: string; - /** - * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'. - */ - methodName?: string | undefined; -}; - -/** @internal */ -export const Method$inboundSchema: z.ZodType = z - .object({ - callType: TransactionMethodType$inboundSchema, - methodHash: z.string(), - methodName: z.string().optional(), - }); - -/** @internal */ -export type Method$Outbound = { - callType: string; - methodHash: string; - methodName?: string | undefined; -}; - -/** @internal */ -export const Method$outboundSchema: z.ZodType< - Method$Outbound, - z.ZodTypeDef, - Method -> = z.object({ - callType: TransactionMethodType$outboundSchema, - methodHash: z.string(), - methodName: 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 Method$ { - /** @deprecated use `Method$inboundSchema` instead. */ - export const inboundSchema = Method$inboundSchema; - /** @deprecated use `Method$outboundSchema` instead. */ - export const outboundSchema = Method$outboundSchema; - /** @deprecated use `Method$Outbound` instead. */ - export type Outbound = Method$Outbound; -} - -export function methodToJSON(method: Method): string { - return JSON.stringify(Method$outboundSchema.parse(method)); -} - -export function methodFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Method$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Method' from JSON`, - ); -} diff --git a/data/src/models/components/metric.ts b/data/src/models/components/metric.ts deleted file mode 100644 index 64f04ddd..00000000 --- a/data/src/models/components/metric.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - UsageMetricsValueDTO, - UsageMetricsValueDTO$inboundSchema, - UsageMetricsValueDTO$Outbound, - UsageMetricsValueDTO$outboundSchema, -} from "./usagemetricsvaluedto.js"; - -export type Metric = { - /** - * The timestamp of the metrics value - */ - timestamp: number; - /** - * The metrics values for the timestamp - */ - values: Array; -}; - -/** @internal */ -export const Metric$inboundSchema: z.ZodType = z - .object({ - timestamp: z.number(), - values: z.array(UsageMetricsValueDTO$inboundSchema), - }); - -/** @internal */ -export type Metric$Outbound = { - timestamp: number; - values: Array; -}; - -/** @internal */ -export const Metric$outboundSchema: z.ZodType< - Metric$Outbound, - z.ZodTypeDef, - Metric -> = z.object({ - timestamp: z.number(), - values: z.array(UsageMetricsValueDTO$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Metric$ { - /** @deprecated use `Metric$inboundSchema` instead. */ - export const inboundSchema = Metric$inboundSchema; - /** @deprecated use `Metric$outboundSchema` instead. */ - export const outboundSchema = Metric$outboundSchema; - /** @deprecated use `Metric$Outbound` instead. */ - export type Outbound = Metric$Outbound; -} - -export function metricToJSON(metric: Metric): string { - return JSON.stringify(Metric$outboundSchema.parse(metric)); -} - -export function metricFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Metric$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Metric' from JSON`, - ); -} diff --git a/data/src/models/components/money.ts b/data/src/models/components/money.ts deleted file mode 100644 index d4bce229..00000000 --- a/data/src/models/components/money.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CurrencyCode, - CurrencyCode$inboundSchema, - CurrencyCode$outboundSchema, -} from "./currencycode.js"; - -export type Money = { - /** - * ISO 4217 currency code. - */ - currencyCode: CurrencyCode; - /** - * Monetary value in base 10 decimals. - */ - value: number; -}; - -/** @internal */ -export const Money$inboundSchema: z.ZodType = z - .object({ - currencyCode: CurrencyCode$inboundSchema, - value: z.number(), - }); - -/** @internal */ -export type Money$Outbound = { - currencyCode: string; - value: number; -}; - -/** @internal */ -export const Money$outboundSchema: z.ZodType< - Money$Outbound, - z.ZodTypeDef, - Money -> = z.object({ - currencyCode: CurrencyCode$outboundSchema, - value: 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 Money$ { - /** @deprecated use `Money$inboundSchema` instead. */ - export const inboundSchema = Money$inboundSchema; - /** @deprecated use `Money$outboundSchema` instead. */ - export const outboundSchema = Money$outboundSchema; - /** @deprecated use `Money$Outbound` instead. */ - export type Outbound = Money$Outbound; -} - -export function moneyToJSON(money: Money): string { - return JSON.stringify(Money$outboundSchema.parse(money)); -} - -export function moneyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Money$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Money' from JSON`, - ); -} diff --git a/data/src/models/components/nativetokenbalance.ts b/data/src/models/components/nativetokenbalance.ts deleted file mode 100644 index 1e176363..00000000 --- a/data/src/models/components/nativetokenbalance.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; - -export type NativeTokenBalance = { - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - /** - * The evm chain id. - */ - chainId: string; - /** - * The token price, if available. - */ - price?: Money | undefined; - /** - * The address balance for the token, in units specified by the `decimals` value for the contract. - */ - balance: string; - /** - * The monetary value of the balance, if a price is available for the token. - */ - balanceValue?: Money | undefined; -}; - -/** @internal */ -export const NativeTokenBalance$inboundSchema: z.ZodType< - NativeTokenBalance, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - chainId: z.string(), - price: Money$inboundSchema.optional(), - balance: z.string(), - balanceValue: Money$inboundSchema.optional(), -}); - -/** @internal */ -export type NativeTokenBalance$Outbound = { - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - chainId: string; - price?: Money$Outbound | undefined; - balance: string; - balanceValue?: Money$Outbound | undefined; -}; - -/** @internal */ -export const NativeTokenBalance$outboundSchema: z.ZodType< - NativeTokenBalance$Outbound, - z.ZodTypeDef, - NativeTokenBalance -> = z.object({ - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - chainId: z.string(), - price: Money$outboundSchema.optional(), - balance: z.string(), - balanceValue: Money$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NativeTokenBalance$ { - /** @deprecated use `NativeTokenBalance$inboundSchema` instead. */ - export const inboundSchema = NativeTokenBalance$inboundSchema; - /** @deprecated use `NativeTokenBalance$outboundSchema` instead. */ - export const outboundSchema = NativeTokenBalance$outboundSchema; - /** @deprecated use `NativeTokenBalance$Outbound` instead. */ - export type Outbound = NativeTokenBalance$Outbound; -} - -export function nativeTokenBalanceToJSON( - nativeTokenBalance: NativeTokenBalance, -): string { - return JSON.stringify( - NativeTokenBalance$outboundSchema.parse(nativeTokenBalance), - ); -} - -export function nativeTokenBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NativeTokenBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NativeTokenBalance' from JSON`, - ); -} diff --git a/data/src/models/components/nativetransaction.ts b/data/src/models/components/nativetransaction.ts deleted file mode 100644 index 602324cf..00000000 --- a/data/src/models/components/nativetransaction.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Method, - Method$inboundSchema, - Method$Outbound, - Method$outboundSchema, -} from "./method.js"; -import { - RichAddress, - RichAddress$inboundSchema, - RichAddress$Outbound, - RichAddress$outboundSchema, -} from "./richaddress.js"; - -export type NativeTransaction = { - /** - * The block number on the chain. - */ - blockNumber: string; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The block hash identifier. - */ - blockHash: string; - /** - * The EVM chain ID on which the transaction occured. - */ - chainId: string; - /** - * The index at which the transaction occured in the block (0-indexed). - */ - blockIndex: number; - /** - * The transaction hash identifier. - */ - txHash: string; - /** - * The transaction status, which is either 0 (failed) or 1 (successful). - */ - txStatus: string; - /** - * The transaction type. - */ - txType: number; - /** - * The gas limit set for the transaction. - */ - gasLimit: string; - /** - * The amount of gas used. - */ - gasUsed: string; - /** - * The gas price denominated by the number of decimals of the native token. - */ - gasPrice: string; - /** - * The nonce used by the sender of the transaction. - */ - nonce: string; - from: RichAddress; - to: RichAddress; - method?: Method | undefined; - value: string; -}; - -/** @internal */ -export const NativeTransaction$inboundSchema: z.ZodType< - NativeTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - chainId: z.string(), - blockIndex: z.number(), - txHash: z.string(), - txStatus: z.string(), - txType: z.number(), - gasLimit: z.string(), - gasUsed: z.string(), - gasPrice: z.string(), - nonce: z.string(), - from: RichAddress$inboundSchema, - to: RichAddress$inboundSchema, - method: Method$inboundSchema.optional(), - value: z.string(), -}); - -/** @internal */ -export type NativeTransaction$Outbound = { - blockNumber: string; - blockTimestamp: number; - blockHash: string; - chainId: string; - blockIndex: number; - txHash: string; - txStatus: string; - txType: number; - gasLimit: string; - gasUsed: string; - gasPrice: string; - nonce: string; - from: RichAddress$Outbound; - to: RichAddress$Outbound; - method?: Method$Outbound | undefined; - value: string; -}; - -/** @internal */ -export const NativeTransaction$outboundSchema: z.ZodType< - NativeTransaction$Outbound, - z.ZodTypeDef, - NativeTransaction -> = z.object({ - blockNumber: z.string(), - blockTimestamp: z.number(), - blockHash: z.string(), - chainId: z.string(), - blockIndex: z.number(), - txHash: z.string(), - txStatus: z.string(), - txType: z.number(), - gasLimit: z.string(), - gasUsed: z.string(), - gasPrice: z.string(), - nonce: z.string(), - from: RichAddress$outboundSchema, - to: RichAddress$outboundSchema, - method: Method$outboundSchema.optional(), - value: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NativeTransaction$ { - /** @deprecated use `NativeTransaction$inboundSchema` instead. */ - export const inboundSchema = NativeTransaction$inboundSchema; - /** @deprecated use `NativeTransaction$outboundSchema` instead. */ - export const outboundSchema = NativeTransaction$outboundSchema; - /** @deprecated use `NativeTransaction$Outbound` instead. */ - export type Outbound = NativeTransaction$Outbound; -} - -export function nativeTransactionToJSON( - nativeTransaction: NativeTransaction, -): string { - return JSON.stringify( - NativeTransaction$outboundSchema.parse(nativeTransaction), - ); -} - -export function nativeTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NativeTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NativeTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/network.ts b/data/src/models/components/network.ts deleted file mode 100644 index 09ee8b52..00000000 --- a/data/src/models/components/network.ts +++ /dev/null @@ -1,32 +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 Network = { - Mainnet: "mainnet", - Fuji: "fuji", - Testnet: "testnet", -} as const; -export type Network = ClosedEnum; - -/** @internal */ -export const Network$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Network); - -/** @internal */ -export const Network$outboundSchema: z.ZodNativeEnum = - Network$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Network$ { - /** @deprecated use `Network$inboundSchema` instead. */ - export const inboundSchema = Network$inboundSchema; - /** @deprecated use `Network$outboundSchema` instead. */ - export const outboundSchema = Network$outboundSchema; -} diff --git a/data/src/models/components/networktoken.ts b/data/src/models/components/networktoken.ts deleted file mode 100644 index abae1813..00000000 --- a/data/src/models/components/networktoken.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type NetworkToken = { - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - description?: string | undefined; -}; - -/** @internal */ -export const NetworkToken$inboundSchema: z.ZodType< - NetworkToken, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - description: z.string().optional(), -}); - -/** @internal */ -export type NetworkToken$Outbound = { - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - description?: string | undefined; -}; - -/** @internal */ -export const NetworkToken$outboundSchema: z.ZodType< - NetworkToken$Outbound, - z.ZodTypeDef, - NetworkToken -> = z.object({ - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - description: 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 NetworkToken$ { - /** @deprecated use `NetworkToken$inboundSchema` instead. */ - export const inboundSchema = NetworkToken$inboundSchema; - /** @deprecated use `NetworkToken$outboundSchema` instead. */ - export const outboundSchema = NetworkToken$outboundSchema; - /** @deprecated use `NetworkToken$Outbound` instead. */ - export type Outbound = NetworkToken$Outbound; -} - -export function networkTokenToJSON(networkToken: NetworkToken): string { - return JSON.stringify(NetworkToken$outboundSchema.parse(networkToken)); -} - -export function networkTokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NetworkToken$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NetworkToken' from JSON`, - ); -} diff --git a/data/src/models/components/networktokendetails.ts b/data/src/models/components/networktokendetails.ts deleted file mode 100644 index d4092cab..00000000 --- a/data/src/models/components/networktokendetails.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; -import { - NetworkToken, - NetworkToken$inboundSchema, - NetworkToken$Outbound, - NetworkToken$outboundSchema, -} from "./networktoken.js"; - -export type NetworkTokenDetails = { - networkToken: NetworkToken; - /** - * The current token price, if available. - */ - currentPrice?: Money | undefined; - /** - * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago. - */ - historicalPrice?: Money | undefined; -}; - -/** @internal */ -export const NetworkTokenDetails$inboundSchema: z.ZodType< - NetworkTokenDetails, - z.ZodTypeDef, - unknown -> = z.object({ - networkToken: NetworkToken$inboundSchema, - currentPrice: Money$inboundSchema.optional(), - historicalPrice: Money$inboundSchema.optional(), -}); - -/** @internal */ -export type NetworkTokenDetails$Outbound = { - networkToken: NetworkToken$Outbound; - currentPrice?: Money$Outbound | undefined; - historicalPrice?: Money$Outbound | undefined; -}; - -/** @internal */ -export const NetworkTokenDetails$outboundSchema: z.ZodType< - NetworkTokenDetails$Outbound, - z.ZodTypeDef, - NetworkTokenDetails -> = z.object({ - networkToken: NetworkToken$outboundSchema, - currentPrice: Money$outboundSchema.optional(), - historicalPrice: Money$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NetworkTokenDetails$ { - /** @deprecated use `NetworkTokenDetails$inboundSchema` instead. */ - export const inboundSchema = NetworkTokenDetails$inboundSchema; - /** @deprecated use `NetworkTokenDetails$outboundSchema` instead. */ - export const outboundSchema = NetworkTokenDetails$outboundSchema; - /** @deprecated use `NetworkTokenDetails$Outbound` instead. */ - export type Outbound = NetworkTokenDetails$Outbound; -} - -export function networkTokenDetailsToJSON( - networkTokenDetails: NetworkTokenDetails, -): string { - return JSON.stringify( - NetworkTokenDetails$outboundSchema.parse(networkTokenDetails), - ); -} - -export function networkTokenDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NetworkTokenDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NetworkTokenDetails' from JSON`, - ); -} diff --git a/data/src/models/components/nfttokenmetadatastatus.ts b/data/src/models/components/nfttokenmetadatastatus.ts deleted file mode 100644 index 4d9972bb..00000000 --- a/data/src/models/components/nfttokenmetadatastatus.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * The metadata indexing status of the nft. - */ -export const NftTokenMetadataStatus = { - Unknown: "UNKNOWN", - MissingToken: "MISSING_TOKEN", - InvalidTokenUri: "INVALID_TOKEN_URI", - InvalidTokenUriScheme: "INVALID_TOKEN_URI_SCHEME", - UnreachableTokenUri: "UNREACHABLE_TOKEN_URI", - ThrottledTokenUri: "THROTTLED_TOKEN_URI", - MetadataContentTooLarge: "METADATA_CONTENT_TOO_LARGE", - InvalidMetadata: "INVALID_METADATA", - InvalidMetadataJson: "INVALID_METADATA_JSON", - Indexed: "INDEXED", - Unindexed: "UNINDEXED", -} as const; -/** - * The metadata indexing status of the nft. - */ -export type NftTokenMetadataStatus = ClosedEnum; - -/** @internal */ -export const NftTokenMetadataStatus$inboundSchema: z.ZodNativeEnum< - typeof NftTokenMetadataStatus -> = z.nativeEnum(NftTokenMetadataStatus); - -/** @internal */ -export const NftTokenMetadataStatus$outboundSchema: z.ZodNativeEnum< - typeof NftTokenMetadataStatus -> = NftTokenMetadataStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NftTokenMetadataStatus$ { - /** @deprecated use `NftTokenMetadataStatus$inboundSchema` instead. */ - export const inboundSchema = NftTokenMetadataStatus$inboundSchema; - /** @deprecated use `NftTokenMetadataStatus$outboundSchema` instead. */ - export const outboundSchema = NftTokenMetadataStatus$outboundSchema; -} diff --git a/data/src/models/components/operationstatus.ts b/data/src/models/components/operationstatus.ts deleted file mode 100644 index 9ac26f3a..00000000 --- a/data/src/models/components/operationstatus.ts +++ /dev/null @@ -1,35 +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 OperationStatus = { - Running: "RUNNING", - Completed: "COMPLETED", - CompletedWithWarning: "COMPLETED_WITH_WARNING", - Failed: "FAILED", -} as const; -export type OperationStatus = ClosedEnum; - -/** @internal */ -export const OperationStatus$inboundSchema: z.ZodNativeEnum< - typeof OperationStatus -> = z.nativeEnum(OperationStatus); - -/** @internal */ -export const OperationStatus$outboundSchema: z.ZodNativeEnum< - typeof OperationStatus -> = OperationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OperationStatus$ { - /** @deprecated use `OperationStatus$inboundSchema` instead. */ - export const inboundSchema = OperationStatus$inboundSchema; - /** @deprecated use `OperationStatus$outboundSchema` instead. */ - export const outboundSchema = OperationStatus$outboundSchema; -} diff --git a/data/src/models/components/operationstatuscode.ts b/data/src/models/components/operationstatuscode.ts deleted file mode 100644 index 4278e136..00000000 --- a/data/src/models/components/operationstatuscode.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 OperationStatusCode = { - ErrInvalidRequest: "ErrInvalidRequest", - ErrInternal: "ErrInternal", - WarnTruncatedExport: "WarnTruncatedExport", -} as const; -export type OperationStatusCode = ClosedEnum; - -/** @internal */ -export const OperationStatusCode$inboundSchema: z.ZodNativeEnum< - typeof OperationStatusCode -> = z.nativeEnum(OperationStatusCode); - -/** @internal */ -export const OperationStatusCode$outboundSchema: z.ZodNativeEnum< - typeof OperationStatusCode -> = OperationStatusCode$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OperationStatusCode$ { - /** @deprecated use `OperationStatusCode$inboundSchema` instead. */ - export const inboundSchema = OperationStatusCode$inboundSchema; - /** @deprecated use `OperationStatusCode$outboundSchema` instead. */ - export const outboundSchema = OperationStatusCode$outboundSchema; -} diff --git a/data/src/models/components/operationstatusresponse.ts b/data/src/models/components/operationstatusresponse.ts deleted file mode 100644 index b9640860..00000000 --- a/data/src/models/components/operationstatusresponse.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - OperationStatus, - OperationStatus$inboundSchema, - OperationStatus$outboundSchema, -} from "./operationstatus.js"; -import { - OperationType, - OperationType$inboundSchema, - OperationType$outboundSchema, -} from "./operationtype.js"; -import { - TransactionExportMetadata, - TransactionExportMetadata$inboundSchema, - TransactionExportMetadata$Outbound, - TransactionExportMetadata$outboundSchema, -} from "./transactionexportmetadata.js"; - -export type Metadata = TransactionExportMetadata; - -export type OperationStatusResponse = { - operationId: string; - operationType: OperationType; - operationStatus: OperationStatus; - message?: string | undefined; - metadata?: TransactionExportMetadata | undefined; - createdAtTimestamp: number; - updatedAtTimestamp: number; -}; - -/** @internal */ -export const Metadata$inboundSchema: z.ZodType< - Metadata, - z.ZodTypeDef, - unknown -> = TransactionExportMetadata$inboundSchema; - -/** @internal */ -export type Metadata$Outbound = TransactionExportMetadata$Outbound; - -/** @internal */ -export const Metadata$outboundSchema: z.ZodType< - Metadata$Outbound, - z.ZodTypeDef, - Metadata -> = TransactionExportMetadata$outboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Metadata$ { - /** @deprecated use `Metadata$inboundSchema` instead. */ - export const inboundSchema = Metadata$inboundSchema; - /** @deprecated use `Metadata$outboundSchema` instead. */ - export const outboundSchema = Metadata$outboundSchema; - /** @deprecated use `Metadata$Outbound` instead. */ - export type Outbound = Metadata$Outbound; -} - -export function metadataToJSON(metadata: Metadata): string { - return JSON.stringify(Metadata$outboundSchema.parse(metadata)); -} - -export function metadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Metadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Metadata' from JSON`, - ); -} - -/** @internal */ -export const OperationStatusResponse$inboundSchema: z.ZodType< - OperationStatusResponse, - z.ZodTypeDef, - unknown -> = z.object({ - operationId: z.string(), - operationType: OperationType$inboundSchema, - operationStatus: OperationStatus$inboundSchema, - message: z.string().optional(), - metadata: TransactionExportMetadata$inboundSchema.optional(), - createdAtTimestamp: z.number(), - updatedAtTimestamp: z.number(), -}); - -/** @internal */ -export type OperationStatusResponse$Outbound = { - operationId: string; - operationType: string; - operationStatus: string; - message?: string | undefined; - metadata?: TransactionExportMetadata$Outbound | undefined; - createdAtTimestamp: number; - updatedAtTimestamp: number; -}; - -/** @internal */ -export const OperationStatusResponse$outboundSchema: z.ZodType< - OperationStatusResponse$Outbound, - z.ZodTypeDef, - OperationStatusResponse -> = z.object({ - operationId: z.string(), - operationType: OperationType$outboundSchema, - operationStatus: OperationStatus$outboundSchema, - message: z.string().optional(), - metadata: TransactionExportMetadata$outboundSchema.optional(), - createdAtTimestamp: z.number(), - updatedAtTimestamp: 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 OperationStatusResponse$ { - /** @deprecated use `OperationStatusResponse$inboundSchema` instead. */ - export const inboundSchema = OperationStatusResponse$inboundSchema; - /** @deprecated use `OperationStatusResponse$outboundSchema` instead. */ - export const outboundSchema = OperationStatusResponse$outboundSchema; - /** @deprecated use `OperationStatusResponse$Outbound` instead. */ - export type Outbound = OperationStatusResponse$Outbound; -} - -export function operationStatusResponseToJSON( - operationStatusResponse: OperationStatusResponse, -): string { - return JSON.stringify( - OperationStatusResponse$outboundSchema.parse(operationStatusResponse), - ); -} - -export function operationStatusResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => OperationStatusResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'OperationStatusResponse' from JSON`, - ); -} diff --git a/data/src/models/components/operationtype.ts b/data/src/models/components/operationtype.ts deleted file mode 100644 index 82a945dd..00000000 --- a/data/src/models/components/operationtype.ts +++ /dev/null @@ -1,37 +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 OperationType = { - TransactionExportPrimaryNetwork: "TRANSACTION_EXPORT_PRIMARY_NETWORK", - TransactionExportPrimaryNetworkStaking: - "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING", - TransactionExportPrimaryNetworkSimple: - "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", - TransactionExportEvm: "TRANSACTION_EXPORT_EVM", -} as const; -export type OperationType = ClosedEnum; - -/** @internal */ -export const OperationType$inboundSchema: z.ZodNativeEnum< - typeof OperationType -> = z.nativeEnum(OperationType); - -/** @internal */ -export const OperationType$outboundSchema: z.ZodNativeEnum< - typeof OperationType -> = OperationType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OperationType$ { - /** @deprecated use `OperationType$inboundSchema` instead. */ - export const inboundSchema = OperationType$inboundSchema; - /** @deprecated use `OperationType$outboundSchema` instead. */ - export const outboundSchema = OperationType$outboundSchema; -} diff --git a/data/src/models/components/pchainbalance.ts b/data/src/models/components/pchainbalance.ts deleted file mode 100644 index 5b1af949..00000000 --- a/data/src/models/components/pchainbalance.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AggregatedAssetAmount, - AggregatedAssetAmount$inboundSchema, - AggregatedAssetAmount$Outbound, - AggregatedAssetAmount$outboundSchema, -} from "./aggregatedassetamount.js"; -import { - PChainSharedAsset, - PChainSharedAsset$inboundSchema, - PChainSharedAsset$Outbound, - PChainSharedAsset$outboundSchema, -} from "./pchainsharedasset.js"; - -export type PChainBalance = { - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction. - */ - unlockedUnstaked: Array; - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends. - */ - unlockedStaked: Array; - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time. - */ - lockedPlatform: Array; - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions. - */ - lockedStakeable: Array; - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends. - */ - lockedStaked: Array; - /** - * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started. - */ - pendingStaked: Array; - /** - * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain. - */ - atomicMemoryUnlocked: Array; - /** - * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain. - */ - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const PChainBalance$inboundSchema: z.ZodType< - PChainBalance, - z.ZodTypeDef, - unknown -> = z.object({ - unlockedUnstaked: z.array(AggregatedAssetAmount$inboundSchema), - unlockedStaked: z.array(AggregatedAssetAmount$inboundSchema), - lockedPlatform: z.array(AggregatedAssetAmount$inboundSchema), - lockedStakeable: z.array(AggregatedAssetAmount$inboundSchema), - lockedStaked: z.array(AggregatedAssetAmount$inboundSchema), - pendingStaked: z.array(AggregatedAssetAmount$inboundSchema), - atomicMemoryUnlocked: z.array(PChainSharedAsset$inboundSchema), - atomicMemoryLocked: z.array(PChainSharedAsset$inboundSchema), -}); - -/** @internal */ -export type PChainBalance$Outbound = { - unlockedUnstaked: Array; - unlockedStaked: Array; - lockedPlatform: Array; - lockedStakeable: Array; - lockedStaked: Array; - pendingStaked: Array; - atomicMemoryUnlocked: Array; - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const PChainBalance$outboundSchema: z.ZodType< - PChainBalance$Outbound, - z.ZodTypeDef, - PChainBalance -> = z.object({ - unlockedUnstaked: z.array(AggregatedAssetAmount$outboundSchema), - unlockedStaked: z.array(AggregatedAssetAmount$outboundSchema), - lockedPlatform: z.array(AggregatedAssetAmount$outboundSchema), - lockedStakeable: z.array(AggregatedAssetAmount$outboundSchema), - lockedStaked: z.array(AggregatedAssetAmount$outboundSchema), - pendingStaked: z.array(AggregatedAssetAmount$outboundSchema), - atomicMemoryUnlocked: z.array(PChainSharedAsset$outboundSchema), - atomicMemoryLocked: z.array(PChainSharedAsset$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainBalance$ { - /** @deprecated use `PChainBalance$inboundSchema` instead. */ - export const inboundSchema = PChainBalance$inboundSchema; - /** @deprecated use `PChainBalance$outboundSchema` instead. */ - export const outboundSchema = PChainBalance$outboundSchema; - /** @deprecated use `PChainBalance$Outbound` instead. */ - export type Outbound = PChainBalance$Outbound; -} - -export function pChainBalanceToJSON(pChainBalance: PChainBalance): string { - return JSON.stringify(PChainBalance$outboundSchema.parse(pChainBalance)); -} - -export function pChainBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainBalance' from JSON`, - ); -} diff --git a/data/src/models/components/pchainid.ts b/data/src/models/components/pchainid.ts deleted file mode 100644 index 7d519a66..00000000 --- a/data/src/models/components/pchainid.ts +++ /dev/null @@ -1,32 +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 PChainId = { - ElevenNonillionOneHundredAndElevenOctillionOneHundredAndElevenSeptillionOneHundredAndElevenSextillionOneHundredAndElevenQuintillionOneHundredAndElevenQuadrillionOneHundredAndElevenTrillionOneHundredAndElevenBillionOneHundredAndElevenMillionOneHundredAndElevenThousandOneHundredAndElevenLpoYY: - "11111111111111111111111111111111LpoYY", - PChain: "p-chain", -} as const; -export type PChainId = ClosedEnum; - -/** @internal */ -export const PChainId$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(PChainId); - -/** @internal */ -export const PChainId$outboundSchema: z.ZodNativeEnum = - PChainId$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainId$ { - /** @deprecated use `PChainId$inboundSchema` instead. */ - export const inboundSchema = PChainId$inboundSchema; - /** @deprecated use `PChainId$outboundSchema` instead. */ - export const outboundSchema = PChainId$outboundSchema; -} diff --git a/data/src/models/components/pchainsharedasset.ts b/data/src/models/components/pchainsharedasset.ts deleted file mode 100644 index c33e3cd6..00000000 --- a/data/src/models/components/pchainsharedasset.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type PChainSharedAsset = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; - utxoCount: number; - sharedWithChainId: string; - status: string; -}; - -/** @internal */ -export const PChainSharedAsset$inboundSchema: z.ZodType< - PChainSharedAsset, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), - status: z.string(), -}); - -/** @internal */ -export type PChainSharedAsset$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; - utxoCount: number; - sharedWithChainId: string; - status: string; -}; - -/** @internal */ -export const PChainSharedAsset$outboundSchema: z.ZodType< - PChainSharedAsset$Outbound, - z.ZodTypeDef, - PChainSharedAsset -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), - status: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainSharedAsset$ { - /** @deprecated use `PChainSharedAsset$inboundSchema` instead. */ - export const inboundSchema = PChainSharedAsset$inboundSchema; - /** @deprecated use `PChainSharedAsset$outboundSchema` instead. */ - export const outboundSchema = PChainSharedAsset$outboundSchema; - /** @deprecated use `PChainSharedAsset$Outbound` instead. */ - export type Outbound = PChainSharedAsset$Outbound; -} - -export function pChainSharedAssetToJSON( - pChainSharedAsset: PChainSharedAsset, -): string { - return JSON.stringify( - PChainSharedAsset$outboundSchema.parse(pChainSharedAsset), - ); -} - -export function pChainSharedAssetFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainSharedAsset$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainSharedAsset' from JSON`, - ); -} diff --git a/data/src/models/components/pchaintransaction.ts b/data/src/models/components/pchaintransaction.ts deleted file mode 100644 index 98c061c8..00000000 --- a/data/src/models/components/pchaintransaction.ts +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - BlockchainInfo, - BlockchainInfo$inboundSchema, - BlockchainInfo$Outbound, - BlockchainInfo$outboundSchema, -} from "./blockchaininfo.js"; -import { - BlsCredentials, - BlsCredentials$inboundSchema, - BlsCredentials$Outbound, - BlsCredentials$outboundSchema, -} from "./blscredentials.js"; -import { - L1ValidatorDetailsTransaction, - L1ValidatorDetailsTransaction$inboundSchema, - L1ValidatorDetailsTransaction$Outbound, - L1ValidatorDetailsTransaction$outboundSchema, -} from "./l1validatordetailstransaction.js"; -import { - L1ValidatorManagerDetails, - L1ValidatorManagerDetails$inboundSchema, - L1ValidatorManagerDetails$Outbound, - L1ValidatorManagerDetails$outboundSchema, -} from "./l1validatormanagerdetails.js"; -import { - PChainTransactionType, - PChainTransactionType$inboundSchema, - PChainTransactionType$outboundSchema, -} from "./pchaintransactiontype.js"; -import { - PChainUtxo, - PChainUtxo$inboundSchema, - PChainUtxo$Outbound, - PChainUtxo$outboundSchema, -} from "./pchainutxo.js"; -import { - SubnetOwnershipInfo, - SubnetOwnershipInfo$inboundSchema, - SubnetOwnershipInfo$Outbound, - SubnetOwnershipInfo$outboundSchema, -} from "./subnetownershipinfo.js"; - -export type PChainTransaction = { - /** - * A P-Chain transaction hash. - */ - txHash: string; - txType: PChainTransactionType; - /** - * The block finality timestamp. - */ - blockTimestamp: number; - /** - * The height of the block in which the transaction was included - */ - blockNumber: string; - blockHash: string; - /** - * The consumed UTXOs of the transaction - */ - consumedUtxos: Array; - /** - * The newly created UTXOs of the transaction - */ - emittedUtxos: Array; - /** - * Source chain for an atomic transaction. - */ - sourceChain?: string | undefined; - /** - * Destination chain for an atomic transaction. - */ - destinationChain?: string | undefined; - /** - * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction - */ - value: Array; - /** - * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee - */ - amountBurned: Array; - /** - * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx - */ - amountStaked: Array; - /** - * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation. - */ - amountL1ValidatorBalanceBurned: Array; - /** - * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx - */ - startTimestamp?: number | undefined; - /** - * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx - */ - endTimestamp?: number | undefined; - /** - * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx - */ - delegationFeePercent?: string | undefined; - /** - * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx - */ - nodeId?: string | undefined; - /** - * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx - */ - subnetId?: string | undefined; - /** - * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1 - */ - l1ValidatorManagerDetails?: L1ValidatorManagerDetails | undefined; - /** - * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time - */ - l1ValidatorDetails?: Array | undefined; - /** - * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx - */ - estimatedReward?: string | undefined; - /** - * Reward transaction hash for the completed validations or delegations - */ - rewardTxHash?: string | undefined; - rewardAddresses?: Array | undefined; - memo?: string | undefined; - /** - * Staking transaction corresponding to the RewardValidatorTx - */ - stakingTxHash?: string | undefined; - /** - * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx - */ - subnetOwnershipInfo?: SubnetOwnershipInfo | undefined; - /** - * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx - */ - blsCredentials?: BlsCredentials | undefined; - /** - * Details of the blockchain that was created in the CreateChainTx - */ - blockchainInfo?: BlockchainInfo | undefined; -}; - -/** @internal */ -export const PChainTransaction$inboundSchema: z.ZodType< - PChainTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - txType: PChainTransactionType$inboundSchema, - blockTimestamp: z.number(), - blockNumber: z.string(), - blockHash: z.string(), - consumedUtxos: z.array(PChainUtxo$inboundSchema), - emittedUtxos: z.array(PChainUtxo$inboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - value: z.array(AssetAmount$inboundSchema), - amountBurned: z.array(AssetAmount$inboundSchema), - amountStaked: z.array(AssetAmount$inboundSchema), - amountL1ValidatorBalanceBurned: z.array(AssetAmount$inboundSchema), - startTimestamp: z.number().optional(), - endTimestamp: z.number().optional(), - delegationFeePercent: z.string().optional(), - nodeId: z.string().optional(), - subnetId: z.string().optional(), - l1ValidatorManagerDetails: L1ValidatorManagerDetails$inboundSchema.optional(), - l1ValidatorDetails: z.array(L1ValidatorDetailsTransaction$inboundSchema) - .optional(), - estimatedReward: z.string().optional(), - rewardTxHash: z.string().optional(), - rewardAddresses: z.array(z.string()).optional(), - memo: z.string().optional(), - stakingTxHash: z.string().optional(), - subnetOwnershipInfo: SubnetOwnershipInfo$inboundSchema.optional(), - blsCredentials: BlsCredentials$inboundSchema.optional(), - blockchainInfo: BlockchainInfo$inboundSchema.optional(), -}); - -/** @internal */ -export type PChainTransaction$Outbound = { - txHash: string; - txType: string; - blockTimestamp: number; - blockNumber: string; - blockHash: string; - consumedUtxos: Array; - emittedUtxos: Array; - sourceChain?: string | undefined; - destinationChain?: string | undefined; - value: Array; - amountBurned: Array; - amountStaked: Array; - amountL1ValidatorBalanceBurned: Array; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - delegationFeePercent?: string | undefined; - nodeId?: string | undefined; - subnetId?: string | undefined; - l1ValidatorManagerDetails?: L1ValidatorManagerDetails$Outbound | undefined; - l1ValidatorDetails?: - | Array - | undefined; - estimatedReward?: string | undefined; - rewardTxHash?: string | undefined; - rewardAddresses?: Array | undefined; - memo?: string | undefined; - stakingTxHash?: string | undefined; - subnetOwnershipInfo?: SubnetOwnershipInfo$Outbound | undefined; - blsCredentials?: BlsCredentials$Outbound | undefined; - blockchainInfo?: BlockchainInfo$Outbound | undefined; -}; - -/** @internal */ -export const PChainTransaction$outboundSchema: z.ZodType< - PChainTransaction$Outbound, - z.ZodTypeDef, - PChainTransaction -> = z.object({ - txHash: z.string(), - txType: PChainTransactionType$outboundSchema, - blockTimestamp: z.number(), - blockNumber: z.string(), - blockHash: z.string(), - consumedUtxos: z.array(PChainUtxo$outboundSchema), - emittedUtxos: z.array(PChainUtxo$outboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - value: z.array(AssetAmount$outboundSchema), - amountBurned: z.array(AssetAmount$outboundSchema), - amountStaked: z.array(AssetAmount$outboundSchema), - amountL1ValidatorBalanceBurned: z.array(AssetAmount$outboundSchema), - startTimestamp: z.number().optional(), - endTimestamp: z.number().optional(), - delegationFeePercent: z.string().optional(), - nodeId: z.string().optional(), - subnetId: z.string().optional(), - l1ValidatorManagerDetails: L1ValidatorManagerDetails$outboundSchema - .optional(), - l1ValidatorDetails: z.array(L1ValidatorDetailsTransaction$outboundSchema) - .optional(), - estimatedReward: z.string().optional(), - rewardTxHash: z.string().optional(), - rewardAddresses: z.array(z.string()).optional(), - memo: z.string().optional(), - stakingTxHash: z.string().optional(), - subnetOwnershipInfo: SubnetOwnershipInfo$outboundSchema.optional(), - blsCredentials: BlsCredentials$outboundSchema.optional(), - blockchainInfo: BlockchainInfo$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainTransaction$ { - /** @deprecated use `PChainTransaction$inboundSchema` instead. */ - export const inboundSchema = PChainTransaction$inboundSchema; - /** @deprecated use `PChainTransaction$outboundSchema` instead. */ - export const outboundSchema = PChainTransaction$outboundSchema; - /** @deprecated use `PChainTransaction$Outbound` instead. */ - export type Outbound = PChainTransaction$Outbound; -} - -export function pChainTransactionToJSON( - pChainTransaction: PChainTransaction, -): string { - return JSON.stringify( - PChainTransaction$outboundSchema.parse(pChainTransaction), - ); -} - -export function pChainTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/pchaintransactiontype.ts b/data/src/models/components/pchaintransactiontype.ts deleted file mode 100644 index 837272b9..00000000 --- a/data/src/models/components/pchaintransactiontype.ts +++ /dev/null @@ -1,52 +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 PChainTransactionType = { - AddValidatorTx: "AddValidatorTx", - AddSubnetValidatorTx: "AddSubnetValidatorTx", - AddDelegatorTx: "AddDelegatorTx", - CreateChainTx: "CreateChainTx", - CreateSubnetTx: "CreateSubnetTx", - ImportTx: "ImportTx", - ExportTx: "ExportTx", - AdvanceTimeTx: "AdvanceTimeTx", - RewardValidatorTx: "RewardValidatorTx", - RemoveSubnetValidatorTx: "RemoveSubnetValidatorTx", - TransformSubnetTx: "TransformSubnetTx", - AddPermissionlessValidatorTx: "AddPermissionlessValidatorTx", - AddPermissionlessDelegatorTx: "AddPermissionlessDelegatorTx", - BaseTx: "BaseTx", - TransferSubnetOwnershipTx: "TransferSubnetOwnershipTx", - ConvertSubnetToL1Tx: "ConvertSubnetToL1Tx", - RegisterL1ValidatorTx: "RegisterL1ValidatorTx", - SetL1ValidatorWeightTx: "SetL1ValidatorWeightTx", - DisableL1ValidatorTx: "DisableL1ValidatorTx", - IncreaseL1ValidatorBalanceTx: "IncreaseL1ValidatorBalanceTx", - Unknown: "UNKNOWN", -} as const; -export type PChainTransactionType = ClosedEnum; - -/** @internal */ -export const PChainTransactionType$inboundSchema: z.ZodNativeEnum< - typeof PChainTransactionType -> = z.nativeEnum(PChainTransactionType); - -/** @internal */ -export const PChainTransactionType$outboundSchema: z.ZodNativeEnum< - typeof PChainTransactionType -> = PChainTransactionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainTransactionType$ { - /** @deprecated use `PChainTransactionType$inboundSchema` instead. */ - export const inboundSchema = PChainTransactionType$inboundSchema; - /** @deprecated use `PChainTransactionType$outboundSchema` instead. */ - export const outboundSchema = PChainTransactionType$outboundSchema; -} diff --git a/data/src/models/components/pchainutxo.ts b/data/src/models/components/pchainutxo.ts deleted file mode 100644 index 75415b08..00000000 --- a/data/src/models/components/pchainutxo.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - RewardType, - RewardType$inboundSchema, - RewardType$outboundSchema, -} from "./rewardtype.js"; -import { - UtxoType, - UtxoType$inboundSchema, - UtxoType$outboundSchema, -} from "./utxotype.js"; - -export type PChainUtxo = { - /** - * Addresses that are eligible to sign the consumption of this output. - */ - addresses: Array; - asset: AssetAmount; - /** - * Blockchain ID on which this output is consumed on. - */ - consumedOnChainId: string; - /** - * Transaction ID that consumed this output. - */ - consumingTxHash?: string | undefined; - /** - * Blockchain ID on which this output is created on. - */ - createdOnChainId: string; - /** - * UTXO ID for this output. - */ - utxoId: string; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - amount: string; - /** - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - assetId: string; - blockNumber: string; - blockTimestamp: number; - /** - * Block height in which the transaction consuming this UTXO was included - */ - consumingBlockNumber?: string | undefined; - /** - * Timestamp in seconds at which this UTXO is used in a consuming transaction - */ - consumingBlockTimestamp?: number | undefined; - /** - * Timestamp in seconds after which this UTXO can be consumed - */ - platformLocktime?: number | undefined; - /** - * The index of the UTXO in the transaction - */ - outputIndex: number; - rewardType?: RewardType | undefined; - /** - * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything - */ - stakeableLocktime?: number | undefined; - staked?: boolean | undefined; - /** - * The minimum number of signatures required to spend this UTXO - */ - threshold?: number | undefined; - /** - * The hash of the transaction that created this UTXO - */ - txHash: string; - /** - * Timestamp in seconds after which the staked UTXO will be unlocked. - */ - utxoEndTimestamp?: number | undefined; - /** - * Timestamp in seconds at which the staked UTXO was locked. - */ - utxoStartTimestamp?: number | undefined; - /** - * Indicates whether the UTXO is staked or transferable - */ - utxoType: UtxoType; -}; - -/** @internal */ -export const PChainUtxo$inboundSchema: z.ZodType< - PChainUtxo, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - asset: AssetAmount$inboundSchema, - consumedOnChainId: z.string(), - consumingTxHash: z.string().optional(), - createdOnChainId: z.string(), - utxoId: z.string(), - amount: z.string(), - assetId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - consumingBlockNumber: z.string().optional(), - consumingBlockTimestamp: z.number().optional(), - platformLocktime: z.number().optional(), - outputIndex: z.number(), - rewardType: RewardType$inboundSchema.optional(), - stakeableLocktime: z.number().optional(), - staked: z.boolean().optional(), - threshold: z.number().optional(), - txHash: z.string(), - utxoEndTimestamp: z.number().optional(), - utxoStartTimestamp: z.number().optional(), - utxoType: UtxoType$inboundSchema, -}); - -/** @internal */ -export type PChainUtxo$Outbound = { - addresses: Array; - asset: AssetAmount$Outbound; - consumedOnChainId: string; - consumingTxHash?: string | undefined; - createdOnChainId: string; - utxoId: string; - amount: string; - assetId: string; - blockNumber: string; - blockTimestamp: number; - consumingBlockNumber?: string | undefined; - consumingBlockTimestamp?: number | undefined; - platformLocktime?: number | undefined; - outputIndex: number; - rewardType?: string | undefined; - stakeableLocktime?: number | undefined; - staked?: boolean | undefined; - threshold?: number | undefined; - txHash: string; - utxoEndTimestamp?: number | undefined; - utxoStartTimestamp?: number | undefined; - utxoType: string; -}; - -/** @internal */ -export const PChainUtxo$outboundSchema: z.ZodType< - PChainUtxo$Outbound, - z.ZodTypeDef, - PChainUtxo -> = z.object({ - addresses: z.array(z.string()), - asset: AssetAmount$outboundSchema, - consumedOnChainId: z.string(), - consumingTxHash: z.string().optional(), - createdOnChainId: z.string(), - utxoId: z.string(), - amount: z.string(), - assetId: z.string(), - blockNumber: z.string(), - blockTimestamp: z.number(), - consumingBlockNumber: z.string().optional(), - consumingBlockTimestamp: z.number().optional(), - platformLocktime: z.number().optional(), - outputIndex: z.number(), - rewardType: RewardType$outboundSchema.optional(), - stakeableLocktime: z.number().optional(), - staked: z.boolean().optional(), - threshold: z.number().optional(), - txHash: z.string(), - utxoEndTimestamp: z.number().optional(), - utxoStartTimestamp: z.number().optional(), - utxoType: UtxoType$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainUtxo$ { - /** @deprecated use `PChainUtxo$inboundSchema` instead. */ - export const inboundSchema = PChainUtxo$inboundSchema; - /** @deprecated use `PChainUtxo$outboundSchema` instead. */ - export const outboundSchema = PChainUtxo$outboundSchema; - /** @deprecated use `PChainUtxo$Outbound` instead. */ - export type Outbound = PChainUtxo$Outbound; -} - -export function pChainUtxoToJSON(pChainUtxo: PChainUtxo): string { - return JSON.stringify(PChainUtxo$outboundSchema.parse(pChainUtxo)); -} - -export function pChainUtxoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainUtxo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainUtxo' from JSON`, - ); -} diff --git a/data/src/models/components/pendingdelegatordetails.ts b/data/src/models/components/pendingdelegatordetails.ts deleted file mode 100644 index 0b5cbacd..00000000 --- a/data/src/models/components/pendingdelegatordetails.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export const PendingDelegatorDetailsDelegationStatus = { - Pending: "pending", -} as const; -export type PendingDelegatorDetailsDelegationStatus = ClosedEnum< - typeof PendingDelegatorDetailsDelegationStatus ->; - -export type PendingDelegatorDetails = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - /** - * Estimated total rewards that will be distributed for the successful delegation. - */ - estimatedGrossReward: string; - /** - * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation. - */ - estimatedNetReward: string; - delegationStatus: PendingDelegatorDetailsDelegationStatus; -}; - -/** @internal */ -export const PendingDelegatorDetailsDelegationStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(PendingDelegatorDetailsDelegationStatus); - -/** @internal */ -export const PendingDelegatorDetailsDelegationStatus$outboundSchema: - z.ZodNativeEnum = - PendingDelegatorDetailsDelegationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingDelegatorDetailsDelegationStatus$ { - /** @deprecated use `PendingDelegatorDetailsDelegationStatus$inboundSchema` instead. */ - export const inboundSchema = - PendingDelegatorDetailsDelegationStatus$inboundSchema; - /** @deprecated use `PendingDelegatorDetailsDelegationStatus$outboundSchema` instead. */ - export const outboundSchema = - PendingDelegatorDetailsDelegationStatus$outboundSchema; -} - -/** @internal */ -export const PendingDelegatorDetails$inboundSchema: z.ZodType< - PendingDelegatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - estimatedGrossReward: z.string(), - estimatedNetReward: z.string(), - delegationStatus: PendingDelegatorDetailsDelegationStatus$inboundSchema, -}); - -/** @internal */ -export type PendingDelegatorDetails$Outbound = { - txHash: string; - nodeId: string; - rewardAddresses: Array; - amountDelegated: string; - delegationFee: string; - startTimestamp: number; - endTimestamp: number; - estimatedGrossReward: string; - estimatedNetReward: string; - delegationStatus: string; -}; - -/** @internal */ -export const PendingDelegatorDetails$outboundSchema: z.ZodType< - PendingDelegatorDetails$Outbound, - z.ZodTypeDef, - PendingDelegatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - rewardAddresses: z.array(z.string()), - amountDelegated: z.string(), - delegationFee: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - estimatedGrossReward: z.string(), - estimatedNetReward: z.string(), - delegationStatus: PendingDelegatorDetailsDelegationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingDelegatorDetails$ { - /** @deprecated use `PendingDelegatorDetails$inboundSchema` instead. */ - export const inboundSchema = PendingDelegatorDetails$inboundSchema; - /** @deprecated use `PendingDelegatorDetails$outboundSchema` instead. */ - export const outboundSchema = PendingDelegatorDetails$outboundSchema; - /** @deprecated use `PendingDelegatorDetails$Outbound` instead. */ - export type Outbound = PendingDelegatorDetails$Outbound; -} - -export function pendingDelegatorDetailsToJSON( - pendingDelegatorDetails: PendingDelegatorDetails, -): string { - return JSON.stringify( - PendingDelegatorDetails$outboundSchema.parse(pendingDelegatorDetails), - ); -} - -export function pendingDelegatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PendingDelegatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PendingDelegatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/pendingicmmessage.ts b/data/src/models/components/pendingicmmessage.ts deleted file mode 100644 index 79c18668..00000000 --- a/data/src/models/components/pendingicmmessage.ts +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - IcmReceipt, - IcmReceipt$inboundSchema, - IcmReceipt$Outbound, - IcmReceipt$outboundSchema, -} from "./icmreceipt.js"; -import { - IcmRewardDetails, - IcmRewardDetails$inboundSchema, - IcmRewardDetails$Outbound, - IcmRewardDetails$outboundSchema, -} from "./icmrewarddetails.js"; -import { - IcmSourceTransaction, - IcmSourceTransaction$inboundSchema, - IcmSourceTransaction$Outbound, - IcmSourceTransaction$outboundSchema, -} from "./icmsourcetransaction.js"; - -export const PendingIcmMessageStatus = { - Pending: "pending", -} as const; -export type PendingIcmMessageStatus = ClosedEnum< - typeof PendingIcmMessageStatus ->; - -export type PendingIcmMessage = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails; - sourceTransaction: IcmSourceTransaction; - status: PendingIcmMessageStatus; -}; - -/** @internal */ -export const PendingIcmMessageStatus$inboundSchema: z.ZodNativeEnum< - typeof PendingIcmMessageStatus -> = z.nativeEnum(PendingIcmMessageStatus); - -/** @internal */ -export const PendingIcmMessageStatus$outboundSchema: z.ZodNativeEnum< - typeof PendingIcmMessageStatus -> = PendingIcmMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingIcmMessageStatus$ { - /** @deprecated use `PendingIcmMessageStatus$inboundSchema` instead. */ - export const inboundSchema = PendingIcmMessageStatus$inboundSchema; - /** @deprecated use `PendingIcmMessageStatus$outboundSchema` instead. */ - export const outboundSchema = PendingIcmMessageStatus$outboundSchema; -} - -/** @internal */ -export const PendingIcmMessage$inboundSchema: z.ZodType< - PendingIcmMessage, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$inboundSchema, - sourceTransaction: IcmSourceTransaction$inboundSchema, - status: PendingIcmMessageStatus$inboundSchema, -}); - -/** @internal */ -export type PendingIcmMessage$Outbound = { - messageId: string; - icmContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: IcmRewardDetails$Outbound; - sourceTransaction: IcmSourceTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const PendingIcmMessage$outboundSchema: z.ZodType< - PendingIcmMessage$Outbound, - z.ZodTypeDef, - PendingIcmMessage -> = z.object({ - messageId: z.string(), - icmContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(IcmReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: IcmRewardDetails$outboundSchema, - sourceTransaction: IcmSourceTransaction$outboundSchema, - status: PendingIcmMessageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingIcmMessage$ { - /** @deprecated use `PendingIcmMessage$inboundSchema` instead. */ - export const inboundSchema = PendingIcmMessage$inboundSchema; - /** @deprecated use `PendingIcmMessage$outboundSchema` instead. */ - export const outboundSchema = PendingIcmMessage$outboundSchema; - /** @deprecated use `PendingIcmMessage$Outbound` instead. */ - export type Outbound = PendingIcmMessage$Outbound; -} - -export function pendingIcmMessageToJSON( - pendingIcmMessage: PendingIcmMessage, -): string { - return JSON.stringify( - PendingIcmMessage$outboundSchema.parse(pendingIcmMessage), - ); -} - -export function pendingIcmMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PendingIcmMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PendingIcmMessage' from JSON`, - ); -} diff --git a/data/src/models/components/pendingreward.ts b/data/src/models/components/pendingreward.ts deleted file mode 100644 index af0b62dd..00000000 --- a/data/src/models/components/pendingreward.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - RewardType, - RewardType$inboundSchema, - RewardType$outboundSchema, -} from "./rewardtype.js"; - -export type PendingReward = { - /** - * An array of P-Chain wallet addresses. - */ - addresses: Array; - txHash: string; - amountStaked: string; - nodeId: string; - startTimestamp: number; - endTimestamp: number; - rewardType: RewardType; - progress: number; - /** - * An object containing P-chain Asset basic info and the amount of that Asset ID. - */ - estimatedReward: AssetAmount; -}; - -/** @internal */ -export const PendingReward$inboundSchema: z.ZodType< - PendingReward, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - txHash: z.string(), - amountStaked: z.string(), - nodeId: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - rewardType: RewardType$inboundSchema, - progress: z.number(), - estimatedReward: AssetAmount$inboundSchema, -}); - -/** @internal */ -export type PendingReward$Outbound = { - addresses: Array; - txHash: string; - amountStaked: string; - nodeId: string; - startTimestamp: number; - endTimestamp: number; - rewardType: string; - progress: number; - estimatedReward: AssetAmount$Outbound; -}; - -/** @internal */ -export const PendingReward$outboundSchema: z.ZodType< - PendingReward$Outbound, - z.ZodTypeDef, - PendingReward -> = z.object({ - addresses: z.array(z.string()), - txHash: z.string(), - amountStaked: z.string(), - nodeId: z.string(), - startTimestamp: z.number(), - endTimestamp: z.number(), - rewardType: RewardType$outboundSchema, - progress: z.number(), - estimatedReward: AssetAmount$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingReward$ { - /** @deprecated use `PendingReward$inboundSchema` instead. */ - export const inboundSchema = PendingReward$inboundSchema; - /** @deprecated use `PendingReward$outboundSchema` instead. */ - export const outboundSchema = PendingReward$outboundSchema; - /** @deprecated use `PendingReward$Outbound` instead. */ - export type Outbound = PendingReward$Outbound; -} - -export function pendingRewardToJSON(pendingReward: PendingReward): string { - return JSON.stringify(PendingReward$outboundSchema.parse(pendingReward)); -} - -export function pendingRewardFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PendingReward$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PendingReward' from JSON`, - ); -} diff --git a/data/src/models/components/pendingteleportermessage.ts b/data/src/models/components/pendingteleportermessage.ts deleted file mode 100644 index 8f57de40..00000000 --- a/data/src/models/components/pendingteleportermessage.ts +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TeleporterReceipt, - TeleporterReceipt$inboundSchema, - TeleporterReceipt$Outbound, - TeleporterReceipt$outboundSchema, -} from "./teleporterreceipt.js"; -import { - TeleporterRewardDetails, - TeleporterRewardDetails$inboundSchema, - TeleporterRewardDetails$Outbound, - TeleporterRewardDetails$outboundSchema, -} from "./teleporterrewarddetails.js"; -import { - TeleporterSourceTransaction, - TeleporterSourceTransaction$inboundSchema, - TeleporterSourceTransaction$Outbound, - TeleporterSourceTransaction$outboundSchema, -} from "./teleportersourcetransaction.js"; - -export const PendingTeleporterMessageStatus = { - Pending: "pending", -} as const; -export type PendingTeleporterMessageStatus = ClosedEnum< - typeof PendingTeleporterMessageStatus ->; - -export type PendingTeleporterMessage = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails; - sourceTransaction: TeleporterSourceTransaction; - status: PendingTeleporterMessageStatus; -}; - -/** @internal */ -export const PendingTeleporterMessageStatus$inboundSchema: z.ZodNativeEnum< - typeof PendingTeleporterMessageStatus -> = z.nativeEnum(PendingTeleporterMessageStatus); - -/** @internal */ -export const PendingTeleporterMessageStatus$outboundSchema: z.ZodNativeEnum< - typeof PendingTeleporterMessageStatus -> = PendingTeleporterMessageStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingTeleporterMessageStatus$ { - /** @deprecated use `PendingTeleporterMessageStatus$inboundSchema` instead. */ - export const inboundSchema = PendingTeleporterMessageStatus$inboundSchema; - /** @deprecated use `PendingTeleporterMessageStatus$outboundSchema` instead. */ - export const outboundSchema = PendingTeleporterMessageStatus$outboundSchema; -} - -/** @internal */ -export const PendingTeleporterMessage$inboundSchema: z.ZodType< - PendingTeleporterMessage, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$inboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$inboundSchema, - sourceTransaction: TeleporterSourceTransaction$inboundSchema, - status: PendingTeleporterMessageStatus$inboundSchema, -}); - -/** @internal */ -export type PendingTeleporterMessage$Outbound = { - messageId: string; - teleporterContractAddress: string; - sourceBlockchainId: string; - destinationBlockchainId: string; - sourceEvmChainId: string; - destinationEvmChainId: string; - messageNonce: string; - from: string; - to: string; - data?: string | undefined; - messageExecuted: boolean; - receipts: Array; - receiptDelivered: boolean; - rewardDetails: TeleporterRewardDetails$Outbound; - sourceTransaction: TeleporterSourceTransaction$Outbound; - status: string; -}; - -/** @internal */ -export const PendingTeleporterMessage$outboundSchema: z.ZodType< - PendingTeleporterMessage$Outbound, - z.ZodTypeDef, - PendingTeleporterMessage -> = z.object({ - messageId: z.string(), - teleporterContractAddress: z.string(), - sourceBlockchainId: z.string(), - destinationBlockchainId: z.string(), - sourceEvmChainId: z.string(), - destinationEvmChainId: z.string(), - messageNonce: z.string(), - from: z.string(), - to: z.string(), - data: z.string().optional(), - messageExecuted: z.boolean(), - receipts: z.array(TeleporterReceipt$outboundSchema), - receiptDelivered: z.boolean(), - rewardDetails: TeleporterRewardDetails$outboundSchema, - sourceTransaction: TeleporterSourceTransaction$outboundSchema, - status: PendingTeleporterMessageStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingTeleporterMessage$ { - /** @deprecated use `PendingTeleporterMessage$inboundSchema` instead. */ - export const inboundSchema = PendingTeleporterMessage$inboundSchema; - /** @deprecated use `PendingTeleporterMessage$outboundSchema` instead. */ - export const outboundSchema = PendingTeleporterMessage$outboundSchema; - /** @deprecated use `PendingTeleporterMessage$Outbound` instead. */ - export type Outbound = PendingTeleporterMessage$Outbound; -} - -export function pendingTeleporterMessageToJSON( - pendingTeleporterMessage: PendingTeleporterMessage, -): string { - return JSON.stringify( - PendingTeleporterMessage$outboundSchema.parse(pendingTeleporterMessage), - ); -} - -export function pendingTeleporterMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PendingTeleporterMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PendingTeleporterMessage' from JSON`, - ); -} diff --git a/data/src/models/components/pendingvalidatordetails.ts b/data/src/models/components/pendingvalidatordetails.ts deleted file mode 100644 index f2b6df73..00000000 --- a/data/src/models/components/pendingvalidatordetails.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BlsCredentials, - BlsCredentials$inboundSchema, - BlsCredentials$Outbound, - BlsCredentials$outboundSchema, -} from "./blscredentials.js"; - -export const PendingValidatorDetailsValidationStatus = { - Pending: "pending", -} as const; -export type PendingValidatorDetailsValidationStatus = ClosedEnum< - typeof PendingValidatorDetailsValidationStatus ->; - -export type PendingValidatorDetails = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - /** - * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. - */ - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - /** - * Present for AddPermissionlessValidatorTx - */ - blsCredentials?: BlsCredentials | undefined; - validationStatus: PendingValidatorDetailsValidationStatus; -}; - -/** @internal */ -export const PendingValidatorDetailsValidationStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(PendingValidatorDetailsValidationStatus); - -/** @internal */ -export const PendingValidatorDetailsValidationStatus$outboundSchema: - z.ZodNativeEnum = - PendingValidatorDetailsValidationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingValidatorDetailsValidationStatus$ { - /** @deprecated use `PendingValidatorDetailsValidationStatus$inboundSchema` instead. */ - export const inboundSchema = - PendingValidatorDetailsValidationStatus$inboundSchema; - /** @deprecated use `PendingValidatorDetailsValidationStatus$outboundSchema` instead. */ - export const outboundSchema = - PendingValidatorDetailsValidationStatus$outboundSchema; -} - -/** @internal */ -export const PendingValidatorDetails$inboundSchema: z.ZodType< - PendingValidatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$inboundSchema.optional(), - validationStatus: PendingValidatorDetailsValidationStatus$inboundSchema, -}); - -/** @internal */ -export type PendingValidatorDetails$Outbound = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - blsCredentials?: BlsCredentials$Outbound | undefined; - validationStatus: string; -}; - -/** @internal */ -export const PendingValidatorDetails$outboundSchema: z.ZodType< - PendingValidatorDetails$Outbound, - z.ZodTypeDef, - PendingValidatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$outboundSchema.optional(), - validationStatus: PendingValidatorDetailsValidationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PendingValidatorDetails$ { - /** @deprecated use `PendingValidatorDetails$inboundSchema` instead. */ - export const inboundSchema = PendingValidatorDetails$inboundSchema; - /** @deprecated use `PendingValidatorDetails$outboundSchema` instead. */ - export const outboundSchema = PendingValidatorDetails$outboundSchema; - /** @deprecated use `PendingValidatorDetails$Outbound` instead. */ - export type Outbound = PendingValidatorDetails$Outbound; -} - -export function pendingValidatorDetailsToJSON( - pendingValidatorDetails: PendingValidatorDetails, -): string { - return JSON.stringify( - PendingValidatorDetails$outboundSchema.parse(pendingValidatorDetails), - ); -} - -export function pendingValidatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PendingValidatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PendingValidatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/pricingproviders.ts b/data/src/models/components/pricingproviders.ts deleted file mode 100644 index 80057713..00000000 --- a/data/src/models/components/pricingproviders.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type PricingProviders = { - coingeckoCoinId?: string | undefined; -}; - -/** @internal */ -export const PricingProviders$inboundSchema: z.ZodType< - PricingProviders, - z.ZodTypeDef, - unknown -> = z.object({ - coingeckoCoinId: z.string().optional(), -}); - -/** @internal */ -export type PricingProviders$Outbound = { - coingeckoCoinId?: string | undefined; -}; - -/** @internal */ -export const PricingProviders$outboundSchema: z.ZodType< - PricingProviders$Outbound, - z.ZodTypeDef, - PricingProviders -> = z.object({ - coingeckoCoinId: 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 PricingProviders$ { - /** @deprecated use `PricingProviders$inboundSchema` instead. */ - export const inboundSchema = PricingProviders$inboundSchema; - /** @deprecated use `PricingProviders$outboundSchema` instead. */ - export const outboundSchema = PricingProviders$outboundSchema; - /** @deprecated use `PricingProviders$Outbound` instead. */ - export type Outbound = PricingProviders$Outbound; -} - -export function pricingProvidersToJSON( - pricingProviders: PricingProviders, -): string { - return JSON.stringify( - PricingProviders$outboundSchema.parse(pricingProviders), - ); -} - -export function pricingProvidersFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PricingProviders$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PricingProviders' from JSON`, - ); -} diff --git a/data/src/models/components/primarynetworkassetcap.ts b/data/src/models/components/primarynetworkassetcap.ts deleted file mode 100644 index f73cfdb1..00000000 --- a/data/src/models/components/primarynetworkassetcap.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Cap represents if an asset is a variable or fixed cap asset. - */ -export const PrimaryNetworkAssetCap = { - Fixed: "fixed", - Variable: "variable", -} as const; -/** - * Cap represents if an asset is a variable or fixed cap asset. - */ -export type PrimaryNetworkAssetCap = ClosedEnum; - -/** @internal */ -export const PrimaryNetworkAssetCap$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkAssetCap -> = z.nativeEnum(PrimaryNetworkAssetCap); - -/** @internal */ -export const PrimaryNetworkAssetCap$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkAssetCap -> = PrimaryNetworkAssetCap$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAssetCap$ { - /** @deprecated use `PrimaryNetworkAssetCap$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkAssetCap$inboundSchema; - /** @deprecated use `PrimaryNetworkAssetCap$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkAssetCap$outboundSchema; -} diff --git a/data/src/models/components/primarynetworkassettype.ts b/data/src/models/components/primarynetworkassettype.ts deleted file mode 100644 index b5f7e5d5..00000000 --- a/data/src/models/components/primarynetworkassettype.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Type of asset like SECP256K1 or NFT. - */ -export const PrimaryNetworkAssetType = { - Secp256k1: "secp256k1", - Nft: "nft", -} as const; -/** - * Type of asset like SECP256K1 or NFT. - */ -export type PrimaryNetworkAssetType = ClosedEnum< - typeof PrimaryNetworkAssetType ->; - -/** @internal */ -export const PrimaryNetworkAssetType$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkAssetType -> = z.nativeEnum(PrimaryNetworkAssetType); - -/** @internal */ -export const PrimaryNetworkAssetType$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkAssetType -> = PrimaryNetworkAssetType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAssetType$ { - /** @deprecated use `PrimaryNetworkAssetType$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkAssetType$inboundSchema; - /** @deprecated use `PrimaryNetworkAssetType$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkAssetType$outboundSchema; -} diff --git a/data/src/models/components/primarynetworkblock.ts b/data/src/models/components/primarynetworkblock.ts deleted file mode 100644 index d94b5cef..00000000 --- a/data/src/models/components/primarynetworkblock.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ProposerDetails, - ProposerDetails$inboundSchema, - ProposerDetails$Outbound, - ProposerDetails$outboundSchema, -} from "./proposerdetails.js"; - -export type PrimaryNetworkBlock = { - blockNumber: string; - blockHash: string; - parentHash: string; - blockTimestamp: number; - blockType: string; - txCount: number; - transactions: Array; - blockSizeBytes: number; - l1ValidatorsAccruedFees?: number | undefined; - activeL1Validators?: number | undefined; - currentSupply?: string | undefined; - proposerDetails?: ProposerDetails | undefined; -}; - -/** @internal */ -export const PrimaryNetworkBlock$inboundSchema: z.ZodType< - PrimaryNetworkBlock, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string(), - blockHash: z.string(), - parentHash: z.string(), - blockTimestamp: z.number(), - blockType: z.string(), - txCount: z.number(), - transactions: z.array(z.string()), - blockSizeBytes: z.number(), - l1ValidatorsAccruedFees: z.number().optional(), - activeL1Validators: z.number().optional(), - currentSupply: z.string().optional(), - proposerDetails: ProposerDetails$inboundSchema.optional(), -}); - -/** @internal */ -export type PrimaryNetworkBlock$Outbound = { - blockNumber: string; - blockHash: string; - parentHash: string; - blockTimestamp: number; - blockType: string; - txCount: number; - transactions: Array; - blockSizeBytes: number; - l1ValidatorsAccruedFees?: number | undefined; - activeL1Validators?: number | undefined; - currentSupply?: string | undefined; - proposerDetails?: ProposerDetails$Outbound | undefined; -}; - -/** @internal */ -export const PrimaryNetworkBlock$outboundSchema: z.ZodType< - PrimaryNetworkBlock$Outbound, - z.ZodTypeDef, - PrimaryNetworkBlock -> = z.object({ - blockNumber: z.string(), - blockHash: z.string(), - parentHash: z.string(), - blockTimestamp: z.number(), - blockType: z.string(), - txCount: z.number(), - transactions: z.array(z.string()), - blockSizeBytes: z.number(), - l1ValidatorsAccruedFees: z.number().optional(), - activeL1Validators: z.number().optional(), - currentSupply: z.string().optional(), - proposerDetails: ProposerDetails$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkBlock$ { - /** @deprecated use `PrimaryNetworkBlock$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkBlock$inboundSchema; - /** @deprecated use `PrimaryNetworkBlock$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkBlock$outboundSchema; - /** @deprecated use `PrimaryNetworkBlock$Outbound` instead. */ - export type Outbound = PrimaryNetworkBlock$Outbound; -} - -export function primaryNetworkBlockToJSON( - primaryNetworkBlock: PrimaryNetworkBlock, -): string { - return JSON.stringify( - PrimaryNetworkBlock$outboundSchema.parse(primaryNetworkBlock), - ); -} - -export function primaryNetworkBlockFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PrimaryNetworkBlock$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkBlock' from JSON`, - ); -} diff --git a/data/src/models/components/primarynetworkchaininfo.ts b/data/src/models/components/primarynetworkchaininfo.ts deleted file mode 100644 index 7e588e57..00000000 --- a/data/src/models/components/primarynetworkchaininfo.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Network, - Network$inboundSchema, - Network$outboundSchema, -} from "./network.js"; -import { - PrimaryNetworkChainName, - PrimaryNetworkChainName$inboundSchema, - PrimaryNetworkChainName$outboundSchema, -} from "./primarynetworkchainname.js"; - -export type PrimaryNetworkChainInfo = { - chainName: PrimaryNetworkChainName; - network: Network; -}; - -/** @internal */ -export const PrimaryNetworkChainInfo$inboundSchema: z.ZodType< - PrimaryNetworkChainInfo, - z.ZodTypeDef, - unknown -> = z.object({ - chainName: PrimaryNetworkChainName$inboundSchema, - network: Network$inboundSchema, -}); - -/** @internal */ -export type PrimaryNetworkChainInfo$Outbound = { - chainName: string; - network: string; -}; - -/** @internal */ -export const PrimaryNetworkChainInfo$outboundSchema: z.ZodType< - PrimaryNetworkChainInfo$Outbound, - z.ZodTypeDef, - PrimaryNetworkChainInfo -> = z.object({ - chainName: PrimaryNetworkChainName$outboundSchema, - network: Network$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkChainInfo$ { - /** @deprecated use `PrimaryNetworkChainInfo$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkChainInfo$inboundSchema; - /** @deprecated use `PrimaryNetworkChainInfo$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkChainInfo$outboundSchema; - /** @deprecated use `PrimaryNetworkChainInfo$Outbound` instead. */ - export type Outbound = PrimaryNetworkChainInfo$Outbound; -} - -export function primaryNetworkChainInfoToJSON( - primaryNetworkChainInfo: PrimaryNetworkChainInfo, -): string { - return JSON.stringify( - PrimaryNetworkChainInfo$outboundSchema.parse(primaryNetworkChainInfo), - ); -} - -export function primaryNetworkChainInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PrimaryNetworkChainInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkChainInfo' from JSON`, - ); -} diff --git a/data/src/models/components/primarynetworkchainname.ts b/data/src/models/components/primarynetworkchainname.ts deleted file mode 100644 index 954c686a..00000000 --- a/data/src/models/components/primarynetworkchainname.ts +++ /dev/null @@ -1,36 +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 PrimaryNetworkChainName = { - PChain: "p-chain", - XChain: "x-chain", - CChain: "c-chain", -} as const; -export type PrimaryNetworkChainName = ClosedEnum< - typeof PrimaryNetworkChainName ->; - -/** @internal */ -export const PrimaryNetworkChainName$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkChainName -> = z.nativeEnum(PrimaryNetworkChainName); - -/** @internal */ -export const PrimaryNetworkChainName$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkChainName -> = PrimaryNetworkChainName$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkChainName$ { - /** @deprecated use `PrimaryNetworkChainName$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkChainName$inboundSchema; - /** @deprecated use `PrimaryNetworkChainName$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkChainName$outboundSchema; -} diff --git a/data/src/models/components/primarynetworkoperationtype.ts b/data/src/models/components/primarynetworkoperationtype.ts deleted file mode 100644 index 6f5e0f56..00000000 --- a/data/src/models/components/primarynetworkoperationtype.ts +++ /dev/null @@ -1,38 +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 PrimaryNetworkOperationType = { - TransactionExportPrimaryNetwork: "TRANSACTION_EXPORT_PRIMARY_NETWORK", - TransactionExportPrimaryNetworkStaking: - "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING", - TransactionExportPrimaryNetworkSimple: - "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", -} as const; -export type PrimaryNetworkOperationType = ClosedEnum< - typeof PrimaryNetworkOperationType ->; - -/** @internal */ -export const PrimaryNetworkOperationType$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkOperationType -> = z.nativeEnum(PrimaryNetworkOperationType); - -/** @internal */ -export const PrimaryNetworkOperationType$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkOperationType -> = PrimaryNetworkOperationType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkOperationType$ { - /** @deprecated use `PrimaryNetworkOperationType$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkOperationType$inboundSchema; - /** @deprecated use `PrimaryNetworkOperationType$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkOperationType$outboundSchema; -} diff --git a/data/src/models/components/primarynetworkoptions.ts b/data/src/models/components/primarynetworkoptions.ts deleted file mode 100644 index 8fded839..00000000 --- a/data/src/models/components/primarynetworkoptions.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export const IncludeChain = { - ElevenNonillionOneHundredAndElevenOctillionOneHundredAndElevenSeptillionOneHundredAndElevenSextillionOneHundredAndElevenQuintillionOneHundredAndElevenQuadrillionOneHundredAndElevenTrillionOneHundredAndElevenBillionOneHundredAndElevenMillionOneHundredAndElevenThousandOneHundredAndElevenLpoYY: - "11111111111111111111111111111111LpoYY", - TwooYmbnv4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM: - "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - TwoJVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm: - "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm", - Twoq9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAx5UQxse55x1Q5: - "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - YH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp: - "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp", - PChain: "p-chain", - XChain: "x-chain", - CChain: "c-chain", -} as const; -export type IncludeChain = ClosedEnum; - -export type PrimaryNetworkOptions = { - addresses?: Array | undefined; - cChainEvmAddresses?: Array | undefined; - includeChains: Array; -}; - -/** @internal */ -export const IncludeChain$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(IncludeChain); - -/** @internal */ -export const IncludeChain$outboundSchema: z.ZodNativeEnum = - IncludeChain$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace IncludeChain$ { - /** @deprecated use `IncludeChain$inboundSchema` instead. */ - export const inboundSchema = IncludeChain$inboundSchema; - /** @deprecated use `IncludeChain$outboundSchema` instead. */ - export const outboundSchema = IncludeChain$outboundSchema; -} - -/** @internal */ -export const PrimaryNetworkOptions$inboundSchema: z.ZodType< - PrimaryNetworkOptions, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()).optional(), - cChainEvmAddresses: z.array(z.string()).optional(), - includeChains: z.array(IncludeChain$inboundSchema), -}); - -/** @internal */ -export type PrimaryNetworkOptions$Outbound = { - addresses?: Array | undefined; - cChainEvmAddresses?: Array | undefined; - includeChains: Array; -}; - -/** @internal */ -export const PrimaryNetworkOptions$outboundSchema: z.ZodType< - PrimaryNetworkOptions$Outbound, - z.ZodTypeDef, - PrimaryNetworkOptions -> = z.object({ - addresses: z.array(z.string()).optional(), - cChainEvmAddresses: z.array(z.string()).optional(), - includeChains: z.array(IncludeChain$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkOptions$ { - /** @deprecated use `PrimaryNetworkOptions$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkOptions$inboundSchema; - /** @deprecated use `PrimaryNetworkOptions$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkOptions$outboundSchema; - /** @deprecated use `PrimaryNetworkOptions$Outbound` instead. */ - export type Outbound = PrimaryNetworkOptions$Outbound; -} - -export function primaryNetworkOptionsToJSON( - primaryNetworkOptions: PrimaryNetworkOptions, -): string { - return JSON.stringify( - PrimaryNetworkOptions$outboundSchema.parse(primaryNetworkOptions), - ); -} - -export function primaryNetworkOptionsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PrimaryNetworkOptions$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkOptions' from JSON`, - ); -} diff --git a/data/src/models/components/primarynetworktxtype.ts b/data/src/models/components/primarynetworktxtype.ts deleted file mode 100644 index f050c1b6..00000000 --- a/data/src/models/components/primarynetworktxtype.ts +++ /dev/null @@ -1,54 +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 PrimaryNetworkTxType = { - AddValidatorTx: "AddValidatorTx", - AddSubnetValidatorTx: "AddSubnetValidatorTx", - AddDelegatorTx: "AddDelegatorTx", - CreateChainTx: "CreateChainTx", - CreateSubnetTx: "CreateSubnetTx", - ImportTx: "ImportTx", - ExportTx: "ExportTx", - AdvanceTimeTx: "AdvanceTimeTx", - RewardValidatorTx: "RewardValidatorTx", - RemoveSubnetValidatorTx: "RemoveSubnetValidatorTx", - TransformSubnetTx: "TransformSubnetTx", - AddPermissionlessValidatorTx: "AddPermissionlessValidatorTx", - AddPermissionlessDelegatorTx: "AddPermissionlessDelegatorTx", - BaseTx: "BaseTx", - TransferSubnetOwnershipTx: "TransferSubnetOwnershipTx", - ConvertSubnetToL1Tx: "ConvertSubnetToL1Tx", - RegisterL1ValidatorTx: "RegisterL1ValidatorTx", - SetL1ValidatorWeightTx: "SetL1ValidatorWeightTx", - DisableL1ValidatorTx: "DisableL1ValidatorTx", - IncreaseL1ValidatorBalanceTx: "IncreaseL1ValidatorBalanceTx", - Unknown: "UNKNOWN", - CreateAssetTx: "CreateAssetTx", - OperationTx: "OperationTx", -} as const; -export type PrimaryNetworkTxType = ClosedEnum; - -/** @internal */ -export const PrimaryNetworkTxType$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkTxType -> = z.nativeEnum(PrimaryNetworkTxType); - -/** @internal */ -export const PrimaryNetworkTxType$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkTxType -> = PrimaryNetworkTxType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkTxType$ { - /** @deprecated use `PrimaryNetworkTxType$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkTxType$inboundSchema; - /** @deprecated use `PrimaryNetworkTxType$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkTxType$outboundSchema; -} diff --git a/data/src/models/components/proposerdetails.ts b/data/src/models/components/proposerdetails.ts deleted file mode 100644 index 5751dc00..00000000 --- a/data/src/models/components/proposerdetails.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ProposerDetails = { - proposerId?: string | undefined; - proposerParentId?: string | undefined; - proposerNodeId?: string | undefined; - proposerPChainHeight?: number | undefined; - proposerTimestamp?: number | undefined; -}; - -/** @internal */ -export const ProposerDetails$inboundSchema: z.ZodType< - ProposerDetails, - z.ZodTypeDef, - unknown -> = z.object({ - proposerId: z.string().optional(), - proposerParentId: z.string().optional(), - proposerNodeId: z.string().optional(), - proposerPChainHeight: z.number().optional(), - proposerTimestamp: z.number().optional(), -}); - -/** @internal */ -export type ProposerDetails$Outbound = { - proposerId?: string | undefined; - proposerParentId?: string | undefined; - proposerNodeId?: string | undefined; - proposerPChainHeight?: number | undefined; - proposerTimestamp?: number | undefined; -}; - -/** @internal */ -export const ProposerDetails$outboundSchema: z.ZodType< - ProposerDetails$Outbound, - z.ZodTypeDef, - ProposerDetails -> = z.object({ - proposerId: z.string().optional(), - proposerParentId: z.string().optional(), - proposerNodeId: z.string().optional(), - proposerPChainHeight: z.number().optional(), - proposerTimestamp: 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 ProposerDetails$ { - /** @deprecated use `ProposerDetails$inboundSchema` instead. */ - export const inboundSchema = ProposerDetails$inboundSchema; - /** @deprecated use `ProposerDetails$outboundSchema` instead. */ - export const outboundSchema = ProposerDetails$outboundSchema; - /** @deprecated use `ProposerDetails$Outbound` instead. */ - export type Outbound = ProposerDetails$Outbound; -} - -export function proposerDetailsToJSON( - proposerDetails: ProposerDetails, -): string { - return JSON.stringify(ProposerDetails$outboundSchema.parse(proposerDetails)); -} - -export function proposerDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ProposerDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ProposerDetails' from JSON`, - ); -} diff --git a/data/src/models/components/removedvalidatordetails.ts b/data/src/models/components/removedvalidatordetails.ts deleted file mode 100644 index ee940be7..00000000 --- a/data/src/models/components/removedvalidatordetails.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - BlsCredentials, - BlsCredentials$inboundSchema, - BlsCredentials$Outbound, - BlsCredentials$outboundSchema, -} from "./blscredentials.js"; - -export const RemovedValidatorDetailsValidationStatus = { - Removed: "removed", -} as const; -export type RemovedValidatorDetailsValidationStatus = ClosedEnum< - typeof RemovedValidatorDetailsValidationStatus ->; - -export type RemovedValidatorDetails = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - /** - * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. - */ - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - /** - * Present for AddPermissionlessValidatorTx - */ - blsCredentials?: BlsCredentials | undefined; - /** - * The transaction hash that removed the permissioned subnet validator. - */ - removeTxHash: string; - /** - * The timestamp of the transaction that removed the permissioned subnet validator. - */ - removeTimestamp: number; - validationStatus: RemovedValidatorDetailsValidationStatus; -}; - -/** @internal */ -export const RemovedValidatorDetailsValidationStatus$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(RemovedValidatorDetailsValidationStatus); - -/** @internal */ -export const RemovedValidatorDetailsValidationStatus$outboundSchema: - z.ZodNativeEnum = - RemovedValidatorDetailsValidationStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemovedValidatorDetailsValidationStatus$ { - /** @deprecated use `RemovedValidatorDetailsValidationStatus$inboundSchema` instead. */ - export const inboundSchema = - RemovedValidatorDetailsValidationStatus$inboundSchema; - /** @deprecated use `RemovedValidatorDetailsValidationStatus$outboundSchema` instead. */ - export const outboundSchema = - RemovedValidatorDetailsValidationStatus$outboundSchema; -} - -/** @internal */ -export const RemovedValidatorDetails$inboundSchema: z.ZodType< - RemovedValidatorDetails, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$inboundSchema.optional(), - removeTxHash: z.string(), - removeTimestamp: z.number(), - validationStatus: RemovedValidatorDetailsValidationStatus$inboundSchema, -}); - -/** @internal */ -export type RemovedValidatorDetails$Outbound = { - txHash: string; - nodeId: string; - subnetId: string; - amountStaked: string; - delegationFee?: string | undefined; - startTimestamp: number; - endTimestamp: number; - blsCredentials?: BlsCredentials$Outbound | undefined; - removeTxHash: string; - removeTimestamp: number; - validationStatus: string; -}; - -/** @internal */ -export const RemovedValidatorDetails$outboundSchema: z.ZodType< - RemovedValidatorDetails$Outbound, - z.ZodTypeDef, - RemovedValidatorDetails -> = z.object({ - txHash: z.string(), - nodeId: z.string(), - subnetId: z.string(), - amountStaked: z.string(), - delegationFee: z.string().optional(), - startTimestamp: z.number(), - endTimestamp: z.number(), - blsCredentials: BlsCredentials$outboundSchema.optional(), - removeTxHash: z.string(), - removeTimestamp: z.number(), - validationStatus: RemovedValidatorDetailsValidationStatus$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemovedValidatorDetails$ { - /** @deprecated use `RemovedValidatorDetails$inboundSchema` instead. */ - export const inboundSchema = RemovedValidatorDetails$inboundSchema; - /** @deprecated use `RemovedValidatorDetails$outboundSchema` instead. */ - export const outboundSchema = RemovedValidatorDetails$outboundSchema; - /** @deprecated use `RemovedValidatorDetails$Outbound` instead. */ - export type Outbound = RemovedValidatorDetails$Outbound; -} - -export function removedValidatorDetailsToJSON( - removedValidatorDetails: RemovedValidatorDetails, -): string { - return JSON.stringify( - RemovedValidatorDetails$outboundSchema.parse(removedValidatorDetails), - ); -} - -export function removedValidatorDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemovedValidatorDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemovedValidatorDetails' from JSON`, - ); -} diff --git a/data/src/models/components/requesttype.ts b/data/src/models/components/requesttype.ts deleted file mode 100644 index f09cafef..00000000 --- a/data/src/models/components/requesttype.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * The type of request made by the client. - */ -export const RequestType = { - Data: "data", - Rpc: "rpc", -} as const; -/** - * The type of request made by the client. - */ -export type RequestType = ClosedEnum; - -/** @internal */ -export const RequestType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(RequestType); - -/** @internal */ -export const RequestType$outboundSchema: z.ZodNativeEnum = - RequestType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RequestType$ { - /** @deprecated use `RequestType$inboundSchema` instead. */ - export const inboundSchema = RequestType$inboundSchema; - /** @deprecated use `RequestType$outboundSchema` instead. */ - export const outboundSchema = RequestType$outboundSchema; -} diff --git a/data/src/models/components/resourcelink.ts b/data/src/models/components/resourcelink.ts deleted file mode 100644 index 39dc224f..00000000 --- a/data/src/models/components/resourcelink.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ResourceLinkType, - ResourceLinkType$inboundSchema, - ResourceLinkType$outboundSchema, -} from "./resourcelinktype.js"; - -export type ResourceLink = { - type: ResourceLinkType; - url: string; -}; - -/** @internal */ -export const ResourceLink$inboundSchema: z.ZodType< - ResourceLink, - z.ZodTypeDef, - unknown -> = z.object({ - type: ResourceLinkType$inboundSchema, - url: z.string(), -}); - -/** @internal */ -export type ResourceLink$Outbound = { - type: string; - url: string; -}; - -/** @internal */ -export const ResourceLink$outboundSchema: z.ZodType< - ResourceLink$Outbound, - z.ZodTypeDef, - ResourceLink -> = z.object({ - type: ResourceLinkType$outboundSchema, - url: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceLink$ { - /** @deprecated use `ResourceLink$inboundSchema` instead. */ - export const inboundSchema = ResourceLink$inboundSchema; - /** @deprecated use `ResourceLink$outboundSchema` instead. */ - export const outboundSchema = ResourceLink$outboundSchema; - /** @deprecated use `ResourceLink$Outbound` instead. */ - export type Outbound = ResourceLink$Outbound; -} - -export function resourceLinkToJSON(resourceLink: ResourceLink): string { - return JSON.stringify(ResourceLink$outboundSchema.parse(resourceLink)); -} - -export function resourceLinkFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ResourceLink$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ResourceLink' from JSON`, - ); -} diff --git a/data/src/models/components/resourcelinktype.ts b/data/src/models/components/resourcelinktype.ts deleted file mode 100644 index b41ad832..00000000 --- a/data/src/models/components/resourcelinktype.ts +++ /dev/null @@ -1,49 +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 ResourceLinkType = { - Blog: "Blog", - CoinGecko: "CoinGecko", - CoinMarketCap: "CoinMarketCap", - Discord: "Discord", - Documentation: "Documentation", - Facebook: "Facebook", - Github: "Github", - Instagram: "Instagram", - LinkedIn: "LinkedIn", - Medium: "Medium", - Reddit: "Reddit", - Support: "Support", - Telegram: "Telegram", - TikTok: "TikTok", - Twitter: "Twitter", - Website: "Website", - Whitepaper: "Whitepaper", - Youtube: "Youtube", -} as const; -export type ResourceLinkType = ClosedEnum; - -/** @internal */ -export const ResourceLinkType$inboundSchema: z.ZodNativeEnum< - typeof ResourceLinkType -> = z.nativeEnum(ResourceLinkType); - -/** @internal */ -export const ResourceLinkType$outboundSchema: z.ZodNativeEnum< - typeof ResourceLinkType -> = ResourceLinkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ResourceLinkType$ { - /** @deprecated use `ResourceLinkType$inboundSchema` instead. */ - export const inboundSchema = ResourceLinkType$inboundSchema; - /** @deprecated use `ResourceLinkType$outboundSchema` instead. */ - export const outboundSchema = ResourceLinkType$outboundSchema; -} diff --git a/data/src/models/components/rewards.ts b/data/src/models/components/rewards.ts deleted file mode 100644 index 4d334c3e..00000000 --- a/data/src/models/components/rewards.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type Rewards = { - validationRewardAmount: string; - delegationRewardAmount: string; - rewardAddresses?: Array | undefined; - rewardTxHash?: string | undefined; -}; - -/** @internal */ -export const Rewards$inboundSchema: z.ZodType = - z.object({ - validationRewardAmount: z.string(), - delegationRewardAmount: z.string(), - rewardAddresses: z.array(z.string()).optional(), - rewardTxHash: z.string().optional(), - }); - -/** @internal */ -export type Rewards$Outbound = { - validationRewardAmount: string; - delegationRewardAmount: string; - rewardAddresses?: Array | undefined; - rewardTxHash?: string | undefined; -}; - -/** @internal */ -export const Rewards$outboundSchema: z.ZodType< - Rewards$Outbound, - z.ZodTypeDef, - Rewards -> = z.object({ - validationRewardAmount: z.string(), - delegationRewardAmount: z.string(), - rewardAddresses: z.array(z.string()).optional(), - rewardTxHash: 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 Rewards$ { - /** @deprecated use `Rewards$inboundSchema` instead. */ - export const inboundSchema = Rewards$inboundSchema; - /** @deprecated use `Rewards$outboundSchema` instead. */ - export const outboundSchema = Rewards$outboundSchema; - /** @deprecated use `Rewards$Outbound` instead. */ - export type Outbound = Rewards$Outbound; -} - -export function rewardsToJSON(rewards: Rewards): string { - return JSON.stringify(Rewards$outboundSchema.parse(rewards)); -} - -export function rewardsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Rewards$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Rewards' from JSON`, - ); -} diff --git a/data/src/models/components/rewardtype.ts b/data/src/models/components/rewardtype.ts deleted file mode 100644 index 44694f0f..00000000 --- a/data/src/models/components/rewardtype.ts +++ /dev/null @@ -1,32 +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 RewardType = { - Validator: "VALIDATOR", - Delegator: "DELEGATOR", - ValidatorFee: "VALIDATOR_FEE", -} as const; -export type RewardType = ClosedEnum; - -/** @internal */ -export const RewardType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(RewardType); - -/** @internal */ -export const RewardType$outboundSchema: z.ZodNativeEnum = - RewardType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RewardType$ { - /** @deprecated use `RewardType$inboundSchema` instead. */ - export const inboundSchema = RewardType$inboundSchema; - /** @deprecated use `RewardType$outboundSchema` instead. */ - export const outboundSchema = RewardType$outboundSchema; -} diff --git a/data/src/models/components/richaddress.ts b/data/src/models/components/richaddress.ts deleted file mode 100644 index f0df394b..00000000 --- a/data/src/models/components/richaddress.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type RichAddress = { - /** - * The contract name. - */ - name?: string | undefined; - /** - * The contract symbol. - */ - symbol?: string | undefined; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals?: number | undefined; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; -}; - -/** @internal */ -export const RichAddress$inboundSchema: z.ZodType< - RichAddress, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - symbol: z.string().optional(), - decimals: z.number().optional(), - logoUri: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type RichAddress$Outbound = { - name?: string | undefined; - symbol?: string | undefined; - decimals?: number | undefined; - logoUri?: string | undefined; - address: string; -}; - -/** @internal */ -export const RichAddress$outboundSchema: z.ZodType< - RichAddress$Outbound, - z.ZodTypeDef, - RichAddress -> = z.object({ - name: z.string().optional(), - symbol: z.string().optional(), - decimals: z.number().optional(), - logoUri: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RichAddress$ { - /** @deprecated use `RichAddress$inboundSchema` instead. */ - export const inboundSchema = RichAddress$inboundSchema; - /** @deprecated use `RichAddress$outboundSchema` instead. */ - export const outboundSchema = RichAddress$outboundSchema; - /** @deprecated use `RichAddress$Outbound` instead. */ - export type Outbound = RichAddress$Outbound; -} - -export function richAddressToJSON(richAddress: RichAddress): string { - return JSON.stringify(RichAddress$outboundSchema.parse(richAddress)); -} - -export function richAddressFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RichAddress$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RichAddress' from JSON`, - ); -} diff --git a/data/src/models/components/rpcmetrics.ts b/data/src/models/components/rpcmetrics.ts deleted file mode 100644 index 56346fb4..00000000 --- a/data/src/models/components/rpcmetrics.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -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; -} - -export function rpcMetricsToJSON(rpcMetrics: RpcMetrics): string { - return JSON.stringify(RpcMetrics$outboundSchema.parse(rpcMetrics)); -} - -export function rpcMetricsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RpcMetrics$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RpcMetrics' from JSON`, - ); -} diff --git a/data/src/models/components/rpcusagemetricsgroupbyenum.ts b/data/src/models/components/rpcusagemetricsgroupbyenum.ts deleted file mode 100644 index cad4a235..00000000 --- a/data/src/models/components/rpcusagemetricsgroupbyenum.ts +++ /dev/null @@ -1,36 +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 RpcUsageMetricsGroupByEnum = { - RpcMethod: "rpcMethod", - ResponseCode: "responseCode", - RlBypassToken: "rlBypassToken", -} as const; -export type RpcUsageMetricsGroupByEnum = ClosedEnum< - typeof RpcUsageMetricsGroupByEnum ->; - -/** @internal */ -export const RpcUsageMetricsGroupByEnum$inboundSchema: z.ZodNativeEnum< - typeof RpcUsageMetricsGroupByEnum -> = z.nativeEnum(RpcUsageMetricsGroupByEnum); - -/** @internal */ -export const RpcUsageMetricsGroupByEnum$outboundSchema: z.ZodNativeEnum< - typeof RpcUsageMetricsGroupByEnum -> = RpcUsageMetricsGroupByEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RpcUsageMetricsGroupByEnum$ { - /** @deprecated use `RpcUsageMetricsGroupByEnum$inboundSchema` instead. */ - export const inboundSchema = RpcUsageMetricsGroupByEnum$inboundSchema; - /** @deprecated use `RpcUsageMetricsGroupByEnum$outboundSchema` instead. */ - export const outboundSchema = RpcUsageMetricsGroupByEnum$outboundSchema; -} diff --git a/data/src/models/components/rpcusagemetricsvalueaggregated.ts b/data/src/models/components/rpcusagemetricsvalueaggregated.ts deleted file mode 100644 index 55006f35..00000000 --- a/data/src/models/components/rpcusagemetricsvalueaggregated.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Column name used for data aggregation - */ -export const RpcUsageMetricsValueAggregatedGroupedBy = { - RpcMethod: "rpcMethod", - ResponseCode: "responseCode", - RlBypassToken: "rlBypassToken", - RequestPath: "requestPath", - Country: "country", - Continent: "continent", - UserAgent: "userAgent", - 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; - /** - * The number of API credits wasted on invalid requests - */ - apiCreditsWasted: 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; -} - -export function rpcUsageMetricsValueAggregatedGroupValueToJSON( - rpcUsageMetricsValueAggregatedGroupValue: - RpcUsageMetricsValueAggregatedGroupValue, -): string { - return JSON.stringify( - RpcUsageMetricsValueAggregatedGroupValue$outboundSchema.parse( - rpcUsageMetricsValueAggregatedGroupValue, - ), - ); -} - -export function rpcUsageMetricsValueAggregatedGroupValueFromJSON( - jsonString: string, -): SafeParseResult< - RpcUsageMetricsValueAggregatedGroupValue, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RpcUsageMetricsValueAggregatedGroupValue$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RpcUsageMetricsValueAggregatedGroupValue' from JSON`, - ); -} - -/** @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(), - apiCreditsWasted: 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; - apiCreditsWasted: 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(), - apiCreditsWasted: 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; -} - -export function rpcUsageMetricsValueAggregatedToJSON( - rpcUsageMetricsValueAggregated: RpcUsageMetricsValueAggregated, -): string { - return JSON.stringify( - RpcUsageMetricsValueAggregated$outboundSchema.parse( - rpcUsageMetricsValueAggregated, - ), - ); -} - -export function rpcUsageMetricsValueAggregatedFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RpcUsageMetricsValueAggregated$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RpcUsageMetricsValueAggregated' from JSON`, - ); -} diff --git a/data/src/models/components/security.ts b/data/src/models/components/security.ts deleted file mode 100644 index fdcb409f..00000000 --- a/data/src/models/components/security.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type Security = { - apiKey?: string | undefined; -}; - -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - apiKey: z.string().optional(), -}); - -/** @internal */ -export type Security$Outbound = { - apiKey?: string | undefined; -}; - -/** @internal */ -export const Security$outboundSchema: z.ZodType< - Security$Outbound, - z.ZodTypeDef, - Security -> = z.object({ - apiKey: 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 Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - -export function securityToJSON(security: Security): string { - return JSON.stringify(Security$outboundSchema.parse(security)); -} - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/data/src/models/components/signatureaggregationresponse.ts b/data/src/models/components/signatureaggregationresponse.ts deleted file mode 100644 index d945e898..00000000 --- a/data/src/models/components/signatureaggregationresponse.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SignatureAggregationResponse = { - signedMessage: string; -}; - -/** @internal */ -export const SignatureAggregationResponse$inboundSchema: z.ZodType< - SignatureAggregationResponse, - z.ZodTypeDef, - unknown -> = z.object({ - signedMessage: z.string(), -}); - -/** @internal */ -export type SignatureAggregationResponse$Outbound = { - signedMessage: string; -}; - -/** @internal */ -export const SignatureAggregationResponse$outboundSchema: z.ZodType< - SignatureAggregationResponse$Outbound, - z.ZodTypeDef, - SignatureAggregationResponse -> = z.object({ - signedMessage: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SignatureAggregationResponse$ { - /** @deprecated use `SignatureAggregationResponse$inboundSchema` instead. */ - export const inboundSchema = SignatureAggregationResponse$inboundSchema; - /** @deprecated use `SignatureAggregationResponse$outboundSchema` instead. */ - export const outboundSchema = SignatureAggregationResponse$outboundSchema; - /** @deprecated use `SignatureAggregationResponse$Outbound` instead. */ - export type Outbound = SignatureAggregationResponse$Outbound; -} - -export function signatureAggregationResponseToJSON( - signatureAggregationResponse: SignatureAggregationResponse, -): string { - return JSON.stringify( - SignatureAggregationResponse$outboundSchema.parse( - signatureAggregationResponse, - ), - ); -} - -export function signatureAggregationResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SignatureAggregationResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SignatureAggregationResponse' from JSON`, - ); -} diff --git a/data/src/models/components/signatureaggregatorrequest.ts b/data/src/models/components/signatureaggregatorrequest.ts deleted file mode 100644 index 47eda723..00000000 --- a/data/src/models/components/signatureaggregatorrequest.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SignatureAggregatorRequest = { - message: string; - justification?: string | undefined; - signingSubnetId?: string | undefined; - quorumPercentage?: number | undefined; -}; - -/** @internal */ -export const SignatureAggregatorRequest$inboundSchema: z.ZodType< - SignatureAggregatorRequest, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.string(), - justification: z.string().optional(), - signingSubnetId: z.string().optional(), - quorumPercentage: z.number().optional(), -}); - -/** @internal */ -export type SignatureAggregatorRequest$Outbound = { - message: string; - justification?: string | undefined; - signingSubnetId?: string | undefined; - quorumPercentage?: number | undefined; -}; - -/** @internal */ -export const SignatureAggregatorRequest$outboundSchema: z.ZodType< - SignatureAggregatorRequest$Outbound, - z.ZodTypeDef, - SignatureAggregatorRequest -> = z.object({ - message: z.string(), - justification: z.string().optional(), - signingSubnetId: z.string().optional(), - quorumPercentage: 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 SignatureAggregatorRequest$ { - /** @deprecated use `SignatureAggregatorRequest$inboundSchema` instead. */ - export const inboundSchema = SignatureAggregatorRequest$inboundSchema; - /** @deprecated use `SignatureAggregatorRequest$outboundSchema` instead. */ - export const outboundSchema = SignatureAggregatorRequest$outboundSchema; - /** @deprecated use `SignatureAggregatorRequest$Outbound` instead. */ - export type Outbound = SignatureAggregatorRequest$Outbound; -} - -export function signatureAggregatorRequestToJSON( - signatureAggregatorRequest: SignatureAggregatorRequest, -): string { - return JSON.stringify( - SignatureAggregatorRequest$outboundSchema.parse(signatureAggregatorRequest), - ); -} - -export function signatureAggregatorRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SignatureAggregatorRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SignatureAggregatorRequest' from JSON`, - ); -} diff --git a/data/src/models/components/sortbyoption.ts b/data/src/models/components/sortbyoption.ts deleted file mode 100644 index bf6326d8..00000000 --- a/data/src/models/components/sortbyoption.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 SortByOption = { - BlockIndex: "blockIndex", - DelegationCapacity: "delegationCapacity", - TimeRemaining: "timeRemaining", - DelegationFee: "delegationFee", - UptimePerformance: "uptimePerformance", -} as const; -export type SortByOption = ClosedEnum; - -/** @internal */ -export const SortByOption$inboundSchema: z.ZodNativeEnum = - z.nativeEnum(SortByOption); - -/** @internal */ -export const SortByOption$outboundSchema: z.ZodNativeEnum = - SortByOption$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SortByOption$ { - /** @deprecated use `SortByOption$inboundSchema` instead. */ - export const inboundSchema = SortByOption$inboundSchema; - /** @deprecated use `SortByOption$outboundSchema` instead. */ - export const outboundSchema = SortByOption$outboundSchema; -} diff --git a/data/src/models/components/sortorder.ts b/data/src/models/components/sortorder.ts deleted file mode 100644 index d2ceb429..00000000 --- a/data/src/models/components/sortorder.ts +++ /dev/null @@ -1,31 +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 SortOrder = { - Asc: "asc", - Desc: "desc", -} as const; -export type SortOrder = ClosedEnum; - -/** @internal */ -export const SortOrder$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(SortOrder); - -/** @internal */ -export const SortOrder$outboundSchema: z.ZodNativeEnum = - SortOrder$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SortOrder$ { - /** @deprecated use `SortOrder$inboundSchema` instead. */ - export const inboundSchema = SortOrder$inboundSchema; - /** @deprecated use `SortOrder$outboundSchema` instead. */ - export const outboundSchema = SortOrder$outboundSchema; -} diff --git a/data/src/models/components/stakingdistribution.ts b/data/src/models/components/stakingdistribution.ts deleted file mode 100644 index c55361d6..00000000 --- a/data/src/models/components/stakingdistribution.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type StakingDistribution = { - /** - * AvalancheGo version for the validator node. - */ - version: string; - /** - * The total amount staked by validators using this version. - */ - amountStaked: string; - /** - * The number of validators using this version. - */ - validatorCount: number; -}; - -/** @internal */ -export const StakingDistribution$inboundSchema: z.ZodType< - StakingDistribution, - z.ZodTypeDef, - unknown -> = z.object({ - version: z.string(), - amountStaked: z.string(), - validatorCount: z.number(), -}); - -/** @internal */ -export type StakingDistribution$Outbound = { - version: string; - amountStaked: string; - validatorCount: number; -}; - -/** @internal */ -export const StakingDistribution$outboundSchema: z.ZodType< - StakingDistribution$Outbound, - z.ZodTypeDef, - StakingDistribution -> = z.object({ - version: z.string(), - amountStaked: z.string(), - validatorCount: 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 StakingDistribution$ { - /** @deprecated use `StakingDistribution$inboundSchema` instead. */ - export const inboundSchema = StakingDistribution$inboundSchema; - /** @deprecated use `StakingDistribution$outboundSchema` instead. */ - export const outboundSchema = StakingDistribution$outboundSchema; - /** @deprecated use `StakingDistribution$Outbound` instead. */ - export type Outbound = StakingDistribution$Outbound; -} - -export function stakingDistributionToJSON( - stakingDistribution: StakingDistribution, -): string { - return JSON.stringify( - StakingDistribution$outboundSchema.parse(stakingDistribution), - ); -} - -export function stakingDistributionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => StakingDistribution$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'StakingDistribution' from JSON`, - ); -} diff --git a/data/src/models/components/subnet.ts b/data/src/models/components/subnet.ts deleted file mode 100644 index 773f727d..00000000 --- a/data/src/models/components/subnet.ts +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Blockchain, - Blockchain$inboundSchema, - Blockchain$Outbound, - Blockchain$outboundSchema, -} from "./blockchain.js"; -import { - L1ValidatorManagerDetails, - L1ValidatorManagerDetails$inboundSchema, - L1ValidatorManagerDetails$Outbound, - L1ValidatorManagerDetails$outboundSchema, -} from "./l1validatormanagerdetails.js"; -import { - SubnetOwnershipInfo, - SubnetOwnershipInfo$inboundSchema, - SubnetOwnershipInfo$Outbound, - SubnetOwnershipInfo$outboundSchema, -} from "./subnetownershipinfo.js"; - -export type Subnet = { - createBlockTimestamp: number; - createBlockIndex: string; - subnetId: string; - /** - * This field is deprecated. Use subnetOwnershipInfo instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - ownerAddresses: Array; - /** - * This field is deprecated. Use subnetOwnershipInfo instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - threshold: number; - /** - * This field is deprecated. Use subnetOwnershipInfo instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - locktime: number; - /** - * Latest subnet owner details for this Subnet. - */ - subnetOwnershipInfo: SubnetOwnershipInfo; - /** - * Whether the subnet is an L1 or not. - */ - isL1: boolean; - /** - * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1. - */ - l1ConversionTransactionHash?: string | undefined; - /** - * L1 validator manager details. - */ - l1ValidatorManagerDetails?: L1ValidatorManagerDetails | undefined; - blockchains: Array; -}; - -/** @internal */ -export const Subnet$inboundSchema: z.ZodType = z - .object({ - createBlockTimestamp: z.number(), - createBlockIndex: z.string(), - subnetId: z.string(), - ownerAddresses: z.array(z.string()), - threshold: z.number(), - locktime: z.number(), - subnetOwnershipInfo: SubnetOwnershipInfo$inboundSchema, - isL1: z.boolean(), - l1ConversionTransactionHash: z.string().optional(), - l1ValidatorManagerDetails: L1ValidatorManagerDetails$inboundSchema - .optional(), - blockchains: z.array(Blockchain$inboundSchema), - }); - -/** @internal */ -export type Subnet$Outbound = { - createBlockTimestamp: number; - createBlockIndex: string; - subnetId: string; - ownerAddresses: Array; - threshold: number; - locktime: number; - subnetOwnershipInfo: SubnetOwnershipInfo$Outbound; - isL1: boolean; - l1ConversionTransactionHash?: string | undefined; - l1ValidatorManagerDetails?: L1ValidatorManagerDetails$Outbound | undefined; - blockchains: Array; -}; - -/** @internal */ -export const Subnet$outboundSchema: z.ZodType< - Subnet$Outbound, - z.ZodTypeDef, - Subnet -> = z.object({ - createBlockTimestamp: z.number(), - createBlockIndex: z.string(), - subnetId: z.string(), - ownerAddresses: z.array(z.string()), - threshold: z.number(), - locktime: z.number(), - subnetOwnershipInfo: SubnetOwnershipInfo$outboundSchema, - isL1: z.boolean(), - l1ConversionTransactionHash: z.string().optional(), - l1ValidatorManagerDetails: L1ValidatorManagerDetails$outboundSchema - .optional(), - blockchains: z.array(Blockchain$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Subnet$ { - /** @deprecated use `Subnet$inboundSchema` instead. */ - export const inboundSchema = Subnet$inboundSchema; - /** @deprecated use `Subnet$outboundSchema` instead. */ - export const outboundSchema = Subnet$outboundSchema; - /** @deprecated use `Subnet$Outbound` instead. */ - export type Outbound = Subnet$Outbound; -} - -export function subnetToJSON(subnet: Subnet): string { - return JSON.stringify(Subnet$outboundSchema.parse(subnet)); -} - -export function subnetFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Subnet$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Subnet' from JSON`, - ); -} diff --git a/data/src/models/components/subnetownershipinfo.ts b/data/src/models/components/subnetownershipinfo.ts deleted file mode 100644 index 1d7d7388..00000000 --- a/data/src/models/components/subnetownershipinfo.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SubnetOwnershipInfo = { - /** - * Locktime in seconds after which Subnet owners can control this Subnet. - */ - locktime: number; - /** - * Minimum number of signatures required to sign the Subnet update transactions. - */ - threshold: number; - /** - * Addresses that are eligible to sign the Subnet update transactions. - */ - addresses: Array; -}; - -/** @internal */ -export const SubnetOwnershipInfo$inboundSchema: z.ZodType< - SubnetOwnershipInfo, - z.ZodTypeDef, - unknown -> = z.object({ - locktime: z.number(), - threshold: z.number(), - addresses: z.array(z.string()), -}); - -/** @internal */ -export type SubnetOwnershipInfo$Outbound = { - locktime: number; - threshold: number; - addresses: Array; -}; - -/** @internal */ -export const SubnetOwnershipInfo$outboundSchema: z.ZodType< - SubnetOwnershipInfo$Outbound, - z.ZodTypeDef, - SubnetOwnershipInfo -> = z.object({ - locktime: z.number(), - threshold: z.number(), - addresses: z.array(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubnetOwnershipInfo$ { - /** @deprecated use `SubnetOwnershipInfo$inboundSchema` instead. */ - export const inboundSchema = SubnetOwnershipInfo$inboundSchema; - /** @deprecated use `SubnetOwnershipInfo$outboundSchema` instead. */ - export const outboundSchema = SubnetOwnershipInfo$outboundSchema; - /** @deprecated use `SubnetOwnershipInfo$Outbound` instead. */ - export type Outbound = SubnetOwnershipInfo$Outbound; -} - -export function subnetOwnershipInfoToJSON( - subnetOwnershipInfo: SubnetOwnershipInfo, -): string { - return JSON.stringify( - SubnetOwnershipInfo$outboundSchema.parse(subnetOwnershipInfo), - ); -} - -export function subnetOwnershipInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SubnetOwnershipInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SubnetOwnershipInfo' from JSON`, - ); -} diff --git a/data/src/models/components/subnetrpctimeintervalgranularity.ts b/data/src/models/components/subnetrpctimeintervalgranularity.ts deleted file mode 100644 index af80cad8..00000000 --- a/data/src/models/components/subnetrpctimeintervalgranularity.ts +++ /dev/null @@ -1,37 +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 SubnetRpcTimeIntervalGranularity = { - Hourly: "hourly", - Daily: "daily", - Weekly: "weekly", - Monthly: "monthly", -} as const; -export type SubnetRpcTimeIntervalGranularity = ClosedEnum< - typeof SubnetRpcTimeIntervalGranularity ->; - -/** @internal */ -export const SubnetRpcTimeIntervalGranularity$inboundSchema: z.ZodNativeEnum< - typeof SubnetRpcTimeIntervalGranularity -> = z.nativeEnum(SubnetRpcTimeIntervalGranularity); - -/** @internal */ -export const SubnetRpcTimeIntervalGranularity$outboundSchema: z.ZodNativeEnum< - typeof SubnetRpcTimeIntervalGranularity -> = SubnetRpcTimeIntervalGranularity$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubnetRpcTimeIntervalGranularity$ { - /** @deprecated use `SubnetRpcTimeIntervalGranularity$inboundSchema` instead. */ - export const inboundSchema = SubnetRpcTimeIntervalGranularity$inboundSchema; - /** @deprecated use `SubnetRpcTimeIntervalGranularity$outboundSchema` instead. */ - export const outboundSchema = SubnetRpcTimeIntervalGranularity$outboundSchema; -} diff --git a/data/src/models/components/subnetrpcusagemetricsresponsedto.ts b/data/src/models/components/subnetrpcusagemetricsresponsedto.ts deleted file mode 100644 index f7d47018..00000000 --- a/data/src/models/components/subnetrpcusagemetricsresponsedto.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - RpcMetrics, - RpcMetrics$inboundSchema, - RpcMetrics$Outbound, - RpcMetrics$outboundSchema, -} from "./rpcmetrics.js"; - -export type SubnetRpcUsageMetricsResponseDTO = { - /** - * Duration in which the metrics value is aggregated - */ - aggregateDuration: string; - /** - * Metrics values - */ - metrics: Array; - /** - * ChainId for which the metrics are aggregated - */ - chainId: string; -}; - -/** @internal */ -export const SubnetRpcUsageMetricsResponseDTO$inboundSchema: z.ZodType< - SubnetRpcUsageMetricsResponseDTO, - z.ZodTypeDef, - unknown -> = z.object({ - aggregateDuration: z.string(), - metrics: z.array(RpcMetrics$inboundSchema), - chainId: z.string(), -}); - -/** @internal */ -export type SubnetRpcUsageMetricsResponseDTO$Outbound = { - aggregateDuration: string; - metrics: Array; - chainId: string; -}; - -/** @internal */ -export const SubnetRpcUsageMetricsResponseDTO$outboundSchema: z.ZodType< - SubnetRpcUsageMetricsResponseDTO$Outbound, - z.ZodTypeDef, - SubnetRpcUsageMetricsResponseDTO -> = z.object({ - aggregateDuration: z.string(), - metrics: z.array(RpcMetrics$outboundSchema), - chainId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SubnetRpcUsageMetricsResponseDTO$ { - /** @deprecated use `SubnetRpcUsageMetricsResponseDTO$inboundSchema` instead. */ - export const inboundSchema = SubnetRpcUsageMetricsResponseDTO$inboundSchema; - /** @deprecated use `SubnetRpcUsageMetricsResponseDTO$outboundSchema` instead. */ - export const outboundSchema = SubnetRpcUsageMetricsResponseDTO$outboundSchema; - /** @deprecated use `SubnetRpcUsageMetricsResponseDTO$Outbound` instead. */ - export type Outbound = SubnetRpcUsageMetricsResponseDTO$Outbound; -} - -export function subnetRpcUsageMetricsResponseDTOToJSON( - subnetRpcUsageMetricsResponseDTO: SubnetRpcUsageMetricsResponseDTO, -): string { - return JSON.stringify( - SubnetRpcUsageMetricsResponseDTO$outboundSchema.parse( - subnetRpcUsageMetricsResponseDTO, - ), - ); -} - -export function subnetRpcUsageMetricsResponseDTOFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SubnetRpcUsageMetricsResponseDTO$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SubnetRpcUsageMetricsResponseDTO' from JSON`, - ); -} diff --git a/data/src/models/components/teleporterdestinationtransaction.ts b/data/src/models/components/teleporterdestinationtransaction.ts deleted file mode 100644 index 938f3cb2..00000000 --- a/data/src/models/components/teleporterdestinationtransaction.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type TeleporterDestinationTransaction = { - txHash: string; - timestamp: number; - gasSpent: string; - rewardRedeemer: string; - delivererAddress: string; -}; - -/** @internal */ -export const TeleporterDestinationTransaction$inboundSchema: z.ZodType< - TeleporterDestinationTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), - rewardRedeemer: z.string(), - delivererAddress: z.string(), -}); - -/** @internal */ -export type TeleporterDestinationTransaction$Outbound = { - txHash: string; - timestamp: number; - gasSpent: string; - rewardRedeemer: string; - delivererAddress: string; -}; - -/** @internal */ -export const TeleporterDestinationTransaction$outboundSchema: z.ZodType< - TeleporterDestinationTransaction$Outbound, - z.ZodTypeDef, - TeleporterDestinationTransaction -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), - rewardRedeemer: z.string(), - delivererAddress: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterDestinationTransaction$ { - /** @deprecated use `TeleporterDestinationTransaction$inboundSchema` instead. */ - export const inboundSchema = TeleporterDestinationTransaction$inboundSchema; - /** @deprecated use `TeleporterDestinationTransaction$outboundSchema` instead. */ - export const outboundSchema = TeleporterDestinationTransaction$outboundSchema; - /** @deprecated use `TeleporterDestinationTransaction$Outbound` instead. */ - export type Outbound = TeleporterDestinationTransaction$Outbound; -} - -export function teleporterDestinationTransactionToJSON( - teleporterDestinationTransaction: TeleporterDestinationTransaction, -): string { - return JSON.stringify( - TeleporterDestinationTransaction$outboundSchema.parse( - teleporterDestinationTransaction, - ), - ); -} - -export function teleporterDestinationTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterDestinationTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterDestinationTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/teleportermessageinfo.ts b/data/src/models/components/teleportermessageinfo.ts deleted file mode 100644 index b850c41e..00000000 --- a/data/src/models/components/teleportermessageinfo.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TransactionDirectionType, - TransactionDirectionType$inboundSchema, - TransactionDirectionType$outboundSchema, -} from "./transactiondirectiontype.js"; - -export type TeleporterMessageInfo = { - teleporterMessageId: string; - direction: TransactionDirectionType; - /** - * chain id of the source chain. valid only for destination transactions - */ - sourceChainId?: string | undefined; - /** - * chain id of the destination chain. valid only for source transactions - */ - destinationChainId?: string | undefined; -}; - -/** @internal */ -export const TeleporterMessageInfo$inboundSchema: z.ZodType< - TeleporterMessageInfo, - z.ZodTypeDef, - unknown -> = z.object({ - teleporterMessageId: z.string(), - direction: TransactionDirectionType$inboundSchema, - sourceChainId: z.string().optional(), - destinationChainId: z.string().optional(), -}); - -/** @internal */ -export type TeleporterMessageInfo$Outbound = { - teleporterMessageId: string; - direction: string; - sourceChainId?: string | undefined; - destinationChainId?: string | undefined; -}; - -/** @internal */ -export const TeleporterMessageInfo$outboundSchema: z.ZodType< - TeleporterMessageInfo$Outbound, - z.ZodTypeDef, - TeleporterMessageInfo -> = z.object({ - teleporterMessageId: z.string(), - direction: TransactionDirectionType$outboundSchema, - sourceChainId: z.string().optional(), - destinationChainId: 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 TeleporterMessageInfo$ { - /** @deprecated use `TeleporterMessageInfo$inboundSchema` instead. */ - export const inboundSchema = TeleporterMessageInfo$inboundSchema; - /** @deprecated use `TeleporterMessageInfo$outboundSchema` instead. */ - export const outboundSchema = TeleporterMessageInfo$outboundSchema; - /** @deprecated use `TeleporterMessageInfo$Outbound` instead. */ - export type Outbound = TeleporterMessageInfo$Outbound; -} - -export function teleporterMessageInfoToJSON( - teleporterMessageInfo: TeleporterMessageInfo, -): string { - return JSON.stringify( - TeleporterMessageInfo$outboundSchema.parse(teleporterMessageInfo), - ); -} - -export function teleporterMessageInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterMessageInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterMessageInfo' from JSON`, - ); -} diff --git a/data/src/models/components/teleporterreceipt.ts b/data/src/models/components/teleporterreceipt.ts deleted file mode 100644 index fc72ea55..00000000 --- a/data/src/models/components/teleporterreceipt.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type TeleporterReceipt = { - receivedMessageNonce: string; - relayerRewardAddress: string; -}; - -/** @internal */ -export const TeleporterReceipt$inboundSchema: z.ZodType< - TeleporterReceipt, - z.ZodTypeDef, - unknown -> = z.object({ - receivedMessageNonce: z.string(), - relayerRewardAddress: z.string(), -}); - -/** @internal */ -export type TeleporterReceipt$Outbound = { - receivedMessageNonce: string; - relayerRewardAddress: string; -}; - -/** @internal */ -export const TeleporterReceipt$outboundSchema: z.ZodType< - TeleporterReceipt$Outbound, - z.ZodTypeDef, - TeleporterReceipt -> = z.object({ - receivedMessageNonce: z.string(), - relayerRewardAddress: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterReceipt$ { - /** @deprecated use `TeleporterReceipt$inboundSchema` instead. */ - export const inboundSchema = TeleporterReceipt$inboundSchema; - /** @deprecated use `TeleporterReceipt$outboundSchema` instead. */ - export const outboundSchema = TeleporterReceipt$outboundSchema; - /** @deprecated use `TeleporterReceipt$Outbound` instead. */ - export type Outbound = TeleporterReceipt$Outbound; -} - -export function teleporterReceiptToJSON( - teleporterReceipt: TeleporterReceipt, -): string { - return JSON.stringify( - TeleporterReceipt$outboundSchema.parse(teleporterReceipt), - ); -} - -export function teleporterReceiptFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterReceipt$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterReceipt' from JSON`, - ); -} diff --git a/data/src/models/components/teleporterrewarddetails.ts b/data/src/models/components/teleporterrewarddetails.ts deleted file mode 100644 index d848637f..00000000 --- a/data/src/models/components/teleporterrewarddetails.ts +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Money, - Money$inboundSchema, - Money$Outbound, - Money$outboundSchema, -} from "./money.js"; - -export const TeleporterRewardDetailsErcType = { - Erc20: "ERC-20", -} as const; -export type TeleporterRewardDetailsErcType = ClosedEnum< - typeof TeleporterRewardDetailsErcType ->; - -export type TeleporterRewardDetails = { - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - /** - * The contract name. - */ - name: string; - /** - * The contract symbol. - */ - symbol: string; - /** - * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation. - */ - decimals: number; - /** - * The logo uri for the address. - */ - logoUri?: string | undefined; - ercType: TeleporterRewardDetailsErcType; - /** - * The token price, if available. - */ - price?: Money | undefined; - value: string; -}; - -/** @internal */ -export const TeleporterRewardDetailsErcType$inboundSchema: z.ZodNativeEnum< - typeof TeleporterRewardDetailsErcType -> = z.nativeEnum(TeleporterRewardDetailsErcType); - -/** @internal */ -export const TeleporterRewardDetailsErcType$outboundSchema: z.ZodNativeEnum< - typeof TeleporterRewardDetailsErcType -> = TeleporterRewardDetailsErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterRewardDetailsErcType$ { - /** @deprecated use `TeleporterRewardDetailsErcType$inboundSchema` instead. */ - export const inboundSchema = TeleporterRewardDetailsErcType$inboundSchema; - /** @deprecated use `TeleporterRewardDetailsErcType$outboundSchema` instead. */ - export const outboundSchema = TeleporterRewardDetailsErcType$outboundSchema; -} - -/** @internal */ -export const TeleporterRewardDetails$inboundSchema: z.ZodType< - TeleporterRewardDetails, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: TeleporterRewardDetailsErcType$inboundSchema, - price: Money$inboundSchema.optional(), - value: z.string(), -}); - -/** @internal */ -export type TeleporterRewardDetails$Outbound = { - address: string; - name: string; - symbol: string; - decimals: number; - logoUri?: string | undefined; - ercType: string; - price?: Money$Outbound | undefined; - value: string; -}; - -/** @internal */ -export const TeleporterRewardDetails$outboundSchema: z.ZodType< - TeleporterRewardDetails$Outbound, - z.ZodTypeDef, - TeleporterRewardDetails -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - logoUri: z.string().optional(), - ercType: TeleporterRewardDetailsErcType$outboundSchema, - price: Money$outboundSchema.optional(), - value: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterRewardDetails$ { - /** @deprecated use `TeleporterRewardDetails$inboundSchema` instead. */ - export const inboundSchema = TeleporterRewardDetails$inboundSchema; - /** @deprecated use `TeleporterRewardDetails$outboundSchema` instead. */ - export const outboundSchema = TeleporterRewardDetails$outboundSchema; - /** @deprecated use `TeleporterRewardDetails$Outbound` instead. */ - export type Outbound = TeleporterRewardDetails$Outbound; -} - -export function teleporterRewardDetailsToJSON( - teleporterRewardDetails: TeleporterRewardDetails, -): string { - return JSON.stringify( - TeleporterRewardDetails$outboundSchema.parse(teleporterRewardDetails), - ); -} - -export function teleporterRewardDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterRewardDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterRewardDetails' from JSON`, - ); -} diff --git a/data/src/models/components/teleportersourcetransaction.ts b/data/src/models/components/teleportersourcetransaction.ts deleted file mode 100644 index 1e664e0f..00000000 --- a/data/src/models/components/teleportersourcetransaction.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type TeleporterSourceTransaction = { - txHash: string; - timestamp: number; - gasSpent: string; -}; - -/** @internal */ -export const TeleporterSourceTransaction$inboundSchema: z.ZodType< - TeleporterSourceTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), -}); - -/** @internal */ -export type TeleporterSourceTransaction$Outbound = { - txHash: string; - timestamp: number; - gasSpent: string; -}; - -/** @internal */ -export const TeleporterSourceTransaction$outboundSchema: z.ZodType< - TeleporterSourceTransaction$Outbound, - z.ZodTypeDef, - TeleporterSourceTransaction -> = z.object({ - txHash: z.string(), - timestamp: z.number(), - gasSpent: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterSourceTransaction$ { - /** @deprecated use `TeleporterSourceTransaction$inboundSchema` instead. */ - export const inboundSchema = TeleporterSourceTransaction$inboundSchema; - /** @deprecated use `TeleporterSourceTransaction$outboundSchema` instead. */ - export const outboundSchema = TeleporterSourceTransaction$outboundSchema; - /** @deprecated use `TeleporterSourceTransaction$Outbound` instead. */ - export type Outbound = TeleporterSourceTransaction$Outbound; -} - -export function teleporterSourceTransactionToJSON( - teleporterSourceTransaction: TeleporterSourceTransaction, -): string { - return JSON.stringify( - TeleporterSourceTransaction$outboundSchema.parse( - teleporterSourceTransaction, - ), - ); -} - -export function teleporterSourceTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterSourceTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterSourceTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/timeintervalgranularityextended.ts b/data/src/models/components/timeintervalgranularityextended.ts deleted file mode 100644 index 3fcf8a5c..00000000 --- a/data/src/models/components/timeintervalgranularityextended.ts +++ /dev/null @@ -1,38 +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 TimeIntervalGranularityExtended = { - Minute: "minute", - Hourly: "hourly", - Daily: "daily", - Weekly: "weekly", - Monthly: "monthly", -} as const; -export type TimeIntervalGranularityExtended = ClosedEnum< - typeof TimeIntervalGranularityExtended ->; - -/** @internal */ -export const TimeIntervalGranularityExtended$inboundSchema: z.ZodNativeEnum< - typeof TimeIntervalGranularityExtended -> = z.nativeEnum(TimeIntervalGranularityExtended); - -/** @internal */ -export const TimeIntervalGranularityExtended$outboundSchema: z.ZodNativeEnum< - typeof TimeIntervalGranularityExtended -> = TimeIntervalGranularityExtended$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeIntervalGranularityExtended$ { - /** @deprecated use `TimeIntervalGranularityExtended$inboundSchema` instead. */ - export const inboundSchema = TimeIntervalGranularityExtended$inboundSchema; - /** @deprecated use `TimeIntervalGranularityExtended$outboundSchema` instead. */ - export const outboundSchema = TimeIntervalGranularityExtended$outboundSchema; -} diff --git a/data/src/models/components/transactiondetails.ts b/data/src/models/components/transactiondetails.ts deleted file mode 100644 index c003eca4..00000000 --- a/data/src/models/components/transactiondetails.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Erc1155TransferDetails, - Erc1155TransferDetails$inboundSchema, - Erc1155TransferDetails$Outbound, - Erc1155TransferDetails$outboundSchema, -} from "./erc1155transferdetails.js"; -import { - Erc20TransferDetails, - Erc20TransferDetails$inboundSchema, - Erc20TransferDetails$Outbound, - Erc20TransferDetails$outboundSchema, -} from "./erc20transferdetails.js"; -import { - Erc721TransferDetails, - Erc721TransferDetails$inboundSchema, - Erc721TransferDetails$Outbound, - Erc721TransferDetails$outboundSchema, -} from "./erc721transferdetails.js"; -import { - InternalTransactionDetails, - InternalTransactionDetails$inboundSchema, - InternalTransactionDetails$Outbound, - InternalTransactionDetails$outboundSchema, -} from "./internaltransactiondetails.js"; -import { - NativeTransaction, - NativeTransaction$inboundSchema, - NativeTransaction$Outbound, - NativeTransaction$outboundSchema, -} from "./nativetransaction.js"; - -export type TransactionDetails = { - /** - * The native (top-level) transaction details. - */ - nativeTransaction: NativeTransaction; - /** - * The list of ERC-20 transfers. - */ - erc20Transfers?: Array | undefined; - /** - * The list of ERC-721 transfers. - */ - erc721Transfers?: Array | undefined; - /** - * The list of ERC-1155 transfers. - */ - erc1155Transfers?: Array | undefined; - /** - * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction. - */ - internalTransactions?: Array | undefined; -}; - -/** @internal */ -export const TransactionDetails$inboundSchema: z.ZodType< - TransactionDetails, - z.ZodTypeDef, - unknown -> = z.object({ - nativeTransaction: NativeTransaction$inboundSchema, - erc20Transfers: z.array(Erc20TransferDetails$inboundSchema).optional(), - erc721Transfers: z.array(Erc721TransferDetails$inboundSchema).optional(), - erc1155Transfers: z.array(Erc1155TransferDetails$inboundSchema).optional(), - internalTransactions: z.array(InternalTransactionDetails$inboundSchema) - .optional(), -}); - -/** @internal */ -export type TransactionDetails$Outbound = { - nativeTransaction: NativeTransaction$Outbound; - erc20Transfers?: Array | undefined; - erc721Transfers?: Array | undefined; - erc1155Transfers?: Array | undefined; - internalTransactions?: Array | undefined; -}; - -/** @internal */ -export const TransactionDetails$outboundSchema: z.ZodType< - TransactionDetails$Outbound, - z.ZodTypeDef, - TransactionDetails -> = z.object({ - nativeTransaction: NativeTransaction$outboundSchema, - erc20Transfers: z.array(Erc20TransferDetails$outboundSchema).optional(), - erc721Transfers: z.array(Erc721TransferDetails$outboundSchema).optional(), - erc1155Transfers: z.array(Erc1155TransferDetails$outboundSchema).optional(), - internalTransactions: z.array(InternalTransactionDetails$outboundSchema) - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionDetails$ { - /** @deprecated use `TransactionDetails$inboundSchema` instead. */ - export const inboundSchema = TransactionDetails$inboundSchema; - /** @deprecated use `TransactionDetails$outboundSchema` instead. */ - export const outboundSchema = TransactionDetails$outboundSchema; - /** @deprecated use `TransactionDetails$Outbound` instead. */ - export type Outbound = TransactionDetails$Outbound; -} - -export function transactionDetailsToJSON( - transactionDetails: TransactionDetails, -): string { - return JSON.stringify( - TransactionDetails$outboundSchema.parse(transactionDetails), - ); -} - -export function transactionDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TransactionDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TransactionDetails' from JSON`, - ); -} diff --git a/data/src/models/components/transactiondirectiontype.ts b/data/src/models/components/transactiondirectiontype.ts deleted file mode 100644 index 1054411c..00000000 --- a/data/src/models/components/transactiondirectiontype.ts +++ /dev/null @@ -1,35 +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 TransactionDirectionType = { - SourceTransaction: "SOURCE_TRANSACTION", - DestinationTransaction: "DESTINATION_TRANSACTION", -} as const; -export type TransactionDirectionType = ClosedEnum< - typeof TransactionDirectionType ->; - -/** @internal */ -export const TransactionDirectionType$inboundSchema: z.ZodNativeEnum< - typeof TransactionDirectionType -> = z.nativeEnum(TransactionDirectionType); - -/** @internal */ -export const TransactionDirectionType$outboundSchema: z.ZodNativeEnum< - typeof TransactionDirectionType -> = TransactionDirectionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionDirectionType$ { - /** @deprecated use `TransactionDirectionType$inboundSchema` instead. */ - export const inboundSchema = TransactionDirectionType$inboundSchema; - /** @deprecated use `TransactionDirectionType$outboundSchema` instead. */ - export const outboundSchema = TransactionDirectionType$outboundSchema; -} diff --git a/data/src/models/components/transactionexportmetadata.ts b/data/src/models/components/transactionexportmetadata.ts deleted file mode 100644 index 8b34c2dd..00000000 --- a/data/src/models/components/transactionexportmetadata.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - OperationStatusCode, - OperationStatusCode$inboundSchema, - OperationStatusCode$outboundSchema, -} from "./operationstatuscode.js"; - -export type TransactionExportMetadata = { - code?: OperationStatusCode | undefined; - /** - * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations. - */ - downloadUrl?: string | undefined; - /** - * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'. - */ - nextDate?: string | undefined; -}; - -/** @internal */ -export const TransactionExportMetadata$inboundSchema: z.ZodType< - TransactionExportMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - code: OperationStatusCode$inboundSchema.optional(), - downloadUrl: z.string().optional(), - nextDate: z.string().optional(), -}); - -/** @internal */ -export type TransactionExportMetadata$Outbound = { - code?: string | undefined; - downloadUrl?: string | undefined; - nextDate?: string | undefined; -}; - -/** @internal */ -export const TransactionExportMetadata$outboundSchema: z.ZodType< - TransactionExportMetadata$Outbound, - z.ZodTypeDef, - TransactionExportMetadata -> = z.object({ - code: OperationStatusCode$outboundSchema.optional(), - downloadUrl: z.string().optional(), - nextDate: 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 TransactionExportMetadata$ { - /** @deprecated use `TransactionExportMetadata$inboundSchema` instead. */ - export const inboundSchema = TransactionExportMetadata$inboundSchema; - /** @deprecated use `TransactionExportMetadata$outboundSchema` instead. */ - export const outboundSchema = TransactionExportMetadata$outboundSchema; - /** @deprecated use `TransactionExportMetadata$Outbound` instead. */ - export type Outbound = TransactionExportMetadata$Outbound; -} - -export function transactionExportMetadataToJSON( - transactionExportMetadata: TransactionExportMetadata, -): string { - return JSON.stringify( - TransactionExportMetadata$outboundSchema.parse(transactionExportMetadata), - ); -} - -export function transactionExportMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TransactionExportMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TransactionExportMetadata' from JSON`, - ); -} diff --git a/data/src/models/components/transactionmethodtype.ts b/data/src/models/components/transactionmethodtype.ts deleted file mode 100644 index 3f08efbb..00000000 --- a/data/src/models/components/transactionmethodtype.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation. - */ -export const TransactionMethodType = { - NativeTransfer: "NATIVE_TRANSFER", - ContractCall: "CONTRACT_CALL", - ContractCreation: "CONTRACT_CREATION", -} as const; -/** - * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation. - */ -export type TransactionMethodType = ClosedEnum; - -/** @internal */ -export const TransactionMethodType$inboundSchema: z.ZodNativeEnum< - typeof TransactionMethodType -> = z.nativeEnum(TransactionMethodType); - -/** @internal */ -export const TransactionMethodType$outboundSchema: z.ZodNativeEnum< - typeof TransactionMethodType -> = TransactionMethodType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionMethodType$ { - /** @deprecated use `TransactionMethodType$inboundSchema` instead. */ - export const inboundSchema = TransactionMethodType$inboundSchema; - /** @deprecated use `TransactionMethodType$outboundSchema` instead. */ - export const outboundSchema = TransactionMethodType$outboundSchema; -} diff --git a/data/src/models/components/transactionstatus.ts b/data/src/models/components/transactionstatus.ts deleted file mode 100644 index 9d8112cc..00000000 --- a/data/src/models/components/transactionstatus.ts +++ /dev/null @@ -1,33 +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 TransactionStatus = { - Failed: "failed", - Success: "success", -} as const; -export type TransactionStatus = ClosedEnum; - -/** @internal */ -export const TransactionStatus$inboundSchema: z.ZodNativeEnum< - typeof TransactionStatus -> = z.nativeEnum(TransactionStatus); - -/** @internal */ -export const TransactionStatus$outboundSchema: z.ZodNativeEnum< - typeof TransactionStatus -> = TransactionStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionStatus$ { - /** @deprecated use `TransactionStatus$inboundSchema` instead. */ - export const inboundSchema = TransactionStatus$inboundSchema; - /** @deprecated use `TransactionStatus$outboundSchema` instead. */ - export const outboundSchema = TransactionStatus$outboundSchema; -} diff --git a/data/src/models/components/transactionvertexdetail.ts b/data/src/models/components/transactionvertexdetail.ts deleted file mode 100644 index e1cc061f..00000000 --- a/data/src/models/components/transactionvertexdetail.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type TransactionVertexDetail = { - /** - * Vertex ID of the vertex this transaction belongs to. - */ - hash: string; - /** - * Vertex height of the vertex this transaction belongs to. - */ - height: number; - /** - * Timestamp in seconds this vertex was accepted. - */ - timestamp: number; -}; - -/** @internal */ -export const TransactionVertexDetail$inboundSchema: z.ZodType< - TransactionVertexDetail, - z.ZodTypeDef, - unknown -> = z.object({ - hash: z.string(), - height: z.number(), - timestamp: z.number(), -}); - -/** @internal */ -export type TransactionVertexDetail$Outbound = { - hash: string; - height: number; - timestamp: number; -}; - -/** @internal */ -export const TransactionVertexDetail$outboundSchema: z.ZodType< - TransactionVertexDetail$Outbound, - z.ZodTypeDef, - TransactionVertexDetail -> = z.object({ - hash: z.string(), - height: z.number(), - timestamp: 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 TransactionVertexDetail$ { - /** @deprecated use `TransactionVertexDetail$inboundSchema` instead. */ - export const inboundSchema = TransactionVertexDetail$inboundSchema; - /** @deprecated use `TransactionVertexDetail$outboundSchema` instead. */ - export const outboundSchema = TransactionVertexDetail$outboundSchema; - /** @deprecated use `TransactionVertexDetail$Outbound` instead. */ - export type Outbound = TransactionVertexDetail$Outbound; -} - -export function transactionVertexDetailToJSON( - transactionVertexDetail: TransactionVertexDetail, -): string { - return JSON.stringify( - TransactionVertexDetail$outboundSchema.parse(transactionVertexDetail), - ); -} - -export function transactionVertexDetailFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TransactionVertexDetail$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TransactionVertexDetail' from JSON`, - ); -} diff --git a/data/src/models/components/unknowncontract.ts b/data/src/models/components/unknowncontract.ts deleted file mode 100644 index c7b98e85..00000000 --- a/data/src/models/components/unknowncontract.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ContractDeploymentDetails, - ContractDeploymentDetails$inboundSchema, - ContractDeploymentDetails$Outbound, - ContractDeploymentDetails$outboundSchema, -} from "./contractdeploymentdetails.js"; -import { - ImageAsset, - ImageAsset$inboundSchema, - ImageAsset$Outbound, - ImageAsset$outboundSchema, -} from "./imageasset.js"; -import { - ResourceLink, - ResourceLink$inboundSchema, - ResourceLink$Outbound, - ResourceLink$outboundSchema, -} from "./resourcelink.js"; - -export const UnknownContractErcType = { - Unknown: "UNKNOWN", -} as const; -export type UnknownContractErcType = ClosedEnum; - -export type UnknownContract = { - /** - * The contract name. - */ - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset | undefined; - bannerAsset?: ImageAsset | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - /** - * A wallet or contract address in mixed-case checksum encoding. - */ - address: string; - deploymentDetails?: ContractDeploymentDetails | undefined; - ercType: UnknownContractErcType; -}; - -/** @internal */ -export const UnknownContractErcType$inboundSchema: z.ZodNativeEnum< - typeof UnknownContractErcType -> = z.nativeEnum(UnknownContractErcType); - -/** @internal */ -export const UnknownContractErcType$outboundSchema: z.ZodNativeEnum< - typeof UnknownContractErcType -> = UnknownContractErcType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnknownContractErcType$ { - /** @deprecated use `UnknownContractErcType$inboundSchema` instead. */ - export const inboundSchema = UnknownContractErcType$inboundSchema; - /** @deprecated use `UnknownContractErcType$outboundSchema` instead. */ - export const outboundSchema = UnknownContractErcType$outboundSchema; -} - -/** @internal */ -export const UnknownContract$inboundSchema: z.ZodType< - UnknownContract, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$inboundSchema.optional(), - bannerAsset: ImageAsset$inboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$inboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$inboundSchema.optional(), - ercType: UnknownContractErcType$inboundSchema, -}); - -/** @internal */ -export type UnknownContract$Outbound = { - name?: string | undefined; - description?: string | undefined; - officialSite?: string | undefined; - email?: string | undefined; - logoAsset?: ImageAsset$Outbound | undefined; - bannerAsset?: ImageAsset$Outbound | undefined; - color?: string | undefined; - resourceLinks?: Array | undefined; - tags?: Array | undefined; - address: string; - deploymentDetails?: ContractDeploymentDetails$Outbound | undefined; - ercType: string; -}; - -/** @internal */ -export const UnknownContract$outboundSchema: z.ZodType< - UnknownContract$Outbound, - z.ZodTypeDef, - UnknownContract -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - officialSite: z.string().optional(), - email: z.string().optional(), - logoAsset: ImageAsset$outboundSchema.optional(), - bannerAsset: ImageAsset$outboundSchema.optional(), - color: z.string().optional(), - resourceLinks: z.array(ResourceLink$outboundSchema).optional(), - tags: z.array(z.string()).optional(), - address: z.string(), - deploymentDetails: ContractDeploymentDetails$outboundSchema.optional(), - ercType: UnknownContractErcType$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnknownContract$ { - /** @deprecated use `UnknownContract$inboundSchema` instead. */ - export const inboundSchema = UnknownContract$inboundSchema; - /** @deprecated use `UnknownContract$outboundSchema` instead. */ - export const outboundSchema = UnknownContract$outboundSchema; - /** @deprecated use `UnknownContract$Outbound` instead. */ - export type Outbound = UnknownContract$Outbound; -} - -export function unknownContractToJSON( - unknownContract: UnknownContract, -): string { - return JSON.stringify(UnknownContract$outboundSchema.parse(unknownContract)); -} - -export function unknownContractFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnknownContract$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnknownContract' from JSON`, - ); -} diff --git a/data/src/models/components/usagemetricsgroupbyenum.ts b/data/src/models/components/usagemetricsgroupbyenum.ts deleted file mode 100644 index dbe0e445..00000000 --- a/data/src/models/components/usagemetricsgroupbyenum.ts +++ /dev/null @@ -1,38 +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 UsageMetricsGroupByEnum = { - RequestPath: "requestPath", - ResponseCode: "responseCode", - ChainId: "chainId", - ApiKeyId: "apiKeyId", - RequestType: "requestType", -} as const; -export type UsageMetricsGroupByEnum = ClosedEnum< - typeof UsageMetricsGroupByEnum ->; - -/** @internal */ -export const UsageMetricsGroupByEnum$inboundSchema: z.ZodNativeEnum< - typeof UsageMetricsGroupByEnum -> = z.nativeEnum(UsageMetricsGroupByEnum); - -/** @internal */ -export const UsageMetricsGroupByEnum$outboundSchema: z.ZodNativeEnum< - typeof UsageMetricsGroupByEnum -> = UsageMetricsGroupByEnum$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UsageMetricsGroupByEnum$ { - /** @deprecated use `UsageMetricsGroupByEnum$inboundSchema` instead. */ - export const inboundSchema = UsageMetricsGroupByEnum$inboundSchema; - /** @deprecated use `UsageMetricsGroupByEnum$outboundSchema` instead. */ - export const outboundSchema = UsageMetricsGroupByEnum$outboundSchema; -} diff --git a/data/src/models/components/usagemetricsresponsedto.ts b/data/src/models/components/usagemetricsresponsedto.ts deleted file mode 100644 index 28bdcb10..00000000 --- a/data/src/models/components/usagemetricsresponsedto.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Metric, - Metric$inboundSchema, - Metric$Outbound, - Metric$outboundSchema, -} from "./metric.js"; - -export type UsageMetricsResponseDTO = { - /** - * Duration in which the metrics value is aggregated - */ - aggregateDuration: string; - /** - * Org ID for which the metrics are aggregated - */ - orgId: string; - /** - * Metrics values - */ - metrics: Array; -}; - -/** @internal */ -export const UsageMetricsResponseDTO$inboundSchema: z.ZodType< - UsageMetricsResponseDTO, - z.ZodTypeDef, - unknown -> = z.object({ - aggregateDuration: z.string(), - orgId: z.string(), - metrics: z.array(Metric$inboundSchema), -}); - -/** @internal */ -export type UsageMetricsResponseDTO$Outbound = { - aggregateDuration: string; - orgId: string; - metrics: Array; -}; - -/** @internal */ -export const UsageMetricsResponseDTO$outboundSchema: z.ZodType< - UsageMetricsResponseDTO$Outbound, - z.ZodTypeDef, - UsageMetricsResponseDTO -> = z.object({ - aggregateDuration: z.string(), - orgId: z.string(), - metrics: z.array(Metric$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UsageMetricsResponseDTO$ { - /** @deprecated use `UsageMetricsResponseDTO$inboundSchema` instead. */ - export const inboundSchema = UsageMetricsResponseDTO$inboundSchema; - /** @deprecated use `UsageMetricsResponseDTO$outboundSchema` instead. */ - export const outboundSchema = UsageMetricsResponseDTO$outboundSchema; - /** @deprecated use `UsageMetricsResponseDTO$Outbound` instead. */ - export type Outbound = UsageMetricsResponseDTO$Outbound; -} - -export function usageMetricsResponseDTOToJSON( - usageMetricsResponseDTO: UsageMetricsResponseDTO, -): string { - return JSON.stringify( - UsageMetricsResponseDTO$outboundSchema.parse(usageMetricsResponseDTO), - ); -} - -export function usageMetricsResponseDTOFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UsageMetricsResponseDTO$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UsageMetricsResponseDTO' from JSON`, - ); -} diff --git a/data/src/models/components/usagemetricsvaluedto.ts b/data/src/models/components/usagemetricsvaluedto.ts deleted file mode 100644 index 935db7fa..00000000 --- a/data/src/models/components/usagemetricsvaluedto.ts +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Column name used for data aggregation - */ -export const UsageMetricsValueDTOGroupedBy = { - RequestPath: "requestPath", - ResponseCode: "responseCode", - ChainId: "chainId", - ApiKeyId: "apiKeyId", - RequestType: "requestType", - None: "None", -} as const; -/** - * Column name used for data aggregation - */ -export type UsageMetricsValueDTOGroupedBy = ClosedEnum< - typeof UsageMetricsValueDTOGroupedBy ->; - -/** - * The value of the column used for data aggregation - */ -export type UsageMetricsValueDTOGroupValue = string | number; - -export type UsageMetricsValueDTO = { - /** - * Column name used for data aggregation - */ - groupedBy: UsageMetricsValueDTOGroupedBy; - /** - * The value of the column used for data aggregation - */ - groupValue?: string | number | undefined; - /** - * The total number of requests - */ - totalRequests: 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; - /** - * The number of API credits used - */ - apiCreditsUsed: number; - /** - * The number of API credits wasted on invalid requests - */ - apiCreditsWasted: number; -}; - -/** @internal */ -export const UsageMetricsValueDTOGroupedBy$inboundSchema: z.ZodNativeEnum< - typeof UsageMetricsValueDTOGroupedBy -> = z.nativeEnum(UsageMetricsValueDTOGroupedBy); - -/** @internal */ -export const UsageMetricsValueDTOGroupedBy$outboundSchema: z.ZodNativeEnum< - typeof UsageMetricsValueDTOGroupedBy -> = UsageMetricsValueDTOGroupedBy$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UsageMetricsValueDTOGroupedBy$ { - /** @deprecated use `UsageMetricsValueDTOGroupedBy$inboundSchema` instead. */ - export const inboundSchema = UsageMetricsValueDTOGroupedBy$inboundSchema; - /** @deprecated use `UsageMetricsValueDTOGroupedBy$outboundSchema` instead. */ - export const outboundSchema = UsageMetricsValueDTOGroupedBy$outboundSchema; -} - -/** @internal */ -export const UsageMetricsValueDTOGroupValue$inboundSchema: z.ZodType< - UsageMetricsValueDTOGroupValue, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.number()]); - -/** @internal */ -export type UsageMetricsValueDTOGroupValue$Outbound = string | number; - -/** @internal */ -export const UsageMetricsValueDTOGroupValue$outboundSchema: z.ZodType< - UsageMetricsValueDTOGroupValue$Outbound, - z.ZodTypeDef, - UsageMetricsValueDTOGroupValue -> = 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 UsageMetricsValueDTOGroupValue$ { - /** @deprecated use `UsageMetricsValueDTOGroupValue$inboundSchema` instead. */ - export const inboundSchema = UsageMetricsValueDTOGroupValue$inboundSchema; - /** @deprecated use `UsageMetricsValueDTOGroupValue$outboundSchema` instead. */ - export const outboundSchema = UsageMetricsValueDTOGroupValue$outboundSchema; - /** @deprecated use `UsageMetricsValueDTOGroupValue$Outbound` instead. */ - export type Outbound = UsageMetricsValueDTOGroupValue$Outbound; -} - -export function usageMetricsValueDTOGroupValueToJSON( - usageMetricsValueDTOGroupValue: UsageMetricsValueDTOGroupValue, -): string { - return JSON.stringify( - UsageMetricsValueDTOGroupValue$outboundSchema.parse( - usageMetricsValueDTOGroupValue, - ), - ); -} - -export function usageMetricsValueDTOGroupValueFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UsageMetricsValueDTOGroupValue$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UsageMetricsValueDTOGroupValue' from JSON`, - ); -} - -/** @internal */ -export const UsageMetricsValueDTO$inboundSchema: z.ZodType< - UsageMetricsValueDTO, - z.ZodTypeDef, - unknown -> = z.object({ - groupedBy: UsageMetricsValueDTOGroupedBy$inboundSchema, - groupValue: z.union([z.string(), z.number()]).optional(), - totalRequests: z.number(), - requestsPerSecond: z.number(), - successRatePercent: z.number(), - medianResponseTimeMsecs: z.number(), - invalidRequests: z.number(), - apiCreditsUsed: z.number(), - apiCreditsWasted: z.number(), -}); - -/** @internal */ -export type UsageMetricsValueDTO$Outbound = { - groupedBy: string; - groupValue?: string | number | undefined; - totalRequests: number; - requestsPerSecond: number; - successRatePercent: number; - medianResponseTimeMsecs: number; - invalidRequests: number; - apiCreditsUsed: number; - apiCreditsWasted: number; -}; - -/** @internal */ -export const UsageMetricsValueDTO$outboundSchema: z.ZodType< - UsageMetricsValueDTO$Outbound, - z.ZodTypeDef, - UsageMetricsValueDTO -> = z.object({ - groupedBy: UsageMetricsValueDTOGroupedBy$outboundSchema, - groupValue: z.union([z.string(), z.number()]).optional(), - totalRequests: z.number(), - requestsPerSecond: z.number(), - successRatePercent: z.number(), - medianResponseTimeMsecs: z.number(), - invalidRequests: z.number(), - apiCreditsUsed: z.number(), - apiCreditsWasted: 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 UsageMetricsValueDTO$ { - /** @deprecated use `UsageMetricsValueDTO$inboundSchema` instead. */ - export const inboundSchema = UsageMetricsValueDTO$inboundSchema; - /** @deprecated use `UsageMetricsValueDTO$outboundSchema` instead. */ - export const outboundSchema = UsageMetricsValueDTO$outboundSchema; - /** @deprecated use `UsageMetricsValueDTO$Outbound` instead. */ - export type Outbound = UsageMetricsValueDTO$Outbound; -} - -export function usageMetricsValueDTOToJSON( - usageMetricsValueDTO: UsageMetricsValueDTO, -): string { - return JSON.stringify( - UsageMetricsValueDTO$outboundSchema.parse(usageMetricsValueDTO), - ); -} - -export function usageMetricsValueDTOFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UsageMetricsValueDTO$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UsageMetricsValueDTO' from JSON`, - ); -} diff --git a/data/src/models/components/utilityaddresses.ts b/data/src/models/components/utilityaddresses.ts deleted file mode 100644 index f71ab767..00000000 --- a/data/src/models/components/utilityaddresses.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UtilityAddresses = { - multicall?: string | undefined; -}; - -/** @internal */ -export const UtilityAddresses$inboundSchema: z.ZodType< - UtilityAddresses, - z.ZodTypeDef, - unknown -> = z.object({ - multicall: z.string().optional(), -}); - -/** @internal */ -export type UtilityAddresses$Outbound = { - multicall?: string | undefined; -}; - -/** @internal */ -export const UtilityAddresses$outboundSchema: z.ZodType< - UtilityAddresses$Outbound, - z.ZodTypeDef, - UtilityAddresses -> = z.object({ - multicall: 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 UtilityAddresses$ { - /** @deprecated use `UtilityAddresses$inboundSchema` instead. */ - export const inboundSchema = UtilityAddresses$inboundSchema; - /** @deprecated use `UtilityAddresses$outboundSchema` instead. */ - export const outboundSchema = UtilityAddresses$outboundSchema; - /** @deprecated use `UtilityAddresses$Outbound` instead. */ - export type Outbound = UtilityAddresses$Outbound; -} - -export function utilityAddressesToJSON( - utilityAddresses: UtilityAddresses, -): string { - return JSON.stringify( - UtilityAddresses$outboundSchema.parse(utilityAddresses), - ); -} - -export function utilityAddressesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UtilityAddresses$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UtilityAddresses' from JSON`, - ); -} diff --git a/data/src/models/components/utxo.ts b/data/src/models/components/utxo.ts deleted file mode 100644 index e5fe9db5..00000000 --- a/data/src/models/components/utxo.ts +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - UtxoCredential, - UtxoCredential$inboundSchema, - UtxoCredential$Outbound, - UtxoCredential$outboundSchema, -} from "./utxocredential.js"; - -export type Utxo = { - /** - * Addresses that are eligible to sign the consumption of this output. - */ - addresses: Array; - asset: AssetAmount; - /** - * Blockchain ID on which this output is consumed on. - */ - consumedOnChainId: string; - /** - * Transaction ID that consumed this output. - */ - consumingTxHash?: string | undefined; - /** - * Blockchain ID on which this output is created on. - */ - createdOnChainId: string; - /** - * UTXO ID for this output. - */ - utxoId: string; - /** - * Unix timestamp in seconds at which this output was consumed. - */ - consumingTxTimestamp?: number | undefined; - /** - * Transaction ID that created this output. - */ - creationTxHash: string; - /** - * Credentials that signed the transaction to consume this utxo - */ - credentials?: Array | undefined; - /** - * Index representing the minting set for the NFT mint output. - */ - groupId?: number | undefined; - /** - * Locktime in seconds after which this output can be consumed. - */ - locktime: number; - /** - * Postion of this output in a list of lexiographically sorted outputs of a transaction. - */ - outputIndex: string; - /** - * Hex encoded data for NFT assets. - */ - payload?: string | undefined; - /** - * Minimum number of signatures required to consume this output. - */ - threshold: number; - /** - * Unix timestamp in seconds at which this outptut was created. - */ - timestamp: number; - /** - * Type of output. - */ - utxoType: string; -}; - -/** @internal */ -export const Utxo$inboundSchema: z.ZodType = z - .object({ - addresses: z.array(z.string()), - asset: AssetAmount$inboundSchema, - consumedOnChainId: z.string(), - consumingTxHash: z.string().optional(), - createdOnChainId: z.string(), - utxoId: z.string(), - consumingTxTimestamp: z.number().optional(), - creationTxHash: z.string(), - credentials: z.array(UtxoCredential$inboundSchema).optional(), - groupId: z.number().optional(), - locktime: z.number(), - outputIndex: z.string(), - payload: z.string().optional(), - threshold: z.number(), - timestamp: z.number(), - utxoType: z.string(), - }); - -/** @internal */ -export type Utxo$Outbound = { - addresses: Array; - asset: AssetAmount$Outbound; - consumedOnChainId: string; - consumingTxHash?: string | undefined; - createdOnChainId: string; - utxoId: string; - consumingTxTimestamp?: number | undefined; - creationTxHash: string; - credentials?: Array | undefined; - groupId?: number | undefined; - locktime: number; - outputIndex: string; - payload?: string | undefined; - threshold: number; - timestamp: number; - utxoType: string; -}; - -/** @internal */ -export const Utxo$outboundSchema: z.ZodType = - z.object({ - addresses: z.array(z.string()), - asset: AssetAmount$outboundSchema, - consumedOnChainId: z.string(), - consumingTxHash: z.string().optional(), - createdOnChainId: z.string(), - utxoId: z.string(), - consumingTxTimestamp: z.number().optional(), - creationTxHash: z.string(), - credentials: z.array(UtxoCredential$outboundSchema).optional(), - groupId: z.number().optional(), - locktime: z.number(), - outputIndex: z.string(), - payload: z.string().optional(), - threshold: z.number(), - timestamp: z.number(), - utxoType: z.string(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Utxo$ { - /** @deprecated use `Utxo$inboundSchema` instead. */ - export const inboundSchema = Utxo$inboundSchema; - /** @deprecated use `Utxo$outboundSchema` instead. */ - export const outboundSchema = Utxo$outboundSchema; - /** @deprecated use `Utxo$Outbound` instead. */ - export type Outbound = Utxo$Outbound; -} - -export function utxoToJSON(utxo: Utxo): string { - return JSON.stringify(Utxo$outboundSchema.parse(utxo)); -} - -export function utxoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Utxo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Utxo' from JSON`, - ); -} diff --git a/data/src/models/components/utxocredential.ts b/data/src/models/components/utxocredential.ts deleted file mode 100644 index 81ae708e..00000000 --- a/data/src/models/components/utxocredential.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UtxoCredential = { - /** - * Signature provided to consume the output. - */ - signature?: string | undefined; - /** - * Public key associated with the signature. - */ - publicKey?: string | undefined; -}; - -/** @internal */ -export const UtxoCredential$inboundSchema: z.ZodType< - UtxoCredential, - z.ZodTypeDef, - unknown -> = z.object({ - signature: z.string().optional(), - publicKey: z.string().optional(), -}); - -/** @internal */ -export type UtxoCredential$Outbound = { - signature?: string | undefined; - publicKey?: string | undefined; -}; - -/** @internal */ -export const UtxoCredential$outboundSchema: z.ZodType< - UtxoCredential$Outbound, - z.ZodTypeDef, - UtxoCredential -> = z.object({ - signature: z.string().optional(), - publicKey: 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 UtxoCredential$ { - /** @deprecated use `UtxoCredential$inboundSchema` instead. */ - export const inboundSchema = UtxoCredential$inboundSchema; - /** @deprecated use `UtxoCredential$outboundSchema` instead. */ - export const outboundSchema = UtxoCredential$outboundSchema; - /** @deprecated use `UtxoCredential$Outbound` instead. */ - export type Outbound = UtxoCredential$Outbound; -} - -export function utxoCredentialToJSON(utxoCredential: UtxoCredential): string { - return JSON.stringify(UtxoCredential$outboundSchema.parse(utxoCredential)); -} - -export function utxoCredentialFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UtxoCredential$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UtxoCredential' from JSON`, - ); -} diff --git a/data/src/models/components/utxotype.ts b/data/src/models/components/utxotype.ts deleted file mode 100644 index 050ea1e3..00000000 --- a/data/src/models/components/utxotype.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Indicates whether the UTXO is staked or transferable - */ -export const UtxoType = { - Stake: "STAKE", - Transfer: "TRANSFER", -} as const; -/** - * Indicates whether the UTXO is staked or transferable - */ -export type UtxoType = ClosedEnum; - -/** @internal */ -export const UtxoType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(UtxoType); - -/** @internal */ -export const UtxoType$outboundSchema: z.ZodNativeEnum = - UtxoType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UtxoType$ { - /** @deprecated use `UtxoType$inboundSchema` instead. */ - export const inboundSchema = UtxoType$inboundSchema; - /** @deprecated use `UtxoType$outboundSchema` instead. */ - export const outboundSchema = UtxoType$outboundSchema; -} diff --git a/data/src/models/components/validationstatustype.ts b/data/src/models/components/validationstatustype.ts deleted file mode 100644 index 39ffb4f1..00000000 --- a/data/src/models/components/validationstatustype.ts +++ /dev/null @@ -1,35 +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 ValidationStatusType = { - Completed: "completed", - Active: "active", - Pending: "pending", - Removed: "removed", -} as const; -export type ValidationStatusType = ClosedEnum; - -/** @internal */ -export const ValidationStatusType$inboundSchema: z.ZodNativeEnum< - typeof ValidationStatusType -> = z.nativeEnum(ValidationStatusType); - -/** @internal */ -export const ValidationStatusType$outboundSchema: z.ZodNativeEnum< - typeof ValidationStatusType -> = ValidationStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidationStatusType$ { - /** @deprecated use `ValidationStatusType$inboundSchema` instead. */ - export const inboundSchema = ValidationStatusType$inboundSchema; - /** @deprecated use `ValidationStatusType$outboundSchema` instead. */ - export const outboundSchema = ValidationStatusType$outboundSchema; -} diff --git a/data/src/models/components/validatorhealthdetails.ts b/data/src/models/components/validatorhealthdetails.ts deleted file mode 100644 index bd3ae0e7..00000000 --- a/data/src/models/components/validatorhealthdetails.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ValidatorHealthDetails = { - /** - * Percent of requests responded to in last polling. - */ - reachabilityPercent: number; - /** - * Percent of requests benched on the P-Chain in last polling. - */ - benchedPChainRequestsPercent: number; - /** - * Percentage of requests benched on the X-Chain in last polling. - */ - benchedXChainRequestsPercent: number; - /** - * Percentage of requests benched on the C-Chain in last polling. - */ - benchedCChainRequestsPercent: number; -}; - -/** @internal */ -export const ValidatorHealthDetails$inboundSchema: z.ZodType< - ValidatorHealthDetails, - z.ZodTypeDef, - unknown -> = z.object({ - reachabilityPercent: z.number(), - benchedPChainRequestsPercent: z.number(), - benchedXChainRequestsPercent: z.number(), - benchedCChainRequestsPercent: z.number(), -}); - -/** @internal */ -export type ValidatorHealthDetails$Outbound = { - reachabilityPercent: number; - benchedPChainRequestsPercent: number; - benchedXChainRequestsPercent: number; - benchedCChainRequestsPercent: number; -}; - -/** @internal */ -export const ValidatorHealthDetails$outboundSchema: z.ZodType< - ValidatorHealthDetails$Outbound, - z.ZodTypeDef, - ValidatorHealthDetails -> = z.object({ - reachabilityPercent: z.number(), - benchedPChainRequestsPercent: z.number(), - benchedXChainRequestsPercent: z.number(), - benchedCChainRequestsPercent: 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 ValidatorHealthDetails$ { - /** @deprecated use `ValidatorHealthDetails$inboundSchema` instead. */ - export const inboundSchema = ValidatorHealthDetails$inboundSchema; - /** @deprecated use `ValidatorHealthDetails$outboundSchema` instead. */ - export const outboundSchema = ValidatorHealthDetails$outboundSchema; - /** @deprecated use `ValidatorHealthDetails$Outbound` instead. */ - export type Outbound = ValidatorHealthDetails$Outbound; -} - -export function validatorHealthDetailsToJSON( - validatorHealthDetails: ValidatorHealthDetails, -): string { - return JSON.stringify( - ValidatorHealthDetails$outboundSchema.parse(validatorHealthDetails), - ); -} - -export function validatorHealthDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorHealthDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorHealthDetails' from JSON`, - ); -} diff --git a/data/src/models/components/validatorsdetails.ts b/data/src/models/components/validatorsdetails.ts deleted file mode 100644 index d7f5c716..00000000 --- a/data/src/models/components/validatorsdetails.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - StakingDistribution, - StakingDistribution$inboundSchema, - StakingDistribution$Outbound, - StakingDistribution$outboundSchema, -} from "./stakingdistribution.js"; - -export type ValidatorsDetails = { - validatorCount: number; - totalAmountStaked: string; - /** - * Total potential rewards from currently active validations and delegations. - */ - estimatedAnnualStakingReward: string; - stakingDistributionByVersion: Array; - /** - * Ratio of total active stake amount to the current supply. - */ - stakingRatio: string; -}; - -/** @internal */ -export const ValidatorsDetails$inboundSchema: z.ZodType< - ValidatorsDetails, - z.ZodTypeDef, - unknown -> = z.object({ - validatorCount: z.number(), - totalAmountStaked: z.string(), - estimatedAnnualStakingReward: z.string(), - stakingDistributionByVersion: z.array(StakingDistribution$inboundSchema), - stakingRatio: z.string(), -}); - -/** @internal */ -export type ValidatorsDetails$Outbound = { - validatorCount: number; - totalAmountStaked: string; - estimatedAnnualStakingReward: string; - stakingDistributionByVersion: Array; - stakingRatio: string; -}; - -/** @internal */ -export const ValidatorsDetails$outboundSchema: z.ZodType< - ValidatorsDetails$Outbound, - z.ZodTypeDef, - ValidatorsDetails -> = z.object({ - validatorCount: z.number(), - totalAmountStaked: z.string(), - estimatedAnnualStakingReward: z.string(), - stakingDistributionByVersion: z.array(StakingDistribution$outboundSchema), - stakingRatio: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorsDetails$ { - /** @deprecated use `ValidatorsDetails$inboundSchema` instead. */ - export const inboundSchema = ValidatorsDetails$inboundSchema; - /** @deprecated use `ValidatorsDetails$outboundSchema` instead. */ - export const outboundSchema = ValidatorsDetails$outboundSchema; - /** @deprecated use `ValidatorsDetails$Outbound` instead. */ - export type Outbound = ValidatorsDetails$Outbound; -} - -export function validatorsDetailsToJSON( - validatorsDetails: ValidatorsDetails, -): string { - return JSON.stringify( - ValidatorsDetails$outboundSchema.parse(validatorsDetails), - ); -} - -export function validatorsDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorsDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorsDetails' from JSON`, - ); -} diff --git a/data/src/models/components/vmname.ts b/data/src/models/components/vmname.ts deleted file mode 100644 index 0cfce6c9..00000000 --- a/data/src/models/components/vmname.ts +++ /dev/null @@ -1,32 +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 VmName = { - Evm: "EVM", - Bitcoin: "BITCOIN", - Ethereum: "ETHEREUM", -} as const; -export type VmName = ClosedEnum; - -/** @internal */ -export const VmName$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(VmName); - -/** @internal */ -export const VmName$outboundSchema: z.ZodNativeEnum = - VmName$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace VmName$ { - /** @deprecated use `VmName$inboundSchema` instead. */ - export const inboundSchema = VmName$inboundSchema; - /** @deprecated use `VmName$outboundSchema` instead. */ - export const outboundSchema = VmName$outboundSchema; -} diff --git a/data/src/models/components/xchainassetdetails.ts b/data/src/models/components/xchainassetdetails.ts deleted file mode 100644 index 534593cc..00000000 --- a/data/src/models/components/xchainassetdetails.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetCap, - PrimaryNetworkAssetCap$inboundSchema, - PrimaryNetworkAssetCap$outboundSchema, -} from "./primarynetworkassetcap.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type XChainAssetDetails = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Timestamp in seconds this asset was created on. - */ - createdAtTimestamp: number; - /** - * Cap represents if an asset is a variable or fixed cap asset. - */ - cap: PrimaryNetworkAssetCap; -}; - -/** @internal */ -export const XChainAssetDetails$inboundSchema: z.ZodType< - XChainAssetDetails, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - createdAtTimestamp: z.number(), - cap: PrimaryNetworkAssetCap$inboundSchema, -}); - -/** @internal */ -export type XChainAssetDetails$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - createdAtTimestamp: number; - cap: string; -}; - -/** @internal */ -export const XChainAssetDetails$outboundSchema: z.ZodType< - XChainAssetDetails$Outbound, - z.ZodTypeDef, - XChainAssetDetails -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - createdAtTimestamp: z.number(), - cap: PrimaryNetworkAssetCap$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainAssetDetails$ { - /** @deprecated use `XChainAssetDetails$inboundSchema` instead. */ - export const inboundSchema = XChainAssetDetails$inboundSchema; - /** @deprecated use `XChainAssetDetails$outboundSchema` instead. */ - export const outboundSchema = XChainAssetDetails$outboundSchema; - /** @deprecated use `XChainAssetDetails$Outbound` instead. */ - export type Outbound = XChainAssetDetails$Outbound; -} - -export function xChainAssetDetailsToJSON( - xChainAssetDetails: XChainAssetDetails, -): string { - return JSON.stringify( - XChainAssetDetails$outboundSchema.parse(xChainAssetDetails), - ); -} - -export function xChainAssetDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainAssetDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainAssetDetails' from JSON`, - ); -} diff --git a/data/src/models/components/xchainbalances.ts b/data/src/models/components/xchainbalances.ts deleted file mode 100644 index cb575dba..00000000 --- a/data/src/models/components/xchainbalances.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AggregatedAssetAmount, - AggregatedAssetAmount$inboundSchema, - AggregatedAssetAmount$Outbound, - AggregatedAssetAmount$outboundSchema, -} from "./aggregatedassetamount.js"; -import { - XChainSharedAssetBalance, - XChainSharedAssetBalance$inboundSchema, - XChainSharedAssetBalance$Outbound, - XChainSharedAssetBalance$outboundSchema, -} from "./xchainsharedassetbalance.js"; - -export type XChainBalances = { - /** - * A list of objects containing X-chain Asset balance information. - */ - locked: Array; - /** - * A list of objects containing X-chain Asset balance information. - */ - unlocked: Array; - atomicMemoryUnlocked: Array; - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const XChainBalances$inboundSchema: z.ZodType< - XChainBalances, - z.ZodTypeDef, - unknown -> = z.object({ - locked: z.array(AggregatedAssetAmount$inboundSchema), - unlocked: z.array(AggregatedAssetAmount$inboundSchema), - atomicMemoryUnlocked: z.array(XChainSharedAssetBalance$inboundSchema), - atomicMemoryLocked: z.array(XChainSharedAssetBalance$inboundSchema), -}); - -/** @internal */ -export type XChainBalances$Outbound = { - locked: Array; - unlocked: Array; - atomicMemoryUnlocked: Array; - atomicMemoryLocked: Array; -}; - -/** @internal */ -export const XChainBalances$outboundSchema: z.ZodType< - XChainBalances$Outbound, - z.ZodTypeDef, - XChainBalances -> = z.object({ - locked: z.array(AggregatedAssetAmount$outboundSchema), - unlocked: z.array(AggregatedAssetAmount$outboundSchema), - atomicMemoryUnlocked: z.array(XChainSharedAssetBalance$outboundSchema), - atomicMemoryLocked: z.array(XChainSharedAssetBalance$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainBalances$ { - /** @deprecated use `XChainBalances$inboundSchema` instead. */ - export const inboundSchema = XChainBalances$inboundSchema; - /** @deprecated use `XChainBalances$outboundSchema` instead. */ - export const outboundSchema = XChainBalances$outboundSchema; - /** @deprecated use `XChainBalances$Outbound` instead. */ - export type Outbound = XChainBalances$Outbound; -} - -export function xChainBalancesToJSON(xChainBalances: XChainBalances): string { - return JSON.stringify(XChainBalances$outboundSchema.parse(xChainBalances)); -} - -export function xChainBalancesFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainBalances$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainBalances' from JSON`, - ); -} diff --git a/data/src/models/components/xchainid.ts b/data/src/models/components/xchainid.ts deleted file mode 100644 index cd902e0d..00000000 --- a/data/src/models/components/xchainid.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 XChainId = { - TwooYmbnv4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM: - "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", - TwoJVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm: - "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm", - XChain: "x-chain", -} as const; -export type XChainId = ClosedEnum; - -/** @internal */ -export const XChainId$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(XChainId); - -/** @internal */ -export const XChainId$outboundSchema: z.ZodNativeEnum = - XChainId$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainId$ { - /** @deprecated use `XChainId$inboundSchema` instead. */ - export const inboundSchema = XChainId$inboundSchema; - /** @deprecated use `XChainId$outboundSchema` instead. */ - export const outboundSchema = XChainId$outboundSchema; -} diff --git a/data/src/models/components/xchainlineartransaction.ts b/data/src/models/components/xchainlineartransaction.ts deleted file mode 100644 index 3a36d4ac..00000000 --- a/data/src/models/components/xchainlineartransaction.ts +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - Utxo, - Utxo$inboundSchema, - Utxo$Outbound, - Utxo$outboundSchema, -} from "./utxo.js"; -import { - XChainAssetDetails, - XChainAssetDetails$inboundSchema, - XChainAssetDetails$Outbound, - XChainAssetDetails$outboundSchema, -} from "./xchainassetdetails.js"; -import { - XChainTransactionType, - XChainTransactionType$inboundSchema, - XChainTransactionType$outboundSchema, -} from "./xchaintransactiontype.js"; - -/** - * Represents chain format this transaction is included in. - */ -export const XChainLinearTransactionChainFormat = { - NonLinear: "non-linear", - Linear: "linear", -} as const; -/** - * Represents chain format this transaction is included in. - */ -export type XChainLinearTransactionChainFormat = ClosedEnum< - typeof XChainLinearTransactionChainFormat ->; - -export type XChainLinearTransaction = { - /** - * Unique ID for this transaction. - */ - txHash: string; - /** - * Represents chain format this transaction is included in. - */ - chainFormat: XChainLinearTransactionChainFormat; - /** - * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices. - */ - timestamp: number; - /** - * Type of transaction. - */ - txType: XChainTransactionType; - /** - * Hex encoded memo bytes for this transaction. - */ - memo: string; - consumedUtxos: Array; - emittedUtxos: Array; - /** - * Assets unlocked by inputs of this transaction. - */ - amountUnlocked: Array; - /** - * Assets created by outputs of this transaction. - */ - amountCreated: Array; - /** - * Source chain for an atomic transaction. - */ - sourceChain?: string | undefined; - /** - * Destination chain for an atomic transaction. - */ - destinationChain?: string | undefined; - /** - * AssetAmount details of the asset created in CreateAssetTx - */ - assetCreated?: XChainAssetDetails | undefined; - /** - * Height of the block this transaction belongs to. - */ - blockHeight: number; - /** - * Hash of the block this transaction belongs to. - */ - blockHash: string; -}; - -/** @internal */ -export const XChainLinearTransactionChainFormat$inboundSchema: z.ZodNativeEnum< - typeof XChainLinearTransactionChainFormat -> = z.nativeEnum(XChainLinearTransactionChainFormat); - -/** @internal */ -export const XChainLinearTransactionChainFormat$outboundSchema: z.ZodNativeEnum< - typeof XChainLinearTransactionChainFormat -> = XChainLinearTransactionChainFormat$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainLinearTransactionChainFormat$ { - /** @deprecated use `XChainLinearTransactionChainFormat$inboundSchema` instead. */ - export const inboundSchema = XChainLinearTransactionChainFormat$inboundSchema; - /** @deprecated use `XChainLinearTransactionChainFormat$outboundSchema` instead. */ - export const outboundSchema = - XChainLinearTransactionChainFormat$outboundSchema; -} - -/** @internal */ -export const XChainLinearTransaction$inboundSchema: z.ZodType< - XChainLinearTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - chainFormat: XChainLinearTransactionChainFormat$inboundSchema, - timestamp: z.number(), - txType: XChainTransactionType$inboundSchema, - memo: z.string(), - consumedUtxos: z.array(Utxo$inboundSchema), - emittedUtxos: z.array(Utxo$inboundSchema), - amountUnlocked: z.array(AssetAmount$inboundSchema), - amountCreated: z.array(AssetAmount$inboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - assetCreated: XChainAssetDetails$inboundSchema.optional(), - blockHeight: z.number(), - blockHash: z.string(), -}); - -/** @internal */ -export type XChainLinearTransaction$Outbound = { - txHash: string; - chainFormat: string; - timestamp: number; - txType: string; - memo: string; - consumedUtxos: Array; - emittedUtxos: Array; - amountUnlocked: Array; - amountCreated: Array; - sourceChain?: string | undefined; - destinationChain?: string | undefined; - assetCreated?: XChainAssetDetails$Outbound | undefined; - blockHeight: number; - blockHash: string; -}; - -/** @internal */ -export const XChainLinearTransaction$outboundSchema: z.ZodType< - XChainLinearTransaction$Outbound, - z.ZodTypeDef, - XChainLinearTransaction -> = z.object({ - txHash: z.string(), - chainFormat: XChainLinearTransactionChainFormat$outboundSchema, - timestamp: z.number(), - txType: XChainTransactionType$outboundSchema, - memo: z.string(), - consumedUtxos: z.array(Utxo$outboundSchema), - emittedUtxos: z.array(Utxo$outboundSchema), - amountUnlocked: z.array(AssetAmount$outboundSchema), - amountCreated: z.array(AssetAmount$outboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - assetCreated: XChainAssetDetails$outboundSchema.optional(), - blockHeight: z.number(), - blockHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainLinearTransaction$ { - /** @deprecated use `XChainLinearTransaction$inboundSchema` instead. */ - export const inboundSchema = XChainLinearTransaction$inboundSchema; - /** @deprecated use `XChainLinearTransaction$outboundSchema` instead. */ - export const outboundSchema = XChainLinearTransaction$outboundSchema; - /** @deprecated use `XChainLinearTransaction$Outbound` instead. */ - export type Outbound = XChainLinearTransaction$Outbound; -} - -export function xChainLinearTransactionToJSON( - xChainLinearTransaction: XChainLinearTransaction, -): string { - return JSON.stringify( - XChainLinearTransaction$outboundSchema.parse(xChainLinearTransaction), - ); -} - -export function xChainLinearTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainLinearTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainLinearTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/xchainnonlineartransaction.ts b/data/src/models/components/xchainnonlineartransaction.ts deleted file mode 100644 index 30e439f6..00000000 --- a/data/src/models/components/xchainnonlineartransaction.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AssetAmount, - AssetAmount$inboundSchema, - AssetAmount$Outbound, - AssetAmount$outboundSchema, -} from "./assetamount.js"; -import { - TransactionVertexDetail, - TransactionVertexDetail$inboundSchema, - TransactionVertexDetail$Outbound, - TransactionVertexDetail$outboundSchema, -} from "./transactionvertexdetail.js"; -import { - Utxo, - Utxo$inboundSchema, - Utxo$Outbound, - Utxo$outboundSchema, -} from "./utxo.js"; -import { - XChainAssetDetails, - XChainAssetDetails$inboundSchema, - XChainAssetDetails$Outbound, - XChainAssetDetails$outboundSchema, -} from "./xchainassetdetails.js"; -import { - XChainTransactionType, - XChainTransactionType$inboundSchema, - XChainTransactionType$outboundSchema, -} from "./xchaintransactiontype.js"; - -/** - * Represents chain format this transaction is included in. - */ -export const XChainNonLinearTransactionChainFormat = { - NonLinear: "non-linear", - Linear: "linear", -} as const; -/** - * Represents chain format this transaction is included in. - */ -export type XChainNonLinearTransactionChainFormat = ClosedEnum< - typeof XChainNonLinearTransactionChainFormat ->; - -export type XChainNonLinearTransaction = { - /** - * Unique ID for this transaction. - */ - txHash: string; - /** - * Represents chain format this transaction is included in. - */ - chainFormat: XChainNonLinearTransactionChainFormat; - /** - * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices. - */ - timestamp: number; - /** - * Type of transaction. - */ - txType: XChainTransactionType; - /** - * Hex encoded memo bytes for this transaction. - */ - memo: string; - consumedUtxos: Array; - emittedUtxos: Array; - /** - * Assets unlocked by inputs of this transaction. - */ - amountUnlocked: Array; - /** - * Assets created by outputs of this transaction. - */ - amountCreated: Array; - /** - * Source chain for an atomic transaction. - */ - sourceChain?: string | undefined; - /** - * Destination chain for an atomic transaction. - */ - destinationChain?: string | undefined; - /** - * AssetAmount details of the asset created in CreateAssetTx - */ - assetCreated?: XChainAssetDetails | undefined; - /** - * A transaction on X-Chain can be accepted over multiple vertices. - */ - vertices: Array; -}; - -/** @internal */ -export const XChainNonLinearTransactionChainFormat$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - XChainNonLinearTransactionChainFormat, - ); - -/** @internal */ -export const XChainNonLinearTransactionChainFormat$outboundSchema: - z.ZodNativeEnum = - XChainNonLinearTransactionChainFormat$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainNonLinearTransactionChainFormat$ { - /** @deprecated use `XChainNonLinearTransactionChainFormat$inboundSchema` instead. */ - export const inboundSchema = - XChainNonLinearTransactionChainFormat$inboundSchema; - /** @deprecated use `XChainNonLinearTransactionChainFormat$outboundSchema` instead. */ - export const outboundSchema = - XChainNonLinearTransactionChainFormat$outboundSchema; -} - -/** @internal */ -export const XChainNonLinearTransaction$inboundSchema: z.ZodType< - XChainNonLinearTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - txHash: z.string(), - chainFormat: XChainNonLinearTransactionChainFormat$inboundSchema, - timestamp: z.number(), - txType: XChainTransactionType$inboundSchema, - memo: z.string(), - consumedUtxos: z.array(Utxo$inboundSchema), - emittedUtxos: z.array(Utxo$inboundSchema), - amountUnlocked: z.array(AssetAmount$inboundSchema), - amountCreated: z.array(AssetAmount$inboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - assetCreated: XChainAssetDetails$inboundSchema.optional(), - vertices: z.array(TransactionVertexDetail$inboundSchema), -}); - -/** @internal */ -export type XChainNonLinearTransaction$Outbound = { - txHash: string; - chainFormat: string; - timestamp: number; - txType: string; - memo: string; - consumedUtxos: Array; - emittedUtxos: Array; - amountUnlocked: Array; - amountCreated: Array; - sourceChain?: string | undefined; - destinationChain?: string | undefined; - assetCreated?: XChainAssetDetails$Outbound | undefined; - vertices: Array; -}; - -/** @internal */ -export const XChainNonLinearTransaction$outboundSchema: z.ZodType< - XChainNonLinearTransaction$Outbound, - z.ZodTypeDef, - XChainNonLinearTransaction -> = z.object({ - txHash: z.string(), - chainFormat: XChainNonLinearTransactionChainFormat$outboundSchema, - timestamp: z.number(), - txType: XChainTransactionType$outboundSchema, - memo: z.string(), - consumedUtxos: z.array(Utxo$outboundSchema), - emittedUtxos: z.array(Utxo$outboundSchema), - amountUnlocked: z.array(AssetAmount$outboundSchema), - amountCreated: z.array(AssetAmount$outboundSchema), - sourceChain: z.string().optional(), - destinationChain: z.string().optional(), - assetCreated: XChainAssetDetails$outboundSchema.optional(), - vertices: z.array(TransactionVertexDetail$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainNonLinearTransaction$ { - /** @deprecated use `XChainNonLinearTransaction$inboundSchema` instead. */ - export const inboundSchema = XChainNonLinearTransaction$inboundSchema; - /** @deprecated use `XChainNonLinearTransaction$outboundSchema` instead. */ - export const outboundSchema = XChainNonLinearTransaction$outboundSchema; - /** @deprecated use `XChainNonLinearTransaction$Outbound` instead. */ - export type Outbound = XChainNonLinearTransaction$Outbound; -} - -export function xChainNonLinearTransactionToJSON( - xChainNonLinearTransaction: XChainNonLinearTransaction, -): string { - return JSON.stringify( - XChainNonLinearTransaction$outboundSchema.parse(xChainNonLinearTransaction), - ); -} - -export function xChainNonLinearTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainNonLinearTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainNonLinearTransaction' from JSON`, - ); -} diff --git a/data/src/models/components/xchainsharedassetbalance.ts b/data/src/models/components/xchainsharedassetbalance.ts deleted file mode 100644 index 99ec57fe..00000000 --- a/data/src/models/components/xchainsharedassetbalance.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAssetType, - PrimaryNetworkAssetType$inboundSchema, - PrimaryNetworkAssetType$outboundSchema, -} from "./primarynetworkassettype.js"; - -export type XChainSharedAssetBalance = { - /** - * Unique ID for an asset. - */ - assetId: string; - /** - * Name of this asset. - */ - name: string; - /** - * Symbol for this asset (max 4 characters). - */ - symbol: string; - /** - * Denomination of this asset to represent fungibility. - */ - denomination: number; - /** - * Type of asset like SECP256K1 or NFT. - */ - type: PrimaryNetworkAssetType; - /** - * Amount of the asset. - */ - amount: string; - utxoCount: number; - sharedWithChainId: string; -}; - -/** @internal */ -export const XChainSharedAssetBalance$inboundSchema: z.ZodType< - XChainSharedAssetBalance, - z.ZodTypeDef, - unknown -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$inboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), -}); - -/** @internal */ -export type XChainSharedAssetBalance$Outbound = { - assetId: string; - name: string; - symbol: string; - denomination: number; - type: string; - amount: string; - utxoCount: number; - sharedWithChainId: string; -}; - -/** @internal */ -export const XChainSharedAssetBalance$outboundSchema: z.ZodType< - XChainSharedAssetBalance$Outbound, - z.ZodTypeDef, - XChainSharedAssetBalance -> = z.object({ - assetId: z.string(), - name: z.string(), - symbol: z.string(), - denomination: z.number(), - type: PrimaryNetworkAssetType$outboundSchema, - amount: z.string(), - utxoCount: z.number(), - sharedWithChainId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainSharedAssetBalance$ { - /** @deprecated use `XChainSharedAssetBalance$inboundSchema` instead. */ - export const inboundSchema = XChainSharedAssetBalance$inboundSchema; - /** @deprecated use `XChainSharedAssetBalance$outboundSchema` instead. */ - export const outboundSchema = XChainSharedAssetBalance$outboundSchema; - /** @deprecated use `XChainSharedAssetBalance$Outbound` instead. */ - export type Outbound = XChainSharedAssetBalance$Outbound; -} - -export function xChainSharedAssetBalanceToJSON( - xChainSharedAssetBalance: XChainSharedAssetBalance, -): string { - return JSON.stringify( - XChainSharedAssetBalance$outboundSchema.parse(xChainSharedAssetBalance), - ); -} - -export function xChainSharedAssetBalanceFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainSharedAssetBalance$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainSharedAssetBalance' from JSON`, - ); -} diff --git a/data/src/models/components/xchaintransactiontype.ts b/data/src/models/components/xchaintransactiontype.ts deleted file mode 100644 index 0a205f59..00000000 --- a/data/src/models/components/xchaintransactiontype.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Type of transaction. - */ -export const XChainTransactionType = { - BaseTx: "BaseTx", - CreateAssetTx: "CreateAssetTx", - OperationTx: "OperationTx", - ImportTx: "ImportTx", - ExportTx: "ExportTx", - Unknown: "UNKNOWN", -} as const; -/** - * Type of transaction. - */ -export type XChainTransactionType = ClosedEnum; - -/** @internal */ -export const XChainTransactionType$inboundSchema: z.ZodNativeEnum< - typeof XChainTransactionType -> = z.nativeEnum(XChainTransactionType); - -/** @internal */ -export const XChainTransactionType$outboundSchema: z.ZodNativeEnum< - typeof XChainTransactionType -> = XChainTransactionType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace XChainTransactionType$ { - /** @deprecated use `XChainTransactionType$inboundSchema` instead. */ - export const inboundSchema = XChainTransactionType$inboundSchema; - /** @deprecated use `XChainTransactionType$outboundSchema` instead. */ - export const outboundSchema = XChainTransactionType$outboundSchema; -} diff --git a/data/src/models/components/xchainvertex.ts b/data/src/models/components/xchainvertex.ts deleted file mode 100644 index 4a0cd589..00000000 --- a/data/src/models/components/xchainvertex.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type XChainVertex = { - vertexHash: string; - parentHashes: Array; - vertexHeight: number; - vertexIndex: number; - vertexTimestamp: number; - txCount: number; - transactions: Array; - vertexSizeBytes: number; -}; - -/** @internal */ -export const XChainVertex$inboundSchema: z.ZodType< - XChainVertex, - z.ZodTypeDef, - unknown -> = z.object({ - vertexHash: z.string(), - parentHashes: z.array(z.string()), - vertexHeight: z.number(), - vertexIndex: z.number(), - vertexTimestamp: z.number(), - txCount: z.number(), - transactions: z.array(z.string()), - vertexSizeBytes: z.number(), -}); - -/** @internal */ -export type XChainVertex$Outbound = { - vertexHash: string; - parentHashes: Array; - vertexHeight: number; - vertexIndex: number; - vertexTimestamp: number; - txCount: number; - transactions: Array; - vertexSizeBytes: number; -}; - -/** @internal */ -export const XChainVertex$outboundSchema: z.ZodType< - XChainVertex$Outbound, - z.ZodTypeDef, - XChainVertex -> = z.object({ - vertexHash: z.string(), - parentHashes: z.array(z.string()), - vertexHeight: z.number(), - vertexIndex: z.number(), - vertexTimestamp: z.number(), - txCount: z.number(), - transactions: z.array(z.string()), - vertexSizeBytes: 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 XChainVertex$ { - /** @deprecated use `XChainVertex$inboundSchema` instead. */ - export const inboundSchema = XChainVertex$inboundSchema; - /** @deprecated use `XChainVertex$outboundSchema` instead. */ - export const outboundSchema = XChainVertex$outboundSchema; - /** @deprecated use `XChainVertex$Outbound` instead. */ - export type Outbound = XChainVertex$Outbound; -} - -export function xChainVertexToJSON(xChainVertex: XChainVertex): string { - return JSON.stringify(XChainVertex$outboundSchema.parse(xChainVertex)); -} - -export function xChainVertexFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => XChainVertex$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'XChainVertex' from JSON`, - ); -} diff --git a/data/src/models/errors/avalancheapierror.ts b/data/src/models/errors/avalancheapierror.ts deleted file mode 100644 index a744f7e9..00000000 --- a/data/src/models/errors/avalancheapierror.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheError } from "./avalancheerror.js"; - -/** The fallback error class if no more specific error class is matched */ -export class AvalancheAPIError extends AvalancheError { - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - if (message) { - message += `: `; - } - message += `Status ${httpMeta.response.status}`; - const contentType = httpMeta.response.headers.get("content-type") || `""`; - if (contentType !== "application/json") { - message += ` Content-Type ${ - contentType.includes(" ") ? `"${contentType}"` : contentType - }`; - } - const body = httpMeta.body || `""`; - message += body.length > 100 ? "\n" : ". "; - let bodyDisplay = body; - if (body.length > 10000) { - const truncated = body.substring(0, 10000); - const remaining = body.length - 10000; - bodyDisplay = `${truncated}...and ${remaining} more chars`; - } - message += `Body: ${bodyDisplay}`; - message = message.trim(); - super(message, httpMeta); - this.name = "AvalancheAPIError"; - } -} diff --git a/data/src/models/errors/avalancheerror.ts b/data/src/models/errors/avalancheerror.ts deleted file mode 100644 index 4ebd6912..00000000 --- a/data/src/models/errors/avalancheerror.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** The base class for all HTTP error responses */ -export class AvalancheError extends Error { - /** HTTP status code */ - public readonly statusCode: number; - /** HTTP body */ - public readonly body: string; - /** HTTP headers */ - public readonly headers: Headers; - /** HTTP content type */ - public readonly contentType: string; - /** Raw response */ - public readonly rawResponse: Response; - - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - super(message); - this.statusCode = httpMeta.response.status; - this.body = httpMeta.body; - this.headers = httpMeta.response.headers; - this.contentType = httpMeta.response.headers.get("content-type") || ""; - this.rawResponse = httpMeta.response; - - this.name = "AvalancheError"; - } -} diff --git a/data/src/models/errors/badgatewayerror.ts b/data/src/models/errors/badgatewayerror.ts deleted file mode 100644 index 664399c5..00000000 --- a/data/src/models/errors/badgatewayerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadGatewayMessage = string | Array; - -export type BadGatewayErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadGatewayError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadGatewayErrorData; - - constructor( - err: BadGatewayErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadGatewayError"; - } -} - -/** @internal */ -export const BadGatewayMessage$inboundSchema: z.ZodType< - BadGatewayMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadGatewayMessage$Outbound = string | Array; - -/** @internal */ -export const BadGatewayMessage$outboundSchema: z.ZodType< - BadGatewayMessage$Outbound, - z.ZodTypeDef, - BadGatewayMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayMessage$ { - /** @deprecated use `BadGatewayMessage$inboundSchema` instead. */ - export const inboundSchema = BadGatewayMessage$inboundSchema; - /** @deprecated use `BadGatewayMessage$outboundSchema` instead. */ - export const outboundSchema = BadGatewayMessage$outboundSchema; - /** @deprecated use `BadGatewayMessage$Outbound` instead. */ - export type Outbound = BadGatewayMessage$Outbound; -} - -export function badGatewayMessageToJSON( - badGatewayMessage: BadGatewayMessage, -): string { - return JSON.stringify( - BadGatewayMessage$outboundSchema.parse(badGatewayMessage), - ); -} - -export function badGatewayMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadGatewayMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadGatewayMessage' from JSON`, - ); -} - -/** @internal */ -export const BadGatewayError$inboundSchema: z.ZodType< - BadGatewayError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadGatewayError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadGatewayError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadGatewayError$outboundSchema: z.ZodType< - BadGatewayError$Outbound, - z.ZodTypeDef, - BadGatewayError -> = z.instanceof(BadGatewayError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayError$ { - /** @deprecated use `BadGatewayError$inboundSchema` instead. */ - export const inboundSchema = BadGatewayError$inboundSchema; - /** @deprecated use `BadGatewayError$outboundSchema` instead. */ - export const outboundSchema = BadGatewayError$outboundSchema; - /** @deprecated use `BadGatewayError$Outbound` instead. */ - export type Outbound = BadGatewayError$Outbound; -} diff --git a/data/src/models/errors/badrequesterror.ts b/data/src/models/errors/badrequesterror.ts deleted file mode 100644 index 6a622dd8..00000000 --- a/data/src/models/errors/badrequesterror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadRequestMessage = string | Array; - -export type BadRequestErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadRequestError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadRequestErrorData; - - constructor( - err: BadRequestErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadRequestError"; - } -} - -/** @internal */ -export const BadRequestMessage$inboundSchema: z.ZodType< - BadRequestMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadRequestMessage$Outbound = string | Array; - -/** @internal */ -export const BadRequestMessage$outboundSchema: z.ZodType< - BadRequestMessage$Outbound, - z.ZodTypeDef, - BadRequestMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestMessage$ { - /** @deprecated use `BadRequestMessage$inboundSchema` instead. */ - export const inboundSchema = BadRequestMessage$inboundSchema; - /** @deprecated use `BadRequestMessage$outboundSchema` instead. */ - export const outboundSchema = BadRequestMessage$outboundSchema; - /** @deprecated use `BadRequestMessage$Outbound` instead. */ - export type Outbound = BadRequestMessage$Outbound; -} - -export function badRequestMessageToJSON( - badRequestMessage: BadRequestMessage, -): string { - return JSON.stringify( - BadRequestMessage$outboundSchema.parse(badRequestMessage), - ); -} - -export function badRequestMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadRequestMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadRequestMessage' from JSON`, - ); -} - -/** @internal */ -export const BadRequestError$inboundSchema: z.ZodType< - BadRequestError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadRequestError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadRequestError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadRequestError$outboundSchema: z.ZodType< - BadRequestError$Outbound, - z.ZodTypeDef, - BadRequestError -> = z.instanceof(BadRequestError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestError$ { - /** @deprecated use `BadRequestError$inboundSchema` instead. */ - export const inboundSchema = BadRequestError$inboundSchema; - /** @deprecated use `BadRequestError$outboundSchema` instead. */ - export const outboundSchema = BadRequestError$outboundSchema; - /** @deprecated use `BadRequestError$Outbound` instead. */ - export type Outbound = BadRequestError$Outbound; -} diff --git a/data/src/models/errors/forbiddenerror.ts b/data/src/models/errors/forbiddenerror.ts deleted file mode 100644 index c61d94bd..00000000 --- a/data/src/models/errors/forbiddenerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ForbiddenMessage = string | Array; - -export type ForbiddenErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ForbiddenError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ForbiddenErrorData; - - constructor( - err: ForbiddenErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ForbiddenError"; - } -} - -/** @internal */ -export const ForbiddenMessage$inboundSchema: z.ZodType< - ForbiddenMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ForbiddenMessage$Outbound = string | Array; - -/** @internal */ -export const ForbiddenMessage$outboundSchema: z.ZodType< - ForbiddenMessage$Outbound, - z.ZodTypeDef, - ForbiddenMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenMessage$ { - /** @deprecated use `ForbiddenMessage$inboundSchema` instead. */ - export const inboundSchema = ForbiddenMessage$inboundSchema; - /** @deprecated use `ForbiddenMessage$outboundSchema` instead. */ - export const outboundSchema = ForbiddenMessage$outboundSchema; - /** @deprecated use `ForbiddenMessage$Outbound` instead. */ - export type Outbound = ForbiddenMessage$Outbound; -} - -export function forbiddenMessageToJSON( - forbiddenMessage: ForbiddenMessage, -): string { - return JSON.stringify( - ForbiddenMessage$outboundSchema.parse(forbiddenMessage), - ); -} - -export function forbiddenMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ForbiddenMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ForbiddenMessage' from JSON`, - ); -} - -/** @internal */ -export const ForbiddenError$inboundSchema: z.ZodType< - ForbiddenError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ForbiddenError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ForbiddenError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ForbiddenError$outboundSchema: z.ZodType< - ForbiddenError$Outbound, - z.ZodTypeDef, - ForbiddenError -> = z.instanceof(ForbiddenError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenError$ { - /** @deprecated use `ForbiddenError$inboundSchema` instead. */ - export const inboundSchema = ForbiddenError$inboundSchema; - /** @deprecated use `ForbiddenError$outboundSchema` instead. */ - export const outboundSchema = ForbiddenError$outboundSchema; - /** @deprecated use `ForbiddenError$Outbound` instead. */ - export type Outbound = ForbiddenError$Outbound; -} diff --git a/data/src/models/errors/httpclienterrors.ts b/data/src/models/errors/httpclienterrors.ts deleted file mode 100644 index b34f6121..00000000 --- a/data/src/models/errors/httpclienterrors.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Base class for all HTTP errors. - */ -export class HTTPClientError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - override name = "HTTPClientError"; - constructor(message: string, opts?: { cause?: unknown }) { - let msg = message; - if (opts?.cause) { - msg += `: ${opts.cause}`; - } - - super(msg, opts); - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = opts?.cause; - } - } -} - -/** - * An error to capture unrecognised or unexpected errors when making HTTP calls. - */ -export class UnexpectedClientError extends HTTPClientError { - override name = "UnexpectedClientError"; -} - -/** - * An error that is raised when any inputs used to create a request are invalid. - */ -export class InvalidRequestError extends HTTPClientError { - override name = "InvalidRequestError"; -} - -/** - * An error that is raised when a HTTP request was aborted by the client error. - */ -export class RequestAbortedError extends HTTPClientError { - override readonly name = "RequestAbortedError"; -} - -/** - * An error that is raised when a HTTP request timed out due to an AbortSignal - * signal timeout. - */ -export class RequestTimeoutError extends HTTPClientError { - override readonly name = "RequestTimeoutError"; -} - -/** - * An error that is raised when a HTTP client is unable to make a request to - * a server. - */ -export class ConnectionError extends HTTPClientError { - override readonly name = "ConnectionError"; -} diff --git a/data/src/models/errors/index.ts b/data/src/models/errors/index.ts deleted file mode 100644 index a7ea0acc..00000000 --- a/data/src/models/errors/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./avalancheapierror.js"; -export * from "./badgatewayerror.js"; -export * from "./badrequesterror.js"; -export * from "./forbiddenerror.js"; -export * from "./httpclienterrors.js"; -export * from "./internalservererror.js"; -export * from "./notfounderror.js"; -export * from "./responsevalidationerror.js"; -export * from "./sdkvalidationerror.js"; -export * from "./serviceunavailableerror.js"; -export * from "./toomanyrequestserror.js"; -export * from "./unauthorizederror.js"; diff --git a/data/src/models/errors/internalservererror.ts b/data/src/models/errors/internalservererror.ts deleted file mode 100644 index 97fc7853..00000000 --- a/data/src/models/errors/internalservererror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type InternalServerErrorMessage = string | Array; - -export type InternalServerErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class InternalServerError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: InternalServerErrorData; - - constructor( - err: InternalServerErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "InternalServerError"; - } -} - -/** @internal */ -export const InternalServerErrorMessage$inboundSchema: z.ZodType< - InternalServerErrorMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type InternalServerErrorMessage$Outbound = string | Array; - -/** @internal */ -export const InternalServerErrorMessage$outboundSchema: z.ZodType< - InternalServerErrorMessage$Outbound, - z.ZodTypeDef, - InternalServerErrorMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorMessage$ { - /** @deprecated use `InternalServerErrorMessage$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorMessage$inboundSchema; - /** @deprecated use `InternalServerErrorMessage$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorMessage$outboundSchema; - /** @deprecated use `InternalServerErrorMessage$Outbound` instead. */ - export type Outbound = InternalServerErrorMessage$Outbound; -} - -export function internalServerErrorMessageToJSON( - internalServerErrorMessage: InternalServerErrorMessage, -): string { - return JSON.stringify( - InternalServerErrorMessage$outboundSchema.parse(internalServerErrorMessage), - ); -} - -export function internalServerErrorMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InternalServerErrorMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InternalServerErrorMessage' from JSON`, - ); -} - -/** @internal */ -export const InternalServerError$inboundSchema: z.ZodType< - InternalServerError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new InternalServerError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type InternalServerError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const InternalServerError$outboundSchema: z.ZodType< - InternalServerError$Outbound, - z.ZodTypeDef, - InternalServerError -> = z.instanceof(InternalServerError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerError$ { - /** @deprecated use `InternalServerError$inboundSchema` instead. */ - export const inboundSchema = InternalServerError$inboundSchema; - /** @deprecated use `InternalServerError$outboundSchema` instead. */ - export const outboundSchema = InternalServerError$outboundSchema; - /** @deprecated use `InternalServerError$Outbound` instead. */ - export type Outbound = InternalServerError$Outbound; -} diff --git a/data/src/models/errors/notfounderror.ts b/data/src/models/errors/notfounderror.ts deleted file mode 100644 index 52a68f66..00000000 --- a/data/src/models/errors/notfounderror.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type NotFoundMessage = string | Array; - -export type NotFoundErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class NotFoundError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: NotFoundErrorData; - - constructor( - err: NotFoundErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "NotFoundError"; - } -} - -/** @internal */ -export const NotFoundMessage$inboundSchema: z.ZodType< - NotFoundMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type NotFoundMessage$Outbound = string | Array; - -/** @internal */ -export const NotFoundMessage$outboundSchema: z.ZodType< - NotFoundMessage$Outbound, - z.ZodTypeDef, - NotFoundMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundMessage$ { - /** @deprecated use `NotFoundMessage$inboundSchema` instead. */ - export const inboundSchema = NotFoundMessage$inboundSchema; - /** @deprecated use `NotFoundMessage$outboundSchema` instead. */ - export const outboundSchema = NotFoundMessage$outboundSchema; - /** @deprecated use `NotFoundMessage$Outbound` instead. */ - export type Outbound = NotFoundMessage$Outbound; -} - -export function notFoundMessageToJSON( - notFoundMessage: NotFoundMessage, -): string { - return JSON.stringify(NotFoundMessage$outboundSchema.parse(notFoundMessage)); -} - -export function notFoundMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotFoundMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotFoundMessage' from JSON`, - ); -} - -/** @internal */ -export const NotFoundError$inboundSchema: z.ZodType< - NotFoundError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new NotFoundError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type NotFoundError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const NotFoundError$outboundSchema: z.ZodType< - NotFoundError$Outbound, - z.ZodTypeDef, - NotFoundError -> = z.instanceof(NotFoundError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundError$ { - /** @deprecated use `NotFoundError$inboundSchema` instead. */ - export const inboundSchema = NotFoundError$inboundSchema; - /** @deprecated use `NotFoundError$outboundSchema` instead. */ - export const outboundSchema = NotFoundError$outboundSchema; - /** @deprecated use `NotFoundError$Outbound` instead. */ - export type Outbound = NotFoundError$Outbound; -} diff --git a/data/src/models/errors/responsevalidationerror.ts b/data/src/models/errors/responsevalidationerror.ts deleted file mode 100644 index d91ba996..00000000 --- a/data/src/models/errors/responsevalidationerror.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { AvalancheError } from "./avalancheerror.js"; -import { formatZodError } from "./sdkvalidationerror.js"; - -export class ResponseValidationError extends AvalancheError { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - constructor( - message: string, - extra: { - response: Response; - request: Request; - body: string; - cause: unknown; - rawValue: unknown; - rawMessage: unknown; - }, - ) { - super(message, extra); - this.name = "ResponseValidationError"; - this.cause = extra.cause; - this.rawValue = extra.rawValue; - this.rawMessage = extra.rawMessage; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} diff --git a/data/src/models/errors/sdkvalidationerror.ts b/data/src/models/errors/sdkvalidationerror.ts deleted file mode 100644 index 37face8a..00000000 --- a/data/src/models/errors/sdkvalidationerror.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export class SDKValidationError extends Error { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` - static override [Symbol.hasInstance]( - instance: unknown, - ): instance is SDKValidationError { - if (!(instance instanceof Error)) return false; - if (!("rawValue" in instance)) return false; - if (!("rawMessage" in instance)) return false; - if (!("pretty" in instance)) return false; - if (typeof instance.pretty !== "function") return false; - return true; - } - - constructor(message: string, cause: unknown, rawValue: unknown) { - super(`${message}: ${cause}`); - this.name = "SDKValidationError"; - this.cause = cause; - this.rawValue = rawValue; - this.rawMessage = message; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} - -export function formatZodError(err: z.ZodError, level = 0): string { - let pre = " ".repeat(level); - pre = level > 0 ? `│${pre}` : pre; - pre += " ".repeat(level); - - let message = ""; - const append = (str: string) => (message += `\n${pre}${str}`); - - const len = err.issues.length; - const headline = len === 1 ? `${len} issue found` : `${len} issues found`; - - if (len) { - append(`┌ ${headline}:`); - } - - for (const issue of err.issues) { - let path = issue.path.join("."); - path = path ? `.${path}` : ""; - append(`│ • [${path}]: ${issue.message} (${issue.code})`); - switch (issue.code) { - case "invalid_literal": - case "invalid_type": { - append(`│ Want: ${issue.expected}`); - append(`│ Got: ${issue.received}`); - break; - } - case "unrecognized_keys": { - append(`│ Keys: ${issue.keys.join(", ")}`); - break; - } - case "invalid_enum_value": { - append(`│ Allowed: ${issue.options.join(", ")}`); - append(`│ Got: ${issue.received}`); - break; - } - case "invalid_union_discriminator": { - append(`│ Allowed: ${issue.options.join(", ")}`); - break; - } - case "invalid_union": { - const len = issue.unionErrors.length; - append( - `│ ✖︎ Attemped to deserialize into one of ${len} union members:`, - ); - issue.unionErrors.forEach((err, i) => { - append(`│ ✖︎ Member ${i + 1} of ${len}`); - append(`${formatZodError(err, level + 1)}`); - }); - } - } - } - - if (err.issues.length) { - append(`└─*`); - } - - return message.slice(1); -} diff --git a/data/src/models/errors/serviceunavailableerror.ts b/data/src/models/errors/serviceunavailableerror.ts deleted file mode 100644 index 160912cd..00000000 --- a/data/src/models/errors/serviceunavailableerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ServiceUnavailableMessage = string | Array; - -export type ServiceUnavailableErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ServiceUnavailableError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ServiceUnavailableErrorData; - - constructor( - err: ServiceUnavailableErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ServiceUnavailableError"; - } -} - -/** @internal */ -export const ServiceUnavailableMessage$inboundSchema: z.ZodType< - ServiceUnavailableMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ServiceUnavailableMessage$Outbound = string | Array; - -/** @internal */ -export const ServiceUnavailableMessage$outboundSchema: z.ZodType< - ServiceUnavailableMessage$Outbound, - z.ZodTypeDef, - ServiceUnavailableMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableMessage$ { - /** @deprecated use `ServiceUnavailableMessage$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableMessage$inboundSchema; - /** @deprecated use `ServiceUnavailableMessage$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableMessage$outboundSchema; - /** @deprecated use `ServiceUnavailableMessage$Outbound` instead. */ - export type Outbound = ServiceUnavailableMessage$Outbound; -} - -export function serviceUnavailableMessageToJSON( - serviceUnavailableMessage: ServiceUnavailableMessage, -): string { - return JSON.stringify( - ServiceUnavailableMessage$outboundSchema.parse(serviceUnavailableMessage), - ); -} - -export function serviceUnavailableMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServiceUnavailableMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServiceUnavailableMessage' from JSON`, - ); -} - -/** @internal */ -export const ServiceUnavailableError$inboundSchema: z.ZodType< - ServiceUnavailableError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ServiceUnavailableError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ServiceUnavailableError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ServiceUnavailableError$outboundSchema: z.ZodType< - ServiceUnavailableError$Outbound, - z.ZodTypeDef, - ServiceUnavailableError -> = z.instanceof(ServiceUnavailableError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableError$ { - /** @deprecated use `ServiceUnavailableError$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableError$inboundSchema; - /** @deprecated use `ServiceUnavailableError$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableError$outboundSchema; - /** @deprecated use `ServiceUnavailableError$Outbound` instead. */ - export type Outbound = ServiceUnavailableError$Outbound; -} diff --git a/data/src/models/errors/toomanyrequestserror.ts b/data/src/models/errors/toomanyrequestserror.ts deleted file mode 100644 index ed150368..00000000 --- a/data/src/models/errors/toomanyrequestserror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type TooManyRequestsMessage = string | Array; - -export type TooManyRequestsErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class TooManyRequestsError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: TooManyRequestsErrorData; - - constructor( - err: TooManyRequestsErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "TooManyRequestsError"; - } -} - -/** @internal */ -export const TooManyRequestsMessage$inboundSchema: z.ZodType< - TooManyRequestsMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type TooManyRequestsMessage$Outbound = string | Array; - -/** @internal */ -export const TooManyRequestsMessage$outboundSchema: z.ZodType< - TooManyRequestsMessage$Outbound, - z.ZodTypeDef, - TooManyRequestsMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsMessage$ { - /** @deprecated use `TooManyRequestsMessage$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsMessage$inboundSchema; - /** @deprecated use `TooManyRequestsMessage$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsMessage$outboundSchema; - /** @deprecated use `TooManyRequestsMessage$Outbound` instead. */ - export type Outbound = TooManyRequestsMessage$Outbound; -} - -export function tooManyRequestsMessageToJSON( - tooManyRequestsMessage: TooManyRequestsMessage, -): string { - return JSON.stringify( - TooManyRequestsMessage$outboundSchema.parse(tooManyRequestsMessage), - ); -} - -export function tooManyRequestsMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TooManyRequestsMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TooManyRequestsMessage' from JSON`, - ); -} - -/** @internal */ -export const TooManyRequestsError$inboundSchema: z.ZodType< - TooManyRequestsError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new TooManyRequestsError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type TooManyRequestsError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const TooManyRequestsError$outboundSchema: z.ZodType< - TooManyRequestsError$Outbound, - z.ZodTypeDef, - TooManyRequestsError -> = z.instanceof(TooManyRequestsError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsError$ { - /** @deprecated use `TooManyRequestsError$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsError$inboundSchema; - /** @deprecated use `TooManyRequestsError$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsError$outboundSchema; - /** @deprecated use `TooManyRequestsError$Outbound` instead. */ - export type Outbound = TooManyRequestsError$Outbound; -} diff --git a/data/src/models/errors/unauthorizederror.ts b/data/src/models/errors/unauthorizederror.ts deleted file mode 100644 index 7e9e4b65..00000000 --- a/data/src/models/errors/unauthorizederror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type UnauthorizedMessage = string | Array; - -export type UnauthorizedErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class UnauthorizedError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: UnauthorizedErrorData; - - constructor( - err: UnauthorizedErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "UnauthorizedError"; - } -} - -/** @internal */ -export const UnauthorizedMessage$inboundSchema: z.ZodType< - UnauthorizedMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type UnauthorizedMessage$Outbound = string | Array; - -/** @internal */ -export const UnauthorizedMessage$outboundSchema: z.ZodType< - UnauthorizedMessage$Outbound, - z.ZodTypeDef, - UnauthorizedMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedMessage$ { - /** @deprecated use `UnauthorizedMessage$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedMessage$inboundSchema; - /** @deprecated use `UnauthorizedMessage$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedMessage$outboundSchema; - /** @deprecated use `UnauthorizedMessage$Outbound` instead. */ - export type Outbound = UnauthorizedMessage$Outbound; -} - -export function unauthorizedMessageToJSON( - unauthorizedMessage: UnauthorizedMessage, -): string { - return JSON.stringify( - UnauthorizedMessage$outboundSchema.parse(unauthorizedMessage), - ); -} - -export function unauthorizedMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnauthorizedMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnauthorizedMessage' from JSON`, - ); -} - -/** @internal */ -export const UnauthorizedError$inboundSchema: z.ZodType< - UnauthorizedError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new UnauthorizedError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type UnauthorizedError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const UnauthorizedError$outboundSchema: z.ZodType< - UnauthorizedError$Outbound, - z.ZodTypeDef, - UnauthorizedError -> = z.instanceof(UnauthorizedError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedError$ { - /** @deprecated use `UnauthorizedError$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedError$inboundSchema; - /** @deprecated use `UnauthorizedError$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedError$outboundSchema; - /** @deprecated use `UnauthorizedError$Outbound` instead. */ - export type Outbound = UnauthorizedError$Outbound; -} diff --git a/data/src/models/operations/aggregatesignatures.ts b/data/src/models/operations/aggregatesignatures.ts deleted file mode 100644 index c102b9e7..00000000 --- a/data/src/models/operations/aggregatesignatures.ts +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AggregateSignaturesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type AggregateSignaturesRequest = { - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - signatureAggregatorRequest: components.SignatureAggregatorRequest; -}; - -/** @internal */ -export const AggregateSignaturesGlobals$inboundSchema: z.ZodType< - AggregateSignaturesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type AggregateSignaturesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const AggregateSignaturesGlobals$outboundSchema: z.ZodType< - AggregateSignaturesGlobals$Outbound, - z.ZodTypeDef, - AggregateSignaturesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AggregateSignaturesGlobals$ { - /** @deprecated use `AggregateSignaturesGlobals$inboundSchema` instead. */ - export const inboundSchema = AggregateSignaturesGlobals$inboundSchema; - /** @deprecated use `AggregateSignaturesGlobals$outboundSchema` instead. */ - export const outboundSchema = AggregateSignaturesGlobals$outboundSchema; - /** @deprecated use `AggregateSignaturesGlobals$Outbound` instead. */ - export type Outbound = AggregateSignaturesGlobals$Outbound; -} - -export function aggregateSignaturesGlobalsToJSON( - aggregateSignaturesGlobals: AggregateSignaturesGlobals, -): string { - return JSON.stringify( - AggregateSignaturesGlobals$outboundSchema.parse(aggregateSignaturesGlobals), - ); -} - -export function aggregateSignaturesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AggregateSignaturesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AggregateSignaturesGlobals' from JSON`, - ); -} - -/** @internal */ -export const AggregateSignaturesRequest$inboundSchema: z.ZodType< - AggregateSignaturesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - SignatureAggregatorRequest: - components.SignatureAggregatorRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "SignatureAggregatorRequest": "signatureAggregatorRequest", - }); -}); - -/** @internal */ -export type AggregateSignaturesRequest$Outbound = { - network?: string | undefined; - SignatureAggregatorRequest: components.SignatureAggregatorRequest$Outbound; -}; - -/** @internal */ -export const AggregateSignaturesRequest$outboundSchema: z.ZodType< - AggregateSignaturesRequest$Outbound, - z.ZodTypeDef, - AggregateSignaturesRequest -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - signatureAggregatorRequest: - components.SignatureAggregatorRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - signatureAggregatorRequest: "SignatureAggregatorRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AggregateSignaturesRequest$ { - /** @deprecated use `AggregateSignaturesRequest$inboundSchema` instead. */ - export const inboundSchema = AggregateSignaturesRequest$inboundSchema; - /** @deprecated use `AggregateSignaturesRequest$outboundSchema` instead. */ - export const outboundSchema = AggregateSignaturesRequest$outboundSchema; - /** @deprecated use `AggregateSignaturesRequest$Outbound` instead. */ - export type Outbound = AggregateSignaturesRequest$Outbound; -} - -export function aggregateSignaturesRequestToJSON( - aggregateSignaturesRequest: AggregateSignaturesRequest, -): string { - return JSON.stringify( - AggregateSignaturesRequest$outboundSchema.parse(aggregateSignaturesRequest), - ); -} - -export function aggregateSignaturesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AggregateSignaturesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AggregateSignaturesRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getaddresschains.ts b/data/src/models/operations/getaddresschains.ts deleted file mode 100644 index 25be2a1a..00000000 --- a/data/src/models/operations/getaddresschains.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAddressChainsRequest = { - /** - * A wallet address. - */ - address: string; -}; - -/** @internal */ -export const GetAddressChainsRequest$inboundSchema: z.ZodType< - GetAddressChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), -}); - -/** @internal */ -export type GetAddressChainsRequest$Outbound = { - address: string; -}; - -/** @internal */ -export const GetAddressChainsRequest$outboundSchema: z.ZodType< - GetAddressChainsRequest$Outbound, - z.ZodTypeDef, - GetAddressChainsRequest -> = z.object({ - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressChainsRequest$ { - /** @deprecated use `GetAddressChainsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAddressChainsRequest$inboundSchema; - /** @deprecated use `GetAddressChainsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAddressChainsRequest$outboundSchema; - /** @deprecated use `GetAddressChainsRequest$Outbound` instead. */ - export type Outbound = GetAddressChainsRequest$Outbound; -} - -export function getAddressChainsRequestToJSON( - getAddressChainsRequest: GetAddressChainsRequest, -): string { - return JSON.stringify( - GetAddressChainsRequest$outboundSchema.parse(getAddressChainsRequest), - ); -} - -export function getAddressChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAddressChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressChainsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getaggregatedsignatures.ts b/data/src/models/operations/getaggregatedsignatures.ts deleted file mode 100644 index 8ba0bff1..00000000 --- a/data/src/models/operations/getaggregatedsignatures.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAggregatedSignaturesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetAggregatedSignaturesRequest = { - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A primary network (P or X chain) transaction hash. - */ - txHash: string; -}; - -/** @internal */ -export const GetAggregatedSignaturesGlobals$inboundSchema: z.ZodType< - GetAggregatedSignaturesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetAggregatedSignaturesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetAggregatedSignaturesGlobals$outboundSchema: z.ZodType< - GetAggregatedSignaturesGlobals$Outbound, - z.ZodTypeDef, - GetAggregatedSignaturesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAggregatedSignaturesGlobals$ { - /** @deprecated use `GetAggregatedSignaturesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAggregatedSignaturesGlobals$inboundSchema; - /** @deprecated use `GetAggregatedSignaturesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAggregatedSignaturesGlobals$outboundSchema; - /** @deprecated use `GetAggregatedSignaturesGlobals$Outbound` instead. */ - export type Outbound = GetAggregatedSignaturesGlobals$Outbound; -} - -export function getAggregatedSignaturesGlobalsToJSON( - getAggregatedSignaturesGlobals: GetAggregatedSignaturesGlobals, -): string { - return JSON.stringify( - GetAggregatedSignaturesGlobals$outboundSchema.parse( - getAggregatedSignaturesGlobals, - ), - ); -} - -export function getAggregatedSignaturesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAggregatedSignaturesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAggregatedSignaturesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAggregatedSignaturesRequest$inboundSchema: z.ZodType< - GetAggregatedSignaturesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - txHash: z.string(), -}); - -/** @internal */ -export type GetAggregatedSignaturesRequest$Outbound = { - network?: string | undefined; - txHash: string; -}; - -/** @internal */ -export const GetAggregatedSignaturesRequest$outboundSchema: z.ZodType< - GetAggregatedSignaturesRequest$Outbound, - z.ZodTypeDef, - GetAggregatedSignaturesRequest -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - txHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAggregatedSignaturesRequest$ { - /** @deprecated use `GetAggregatedSignaturesRequest$inboundSchema` instead. */ - export const inboundSchema = GetAggregatedSignaturesRequest$inboundSchema; - /** @deprecated use `GetAggregatedSignaturesRequest$outboundSchema` instead. */ - export const outboundSchema = GetAggregatedSignaturesRequest$outboundSchema; - /** @deprecated use `GetAggregatedSignaturesRequest$Outbound` instead. */ - export type Outbound = GetAggregatedSignaturesRequest$Outbound; -} - -export function getAggregatedSignaturesRequestToJSON( - getAggregatedSignaturesRequest: GetAggregatedSignaturesRequest, -): string { - return JSON.stringify( - GetAggregatedSignaturesRequest$outboundSchema.parse( - getAggregatedSignaturesRequest, - ), - ); -} - -export function getAggregatedSignaturesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAggregatedSignaturesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAggregatedSignaturesRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getapilogs.ts b/data/src/models/operations/getapilogs.ts deleted file mode 100644 index 9eacf43f..00000000 --- a/data/src/models/operations/getapilogs.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Filter data by request type. - */ -export const GetApiLogsRequestType = { - Data: "data", - Rpc: "rpc", -} as const; -/** - * Filter data by request type. - */ -export type GetApiLogsRequestType = ClosedEnum; - -export type GetApiLogsRequest = { - /** - * Organization ID to fetch usage metrics for - */ - orgId?: 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?: number | undefined; - /** - * Filter data by chain ID. - */ - chainId?: string | undefined; - /** - * Filter data by response status code. - */ - responseCode?: string | undefined; - /** - * Filter data by request type. - */ - requestType?: GetApiLogsRequestType | undefined; - /** - * Filter data by API key ID. - */ - apiKeyId?: string | undefined; - /** - * Filter data by request path. - */ - requestPath?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. - */ - pageSize?: number | undefined; -}; - -export type GetApiLogsResponse = { - result: components.LogsResponseDTO; -}; - -/** @internal */ -export const GetApiLogsRequestType$inboundSchema: z.ZodNativeEnum< - typeof GetApiLogsRequestType -> = z.nativeEnum(GetApiLogsRequestType); - -/** @internal */ -export const GetApiLogsRequestType$outboundSchema: z.ZodNativeEnum< - typeof GetApiLogsRequestType -> = GetApiLogsRequestType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiLogsRequestType$ { - /** @deprecated use `GetApiLogsRequestType$inboundSchema` instead. */ - export const inboundSchema = GetApiLogsRequestType$inboundSchema; - /** @deprecated use `GetApiLogsRequestType$outboundSchema` instead. */ - export const outboundSchema = GetApiLogsRequestType$outboundSchema; -} - -/** @internal */ -export const GetApiLogsRequest$inboundSchema: z.ZodType< - GetApiLogsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - orgId: z.string().optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - requestType: GetApiLogsRequestType$inboundSchema.optional(), - apiKeyId: z.string().optional(), - requestPath: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), -}); - -/** @internal */ -export type GetApiLogsRequest$Outbound = { - orgId?: string | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - chainId?: string | undefined; - responseCode?: string | undefined; - requestType?: string | undefined; - apiKeyId?: string | undefined; - requestPath?: string | undefined; - pageToken?: string | undefined; - pageSize: number; -}; - -/** @internal */ -export const GetApiLogsRequest$outboundSchema: z.ZodType< - GetApiLogsRequest$Outbound, - z.ZodTypeDef, - GetApiLogsRequest -> = z.object({ - orgId: z.string().optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - requestType: GetApiLogsRequestType$outboundSchema.optional(), - apiKeyId: z.string().optional(), - requestPath: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiLogsRequest$ { - /** @deprecated use `GetApiLogsRequest$inboundSchema` instead. */ - export const inboundSchema = GetApiLogsRequest$inboundSchema; - /** @deprecated use `GetApiLogsRequest$outboundSchema` instead. */ - export const outboundSchema = GetApiLogsRequest$outboundSchema; - /** @deprecated use `GetApiLogsRequest$Outbound` instead. */ - export type Outbound = GetApiLogsRequest$Outbound; -} - -export function getApiLogsRequestToJSON( - getApiLogsRequest: GetApiLogsRequest, -): string { - return JSON.stringify( - GetApiLogsRequest$outboundSchema.parse(getApiLogsRequest), - ); -} - -export function getApiLogsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetApiLogsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetApiLogsRequest' from JSON`, - ); -} - -/** @internal */ -export const GetApiLogsResponse$inboundSchema: z.ZodType< - GetApiLogsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.LogsResponseDTO$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetApiLogsResponse$Outbound = { - Result: components.LogsResponseDTO$Outbound; -}; - -/** @internal */ -export const GetApiLogsResponse$outboundSchema: z.ZodType< - GetApiLogsResponse$Outbound, - z.ZodTypeDef, - GetApiLogsResponse -> = z.object({ - result: components.LogsResponseDTO$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiLogsResponse$ { - /** @deprecated use `GetApiLogsResponse$inboundSchema` instead. */ - export const inboundSchema = GetApiLogsResponse$inboundSchema; - /** @deprecated use `GetApiLogsResponse$outboundSchema` instead. */ - export const outboundSchema = GetApiLogsResponse$outboundSchema; - /** @deprecated use `GetApiLogsResponse$Outbound` instead. */ - export type Outbound = GetApiLogsResponse$Outbound; -} - -export function getApiLogsResponseToJSON( - getApiLogsResponse: GetApiLogsResponse, -): string { - return JSON.stringify( - GetApiLogsResponse$outboundSchema.parse(getApiLogsResponse), - ); -} - -export function getApiLogsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetApiLogsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetApiLogsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getapiusagemetrics.ts b/data/src/models/operations/getapiusagemetrics.ts deleted file mode 100644 index c3f8bd8e..00000000 --- a/data/src/models/operations/getapiusagemetrics.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Filter data by request type. - */ -export const GetApiUsageMetricsRequestType = { - Data: "data", - Rpc: "rpc", -} as const; -/** - * Filter data by request type. - */ -export type GetApiUsageMetricsRequestType = ClosedEnum< - typeof GetApiUsageMetricsRequestType ->; - -export type GetApiUsageMetricsRequest = { - /** - * Organization ID to fetch usage metrics for - */ - orgId?: 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?: number | undefined; - /** - * Time interval granularity for data aggregation - */ - timeInterval?: components.TimeIntervalGranularityExtended | 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 response status code. - */ - responseCode?: string | undefined; - /** - * Filter data by request type. - */ - requestType?: GetApiUsageMetricsRequestType | undefined; - /** - * Filter data by API key ID. - */ - apiKeyId?: string | undefined; - /** - * Filter data by request path. - */ - requestPath?: string | undefined; -}; - -/** @internal */ -export const GetApiUsageMetricsRequestType$inboundSchema: z.ZodNativeEnum< - typeof GetApiUsageMetricsRequestType -> = z.nativeEnum(GetApiUsageMetricsRequestType); - -/** @internal */ -export const GetApiUsageMetricsRequestType$outboundSchema: z.ZodNativeEnum< - typeof GetApiUsageMetricsRequestType -> = GetApiUsageMetricsRequestType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetApiUsageMetricsRequestType$ { - /** @deprecated use `GetApiUsageMetricsRequestType$inboundSchema` instead. */ - export const inboundSchema = GetApiUsageMetricsRequestType$inboundSchema; - /** @deprecated use `GetApiUsageMetricsRequestType$outboundSchema` instead. */ - export const outboundSchema = GetApiUsageMetricsRequestType$outboundSchema; -} - -/** @internal */ -export const GetApiUsageMetricsRequest$inboundSchema: z.ZodType< - GetApiUsageMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - orgId: z.string().optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - timeInterval: components.TimeIntervalGranularityExtended$inboundSchema - .optional(), - groupBy: components.UsageMetricsGroupByEnum$inboundSchema.optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - requestType: GetApiUsageMetricsRequestType$inboundSchema.optional(), - apiKeyId: z.string().optional(), - requestPath: z.string().optional(), -}); - -/** @internal */ -export type GetApiUsageMetricsRequest$Outbound = { - orgId?: string | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - timeInterval?: string | undefined; - groupBy?: string | undefined; - chainId?: string | undefined; - responseCode?: string | undefined; - requestType?: string | undefined; - apiKeyId?: string | undefined; - requestPath?: string | undefined; -}; - -/** @internal */ -export const GetApiUsageMetricsRequest$outboundSchema: z.ZodType< - GetApiUsageMetricsRequest$Outbound, - z.ZodTypeDef, - GetApiUsageMetricsRequest -> = z.object({ - orgId: z.string().optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - timeInterval: components.TimeIntervalGranularityExtended$outboundSchema - .optional(), - groupBy: components.UsageMetricsGroupByEnum$outboundSchema.optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - requestType: GetApiUsageMetricsRequestType$outboundSchema.optional(), - apiKeyId: z.string().optional(), - requestPath: 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 GetApiUsageMetricsRequest$ { - /** @deprecated use `GetApiUsageMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetApiUsageMetricsRequest$inboundSchema; - /** @deprecated use `GetApiUsageMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetApiUsageMetricsRequest$outboundSchema; - /** @deprecated use `GetApiUsageMetricsRequest$Outbound` instead. */ - export type Outbound = GetApiUsageMetricsRequest$Outbound; -} - -export function getApiUsageMetricsRequestToJSON( - getApiUsageMetricsRequest: GetApiUsageMetricsRequest, -): string { - return JSON.stringify( - GetApiUsageMetricsRequest$outboundSchema.parse(getApiUsageMetricsRequest), - ); -} - -export function getApiUsageMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetApiUsageMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetApiUsageMetricsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getassetdetails.ts b/data/src/models/operations/getassetdetails.ts deleted file mode 100644 index 3af324d7..00000000 --- a/data/src/models/operations/getassetdetails.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAssetDetailsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetAssetDetailsRequest = { - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.XChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * Asset ID for any asset on X-Chain - */ - assetId: string; -}; - -/** @internal */ -export const GetAssetDetailsGlobals$inboundSchema: z.ZodType< - GetAssetDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetAssetDetailsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetAssetDetailsGlobals$outboundSchema: z.ZodType< - GetAssetDetailsGlobals$Outbound, - z.ZodTypeDef, - GetAssetDetailsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssetDetailsGlobals$ { - /** @deprecated use `GetAssetDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetAssetDetailsGlobals$inboundSchema; - /** @deprecated use `GetAssetDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetAssetDetailsGlobals$outboundSchema; - /** @deprecated use `GetAssetDetailsGlobals$Outbound` instead. */ - export type Outbound = GetAssetDetailsGlobals$Outbound; -} - -export function getAssetDetailsGlobalsToJSON( - getAssetDetailsGlobals: GetAssetDetailsGlobals, -): string { - return JSON.stringify( - GetAssetDetailsGlobals$outboundSchema.parse(getAssetDetailsGlobals), - ); -} - -export function getAssetDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssetDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssetDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAssetDetailsRequest$inboundSchema: z.ZodType< - GetAssetDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockchainId: components.XChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - assetId: z.string(), -}); - -/** @internal */ -export type GetAssetDetailsRequest$Outbound = { - blockchainId: string; - network?: string | undefined; - assetId: string; -}; - -/** @internal */ -export const GetAssetDetailsRequest$outboundSchema: z.ZodType< - GetAssetDetailsRequest$Outbound, - z.ZodTypeDef, - GetAssetDetailsRequest -> = z.object({ - blockchainId: components.XChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - assetId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAssetDetailsRequest$ { - /** @deprecated use `GetAssetDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetAssetDetailsRequest$inboundSchema; - /** @deprecated use `GetAssetDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetAssetDetailsRequest$outboundSchema; - /** @deprecated use `GetAssetDetailsRequest$Outbound` instead. */ - export type Outbound = GetAssetDetailsRequest$Outbound; -} - -export function getAssetDetailsRequestToJSON( - getAssetDetailsRequest: GetAssetDetailsRequest, -): string { - return JSON.stringify( - GetAssetDetailsRequest$outboundSchema.parse(getAssetDetailsRequest), - ); -} - -export function getAssetDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAssetDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAssetDetailsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getbalancesbyaddresses.ts b/data/src/models/operations/getbalancesbyaddresses.ts deleted file mode 100644 index 2693a876..00000000 --- a/data/src/models/operations/getbalancesbyaddresses.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetBalancesByAddressesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetBalancesByAddressesRequest = { - /** - * An epoch timestamp in seconds. Balance will be calculated at this timestamp. - */ - blockTimestamp?: number | undefined; - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". - */ - addresses?: string | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -/** - * Successful response - */ -export type GetBalancesByAddressesResponse = - | components.ListPChainBalancesResponse - | components.ListXChainBalancesResponse - | components.ListCChainAtomicBalancesResponse; - -/** @internal */ -export const GetBalancesByAddressesGlobals$inboundSchema: z.ZodType< - GetBalancesByAddressesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetBalancesByAddressesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetBalancesByAddressesGlobals$outboundSchema: z.ZodType< - GetBalancesByAddressesGlobals$Outbound, - z.ZodTypeDef, - GetBalancesByAddressesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBalancesByAddressesGlobals$ { - /** @deprecated use `GetBalancesByAddressesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetBalancesByAddressesGlobals$inboundSchema; - /** @deprecated use `GetBalancesByAddressesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetBalancesByAddressesGlobals$outboundSchema; - /** @deprecated use `GetBalancesByAddressesGlobals$Outbound` instead. */ - export type Outbound = GetBalancesByAddressesGlobals$Outbound; -} - -export function getBalancesByAddressesGlobalsToJSON( - getBalancesByAddressesGlobals: GetBalancesByAddressesGlobals, -): string { - return JSON.stringify( - GetBalancesByAddressesGlobals$outboundSchema.parse( - getBalancesByAddressesGlobals, - ), - ); -} - -export function getBalancesByAddressesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBalancesByAddressesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBalancesByAddressesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetBalancesByAddressesRequest$inboundSchema: z.ZodType< - GetBalancesByAddressesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockTimestamp: z.number().int().optional(), - addresses: z.string().optional(), - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetBalancesByAddressesRequest$Outbound = { - blockTimestamp?: number | undefined; - addresses?: string | undefined; - blockchainId: string; - network?: string | undefined; -}; - -/** @internal */ -export const GetBalancesByAddressesRequest$outboundSchema: z.ZodType< - GetBalancesByAddressesRequest$Outbound, - z.ZodTypeDef, - GetBalancesByAddressesRequest -> = z.object({ - blockTimestamp: z.number().int().optional(), - addresses: z.string().optional(), - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBalancesByAddressesRequest$ { - /** @deprecated use `GetBalancesByAddressesRequest$inboundSchema` instead. */ - export const inboundSchema = GetBalancesByAddressesRequest$inboundSchema; - /** @deprecated use `GetBalancesByAddressesRequest$outboundSchema` instead. */ - export const outboundSchema = GetBalancesByAddressesRequest$outboundSchema; - /** @deprecated use `GetBalancesByAddressesRequest$Outbound` instead. */ - export type Outbound = GetBalancesByAddressesRequest$Outbound; -} - -export function getBalancesByAddressesRequestToJSON( - getBalancesByAddressesRequest: GetBalancesByAddressesRequest, -): string { - return JSON.stringify( - GetBalancesByAddressesRequest$outboundSchema.parse( - getBalancesByAddressesRequest, - ), - ); -} - -export function getBalancesByAddressesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBalancesByAddressesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBalancesByAddressesRequest' from JSON`, - ); -} - -/** @internal */ -export const GetBalancesByAddressesResponse$inboundSchema: z.ZodType< - GetBalancesByAddressesResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.ListPChainBalancesResponse$inboundSchema, - components.ListXChainBalancesResponse$inboundSchema, - components.ListCChainAtomicBalancesResponse$inboundSchema, -]); - -/** @internal */ -export type GetBalancesByAddressesResponse$Outbound = - | components.ListPChainBalancesResponse$Outbound - | components.ListXChainBalancesResponse$Outbound - | components.ListCChainAtomicBalancesResponse$Outbound; - -/** @internal */ -export const GetBalancesByAddressesResponse$outboundSchema: z.ZodType< - GetBalancesByAddressesResponse$Outbound, - z.ZodTypeDef, - GetBalancesByAddressesResponse -> = z.union([ - components.ListPChainBalancesResponse$outboundSchema, - components.ListXChainBalancesResponse$outboundSchema, - components.ListCChainAtomicBalancesResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBalancesByAddressesResponse$ { - /** @deprecated use `GetBalancesByAddressesResponse$inboundSchema` instead. */ - export const inboundSchema = GetBalancesByAddressesResponse$inboundSchema; - /** @deprecated use `GetBalancesByAddressesResponse$outboundSchema` instead. */ - export const outboundSchema = GetBalancesByAddressesResponse$outboundSchema; - /** @deprecated use `GetBalancesByAddressesResponse$Outbound` instead. */ - export type Outbound = GetBalancesByAddressesResponse$Outbound; -} - -export function getBalancesByAddressesResponseToJSON( - getBalancesByAddressesResponse: GetBalancesByAddressesResponse, -): string { - return JSON.stringify( - GetBalancesByAddressesResponse$outboundSchema.parse( - getBalancesByAddressesResponse, - ), - ); -} - -export function getBalancesByAddressesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBalancesByAddressesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBalancesByAddressesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getblock.ts b/data/src/models/operations/getblock.ts deleted file mode 100644 index 37d05ab0..00000000 --- a/data/src/models/operations/getblock.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetBlockGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetBlockRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A block identifier which is either a block number or the block hash. - */ - blockId: string; -}; - -/** @internal */ -export const GetBlockGlobals$inboundSchema: z.ZodType< - GetBlockGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetBlockGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetBlockGlobals$outboundSchema: z.ZodType< - GetBlockGlobals$Outbound, - z.ZodTypeDef, - GetBlockGlobals -> = z.object({ - chainId: 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 GetBlockGlobals$ { - /** @deprecated use `GetBlockGlobals$inboundSchema` instead. */ - export const inboundSchema = GetBlockGlobals$inboundSchema; - /** @deprecated use `GetBlockGlobals$outboundSchema` instead. */ - export const outboundSchema = GetBlockGlobals$outboundSchema; - /** @deprecated use `GetBlockGlobals$Outbound` instead. */ - export type Outbound = GetBlockGlobals$Outbound; -} - -export function getBlockGlobalsToJSON( - getBlockGlobals: GetBlockGlobals, -): string { - return JSON.stringify(GetBlockGlobals$outboundSchema.parse(getBlockGlobals)); -} - -export function getBlockGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetBlockRequest$inboundSchema: z.ZodType< - GetBlockRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - blockId: z.string(), -}); - -/** @internal */ -export type GetBlockRequest$Outbound = { - chainId?: string | undefined; - blockId: string; -}; - -/** @internal */ -export const GetBlockRequest$outboundSchema: z.ZodType< - GetBlockRequest$Outbound, - z.ZodTypeDef, - GetBlockRequest -> = z.object({ - chainId: z.string().optional(), - blockId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlockRequest$ { - /** @deprecated use `GetBlockRequest$inboundSchema` instead. */ - export const inboundSchema = GetBlockRequest$inboundSchema; - /** @deprecated use `GetBlockRequest$outboundSchema` instead. */ - export const outboundSchema = GetBlockRequest$outboundSchema; - /** @deprecated use `GetBlockRequest$Outbound` instead. */ - export type Outbound = GetBlockRequest$Outbound; -} - -export function getBlockRequestToJSON( - getBlockRequest: GetBlockRequest, -): string { - return JSON.stringify(GetBlockRequest$outboundSchema.parse(getBlockRequest)); -} - -export function getBlockRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getblockbyid.ts b/data/src/models/operations/getblockbyid.ts deleted file mode 100644 index d709d61e..00000000 --- a/data/src/models/operations/getblockbyid.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetBlockByIdGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetBlockByIdRequest = { - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A block identifier which is either a block number or the block hash. - */ - blockId: string; -}; - -/** @internal */ -export const GetBlockByIdGlobals$inboundSchema: z.ZodType< - GetBlockByIdGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetBlockByIdGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetBlockByIdGlobals$outboundSchema: z.ZodType< - GetBlockByIdGlobals$Outbound, - z.ZodTypeDef, - GetBlockByIdGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlockByIdGlobals$ { - /** @deprecated use `GetBlockByIdGlobals$inboundSchema` instead. */ - export const inboundSchema = GetBlockByIdGlobals$inboundSchema; - /** @deprecated use `GetBlockByIdGlobals$outboundSchema` instead. */ - export const outboundSchema = GetBlockByIdGlobals$outboundSchema; - /** @deprecated use `GetBlockByIdGlobals$Outbound` instead. */ - export type Outbound = GetBlockByIdGlobals$Outbound; -} - -export function getBlockByIdGlobalsToJSON( - getBlockByIdGlobals: GetBlockByIdGlobals, -): string { - return JSON.stringify( - GetBlockByIdGlobals$outboundSchema.parse(getBlockByIdGlobals), - ); -} - -export function getBlockByIdGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockByIdGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockByIdGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetBlockByIdRequest$inboundSchema: z.ZodType< - GetBlockByIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - blockId: z.string(), -}); - -/** @internal */ -export type GetBlockByIdRequest$Outbound = { - blockchainId: string; - network?: string | undefined; - blockId: string; -}; - -/** @internal */ -export const GetBlockByIdRequest$outboundSchema: z.ZodType< - GetBlockByIdRequest$Outbound, - z.ZodTypeDef, - GetBlockByIdRequest -> = z.object({ - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - blockId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlockByIdRequest$ { - /** @deprecated use `GetBlockByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetBlockByIdRequest$inboundSchema; - /** @deprecated use `GetBlockByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetBlockByIdRequest$outboundSchema; - /** @deprecated use `GetBlockByIdRequest$Outbound` instead. */ - export type Outbound = GetBlockByIdRequest$Outbound; -} - -export function getBlockByIdRequestToJSON( - getBlockByIdRequest: GetBlockByIdRequest, -): string { - return JSON.stringify( - GetBlockByIdRequest$outboundSchema.parse(getBlockByIdRequest), - ); -} - -export function getBlockByIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockByIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockByIdRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getblockchainbyid.ts b/data/src/models/operations/getblockchainbyid.ts deleted file mode 100644 index 44e6f0e4..00000000 --- a/data/src/models/operations/getblockchainbyid.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetBlockchainByIdGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetBlockchainByIdRequest = { - /** - * The blockchain ID of the blockchain to retrieve. - */ - blockchainId: string; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -/** @internal */ -export const GetBlockchainByIdGlobals$inboundSchema: z.ZodType< - GetBlockchainByIdGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetBlockchainByIdGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetBlockchainByIdGlobals$outboundSchema: z.ZodType< - GetBlockchainByIdGlobals$Outbound, - z.ZodTypeDef, - GetBlockchainByIdGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlockchainByIdGlobals$ { - /** @deprecated use `GetBlockchainByIdGlobals$inboundSchema` instead. */ - export const inboundSchema = GetBlockchainByIdGlobals$inboundSchema; - /** @deprecated use `GetBlockchainByIdGlobals$outboundSchema` instead. */ - export const outboundSchema = GetBlockchainByIdGlobals$outboundSchema; - /** @deprecated use `GetBlockchainByIdGlobals$Outbound` instead. */ - export type Outbound = GetBlockchainByIdGlobals$Outbound; -} - -export function getBlockchainByIdGlobalsToJSON( - getBlockchainByIdGlobals: GetBlockchainByIdGlobals, -): string { - return JSON.stringify( - GetBlockchainByIdGlobals$outboundSchema.parse(getBlockchainByIdGlobals), - ); -} - -export function getBlockchainByIdGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockchainByIdGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockchainByIdGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetBlockchainByIdRequest$inboundSchema: z.ZodType< - GetBlockchainByIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockchainId: z.string(), - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetBlockchainByIdRequest$Outbound = { - blockchainId: string; - network?: string | undefined; -}; - -/** @internal */ -export const GetBlockchainByIdRequest$outboundSchema: z.ZodType< - GetBlockchainByIdRequest$Outbound, - z.ZodTypeDef, - GetBlockchainByIdRequest -> = z.object({ - blockchainId: z.string(), - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetBlockchainByIdRequest$ { - /** @deprecated use `GetBlockchainByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetBlockchainByIdRequest$inboundSchema; - /** @deprecated use `GetBlockchainByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetBlockchainByIdRequest$outboundSchema; - /** @deprecated use `GetBlockchainByIdRequest$Outbound` instead. */ - export type Outbound = GetBlockchainByIdRequest$Outbound; -} - -export function getBlockchainByIdRequestToJSON( - getBlockchainByIdRequest: GetBlockchainByIdRequest, -): string { - return JSON.stringify( - GetBlockchainByIdRequest$outboundSchema.parse(getBlockchainByIdRequest), - ); -} - -export function getBlockchainByIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetBlockchainByIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetBlockchainByIdRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getchainidsforaddresses.ts b/data/src/models/operations/getchainidsforaddresses.ts deleted file mode 100644 index 7e93def1..00000000 --- a/data/src/models/operations/getchainidsforaddresses.ts +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetChainIdsForAddressesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetChainIdsForAddressesRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". - */ - addresses: string; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -/** @internal */ -export const GetChainIdsForAddressesGlobals$inboundSchema: z.ZodType< - GetChainIdsForAddressesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetChainIdsForAddressesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetChainIdsForAddressesGlobals$outboundSchema: z.ZodType< - GetChainIdsForAddressesGlobals$Outbound, - z.ZodTypeDef, - GetChainIdsForAddressesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChainIdsForAddressesGlobals$ { - /** @deprecated use `GetChainIdsForAddressesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetChainIdsForAddressesGlobals$inboundSchema; - /** @deprecated use `GetChainIdsForAddressesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetChainIdsForAddressesGlobals$outboundSchema; - /** @deprecated use `GetChainIdsForAddressesGlobals$Outbound` instead. */ - export type Outbound = GetChainIdsForAddressesGlobals$Outbound; -} - -export function getChainIdsForAddressesGlobalsToJSON( - getChainIdsForAddressesGlobals: GetChainIdsForAddressesGlobals, -): string { - return JSON.stringify( - GetChainIdsForAddressesGlobals$outboundSchema.parse( - getChainIdsForAddressesGlobals, - ), - ); -} - -export function getChainIdsForAddressesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainIdsForAddressesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainIdsForAddressesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetChainIdsForAddressesRequest$inboundSchema: z.ZodType< - GetChainIdsForAddressesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.string(), - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetChainIdsForAddressesRequest$Outbound = { - addresses: string; - network?: string | undefined; -}; - -/** @internal */ -export const GetChainIdsForAddressesRequest$outboundSchema: z.ZodType< - GetChainIdsForAddressesRequest$Outbound, - z.ZodTypeDef, - GetChainIdsForAddressesRequest -> = z.object({ - addresses: z.string(), - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetChainIdsForAddressesRequest$ { - /** @deprecated use `GetChainIdsForAddressesRequest$inboundSchema` instead. */ - export const inboundSchema = GetChainIdsForAddressesRequest$inboundSchema; - /** @deprecated use `GetChainIdsForAddressesRequest$outboundSchema` instead. */ - export const outboundSchema = GetChainIdsForAddressesRequest$outboundSchema; - /** @deprecated use `GetChainIdsForAddressesRequest$Outbound` instead. */ - export type Outbound = GetChainIdsForAddressesRequest$Outbound; -} - -export function getChainIdsForAddressesRequestToJSON( - getChainIdsForAddressesRequest: GetChainIdsForAddressesRequest, -): string { - return JSON.stringify( - GetChainIdsForAddressesRequest$outboundSchema.parse( - getChainIdsForAddressesRequest, - ), - ); -} - -export function getChainIdsForAddressesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainIdsForAddressesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainIdsForAddressesRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getchaininfo.ts b/data/src/models/operations/getchaininfo.ts deleted file mode 100644 index 442e7417..00000000 --- a/data/src/models/operations/getchaininfo.ts +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetChainInfoGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetChainInfoRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainInfoGlobals$inboundSchema: z.ZodType< - GetChainInfoGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetChainInfoGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainInfoGlobals$outboundSchema: z.ZodType< - GetChainInfoGlobals$Outbound, - z.ZodTypeDef, - GetChainInfoGlobals -> = z.object({ - chainId: 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 GetChainInfoGlobals$ { - /** @deprecated use `GetChainInfoGlobals$inboundSchema` instead. */ - export const inboundSchema = GetChainInfoGlobals$inboundSchema; - /** @deprecated use `GetChainInfoGlobals$outboundSchema` instead. */ - export const outboundSchema = GetChainInfoGlobals$outboundSchema; - /** @deprecated use `GetChainInfoGlobals$Outbound` instead. */ - export type Outbound = GetChainInfoGlobals$Outbound; -} - -export function getChainInfoGlobalsToJSON( - getChainInfoGlobals: GetChainInfoGlobals, -): string { - return JSON.stringify( - GetChainInfoGlobals$outboundSchema.parse(getChainInfoGlobals), - ); -} - -export function getChainInfoGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainInfoGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainInfoGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetChainInfoRequest$inboundSchema: z.ZodType< - GetChainInfoRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetChainInfoRequest$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainInfoRequest$outboundSchema: z.ZodType< - GetChainInfoRequest$Outbound, - z.ZodTypeDef, - GetChainInfoRequest -> = z.object({ - chainId: 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 GetChainInfoRequest$ { - /** @deprecated use `GetChainInfoRequest$inboundSchema` instead. */ - export const inboundSchema = GetChainInfoRequest$inboundSchema; - /** @deprecated use `GetChainInfoRequest$outboundSchema` instead. */ - export const outboundSchema = GetChainInfoRequest$outboundSchema; - /** @deprecated use `GetChainInfoRequest$Outbound` instead. */ - export type Outbound = GetChainInfoRequest$Outbound; -} - -export function getChainInfoRequestToJSON( - getChainInfoRequest: GetChainInfoRequest, -): string { - return JSON.stringify( - GetChainInfoRequest$outboundSchema.parse(getChainInfoRequest), - ); -} - -export function getChainInfoRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainInfoRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainInfoRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getcontractmetadata.ts b/data/src/models/operations/getcontractmetadata.ts deleted file mode 100644 index dbc0c7b2..00000000 --- a/data/src/models/operations/getcontractmetadata.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetContractMetadataGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetContractMetadataRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; -}; - -/** - * Successful response - */ -export type GetContractMetadataResponse = - | (components.Erc20Contract & { ercType: "ERC-20" }) - | (components.Erc721Contract & { ercType: "ERC-721" }) - | (components.Erc1155Contract & { ercType: "ERC-1155" }) - | (components.UnknownContract & { ercType: "UNKNOWN" }); - -/** @internal */ -export const GetContractMetadataGlobals$inboundSchema: z.ZodType< - GetContractMetadataGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetContractMetadataGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetContractMetadataGlobals$outboundSchema: z.ZodType< - GetContractMetadataGlobals$Outbound, - z.ZodTypeDef, - GetContractMetadataGlobals -> = z.object({ - chainId: 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 GetContractMetadataGlobals$ { - /** @deprecated use `GetContractMetadataGlobals$inboundSchema` instead. */ - export const inboundSchema = GetContractMetadataGlobals$inboundSchema; - /** @deprecated use `GetContractMetadataGlobals$outboundSchema` instead. */ - export const outboundSchema = GetContractMetadataGlobals$outboundSchema; - /** @deprecated use `GetContractMetadataGlobals$Outbound` instead. */ - export type Outbound = GetContractMetadataGlobals$Outbound; -} - -export function getContractMetadataGlobalsToJSON( - getContractMetadataGlobals: GetContractMetadataGlobals, -): string { - return JSON.stringify( - GetContractMetadataGlobals$outboundSchema.parse(getContractMetadataGlobals), - ); -} - -export function getContractMetadataGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetContractMetadataGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetContractMetadataGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetContractMetadataRequest$inboundSchema: z.ZodType< - GetContractMetadataRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type GetContractMetadataRequest$Outbound = { - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const GetContractMetadataRequest$outboundSchema: z.ZodType< - GetContractMetadataRequest$Outbound, - z.ZodTypeDef, - GetContractMetadataRequest -> = z.object({ - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContractMetadataRequest$ { - /** @deprecated use `GetContractMetadataRequest$inboundSchema` instead. */ - export const inboundSchema = GetContractMetadataRequest$inboundSchema; - /** @deprecated use `GetContractMetadataRequest$outboundSchema` instead. */ - export const outboundSchema = GetContractMetadataRequest$outboundSchema; - /** @deprecated use `GetContractMetadataRequest$Outbound` instead. */ - export type Outbound = GetContractMetadataRequest$Outbound; -} - -export function getContractMetadataRequestToJSON( - getContractMetadataRequest: GetContractMetadataRequest, -): string { - return JSON.stringify( - GetContractMetadataRequest$outboundSchema.parse(getContractMetadataRequest), - ); -} - -export function getContractMetadataRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetContractMetadataRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetContractMetadataRequest' from JSON`, - ); -} - -/** @internal */ -export const GetContractMetadataResponse$inboundSchema: z.ZodType< - GetContractMetadataResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.Erc20Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc721Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc1155Contract$inboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.UnknownContract$inboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** @internal */ -export type GetContractMetadataResponse$Outbound = - | (components.Erc20Contract$Outbound & { ercType: "ERC-20" }) - | (components.Erc721Contract$Outbound & { ercType: "ERC-721" }) - | (components.Erc1155Contract$Outbound & { ercType: "ERC-1155" }) - | (components.UnknownContract$Outbound & { ercType: "UNKNOWN" }); - -/** @internal */ -export const GetContractMetadataResponse$outboundSchema: z.ZodType< - GetContractMetadataResponse$Outbound, - z.ZodTypeDef, - GetContractMetadataResponse -> = z.union([ - components.Erc20Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-20") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc721Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc1155Contract$outboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.UnknownContract$outboundSchema.and( - z.object({ ercType: z.literal("UNKNOWN") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetContractMetadataResponse$ { - /** @deprecated use `GetContractMetadataResponse$inboundSchema` instead. */ - export const inboundSchema = GetContractMetadataResponse$inboundSchema; - /** @deprecated use `GetContractMetadataResponse$outboundSchema` instead. */ - export const outboundSchema = GetContractMetadataResponse$outboundSchema; - /** @deprecated use `GetContractMetadataResponse$Outbound` instead. */ - export type Outbound = GetContractMetadataResponse$Outbound; -} - -export function getContractMetadataResponseToJSON( - getContractMetadataResponse: GetContractMetadataResponse, -): string { - return JSON.stringify( - GetContractMetadataResponse$outboundSchema.parse( - getContractMetadataResponse, - ), - ); -} - -export function getContractMetadataResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetContractMetadataResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetContractMetadataResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getdeploymenttransaction.ts b/data/src/models/operations/getdeploymenttransaction.ts deleted file mode 100644 index 7f5094a7..00000000 --- a/data/src/models/operations/getdeploymenttransaction.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetDeploymentTransactionGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetDeploymentTransactionRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; - /** - * The currency that return values should use. Defaults to USD. - */ - currency?: components.CurrencyCode | undefined; -}; - -/** @internal */ -export const GetDeploymentTransactionGlobals$inboundSchema: z.ZodType< - GetDeploymentTransactionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetDeploymentTransactionGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetDeploymentTransactionGlobals$outboundSchema: z.ZodType< - GetDeploymentTransactionGlobals$Outbound, - z.ZodTypeDef, - GetDeploymentTransactionGlobals -> = z.object({ - chainId: 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 GetDeploymentTransactionGlobals$ { - /** @deprecated use `GetDeploymentTransactionGlobals$inboundSchema` instead. */ - export const inboundSchema = GetDeploymentTransactionGlobals$inboundSchema; - /** @deprecated use `GetDeploymentTransactionGlobals$outboundSchema` instead. */ - export const outboundSchema = GetDeploymentTransactionGlobals$outboundSchema; - /** @deprecated use `GetDeploymentTransactionGlobals$Outbound` instead. */ - export type Outbound = GetDeploymentTransactionGlobals$Outbound; -} - -export function getDeploymentTransactionGlobalsToJSON( - getDeploymentTransactionGlobals: GetDeploymentTransactionGlobals, -): string { - return JSON.stringify( - GetDeploymentTransactionGlobals$outboundSchema.parse( - getDeploymentTransactionGlobals, - ), - ); -} - -export function getDeploymentTransactionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDeploymentTransactionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDeploymentTransactionGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetDeploymentTransactionRequest$inboundSchema: z.ZodType< - GetDeploymentTransactionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - currency: components.CurrencyCode$inboundSchema.optional(), -}); - -/** @internal */ -export type GetDeploymentTransactionRequest$Outbound = { - chainId?: string | undefined; - address: string; - currency?: string | undefined; -}; - -/** @internal */ -export const GetDeploymentTransactionRequest$outboundSchema: z.ZodType< - GetDeploymentTransactionRequest$Outbound, - z.ZodTypeDef, - GetDeploymentTransactionRequest -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - currency: components.CurrencyCode$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetDeploymentTransactionRequest$ { - /** @deprecated use `GetDeploymentTransactionRequest$inboundSchema` instead. */ - export const inboundSchema = GetDeploymentTransactionRequest$inboundSchema; - /** @deprecated use `GetDeploymentTransactionRequest$outboundSchema` instead. */ - export const outboundSchema = GetDeploymentTransactionRequest$outboundSchema; - /** @deprecated use `GetDeploymentTransactionRequest$Outbound` instead. */ - export type Outbound = GetDeploymentTransactionRequest$Outbound; -} - -export function getDeploymentTransactionRequestToJSON( - getDeploymentTransactionRequest: GetDeploymentTransactionRequest, -): string { - return JSON.stringify( - GetDeploymentTransactionRequest$outboundSchema.parse( - getDeploymentTransactionRequest, - ), - ); -} - -export function getDeploymentTransactionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetDeploymentTransactionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetDeploymentTransactionRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/geticmmessage.ts b/data/src/models/operations/geticmmessage.ts deleted file mode 100644 index 7f88edb5..00000000 --- a/data/src/models/operations/geticmmessage.ts +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetIcmMessageRequest = { - /** - * The teleporter message ID of the ICM message. - */ - messageId: string; -}; - -/** - * Successful response - */ -export type GetIcmMessageResponse = - | (components.DeliveredIcmMessage & { status: "delivered" }) - | (components.PendingIcmMessage & { status: "pending" }) - | (components.DeliveredSourceNotIndexedIcmMessage & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const GetIcmMessageRequest$inboundSchema: z.ZodType< - GetIcmMessageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), -}); - -/** @internal */ -export type GetIcmMessageRequest$Outbound = { - messageId: string; -}; - -/** @internal */ -export const GetIcmMessageRequest$outboundSchema: z.ZodType< - GetIcmMessageRequest$Outbound, - z.ZodTypeDef, - GetIcmMessageRequest -> = z.object({ - messageId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIcmMessageRequest$ { - /** @deprecated use `GetIcmMessageRequest$inboundSchema` instead. */ - export const inboundSchema = GetIcmMessageRequest$inboundSchema; - /** @deprecated use `GetIcmMessageRequest$outboundSchema` instead. */ - export const outboundSchema = GetIcmMessageRequest$outboundSchema; - /** @deprecated use `GetIcmMessageRequest$Outbound` instead. */ - export type Outbound = GetIcmMessageRequest$Outbound; -} - -export function getIcmMessageRequestToJSON( - getIcmMessageRequest: GetIcmMessageRequest, -): string { - return JSON.stringify( - GetIcmMessageRequest$outboundSchema.parse(getIcmMessageRequest), - ); -} - -export function getIcmMessageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetIcmMessageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetIcmMessageRequest' from JSON`, - ); -} - -/** @internal */ -export const GetIcmMessageResponse$inboundSchema: z.ZodType< - GetIcmMessageResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.DeliveredIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - components.PendingIcmMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - components.DeliveredSourceNotIndexedIcmMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** @internal */ -export type GetIcmMessageResponse$Outbound = - | (components.DeliveredIcmMessage$Outbound & { status: "delivered" }) - | (components.PendingIcmMessage$Outbound & { status: "pending" }) - | (components.DeliveredSourceNotIndexedIcmMessage$Outbound & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const GetIcmMessageResponse$outboundSchema: z.ZodType< - GetIcmMessageResponse$Outbound, - z.ZodTypeDef, - GetIcmMessageResponse -> = z.union([ - components.DeliveredIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - components.PendingIcmMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - components.DeliveredSourceNotIndexedIcmMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetIcmMessageResponse$ { - /** @deprecated use `GetIcmMessageResponse$inboundSchema` instead. */ - export const inboundSchema = GetIcmMessageResponse$inboundSchema; - /** @deprecated use `GetIcmMessageResponse$outboundSchema` instead. */ - export const outboundSchema = GetIcmMessageResponse$outboundSchema; - /** @deprecated use `GetIcmMessageResponse$Outbound` instead. */ - export type Outbound = GetIcmMessageResponse$Outbound; -} - -export function getIcmMessageResponseToJSON( - getIcmMessageResponse: GetIcmMessageResponse, -): string { - return JSON.stringify( - GetIcmMessageResponse$outboundSchema.parse(getIcmMessageResponse), - ); -} - -export function getIcmMessageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetIcmMessageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetIcmMessageResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getlatestblocks.ts b/data/src/models/operations/getlatestblocks.ts deleted file mode 100644 index 3405a0d9..00000000 --- a/data/src/models/operations/getlatestblocks.ts +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetLatestBlocksGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetLatestBlocksRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; -}; - -export type GetLatestBlocksResponse = { - result: components.ListEvmBlocksResponse; -}; - -/** @internal */ -export const GetLatestBlocksGlobals$inboundSchema: z.ZodType< - GetLatestBlocksGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetLatestBlocksGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetLatestBlocksGlobals$outboundSchema: z.ZodType< - GetLatestBlocksGlobals$Outbound, - z.ZodTypeDef, - GetLatestBlocksGlobals -> = z.object({ - chainId: 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 GetLatestBlocksGlobals$ { - /** @deprecated use `GetLatestBlocksGlobals$inboundSchema` instead. */ - export const inboundSchema = GetLatestBlocksGlobals$inboundSchema; - /** @deprecated use `GetLatestBlocksGlobals$outboundSchema` instead. */ - export const outboundSchema = GetLatestBlocksGlobals$outboundSchema; - /** @deprecated use `GetLatestBlocksGlobals$Outbound` instead. */ - export type Outbound = GetLatestBlocksGlobals$Outbound; -} - -export function getLatestBlocksGlobalsToJSON( - getLatestBlocksGlobals: GetLatestBlocksGlobals, -): string { - return JSON.stringify( - GetLatestBlocksGlobals$outboundSchema.parse(getLatestBlocksGlobals), - ); -} - -export function getLatestBlocksGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLatestBlocksGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLatestBlocksGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetLatestBlocksRequest$inboundSchema: z.ZodType< - GetLatestBlocksRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetLatestBlocksRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; -}; - -/** @internal */ -export const GetLatestBlocksRequest$outboundSchema: z.ZodType< - GetLatestBlocksRequest$Outbound, - z.ZodTypeDef, - GetLatestBlocksRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: 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 GetLatestBlocksRequest$ { - /** @deprecated use `GetLatestBlocksRequest$inboundSchema` instead. */ - export const inboundSchema = GetLatestBlocksRequest$inboundSchema; - /** @deprecated use `GetLatestBlocksRequest$outboundSchema` instead. */ - export const outboundSchema = GetLatestBlocksRequest$outboundSchema; - /** @deprecated use `GetLatestBlocksRequest$Outbound` instead. */ - export type Outbound = GetLatestBlocksRequest$Outbound; -} - -export function getLatestBlocksRequestToJSON( - getLatestBlocksRequest: GetLatestBlocksRequest, -): string { - return JSON.stringify( - GetLatestBlocksRequest$outboundSchema.parse(getLatestBlocksRequest), - ); -} - -export function getLatestBlocksRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLatestBlocksRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLatestBlocksRequest' from JSON`, - ); -} - -/** @internal */ -export const GetLatestBlocksResponse$inboundSchema: z.ZodType< - GetLatestBlocksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListEvmBlocksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetLatestBlocksResponse$Outbound = { - Result: components.ListEvmBlocksResponse$Outbound; -}; - -/** @internal */ -export const GetLatestBlocksResponse$outboundSchema: z.ZodType< - GetLatestBlocksResponse$Outbound, - z.ZodTypeDef, - GetLatestBlocksResponse -> = z.object({ - result: components.ListEvmBlocksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetLatestBlocksResponse$ { - /** @deprecated use `GetLatestBlocksResponse$inboundSchema` instead. */ - export const inboundSchema = GetLatestBlocksResponse$inboundSchema; - /** @deprecated use `GetLatestBlocksResponse$outboundSchema` instead. */ - export const outboundSchema = GetLatestBlocksResponse$outboundSchema; - /** @deprecated use `GetLatestBlocksResponse$Outbound` instead. */ - export type Outbound = GetLatestBlocksResponse$Outbound; -} - -export function getLatestBlocksResponseToJSON( - getLatestBlocksResponse: GetLatestBlocksResponse, -): string { - return JSON.stringify( - GetLatestBlocksResponse$outboundSchema.parse(getLatestBlocksResponse), - ); -} - -export function getLatestBlocksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetLatestBlocksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetLatestBlocksResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getnativebalance.ts b/data/src/models/operations/getnativebalance.ts deleted file mode 100644 index 6ad6fd39..00000000 --- a/data/src/models/operations/getnativebalance.ts +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetNativeBalanceGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetNativeBalanceRequest = { - /** - * The block number, if not defined the block number will be the latest block. - */ - blockNumber?: string | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * The currency that return values should use. Defaults to USD. - */ - currency?: components.CurrencyCode | undefined; -}; - -/** @internal */ -export const GetNativeBalanceGlobals$inboundSchema: z.ZodType< - GetNativeBalanceGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetNativeBalanceGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetNativeBalanceGlobals$outboundSchema: z.ZodType< - GetNativeBalanceGlobals$Outbound, - z.ZodTypeDef, - GetNativeBalanceGlobals -> = z.object({ - chainId: 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 GetNativeBalanceGlobals$ { - /** @deprecated use `GetNativeBalanceGlobals$inboundSchema` instead. */ - export const inboundSchema = GetNativeBalanceGlobals$inboundSchema; - /** @deprecated use `GetNativeBalanceGlobals$outboundSchema` instead. */ - export const outboundSchema = GetNativeBalanceGlobals$outboundSchema; - /** @deprecated use `GetNativeBalanceGlobals$Outbound` instead. */ - export type Outbound = GetNativeBalanceGlobals$Outbound; -} - -export function getNativeBalanceGlobalsToJSON( - getNativeBalanceGlobals: GetNativeBalanceGlobals, -): string { - return JSON.stringify( - GetNativeBalanceGlobals$outboundSchema.parse(getNativeBalanceGlobals), - ); -} - -export function getNativeBalanceGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNativeBalanceGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNativeBalanceGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetNativeBalanceRequest$inboundSchema: z.ZodType< - GetNativeBalanceRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string().optional(), - chainId: z.string().optional(), - address: z.string(), - currency: components.CurrencyCode$inboundSchema.optional(), -}); - -/** @internal */ -export type GetNativeBalanceRequest$Outbound = { - blockNumber?: string | undefined; - chainId?: string | undefined; - address: string; - currency?: string | undefined; -}; - -/** @internal */ -export const GetNativeBalanceRequest$outboundSchema: z.ZodType< - GetNativeBalanceRequest$Outbound, - z.ZodTypeDef, - GetNativeBalanceRequest -> = z.object({ - blockNumber: z.string().optional(), - chainId: z.string().optional(), - address: z.string(), - currency: components.CurrencyCode$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNativeBalanceRequest$ { - /** @deprecated use `GetNativeBalanceRequest$inboundSchema` instead. */ - export const inboundSchema = GetNativeBalanceRequest$inboundSchema; - /** @deprecated use `GetNativeBalanceRequest$outboundSchema` instead. */ - export const outboundSchema = GetNativeBalanceRequest$outboundSchema; - /** @deprecated use `GetNativeBalanceRequest$Outbound` instead. */ - export type Outbound = GetNativeBalanceRequest$Outbound; -} - -export function getNativeBalanceRequestToJSON( - getNativeBalanceRequest: GetNativeBalanceRequest, -): string { - return JSON.stringify( - GetNativeBalanceRequest$outboundSchema.parse(getNativeBalanceRequest), - ); -} - -export function getNativeBalanceRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNativeBalanceRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNativeBalanceRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getnetworkdetails.ts b/data/src/models/operations/getnetworkdetails.ts deleted file mode 100644 index 88025927..00000000 --- a/data/src/models/operations/getnetworkdetails.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetNetworkDetailsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetNetworkDetailsRequest = { - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -/** @internal */ -export const GetNetworkDetailsGlobals$inboundSchema: z.ZodType< - GetNetworkDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetNetworkDetailsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetNetworkDetailsGlobals$outboundSchema: z.ZodType< - GetNetworkDetailsGlobals$Outbound, - z.ZodTypeDef, - GetNetworkDetailsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNetworkDetailsGlobals$ { - /** @deprecated use `GetNetworkDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetNetworkDetailsGlobals$inboundSchema; - /** @deprecated use `GetNetworkDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetNetworkDetailsGlobals$outboundSchema; - /** @deprecated use `GetNetworkDetailsGlobals$Outbound` instead. */ - export type Outbound = GetNetworkDetailsGlobals$Outbound; -} - -export function getNetworkDetailsGlobalsToJSON( - getNetworkDetailsGlobals: GetNetworkDetailsGlobals, -): string { - return JSON.stringify( - GetNetworkDetailsGlobals$outboundSchema.parse(getNetworkDetailsGlobals), - ); -} - -export function getNetworkDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNetworkDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNetworkDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetNetworkDetailsRequest$inboundSchema: z.ZodType< - GetNetworkDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetNetworkDetailsRequest$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetNetworkDetailsRequest$outboundSchema: z.ZodType< - GetNetworkDetailsRequest$Outbound, - z.ZodTypeDef, - GetNetworkDetailsRequest -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNetworkDetailsRequest$ { - /** @deprecated use `GetNetworkDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetNetworkDetailsRequest$inboundSchema; - /** @deprecated use `GetNetworkDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetNetworkDetailsRequest$outboundSchema; - /** @deprecated use `GetNetworkDetailsRequest$Outbound` instead. */ - export type Outbound = GetNetworkDetailsRequest$Outbound; -} - -export function getNetworkDetailsRequestToJSON( - getNetworkDetailsRequest: GetNetworkDetailsRequest, -): string { - return JSON.stringify( - GetNetworkDetailsRequest$outboundSchema.parse(getNetworkDetailsRequest), - ); -} - -export function getNetworkDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetNetworkDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNetworkDetailsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getoperationresult.ts b/data/src/models/operations/getoperationresult.ts deleted file mode 100644 index 7ae447c8..00000000 --- a/data/src/models/operations/getoperationresult.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetOperationResultRequest = { - /** - * UUID of given operation - */ - operationId: string; -}; - -/** @internal */ -export const GetOperationResultRequest$inboundSchema: z.ZodType< - GetOperationResultRequest, - z.ZodTypeDef, - unknown -> = z.object({ - operationId: z.string(), -}); - -/** @internal */ -export type GetOperationResultRequest$Outbound = { - operationId: string; -}; - -/** @internal */ -export const GetOperationResultRequest$outboundSchema: z.ZodType< - GetOperationResultRequest$Outbound, - z.ZodTypeDef, - GetOperationResultRequest -> = z.object({ - operationId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetOperationResultRequest$ { - /** @deprecated use `GetOperationResultRequest$inboundSchema` instead. */ - export const inboundSchema = GetOperationResultRequest$inboundSchema; - /** @deprecated use `GetOperationResultRequest$outboundSchema` instead. */ - export const outboundSchema = GetOperationResultRequest$outboundSchema; - /** @deprecated use `GetOperationResultRequest$Outbound` instead. */ - export type Outbound = GetOperationResultRequest$Outbound; -} - -export function getOperationResultRequestToJSON( - getOperationResultRequest: GetOperationResultRequest, -): string { - return JSON.stringify( - GetOperationResultRequest$outboundSchema.parse(getOperationResultRequest), - ); -} - -export function getOperationResultRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetOperationResultRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetOperationResultRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getrpcusagemetrics.ts b/data/src/models/operations/getrpcusagemetrics.ts deleted file mode 100644 index 9b7204fc..00000000 --- a/data/src/models/operations/getrpcusagemetrics.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetRpcUsageMetricsRequest = { - /** - * Time interval granularity for data aggregation for subnet - * - * @remarks - * rpc metrics - */ - timeInterval?: components.SubnetRpcTimeIntervalGranularity | 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?: number | undefined; - /** - * Query param for the criterion used for grouping metrics - */ - groupBy?: components.RpcUsageMetricsGroupByEnum | undefined; - /** - * Filter data by chain ID. - */ - chainId?: 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: components.SubnetRpcTimeIntervalGranularity$inboundSchema - .optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - groupBy: components.RpcUsageMetricsGroupByEnum$inboundSchema.optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - rpcMethod: z.string().optional(), - rlBypassApiToken: z.string().optional(), -}); - -/** @internal */ -export type GetRpcUsageMetricsRequest$Outbound = { - timeInterval?: string | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - groupBy?: string | undefined; - chainId?: 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: components.SubnetRpcTimeIntervalGranularity$outboundSchema - .optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - groupBy: components.RpcUsageMetricsGroupByEnum$outboundSchema.optional(), - chainId: 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; -} - -export function getRpcUsageMetricsRequestToJSON( - getRpcUsageMetricsRequest: GetRpcUsageMetricsRequest, -): string { - return JSON.stringify( - GetRpcUsageMetricsRequest$outboundSchema.parse(getRpcUsageMetricsRequest), - ); -} - -export function getRpcUsageMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetRpcUsageMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRpcUsageMetricsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getsinglevalidatordetails.ts b/data/src/models/operations/getsinglevalidatordetails.ts deleted file mode 100644 index b5a68a36..00000000 --- a/data/src/models/operations/getsinglevalidatordetails.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetSingleValidatorDetailsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetSingleValidatorDetailsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A primary network (P or X chain) nodeId. - */ - nodeId: string; - /** - * Validation status of the node. - */ - validationStatus?: components.ValidationStatusType | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type GetSingleValidatorDetailsResponse = { - result: components.ListValidatorDetailsResponse; -}; - -/** @internal */ -export const GetSingleValidatorDetailsGlobals$inboundSchema: z.ZodType< - GetSingleValidatorDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetSingleValidatorDetailsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetSingleValidatorDetailsGlobals$outboundSchema: z.ZodType< - GetSingleValidatorDetailsGlobals$Outbound, - z.ZodTypeDef, - GetSingleValidatorDetailsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSingleValidatorDetailsGlobals$ { - /** @deprecated use `GetSingleValidatorDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSingleValidatorDetailsGlobals$inboundSchema; - /** @deprecated use `GetSingleValidatorDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSingleValidatorDetailsGlobals$outboundSchema; - /** @deprecated use `GetSingleValidatorDetailsGlobals$Outbound` instead. */ - export type Outbound = GetSingleValidatorDetailsGlobals$Outbound; -} - -export function getSingleValidatorDetailsGlobalsToJSON( - getSingleValidatorDetailsGlobals: GetSingleValidatorDetailsGlobals, -): string { - return JSON.stringify( - GetSingleValidatorDetailsGlobals$outboundSchema.parse( - getSingleValidatorDetailsGlobals, - ), - ); -} - -export function getSingleValidatorDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSingleValidatorDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSingleValidatorDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSingleValidatorDetailsRequest$inboundSchema: z.ZodType< - GetSingleValidatorDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeId: z.string(), - validationStatus: components.ValidationStatusType$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type GetSingleValidatorDetailsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - nodeId: string; - validationStatus?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const GetSingleValidatorDetailsRequest$outboundSchema: z.ZodType< - GetSingleValidatorDetailsRequest$Outbound, - z.ZodTypeDef, - GetSingleValidatorDetailsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeId: z.string(), - validationStatus: components.ValidationStatusType$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSingleValidatorDetailsRequest$ { - /** @deprecated use `GetSingleValidatorDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSingleValidatorDetailsRequest$inboundSchema; - /** @deprecated use `GetSingleValidatorDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSingleValidatorDetailsRequest$outboundSchema; - /** @deprecated use `GetSingleValidatorDetailsRequest$Outbound` instead. */ - export type Outbound = GetSingleValidatorDetailsRequest$Outbound; -} - -export function getSingleValidatorDetailsRequestToJSON( - getSingleValidatorDetailsRequest: GetSingleValidatorDetailsRequest, -): string { - return JSON.stringify( - GetSingleValidatorDetailsRequest$outboundSchema.parse( - getSingleValidatorDetailsRequest, - ), - ); -} - -export function getSingleValidatorDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSingleValidatorDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSingleValidatorDetailsRequest' from JSON`, - ); -} - -/** @internal */ -export const GetSingleValidatorDetailsResponse$inboundSchema: z.ZodType< - GetSingleValidatorDetailsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListValidatorDetailsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetSingleValidatorDetailsResponse$Outbound = { - Result: components.ListValidatorDetailsResponse$Outbound; -}; - -/** @internal */ -export const GetSingleValidatorDetailsResponse$outboundSchema: z.ZodType< - GetSingleValidatorDetailsResponse$Outbound, - z.ZodTypeDef, - GetSingleValidatorDetailsResponse -> = z.object({ - result: components.ListValidatorDetailsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSingleValidatorDetailsResponse$ { - /** @deprecated use `GetSingleValidatorDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = GetSingleValidatorDetailsResponse$inboundSchema; - /** @deprecated use `GetSingleValidatorDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = - GetSingleValidatorDetailsResponse$outboundSchema; - /** @deprecated use `GetSingleValidatorDetailsResponse$Outbound` instead. */ - export type Outbound = GetSingleValidatorDetailsResponse$Outbound; -} - -export function getSingleValidatorDetailsResponseToJSON( - getSingleValidatorDetailsResponse: GetSingleValidatorDetailsResponse, -): string { - return JSON.stringify( - GetSingleValidatorDetailsResponse$outboundSchema.parse( - getSingleValidatorDetailsResponse, - ), - ); -} - -export function getSingleValidatorDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSingleValidatorDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSingleValidatorDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getsubnetbyid.ts b/data/src/models/operations/getsubnetbyid.ts deleted file mode 100644 index 19b7bd60..00000000 --- a/data/src/models/operations/getsubnetbyid.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetSubnetByIdGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetSubnetByIdRequest = { - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * Subnet ID to fetch details for - */ - subnetId: string; -}; - -/** @internal */ -export const GetSubnetByIdGlobals$inboundSchema: z.ZodType< - GetSubnetByIdGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetSubnetByIdGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetSubnetByIdGlobals$outboundSchema: z.ZodType< - GetSubnetByIdGlobals$Outbound, - z.ZodTypeDef, - GetSubnetByIdGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubnetByIdGlobals$ { - /** @deprecated use `GetSubnetByIdGlobals$inboundSchema` instead. */ - export const inboundSchema = GetSubnetByIdGlobals$inboundSchema; - /** @deprecated use `GetSubnetByIdGlobals$outboundSchema` instead. */ - export const outboundSchema = GetSubnetByIdGlobals$outboundSchema; - /** @deprecated use `GetSubnetByIdGlobals$Outbound` instead. */ - export type Outbound = GetSubnetByIdGlobals$Outbound; -} - -export function getSubnetByIdGlobalsToJSON( - getSubnetByIdGlobals: GetSubnetByIdGlobals, -): string { - return JSON.stringify( - GetSubnetByIdGlobals$outboundSchema.parse(getSubnetByIdGlobals), - ); -} - -export function getSubnetByIdGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubnetByIdGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubnetByIdGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetSubnetByIdRequest$inboundSchema: z.ZodType< - GetSubnetByIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - subnetId: z.string(), -}); - -/** @internal */ -export type GetSubnetByIdRequest$Outbound = { - network?: string | undefined; - subnetId: string; -}; - -/** @internal */ -export const GetSubnetByIdRequest$outboundSchema: z.ZodType< - GetSubnetByIdRequest$Outbound, - z.ZodTypeDef, - GetSubnetByIdRequest -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - subnetId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetSubnetByIdRequest$ { - /** @deprecated use `GetSubnetByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetSubnetByIdRequest$inboundSchema; - /** @deprecated use `GetSubnetByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetSubnetByIdRequest$outboundSchema; - /** @deprecated use `GetSubnetByIdRequest$Outbound` instead. */ - export type Outbound = GetSubnetByIdRequest$Outbound; -} - -export function getSubnetByIdRequestToJSON( - getSubnetByIdRequest: GetSubnetByIdRequest, -): string { - return JSON.stringify( - GetSubnetByIdRequest$outboundSchema.parse(getSubnetByIdRequest), - ); -} - -export function getSubnetByIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubnetByIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubnetByIdRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getsubnetrpcusagemetrics.ts b/data/src/models/operations/getsubnetrpcusagemetrics.ts deleted file mode 100644 index 2824c4bb..00000000 --- a/data/src/models/operations/getsubnetrpcusagemetrics.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetSubnetRpcUsageMetricsRequest = { - /** - * Time interval granularity for data aggregation for subnet - * - * @remarks - * rpc metrics - */ - timeInterval?: components.SubnetRpcTimeIntervalGranularity | 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?: number | undefined; - /** - * Query param for the criterion used for grouping metrics - */ - groupBy?: components.RpcUsageMetricsGroupByEnum | undefined; - /** - * Filter data by chain ID. - */ - chainId?: 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 GetSubnetRpcUsageMetricsRequest$inboundSchema: z.ZodType< - GetSubnetRpcUsageMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - timeInterval: components.SubnetRpcTimeIntervalGranularity$inboundSchema - .optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - groupBy: components.RpcUsageMetricsGroupByEnum$inboundSchema.optional(), - chainId: z.string().optional(), - responseCode: z.string().optional(), - rpcMethod: z.string().optional(), - rlBypassApiToken: z.string().optional(), -}); - -/** @internal */ -export type GetSubnetRpcUsageMetricsRequest$Outbound = { - timeInterval?: string | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - groupBy?: string | undefined; - chainId?: string | undefined; - responseCode?: string | undefined; - rpcMethod?: string | undefined; - rlBypassApiToken?: string | undefined; -}; - -/** @internal */ -export const GetSubnetRpcUsageMetricsRequest$outboundSchema: z.ZodType< - GetSubnetRpcUsageMetricsRequest$Outbound, - z.ZodTypeDef, - GetSubnetRpcUsageMetricsRequest -> = z.object({ - timeInterval: components.SubnetRpcTimeIntervalGranularity$outboundSchema - .optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - groupBy: components.RpcUsageMetricsGroupByEnum$outboundSchema.optional(), - chainId: 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 GetSubnetRpcUsageMetricsRequest$ { - /** @deprecated use `GetSubnetRpcUsageMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetSubnetRpcUsageMetricsRequest$inboundSchema; - /** @deprecated use `GetSubnetRpcUsageMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetSubnetRpcUsageMetricsRequest$outboundSchema; - /** @deprecated use `GetSubnetRpcUsageMetricsRequest$Outbound` instead. */ - export type Outbound = GetSubnetRpcUsageMetricsRequest$Outbound; -} - -export function getSubnetRpcUsageMetricsRequestToJSON( - getSubnetRpcUsageMetricsRequest: GetSubnetRpcUsageMetricsRequest, -): string { - return JSON.stringify( - GetSubnetRpcUsageMetricsRequest$outboundSchema.parse( - getSubnetRpcUsageMetricsRequest, - ), - ); -} - -export function getSubnetRpcUsageMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetSubnetRpcUsageMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetSubnetRpcUsageMetricsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getteleportermessage.ts b/data/src/models/operations/getteleportermessage.ts deleted file mode 100644 index b8bbf206..00000000 --- a/data/src/models/operations/getteleportermessage.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTeleporterMessageRequest = { - /** - * The message ID of the teleporter message. - */ - messageId: string; -}; - -/** - * Successful response - */ -export type GetTeleporterMessageResponse = - | (components.DeliveredTeleporterMessage & { status: "delivered" }) - | (components.PendingTeleporterMessage & { status: "pending" }) - | (components.DeliveredSourceNotIndexedTeleporterMessage & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const GetTeleporterMessageRequest$inboundSchema: z.ZodType< - GetTeleporterMessageRequest, - z.ZodTypeDef, - unknown -> = z.object({ - messageId: z.string(), -}); - -/** @internal */ -export type GetTeleporterMessageRequest$Outbound = { - messageId: string; -}; - -/** @internal */ -export const GetTeleporterMessageRequest$outboundSchema: z.ZodType< - GetTeleporterMessageRequest$Outbound, - z.ZodTypeDef, - GetTeleporterMessageRequest -> = z.object({ - messageId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTeleporterMessageRequest$ { - /** @deprecated use `GetTeleporterMessageRequest$inboundSchema` instead. */ - export const inboundSchema = GetTeleporterMessageRequest$inboundSchema; - /** @deprecated use `GetTeleporterMessageRequest$outboundSchema` instead. */ - export const outboundSchema = GetTeleporterMessageRequest$outboundSchema; - /** @deprecated use `GetTeleporterMessageRequest$Outbound` instead. */ - export type Outbound = GetTeleporterMessageRequest$Outbound; -} - -export function getTeleporterMessageRequestToJSON( - getTeleporterMessageRequest: GetTeleporterMessageRequest, -): string { - return JSON.stringify( - GetTeleporterMessageRequest$outboundSchema.parse( - getTeleporterMessageRequest, - ), - ); -} - -export function getTeleporterMessageRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTeleporterMessageRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTeleporterMessageRequest' from JSON`, - ); -} - -/** @internal */ -export const GetTeleporterMessageResponse$inboundSchema: z.ZodType< - GetTeleporterMessageResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.DeliveredTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - components.PendingTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - components.DeliveredSourceNotIndexedTeleporterMessage$inboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** @internal */ -export type GetTeleporterMessageResponse$Outbound = - | (components.DeliveredTeleporterMessage$Outbound & { status: "delivered" }) - | (components.PendingTeleporterMessage$Outbound & { status: "pending" }) - | (components.DeliveredSourceNotIndexedTeleporterMessage$Outbound & { - status: "delivered_source_not_indexed"; - }); - -/** @internal */ -export const GetTeleporterMessageResponse$outboundSchema: z.ZodType< - GetTeleporterMessageResponse$Outbound, - z.ZodTypeDef, - GetTeleporterMessageResponse -> = z.union([ - components.DeliveredTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("delivered") }).transform((v) => ({ - status: v.status, - })), - ), - components.PendingTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("pending") }).transform((v) => ({ - status: v.status, - })), - ), - components.DeliveredSourceNotIndexedTeleporterMessage$outboundSchema.and( - z.object({ status: z.literal("delivered_source_not_indexed") }).transform(( - v, - ) => ({ status: v.status })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTeleporterMessageResponse$ { - /** @deprecated use `GetTeleporterMessageResponse$inboundSchema` instead. */ - export const inboundSchema = GetTeleporterMessageResponse$inboundSchema; - /** @deprecated use `GetTeleporterMessageResponse$outboundSchema` instead. */ - export const outboundSchema = GetTeleporterMessageResponse$outboundSchema; - /** @deprecated use `GetTeleporterMessageResponse$Outbound` instead. */ - export type Outbound = GetTeleporterMessageResponse$Outbound; -} - -export function getTeleporterMessageResponseToJSON( - getTeleporterMessageResponse: GetTeleporterMessageResponse, -): string { - return JSON.stringify( - GetTeleporterMessageResponse$outboundSchema.parse( - getTeleporterMessageResponse, - ), - ); -} - -export function getTeleporterMessageResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTeleporterMessageResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTeleporterMessageResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/gettokendetails.ts b/data/src/models/operations/gettokendetails.ts deleted file mode 100644 index 82a030b6..00000000 --- a/data/src/models/operations/gettokendetails.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTokenDetailsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetTokenDetailsRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; - /** - * TokenId on the contract - */ - tokenId: string; -}; - -/** - * Successful response - */ -export type GetTokenDetailsResponse = - | (components.Erc721Token & { ercType: "ERC-721" }) - | (components.Erc1155Token & { ercType: "ERC-1155" }); - -/** @internal */ -export const GetTokenDetailsGlobals$inboundSchema: z.ZodType< - GetTokenDetailsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetTokenDetailsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTokenDetailsGlobals$outboundSchema: z.ZodType< - GetTokenDetailsGlobals$Outbound, - z.ZodTypeDef, - GetTokenDetailsGlobals -> = z.object({ - chainId: 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 GetTokenDetailsGlobals$ { - /** @deprecated use `GetTokenDetailsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTokenDetailsGlobals$inboundSchema; - /** @deprecated use `GetTokenDetailsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTokenDetailsGlobals$outboundSchema; - /** @deprecated use `GetTokenDetailsGlobals$Outbound` instead. */ - export type Outbound = GetTokenDetailsGlobals$Outbound; -} - -export function getTokenDetailsGlobalsToJSON( - getTokenDetailsGlobals: GetTokenDetailsGlobals, -): string { - return JSON.stringify( - GetTokenDetailsGlobals$outboundSchema.parse(getTokenDetailsGlobals), - ); -} - -export function getTokenDetailsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTokenDetailsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTokenDetailsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTokenDetailsRequest$inboundSchema: z.ZodType< - GetTokenDetailsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - tokenId: z.string(), -}); - -/** @internal */ -export type GetTokenDetailsRequest$Outbound = { - chainId?: string | undefined; - address: string; - tokenId: string; -}; - -/** @internal */ -export const GetTokenDetailsRequest$outboundSchema: z.ZodType< - GetTokenDetailsRequest$Outbound, - z.ZodTypeDef, - GetTokenDetailsRequest -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - tokenId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTokenDetailsRequest$ { - /** @deprecated use `GetTokenDetailsRequest$inboundSchema` instead. */ - export const inboundSchema = GetTokenDetailsRequest$inboundSchema; - /** @deprecated use `GetTokenDetailsRequest$outboundSchema` instead. */ - export const outboundSchema = GetTokenDetailsRequest$outboundSchema; - /** @deprecated use `GetTokenDetailsRequest$Outbound` instead. */ - export type Outbound = GetTokenDetailsRequest$Outbound; -} - -export function getTokenDetailsRequestToJSON( - getTokenDetailsRequest: GetTokenDetailsRequest, -): string { - return JSON.stringify( - GetTokenDetailsRequest$outboundSchema.parse(getTokenDetailsRequest), - ); -} - -export function getTokenDetailsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTokenDetailsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTokenDetailsRequest' from JSON`, - ); -} - -/** @internal */ -export const GetTokenDetailsResponse$inboundSchema: z.ZodType< - GetTokenDetailsResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.Erc721Token$inboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc1155Token$inboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** @internal */ -export type GetTokenDetailsResponse$Outbound = - | (components.Erc721Token$Outbound & { ercType: "ERC-721" }) - | (components.Erc1155Token$Outbound & { ercType: "ERC-1155" }); - -/** @internal */ -export const GetTokenDetailsResponse$outboundSchema: z.ZodType< - GetTokenDetailsResponse$Outbound, - z.ZodTypeDef, - GetTokenDetailsResponse -> = z.union([ - components.Erc721Token$outboundSchema.and( - z.object({ ercType: z.literal("ERC-721") }).transform((v) => ({ - ercType: v.ercType, - })), - ), - components.Erc1155Token$outboundSchema.and( - z.object({ ercType: z.literal("ERC-1155") }).transform((v) => ({ - ercType: v.ercType, - })), - ), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTokenDetailsResponse$ { - /** @deprecated use `GetTokenDetailsResponse$inboundSchema` instead. */ - export const inboundSchema = GetTokenDetailsResponse$inboundSchema; - /** @deprecated use `GetTokenDetailsResponse$outboundSchema` instead. */ - export const outboundSchema = GetTokenDetailsResponse$outboundSchema; - /** @deprecated use `GetTokenDetailsResponse$Outbound` instead. */ - export type Outbound = GetTokenDetailsResponse$Outbound; -} - -export function getTokenDetailsResponseToJSON( - getTokenDetailsResponse: GetTokenDetailsResponse, -): string { - return JSON.stringify( - GetTokenDetailsResponse$outboundSchema.parse(getTokenDetailsResponse), - ); -} - -export function getTokenDetailsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTokenDetailsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTokenDetailsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/gettransaction.ts b/data/src/models/operations/gettransaction.ts deleted file mode 100644 index 60a08b69..00000000 --- a/data/src/models/operations/gettransaction.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTransactionGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetTransactionRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A transaction hash. - */ - txHash: string; -}; - -/** @internal */ -export const GetTransactionGlobals$inboundSchema: z.ZodType< - GetTransactionGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetTransactionGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTransactionGlobals$outboundSchema: z.ZodType< - GetTransactionGlobals$Outbound, - z.ZodTypeDef, - GetTransactionGlobals -> = z.object({ - chainId: 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 GetTransactionGlobals$ { - /** @deprecated use `GetTransactionGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTransactionGlobals$inboundSchema; - /** @deprecated use `GetTransactionGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTransactionGlobals$outboundSchema; - /** @deprecated use `GetTransactionGlobals$Outbound` instead. */ - export type Outbound = GetTransactionGlobals$Outbound; -} - -export function getTransactionGlobalsToJSON( - getTransactionGlobals: GetTransactionGlobals, -): string { - return JSON.stringify( - GetTransactionGlobals$outboundSchema.parse(getTransactionGlobals), - ); -} - -export function getTransactionGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransactionGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransactionGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTransactionRequest$inboundSchema: z.ZodType< - GetTransactionRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - txHash: z.string(), -}); - -/** @internal */ -export type GetTransactionRequest$Outbound = { - chainId?: string | undefined; - txHash: string; -}; - -/** @internal */ -export const GetTransactionRequest$outboundSchema: z.ZodType< - GetTransactionRequest$Outbound, - z.ZodTypeDef, - GetTransactionRequest -> = z.object({ - chainId: z.string().optional(), - txHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionRequest$ { - /** @deprecated use `GetTransactionRequest$inboundSchema` instead. */ - export const inboundSchema = GetTransactionRequest$inboundSchema; - /** @deprecated use `GetTransactionRequest$outboundSchema` instead. */ - export const outboundSchema = GetTransactionRequest$outboundSchema; - /** @deprecated use `GetTransactionRequest$Outbound` instead. */ - export type Outbound = GetTransactionRequest$Outbound; -} - -export function getTransactionRequestToJSON( - getTransactionRequest: GetTransactionRequest, -): string { - return JSON.stringify( - GetTransactionRequest$outboundSchema.parse(getTransactionRequest), - ); -} - -export function getTransactionRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransactionRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransactionRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/gettransactionsforblock.ts b/data/src/models/operations/gettransactionsforblock.ts deleted file mode 100644 index b45e62ec..00000000 --- a/data/src/models/operations/gettransactionsforblock.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTransactionsForBlockGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetTransactionsForBlockRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A block identifier which is either a block number or the block hash. - */ - blockId: string; -}; - -/** @internal */ -export const GetTransactionsForBlockGlobals$inboundSchema: z.ZodType< - GetTransactionsForBlockGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetTransactionsForBlockGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTransactionsForBlockGlobals$outboundSchema: z.ZodType< - GetTransactionsForBlockGlobals$Outbound, - z.ZodTypeDef, - GetTransactionsForBlockGlobals -> = z.object({ - chainId: 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 GetTransactionsForBlockGlobals$ { - /** @deprecated use `GetTransactionsForBlockGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTransactionsForBlockGlobals$inboundSchema; - /** @deprecated use `GetTransactionsForBlockGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTransactionsForBlockGlobals$outboundSchema; - /** @deprecated use `GetTransactionsForBlockGlobals$Outbound` instead. */ - export type Outbound = GetTransactionsForBlockGlobals$Outbound; -} - -export function getTransactionsForBlockGlobalsToJSON( - getTransactionsForBlockGlobals: GetTransactionsForBlockGlobals, -): string { - return JSON.stringify( - GetTransactionsForBlockGlobals$outboundSchema.parse( - getTransactionsForBlockGlobals, - ), - ); -} - -export function getTransactionsForBlockGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransactionsForBlockGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransactionsForBlockGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTransactionsForBlockRequest$inboundSchema: z.ZodType< - GetTransactionsForBlockRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(0), - chainId: z.string().optional(), - blockId: z.string(), -}); - -/** @internal */ -export type GetTransactionsForBlockRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - blockId: string; -}; - -/** @internal */ -export const GetTransactionsForBlockRequest$outboundSchema: z.ZodType< - GetTransactionsForBlockRequest$Outbound, - z.ZodTypeDef, - GetTransactionsForBlockRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(0), - chainId: z.string().optional(), - blockId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTransactionsForBlockRequest$ { - /** @deprecated use `GetTransactionsForBlockRequest$inboundSchema` instead. */ - export const inboundSchema = GetTransactionsForBlockRequest$inboundSchema; - /** @deprecated use `GetTransactionsForBlockRequest$outboundSchema` instead. */ - export const outboundSchema = GetTransactionsForBlockRequest$outboundSchema; - /** @deprecated use `GetTransactionsForBlockRequest$Outbound` instead. */ - export type Outbound = GetTransactionsForBlockRequest$Outbound; -} - -export function getTransactionsForBlockRequestToJSON( - getTransactionsForBlockRequest: GetTransactionsForBlockRequest, -): string { - return JSON.stringify( - GetTransactionsForBlockRequest$outboundSchema.parse( - getTransactionsForBlockRequest, - ), - ); -} - -export function getTransactionsForBlockRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTransactionsForBlockRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTransactionsForBlockRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/gettxbyhash.ts b/data/src/models/operations/gettxbyhash.ts deleted file mode 100644 index 43790996..00000000 --- a/data/src/models/operations/gettxbyhash.ts +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTxByHashGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetTxByHashRequest = { - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A primary network (P or X chain) transaction hash. - */ - txHash: string; -}; - -/** - * Successful response - */ -export type GetTxByHashResponse = - | components.CChainExportTransaction - | components.CChainImportTransaction - | components.PChainTransaction - | components.XChainLinearTransaction - | components.XChainNonLinearTransaction; - -/** @internal */ -export const GetTxByHashGlobals$inboundSchema: z.ZodType< - GetTxByHashGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetTxByHashGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetTxByHashGlobals$outboundSchema: z.ZodType< - GetTxByHashGlobals$Outbound, - z.ZodTypeDef, - GetTxByHashGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTxByHashGlobals$ { - /** @deprecated use `GetTxByHashGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTxByHashGlobals$inboundSchema; - /** @deprecated use `GetTxByHashGlobals$outboundSchema` instead. */ - export const outboundSchema = GetTxByHashGlobals$outboundSchema; - /** @deprecated use `GetTxByHashGlobals$Outbound` instead. */ - export type Outbound = GetTxByHashGlobals$Outbound; -} - -export function getTxByHashGlobalsToJSON( - getTxByHashGlobals: GetTxByHashGlobals, -): string { - return JSON.stringify( - GetTxByHashGlobals$outboundSchema.parse(getTxByHashGlobals), - ); -} - -export function getTxByHashGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTxByHashGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTxByHashGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTxByHashRequest$inboundSchema: z.ZodType< - GetTxByHashRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - txHash: z.string(), -}); - -/** @internal */ -export type GetTxByHashRequest$Outbound = { - blockchainId: string; - network?: string | undefined; - txHash: string; -}; - -/** @internal */ -export const GetTxByHashRequest$outboundSchema: z.ZodType< - GetTxByHashRequest$Outbound, - z.ZodTypeDef, - GetTxByHashRequest -> = z.object({ - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - txHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTxByHashRequest$ { - /** @deprecated use `GetTxByHashRequest$inboundSchema` instead. */ - export const inboundSchema = GetTxByHashRequest$inboundSchema; - /** @deprecated use `GetTxByHashRequest$outboundSchema` instead. */ - export const outboundSchema = GetTxByHashRequest$outboundSchema; - /** @deprecated use `GetTxByHashRequest$Outbound` instead. */ - export type Outbound = GetTxByHashRequest$Outbound; -} - -export function getTxByHashRequestToJSON( - getTxByHashRequest: GetTxByHashRequest, -): string { - return JSON.stringify( - GetTxByHashRequest$outboundSchema.parse(getTxByHashRequest), - ); -} - -export function getTxByHashRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTxByHashRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTxByHashRequest' from JSON`, - ); -} - -/** @internal */ -export const GetTxByHashResponse$inboundSchema: z.ZodType< - GetTxByHashResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.CChainExportTransaction$inboundSchema, - components.CChainImportTransaction$inboundSchema, - components.PChainTransaction$inboundSchema, - components.XChainLinearTransaction$inboundSchema, - components.XChainNonLinearTransaction$inboundSchema, -]); - -/** @internal */ -export type GetTxByHashResponse$Outbound = - | components.CChainExportTransaction$Outbound - | components.CChainImportTransaction$Outbound - | components.PChainTransaction$Outbound - | components.XChainLinearTransaction$Outbound - | components.XChainNonLinearTransaction$Outbound; - -/** @internal */ -export const GetTxByHashResponse$outboundSchema: z.ZodType< - GetTxByHashResponse$Outbound, - z.ZodTypeDef, - GetTxByHashResponse -> = z.union([ - components.CChainExportTransaction$outboundSchema, - components.CChainImportTransaction$outboundSchema, - components.PChainTransaction$outboundSchema, - components.XChainLinearTransaction$outboundSchema, - components.XChainNonLinearTransaction$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTxByHashResponse$ { - /** @deprecated use `GetTxByHashResponse$inboundSchema` instead. */ - export const inboundSchema = GetTxByHashResponse$inboundSchema; - /** @deprecated use `GetTxByHashResponse$outboundSchema` instead. */ - export const outboundSchema = GetTxByHashResponse$outboundSchema; - /** @deprecated use `GetTxByHashResponse$Outbound` instead. */ - export type Outbound = GetTxByHashResponse$Outbound; -} - -export function getTxByHashResponseToJSON( - getTxByHashResponse: GetTxByHashResponse, -): string { - return JSON.stringify( - GetTxByHashResponse$outboundSchema.parse(getTxByHashResponse), - ); -} - -export function getTxByHashResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTxByHashResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTxByHashResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getutxosbyaddresses.ts b/data/src/models/operations/getutxosbyaddresses.ts deleted file mode 100644 index f4c32420..00000000 --- a/data/src/models/operations/getutxosbyaddresses.ts +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetUtxosByAddressesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetUtxosByAddressesRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". - */ - addresses?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * Asset ID for any asset (only applicable X-Chain) - */ - assetId?: string | undefined; - /** - * Boolean filter to include spent UTXOs. - */ - includeSpent?: boolean | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -/** - * Successful response - */ -export type GetUtxosByAddressesResponseBody = - | components.ListPChainUtxosResponse - | components.ListUtxosResponse; - -export type GetUtxosByAddressesResponse = { - result: components.ListPChainUtxosResponse | components.ListUtxosResponse; -}; - -/** @internal */ -export const GetUtxosByAddressesGlobals$inboundSchema: z.ZodType< - GetUtxosByAddressesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetUtxosByAddressesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetUtxosByAddressesGlobals$outboundSchema: z.ZodType< - GetUtxosByAddressesGlobals$Outbound, - z.ZodTypeDef, - GetUtxosByAddressesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesGlobals$ { - /** @deprecated use `GetUtxosByAddressesGlobals$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesGlobals$inboundSchema; - /** @deprecated use `GetUtxosByAddressesGlobals$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesGlobals$outboundSchema; - /** @deprecated use `GetUtxosByAddressesGlobals$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesGlobals$Outbound; -} - -export function getUtxosByAddressesGlobalsToJSON( - getUtxosByAddressesGlobals: GetUtxosByAddressesGlobals, -): string { - return JSON.stringify( - GetUtxosByAddressesGlobals$outboundSchema.parse(getUtxosByAddressesGlobals), - ); -} - -export function getUtxosByAddressesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUtxosByAddressesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUtxosByAddressesGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetUtxosByAddressesRequest$inboundSchema: z.ZodType< - GetUtxosByAddressesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - assetId: z.string().optional(), - includeSpent: z.boolean().optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type GetUtxosByAddressesRequest$Outbound = { - addresses?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - assetId?: string | undefined; - includeSpent?: boolean | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const GetUtxosByAddressesRequest$outboundSchema: z.ZodType< - GetUtxosByAddressesRequest$Outbound, - z.ZodTypeDef, - GetUtxosByAddressesRequest -> = z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - assetId: z.string().optional(), - includeSpent: z.boolean().optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesRequest$ { - /** @deprecated use `GetUtxosByAddressesRequest$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesRequest$inboundSchema; - /** @deprecated use `GetUtxosByAddressesRequest$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesRequest$outboundSchema; - /** @deprecated use `GetUtxosByAddressesRequest$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesRequest$Outbound; -} - -export function getUtxosByAddressesRequestToJSON( - getUtxosByAddressesRequest: GetUtxosByAddressesRequest, -): string { - return JSON.stringify( - GetUtxosByAddressesRequest$outboundSchema.parse(getUtxosByAddressesRequest), - ); -} - -export function getUtxosByAddressesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUtxosByAddressesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUtxosByAddressesRequest' from JSON`, - ); -} - -/** @internal */ -export const GetUtxosByAddressesResponseBody$inboundSchema: z.ZodType< - GetUtxosByAddressesResponseBody, - z.ZodTypeDef, - unknown -> = z.union([ - components.ListPChainUtxosResponse$inboundSchema, - components.ListUtxosResponse$inboundSchema, -]); - -/** @internal */ -export type GetUtxosByAddressesResponseBody$Outbound = - | components.ListPChainUtxosResponse$Outbound - | components.ListUtxosResponse$Outbound; - -/** @internal */ -export const GetUtxosByAddressesResponseBody$outboundSchema: z.ZodType< - GetUtxosByAddressesResponseBody$Outbound, - z.ZodTypeDef, - GetUtxosByAddressesResponseBody -> = z.union([ - components.ListPChainUtxosResponse$outboundSchema, - components.ListUtxosResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesResponseBody$ { - /** @deprecated use `GetUtxosByAddressesResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesResponseBody$inboundSchema; - /** @deprecated use `GetUtxosByAddressesResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesResponseBody$outboundSchema; - /** @deprecated use `GetUtxosByAddressesResponseBody$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesResponseBody$Outbound; -} - -export function getUtxosByAddressesResponseBodyToJSON( - getUtxosByAddressesResponseBody: GetUtxosByAddressesResponseBody, -): string { - return JSON.stringify( - GetUtxosByAddressesResponseBody$outboundSchema.parse( - getUtxosByAddressesResponseBody, - ), - ); -} - -export function getUtxosByAddressesResponseBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUtxosByAddressesResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUtxosByAddressesResponseBody' from JSON`, - ); -} - -/** @internal */ -export const GetUtxosByAddressesResponse$inboundSchema: z.ZodType< - GetUtxosByAddressesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: z.union([ - components.ListPChainUtxosResponse$inboundSchema, - components.ListUtxosResponse$inboundSchema, - ]), -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetUtxosByAddressesResponse$Outbound = { - Result: - | components.ListPChainUtxosResponse$Outbound - | components.ListUtxosResponse$Outbound; -}; - -/** @internal */ -export const GetUtxosByAddressesResponse$outboundSchema: z.ZodType< - GetUtxosByAddressesResponse$Outbound, - z.ZodTypeDef, - GetUtxosByAddressesResponse -> = z.object({ - result: z.union([ - components.ListPChainUtxosResponse$outboundSchema, - components.ListUtxosResponse$outboundSchema, - ]), -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesResponse$ { - /** @deprecated use `GetUtxosByAddressesResponse$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesResponse$inboundSchema; - /** @deprecated use `GetUtxosByAddressesResponse$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesResponse$outboundSchema; - /** @deprecated use `GetUtxosByAddressesResponse$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesResponse$Outbound; -} - -export function getUtxosByAddressesResponseToJSON( - getUtxosByAddressesResponse: GetUtxosByAddressesResponse, -): string { - return JSON.stringify( - GetUtxosByAddressesResponse$outboundSchema.parse( - getUtxosByAddressesResponse, - ), - ); -} - -export function getUtxosByAddressesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetUtxosByAddressesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetUtxosByAddressesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/getvertexbyhash.ts b/data/src/models/operations/getvertexbyhash.ts deleted file mode 100644 index 2d9cb5bc..00000000 --- a/data/src/models/operations/getvertexbyhash.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetVertexByHashGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetVertexByHashRequest = { - /** - * A vertex hash string. - */ - vertexHash: string; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.XChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -/** @internal */ -export const GetVertexByHashGlobals$inboundSchema: z.ZodType< - GetVertexByHashGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetVertexByHashGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetVertexByHashGlobals$outboundSchema: z.ZodType< - GetVertexByHashGlobals$Outbound, - z.ZodTypeDef, - GetVertexByHashGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetVertexByHashGlobals$ { - /** @deprecated use `GetVertexByHashGlobals$inboundSchema` instead. */ - export const inboundSchema = GetVertexByHashGlobals$inboundSchema; - /** @deprecated use `GetVertexByHashGlobals$outboundSchema` instead. */ - export const outboundSchema = GetVertexByHashGlobals$outboundSchema; - /** @deprecated use `GetVertexByHashGlobals$Outbound` instead. */ - export type Outbound = GetVertexByHashGlobals$Outbound; -} - -export function getVertexByHashGlobalsToJSON( - getVertexByHashGlobals: GetVertexByHashGlobals, -): string { - return JSON.stringify( - GetVertexByHashGlobals$outboundSchema.parse(getVertexByHashGlobals), - ); -} - -export function getVertexByHashGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetVertexByHashGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetVertexByHashGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetVertexByHashRequest$inboundSchema: z.ZodType< - GetVertexByHashRequest, - z.ZodTypeDef, - unknown -> = z.object({ - vertexHash: z.string(), - blockchainId: components.XChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetVertexByHashRequest$Outbound = { - vertexHash: string; - blockchainId: string; - network?: string | undefined; -}; - -/** @internal */ -export const GetVertexByHashRequest$outboundSchema: z.ZodType< - GetVertexByHashRequest$Outbound, - z.ZodTypeDef, - GetVertexByHashRequest -> = z.object({ - vertexHash: z.string(), - blockchainId: components.XChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetVertexByHashRequest$ { - /** @deprecated use `GetVertexByHashRequest$inboundSchema` instead. */ - export const inboundSchema = GetVertexByHashRequest$inboundSchema; - /** @deprecated use `GetVertexByHashRequest$outboundSchema` instead. */ - export const outboundSchema = GetVertexByHashRequest$outboundSchema; - /** @deprecated use `GetVertexByHashRequest$Outbound` instead. */ - export type Outbound = GetVertexByHashRequest$Outbound; -} - -export function getVertexByHashRequestToJSON( - getVertexByHashRequest: GetVertexByHashRequest, -): string { - return JSON.stringify( - GetVertexByHashRequest$outboundSchema.parse(getVertexByHashRequest), - ); -} - -export function getVertexByHashRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetVertexByHashRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetVertexByHashRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/getvertexbyheight.ts b/data/src/models/operations/getvertexbyheight.ts deleted file mode 100644 index b1042bd6..00000000 --- a/data/src/models/operations/getvertexbyheight.ts +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetVertexByHeightGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetVertexByHeightRequest = { - /** - * The height of a vertex. - */ - vertexHeight: number; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.XChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type GetVertexByHeightResponse = { - result: components.ListXChainVerticesResponse; -}; - -/** @internal */ -export const GetVertexByHeightGlobals$inboundSchema: z.ZodType< - GetVertexByHeightGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetVertexByHeightGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetVertexByHeightGlobals$outboundSchema: z.ZodType< - GetVertexByHeightGlobals$Outbound, - z.ZodTypeDef, - GetVertexByHeightGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetVertexByHeightGlobals$ { - /** @deprecated use `GetVertexByHeightGlobals$inboundSchema` instead. */ - export const inboundSchema = GetVertexByHeightGlobals$inboundSchema; - /** @deprecated use `GetVertexByHeightGlobals$outboundSchema` instead. */ - export const outboundSchema = GetVertexByHeightGlobals$outboundSchema; - /** @deprecated use `GetVertexByHeightGlobals$Outbound` instead. */ - export type Outbound = GetVertexByHeightGlobals$Outbound; -} - -export function getVertexByHeightGlobalsToJSON( - getVertexByHeightGlobals: GetVertexByHeightGlobals, -): string { - return JSON.stringify( - GetVertexByHeightGlobals$outboundSchema.parse(getVertexByHeightGlobals), - ); -} - -export function getVertexByHeightGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetVertexByHeightGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetVertexByHeightGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetVertexByHeightRequest$inboundSchema: z.ZodType< - GetVertexByHeightRequest, - z.ZodTypeDef, - unknown -> = z.object({ - vertexHeight: z.number().int(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type GetVertexByHeightRequest$Outbound = { - vertexHeight: number; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const GetVertexByHeightRequest$outboundSchema: z.ZodType< - GetVertexByHeightRequest$Outbound, - z.ZodTypeDef, - GetVertexByHeightRequest -> = z.object({ - vertexHeight: z.number().int(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetVertexByHeightRequest$ { - /** @deprecated use `GetVertexByHeightRequest$inboundSchema` instead. */ - export const inboundSchema = GetVertexByHeightRequest$inboundSchema; - /** @deprecated use `GetVertexByHeightRequest$outboundSchema` instead. */ - export const outboundSchema = GetVertexByHeightRequest$outboundSchema; - /** @deprecated use `GetVertexByHeightRequest$Outbound` instead. */ - export type Outbound = GetVertexByHeightRequest$Outbound; -} - -export function getVertexByHeightRequestToJSON( - getVertexByHeightRequest: GetVertexByHeightRequest, -): string { - return JSON.stringify( - GetVertexByHeightRequest$outboundSchema.parse(getVertexByHeightRequest), - ); -} - -export function getVertexByHeightRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetVertexByHeightRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetVertexByHeightRequest' from JSON`, - ); -} - -/** @internal */ -export const GetVertexByHeightResponse$inboundSchema: z.ZodType< - GetVertexByHeightResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListXChainVerticesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetVertexByHeightResponse$Outbound = { - Result: components.ListXChainVerticesResponse$Outbound; -}; - -/** @internal */ -export const GetVertexByHeightResponse$outboundSchema: z.ZodType< - GetVertexByHeightResponse$Outbound, - z.ZodTypeDef, - GetVertexByHeightResponse -> = z.object({ - result: components.ListXChainVerticesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetVertexByHeightResponse$ { - /** @deprecated use `GetVertexByHeightResponse$inboundSchema` instead. */ - export const inboundSchema = GetVertexByHeightResponse$inboundSchema; - /** @deprecated use `GetVertexByHeightResponse$outboundSchema` instead. */ - export const outboundSchema = GetVertexByHeightResponse$outboundSchema; - /** @deprecated use `GetVertexByHeightResponse$Outbound` instead. */ - export type Outbound = GetVertexByHeightResponse$Outbound; -} - -export function getVertexByHeightResponseToJSON( - getVertexByHeightResponse: GetVertexByHeightResponse, -): string { - return JSON.stringify( - GetVertexByHeightResponse$outboundSchema.parse(getVertexByHeightResponse), - ); -} - -export function getVertexByHeightResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetVertexByHeightResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetVertexByHeightResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/index.ts b/data/src/models/operations/index.ts deleted file mode 100644 index b5161de6..00000000 --- a/data/src/models/operations/index.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./aggregatesignatures.js"; -export * from "./getaddresschains.js"; -export * from "./getaggregatedsignatures.js"; -export * from "./getapilogs.js"; -export * from "./getapiusagemetrics.js"; -export * from "./getassetdetails.js"; -export * from "./getbalancesbyaddresses.js"; -export * from "./getblock.js"; -export * from "./getblockbyid.js"; -export * from "./getblockchainbyid.js"; -export * from "./getchainidsforaddresses.js"; -export * from "./getchaininfo.js"; -export * from "./getcontractmetadata.js"; -export * from "./getdeploymenttransaction.js"; -export * from "./geticmmessage.js"; -export * from "./getlatestblocks.js"; -export * from "./getnativebalance.js"; -export * from "./getnetworkdetails.js"; -export * from "./getoperationresult.js"; -export * from "./getrpcusagemetrics.js"; -export * from "./getsinglevalidatordetails.js"; -export * from "./getsubnetbyid.js"; -export * from "./getsubnetrpcusagemetrics.js"; -export * from "./getteleportermessage.js"; -export * from "./gettokendetails.js"; -export * from "./gettransaction.js"; -export * from "./gettransactionsforblock.js"; -export * from "./gettxbyhash.js"; -export * from "./getutxosbyaddresses.js"; -export * from "./getvertexbyhash.js"; -export * from "./getvertexbyheight.js"; -export * from "./listactiveprimarynetworkstakingtransactions.js"; -export * from "./listaddresschains.js"; -export * from "./listalllatestblocks.js"; -export * from "./listalllatesttransactions.js"; -export * from "./listassettransactions.js"; -export * from "./listblockchains.js"; -export * from "./listcollectiblebalances.js"; -export * from "./listcontractdeployments.js"; -export * from "./listdelegators.js"; -export * from "./listerc1155balances.js"; -export * from "./listerc1155transactions.js"; -export * from "./listerc20balances.js"; -export * from "./listerc20transactions.js"; -export * from "./listerc721balances.js"; -export * from "./listerc721transactions.js"; -export * from "./listhistoricalprimarynetworkrewards.js"; -export * from "./listicmmessages.js"; -export * from "./listicmmessagesbyaddress.js"; -export * from "./listinternaltransactions.js"; -export * from "./listl1validators.js"; -export * from "./listlatestblocksallchains.js"; -export * from "./listlatestprimarynetworkblocks.js"; -export * from "./listlatestprimarynetworktransactions.js"; -export * from "./listlatesttransactions.js"; -export * from "./listlatesttransactionsallchains.js"; -export * from "./listlatestxchainvertices.js"; -export * from "./listnativetransactions.js"; -export * from "./listpendingprimarynetworkrewards.js"; -export * from "./listprimarynetworkblocksbynodeid.js"; -export * from "./listsubnets.js"; -export * from "./listteleportermessages.js"; -export * from "./listteleportermessagesbyaddress.js"; -export * from "./listtokens.js"; -export * from "./listtransactions.js"; -export * from "./listtransfers.js"; -export * from "./listvalidators.js"; -export * from "./posttransactionexportjob.js"; -export * from "./reindexnft.js"; -export * from "./supportedchains.js"; diff --git a/data/src/models/operations/listactiveprimarynetworkstakingtransactions.ts b/data/src/models/operations/listactiveprimarynetworkstakingtransactions.ts deleted file mode 100644 index 475fcc6b..00000000 --- a/data/src/models/operations/listactiveprimarynetworkstakingtransactions.ts +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListActivePrimaryNetworkStakingTransactionsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListActivePrimaryNetworkStakingTransactionsRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". - */ - addresses?: string | undefined; - /** - * Query param for filtering items based on transaction types. - */ - txTypes?: Array | undefined; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.PChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type ListActivePrimaryNetworkStakingTransactionsResponse = { - result: components.ListPChainTransactionsResponse; -}; - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsGlobals$inboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - }); - -/** @internal */ -export type ListActivePrimaryNetworkStakingTransactionsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsGlobals$outboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListActivePrimaryNetworkStakingTransactionsGlobals - > = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivePrimaryNetworkStakingTransactionsGlobals$ { - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListActivePrimaryNetworkStakingTransactionsGlobals$inboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListActivePrimaryNetworkStakingTransactionsGlobals$outboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsGlobals$Outbound` instead. */ - export type Outbound = - ListActivePrimaryNetworkStakingTransactionsGlobals$Outbound; -} - -export function listActivePrimaryNetworkStakingTransactionsGlobalsToJSON( - listActivePrimaryNetworkStakingTransactionsGlobals: - ListActivePrimaryNetworkStakingTransactionsGlobals, -): string { - return JSON.stringify( - ListActivePrimaryNetworkStakingTransactionsGlobals$outboundSchema.parse( - listActivePrimaryNetworkStakingTransactionsGlobals, - ), - ); -} - -export function listActivePrimaryNetworkStakingTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - ListActivePrimaryNetworkStakingTransactionsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListActivePrimaryNetworkStakingTransactionsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListActivePrimaryNetworkStakingTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - addresses: z.string().optional(), - txTypes: z.array(components.PrimaryNetworkTxType$inboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.PChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), - }); - -/** @internal */ -export type ListActivePrimaryNetworkStakingTransactionsRequest$Outbound = { - addresses?: string | undefined; - txTypes?: Array | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsRequest$Outbound, - z.ZodTypeDef, - ListActivePrimaryNetworkStakingTransactionsRequest - > = z.object({ - addresses: z.string().optional(), - txTypes: z.array(components.PrimaryNetworkTxType$outboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.PChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivePrimaryNetworkStakingTransactionsRequest$ { - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = - ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = - ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsRequest$Outbound` instead. */ - export type Outbound = - ListActivePrimaryNetworkStakingTransactionsRequest$Outbound; -} - -export function listActivePrimaryNetworkStakingTransactionsRequestToJSON( - listActivePrimaryNetworkStakingTransactionsRequest: - ListActivePrimaryNetworkStakingTransactionsRequest, -): string { - return JSON.stringify( - ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema.parse( - listActivePrimaryNetworkStakingTransactionsRequest, - ), - ); -} - -export function listActivePrimaryNetworkStakingTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult< - ListActivePrimaryNetworkStakingTransactionsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListActivePrimaryNetworkStakingTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsResponse, - z.ZodTypeDef, - unknown - > = z.object({ - Result: components.ListPChainTransactionsResponse$inboundSchema, - }).transform((v) => { - return remap$(v, { - "Result": "result", - }); - }); - -/** @internal */ -export type ListActivePrimaryNetworkStakingTransactionsResponse$Outbound = { - Result: components.ListPChainTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListActivePrimaryNetworkStakingTransactionsResponse$outboundSchema: - z.ZodType< - ListActivePrimaryNetworkStakingTransactionsResponse$Outbound, - z.ZodTypeDef, - ListActivePrimaryNetworkStakingTransactionsResponse - > = z.object({ - result: components.ListPChainTransactionsResponse$outboundSchema, - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListActivePrimaryNetworkStakingTransactionsResponse$ { - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListActivePrimaryNetworkStakingTransactionsResponse$outboundSchema; - /** @deprecated use `ListActivePrimaryNetworkStakingTransactionsResponse$Outbound` instead. */ - export type Outbound = - ListActivePrimaryNetworkStakingTransactionsResponse$Outbound; -} - -export function listActivePrimaryNetworkStakingTransactionsResponseToJSON( - listActivePrimaryNetworkStakingTransactionsResponse: - ListActivePrimaryNetworkStakingTransactionsResponse, -): string { - return JSON.stringify( - ListActivePrimaryNetworkStakingTransactionsResponse$outboundSchema.parse( - listActivePrimaryNetworkStakingTransactionsResponse, - ), - ); -} - -export function listActivePrimaryNetworkStakingTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListActivePrimaryNetworkStakingTransactionsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListActivePrimaryNetworkStakingTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listaddresschains.ts b/data/src/models/operations/listaddresschains.ts deleted file mode 100644 index 6913e5c2..00000000 --- a/data/src/models/operations/listaddresschains.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListAddressChainsRequest = { - /** - * A wallet address. - */ - address: string; -}; - -/** @internal */ -export const ListAddressChainsRequest$inboundSchema: z.ZodType< - ListAddressChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), -}); - -/** @internal */ -export type ListAddressChainsRequest$Outbound = { - address: string; -}; - -/** @internal */ -export const ListAddressChainsRequest$outboundSchema: z.ZodType< - ListAddressChainsRequest$Outbound, - z.ZodTypeDef, - ListAddressChainsRequest -> = z.object({ - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAddressChainsRequest$ { - /** @deprecated use `ListAddressChainsRequest$inboundSchema` instead. */ - export const inboundSchema = ListAddressChainsRequest$inboundSchema; - /** @deprecated use `ListAddressChainsRequest$outboundSchema` instead. */ - export const outboundSchema = ListAddressChainsRequest$outboundSchema; - /** @deprecated use `ListAddressChainsRequest$Outbound` instead. */ - export type Outbound = ListAddressChainsRequest$Outbound; -} - -export function listAddressChainsRequestToJSON( - listAddressChainsRequest: ListAddressChainsRequest, -): string { - return JSON.stringify( - ListAddressChainsRequest$outboundSchema.parse(listAddressChainsRequest), - ); -} - -export function listAddressChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAddressChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAddressChainsRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/listalllatestblocks.ts b/data/src/models/operations/listalllatestblocks.ts deleted file mode 100644 index 64a5c5bb..00000000 --- a/data/src/models/operations/listalllatestblocks.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListAllLatestBlocksRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type ListAllLatestBlocksResponse = { - result: components.ListEvmBlocksResponse; -}; - -/** @internal */ -export const ListAllLatestBlocksRequest$inboundSchema: z.ZodType< - ListAllLatestBlocksRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListAllLatestBlocksRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; -}; - -/** @internal */ -export const ListAllLatestBlocksRequest$outboundSchema: z.ZodType< - ListAllLatestBlocksRequest$Outbound, - z.ZodTypeDef, - ListAllLatestBlocksRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAllLatestBlocksRequest$ { - /** @deprecated use `ListAllLatestBlocksRequest$inboundSchema` instead. */ - export const inboundSchema = ListAllLatestBlocksRequest$inboundSchema; - /** @deprecated use `ListAllLatestBlocksRequest$outboundSchema` instead. */ - export const outboundSchema = ListAllLatestBlocksRequest$outboundSchema; - /** @deprecated use `ListAllLatestBlocksRequest$Outbound` instead. */ - export type Outbound = ListAllLatestBlocksRequest$Outbound; -} - -export function listAllLatestBlocksRequestToJSON( - listAllLatestBlocksRequest: ListAllLatestBlocksRequest, -): string { - return JSON.stringify( - ListAllLatestBlocksRequest$outboundSchema.parse(listAllLatestBlocksRequest), - ); -} - -export function listAllLatestBlocksRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAllLatestBlocksRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAllLatestBlocksRequest' from JSON`, - ); -} - -/** @internal */ -export const ListAllLatestBlocksResponse$inboundSchema: z.ZodType< - ListAllLatestBlocksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListEvmBlocksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAllLatestBlocksResponse$Outbound = { - Result: components.ListEvmBlocksResponse$Outbound; -}; - -/** @internal */ -export const ListAllLatestBlocksResponse$outboundSchema: z.ZodType< - ListAllLatestBlocksResponse$Outbound, - z.ZodTypeDef, - ListAllLatestBlocksResponse -> = z.object({ - result: components.ListEvmBlocksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAllLatestBlocksResponse$ { - /** @deprecated use `ListAllLatestBlocksResponse$inboundSchema` instead. */ - export const inboundSchema = ListAllLatestBlocksResponse$inboundSchema; - /** @deprecated use `ListAllLatestBlocksResponse$outboundSchema` instead. */ - export const outboundSchema = ListAllLatestBlocksResponse$outboundSchema; - /** @deprecated use `ListAllLatestBlocksResponse$Outbound` instead. */ - export type Outbound = ListAllLatestBlocksResponse$Outbound; -} - -export function listAllLatestBlocksResponseToJSON( - listAllLatestBlocksResponse: ListAllLatestBlocksResponse, -): string { - return JSON.stringify( - ListAllLatestBlocksResponse$outboundSchema.parse( - listAllLatestBlocksResponse, - ), - ); -} - -export function listAllLatestBlocksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAllLatestBlocksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAllLatestBlocksResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listalllatesttransactions.ts b/data/src/models/operations/listalllatesttransactions.ts deleted file mode 100644 index ba11369c..00000000 --- a/data/src/models/operations/listalllatesttransactions.ts +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListAllLatestTransactionsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; - /** - * A status filter for listed transactions. - */ - status?: components.TransactionStatus | undefined; -}; - -export type ListAllLatestTransactionsResponse = { - result: components.ListNativeTransactionsResponse; -}; - -/** @internal */ -export const ListAllLatestTransactionsRequest$inboundSchema: z.ZodType< - ListAllLatestTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$inboundSchema.optional(), - status: components.TransactionStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type ListAllLatestTransactionsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const ListAllLatestTransactionsRequest$outboundSchema: z.ZodType< - ListAllLatestTransactionsRequest$Outbound, - z.ZodTypeDef, - ListAllLatestTransactionsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$outboundSchema.optional(), - status: components.TransactionStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAllLatestTransactionsRequest$ { - /** @deprecated use `ListAllLatestTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListAllLatestTransactionsRequest$inboundSchema; - /** @deprecated use `ListAllLatestTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListAllLatestTransactionsRequest$outboundSchema; - /** @deprecated use `ListAllLatestTransactionsRequest$Outbound` instead. */ - export type Outbound = ListAllLatestTransactionsRequest$Outbound; -} - -export function listAllLatestTransactionsRequestToJSON( - listAllLatestTransactionsRequest: ListAllLatestTransactionsRequest, -): string { - return JSON.stringify( - ListAllLatestTransactionsRequest$outboundSchema.parse( - listAllLatestTransactionsRequest, - ), - ); -} - -export function listAllLatestTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAllLatestTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAllLatestTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListAllLatestTransactionsResponse$inboundSchema: z.ZodType< - ListAllLatestTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListNativeTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAllLatestTransactionsResponse$Outbound = { - Result: components.ListNativeTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListAllLatestTransactionsResponse$outboundSchema: z.ZodType< - ListAllLatestTransactionsResponse$Outbound, - z.ZodTypeDef, - ListAllLatestTransactionsResponse -> = z.object({ - result: components.ListNativeTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAllLatestTransactionsResponse$ { - /** @deprecated use `ListAllLatestTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListAllLatestTransactionsResponse$inboundSchema; - /** @deprecated use `ListAllLatestTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListAllLatestTransactionsResponse$outboundSchema; - /** @deprecated use `ListAllLatestTransactionsResponse$Outbound` instead. */ - export type Outbound = ListAllLatestTransactionsResponse$Outbound; -} - -export function listAllLatestTransactionsResponseToJSON( - listAllLatestTransactionsResponse: ListAllLatestTransactionsResponse, -): string { - return JSON.stringify( - ListAllLatestTransactionsResponse$outboundSchema.parse( - listAllLatestTransactionsResponse, - ), - ); -} - -export function listAllLatestTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAllLatestTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAllLatestTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listassettransactions.ts b/data/src/models/operations/listassettransactions.ts deleted file mode 100644 index 918f46d8..00000000 --- a/data/src/models/operations/listassettransactions.ts +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListAssetTransactionsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListAssetTransactionsRequest = { - /** - * Query param for filtering items based on transaction types. - */ - txTypes?: Array | undefined; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.XChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * Asset ID for any asset on X-Chain - */ - assetId: string; -}; - -export type ListAssetTransactionsResponse = { - result: components.ListXChainTransactionsResponse; -}; - -/** @internal */ -export const ListAssetTransactionsGlobals$inboundSchema: z.ZodType< - ListAssetTransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListAssetTransactionsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListAssetTransactionsGlobals$outboundSchema: z.ZodType< - ListAssetTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListAssetTransactionsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAssetTransactionsGlobals$ { - /** @deprecated use `ListAssetTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListAssetTransactionsGlobals$inboundSchema; - /** @deprecated use `ListAssetTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListAssetTransactionsGlobals$outboundSchema; - /** @deprecated use `ListAssetTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListAssetTransactionsGlobals$Outbound; -} - -export function listAssetTransactionsGlobalsToJSON( - listAssetTransactionsGlobals: ListAssetTransactionsGlobals, -): string { - return JSON.stringify( - ListAssetTransactionsGlobals$outboundSchema.parse( - listAssetTransactionsGlobals, - ), - ); -} - -export function listAssetTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAssetTransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAssetTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListAssetTransactionsRequest$inboundSchema: z.ZodType< - ListAssetTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - txTypes: z.array(components.PrimaryNetworkTxType$inboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - assetId: z.string(), -}); - -/** @internal */ -export type ListAssetTransactionsRequest$Outbound = { - txTypes?: Array | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - assetId: string; -}; - -/** @internal */ -export const ListAssetTransactionsRequest$outboundSchema: z.ZodType< - ListAssetTransactionsRequest$Outbound, - z.ZodTypeDef, - ListAssetTransactionsRequest -> = z.object({ - txTypes: z.array(components.PrimaryNetworkTxType$outboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - assetId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAssetTransactionsRequest$ { - /** @deprecated use `ListAssetTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListAssetTransactionsRequest$inboundSchema; - /** @deprecated use `ListAssetTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListAssetTransactionsRequest$outboundSchema; - /** @deprecated use `ListAssetTransactionsRequest$Outbound` instead. */ - export type Outbound = ListAssetTransactionsRequest$Outbound; -} - -export function listAssetTransactionsRequestToJSON( - listAssetTransactionsRequest: ListAssetTransactionsRequest, -): string { - return JSON.stringify( - ListAssetTransactionsRequest$outboundSchema.parse( - listAssetTransactionsRequest, - ), - ); -} - -export function listAssetTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAssetTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAssetTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListAssetTransactionsResponse$inboundSchema: z.ZodType< - ListAssetTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListXChainTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListAssetTransactionsResponse$Outbound = { - Result: components.ListXChainTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListAssetTransactionsResponse$outboundSchema: z.ZodType< - ListAssetTransactionsResponse$Outbound, - z.ZodTypeDef, - ListAssetTransactionsResponse -> = z.object({ - result: components.ListXChainTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListAssetTransactionsResponse$ { - /** @deprecated use `ListAssetTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListAssetTransactionsResponse$inboundSchema; - /** @deprecated use `ListAssetTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListAssetTransactionsResponse$outboundSchema; - /** @deprecated use `ListAssetTransactionsResponse$Outbound` instead. */ - export type Outbound = ListAssetTransactionsResponse$Outbound; -} - -export function listAssetTransactionsResponseToJSON( - listAssetTransactionsResponse: ListAssetTransactionsResponse, -): string { - return JSON.stringify( - ListAssetTransactionsResponse$outboundSchema.parse( - listAssetTransactionsResponse, - ), - ); -} - -export function listAssetTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListAssetTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListAssetTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listblockchains.ts b/data/src/models/operations/listblockchains.ts deleted file mode 100644 index da41c069..00000000 --- a/data/src/models/operations/listblockchains.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListBlockchainsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListBlockchainsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type ListBlockchainsResponse = { - result: components.ListBlockchainsResponse; -}; - -/** @internal */ -export const ListBlockchainsGlobals$inboundSchema: z.ZodType< - ListBlockchainsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListBlockchainsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListBlockchainsGlobals$outboundSchema: z.ZodType< - ListBlockchainsGlobals$Outbound, - z.ZodTypeDef, - ListBlockchainsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBlockchainsGlobals$ { - /** @deprecated use `ListBlockchainsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListBlockchainsGlobals$inboundSchema; - /** @deprecated use `ListBlockchainsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListBlockchainsGlobals$outboundSchema; - /** @deprecated use `ListBlockchainsGlobals$Outbound` instead. */ - export type Outbound = ListBlockchainsGlobals$Outbound; -} - -export function listBlockchainsGlobalsToJSON( - listBlockchainsGlobals: ListBlockchainsGlobals, -): string { - return JSON.stringify( - ListBlockchainsGlobals$outboundSchema.parse(listBlockchainsGlobals), - ); -} - -export function listBlockchainsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListBlockchainsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListBlockchainsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListBlockchainsRequest$inboundSchema: z.ZodType< - ListBlockchainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type ListBlockchainsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListBlockchainsRequest$outboundSchema: z.ZodType< - ListBlockchainsRequest$Outbound, - z.ZodTypeDef, - ListBlockchainsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBlockchainsRequest$ { - /** @deprecated use `ListBlockchainsRequest$inboundSchema` instead. */ - export const inboundSchema = ListBlockchainsRequest$inboundSchema; - /** @deprecated use `ListBlockchainsRequest$outboundSchema` instead. */ - export const outboundSchema = ListBlockchainsRequest$outboundSchema; - /** @deprecated use `ListBlockchainsRequest$Outbound` instead. */ - export type Outbound = ListBlockchainsRequest$Outbound; -} - -export function listBlockchainsRequestToJSON( - listBlockchainsRequest: ListBlockchainsRequest, -): string { - return JSON.stringify( - ListBlockchainsRequest$outboundSchema.parse(listBlockchainsRequest), - ); -} - -export function listBlockchainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListBlockchainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListBlockchainsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListBlockchainsResponse$inboundSchema: z.ZodType< - ListBlockchainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListBlockchainsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListBlockchainsResponse$Outbound = { - Result: components.ListBlockchainsResponse$Outbound; -}; - -/** @internal */ -export const ListBlockchainsResponse$outboundSchema: z.ZodType< - ListBlockchainsResponse$Outbound, - z.ZodTypeDef, - ListBlockchainsResponse -> = z.object({ - result: components.ListBlockchainsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListBlockchainsResponse$ { - /** @deprecated use `ListBlockchainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListBlockchainsResponse$inboundSchema; - /** @deprecated use `ListBlockchainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListBlockchainsResponse$outboundSchema; - /** @deprecated use `ListBlockchainsResponse$Outbound` instead. */ - export type Outbound = ListBlockchainsResponse$Outbound; -} - -export function listBlockchainsResponseToJSON( - listBlockchainsResponse: ListBlockchainsResponse, -): string { - return JSON.stringify( - ListBlockchainsResponse$outboundSchema.parse(listBlockchainsResponse), - ); -} - -export function listBlockchainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListBlockchainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListBlockchainsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listcollectiblebalances.ts b/data/src/models/operations/listcollectiblebalances.ts deleted file mode 100644 index 4338c30d..00000000 --- a/data/src/models/operations/listcollectiblebalances.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListCollectibleBalancesGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListCollectibleBalancesRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * A contract addresses to filter by. - */ - contractAddress?: string | undefined; -}; - -export type ListCollectibleBalancesResponse = { - result: components.ListCollectibleBalancesResponse; -}; - -/** @internal */ -export const ListCollectibleBalancesGlobals$inboundSchema: z.ZodType< - ListCollectibleBalancesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListCollectibleBalancesGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListCollectibleBalancesGlobals$outboundSchema: z.ZodType< - ListCollectibleBalancesGlobals$Outbound, - z.ZodTypeDef, - ListCollectibleBalancesGlobals -> = z.object({ - chainId: 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 ListCollectibleBalancesGlobals$ { - /** @deprecated use `ListCollectibleBalancesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListCollectibleBalancesGlobals$inboundSchema; - /** @deprecated use `ListCollectibleBalancesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListCollectibleBalancesGlobals$outboundSchema; - /** @deprecated use `ListCollectibleBalancesGlobals$Outbound` instead. */ - export type Outbound = ListCollectibleBalancesGlobals$Outbound; -} - -export function listCollectibleBalancesGlobalsToJSON( - listCollectibleBalancesGlobals: ListCollectibleBalancesGlobals, -): string { - return JSON.stringify( - ListCollectibleBalancesGlobals$outboundSchema.parse( - listCollectibleBalancesGlobals, - ), - ); -} - -export function listCollectibleBalancesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListCollectibleBalancesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCollectibleBalancesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListCollectibleBalancesRequest$inboundSchema: z.ZodType< - ListCollectibleBalancesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: z.string().optional(), -}); - -/** @internal */ -export type ListCollectibleBalancesRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; - contractAddress?: string | undefined; -}; - -/** @internal */ -export const ListCollectibleBalancesRequest$outboundSchema: z.ZodType< - ListCollectibleBalancesRequest$Outbound, - z.ZodTypeDef, - ListCollectibleBalancesRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: 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 ListCollectibleBalancesRequest$ { - /** @deprecated use `ListCollectibleBalancesRequest$inboundSchema` instead. */ - export const inboundSchema = ListCollectibleBalancesRequest$inboundSchema; - /** @deprecated use `ListCollectibleBalancesRequest$outboundSchema` instead. */ - export const outboundSchema = ListCollectibleBalancesRequest$outboundSchema; - /** @deprecated use `ListCollectibleBalancesRequest$Outbound` instead. */ - export type Outbound = ListCollectibleBalancesRequest$Outbound; -} - -export function listCollectibleBalancesRequestToJSON( - listCollectibleBalancesRequest: ListCollectibleBalancesRequest, -): string { - return JSON.stringify( - ListCollectibleBalancesRequest$outboundSchema.parse( - listCollectibleBalancesRequest, - ), - ); -} - -export function listCollectibleBalancesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListCollectibleBalancesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCollectibleBalancesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListCollectibleBalancesResponse$inboundSchema: z.ZodType< - ListCollectibleBalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListCollectibleBalancesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListCollectibleBalancesResponse$Outbound = { - Result: components.ListCollectibleBalancesResponse$Outbound; -}; - -/** @internal */ -export const ListCollectibleBalancesResponse$outboundSchema: z.ZodType< - ListCollectibleBalancesResponse$Outbound, - z.ZodTypeDef, - ListCollectibleBalancesResponse -> = z.object({ - result: components.ListCollectibleBalancesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListCollectibleBalancesResponse$ { - /** @deprecated use `ListCollectibleBalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListCollectibleBalancesResponse$inboundSchema; - /** @deprecated use `ListCollectibleBalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListCollectibleBalancesResponse$outboundSchema; - /** @deprecated use `ListCollectibleBalancesResponse$Outbound` instead. */ - export type Outbound = ListCollectibleBalancesResponse$Outbound; -} - -export function listCollectibleBalancesResponseToJSON( - listCollectibleBalancesResponse: ListCollectibleBalancesResponse, -): string { - return JSON.stringify( - ListCollectibleBalancesResponse$outboundSchema.parse( - listCollectibleBalancesResponse, - ), - ); -} - -export function listCollectibleBalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListCollectibleBalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListCollectibleBalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listcontractdeployments.ts b/data/src/models/operations/listcontractdeployments.ts deleted file mode 100644 index 9d89dc9c..00000000 --- a/data/src/models/operations/listcontractdeployments.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListContractDeploymentsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListContractDeploymentsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListContractDeploymentsResponse = { - result: components.ListContractsResponse; -}; - -/** @internal */ -export const ListContractDeploymentsGlobals$inboundSchema: z.ZodType< - ListContractDeploymentsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListContractDeploymentsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListContractDeploymentsGlobals$outboundSchema: z.ZodType< - ListContractDeploymentsGlobals$Outbound, - z.ZodTypeDef, - ListContractDeploymentsGlobals -> = z.object({ - chainId: 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 ListContractDeploymentsGlobals$ { - /** @deprecated use `ListContractDeploymentsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListContractDeploymentsGlobals$inboundSchema; - /** @deprecated use `ListContractDeploymentsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListContractDeploymentsGlobals$outboundSchema; - /** @deprecated use `ListContractDeploymentsGlobals$Outbound` instead. */ - export type Outbound = ListContractDeploymentsGlobals$Outbound; -} - -export function listContractDeploymentsGlobalsToJSON( - listContractDeploymentsGlobals: ListContractDeploymentsGlobals, -): string { - return JSON.stringify( - ListContractDeploymentsGlobals$outboundSchema.parse( - listContractDeploymentsGlobals, - ), - ); -} - -export function listContractDeploymentsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContractDeploymentsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContractDeploymentsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListContractDeploymentsRequest$inboundSchema: z.ZodType< - ListContractDeploymentsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListContractDeploymentsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListContractDeploymentsRequest$outboundSchema: z.ZodType< - ListContractDeploymentsRequest$Outbound, - z.ZodTypeDef, - ListContractDeploymentsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContractDeploymentsRequest$ { - /** @deprecated use `ListContractDeploymentsRequest$inboundSchema` instead. */ - export const inboundSchema = ListContractDeploymentsRequest$inboundSchema; - /** @deprecated use `ListContractDeploymentsRequest$outboundSchema` instead. */ - export const outboundSchema = ListContractDeploymentsRequest$outboundSchema; - /** @deprecated use `ListContractDeploymentsRequest$Outbound` instead. */ - export type Outbound = ListContractDeploymentsRequest$Outbound; -} - -export function listContractDeploymentsRequestToJSON( - listContractDeploymentsRequest: ListContractDeploymentsRequest, -): string { - return JSON.stringify( - ListContractDeploymentsRequest$outboundSchema.parse( - listContractDeploymentsRequest, - ), - ); -} - -export function listContractDeploymentsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContractDeploymentsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContractDeploymentsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListContractDeploymentsResponse$inboundSchema: z.ZodType< - ListContractDeploymentsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListContractsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListContractDeploymentsResponse$Outbound = { - Result: components.ListContractsResponse$Outbound; -}; - -/** @internal */ -export const ListContractDeploymentsResponse$outboundSchema: z.ZodType< - ListContractDeploymentsResponse$Outbound, - z.ZodTypeDef, - ListContractDeploymentsResponse -> = z.object({ - result: components.ListContractsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListContractDeploymentsResponse$ { - /** @deprecated use `ListContractDeploymentsResponse$inboundSchema` instead. */ - export const inboundSchema = ListContractDeploymentsResponse$inboundSchema; - /** @deprecated use `ListContractDeploymentsResponse$outboundSchema` instead. */ - export const outboundSchema = ListContractDeploymentsResponse$outboundSchema; - /** @deprecated use `ListContractDeploymentsResponse$Outbound` instead. */ - export type Outbound = ListContractDeploymentsResponse$Outbound; -} - -export function listContractDeploymentsResponseToJSON( - listContractDeploymentsResponse: ListContractDeploymentsResponse, -): string { - return JSON.stringify( - ListContractDeploymentsResponse$outboundSchema.parse( - listContractDeploymentsResponse, - ), - ); -} - -export function listContractDeploymentsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListContractDeploymentsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListContractDeploymentsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listdelegators.ts b/data/src/models/operations/listdelegators.ts deleted file mode 100644 index bee289ae..00000000 --- a/data/src/models/operations/listdelegators.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListDelegatorsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListDelegatorsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A comma separated list of reward addresses to filter by. - */ - rewardAddresses?: string | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; - /** - * Delegation status of the node. - */ - delegationStatus?: components.DelegationStatusType | undefined; - /** - * A comma separated list of node ids to filter by. - */ - nodeIds?: string | undefined; -}; - -export type ListDelegatorsResponse = { - result: components.ListDelegatorDetailsResponse; -}; - -/** @internal */ -export const ListDelegatorsGlobals$inboundSchema: z.ZodType< - ListDelegatorsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListDelegatorsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListDelegatorsGlobals$outboundSchema: z.ZodType< - ListDelegatorsGlobals$Outbound, - z.ZodTypeDef, - ListDelegatorsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDelegatorsGlobals$ { - /** @deprecated use `ListDelegatorsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListDelegatorsGlobals$inboundSchema; - /** @deprecated use `ListDelegatorsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListDelegatorsGlobals$outboundSchema; - /** @deprecated use `ListDelegatorsGlobals$Outbound` instead. */ - export type Outbound = ListDelegatorsGlobals$Outbound; -} - -export function listDelegatorsGlobalsToJSON( - listDelegatorsGlobals: ListDelegatorsGlobals, -): string { - return JSON.stringify( - ListDelegatorsGlobals$outboundSchema.parse(listDelegatorsGlobals), - ); -} - -export function listDelegatorsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDelegatorsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDelegatorsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListDelegatorsRequest$inboundSchema: z.ZodType< - ListDelegatorsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - rewardAddresses: z.string().optional(), - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), - delegationStatus: components.DelegationStatusType$inboundSchema.optional(), - nodeIds: z.string().optional(), -}); - -/** @internal */ -export type ListDelegatorsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - rewardAddresses?: string | undefined; - network?: string | undefined; - sortOrder?: string | undefined; - delegationStatus?: string | undefined; - nodeIds?: string | undefined; -}; - -/** @internal */ -export const ListDelegatorsRequest$outboundSchema: z.ZodType< - ListDelegatorsRequest$Outbound, - z.ZodTypeDef, - ListDelegatorsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - rewardAddresses: z.string().optional(), - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), - delegationStatus: components.DelegationStatusType$outboundSchema.optional(), - nodeIds: 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 ListDelegatorsRequest$ { - /** @deprecated use `ListDelegatorsRequest$inboundSchema` instead. */ - export const inboundSchema = ListDelegatorsRequest$inboundSchema; - /** @deprecated use `ListDelegatorsRequest$outboundSchema` instead. */ - export const outboundSchema = ListDelegatorsRequest$outboundSchema; - /** @deprecated use `ListDelegatorsRequest$Outbound` instead. */ - export type Outbound = ListDelegatorsRequest$Outbound; -} - -export function listDelegatorsRequestToJSON( - listDelegatorsRequest: ListDelegatorsRequest, -): string { - return JSON.stringify( - ListDelegatorsRequest$outboundSchema.parse(listDelegatorsRequest), - ); -} - -export function listDelegatorsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDelegatorsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDelegatorsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListDelegatorsResponse$inboundSchema: z.ZodType< - ListDelegatorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListDelegatorDetailsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListDelegatorsResponse$Outbound = { - Result: components.ListDelegatorDetailsResponse$Outbound; -}; - -/** @internal */ -export const ListDelegatorsResponse$outboundSchema: z.ZodType< - ListDelegatorsResponse$Outbound, - z.ZodTypeDef, - ListDelegatorsResponse -> = z.object({ - result: components.ListDelegatorDetailsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListDelegatorsResponse$ { - /** @deprecated use `ListDelegatorsResponse$inboundSchema` instead. */ - export const inboundSchema = ListDelegatorsResponse$inboundSchema; - /** @deprecated use `ListDelegatorsResponse$outboundSchema` instead. */ - export const outboundSchema = ListDelegatorsResponse$outboundSchema; - /** @deprecated use `ListDelegatorsResponse$Outbound` instead. */ - export type Outbound = ListDelegatorsResponse$Outbound; -} - -export function listDelegatorsResponseToJSON( - listDelegatorsResponse: ListDelegatorsResponse, -): string { - return JSON.stringify( - ListDelegatorsResponse$outboundSchema.parse(listDelegatorsResponse), - ); -} - -export function listDelegatorsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListDelegatorsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListDelegatorsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc1155balances.ts b/data/src/models/operations/listerc1155balances.ts deleted file mode 100644 index bc161330..00000000 --- a/data/src/models/operations/listerc1155balances.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc1155BalancesGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc1155BalancesRequest = { - /** - * The block number, if not defined the block number will be the latest block. - */ - blockNumber?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * A contract addresses to filter by. - */ - contractAddress?: string | undefined; -}; - -export type ListErc1155BalancesResponse = { - result: components.ListErc1155BalancesResponse; -}; - -/** @internal */ -export const ListErc1155BalancesGlobals$inboundSchema: z.ZodType< - ListErc1155BalancesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc1155BalancesGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc1155BalancesGlobals$outboundSchema: z.ZodType< - ListErc1155BalancesGlobals$Outbound, - z.ZodTypeDef, - ListErc1155BalancesGlobals -> = z.object({ - chainId: 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 ListErc1155BalancesGlobals$ { - /** @deprecated use `ListErc1155BalancesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc1155BalancesGlobals$inboundSchema; - /** @deprecated use `ListErc1155BalancesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc1155BalancesGlobals$outboundSchema; - /** @deprecated use `ListErc1155BalancesGlobals$Outbound` instead. */ - export type Outbound = ListErc1155BalancesGlobals$Outbound; -} - -export function listErc1155BalancesGlobalsToJSON( - listErc1155BalancesGlobals: ListErc1155BalancesGlobals, -): string { - return JSON.stringify( - ListErc1155BalancesGlobals$outboundSchema.parse(listErc1155BalancesGlobals), - ); -} - -export function listErc1155BalancesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155BalancesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155BalancesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc1155BalancesRequest$inboundSchema: z.ZodType< - ListErc1155BalancesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: z.string().optional(), -}); - -/** @internal */ -export type ListErc1155BalancesRequest$Outbound = { - blockNumber?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; - contractAddress?: string | undefined; -}; - -/** @internal */ -export const ListErc1155BalancesRequest$outboundSchema: z.ZodType< - ListErc1155BalancesRequest$Outbound, - z.ZodTypeDef, - ListErc1155BalancesRequest -> = z.object({ - blockNumber: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: 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 ListErc1155BalancesRequest$ { - /** @deprecated use `ListErc1155BalancesRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc1155BalancesRequest$inboundSchema; - /** @deprecated use `ListErc1155BalancesRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc1155BalancesRequest$outboundSchema; - /** @deprecated use `ListErc1155BalancesRequest$Outbound` instead. */ - export type Outbound = ListErc1155BalancesRequest$Outbound; -} - -export function listErc1155BalancesRequestToJSON( - listErc1155BalancesRequest: ListErc1155BalancesRequest, -): string { - return JSON.stringify( - ListErc1155BalancesRequest$outboundSchema.parse(listErc1155BalancesRequest), - ); -} - -export function listErc1155BalancesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155BalancesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155BalancesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc1155BalancesResponse$inboundSchema: z.ZodType< - ListErc1155BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc1155BalancesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc1155BalancesResponse$Outbound = { - Result: components.ListErc1155BalancesResponse$Outbound; -}; - -/** @internal */ -export const ListErc1155BalancesResponse$outboundSchema: z.ZodType< - ListErc1155BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc1155BalancesResponse -> = z.object({ - result: components.ListErc1155BalancesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc1155BalancesResponse$ { - /** @deprecated use `ListErc1155BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc1155BalancesResponse$inboundSchema; - /** @deprecated use `ListErc1155BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc1155BalancesResponse$outboundSchema; - /** @deprecated use `ListErc1155BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc1155BalancesResponse$Outbound; -} - -export function listErc1155BalancesResponseToJSON( - listErc1155BalancesResponse: ListErc1155BalancesResponse, -): string { - return JSON.stringify( - ListErc1155BalancesResponse$outboundSchema.parse( - listErc1155BalancesResponse, - ), - ); -} - -export function listErc1155BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc1155transactions.ts b/data/src/models/operations/listerc1155transactions.ts deleted file mode 100644 index 2f8ed837..00000000 --- a/data/src/models/operations/listerc1155transactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc1155TransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc1155TransactionsRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListErc1155TransactionsResponse = { - result: components.ListErc1155TransactionsResponse; -}; - -/** @internal */ -export const ListErc1155TransactionsGlobals$inboundSchema: z.ZodType< - ListErc1155TransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc1155TransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc1155TransactionsGlobals$outboundSchema: z.ZodType< - ListErc1155TransactionsGlobals$Outbound, - z.ZodTypeDef, - ListErc1155TransactionsGlobals -> = z.object({ - chainId: 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 ListErc1155TransactionsGlobals$ { - /** @deprecated use `ListErc1155TransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc1155TransactionsGlobals$inboundSchema; - /** @deprecated use `ListErc1155TransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc1155TransactionsGlobals$outboundSchema; - /** @deprecated use `ListErc1155TransactionsGlobals$Outbound` instead. */ - export type Outbound = ListErc1155TransactionsGlobals$Outbound; -} - -export function listErc1155TransactionsGlobalsToJSON( - listErc1155TransactionsGlobals: ListErc1155TransactionsGlobals, -): string { - return JSON.stringify( - ListErc1155TransactionsGlobals$outboundSchema.parse( - listErc1155TransactionsGlobals, - ), - ); -} - -export function listErc1155TransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155TransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155TransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc1155TransactionsRequest$inboundSchema: z.ZodType< - ListErc1155TransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListErc1155TransactionsRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListErc1155TransactionsRequest$outboundSchema: z.ZodType< - ListErc1155TransactionsRequest$Outbound, - z.ZodTypeDef, - ListErc1155TransactionsRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc1155TransactionsRequest$ { - /** @deprecated use `ListErc1155TransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc1155TransactionsRequest$inboundSchema; - /** @deprecated use `ListErc1155TransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc1155TransactionsRequest$outboundSchema; - /** @deprecated use `ListErc1155TransactionsRequest$Outbound` instead. */ - export type Outbound = ListErc1155TransactionsRequest$Outbound; -} - -export function listErc1155TransactionsRequestToJSON( - listErc1155TransactionsRequest: ListErc1155TransactionsRequest, -): string { - return JSON.stringify( - ListErc1155TransactionsRequest$outboundSchema.parse( - listErc1155TransactionsRequest, - ), - ); -} - -export function listErc1155TransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155TransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155TransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc1155TransactionsResponse$inboundSchema: z.ZodType< - ListErc1155TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc1155TransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc1155TransactionsResponse$Outbound = { - Result: components.ListErc1155TransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListErc1155TransactionsResponse$outboundSchema: z.ZodType< - ListErc1155TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc1155TransactionsResponse -> = z.object({ - result: components.ListErc1155TransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc1155TransactionsResponse$ { - /** @deprecated use `ListErc1155TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc1155TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc1155TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc1155TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc1155TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc1155TransactionsResponse$Outbound; -} - -export function listErc1155TransactionsResponseToJSON( - listErc1155TransactionsResponse: ListErc1155TransactionsResponse, -): string { - return JSON.stringify( - ListErc1155TransactionsResponse$outboundSchema.parse( - listErc1155TransactionsResponse, - ), - ); -} - -export function listErc1155TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc1155TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc1155TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc20balances.ts b/data/src/models/operations/listerc20balances.ts deleted file mode 100644 index 9686d029..00000000 --- a/data/src/models/operations/listerc20balances.ts +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc20BalancesGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc20BalancesRequest = { - /** - * The block number, if not defined the block number will be the latest block. - */ - blockNumber?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500. - */ - pageSize?: number | undefined; - /** - * whether to filter out spam tokens from the response. Default is true. - */ - filterSpamTokens?: boolean | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * A comma separated list of contract addresses to filter by. - */ - contractAddresses?: string | undefined; - /** - * The currency that return values should use. Defaults to USD. - */ - currency?: components.CurrencyCode | undefined; -}; - -export type ListErc20BalancesResponse = { - result: components.ListErc20BalancesResponse; -}; - -/** @internal */ -export const ListErc20BalancesGlobals$inboundSchema: z.ZodType< - ListErc20BalancesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc20BalancesGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc20BalancesGlobals$outboundSchema: z.ZodType< - ListErc20BalancesGlobals$Outbound, - z.ZodTypeDef, - ListErc20BalancesGlobals -> = z.object({ - chainId: 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 ListErc20BalancesGlobals$ { - /** @deprecated use `ListErc20BalancesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc20BalancesGlobals$inboundSchema; - /** @deprecated use `ListErc20BalancesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc20BalancesGlobals$outboundSchema; - /** @deprecated use `ListErc20BalancesGlobals$Outbound` instead. */ - export type Outbound = ListErc20BalancesGlobals$Outbound; -} - -export function listErc20BalancesGlobalsToJSON( - listErc20BalancesGlobals: ListErc20BalancesGlobals, -): string { - return JSON.stringify( - ListErc20BalancesGlobals$outboundSchema.parse(listErc20BalancesGlobals), - ); -} - -export function listErc20BalancesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20BalancesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20BalancesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc20BalancesRequest$inboundSchema: z.ZodType< - ListErc20BalancesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - blockNumber: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - filterSpamTokens: z.boolean().default(true), - chainId: z.string().optional(), - address: z.string(), - contractAddresses: z.string().optional(), - currency: components.CurrencyCode$inboundSchema.optional(), -}); - -/** @internal */ -export type ListErc20BalancesRequest$Outbound = { - blockNumber?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - filterSpamTokens: boolean; - chainId?: string | undefined; - address: string; - contractAddresses?: string | undefined; - currency?: string | undefined; -}; - -/** @internal */ -export const ListErc20BalancesRequest$outboundSchema: z.ZodType< - ListErc20BalancesRequest$Outbound, - z.ZodTypeDef, - ListErc20BalancesRequest -> = z.object({ - blockNumber: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - filterSpamTokens: z.boolean().default(true), - chainId: z.string().optional(), - address: z.string(), - contractAddresses: z.string().optional(), - currency: components.CurrencyCode$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20BalancesRequest$ { - /** @deprecated use `ListErc20BalancesRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc20BalancesRequest$inboundSchema; - /** @deprecated use `ListErc20BalancesRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc20BalancesRequest$outboundSchema; - /** @deprecated use `ListErc20BalancesRequest$Outbound` instead. */ - export type Outbound = ListErc20BalancesRequest$Outbound; -} - -export function listErc20BalancesRequestToJSON( - listErc20BalancesRequest: ListErc20BalancesRequest, -): string { - return JSON.stringify( - ListErc20BalancesRequest$outboundSchema.parse(listErc20BalancesRequest), - ); -} - -export function listErc20BalancesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20BalancesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20BalancesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc20BalancesResponse$inboundSchema: z.ZodType< - ListErc20BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc20BalancesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc20BalancesResponse$Outbound = { - Result: components.ListErc20BalancesResponse$Outbound; -}; - -/** @internal */ -export const ListErc20BalancesResponse$outboundSchema: z.ZodType< - ListErc20BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc20BalancesResponse -> = z.object({ - result: components.ListErc20BalancesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20BalancesResponse$ { - /** @deprecated use `ListErc20BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc20BalancesResponse$inboundSchema; - /** @deprecated use `ListErc20BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc20BalancesResponse$outboundSchema; - /** @deprecated use `ListErc20BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc20BalancesResponse$Outbound; -} - -export function listErc20BalancesResponseToJSON( - listErc20BalancesResponse: ListErc20BalancesResponse, -): string { - return JSON.stringify( - ListErc20BalancesResponse$outboundSchema.parse(listErc20BalancesResponse), - ); -} - -export function listErc20BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc20transactions.ts b/data/src/models/operations/listerc20transactions.ts deleted file mode 100644 index 79569509..00000000 --- a/data/src/models/operations/listerc20transactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc20TransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc20TransactionsRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListErc20TransactionsResponse = { - result: components.ListErc20TransactionsResponse; -}; - -/** @internal */ -export const ListErc20TransactionsGlobals$inboundSchema: z.ZodType< - ListErc20TransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc20TransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc20TransactionsGlobals$outboundSchema: z.ZodType< - ListErc20TransactionsGlobals$Outbound, - z.ZodTypeDef, - ListErc20TransactionsGlobals -> = z.object({ - chainId: 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 ListErc20TransactionsGlobals$ { - /** @deprecated use `ListErc20TransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc20TransactionsGlobals$inboundSchema; - /** @deprecated use `ListErc20TransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc20TransactionsGlobals$outboundSchema; - /** @deprecated use `ListErc20TransactionsGlobals$Outbound` instead. */ - export type Outbound = ListErc20TransactionsGlobals$Outbound; -} - -export function listErc20TransactionsGlobalsToJSON( - listErc20TransactionsGlobals: ListErc20TransactionsGlobals, -): string { - return JSON.stringify( - ListErc20TransactionsGlobals$outboundSchema.parse( - listErc20TransactionsGlobals, - ), - ); -} - -export function listErc20TransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20TransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20TransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc20TransactionsRequest$inboundSchema: z.ZodType< - ListErc20TransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListErc20TransactionsRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListErc20TransactionsRequest$outboundSchema: z.ZodType< - ListErc20TransactionsRequest$Outbound, - z.ZodTypeDef, - ListErc20TransactionsRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20TransactionsRequest$ { - /** @deprecated use `ListErc20TransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc20TransactionsRequest$inboundSchema; - /** @deprecated use `ListErc20TransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc20TransactionsRequest$outboundSchema; - /** @deprecated use `ListErc20TransactionsRequest$Outbound` instead. */ - export type Outbound = ListErc20TransactionsRequest$Outbound; -} - -export function listErc20TransactionsRequestToJSON( - listErc20TransactionsRequest: ListErc20TransactionsRequest, -): string { - return JSON.stringify( - ListErc20TransactionsRequest$outboundSchema.parse( - listErc20TransactionsRequest, - ), - ); -} - -export function listErc20TransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20TransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20TransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc20TransactionsResponse$inboundSchema: z.ZodType< - ListErc20TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc20TransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc20TransactionsResponse$Outbound = { - Result: components.ListErc20TransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListErc20TransactionsResponse$outboundSchema: z.ZodType< - ListErc20TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc20TransactionsResponse -> = z.object({ - result: components.ListErc20TransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc20TransactionsResponse$ { - /** @deprecated use `ListErc20TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc20TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc20TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc20TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc20TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc20TransactionsResponse$Outbound; -} - -export function listErc20TransactionsResponseToJSON( - listErc20TransactionsResponse: ListErc20TransactionsResponse, -): string { - return JSON.stringify( - ListErc20TransactionsResponse$outboundSchema.parse( - listErc20TransactionsResponse, - ), - ); -} - -export function listErc20TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc20TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc20TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc721balances.ts b/data/src/models/operations/listerc721balances.ts deleted file mode 100644 index b4fa0bf6..00000000 --- a/data/src/models/operations/listerc721balances.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc721BalancesGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc721BalancesRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * A contract addresses to filter by. - */ - contractAddress?: string | undefined; -}; - -export type ListErc721BalancesResponse = { - result: components.ListErc721BalancesResponse; -}; - -/** @internal */ -export const ListErc721BalancesGlobals$inboundSchema: z.ZodType< - ListErc721BalancesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc721BalancesGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc721BalancesGlobals$outboundSchema: z.ZodType< - ListErc721BalancesGlobals$Outbound, - z.ZodTypeDef, - ListErc721BalancesGlobals -> = z.object({ - chainId: 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 ListErc721BalancesGlobals$ { - /** @deprecated use `ListErc721BalancesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc721BalancesGlobals$inboundSchema; - /** @deprecated use `ListErc721BalancesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc721BalancesGlobals$outboundSchema; - /** @deprecated use `ListErc721BalancesGlobals$Outbound` instead. */ - export type Outbound = ListErc721BalancesGlobals$Outbound; -} - -export function listErc721BalancesGlobalsToJSON( - listErc721BalancesGlobals: ListErc721BalancesGlobals, -): string { - return JSON.stringify( - ListErc721BalancesGlobals$outboundSchema.parse(listErc721BalancesGlobals), - ); -} - -export function listErc721BalancesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721BalancesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721BalancesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc721BalancesRequest$inboundSchema: z.ZodType< - ListErc721BalancesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: z.string().optional(), -}); - -/** @internal */ -export type ListErc721BalancesRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; - contractAddress?: string | undefined; -}; - -/** @internal */ -export const ListErc721BalancesRequest$outboundSchema: z.ZodType< - ListErc721BalancesRequest$Outbound, - z.ZodTypeDef, - ListErc721BalancesRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), - contractAddress: 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 ListErc721BalancesRequest$ { - /** @deprecated use `ListErc721BalancesRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc721BalancesRequest$inboundSchema; - /** @deprecated use `ListErc721BalancesRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc721BalancesRequest$outboundSchema; - /** @deprecated use `ListErc721BalancesRequest$Outbound` instead. */ - export type Outbound = ListErc721BalancesRequest$Outbound; -} - -export function listErc721BalancesRequestToJSON( - listErc721BalancesRequest: ListErc721BalancesRequest, -): string { - return JSON.stringify( - ListErc721BalancesRequest$outboundSchema.parse(listErc721BalancesRequest), - ); -} - -export function listErc721BalancesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721BalancesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721BalancesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc721BalancesResponse$inboundSchema: z.ZodType< - ListErc721BalancesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc721BalancesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc721BalancesResponse$Outbound = { - Result: components.ListErc721BalancesResponse$Outbound; -}; - -/** @internal */ -export const ListErc721BalancesResponse$outboundSchema: z.ZodType< - ListErc721BalancesResponse$Outbound, - z.ZodTypeDef, - ListErc721BalancesResponse -> = z.object({ - result: components.ListErc721BalancesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc721BalancesResponse$ { - /** @deprecated use `ListErc721BalancesResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc721BalancesResponse$inboundSchema; - /** @deprecated use `ListErc721BalancesResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc721BalancesResponse$outboundSchema; - /** @deprecated use `ListErc721BalancesResponse$Outbound` instead. */ - export type Outbound = ListErc721BalancesResponse$Outbound; -} - -export function listErc721BalancesResponseToJSON( - listErc721BalancesResponse: ListErc721BalancesResponse, -): string { - return JSON.stringify( - ListErc721BalancesResponse$outboundSchema.parse(listErc721BalancesResponse), - ); -} - -export function listErc721BalancesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721BalancesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721BalancesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listerc721transactions.ts b/data/src/models/operations/listerc721transactions.ts deleted file mode 100644 index 1d0f0689..00000000 --- a/data/src/models/operations/listerc721transactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListErc721TransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListErc721TransactionsRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListErc721TransactionsResponse = { - result: components.ListErc721TransactionsResponse; -}; - -/** @internal */ -export const ListErc721TransactionsGlobals$inboundSchema: z.ZodType< - ListErc721TransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListErc721TransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListErc721TransactionsGlobals$outboundSchema: z.ZodType< - ListErc721TransactionsGlobals$Outbound, - z.ZodTypeDef, - ListErc721TransactionsGlobals -> = z.object({ - chainId: 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 ListErc721TransactionsGlobals$ { - /** @deprecated use `ListErc721TransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListErc721TransactionsGlobals$inboundSchema; - /** @deprecated use `ListErc721TransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListErc721TransactionsGlobals$outboundSchema; - /** @deprecated use `ListErc721TransactionsGlobals$Outbound` instead. */ - export type Outbound = ListErc721TransactionsGlobals$Outbound; -} - -export function listErc721TransactionsGlobalsToJSON( - listErc721TransactionsGlobals: ListErc721TransactionsGlobals, -): string { - return JSON.stringify( - ListErc721TransactionsGlobals$outboundSchema.parse( - listErc721TransactionsGlobals, - ), - ); -} - -export function listErc721TransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721TransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721TransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListErc721TransactionsRequest$inboundSchema: z.ZodType< - ListErc721TransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListErc721TransactionsRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListErc721TransactionsRequest$outboundSchema: z.ZodType< - ListErc721TransactionsRequest$Outbound, - z.ZodTypeDef, - ListErc721TransactionsRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc721TransactionsRequest$ { - /** @deprecated use `ListErc721TransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListErc721TransactionsRequest$inboundSchema; - /** @deprecated use `ListErc721TransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListErc721TransactionsRequest$outboundSchema; - /** @deprecated use `ListErc721TransactionsRequest$Outbound` instead. */ - export type Outbound = ListErc721TransactionsRequest$Outbound; -} - -export function listErc721TransactionsRequestToJSON( - listErc721TransactionsRequest: ListErc721TransactionsRequest, -): string { - return JSON.stringify( - ListErc721TransactionsRequest$outboundSchema.parse( - listErc721TransactionsRequest, - ), - ); -} - -export function listErc721TransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721TransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721TransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListErc721TransactionsResponse$inboundSchema: z.ZodType< - ListErc721TransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListErc721TransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListErc721TransactionsResponse$Outbound = { - Result: components.ListErc721TransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListErc721TransactionsResponse$outboundSchema: z.ZodType< - ListErc721TransactionsResponse$Outbound, - z.ZodTypeDef, - ListErc721TransactionsResponse -> = z.object({ - result: components.ListErc721TransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListErc721TransactionsResponse$ { - /** @deprecated use `ListErc721TransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListErc721TransactionsResponse$inboundSchema; - /** @deprecated use `ListErc721TransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListErc721TransactionsResponse$outboundSchema; - /** @deprecated use `ListErc721TransactionsResponse$Outbound` instead. */ - export type Outbound = ListErc721TransactionsResponse$Outbound; -} - -export function listErc721TransactionsResponseToJSON( - listErc721TransactionsResponse: ListErc721TransactionsResponse, -): string { - return JSON.stringify( - ListErc721TransactionsResponse$outboundSchema.parse( - listErc721TransactionsResponse, - ), - ); -} - -export function listErc721TransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListErc721TransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListErc721TransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listhistoricalprimarynetworkrewards.ts b/data/src/models/operations/listhistoricalprimarynetworkrewards.ts deleted file mode 100644 index 46085f43..00000000 --- a/data/src/models/operations/listhistoricalprimarynetworkrewards.ts +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListHistoricalPrimaryNetworkRewardsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListHistoricalPrimaryNetworkRewardsRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required. - */ - addresses?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required. - */ - nodeIds?: string | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; - /** - * The currency that return values should use. Defaults to USD. - */ - currency?: components.CurrencyCode | undefined; -}; - -export type ListHistoricalPrimaryNetworkRewardsResponse = { - result: components.ListHistoricalRewardsResponse; -}; - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsGlobals$inboundSchema: - z.ZodType = - z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - }); - -/** @internal */ -export type ListHistoricalPrimaryNetworkRewardsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsGlobals$outboundSchema: - z.ZodType< - ListHistoricalPrimaryNetworkRewardsGlobals$Outbound, - z.ZodTypeDef, - ListHistoricalPrimaryNetworkRewardsGlobals - > = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHistoricalPrimaryNetworkRewardsGlobals$ { - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListHistoricalPrimaryNetworkRewardsGlobals$inboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListHistoricalPrimaryNetworkRewardsGlobals$outboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsGlobals$Outbound` instead. */ - export type Outbound = ListHistoricalPrimaryNetworkRewardsGlobals$Outbound; -} - -export function listHistoricalPrimaryNetworkRewardsGlobalsToJSON( - listHistoricalPrimaryNetworkRewardsGlobals: - ListHistoricalPrimaryNetworkRewardsGlobals, -): string { - return JSON.stringify( - ListHistoricalPrimaryNetworkRewardsGlobals$outboundSchema.parse( - listHistoricalPrimaryNetworkRewardsGlobals, - ), - ); -} - -export function listHistoricalPrimaryNetworkRewardsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - ListHistoricalPrimaryNetworkRewardsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListHistoricalPrimaryNetworkRewardsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListHistoricalPrimaryNetworkRewardsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema: - z.ZodType = - z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeIds: z.string().optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), - currency: components.CurrencyCode$inboundSchema.optional(), - }); - -/** @internal */ -export type ListHistoricalPrimaryNetworkRewardsRequest$Outbound = { - addresses?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - nodeIds?: string | undefined; - sortOrder?: string | undefined; - currency?: string | undefined; -}; - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema: - z.ZodType< - ListHistoricalPrimaryNetworkRewardsRequest$Outbound, - z.ZodTypeDef, - ListHistoricalPrimaryNetworkRewardsRequest - > = z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeIds: z.string().optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), - currency: components.CurrencyCode$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHistoricalPrimaryNetworkRewardsRequest$ { - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema` instead. */ - export const inboundSchema = - ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema` instead. */ - export const outboundSchema = - ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsRequest$Outbound` instead. */ - export type Outbound = ListHistoricalPrimaryNetworkRewardsRequest$Outbound; -} - -export function listHistoricalPrimaryNetworkRewardsRequestToJSON( - listHistoricalPrimaryNetworkRewardsRequest: - ListHistoricalPrimaryNetworkRewardsRequest, -): string { - return JSON.stringify( - ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema.parse( - listHistoricalPrimaryNetworkRewardsRequest, - ), - ); -} - -export function listHistoricalPrimaryNetworkRewardsRequestFromJSON( - jsonString: string, -): SafeParseResult< - ListHistoricalPrimaryNetworkRewardsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListHistoricalPrimaryNetworkRewardsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema: - z.ZodType< - ListHistoricalPrimaryNetworkRewardsResponse, - z.ZodTypeDef, - unknown - > = z.object({ - Result: components.ListHistoricalRewardsResponse$inboundSchema, - }).transform((v) => { - return remap$(v, { - "Result": "result", - }); - }); - -/** @internal */ -export type ListHistoricalPrimaryNetworkRewardsResponse$Outbound = { - Result: components.ListHistoricalRewardsResponse$Outbound; -}; - -/** @internal */ -export const ListHistoricalPrimaryNetworkRewardsResponse$outboundSchema: - z.ZodType< - ListHistoricalPrimaryNetworkRewardsResponse$Outbound, - z.ZodTypeDef, - ListHistoricalPrimaryNetworkRewardsResponse - > = z.object({ - result: components.ListHistoricalRewardsResponse$outboundSchema, - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListHistoricalPrimaryNetworkRewardsResponse$ { - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListHistoricalPrimaryNetworkRewardsResponse$outboundSchema; - /** @deprecated use `ListHistoricalPrimaryNetworkRewardsResponse$Outbound` instead. */ - export type Outbound = ListHistoricalPrimaryNetworkRewardsResponse$Outbound; -} - -export function listHistoricalPrimaryNetworkRewardsResponseToJSON( - listHistoricalPrimaryNetworkRewardsResponse: - ListHistoricalPrimaryNetworkRewardsResponse, -): string { - return JSON.stringify( - ListHistoricalPrimaryNetworkRewardsResponse$outboundSchema.parse( - listHistoricalPrimaryNetworkRewardsResponse, - ), - ); -} - -export function listHistoricalPrimaryNetworkRewardsResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListHistoricalPrimaryNetworkRewardsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListHistoricalPrimaryNetworkRewardsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listicmmessages.ts b/data/src/models/operations/listicmmessages.ts deleted file mode 100644 index 4b7ed16d..00000000 --- a/data/src/models/operations/listicmmessages.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListIcmMessagesRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from. - */ - sourceBlockchainId?: string | undefined; - /** - * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to. - */ - destinationBlockchainId?: string | undefined; - /** - * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with. - */ - blockchainId?: string | undefined; - /** - * The address of the recipient of the ICM message. - */ - to?: string | undefined; - /** - * The address of the sender of the ICM message. - */ - from?: string | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type ListIcmMessagesResponse = { - result: components.ListIcmMessagesResponse; -}; - -/** @internal */ -export const ListIcmMessagesRequest$inboundSchema: z.ZodType< - ListIcmMessagesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - sourceBlockchainId: z.string().optional(), - destinationBlockchainId: z.string().optional(), - blockchainId: z.string().optional(), - to: z.string().optional(), - from: z.string().optional(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListIcmMessagesRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - sourceBlockchainId?: string | undefined; - destinationBlockchainId?: string | undefined; - blockchainId?: string | undefined; - to?: string | undefined; - from?: string | undefined; - network?: string | undefined; -}; - -/** @internal */ -export const ListIcmMessagesRequest$outboundSchema: z.ZodType< - ListIcmMessagesRequest$Outbound, - z.ZodTypeDef, - ListIcmMessagesRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - sourceBlockchainId: z.string().optional(), - destinationBlockchainId: z.string().optional(), - blockchainId: z.string().optional(), - to: z.string().optional(), - from: z.string().optional(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListIcmMessagesRequest$ { - /** @deprecated use `ListIcmMessagesRequest$inboundSchema` instead. */ - export const inboundSchema = ListIcmMessagesRequest$inboundSchema; - /** @deprecated use `ListIcmMessagesRequest$outboundSchema` instead. */ - export const outboundSchema = ListIcmMessagesRequest$outboundSchema; - /** @deprecated use `ListIcmMessagesRequest$Outbound` instead. */ - export type Outbound = ListIcmMessagesRequest$Outbound; -} - -export function listIcmMessagesRequestToJSON( - listIcmMessagesRequest: ListIcmMessagesRequest, -): string { - return JSON.stringify( - ListIcmMessagesRequest$outboundSchema.parse(listIcmMessagesRequest), - ); -} - -export function listIcmMessagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListIcmMessagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListIcmMessagesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListIcmMessagesResponse$inboundSchema: z.ZodType< - ListIcmMessagesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListIcmMessagesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListIcmMessagesResponse$Outbound = { - Result: components.ListIcmMessagesResponse$Outbound; -}; - -/** @internal */ -export const ListIcmMessagesResponse$outboundSchema: z.ZodType< - ListIcmMessagesResponse$Outbound, - z.ZodTypeDef, - ListIcmMessagesResponse -> = z.object({ - result: components.ListIcmMessagesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListIcmMessagesResponse$ { - /** @deprecated use `ListIcmMessagesResponse$inboundSchema` instead. */ - export const inboundSchema = ListIcmMessagesResponse$inboundSchema; - /** @deprecated use `ListIcmMessagesResponse$outboundSchema` instead. */ - export const outboundSchema = ListIcmMessagesResponse$outboundSchema; - /** @deprecated use `ListIcmMessagesResponse$Outbound` instead. */ - export type Outbound = ListIcmMessagesResponse$Outbound; -} - -export function listIcmMessagesResponseToJSON( - listIcmMessagesResponse: ListIcmMessagesResponse, -): string { - return JSON.stringify( - ListIcmMessagesResponse$outboundSchema.parse(listIcmMessagesResponse), - ); -} - -export function listIcmMessagesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListIcmMessagesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListIcmMessagesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listicmmessagesbyaddress.ts b/data/src/models/operations/listicmmessagesbyaddress.ts deleted file mode 100644 index 5ff7fd19..00000000 --- a/data/src/models/operations/listicmmessagesbyaddress.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListIcmMessagesByAddressRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * An EVM address. - */ - address: string; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -/** @internal */ -export const ListIcmMessagesByAddressRequest$inboundSchema: z.ZodType< - ListIcmMessagesByAddressRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - address: z.string(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListIcmMessagesByAddressRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - address: string; - network?: string | undefined; -}; - -/** @internal */ -export const ListIcmMessagesByAddressRequest$outboundSchema: z.ZodType< - ListIcmMessagesByAddressRequest$Outbound, - z.ZodTypeDef, - ListIcmMessagesByAddressRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - address: z.string(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListIcmMessagesByAddressRequest$ { - /** @deprecated use `ListIcmMessagesByAddressRequest$inboundSchema` instead. */ - export const inboundSchema = ListIcmMessagesByAddressRequest$inboundSchema; - /** @deprecated use `ListIcmMessagesByAddressRequest$outboundSchema` instead. */ - export const outboundSchema = ListIcmMessagesByAddressRequest$outboundSchema; - /** @deprecated use `ListIcmMessagesByAddressRequest$Outbound` instead. */ - export type Outbound = ListIcmMessagesByAddressRequest$Outbound; -} - -export function listIcmMessagesByAddressRequestToJSON( - listIcmMessagesByAddressRequest: ListIcmMessagesByAddressRequest, -): string { - return JSON.stringify( - ListIcmMessagesByAddressRequest$outboundSchema.parse( - listIcmMessagesByAddressRequest, - ), - ); -} - -export function listIcmMessagesByAddressRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListIcmMessagesByAddressRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListIcmMessagesByAddressRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/listinternaltransactions.ts b/data/src/models/operations/listinternaltransactions.ts deleted file mode 100644 index 8f1d3266..00000000 --- a/data/src/models/operations/listinternaltransactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListInternalTransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListInternalTransactionsRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListInternalTransactionsResponse = { - result: components.ListInternalTransactionsResponse; -}; - -/** @internal */ -export const ListInternalTransactionsGlobals$inboundSchema: z.ZodType< - ListInternalTransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListInternalTransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListInternalTransactionsGlobals$outboundSchema: z.ZodType< - ListInternalTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListInternalTransactionsGlobals -> = z.object({ - chainId: 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 ListInternalTransactionsGlobals$ { - /** @deprecated use `ListInternalTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListInternalTransactionsGlobals$inboundSchema; - /** @deprecated use `ListInternalTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListInternalTransactionsGlobals$outboundSchema; - /** @deprecated use `ListInternalTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListInternalTransactionsGlobals$Outbound; -} - -export function listInternalTransactionsGlobalsToJSON( - listInternalTransactionsGlobals: ListInternalTransactionsGlobals, -): string { - return JSON.stringify( - ListInternalTransactionsGlobals$outboundSchema.parse( - listInternalTransactionsGlobals, - ), - ); -} - -export function listInternalTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListInternalTransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListInternalTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListInternalTransactionsRequest$inboundSchema: z.ZodType< - ListInternalTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListInternalTransactionsRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListInternalTransactionsRequest$outboundSchema: z.ZodType< - ListInternalTransactionsRequest$Outbound, - z.ZodTypeDef, - ListInternalTransactionsRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInternalTransactionsRequest$ { - /** @deprecated use `ListInternalTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListInternalTransactionsRequest$inboundSchema; - /** @deprecated use `ListInternalTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListInternalTransactionsRequest$outboundSchema; - /** @deprecated use `ListInternalTransactionsRequest$Outbound` instead. */ - export type Outbound = ListInternalTransactionsRequest$Outbound; -} - -export function listInternalTransactionsRequestToJSON( - listInternalTransactionsRequest: ListInternalTransactionsRequest, -): string { - return JSON.stringify( - ListInternalTransactionsRequest$outboundSchema.parse( - listInternalTransactionsRequest, - ), - ); -} - -export function listInternalTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListInternalTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListInternalTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListInternalTransactionsResponse$inboundSchema: z.ZodType< - ListInternalTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListInternalTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListInternalTransactionsResponse$Outbound = { - Result: components.ListInternalTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListInternalTransactionsResponse$outboundSchema: z.ZodType< - ListInternalTransactionsResponse$Outbound, - z.ZodTypeDef, - ListInternalTransactionsResponse -> = z.object({ - result: components.ListInternalTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListInternalTransactionsResponse$ { - /** @deprecated use `ListInternalTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListInternalTransactionsResponse$inboundSchema; - /** @deprecated use `ListInternalTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListInternalTransactionsResponse$outboundSchema; - /** @deprecated use `ListInternalTransactionsResponse$Outbound` instead. */ - export type Outbound = ListInternalTransactionsResponse$Outbound; -} - -export function listInternalTransactionsResponseToJSON( - listInternalTransactionsResponse: ListInternalTransactionsResponse, -): string { - return JSON.stringify( - ListInternalTransactionsResponse$outboundSchema.parse( - listInternalTransactionsResponse, - ), - ); -} - -export function listInternalTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListInternalTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListInternalTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listl1validators.ts b/data/src/models/operations/listl1validators.ts deleted file mode 100644 index c10fcdcd..00000000 --- a/data/src/models/operations/listl1validators.ts +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListL1ValidatorsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListL1ValidatorsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned. - */ - l1ValidationId?: string | undefined; - includeInactiveL1Validators?: boolean | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A valid node ID in format 'NodeID-HASH'. - */ - nodeId?: string | undefined; - /** - * The subnet ID to filter by. If not provided, then all subnets will be returned. - */ - subnetId?: any | undefined; -}; - -export type ListL1ValidatorsResponse = { - result: components.ListL1ValidatorsResponse; -}; - -/** @internal */ -export const ListL1ValidatorsGlobals$inboundSchema: z.ZodType< - ListL1ValidatorsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListL1ValidatorsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListL1ValidatorsGlobals$outboundSchema: z.ZodType< - ListL1ValidatorsGlobals$Outbound, - z.ZodTypeDef, - ListL1ValidatorsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListL1ValidatorsGlobals$ { - /** @deprecated use `ListL1ValidatorsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListL1ValidatorsGlobals$inboundSchema; - /** @deprecated use `ListL1ValidatorsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListL1ValidatorsGlobals$outboundSchema; - /** @deprecated use `ListL1ValidatorsGlobals$Outbound` instead. */ - export type Outbound = ListL1ValidatorsGlobals$Outbound; -} - -export function listL1ValidatorsGlobalsToJSON( - listL1ValidatorsGlobals: ListL1ValidatorsGlobals, -): string { - return JSON.stringify( - ListL1ValidatorsGlobals$outboundSchema.parse(listL1ValidatorsGlobals), - ); -} - -export function listL1ValidatorsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListL1ValidatorsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListL1ValidatorsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListL1ValidatorsRequest$inboundSchema: z.ZodType< - ListL1ValidatorsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - l1ValidationId: z.string().optional(), - includeInactiveL1Validators: z.boolean().optional(), - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeId: z.string().optional(), - subnetId: z.any().optional(), -}); - -/** @internal */ -export type ListL1ValidatorsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - l1ValidationId?: string | undefined; - includeInactiveL1Validators?: boolean | undefined; - network?: string | undefined; - nodeId?: string | undefined; - subnetId?: any | undefined; -}; - -/** @internal */ -export const ListL1ValidatorsRequest$outboundSchema: z.ZodType< - ListL1ValidatorsRequest$Outbound, - z.ZodTypeDef, - ListL1ValidatorsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - l1ValidationId: z.string().optional(), - includeInactiveL1Validators: z.boolean().optional(), - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeId: z.string().optional(), - subnetId: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListL1ValidatorsRequest$ { - /** @deprecated use `ListL1ValidatorsRequest$inboundSchema` instead. */ - export const inboundSchema = ListL1ValidatorsRequest$inboundSchema; - /** @deprecated use `ListL1ValidatorsRequest$outboundSchema` instead. */ - export const outboundSchema = ListL1ValidatorsRequest$outboundSchema; - /** @deprecated use `ListL1ValidatorsRequest$Outbound` instead. */ - export type Outbound = ListL1ValidatorsRequest$Outbound; -} - -export function listL1ValidatorsRequestToJSON( - listL1ValidatorsRequest: ListL1ValidatorsRequest, -): string { - return JSON.stringify( - ListL1ValidatorsRequest$outboundSchema.parse(listL1ValidatorsRequest), - ); -} - -export function listL1ValidatorsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListL1ValidatorsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListL1ValidatorsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListL1ValidatorsResponse$inboundSchema: z.ZodType< - ListL1ValidatorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListL1ValidatorsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListL1ValidatorsResponse$Outbound = { - Result: components.ListL1ValidatorsResponse$Outbound; -}; - -/** @internal */ -export const ListL1ValidatorsResponse$outboundSchema: z.ZodType< - ListL1ValidatorsResponse$Outbound, - z.ZodTypeDef, - ListL1ValidatorsResponse -> = z.object({ - result: components.ListL1ValidatorsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListL1ValidatorsResponse$ { - /** @deprecated use `ListL1ValidatorsResponse$inboundSchema` instead. */ - export const inboundSchema = ListL1ValidatorsResponse$inboundSchema; - /** @deprecated use `ListL1ValidatorsResponse$outboundSchema` instead. */ - export const outboundSchema = ListL1ValidatorsResponse$outboundSchema; - /** @deprecated use `ListL1ValidatorsResponse$Outbound` instead. */ - export type Outbound = ListL1ValidatorsResponse$Outbound; -} - -export function listL1ValidatorsResponseToJSON( - listL1ValidatorsResponse: ListL1ValidatorsResponse, -): string { - return JSON.stringify( - ListL1ValidatorsResponse$outboundSchema.parse(listL1ValidatorsResponse), - ); -} - -export function listL1ValidatorsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListL1ValidatorsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListL1ValidatorsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatestblocksallchains.ts b/data/src/models/operations/listlatestblocksallchains.ts deleted file mode 100644 index bc46b06d..00000000 --- a/data/src/models/operations/listlatestblocksallchains.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestBlocksAllChainsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type ListLatestBlocksAllChainsResponse = { - result: components.ListEvmBlocksResponse; -}; - -/** @internal */ -export const ListLatestBlocksAllChainsRequest$inboundSchema: z.ZodType< - ListLatestBlocksAllChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestBlocksAllChainsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestBlocksAllChainsRequest$outboundSchema: z.ZodType< - ListLatestBlocksAllChainsRequest$Outbound, - z.ZodTypeDef, - ListLatestBlocksAllChainsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestBlocksAllChainsRequest$ { - /** @deprecated use `ListLatestBlocksAllChainsRequest$inboundSchema` instead. */ - export const inboundSchema = ListLatestBlocksAllChainsRequest$inboundSchema; - /** @deprecated use `ListLatestBlocksAllChainsRequest$outboundSchema` instead. */ - export const outboundSchema = ListLatestBlocksAllChainsRequest$outboundSchema; - /** @deprecated use `ListLatestBlocksAllChainsRequest$Outbound` instead. */ - export type Outbound = ListLatestBlocksAllChainsRequest$Outbound; -} - -export function listLatestBlocksAllChainsRequestToJSON( - listLatestBlocksAllChainsRequest: ListLatestBlocksAllChainsRequest, -): string { - return JSON.stringify( - ListLatestBlocksAllChainsRequest$outboundSchema.parse( - listLatestBlocksAllChainsRequest, - ), - ); -} - -export function listLatestBlocksAllChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestBlocksAllChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestBlocksAllChainsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestBlocksAllChainsResponse$inboundSchema: z.ZodType< - ListLatestBlocksAllChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListEvmBlocksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListLatestBlocksAllChainsResponse$Outbound = { - Result: components.ListEvmBlocksResponse$Outbound; -}; - -/** @internal */ -export const ListLatestBlocksAllChainsResponse$outboundSchema: z.ZodType< - ListLatestBlocksAllChainsResponse$Outbound, - z.ZodTypeDef, - ListLatestBlocksAllChainsResponse -> = z.object({ - result: components.ListEvmBlocksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestBlocksAllChainsResponse$ { - /** @deprecated use `ListLatestBlocksAllChainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListLatestBlocksAllChainsResponse$inboundSchema; - /** @deprecated use `ListLatestBlocksAllChainsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListLatestBlocksAllChainsResponse$outboundSchema; - /** @deprecated use `ListLatestBlocksAllChainsResponse$Outbound` instead. */ - export type Outbound = ListLatestBlocksAllChainsResponse$Outbound; -} - -export function listLatestBlocksAllChainsResponseToJSON( - listLatestBlocksAllChainsResponse: ListLatestBlocksAllChainsResponse, -): string { - return JSON.stringify( - ListLatestBlocksAllChainsResponse$outboundSchema.parse( - listLatestBlocksAllChainsResponse, - ), - ); -} - -export function listLatestBlocksAllChainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestBlocksAllChainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestBlocksAllChainsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatestprimarynetworkblocks.ts b/data/src/models/operations/listlatestprimarynetworkblocks.ts deleted file mode 100644 index cb8150a2..00000000 --- a/data/src/models/operations/listlatestprimarynetworkblocks.ts +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestPrimaryNetworkBlocksGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListLatestPrimaryNetworkBlocksRequest = { - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListLatestPrimaryNetworkBlocksResponse = { - result: components.ListPrimaryNetworkBlocksResponse; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksGlobals$inboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestPrimaryNetworkBlocksGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksGlobals$outboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksGlobals$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkBlocksGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkBlocksGlobals$ { - /** @deprecated use `ListLatestPrimaryNetworkBlocksGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkBlocksGlobals$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkBlocksGlobals$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksGlobals$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkBlocksGlobals$Outbound; -} - -export function listLatestPrimaryNetworkBlocksGlobalsToJSON( - listLatestPrimaryNetworkBlocksGlobals: ListLatestPrimaryNetworkBlocksGlobals, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkBlocksGlobals$outboundSchema.parse( - listLatestPrimaryNetworkBlocksGlobals, - ), - ); -} - -export function listLatestPrimaryNetworkBlocksGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkBlocksGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestPrimaryNetworkBlocksGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksRequest$inboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestPrimaryNetworkBlocksRequest$Outbound = { - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksRequest$outboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksRequest$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkBlocksRequest -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkBlocksRequest$ { - /** @deprecated use `ListLatestPrimaryNetworkBlocksRequest$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkBlocksRequest$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksRequest$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkBlocksRequest$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksRequest$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkBlocksRequest$Outbound; -} - -export function listLatestPrimaryNetworkBlocksRequestToJSON( - listLatestPrimaryNetworkBlocksRequest: ListLatestPrimaryNetworkBlocksRequest, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkBlocksRequest$outboundSchema.parse( - listLatestPrimaryNetworkBlocksRequest, - ), - ); -} - -export function listLatestPrimaryNetworkBlocksRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkBlocksRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestPrimaryNetworkBlocksRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksResponse$inboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListPrimaryNetworkBlocksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListLatestPrimaryNetworkBlocksResponse$Outbound = { - Result: components.ListPrimaryNetworkBlocksResponse$Outbound; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkBlocksResponse$outboundSchema: z.ZodType< - ListLatestPrimaryNetworkBlocksResponse$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkBlocksResponse -> = z.object({ - result: components.ListPrimaryNetworkBlocksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkBlocksResponse$ { - /** @deprecated use `ListLatestPrimaryNetworkBlocksResponse$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkBlocksResponse$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksResponse$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkBlocksResponse$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkBlocksResponse$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkBlocksResponse$Outbound; -} - -export function listLatestPrimaryNetworkBlocksResponseToJSON( - listLatestPrimaryNetworkBlocksResponse: - ListLatestPrimaryNetworkBlocksResponse, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkBlocksResponse$outboundSchema.parse( - listLatestPrimaryNetworkBlocksResponse, - ), - ); -} - -export function listLatestPrimaryNetworkBlocksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkBlocksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestPrimaryNetworkBlocksResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatestprimarynetworktransactions.ts b/data/src/models/operations/listlatestprimarynetworktransactions.ts deleted file mode 100644 index f438a4b1..00000000 --- a/data/src/models/operations/listlatestprimarynetworktransactions.ts +++ /dev/null @@ -1,392 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestPrimaryNetworkTransactionsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListLatestPrimaryNetworkTransactionsRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups. - */ - addresses?: string | undefined; - l1ValidationId?: string | undefined; - /** - * Query param for filtering items based on transaction types. - */ - txTypes?: Array | undefined; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -/** - * Successful response - */ -export type ListLatestPrimaryNetworkTransactionsResponseBody = - | components.ListPChainTransactionsResponse - | components.ListXChainTransactionsResponse - | components.ListCChainAtomicTransactionsResponse; - -export type ListLatestPrimaryNetworkTransactionsResponse = { - result: - | components.ListPChainTransactionsResponse - | components.ListXChainTransactionsResponse - | components.ListCChainAtomicTransactionsResponse; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsGlobals$inboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsGlobals, - z.ZodTypeDef, - unknown - > = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), - }); - -/** @internal */ -export type ListLatestPrimaryNetworkTransactionsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsGlobals$outboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkTransactionsGlobals - > = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkTransactionsGlobals$ { - /** @deprecated use `ListLatestPrimaryNetworkTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkTransactionsGlobals$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkTransactionsGlobals$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkTransactionsGlobals$Outbound; -} - -export function listLatestPrimaryNetworkTransactionsGlobalsToJSON( - listLatestPrimaryNetworkTransactionsGlobals: - ListLatestPrimaryNetworkTransactionsGlobals, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkTransactionsGlobals$outboundSchema.parse( - listLatestPrimaryNetworkTransactionsGlobals, - ), - ); -} - -export function listLatestPrimaryNetworkTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - ListLatestPrimaryNetworkTransactionsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkTransactionsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListLatestPrimaryNetworkTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsRequest$inboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsRequest, - z.ZodTypeDef, - unknown - > = z.object({ - addresses: z.string().optional(), - l1ValidationId: z.string().optional(), - txTypes: z.array(components.PrimaryNetworkTxType$inboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), - }); - -/** @internal */ -export type ListLatestPrimaryNetworkTransactionsRequest$Outbound = { - addresses?: string | undefined; - l1ValidationId?: string | undefined; - txTypes?: Array | undefined; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsRequest$outboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsRequest$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkTransactionsRequest - > = z.object({ - addresses: z.string().optional(), - l1ValidationId: z.string().optional(), - txTypes: z.array(components.PrimaryNetworkTxType$outboundSchema).optional(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkTransactionsRequest$ { - /** @deprecated use `ListLatestPrimaryNetworkTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkTransactionsRequest$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkTransactionsRequest$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsRequest$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkTransactionsRequest$Outbound; -} - -export function listLatestPrimaryNetworkTransactionsRequestToJSON( - listLatestPrimaryNetworkTransactionsRequest: - ListLatestPrimaryNetworkTransactionsRequest, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkTransactionsRequest$outboundSchema.parse( - listLatestPrimaryNetworkTransactionsRequest, - ), - ); -} - -export function listLatestPrimaryNetworkTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult< - ListLatestPrimaryNetworkTransactionsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkTransactionsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListLatestPrimaryNetworkTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsResponseBody$inboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsResponseBody, - z.ZodTypeDef, - unknown - > = z.union([ - components.ListPChainTransactionsResponse$inboundSchema, - components.ListXChainTransactionsResponse$inboundSchema, - components.ListCChainAtomicTransactionsResponse$inboundSchema, - ]); - -/** @internal */ -export type ListLatestPrimaryNetworkTransactionsResponseBody$Outbound = - | components.ListPChainTransactionsResponse$Outbound - | components.ListXChainTransactionsResponse$Outbound - | components.ListCChainAtomicTransactionsResponse$Outbound; - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsResponseBody$outboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsResponseBody$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkTransactionsResponseBody - > = z.union([ - components.ListPChainTransactionsResponse$outboundSchema, - components.ListXChainTransactionsResponse$outboundSchema, - components.ListCChainAtomicTransactionsResponse$outboundSchema, - ]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkTransactionsResponseBody$ { - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponseBody$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkTransactionsResponseBody$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponseBody$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkTransactionsResponseBody$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponseBody$Outbound` instead. */ - export type Outbound = - ListLatestPrimaryNetworkTransactionsResponseBody$Outbound; -} - -export function listLatestPrimaryNetworkTransactionsResponseBodyToJSON( - listLatestPrimaryNetworkTransactionsResponseBody: - ListLatestPrimaryNetworkTransactionsResponseBody, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkTransactionsResponseBody$outboundSchema.parse( - listLatestPrimaryNetworkTransactionsResponseBody, - ), - ); -} - -export function listLatestPrimaryNetworkTransactionsResponseBodyFromJSON( - jsonString: string, -): SafeParseResult< - ListLatestPrimaryNetworkTransactionsResponseBody, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkTransactionsResponseBody$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListLatestPrimaryNetworkTransactionsResponseBody' from JSON`, - ); -} - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsResponse$inboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsResponse, - z.ZodTypeDef, - unknown - > = z.object({ - Result: z.union([ - components.ListPChainTransactionsResponse$inboundSchema, - components.ListXChainTransactionsResponse$inboundSchema, - components.ListCChainAtomicTransactionsResponse$inboundSchema, - ]), - }).transform((v) => { - return remap$(v, { - "Result": "result", - }); - }); - -/** @internal */ -export type ListLatestPrimaryNetworkTransactionsResponse$Outbound = { - Result: - | components.ListPChainTransactionsResponse$Outbound - | components.ListXChainTransactionsResponse$Outbound - | components.ListCChainAtomicTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListLatestPrimaryNetworkTransactionsResponse$outboundSchema: - z.ZodType< - ListLatestPrimaryNetworkTransactionsResponse$Outbound, - z.ZodTypeDef, - ListLatestPrimaryNetworkTransactionsResponse - > = z.object({ - result: z.union([ - components.ListPChainTransactionsResponse$outboundSchema, - components.ListXChainTransactionsResponse$outboundSchema, - components.ListCChainAtomicTransactionsResponse$outboundSchema, - ]), - }).transform((v) => { - return remap$(v, { - result: "Result", - }); - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestPrimaryNetworkTransactionsResponse$ { - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListLatestPrimaryNetworkTransactionsResponse$inboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListLatestPrimaryNetworkTransactionsResponse$outboundSchema; - /** @deprecated use `ListLatestPrimaryNetworkTransactionsResponse$Outbound` instead. */ - export type Outbound = ListLatestPrimaryNetworkTransactionsResponse$Outbound; -} - -export function listLatestPrimaryNetworkTransactionsResponseToJSON( - listLatestPrimaryNetworkTransactionsResponse: - ListLatestPrimaryNetworkTransactionsResponse, -): string { - return JSON.stringify( - ListLatestPrimaryNetworkTransactionsResponse$outboundSchema.parse( - listLatestPrimaryNetworkTransactionsResponse, - ), - ); -} - -export function listLatestPrimaryNetworkTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListLatestPrimaryNetworkTransactionsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListLatestPrimaryNetworkTransactionsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListLatestPrimaryNetworkTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatesttransactions.ts b/data/src/models/operations/listlatesttransactions.ts deleted file mode 100644 index e4ca66d9..00000000 --- a/data/src/models/operations/listlatesttransactions.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestTransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListLatestTransactionsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A status filter for listed transactions. - */ - status?: components.TransactionStatus | undefined; -}; - -export type ListLatestTransactionsResponse = { - result: components.ListNativeTransactionsResponse; -}; - -/** @internal */ -export const ListLatestTransactionsGlobals$inboundSchema: z.ZodType< - ListLatestTransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListLatestTransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListLatestTransactionsGlobals$outboundSchema: z.ZodType< - ListLatestTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListLatestTransactionsGlobals -> = z.object({ - chainId: 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 ListLatestTransactionsGlobals$ { - /** @deprecated use `ListLatestTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListLatestTransactionsGlobals$inboundSchema; - /** @deprecated use `ListLatestTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListLatestTransactionsGlobals$outboundSchema; - /** @deprecated use `ListLatestTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListLatestTransactionsGlobals$Outbound; -} - -export function listLatestTransactionsGlobalsToJSON( - listLatestTransactionsGlobals: ListLatestTransactionsGlobals, -): string { - return JSON.stringify( - ListLatestTransactionsGlobals$outboundSchema.parse( - listLatestTransactionsGlobals, - ), - ); -} - -export function listLatestTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestTransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListLatestTransactionsRequest$inboundSchema: z.ZodType< - ListLatestTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - status: components.TransactionStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestTransactionsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const ListLatestTransactionsRequest$outboundSchema: z.ZodType< - ListLatestTransactionsRequest$Outbound, - z.ZodTypeDef, - ListLatestTransactionsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - status: components.TransactionStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestTransactionsRequest$ { - /** @deprecated use `ListLatestTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListLatestTransactionsRequest$inboundSchema; - /** @deprecated use `ListLatestTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListLatestTransactionsRequest$outboundSchema; - /** @deprecated use `ListLatestTransactionsRequest$Outbound` instead. */ - export type Outbound = ListLatestTransactionsRequest$Outbound; -} - -export function listLatestTransactionsRequestToJSON( - listLatestTransactionsRequest: ListLatestTransactionsRequest, -): string { - return JSON.stringify( - ListLatestTransactionsRequest$outboundSchema.parse( - listLatestTransactionsRequest, - ), - ); -} - -export function listLatestTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestTransactionsResponse$inboundSchema: z.ZodType< - ListLatestTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListNativeTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListLatestTransactionsResponse$Outbound = { - Result: components.ListNativeTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListLatestTransactionsResponse$outboundSchema: z.ZodType< - ListLatestTransactionsResponse$Outbound, - z.ZodTypeDef, - ListLatestTransactionsResponse -> = z.object({ - result: components.ListNativeTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestTransactionsResponse$ { - /** @deprecated use `ListLatestTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListLatestTransactionsResponse$inboundSchema; - /** @deprecated use `ListLatestTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListLatestTransactionsResponse$outboundSchema; - /** @deprecated use `ListLatestTransactionsResponse$Outbound` instead. */ - export type Outbound = ListLatestTransactionsResponse$Outbound; -} - -export function listLatestTransactionsResponseToJSON( - listLatestTransactionsResponse: ListLatestTransactionsResponse, -): string { - return JSON.stringify( - ListLatestTransactionsResponse$outboundSchema.parse( - listLatestTransactionsResponse, - ), - ); -} - -export function listLatestTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatesttransactionsallchains.ts b/data/src/models/operations/listlatesttransactionsallchains.ts deleted file mode 100644 index 95c11352..00000000 --- a/data/src/models/operations/listlatesttransactionsallchains.ts +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestTransactionsAllChainsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; - /** - * A status filter for listed transactions. - */ - status?: components.TransactionStatus | undefined; -}; - -export type ListLatestTransactionsAllChainsResponse = { - result: components.ListNativeTransactionsResponse; -}; - -/** @internal */ -export const ListLatestTransactionsAllChainsRequest$inboundSchema: z.ZodType< - ListLatestTransactionsAllChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$inboundSchema.optional(), - status: components.TransactionStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestTransactionsAllChainsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - status?: string | undefined; -}; - -/** @internal */ -export const ListLatestTransactionsAllChainsRequest$outboundSchema: z.ZodType< - ListLatestTransactionsAllChainsRequest$Outbound, - z.ZodTypeDef, - ListLatestTransactionsAllChainsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.Network$outboundSchema.optional(), - status: components.TransactionStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestTransactionsAllChainsRequest$ { - /** @deprecated use `ListLatestTransactionsAllChainsRequest$inboundSchema` instead. */ - export const inboundSchema = - ListLatestTransactionsAllChainsRequest$inboundSchema; - /** @deprecated use `ListLatestTransactionsAllChainsRequest$outboundSchema` instead. */ - export const outboundSchema = - ListLatestTransactionsAllChainsRequest$outboundSchema; - /** @deprecated use `ListLatestTransactionsAllChainsRequest$Outbound` instead. */ - export type Outbound = ListLatestTransactionsAllChainsRequest$Outbound; -} - -export function listLatestTransactionsAllChainsRequestToJSON( - listLatestTransactionsAllChainsRequest: - ListLatestTransactionsAllChainsRequest, -): string { - return JSON.stringify( - ListLatestTransactionsAllChainsRequest$outboundSchema.parse( - listLatestTransactionsAllChainsRequest, - ), - ); -} - -export function listLatestTransactionsAllChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListLatestTransactionsAllChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestTransactionsAllChainsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestTransactionsAllChainsResponse$inboundSchema: z.ZodType< - ListLatestTransactionsAllChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListNativeTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListLatestTransactionsAllChainsResponse$Outbound = { - Result: components.ListNativeTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListLatestTransactionsAllChainsResponse$outboundSchema: z.ZodType< - ListLatestTransactionsAllChainsResponse$Outbound, - z.ZodTypeDef, - ListLatestTransactionsAllChainsResponse -> = z.object({ - result: components.ListNativeTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestTransactionsAllChainsResponse$ { - /** @deprecated use `ListLatestTransactionsAllChainsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListLatestTransactionsAllChainsResponse$inboundSchema; - /** @deprecated use `ListLatestTransactionsAllChainsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListLatestTransactionsAllChainsResponse$outboundSchema; - /** @deprecated use `ListLatestTransactionsAllChainsResponse$Outbound` instead. */ - export type Outbound = ListLatestTransactionsAllChainsResponse$Outbound; -} - -export function listLatestTransactionsAllChainsResponseToJSON( - listLatestTransactionsAllChainsResponse: - ListLatestTransactionsAllChainsResponse, -): string { - return JSON.stringify( - ListLatestTransactionsAllChainsResponse$outboundSchema.parse( - listLatestTransactionsAllChainsResponse, - ), - ); -} - -export function listLatestTransactionsAllChainsResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListLatestTransactionsAllChainsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListLatestTransactionsAllChainsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListLatestTransactionsAllChainsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listlatestxchainvertices.ts b/data/src/models/operations/listlatestxchainvertices.ts deleted file mode 100644 index a41c08da..00000000 --- a/data/src/models/operations/listlatestxchainvertices.ts +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListLatestXChainVerticesGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListLatestXChainVerticesRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.XChainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListLatestXChainVerticesResponse = { - result: components.ListXChainVerticesResponse; -}; - -/** @internal */ -export const ListLatestXChainVerticesGlobals$inboundSchema: z.ZodType< - ListLatestXChainVerticesGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestXChainVerticesGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestXChainVerticesGlobals$outboundSchema: z.ZodType< - ListLatestXChainVerticesGlobals$Outbound, - z.ZodTypeDef, - ListLatestXChainVerticesGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestXChainVerticesGlobals$ { - /** @deprecated use `ListLatestXChainVerticesGlobals$inboundSchema` instead. */ - export const inboundSchema = ListLatestXChainVerticesGlobals$inboundSchema; - /** @deprecated use `ListLatestXChainVerticesGlobals$outboundSchema` instead. */ - export const outboundSchema = ListLatestXChainVerticesGlobals$outboundSchema; - /** @deprecated use `ListLatestXChainVerticesGlobals$Outbound` instead. */ - export type Outbound = ListLatestXChainVerticesGlobals$Outbound; -} - -export function listLatestXChainVerticesGlobalsToJSON( - listLatestXChainVerticesGlobals: ListLatestXChainVerticesGlobals, -): string { - return JSON.stringify( - ListLatestXChainVerticesGlobals$outboundSchema.parse( - listLatestXChainVerticesGlobals, - ), - ); -} - -export function listLatestXChainVerticesGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestXChainVerticesGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestXChainVerticesGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListLatestXChainVerticesRequest$inboundSchema: z.ZodType< - ListLatestXChainVerticesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListLatestXChainVerticesRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; -}; - -/** @internal */ -export const ListLatestXChainVerticesRequest$outboundSchema: z.ZodType< - ListLatestXChainVerticesRequest$Outbound, - z.ZodTypeDef, - ListLatestXChainVerticesRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.XChainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestXChainVerticesRequest$ { - /** @deprecated use `ListLatestXChainVerticesRequest$inboundSchema` instead. */ - export const inboundSchema = ListLatestXChainVerticesRequest$inboundSchema; - /** @deprecated use `ListLatestXChainVerticesRequest$outboundSchema` instead. */ - export const outboundSchema = ListLatestXChainVerticesRequest$outboundSchema; - /** @deprecated use `ListLatestXChainVerticesRequest$Outbound` instead. */ - export type Outbound = ListLatestXChainVerticesRequest$Outbound; -} - -export function listLatestXChainVerticesRequestToJSON( - listLatestXChainVerticesRequest: ListLatestXChainVerticesRequest, -): string { - return JSON.stringify( - ListLatestXChainVerticesRequest$outboundSchema.parse( - listLatestXChainVerticesRequest, - ), - ); -} - -export function listLatestXChainVerticesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestXChainVerticesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestXChainVerticesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListLatestXChainVerticesResponse$inboundSchema: z.ZodType< - ListLatestXChainVerticesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListXChainVerticesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListLatestXChainVerticesResponse$Outbound = { - Result: components.ListXChainVerticesResponse$Outbound; -}; - -/** @internal */ -export const ListLatestXChainVerticesResponse$outboundSchema: z.ZodType< - ListLatestXChainVerticesResponse$Outbound, - z.ZodTypeDef, - ListLatestXChainVerticesResponse -> = z.object({ - result: components.ListXChainVerticesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListLatestXChainVerticesResponse$ { - /** @deprecated use `ListLatestXChainVerticesResponse$inboundSchema` instead. */ - export const inboundSchema = ListLatestXChainVerticesResponse$inboundSchema; - /** @deprecated use `ListLatestXChainVerticesResponse$outboundSchema` instead. */ - export const outboundSchema = ListLatestXChainVerticesResponse$outboundSchema; - /** @deprecated use `ListLatestXChainVerticesResponse$Outbound` instead. */ - export type Outbound = ListLatestXChainVerticesResponse$Outbound; -} - -export function listLatestXChainVerticesResponseToJSON( - listLatestXChainVerticesResponse: ListLatestXChainVerticesResponse, -): string { - return JSON.stringify( - ListLatestXChainVerticesResponse$outboundSchema.parse( - listLatestXChainVerticesResponse, - ), - ); -} - -export function listLatestXChainVerticesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListLatestXChainVerticesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListLatestXChainVerticesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listnativetransactions.ts b/data/src/models/operations/listnativetransactions.ts deleted file mode 100644 index 42404634..00000000 --- a/data/src/models/operations/listnativetransactions.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListNativeTransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListNativeTransactionsRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListNativeTransactionsResponse = { - result: components.ListNativeTransactionsResponse; -}; - -/** @internal */ -export const ListNativeTransactionsGlobals$inboundSchema: z.ZodType< - ListNativeTransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListNativeTransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListNativeTransactionsGlobals$outboundSchema: z.ZodType< - ListNativeTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListNativeTransactionsGlobals -> = z.object({ - chainId: 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 ListNativeTransactionsGlobals$ { - /** @deprecated use `ListNativeTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListNativeTransactionsGlobals$inboundSchema; - /** @deprecated use `ListNativeTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListNativeTransactionsGlobals$outboundSchema; - /** @deprecated use `ListNativeTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListNativeTransactionsGlobals$Outbound; -} - -export function listNativeTransactionsGlobalsToJSON( - listNativeTransactionsGlobals: ListNativeTransactionsGlobals, -): string { - return JSON.stringify( - ListNativeTransactionsGlobals$outboundSchema.parse( - listNativeTransactionsGlobals, - ), - ); -} - -export function listNativeTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListNativeTransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListNativeTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListNativeTransactionsRequest$inboundSchema: z.ZodType< - ListNativeTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListNativeTransactionsRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListNativeTransactionsRequest$outboundSchema: z.ZodType< - ListNativeTransactionsRequest$Outbound, - z.ZodTypeDef, - ListNativeTransactionsRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNativeTransactionsRequest$ { - /** @deprecated use `ListNativeTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListNativeTransactionsRequest$inboundSchema; - /** @deprecated use `ListNativeTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListNativeTransactionsRequest$outboundSchema; - /** @deprecated use `ListNativeTransactionsRequest$Outbound` instead. */ - export type Outbound = ListNativeTransactionsRequest$Outbound; -} - -export function listNativeTransactionsRequestToJSON( - listNativeTransactionsRequest: ListNativeTransactionsRequest, -): string { - return JSON.stringify( - ListNativeTransactionsRequest$outboundSchema.parse( - listNativeTransactionsRequest, - ), - ); -} - -export function listNativeTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListNativeTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListNativeTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListNativeTransactionsResponse$inboundSchema: z.ZodType< - ListNativeTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListNativeTransactionsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListNativeTransactionsResponse$Outbound = { - Result: components.ListNativeTransactionsResponse$Outbound; -}; - -/** @internal */ -export const ListNativeTransactionsResponse$outboundSchema: z.ZodType< - ListNativeTransactionsResponse$Outbound, - z.ZodTypeDef, - ListNativeTransactionsResponse -> = z.object({ - result: components.ListNativeTransactionsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListNativeTransactionsResponse$ { - /** @deprecated use `ListNativeTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListNativeTransactionsResponse$inboundSchema; - /** @deprecated use `ListNativeTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListNativeTransactionsResponse$outboundSchema; - /** @deprecated use `ListNativeTransactionsResponse$Outbound` instead. */ - export type Outbound = ListNativeTransactionsResponse$Outbound; -} - -export function listNativeTransactionsResponseToJSON( - listNativeTransactionsResponse: ListNativeTransactionsResponse, -): string { - return JSON.stringify( - ListNativeTransactionsResponse$outboundSchema.parse( - listNativeTransactionsResponse, - ), - ); -} - -export function listNativeTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListNativeTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListNativeTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listpendingprimarynetworkrewards.ts b/data/src/models/operations/listpendingprimarynetworkrewards.ts deleted file mode 100644 index 522ddc86..00000000 --- a/data/src/models/operations/listpendingprimarynetworkrewards.ts +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListPendingPrimaryNetworkRewardsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListPendingPrimaryNetworkRewardsRequest = { - /** - * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required. - */ - addresses?: string | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A comma separated list of node ids to filter by. One of addresses or nodeIds is required. - */ - nodeIds?: string | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type ListPendingPrimaryNetworkRewardsResponse = { - result: components.ListPendingRewardsResponse; -}; - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsGlobals$inboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListPendingPrimaryNetworkRewardsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsGlobals$outboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsGlobals$Outbound, - z.ZodTypeDef, - ListPendingPrimaryNetworkRewardsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPendingPrimaryNetworkRewardsGlobals$ { - /** @deprecated use `ListPendingPrimaryNetworkRewardsGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListPendingPrimaryNetworkRewardsGlobals$inboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListPendingPrimaryNetworkRewardsGlobals$outboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsGlobals$Outbound` instead. */ - export type Outbound = ListPendingPrimaryNetworkRewardsGlobals$Outbound; -} - -export function listPendingPrimaryNetworkRewardsGlobalsToJSON( - listPendingPrimaryNetworkRewardsGlobals: - ListPendingPrimaryNetworkRewardsGlobals, -): string { - return JSON.stringify( - ListPendingPrimaryNetworkRewardsGlobals$outboundSchema.parse( - listPendingPrimaryNetworkRewardsGlobals, - ), - ); -} - -export function listPendingPrimaryNetworkRewardsGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - ListPendingPrimaryNetworkRewardsGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPendingPrimaryNetworkRewardsGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPendingPrimaryNetworkRewardsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsRequest$inboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeIds: z.string().optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type ListPendingPrimaryNetworkRewardsRequest$Outbound = { - addresses?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - nodeIds?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsRequest$outboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsRequest$Outbound, - z.ZodTypeDef, - ListPendingPrimaryNetworkRewardsRequest -> = z.object({ - addresses: z.string().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeIds: z.string().optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPendingPrimaryNetworkRewardsRequest$ { - /** @deprecated use `ListPendingPrimaryNetworkRewardsRequest$inboundSchema` instead. */ - export const inboundSchema = - ListPendingPrimaryNetworkRewardsRequest$inboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsRequest$outboundSchema` instead. */ - export const outboundSchema = - ListPendingPrimaryNetworkRewardsRequest$outboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsRequest$Outbound` instead. */ - export type Outbound = ListPendingPrimaryNetworkRewardsRequest$Outbound; -} - -export function listPendingPrimaryNetworkRewardsRequestToJSON( - listPendingPrimaryNetworkRewardsRequest: - ListPendingPrimaryNetworkRewardsRequest, -): string { - return JSON.stringify( - ListPendingPrimaryNetworkRewardsRequest$outboundSchema.parse( - listPendingPrimaryNetworkRewardsRequest, - ), - ); -} - -export function listPendingPrimaryNetworkRewardsRequestFromJSON( - jsonString: string, -): SafeParseResult< - ListPendingPrimaryNetworkRewardsRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPendingPrimaryNetworkRewardsRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPendingPrimaryNetworkRewardsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsResponse$inboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListPendingRewardsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListPendingPrimaryNetworkRewardsResponse$Outbound = { - Result: components.ListPendingRewardsResponse$Outbound; -}; - -/** @internal */ -export const ListPendingPrimaryNetworkRewardsResponse$outboundSchema: z.ZodType< - ListPendingPrimaryNetworkRewardsResponse$Outbound, - z.ZodTypeDef, - ListPendingPrimaryNetworkRewardsResponse -> = z.object({ - result: components.ListPendingRewardsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPendingPrimaryNetworkRewardsResponse$ { - /** @deprecated use `ListPendingPrimaryNetworkRewardsResponse$inboundSchema` instead. */ - export const inboundSchema = - ListPendingPrimaryNetworkRewardsResponse$inboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsResponse$outboundSchema` instead. */ - export const outboundSchema = - ListPendingPrimaryNetworkRewardsResponse$outboundSchema; - /** @deprecated use `ListPendingPrimaryNetworkRewardsResponse$Outbound` instead. */ - export type Outbound = ListPendingPrimaryNetworkRewardsResponse$Outbound; -} - -export function listPendingPrimaryNetworkRewardsResponseToJSON( - listPendingPrimaryNetworkRewardsResponse: - ListPendingPrimaryNetworkRewardsResponse, -): string { - return JSON.stringify( - ListPendingPrimaryNetworkRewardsResponse$outboundSchema.parse( - listPendingPrimaryNetworkRewardsResponse, - ), - ); -} - -export function listPendingPrimaryNetworkRewardsResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListPendingPrimaryNetworkRewardsResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPendingPrimaryNetworkRewardsResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPendingPrimaryNetworkRewardsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listprimarynetworkblocksbynodeid.ts b/data/src/models/operations/listprimarynetworkblocksbynodeid.ts deleted file mode 100644 index 9fe05168..00000000 --- a/data/src/models/operations/listprimarynetworkblocksbynodeid.ts +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListPrimaryNetworkBlocksByNodeIdGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListPrimaryNetworkBlocksByNodeIdRequest = { - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A primary network blockchain id or alias. - */ - blockchainId: components.BlockchainId; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A primary network (P or X chain) nodeId. - */ - nodeId: string; -}; - -export type ListPrimaryNetworkBlocksByNodeIdResponse = { - result: components.ListPrimaryNetworkBlocksResponse; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdGlobals$inboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListPrimaryNetworkBlocksByNodeIdGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdGlobals$outboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdGlobals$Outbound, - z.ZodTypeDef, - ListPrimaryNetworkBlocksByNodeIdGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPrimaryNetworkBlocksByNodeIdGlobals$ { - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdGlobals$inboundSchema` instead. */ - export const inboundSchema = - ListPrimaryNetworkBlocksByNodeIdGlobals$inboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdGlobals$outboundSchema` instead. */ - export const outboundSchema = - ListPrimaryNetworkBlocksByNodeIdGlobals$outboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdGlobals$Outbound` instead. */ - export type Outbound = ListPrimaryNetworkBlocksByNodeIdGlobals$Outbound; -} - -export function listPrimaryNetworkBlocksByNodeIdGlobalsToJSON( - listPrimaryNetworkBlocksByNodeIdGlobals: - ListPrimaryNetworkBlocksByNodeIdGlobals, -): string { - return JSON.stringify( - ListPrimaryNetworkBlocksByNodeIdGlobals$outboundSchema.parse( - listPrimaryNetworkBlocksByNodeIdGlobals, - ), - ); -} - -export function listPrimaryNetworkBlocksByNodeIdGlobalsFromJSON( - jsonString: string, -): SafeParseResult< - ListPrimaryNetworkBlocksByNodeIdGlobals, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPrimaryNetworkBlocksByNodeIdGlobals$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPrimaryNetworkBlocksByNodeIdGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$inboundSchema, - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeId: z.string(), -}); - -/** @internal */ -export type ListPrimaryNetworkBlocksByNodeIdRequest$Outbound = { - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - blockchainId: string; - network?: string | undefined; - nodeId: string; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdRequest$Outbound, - z.ZodTypeDef, - ListPrimaryNetworkBlocksByNodeIdRequest -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - blockchainId: components.BlockchainId$outboundSchema, - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPrimaryNetworkBlocksByNodeIdRequest$ { - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema` instead. */ - export const inboundSchema = - ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema` instead. */ - export const outboundSchema = - ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdRequest$Outbound` instead. */ - export type Outbound = ListPrimaryNetworkBlocksByNodeIdRequest$Outbound; -} - -export function listPrimaryNetworkBlocksByNodeIdRequestToJSON( - listPrimaryNetworkBlocksByNodeIdRequest: - ListPrimaryNetworkBlocksByNodeIdRequest, -): string { - return JSON.stringify( - ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema.parse( - listPrimaryNetworkBlocksByNodeIdRequest, - ), - ); -} - -export function listPrimaryNetworkBlocksByNodeIdRequestFromJSON( - jsonString: string, -): SafeParseResult< - ListPrimaryNetworkBlocksByNodeIdRequest, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPrimaryNetworkBlocksByNodeIdRequest' from JSON`, - ); -} - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListPrimaryNetworkBlocksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListPrimaryNetworkBlocksByNodeIdResponse$Outbound = { - Result: components.ListPrimaryNetworkBlocksResponse$Outbound; -}; - -/** @internal */ -export const ListPrimaryNetworkBlocksByNodeIdResponse$outboundSchema: z.ZodType< - ListPrimaryNetworkBlocksByNodeIdResponse$Outbound, - z.ZodTypeDef, - ListPrimaryNetworkBlocksByNodeIdResponse -> = z.object({ - result: components.ListPrimaryNetworkBlocksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListPrimaryNetworkBlocksByNodeIdResponse$ { - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema` instead. */ - export const inboundSchema = - ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdResponse$outboundSchema` instead. */ - export const outboundSchema = - ListPrimaryNetworkBlocksByNodeIdResponse$outboundSchema; - /** @deprecated use `ListPrimaryNetworkBlocksByNodeIdResponse$Outbound` instead. */ - export type Outbound = ListPrimaryNetworkBlocksByNodeIdResponse$Outbound; -} - -export function listPrimaryNetworkBlocksByNodeIdResponseToJSON( - listPrimaryNetworkBlocksByNodeIdResponse: - ListPrimaryNetworkBlocksByNodeIdResponse, -): string { - return JSON.stringify( - ListPrimaryNetworkBlocksByNodeIdResponse$outboundSchema.parse( - listPrimaryNetworkBlocksByNodeIdResponse, - ), - ); -} - -export function listPrimaryNetworkBlocksByNodeIdResponseFromJSON( - jsonString: string, -): SafeParseResult< - ListPrimaryNetworkBlocksByNodeIdResponse, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'ListPrimaryNetworkBlocksByNodeIdResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listsubnets.ts b/data/src/models/operations/listsubnets.ts deleted file mode 100644 index 19a9b343..00000000 --- a/data/src/models/operations/listsubnets.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListSubnetsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListSubnetsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type ListSubnetsResponse = { - result: components.ListSubnetsResponse; -}; - -/** @internal */ -export const ListSubnetsGlobals$inboundSchema: z.ZodType< - ListSubnetsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListSubnetsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListSubnetsGlobals$outboundSchema: z.ZodType< - ListSubnetsGlobals$Outbound, - z.ZodTypeDef, - ListSubnetsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSubnetsGlobals$ { - /** @deprecated use `ListSubnetsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListSubnetsGlobals$inboundSchema; - /** @deprecated use `ListSubnetsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListSubnetsGlobals$outboundSchema; - /** @deprecated use `ListSubnetsGlobals$Outbound` instead. */ - export type Outbound = ListSubnetsGlobals$Outbound; -} - -export function listSubnetsGlobalsToJSON( - listSubnetsGlobals: ListSubnetsGlobals, -): string { - return JSON.stringify( - ListSubnetsGlobals$outboundSchema.parse(listSubnetsGlobals), - ); -} - -export function listSubnetsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSubnetsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSubnetsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListSubnetsRequest$inboundSchema: z.ZodType< - ListSubnetsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type ListSubnetsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListSubnetsRequest$outboundSchema: z.ZodType< - ListSubnetsRequest$Outbound, - z.ZodTypeDef, - ListSubnetsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSubnetsRequest$ { - /** @deprecated use `ListSubnetsRequest$inboundSchema` instead. */ - export const inboundSchema = ListSubnetsRequest$inboundSchema; - /** @deprecated use `ListSubnetsRequest$outboundSchema` instead. */ - export const outboundSchema = ListSubnetsRequest$outboundSchema; - /** @deprecated use `ListSubnetsRequest$Outbound` instead. */ - export type Outbound = ListSubnetsRequest$Outbound; -} - -export function listSubnetsRequestToJSON( - listSubnetsRequest: ListSubnetsRequest, -): string { - return JSON.stringify( - ListSubnetsRequest$outboundSchema.parse(listSubnetsRequest), - ); -} - -export function listSubnetsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSubnetsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSubnetsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListSubnetsResponse$inboundSchema: z.ZodType< - ListSubnetsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListSubnetsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListSubnetsResponse$Outbound = { - Result: components.ListSubnetsResponse$Outbound; -}; - -/** @internal */ -export const ListSubnetsResponse$outboundSchema: z.ZodType< - ListSubnetsResponse$Outbound, - z.ZodTypeDef, - ListSubnetsResponse -> = z.object({ - result: components.ListSubnetsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListSubnetsResponse$ { - /** @deprecated use `ListSubnetsResponse$inboundSchema` instead. */ - export const inboundSchema = ListSubnetsResponse$inboundSchema; - /** @deprecated use `ListSubnetsResponse$outboundSchema` instead. */ - export const outboundSchema = ListSubnetsResponse$outboundSchema; - /** @deprecated use `ListSubnetsResponse$Outbound` instead. */ - export type Outbound = ListSubnetsResponse$Outbound; -} - -export function listSubnetsResponseToJSON( - listSubnetsResponse: ListSubnetsResponse, -): string { - return JSON.stringify( - ListSubnetsResponse$outboundSchema.parse(listSubnetsResponse), - ); -} - -export function listSubnetsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListSubnetsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListSubnetsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listteleportermessages.ts b/data/src/models/operations/listteleportermessages.ts deleted file mode 100644 index ed53cff1..00000000 --- a/data/src/models/operations/listteleportermessages.ts +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListTeleporterMessagesRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from. - */ - sourceBlockchainId?: string | undefined; - /** - * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to. - */ - destinationBlockchainId?: string | undefined; - /** - * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with. - */ - blockchainId?: string | undefined; - /** - * The address of the recipient of the teleporter message. - */ - to?: string | undefined; - /** - * The address of the sender of the teleporter message. - */ - from?: string | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type ListTeleporterMessagesResponse = { - result: components.ListTeleporterMessagesResponse; -}; - -/** @internal */ -export const ListTeleporterMessagesRequest$inboundSchema: z.ZodType< - ListTeleporterMessagesRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - sourceBlockchainId: z.string().optional(), - destinationBlockchainId: z.string().optional(), - blockchainId: z.string().optional(), - to: z.string().optional(), - from: z.string().optional(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListTeleporterMessagesRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - sourceBlockchainId?: string | undefined; - destinationBlockchainId?: string | undefined; - blockchainId?: string | undefined; - to?: string | undefined; - from?: string | undefined; - network?: string | undefined; -}; - -/** @internal */ -export const ListTeleporterMessagesRequest$outboundSchema: z.ZodType< - ListTeleporterMessagesRequest$Outbound, - z.ZodTypeDef, - ListTeleporterMessagesRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - sourceBlockchainId: z.string().optional(), - destinationBlockchainId: z.string().optional(), - blockchainId: z.string().optional(), - to: z.string().optional(), - from: z.string().optional(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeleporterMessagesRequest$ { - /** @deprecated use `ListTeleporterMessagesRequest$inboundSchema` instead. */ - export const inboundSchema = ListTeleporterMessagesRequest$inboundSchema; - /** @deprecated use `ListTeleporterMessagesRequest$outboundSchema` instead. */ - export const outboundSchema = ListTeleporterMessagesRequest$outboundSchema; - /** @deprecated use `ListTeleporterMessagesRequest$Outbound` instead. */ - export type Outbound = ListTeleporterMessagesRequest$Outbound; -} - -export function listTeleporterMessagesRequestToJSON( - listTeleporterMessagesRequest: ListTeleporterMessagesRequest, -): string { - return JSON.stringify( - ListTeleporterMessagesRequest$outboundSchema.parse( - listTeleporterMessagesRequest, - ), - ); -} - -export function listTeleporterMessagesRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTeleporterMessagesRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTeleporterMessagesRequest' from JSON`, - ); -} - -/** @internal */ -export const ListTeleporterMessagesResponse$inboundSchema: z.ZodType< - ListTeleporterMessagesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListTeleporterMessagesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListTeleporterMessagesResponse$Outbound = { - Result: components.ListTeleporterMessagesResponse$Outbound; -}; - -/** @internal */ -export const ListTeleporterMessagesResponse$outboundSchema: z.ZodType< - ListTeleporterMessagesResponse$Outbound, - z.ZodTypeDef, - ListTeleporterMessagesResponse -> = z.object({ - result: components.ListTeleporterMessagesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeleporterMessagesResponse$ { - /** @deprecated use `ListTeleporterMessagesResponse$inboundSchema` instead. */ - export const inboundSchema = ListTeleporterMessagesResponse$inboundSchema; - /** @deprecated use `ListTeleporterMessagesResponse$outboundSchema` instead. */ - export const outboundSchema = ListTeleporterMessagesResponse$outboundSchema; - /** @deprecated use `ListTeleporterMessagesResponse$Outbound` instead. */ - export type Outbound = ListTeleporterMessagesResponse$Outbound; -} - -export function listTeleporterMessagesResponseToJSON( - listTeleporterMessagesResponse: ListTeleporterMessagesResponse, -): string { - return JSON.stringify( - ListTeleporterMessagesResponse$outboundSchema.parse( - listTeleporterMessagesResponse, - ), - ); -} - -export function listTeleporterMessagesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTeleporterMessagesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTeleporterMessagesResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listteleportermessagesbyaddress.ts b/data/src/models/operations/listteleportermessagesbyaddress.ts deleted file mode 100644 index 3478b0bf..00000000 --- a/data/src/models/operations/listteleportermessagesbyaddress.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListTeleporterMessagesByAddressRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * An EVM address. - */ - address: string; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -/** @internal */ -export const ListTeleporterMessagesByAddressRequest$inboundSchema: z.ZodType< - ListTeleporterMessagesByAddressRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - address: z.string(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListTeleporterMessagesByAddressRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - address: string; - network?: string | undefined; -}; - -/** @internal */ -export const ListTeleporterMessagesByAddressRequest$outboundSchema: z.ZodType< - ListTeleporterMessagesByAddressRequest$Outbound, - z.ZodTypeDef, - ListTeleporterMessagesByAddressRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - address: z.string(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTeleporterMessagesByAddressRequest$ { - /** @deprecated use `ListTeleporterMessagesByAddressRequest$inboundSchema` instead. */ - export const inboundSchema = - ListTeleporterMessagesByAddressRequest$inboundSchema; - /** @deprecated use `ListTeleporterMessagesByAddressRequest$outboundSchema` instead. */ - export const outboundSchema = - ListTeleporterMessagesByAddressRequest$outboundSchema; - /** @deprecated use `ListTeleporterMessagesByAddressRequest$Outbound` instead. */ - export type Outbound = ListTeleporterMessagesByAddressRequest$Outbound; -} - -export function listTeleporterMessagesByAddressRequestToJSON( - listTeleporterMessagesByAddressRequest: - ListTeleporterMessagesByAddressRequest, -): string { - return JSON.stringify( - ListTeleporterMessagesByAddressRequest$outboundSchema.parse( - listTeleporterMessagesByAddressRequest, - ), - ); -} - -export function listTeleporterMessagesByAddressRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - ListTeleporterMessagesByAddressRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTeleporterMessagesByAddressRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/listtokens.ts b/data/src/models/operations/listtokens.ts deleted file mode 100644 index 5c9e4b83..00000000 --- a/data/src/models/operations/listtokens.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListTokensGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListTokensRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; -}; - -export type ListTokensResponse = { - result: components.ListNftTokens; -}; - -/** @internal */ -export const ListTokensGlobals$inboundSchema: z.ZodType< - ListTokensGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListTokensGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListTokensGlobals$outboundSchema: z.ZodType< - ListTokensGlobals$Outbound, - z.ZodTypeDef, - ListTokensGlobals -> = z.object({ - chainId: 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 ListTokensGlobals$ { - /** @deprecated use `ListTokensGlobals$inboundSchema` instead. */ - export const inboundSchema = ListTokensGlobals$inboundSchema; - /** @deprecated use `ListTokensGlobals$outboundSchema` instead. */ - export const outboundSchema = ListTokensGlobals$outboundSchema; - /** @deprecated use `ListTokensGlobals$Outbound` instead. */ - export type Outbound = ListTokensGlobals$Outbound; -} - -export function listTokensGlobalsToJSON( - listTokensGlobals: ListTokensGlobals, -): string { - return JSON.stringify( - ListTokensGlobals$outboundSchema.parse(listTokensGlobals), - ); -} - -export function listTokensGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTokensGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTokensGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListTokensRequest$inboundSchema: z.ZodType< - ListTokensRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListTokensRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListTokensRequest$outboundSchema: z.ZodType< - ListTokensRequest$Outbound, - z.ZodTypeDef, - ListTokensRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTokensRequest$ { - /** @deprecated use `ListTokensRequest$inboundSchema` instead. */ - export const inboundSchema = ListTokensRequest$inboundSchema; - /** @deprecated use `ListTokensRequest$outboundSchema` instead. */ - export const outboundSchema = ListTokensRequest$outboundSchema; - /** @deprecated use `ListTokensRequest$Outbound` instead. */ - export type Outbound = ListTokensRequest$Outbound; -} - -export function listTokensRequestToJSON( - listTokensRequest: ListTokensRequest, -): string { - return JSON.stringify( - ListTokensRequest$outboundSchema.parse(listTokensRequest), - ); -} - -export function listTokensRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTokensRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTokensRequest' from JSON`, - ); -} - -/** @internal */ -export const ListTokensResponse$inboundSchema: z.ZodType< - ListTokensResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListNftTokens$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListTokensResponse$Outbound = { - Result: components.ListNftTokens$Outbound; -}; - -/** @internal */ -export const ListTokensResponse$outboundSchema: z.ZodType< - ListTokensResponse$Outbound, - z.ZodTypeDef, - ListTokensResponse -> = z.object({ - result: components.ListNftTokens$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTokensResponse$ { - /** @deprecated use `ListTokensResponse$inboundSchema` instead. */ - export const inboundSchema = ListTokensResponse$inboundSchema; - /** @deprecated use `ListTokensResponse$outboundSchema` instead. */ - export const outboundSchema = ListTokensResponse$outboundSchema; - /** @deprecated use `ListTokensResponse$Outbound` instead. */ - export type Outbound = ListTokensResponse$Outbound; -} - -export function listTokensResponseToJSON( - listTokensResponse: ListTokensResponse, -): string { - return JSON.stringify( - ListTokensResponse$outboundSchema.parse(listTokensResponse), - ); -} - -export function listTokensResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTokensResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTokensResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listtransactions.ts b/data/src/models/operations/listtransactions.ts deleted file mode 100644 index ec794109..00000000 --- a/data/src/models/operations/listtransactions.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListTransactionsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListTransactionsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; -}; - -export type ListTransactionsResponse = { - result: components.ListTransactionDetailsResponse; -}; - -/** @internal */ -export const ListTransactionsGlobals$inboundSchema: z.ZodType< - ListTransactionsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListTransactionsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListTransactionsGlobals$outboundSchema: z.ZodType< - ListTransactionsGlobals$Outbound, - z.ZodTypeDef, - ListTransactionsGlobals -> = z.object({ - chainId: 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 ListTransactionsGlobals$ { - /** @deprecated use `ListTransactionsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsGlobals$inboundSchema; - /** @deprecated use `ListTransactionsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsGlobals$outboundSchema; - /** @deprecated use `ListTransactionsGlobals$Outbound` instead. */ - export type Outbound = ListTransactionsGlobals$Outbound; -} - -export function listTransactionsGlobalsToJSON( - listTransactionsGlobals: ListTransactionsGlobals, -): string { - return JSON.stringify( - ListTransactionsGlobals$outboundSchema.parse(listTransactionsGlobals), - ); -} - -export function listTransactionsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransactionsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransactionsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListTransactionsRequest$inboundSchema: z.ZodType< - ListTransactionsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - startBlock: z.number().optional(), - endBlock: z.number().optional(), - chainId: z.string().optional(), - address: z.string(), - sortOrder: components.SortOrder$inboundSchema.optional(), -}); - -/** @internal */ -export type ListTransactionsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - startBlock?: number | undefined; - endBlock?: number | undefined; - chainId?: string | undefined; - address: string; - sortOrder?: string | undefined; -}; - -/** @internal */ -export const ListTransactionsRequest$outboundSchema: z.ZodType< - ListTransactionsRequest$Outbound, - z.ZodTypeDef, - ListTransactionsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - startBlock: z.number().optional(), - endBlock: z.number().optional(), - chainId: z.string().optional(), - address: z.string(), - sortOrder: components.SortOrder$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsRequest$ { - /** @deprecated use `ListTransactionsRequest$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsRequest$inboundSchema; - /** @deprecated use `ListTransactionsRequest$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsRequest$outboundSchema; - /** @deprecated use `ListTransactionsRequest$Outbound` instead. */ - export type Outbound = ListTransactionsRequest$Outbound; -} - -export function listTransactionsRequestToJSON( - listTransactionsRequest: ListTransactionsRequest, -): string { - return JSON.stringify( - ListTransactionsRequest$outboundSchema.parse(listTransactionsRequest), - ); -} - -export function listTransactionsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransactionsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransactionsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListTransactionsResponse$inboundSchema: z.ZodType< - ListTransactionsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListTransactionDetailsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListTransactionsResponse$Outbound = { - Result: components.ListTransactionDetailsResponse$Outbound; -}; - -/** @internal */ -export const ListTransactionsResponse$outboundSchema: z.ZodType< - ListTransactionsResponse$Outbound, - z.ZodTypeDef, - ListTransactionsResponse -> = z.object({ - result: components.ListTransactionDetailsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransactionsResponse$ { - /** @deprecated use `ListTransactionsResponse$inboundSchema` instead. */ - export const inboundSchema = ListTransactionsResponse$inboundSchema; - /** @deprecated use `ListTransactionsResponse$outboundSchema` instead. */ - export const outboundSchema = ListTransactionsResponse$outboundSchema; - /** @deprecated use `ListTransactionsResponse$Outbound` instead. */ - export type Outbound = ListTransactionsResponse$Outbound; -} - -export function listTransactionsResponseToJSON( - listTransactionsResponse: ListTransactionsResponse, -): string { - return JSON.stringify( - ListTransactionsResponse$outboundSchema.parse(listTransactionsResponse), - ); -} - -export function listTransactionsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransactionsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransactionsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listtransfers.ts b/data/src/models/operations/listtransfers.ts deleted file mode 100644 index c60d70bb..00000000 --- a/data/src/models/operations/listtransfers.ts +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListTransfersGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ListTransfersRequest = { - /** - * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block. - */ - startBlock?: number | undefined; - /** - * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block. - */ - endBlock?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * A wallet address. - */ - address: string; -}; - -export type ListTransfersResponse = { - result: components.ListTransfersResponse; -}; - -/** @internal */ -export const ListTransfersGlobals$inboundSchema: z.ZodType< - ListTransfersGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ListTransfersGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ListTransfersGlobals$outboundSchema: z.ZodType< - ListTransfersGlobals$Outbound, - z.ZodTypeDef, - ListTransfersGlobals -> = z.object({ - chainId: 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 ListTransfersGlobals$ { - /** @deprecated use `ListTransfersGlobals$inboundSchema` instead. */ - export const inboundSchema = ListTransfersGlobals$inboundSchema; - /** @deprecated use `ListTransfersGlobals$outboundSchema` instead. */ - export const outboundSchema = ListTransfersGlobals$outboundSchema; - /** @deprecated use `ListTransfersGlobals$Outbound` instead. */ - export type Outbound = ListTransfersGlobals$Outbound; -} - -export function listTransfersGlobalsToJSON( - listTransfersGlobals: ListTransfersGlobals, -): string { - return JSON.stringify( - ListTransfersGlobals$outboundSchema.parse(listTransfersGlobals), - ); -} - -export function listTransfersGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransfersGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransfersGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListTransfersRequest$inboundSchema: z.ZodType< - ListTransfersRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type ListTransfersRequest$Outbound = { - startBlock?: number | undefined; - endBlock?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const ListTransfersRequest$outboundSchema: z.ZodType< - ListTransfersRequest$Outbound, - z.ZodTypeDef, - ListTransfersRequest -> = z.object({ - startBlock: z.number().optional(), - endBlock: z.number().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransfersRequest$ { - /** @deprecated use `ListTransfersRequest$inboundSchema` instead. */ - export const inboundSchema = ListTransfersRequest$inboundSchema; - /** @deprecated use `ListTransfersRequest$outboundSchema` instead. */ - export const outboundSchema = ListTransfersRequest$outboundSchema; - /** @deprecated use `ListTransfersRequest$Outbound` instead. */ - export type Outbound = ListTransfersRequest$Outbound; -} - -export function listTransfersRequestToJSON( - listTransfersRequest: ListTransfersRequest, -): string { - return JSON.stringify( - ListTransfersRequest$outboundSchema.parse(listTransfersRequest), - ); -} - -export function listTransfersRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransfersRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransfersRequest' from JSON`, - ); -} - -/** @internal */ -export const ListTransfersResponse$inboundSchema: z.ZodType< - ListTransfersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListTransfersResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListTransfersResponse$Outbound = { - Result: components.ListTransfersResponse$Outbound; -}; - -/** @internal */ -export const ListTransfersResponse$outboundSchema: z.ZodType< - ListTransfersResponse$Outbound, - z.ZodTypeDef, - ListTransfersResponse -> = z.object({ - result: components.ListTransfersResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListTransfersResponse$ { - /** @deprecated use `ListTransfersResponse$inboundSchema` instead. */ - export const inboundSchema = ListTransfersResponse$inboundSchema; - /** @deprecated use `ListTransfersResponse$outboundSchema` instead. */ - export const outboundSchema = ListTransfersResponse$outboundSchema; - /** @deprecated use `ListTransfersResponse$Outbound` instead. */ - export type Outbound = ListTransfersResponse$Outbound; -} - -export function listTransfersResponseToJSON( - listTransfersResponse: ListTransfersResponse, -): string { - return JSON.stringify( - ListTransfersResponse$outboundSchema.parse(listTransfersResponse), - ); -} - -export function listTransfersResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListTransfersResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListTransfersResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/listvalidators.ts b/data/src/models/operations/listvalidators.ts deleted file mode 100644 index 07846a97..00000000 --- a/data/src/models/operations/listvalidators.ts +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListValidatorsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type ListValidatorsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * A comma separated list of node ids to filter by. Supports substring matching. - */ - nodeIds?: string | undefined; - /** - * Which property to sort by, in conjunction with sortOrder. - * - * @remarks - * - * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option. - */ - sortBy?: components.SortByOption | undefined; - /** - * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided. - */ - sortOrder?: components.SortOrder | undefined; - /** - * Validation status of the node. - */ - validationStatus?: components.ValidationStatusType | undefined; - /** - * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000 - */ - minDelegationCapacity?: string | undefined; - /** - * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000. - */ - maxDelegationCapacity?: string | undefined; - /** - * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned. - */ - minTimeRemaining?: number | undefined; - /** - * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned. - */ - maxTimeRemaining?: number | undefined; - /** - * The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec. - */ - minFeePercentage?: number | undefined; - /** - * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0. - */ - maxFeePercentage?: number | undefined; - /** - * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90. - */ - minUptimePerformance?: number | undefined; - /** - * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100. - */ - maxUptimePerformance?: number | undefined; - /** - * The subnet ID to filter by. If not provided, then all subnets will be returned. - */ - subnetId?: any | undefined; -}; - -export type ListValidatorsResponse = { - result: components.ListValidatorDetailsResponse; -}; - -/** @internal */ -export const ListValidatorsGlobals$inboundSchema: z.ZodType< - ListValidatorsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type ListValidatorsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const ListValidatorsGlobals$outboundSchema: z.ZodType< - ListValidatorsGlobals$Outbound, - z.ZodTypeDef, - ListValidatorsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListValidatorsGlobals$ { - /** @deprecated use `ListValidatorsGlobals$inboundSchema` instead. */ - export const inboundSchema = ListValidatorsGlobals$inboundSchema; - /** @deprecated use `ListValidatorsGlobals$outboundSchema` instead. */ - export const outboundSchema = ListValidatorsGlobals$outboundSchema; - /** @deprecated use `ListValidatorsGlobals$Outbound` instead. */ - export type Outbound = ListValidatorsGlobals$Outbound; -} - -export function listValidatorsGlobalsToJSON( - listValidatorsGlobals: ListValidatorsGlobals, -): string { - return JSON.stringify( - ListValidatorsGlobals$outboundSchema.parse(listValidatorsGlobals), - ); -} - -export function listValidatorsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListValidatorsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListValidatorsGlobals' from JSON`, - ); -} - -/** @internal */ -export const ListValidatorsRequest$inboundSchema: z.ZodType< - ListValidatorsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$inboundSchema.optional(), - nodeIds: z.string().optional(), - sortBy: components.SortByOption$inboundSchema.optional(), - sortOrder: components.SortOrder$inboundSchema.optional(), - validationStatus: components.ValidationStatusType$inboundSchema.optional(), - minDelegationCapacity: z.string().optional(), - maxDelegationCapacity: z.string().optional(), - minTimeRemaining: z.number().optional(), - maxTimeRemaining: z.number().optional(), - minFeePercentage: z.number().optional(), - maxFeePercentage: z.number().optional(), - minUptimePerformance: z.number().optional(), - maxUptimePerformance: z.number().optional(), - subnetId: z.any().optional(), -}); - -/** @internal */ -export type ListValidatorsRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - nodeIds?: string | undefined; - sortBy?: string | undefined; - sortOrder?: string | undefined; - validationStatus?: string | undefined; - minDelegationCapacity?: string | undefined; - maxDelegationCapacity?: string | undefined; - minTimeRemaining?: number | undefined; - maxTimeRemaining?: number | undefined; - minFeePercentage?: number | undefined; - maxFeePercentage?: number | undefined; - minUptimePerformance?: number | undefined; - maxUptimePerformance?: number | undefined; - subnetId?: any | undefined; -}; - -/** @internal */ -export const ListValidatorsRequest$outboundSchema: z.ZodType< - ListValidatorsRequest$Outbound, - z.ZodTypeDef, - ListValidatorsRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - network: components.GlobalParamNetwork$outboundSchema.optional(), - nodeIds: z.string().optional(), - sortBy: components.SortByOption$outboundSchema.optional(), - sortOrder: components.SortOrder$outboundSchema.optional(), - validationStatus: components.ValidationStatusType$outboundSchema.optional(), - minDelegationCapacity: z.string().optional(), - maxDelegationCapacity: z.string().optional(), - minTimeRemaining: z.number().optional(), - maxTimeRemaining: z.number().optional(), - minFeePercentage: z.number().optional(), - maxFeePercentage: z.number().optional(), - minUptimePerformance: z.number().optional(), - maxUptimePerformance: z.number().optional(), - subnetId: z.any().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListValidatorsRequest$ { - /** @deprecated use `ListValidatorsRequest$inboundSchema` instead. */ - export const inboundSchema = ListValidatorsRequest$inboundSchema; - /** @deprecated use `ListValidatorsRequest$outboundSchema` instead. */ - export const outboundSchema = ListValidatorsRequest$outboundSchema; - /** @deprecated use `ListValidatorsRequest$Outbound` instead. */ - export type Outbound = ListValidatorsRequest$Outbound; -} - -export function listValidatorsRequestToJSON( - listValidatorsRequest: ListValidatorsRequest, -): string { - return JSON.stringify( - ListValidatorsRequest$outboundSchema.parse(listValidatorsRequest), - ); -} - -export function listValidatorsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListValidatorsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListValidatorsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListValidatorsResponse$inboundSchema: z.ZodType< - ListValidatorsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListValidatorDetailsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListValidatorsResponse$Outbound = { - Result: components.ListValidatorDetailsResponse$Outbound; -}; - -/** @internal */ -export const ListValidatorsResponse$outboundSchema: z.ZodType< - ListValidatorsResponse$Outbound, - z.ZodTypeDef, - ListValidatorsResponse -> = z.object({ - result: components.ListValidatorDetailsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListValidatorsResponse$ { - /** @deprecated use `ListValidatorsResponse$inboundSchema` instead. */ - export const inboundSchema = ListValidatorsResponse$inboundSchema; - /** @deprecated use `ListValidatorsResponse$outboundSchema` instead. */ - export const outboundSchema = ListValidatorsResponse$outboundSchema; - /** @deprecated use `ListValidatorsResponse$Outbound` instead. */ - export type Outbound = ListValidatorsResponse$Outbound; -} - -export function listValidatorsResponseToJSON( - listValidatorsResponse: ListValidatorsResponse, -): string { - return JSON.stringify( - ListValidatorsResponse$outboundSchema.parse(listValidatorsResponse), - ); -} - -export function listValidatorsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListValidatorsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListValidatorsResponse' from JSON`, - ); -} diff --git a/data/src/models/operations/posttransactionexportjob.ts b/data/src/models/operations/posttransactionexportjob.ts deleted file mode 100644 index fad66761..00000000 --- a/data/src/models/operations/posttransactionexportjob.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type PostTransactionExportJobRequest = - | components.CreateEvmTransactionExportRequest - | components.CreatePrimaryNetworkTransactionExportRequest; - -/** @internal */ -export const PostTransactionExportJobRequest$inboundSchema: z.ZodType< - PostTransactionExportJobRequest, - z.ZodTypeDef, - unknown -> = z.union([ - components.CreateEvmTransactionExportRequest$inboundSchema, - components.CreatePrimaryNetworkTransactionExportRequest$inboundSchema, -]); - -/** @internal */ -export type PostTransactionExportJobRequest$Outbound = - | components.CreateEvmTransactionExportRequest$Outbound - | components.CreatePrimaryNetworkTransactionExportRequest$Outbound; - -/** @internal */ -export const PostTransactionExportJobRequest$outboundSchema: z.ZodType< - PostTransactionExportJobRequest$Outbound, - z.ZodTypeDef, - PostTransactionExportJobRequest -> = z.union([ - components.CreateEvmTransactionExportRequest$outboundSchema, - components.CreatePrimaryNetworkTransactionExportRequest$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PostTransactionExportJobRequest$ { - /** @deprecated use `PostTransactionExportJobRequest$inboundSchema` instead. */ - export const inboundSchema = PostTransactionExportJobRequest$inboundSchema; - /** @deprecated use `PostTransactionExportJobRequest$outboundSchema` instead. */ - export const outboundSchema = PostTransactionExportJobRequest$outboundSchema; - /** @deprecated use `PostTransactionExportJobRequest$Outbound` instead. */ - export type Outbound = PostTransactionExportJobRequest$Outbound; -} - -export function postTransactionExportJobRequestToJSON( - postTransactionExportJobRequest: PostTransactionExportJobRequest, -): string { - return JSON.stringify( - PostTransactionExportJobRequest$outboundSchema.parse( - postTransactionExportJobRequest, - ), - ); -} - -export function postTransactionExportJobRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PostTransactionExportJobRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PostTransactionExportJobRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/reindexnft.ts b/data/src/models/operations/reindexnft.ts deleted file mode 100644 index d2c6a84f..00000000 --- a/data/src/models/operations/reindexnft.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ReindexNftGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type ReindexNftRequest = { - /** - * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; - /** - * TokenId on the contract - */ - tokenId: string; -}; - -/** @internal */ -export const ReindexNftGlobals$inboundSchema: z.ZodType< - ReindexNftGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type ReindexNftGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const ReindexNftGlobals$outboundSchema: z.ZodType< - ReindexNftGlobals$Outbound, - z.ZodTypeDef, - ReindexNftGlobals -> = z.object({ - chainId: 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 ReindexNftGlobals$ { - /** @deprecated use `ReindexNftGlobals$inboundSchema` instead. */ - export const inboundSchema = ReindexNftGlobals$inboundSchema; - /** @deprecated use `ReindexNftGlobals$outboundSchema` instead. */ - export const outboundSchema = ReindexNftGlobals$outboundSchema; - /** @deprecated use `ReindexNftGlobals$Outbound` instead. */ - export type Outbound = ReindexNftGlobals$Outbound; -} - -export function reindexNftGlobalsToJSON( - reindexNftGlobals: ReindexNftGlobals, -): string { - return JSON.stringify( - ReindexNftGlobals$outboundSchema.parse(reindexNftGlobals), - ); -} - -export function reindexNftGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReindexNftGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReindexNftGlobals' from JSON`, - ); -} - -/** @internal */ -export const ReindexNftRequest$inboundSchema: z.ZodType< - ReindexNftRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - tokenId: z.string(), -}); - -/** @internal */ -export type ReindexNftRequest$Outbound = { - chainId?: string | undefined; - address: string; - tokenId: string; -}; - -/** @internal */ -export const ReindexNftRequest$outboundSchema: z.ZodType< - ReindexNftRequest$Outbound, - z.ZodTypeDef, - ReindexNftRequest -> = z.object({ - chainId: z.string().optional(), - address: z.string(), - tokenId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ReindexNftRequest$ { - /** @deprecated use `ReindexNftRequest$inboundSchema` instead. */ - export const inboundSchema = ReindexNftRequest$inboundSchema; - /** @deprecated use `ReindexNftRequest$outboundSchema` instead. */ - export const outboundSchema = ReindexNftRequest$outboundSchema; - /** @deprecated use `ReindexNftRequest$Outbound` instead. */ - export type Outbound = ReindexNftRequest$Outbound; -} - -export function reindexNftRequestToJSON( - reindexNftRequest: ReindexNftRequest, -): string { - return JSON.stringify( - ReindexNftRequest$outboundSchema.parse(reindexNftRequest), - ); -} - -export function reindexNftRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ReindexNftRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ReindexNftRequest' from JSON`, - ); -} diff --git a/data/src/models/operations/supportedchains.ts b/data/src/models/operations/supportedchains.ts deleted file mode 100644 index 9f0c033b..00000000 --- a/data/src/models/operations/supportedchains.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SupportedChainsRequest = { - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; - /** - * Filter by feature. - */ - feature?: components.ApiFeature | undefined; -}; - -/** @internal */ -export const SupportedChainsRequest$inboundSchema: z.ZodType< - SupportedChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.Network$inboundSchema.optional(), - feature: components.ApiFeature$inboundSchema.optional(), -}); - -/** @internal */ -export type SupportedChainsRequest$Outbound = { - network?: string | undefined; - feature?: string | undefined; -}; - -/** @internal */ -export const SupportedChainsRequest$outboundSchema: z.ZodType< - SupportedChainsRequest$Outbound, - z.ZodTypeDef, - SupportedChainsRequest -> = z.object({ - network: components.Network$outboundSchema.optional(), - feature: components.ApiFeature$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportedChainsRequest$ { - /** @deprecated use `SupportedChainsRequest$inboundSchema` instead. */ - export const inboundSchema = SupportedChainsRequest$inboundSchema; - /** @deprecated use `SupportedChainsRequest$outboundSchema` instead. */ - export const outboundSchema = SupportedChainsRequest$outboundSchema; - /** @deprecated use `SupportedChainsRequest$Outbound` instead. */ - export type Outbound = SupportedChainsRequest$Outbound; -} - -export function supportedChainsRequestToJSON( - supportedChainsRequest: SupportedChainsRequest, -): string { - return JSON.stringify( - SupportedChainsRequest$outboundSchema.parse(supportedChainsRequest), - ); -} - -export function supportedChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SupportedChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SupportedChainsRequest' from JSON`, - ); -} diff --git a/data/src/sdk/address.ts b/data/src/sdk/address.ts deleted file mode 100644 index 442a7137..00000000 --- a/data/src/sdk/address.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { AddressBalances } from "./addressbalances.js"; -import { AddressChains } from "./addresschains.js"; -import { AddressContracts } from "./addresscontracts.js"; -import { AddressTransactions } from "./addresstransactions.js"; - -export class Address extends ClientSDK { - private _chains?: AddressChains; - get chains(): AddressChains { - return (this._chains ??= new AddressChains(this._options)); - } - - private _balances?: AddressBalances; - get balances(): AddressBalances { - return (this._balances ??= new AddressBalances(this._options)); - } - - private _contracts?: AddressContracts; - get contracts(): AddressContracts { - return (this._contracts ??= new AddressContracts(this._options)); - } - - private _transactions?: AddressTransactions; - get transactions(): AddressTransactions { - return (this._transactions ??= new AddressTransactions(this._options)); - } -} diff --git a/data/src/sdk/addressbalances.ts b/data/src/sdk/addressbalances.ts deleted file mode 100644 index bb71914a..00000000 --- a/data/src/sdk/addressbalances.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressBalancesGetNative } from "../funcs/dataEvmAddressBalancesGetNative.js"; -import { dataEvmAddressBalancesListCollectibles } from "../funcs/dataEvmAddressBalancesListCollectibles.js"; -import { dataEvmAddressBalancesListErc1155 } from "../funcs/dataEvmAddressBalancesListErc1155.js"; -import { dataEvmAddressBalancesListErc20 } from "../funcs/dataEvmAddressBalancesListErc20.js"; -import { dataEvmAddressBalancesListErc721 } from "../funcs/dataEvmAddressBalancesListErc721.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class AddressBalances extends ClientSDK { - /** - * Get native token balance - * - * @remarks - * Gets native token balance of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - */ - async getNative( - request: operations.GetNativeBalanceRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmAddressBalancesGetNative( - this, - request, - options, - )); - } - - /** - * List ERC-20 balances - * - * @remarks - * Lists ERC-20 token balances of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - * - * Balance for specific contracts can be retrieved with the `contractAddresses` parameter. - */ - async listErc20( - request: operations.ListErc20BalancesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressBalancesListErc20( - this, - request, - options, - )); - } - - /** - * List ERC-721 balances - * - * @remarks - * Lists ERC-721 token balances of a wallet address. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ - async listErc721( - request: operations.ListErc721BalancesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressBalancesListErc721( - this, - request, - options, - )); - } - - /** - * List ERC-1155 balances - * - * @remarks - * Lists ERC-1155 token balances of a wallet address. - * - * Balance at a given block can be retrieved with the `blockNumber` parameter. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ - async listErc1155( - request: operations.ListErc1155BalancesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressBalancesListErc1155( - this, - request, - options, - )); - } - - /** - * List collectible (ERC-721/ERC-1155) balances - * - * @remarks - * Lists ERC-721 and ERC-1155 token balances of a wallet address. - * - * Balance for a specific contract can be retrieved with the `contractAddress` parameter. - */ - async listCollectibles( - request: operations.ListCollectibleBalancesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressBalancesListCollectibles( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/addresschains.ts b/data/src/sdk/addresschains.ts deleted file mode 100644 index 0b9539b0..00000000 --- a/data/src/sdk/addresschains.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressChainsList } from "../funcs/dataEvmAddressChainsList.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class AddressChains extends ClientSDK { - /** - * List all chains associated with a given address - * - * @remarks - * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes. - */ - async list( - request: operations.ListAddressChainsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmAddressChainsList( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/addresscontracts.ts b/data/src/sdk/addresscontracts.ts deleted file mode 100644 index 0fcde506..00000000 --- a/data/src/sdk/addresscontracts.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressContractsListDeployments } from "../funcs/dataEvmAddressContractsListDeployments.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class AddressContracts extends ClientSDK { - /** - * List deployed contracts - * - * @remarks - * Lists all contracts deployed by the given address. - */ - async listDeployments( - request: operations.ListContractDeploymentsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressContractsListDeployments( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/addresstransactions.ts b/data/src/sdk/addresstransactions.ts deleted file mode 100644 index 4d11bb8a..00000000 --- a/data/src/sdk/addresstransactions.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmAddressTransactionsList } from "../funcs/dataEvmAddressTransactionsList.js"; -import { dataEvmAddressTransactionsListErc1155 } from "../funcs/dataEvmAddressTransactionsListErc1155.js"; -import { dataEvmAddressTransactionsListErc20 } from "../funcs/dataEvmAddressTransactionsListErc20.js"; -import { dataEvmAddressTransactionsListErc721 } from "../funcs/dataEvmAddressTransactionsListErc721.js"; -import { dataEvmAddressTransactionsListInternal } from "../funcs/dataEvmAddressTransactionsListInternal.js"; -import { dataEvmAddressTransactionsListNative } from "../funcs/dataEvmAddressTransactionsListNative.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class AddressTransactions extends ClientSDK { - /** - * List transactions - * - * @remarks - * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint. - * - * Filterable by block ranges. - */ - async list( - request: operations.ListTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressTransactionsList( - this, - request, - options, - )); - } - - /** - * List native transactions - * - * @remarks - * Lists native transactions for an address. Filterable by block range. - */ - async listNative( - request: operations.ListNativeTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressTransactionsListNative( - this, - request, - options, - )); - } - - /** - * List ERC-20 transfers - * - * @remarks - * Lists ERC-20 transfers for an address. Filterable by block range. - */ - async listErc20( - request: operations.ListErc20TransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressTransactionsListErc20( - this, - request, - options, - )); - } - - /** - * List ERC-721 transfers - * - * @remarks - * Lists ERC-721 transfers for an address. Filterable by block range. - */ - async listErc721( - request: operations.ListErc721TransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressTransactionsListErc721( - this, - request, - options, - )); - } - - /** - * List ERC-1155 transfers - * - * @remarks - * Lists ERC-1155 transfers for an address. Filterable by block range. - */ - async listErc1155( - request: operations.ListErc1155TransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmAddressTransactionsListErc1155( - this, - request, - options, - )); - } - - /** - * List internal transactions - * - * @remarks - * Returns a list of internal transactions for an address and chain. Filterable by block range. - * - * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node. - */ - async listInternal( - request: operations.ListInternalTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListInternalTransactionsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataEvmAddressTransactionsListInternal( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/chains.ts b/data/src/sdk/chains.ts deleted file mode 100644 index 27445b7f..00000000 --- a/data/src/sdk/chains.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmChainsGet } from "../funcs/dataEvmChainsGet.js"; -import { dataEvmChainsGetAddressChains } from "../funcs/dataEvmChainsGetAddressChains.js"; -import { dataEvmChainsList } from "../funcs/dataEvmChainsList.js"; -import { dataEvmChainsListAllLatestBlocks } from "../funcs/dataEvmChainsListAllLatestBlocks.js"; -import { dataEvmChainsListAllLatestTransactions } from "../funcs/dataEvmChainsListAllLatestTransactions.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Chains extends ClientSDK { - /** - * List chains - * - * @remarks - * Lists the AvaCloud supported EVM-compatible chains. Filterable by network. - */ - async list( - request: operations.SupportedChainsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmChainsList( - this, - request, - options, - )); - } - - /** - * Get chain information - * - * @remarks - * Gets chain information for the EVM-compatible chain if supported by AvaCloud. - */ - async get( - request: operations.GetChainInfoRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmChainsGet( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async getAddressChains( - request: operations.GetAddressChainsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmChainsGetAddressChains( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async listAllLatestTransactions( - request: operations.ListAllLatestTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListAllLatestTransactionsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataEvmChainsListAllLatestTransactions( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async listAllLatestBlocks( - request: operations.ListAllLatestBlocksRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmChainsListAllLatestBlocks( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/contracts.ts b/data/src/sdk/contracts.ts deleted file mode 100644 index 8cfb3a4c..00000000 --- a/data/src/sdk/contracts.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmContractsGetDeploymentTransaction } from "../funcs/dataEvmContractsGetDeploymentTransaction.js"; -import { dataEvmContractsGetMetadata } from "../funcs/dataEvmContractsGetMetadata.js"; -import { dataEvmContractsListTransfers } from "../funcs/dataEvmContractsListTransfers.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Contracts extends ClientSDK { - /** - * Get deployment transaction - * - * @remarks - * If the address is a smart contract, returns the transaction in which it was deployed. - */ - async getDeploymentTransaction( - request: operations.GetDeploymentTransactionRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmContractsGetDeploymentTransaction( - this, - request, - options, - )); - } - - /** - * Get contract metadata - * - * @remarks - * Gets metadata about the contract at the given address. - */ - async getMetadata( - request: operations.GetContractMetadataRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmContractsGetMetadata( - this, - request, - options, - )); - } - - /** - * List ERC transfers - * - * @remarks - * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address. - */ - async listTransfers( - request: operations.ListTransfersRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmContractsListTransfers( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/data.ts b/data/src/sdk/data.ts deleted file mode 100644 index e3f09ee7..00000000 --- a/data/src/sdk/data.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataHealthCheck } from "../funcs/dataHealthCheck.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { Evm } from "./evm.js"; -import { Icm } from "./icm.js"; -import { Nfts } from "./nfts.js"; -import { Operations } from "./operations.js"; -import { PrimaryNetwork } from "./primarynetwork.js"; -import { SignatureAggregator } from "./signatureaggregator.js"; -import { Teleporter } from "./teleporter.js"; -import { UsageMetrics } from "./usagemetrics.js"; - -export class Data extends ClientSDK { - private _evm?: Evm; - get evm(): Evm { - return (this._evm ??= new Evm(this._options)); - } - - private _nfts?: Nfts; - get nfts(): Nfts { - return (this._nfts ??= new Nfts(this._options)); - } - - private _operations?: Operations; - get operations(): Operations { - return (this._operations ??= new Operations(this._options)); - } - - private _primaryNetwork?: PrimaryNetwork; - get primaryNetwork(): PrimaryNetwork { - return (this._primaryNetwork ??= new PrimaryNetwork(this._options)); - } - - private _teleporter?: Teleporter; - get teleporter(): Teleporter { - return (this._teleporter ??= new Teleporter(this._options)); - } - - private _icm?: Icm; - get icm(): Icm { - return (this._icm ??= new Icm(this._options)); - } - - private _usageMetrics?: UsageMetrics; - get usageMetrics(): UsageMetrics { - return (this._usageMetrics ??= new UsageMetrics(this._options)); - } - - private _signatureAggregator?: SignatureAggregator; - get signatureAggregator(): SignatureAggregator { - return (this._signatureAggregator ??= new SignatureAggregator( - this._options, - )); - } - - /** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ - async healthCheck( - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataHealthCheck( - this, - options, - )); - } -} diff --git a/data/src/sdk/evm.ts b/data/src/sdk/evm.ts deleted file mode 100644 index 939fb60f..00000000 --- a/data/src/sdk/evm.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Address } from "./address.js"; -import { Chains } from "./chains.js"; -import { Contracts } from "./contracts.js"; -import { EvmBlocks } from "./evmblocks.js"; -import { EvmTransactions } from "./evmtransactions.js"; - -export class Evm extends ClientSDK { - private _address?: Address; - get address(): Address { - return (this._address ??= new Address(this._options)); - } - - private _transactions?: EvmTransactions; - get transactions(): EvmTransactions { - return (this._transactions ??= new EvmTransactions(this._options)); - } - - private _blocks?: EvmBlocks; - get blocks(): EvmBlocks { - return (this._blocks ??= new EvmBlocks(this._options)); - } - - private _contracts?: Contracts; - get contracts(): Contracts { - return (this._contracts ??= new Contracts(this._options)); - } - - private _chains?: Chains; - get chains(): Chains { - return (this._chains ??= new Chains(this._options)); - } -} diff --git a/data/src/sdk/evmblocks.ts b/data/src/sdk/evmblocks.ts deleted file mode 100644 index c12dbe35..00000000 --- a/data/src/sdk/evmblocks.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmBlocksGet } from "../funcs/dataEvmBlocksGet.js"; -import { dataEvmBlocksListLatest } from "../funcs/dataEvmBlocksListLatest.js"; -import { dataEvmBlocksListLatestAllChains } from "../funcs/dataEvmBlocksListLatestAllChains.js"; -import { dataEvmBlocksListTransactions } from "../funcs/dataEvmBlocksListTransactions.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class EvmBlocks extends ClientSDK { - /** - * List latest blocks across all supported EVM chains - * - * @remarks - * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network. - */ - async listLatestAllChains( - request: operations.ListLatestBlocksAllChainsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListLatestBlocksAllChainsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataEvmBlocksListLatestAllChains( - this, - request, - options, - )); - } - - /** - * List latest blocks - * - * @remarks - * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp. - */ - async listLatest( - request: operations.GetLatestBlocksRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmBlocksListLatest( - this, - request, - options, - )); - } - - /** - * Get block - * - * @remarks - * Gets the details of an individual block on the EVM-compatible chain. - */ - async get( - request: operations.GetBlockRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmBlocksGet( - this, - request, - options, - )); - } - - /** - * List transactions for a block - * - * @remarks - * Lists the transactions that occured in a given block. - */ - async listTransactions( - request: operations.GetTransactionsForBlockRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmBlocksListTransactions( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/evmtransactions.ts b/data/src/sdk/evmtransactions.ts deleted file mode 100644 index f171fc65..00000000 --- a/data/src/sdk/evmtransactions.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataEvmTransactionsGet } from "../funcs/dataEvmTransactionsGet.js"; -import { dataEvmTransactionsListLatest } from "../funcs/dataEvmTransactionsListLatest.js"; -import { dataEvmTransactionsListLatestAllChains } from "../funcs/dataEvmTransactionsListLatestAllChains.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class EvmTransactions extends ClientSDK { - /** - * List the latest transactions across all supported EVM chains - * - * @remarks - * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status. - */ - async listLatestAllChains( - request: operations.ListLatestTransactionsAllChainsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListLatestTransactionsAllChainsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataEvmTransactionsListLatestAllChains( - this, - request, - options, - )); - } - - /** - * Get transaction - * - * @remarks - * Gets the details of a single transaction. - */ - async get( - request: operations.GetTransactionRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataEvmTransactionsGet( - this, - request, - options, - )); - } - - /** - * List latest transactions - * - * @remarks - * Lists the latest transactions. Filterable by status. - */ - async listLatest( - request: operations.ListLatestTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataEvmTransactionsListLatest( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/icm.ts b/data/src/sdk/icm.ts deleted file mode 100644 index b8cce342..00000000 --- a/data/src/sdk/icm.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataIcmGet } from "../funcs/dataIcmGet.js"; -import { dataIcmList } from "../funcs/dataIcmList.js"; -import { dataIcmListByAddress } from "../funcs/dataIcmListByAddress.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Icm extends ClientSDK { - /** - * Get an ICM message - * - * @remarks - * Gets an ICM message by teleporter message ID. - */ - async get( - request: operations.GetIcmMessageRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataIcmGet( - this, - request, - options, - )); - } - - /** - * List ICM messages - * - * @remarks - * Lists ICM messages. Ordered by timestamp in descending order. - */ - async list( - request: operations.ListIcmMessagesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataIcmList( - this, - request, - options, - )); - } - - /** - * List ICM messages by address - * - * @remarks - * Lists ICM messages by address. Ordered by timestamp in descending order. - */ - async listByAddress( - request: operations.ListIcmMessagesByAddressRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataIcmListByAddress( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/index.ts b/data/src/sdk/index.ts deleted file mode 100644 index ecac2264..00000000 --- a/data/src/sdk/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./sdk.js"; diff --git a/data/src/sdk/nfts.ts b/data/src/sdk/nfts.ts deleted file mode 100644 index 9f650f23..00000000 --- a/data/src/sdk/nfts.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataNftsGet } from "../funcs/dataNftsGet.js"; -import { dataNftsList } from "../funcs/dataNftsList.js"; -import { dataNftsReindex } from "../funcs/dataNftsReindex.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Nfts extends ClientSDK { - /** - * Reindex NFT metadata - * - * @remarks - * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token. - */ - async reindex( - request: operations.ReindexNftRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataNftsReindex( - this, - request, - options, - )); - } - - /** - * List tokens - * - * @remarks - * Lists tokens for an NFT contract. - */ - async list( - request: operations.ListTokensRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(dataNftsList( - this, - request, - options, - )); - } - - /** - * Get token details - * - * @remarks - * Gets token details for a specific token of an NFT contract. - */ - async get( - request: operations.GetTokenDetailsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataNftsGet( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/operations.ts b/data/src/sdk/operations.ts deleted file mode 100644 index 103ea880..00000000 --- a/data/src/sdk/operations.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataOperationsExportTransactions } from "../funcs/dataOperationsExportTransactions.js"; -import { dataOperationsGetResult } from "../funcs/dataOperationsGetResult.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class Operations extends ClientSDK { - /** - * Get operation - * - * @remarks - * Gets operation details for the given operation id. - */ - async getResult( - request: operations.GetOperationResultRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataOperationsGetResult( - this, - request, - options, - )); - } - - /** - * Create transaction export operation - * - * @remarks - * Trigger a transaction export operation with given parameters. - * - * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint. - */ - async exportTransactions( - request: operations.PostTransactionExportJobRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataOperationsExportTransactions( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/primarynetwork.ts b/data/src/sdk/primarynetwork.ts deleted file mode 100644 index 81871304..00000000 --- a/data/src/sdk/primarynetwork.ts +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkGetAssetDetails } from "../funcs/dataPrimaryNetworkGetAssetDetails.js"; -import { dataPrimaryNetworkGetBlockchainById } from "../funcs/dataPrimaryNetworkGetBlockchainById.js"; -import { dataPrimaryNetworkGetChainIdsForAddresses } from "../funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; -import { dataPrimaryNetworkGetNetworkDetails } from "../funcs/dataPrimaryNetworkGetNetworkDetails.js"; -import { dataPrimaryNetworkGetSubnetById } from "../funcs/dataPrimaryNetworkGetSubnetById.js"; -import { dataPrimaryNetworkGetValidatorDetails } from "../funcs/dataPrimaryNetworkGetValidatorDetails.js"; -import { dataPrimaryNetworkListBlockchains } from "../funcs/dataPrimaryNetworkListBlockchains.js"; -import { dataPrimaryNetworkListDelegators } from "../funcs/dataPrimaryNetworkListDelegators.js"; -import { dataPrimaryNetworkListL1Validators } from "../funcs/dataPrimaryNetworkListL1Validators.js"; -import { dataPrimaryNetworkListSubnets } from "../funcs/dataPrimaryNetworkListSubnets.js"; -import { dataPrimaryNetworkListValidators } from "../funcs/dataPrimaryNetworkListValidators.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; -import { PrimaryNetworkBalances } from "./primarynetworkbalances.js"; -import { PrimaryNetworkBlocks } from "./primarynetworkblocks.js"; -import { PrimaryNetworkTransactions } from "./primarynetworktransactions.js"; -import { Rewards } from "./rewards.js"; -import { Utxos } from "./utxos.js"; -import { Vertices } from "./vertices.js"; - -export class PrimaryNetwork extends ClientSDK { - private _transactions?: PrimaryNetworkTransactions; - get transactions(): PrimaryNetworkTransactions { - return (this._transactions ??= new PrimaryNetworkTransactions( - this._options, - )); - } - - private _rewards?: Rewards; - get rewards(): Rewards { - return (this._rewards ??= new Rewards(this._options)); - } - - private _utxos?: Utxos; - get utxos(): Utxos { - return (this._utxos ??= new Utxos(this._options)); - } - - private _balances?: PrimaryNetworkBalances; - get balances(): PrimaryNetworkBalances { - return (this._balances ??= new PrimaryNetworkBalances(this._options)); - } - - private _blocks?: PrimaryNetworkBlocks; - get blocks(): PrimaryNetworkBlocks { - return (this._blocks ??= new PrimaryNetworkBlocks(this._options)); - } - - private _vertices?: Vertices; - get vertices(): Vertices { - return (this._vertices ??= new Vertices(this._options)); - } - - /** - * Get asset details - * - * @remarks - * Gets asset details corresponding to the given asset id on the X-Chain. - */ - async getAssetDetails( - request: operations.GetAssetDetailsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkGetAssetDetails( - this, - request, - options, - )); - } - - /** - * Get chain interactions for addresses - * - * @remarks - * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned. - */ - async getChainIdsForAddresses( - request: operations.GetChainIdsForAddressesRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkGetChainIdsForAddresses( - this, - request, - options, - )); - } - - /** - * Get network details - * - * @remarks - * Gets network details such as validator and delegator stats. - */ - async getNetworkDetails( - request: operations.GetNetworkDetailsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkGetNetworkDetails( - this, - request, - options, - )); - } - - /** - * List blockchains - * - * @remarks - * Lists all blockchains registered on the network. - */ - async listBlockchains( - request: operations.ListBlockchainsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkListBlockchains( - this, - request, - options, - )); - } - - /** - * Get blockchain details by ID - * - * @remarks - * Get details of the blockchain registered on the network. - */ - async getBlockchainById( - request: operations.GetBlockchainByIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkGetBlockchainById( - this, - request, - options, - )); - } - - /** - * List subnets - * - * @remarks - * Lists all subnets registered on the network. - */ - async listSubnets( - request: operations.ListSubnetsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(dataPrimaryNetworkListSubnets( - this, - request, - options, - )); - } - - /** - * Get Subnet details by ID - * - * @remarks - * Get details of the Subnet registered on the network. - */ - async getSubnetById( - request: operations.GetSubnetByIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkGetSubnetById( - this, - request, - options, - )); - } - - /** - * List validators - * - * @remarks - * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id. - */ - async listValidators( - request: operations.ListValidatorsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkListValidators( - this, - request, - options, - )); - } - - /** - * Get single validator details - * - * @remarks - * List validator details for a single validator. Filterable by validation status. - */ - async getValidatorDetails( - request: operations.GetSingleValidatorDetailsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.GetSingleValidatorDetailsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkGetValidatorDetails( - this, - request, - options, - )); - } - - /** - * List delegators - * - * @remarks - * Lists details for delegators. - */ - async listDelegators( - request: operations.ListDelegatorsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkListDelegators( - this, - request, - options, - )); - } - - /** - * List L1 validators - * - * @remarks - * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id. - */ - async listL1Validators( - request: operations.ListL1ValidatorsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkListL1Validators( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/primarynetworkbalances.ts b/data/src/sdk/primarynetworkbalances.ts deleted file mode 100644 index 30f0a99c..00000000 --- a/data/src/sdk/primarynetworkbalances.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBalancesListByAddresses } from "../funcs/dataPrimaryNetworkBalancesListByAddresses.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class PrimaryNetworkBalances extends ClientSDK { - /** - * Get balances - * - * @remarks - * Gets primary network balances for one of the Primary Network chains for the supplied addresses. - * - * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint. - */ - async listByAddresses( - request: operations.GetBalancesByAddressesRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkBalancesListByAddresses( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/primarynetworkblocks.ts b/data/src/sdk/primarynetworkblocks.ts deleted file mode 100644 index 05981a19..00000000 --- a/data/src/sdk/primarynetworkblocks.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkBlocksGet } from "../funcs/dataPrimaryNetworkBlocksGet.js"; -import { dataPrimaryNetworkBlocksListByNodeId } from "../funcs/dataPrimaryNetworkBlocksListByNodeId.js"; -import { dataPrimaryNetworkBlocksListLatest } from "../funcs/dataPrimaryNetworkBlocksListLatest.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PrimaryNetworkBlocks extends ClientSDK { - /** - * Get block - * - * @remarks - * Gets a block by block height or block hash on one of the Primary Network chains. - */ - async get( - request: operations.GetBlockByIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkBlocksGet( - this, - request, - options, - )); - } - - /** - * List blocks proposed by node - * - * @remarks - * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains. - */ - async listByNodeId( - request: operations.ListPrimaryNetworkBlocksByNodeIdRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListPrimaryNetworkBlocksByNodeIdResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkBlocksListByNodeId( - this, - request, - options, - )); - } - - /** - * List latest blocks - * - * @remarks - * Lists latest blocks on one of the Primary Network chains. - */ - async listLatest( - request: operations.ListLatestPrimaryNetworkBlocksRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListLatestPrimaryNetworkBlocksResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkBlocksListLatest( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/primarynetworktransactions.ts b/data/src/sdk/primarynetworktransactions.ts deleted file mode 100644 index 5c0cd438..00000000 --- a/data/src/sdk/primarynetworktransactions.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkTransactionsGet } from "../funcs/dataPrimaryNetworkTransactionsGet.js"; -import { dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "../funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; -import { dataPrimaryNetworkTransactionsListAssetTransactions } from "../funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; -import { dataPrimaryNetworkTransactionsListLatest } from "../funcs/dataPrimaryNetworkTransactionsListLatest.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class PrimaryNetworkTransactions extends ClientSDK { - /** - * Get transaction - * - * @remarks - * Gets the details of a single transaction on one of the Primary Network chains. - */ - async get( - request: operations.GetTxByHashRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkTransactionsGet( - this, - request, - options, - )); - } - - /** - * List latest transactions - * - * @remarks - * Lists the latest transactions on one of the Primary Network chains. - * - * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters. - * - * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well. - * - * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold. - */ - async listLatest( - request: operations.ListLatestPrimaryNetworkTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListLatestPrimaryNetworkTransactionsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkTransactionsListLatest( - this, - request, - options, - )); - } - - /** - * List staking transactions - * - * @remarks - * Lists active staking transactions on the P-Chain for the supplied addresses. - */ - async listActiveStakingTransactions( - request: operations.ListActivePrimaryNetworkStakingTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListActivePrimaryNetworkStakingTransactionsResponse, - { cursor: string } - > - > { - return unwrapResultIterator( - dataPrimaryNetworkTransactionsListActiveStakingTransactions( - this, - request, - options, - ), - ); - } - - /** - * List asset transactions - * - * @remarks - * Lists asset transactions corresponding to the given asset id on the X-Chain. - */ - async listAssetTransactions( - request: operations.ListAssetTransactionsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator( - dataPrimaryNetworkTransactionsListAssetTransactions( - this, - request, - options, - ), - ); - } -} diff --git a/data/src/sdk/rewards.ts b/data/src/sdk/rewards.ts deleted file mode 100644 index 3cb47597..00000000 --- a/data/src/sdk/rewards.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkRewardsListHistoricalRewards } from "../funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; -import { dataPrimaryNetworkRewardsListPendingRewards } from "../funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Rewards extends ClientSDK { - /** - * List pending rewards - * - * @remarks - * Lists pending rewards on the Primary Network for the supplied addresses. - */ - async listPendingRewards( - request: operations.ListPendingPrimaryNetworkRewardsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListPendingPrimaryNetworkRewardsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkRewardsListPendingRewards( - this, - request, - options, - )); - } - - /** - * List historical rewards - * - * @remarks - * Lists historical rewards on the Primary Network for the supplied addresses. - */ - async listHistoricalRewards( - request: operations.ListHistoricalPrimaryNetworkRewardsRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListHistoricalPrimaryNetworkRewardsResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkRewardsListHistoricalRewards( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/sdk.ts b/data/src/sdk/sdk.ts deleted file mode 100644 index 7ae792c8..00000000 --- a/data/src/sdk/sdk.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Data } from "./data.js"; - -export class Avalanche extends ClientSDK { - private _data?: Data; - get data(): Data { - return (this._data ??= new Data(this._options)); - } -} diff --git a/data/src/sdk/signatureaggregator.ts b/data/src/sdk/signatureaggregator.ts deleted file mode 100644 index bb07de01..00000000 --- a/data/src/sdk/signatureaggregator.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataSignatureAggregatorAggregate } from "../funcs/dataSignatureAggregatorAggregate.js"; -import { dataSignatureAggregatorGet } from "../funcs/dataSignatureAggregatorGet.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class SignatureAggregator extends ClientSDK { - /** - * Aggregate Signatures - * - * @remarks - * Aggregates Signatures for a Warp message from Subnet validators. - */ - async aggregate( - request: operations.AggregateSignaturesRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataSignatureAggregatorAggregate( - this, - request, - options, - )); - } - - /** - * Get Aggregated Signatures - * - * @remarks - * Get Aggregated Signatures for a P-Chain L1 related Warp Message. - */ - async get( - request: operations.GetAggregatedSignaturesRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataSignatureAggregatorGet( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/teleporter.ts b/data/src/sdk/teleporter.ts deleted file mode 100644 index d1edf39f..00000000 --- a/data/src/sdk/teleporter.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataTeleporterGetTeleporterMessage } from "../funcs/dataTeleporterGetTeleporterMessage.js"; -import { dataTeleporterListTeleporterMessages } from "../funcs/dataTeleporterListTeleporterMessages.js"; -import { dataTeleporterListTeleporterMessagesByAddress } from "../funcs/dataTeleporterListTeleporterMessagesByAddress.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Teleporter extends ClientSDK { - /** - * **[Deprecated]** Gets a teleporter message by message ID. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async getTeleporterMessage( - request: operations.GetTeleporterMessageRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataTeleporterGetTeleporterMessage( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async listTeleporterMessages( - request: operations.ListTeleporterMessagesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataTeleporterListTeleporterMessages( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async listTeleporterMessagesByAddress( - request: operations.ListTeleporterMessagesByAddressRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataTeleporterListTeleporterMessagesByAddress( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/usagemetrics.ts b/data/src/sdk/usagemetrics.ts deleted file mode 100644 index fb127c0a..00000000 --- a/data/src/sdk/usagemetrics.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataUsageMetricsGetLogs } from "../funcs/dataUsageMetricsGetLogs.js"; -import { dataUsageMetricsGetRpcUsageMetrics } from "../funcs/dataUsageMetricsGetRpcUsageMetrics.js"; -import { dataUsageMetricsGetSubnetRpcUsage } from "../funcs/dataUsageMetricsGetSubnetRpcUsage.js"; -import { dataUsageMetricsGetUsage } from "../funcs/dataUsageMetricsGetUsage.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class UsageMetrics extends ClientSDK { - /** - * Get usage metrics for the Data API - * - * @remarks - * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity. - */ - async getUsage( - request: operations.GetApiUsageMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataUsageMetricsGetUsage( - this, - request, - options, - )); - } - - /** - * Get logs for requests made by client - * - * @remarks - * Gets logs for requests made by client over a specified time interval for a specific organization. - */ - async getLogs( - request: operations.GetApiLogsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(dataUsageMetricsGetLogs( - this, - request, - options, - )); - } - - /** - * Get usage metrics for the Subnet RPC - * - * @remarks - * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - */ - async getSubnetRpcUsage( - request: operations.GetSubnetRpcUsageMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataUsageMetricsGetSubnetRpcUsage( - this, - request, - options, - )); - } - - /** - * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. - * - * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - async getRpcUsageMetrics( - request: operations.GetRpcUsageMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataUsageMetricsGetRpcUsageMetrics( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/utxos.ts b/data/src/sdk/utxos.ts deleted file mode 100644 index 31b0bbf1..00000000 --- a/data/src/sdk/utxos.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkUtxosListByAddresses } from "../funcs/dataPrimaryNetworkUtxosListByAddresses.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Utxos extends ClientSDK { - /** - * List UTXOs - * - * @remarks - * Lists UTXOs on one of the Primary Network chains for the supplied addresses. - */ - async listByAddresses( - request: operations.GetUtxosByAddressesRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkUtxosListByAddresses( - this, - request, - options, - )); - } -} diff --git a/data/src/sdk/vertices.ts b/data/src/sdk/vertices.ts deleted file mode 100644 index b7053d18..00000000 --- a/data/src/sdk/vertices.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { dataPrimaryNetworkVerticesGetByHash } from "../funcs/dataPrimaryNetworkVerticesGetByHash.js"; -import { dataPrimaryNetworkVerticesListByHeight } from "../funcs/dataPrimaryNetworkVerticesListByHeight.js"; -import { dataPrimaryNetworkVerticesListLatest } from "../funcs/dataPrimaryNetworkVerticesListLatest.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Vertices extends ClientSDK { - /** - * List vertices - * - * @remarks - * Lists latest vertices on the X-Chain. - */ - async listLatest( - request: operations.ListLatestXChainVerticesRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.ListLatestXChainVerticesResponse, - { cursor: string } - > - > { - return unwrapResultIterator(dataPrimaryNetworkVerticesListLatest( - this, - request, - options, - )); - } - - /** - * Get vertex - * - * @remarks - * Gets a single vertex on the X-Chain. - */ - async getByHash( - request: operations.GetVertexByHashRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(dataPrimaryNetworkVerticesGetByHash( - this, - request, - options, - )); - } - - /** - * List vertices by height - * - * @remarks - * Lists vertices at the given vertex height on the X-Chain. - */ - async listByHeight( - request: operations.GetVertexByHeightRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(dataPrimaryNetworkVerticesListByHeight( - this, - request, - options, - )); - } -} diff --git a/data/src/types/async.ts b/data/src/types/async.ts deleted file mode 100644 index 689dba5d..00000000 --- a/data/src/types/async.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type APICall = - | { - status: "complete"; - request: Request; - response: Response; - } - | { - status: "request-error"; - request: Request; - response?: undefined; - } - | { - status: "invalid"; - request?: undefined; - response?: undefined; - }; - -export class APIPromise implements Promise { - readonly #promise: Promise<[T, APICall]>; - readonly #unwrapped: Promise; - - readonly [Symbol.toStringTag] = "APIPromise"; - - constructor(p: [T, APICall] | Promise<[T, APICall]>) { - this.#promise = p instanceof Promise ? p : Promise.resolve(p); - this.#unwrapped = - p instanceof Promise - ? this.#promise.then(([value]) => value) - : Promise.resolve(p[0]); - } - - then( - onfulfilled?: - | ((value: T) => TResult1 | PromiseLike) - | null - | undefined, - onrejected?: - | ((reason: any) => TResult2 | PromiseLike) - | null - | undefined, - ): Promise { - return this.#promise.then( - onfulfilled ? ([value]) => onfulfilled(value) : void 0, - onrejected, - ); - } - - catch( - onrejected?: - | ((reason: any) => TResult | PromiseLike) - | null - | undefined, - ): Promise { - return this.#unwrapped.catch(onrejected); - } - - finally(onfinally?: (() => void) | null | undefined): Promise { - return this.#unwrapped.finally(onfinally); - } - - $inspect(): Promise<[T, APICall]> { - return this.#promise; - } -} diff --git a/data/src/types/blobs.ts b/data/src/types/blobs.ts deleted file mode 100644 index 4ce84602..00000000 --- a/data/src/types/blobs.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); - -export function isBlobLike(val: unknown): val is Blob { - if (val instanceof Blob) { - return true; - } - - if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) { - return false; - } - - const name = val[Symbol.toStringTag]; - if (typeof name !== "string") { - return false; - } - if (name !== "Blob" && name !== "File") { - return false; - } - - return "stream" in val && typeof val.stream === "function"; -} diff --git a/data/src/types/constdatetime.ts b/data/src/types/constdatetime.ts deleted file mode 100644 index eeff4dde..00000000 --- a/data/src/types/constdatetime.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function constDateTime( - val: string, -): z.ZodType { - return z.custom((v) => { - return ( - typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() - ); - }, `Value must be equivalent to ${val}`); -} diff --git a/data/src/types/enums.ts b/data/src/types/enums.ts deleted file mode 100644 index 6fb6d910..00000000 --- a/data/src/types/enums.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -declare const __brand: unique symbol; -export type Unrecognized = T & { [__brand]: "unrecognized" }; - -export function catchUnrecognizedEnum(value: T): Unrecognized { - return value as Unrecognized; -} - -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; diff --git a/data/src/types/fp.ts b/data/src/types/fp.ts deleted file mode 100644 index ccbe51ea..00000000 --- a/data/src/types/fp.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * A monad that captures the result of a function call or an error if it was not - * successful. Railway programming, enabled by this type, can be a nicer - * alternative to traditional exception throwing because it allows functions to - * declare all _known_ errors with static types and then check for them - * exhaustively in application code. Thrown exception have a type of `unknown` - * and break out of regular control flow of programs making them harder to - * inspect and more verbose work with due to try-catch blocks. - */ -export type Result = - | { ok: true; value: T; error?: never } - | { ok: false; value?: never; error: E }; - -export function OK(value: V): Result { - return { ok: true, value }; -} - -export function ERR(error: E): Result { - return { ok: false, error }; -} - -/** - * unwrap is a convenience function for extracting a value from a result or - * throwing if there was an error. - */ -export function unwrap(r: Result): T { - if (!r.ok) { - throw r.error; - } - return r.value; -} - -/** - * unwrapAsync is a convenience function for resolving a value from a Promise - * of a result or rejecting if an error occurred. - */ -export async function unwrapAsync( - pr: Promise>, -): Promise { - const r = await pr; - if (!r.ok) { - throw r.error; - } - - return r.value; -} diff --git a/data/src/types/index.ts b/data/src/types/index.ts deleted file mode 100644 index e124e817..00000000 --- a/data/src/types/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; -export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; -export type { Result } from "./fp.js"; -export type { PageIterator, Paginator } from "./operations.js"; -export { createPageIterator } from "./operations.js"; -export { RFCDate } from "./rfcdate.js"; diff --git a/data/src/types/operations.ts b/data/src/types/operations.ts deleted file mode 100644 index beb81e10..00000000 --- a/data/src/types/operations.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { Result } from "./fp.js"; - -export type Paginator = () => Promise }> | null; - -export type PageIterator = V & { - next: Paginator; - [Symbol.asyncIterator]: () => AsyncIterableIterator; - "~next"?: PageState | undefined; -}; - -export function createPageIterator( - page: V & { next: Paginator }, - halt: (v: V) => boolean, -): { - [Symbol.asyncIterator]: () => AsyncIterableIterator; -} { - return { - [Symbol.asyncIterator]: async function* paginator() { - yield page; - if (halt(page)) { - return; - } - - let p: typeof page | null = page; - for (p = await p.next(); p != null; p = await p.next()) { - yield p; - if (halt(p)) { - return; - } - } - }, - }; -} - -/** - * This utility create a special iterator that yields a single value and - * terminates. It is useful in paginated SDK functions that have early return - * paths when things go wrong. - */ -export function haltIterator( - v: V, -): PageIterator { - return { - ...v, - next: () => null, - [Symbol.asyncIterator]: async function* paginator() { - yield v; - }, - }; -} - -/** - * Converts an async iterator of `Result` into an async iterator of `V`. - * When error results occur, the underlying error value is thrown. - */ -export async function unwrapResultIterator( - iteratorPromise: Promise, PageState>>, -): Promise> { - const resultIter = await iteratorPromise; - - if (!resultIter.ok) { - throw resultIter.error; - } - - return { - ...resultIter.value, - next: unwrapPaginator(resultIter.next), - "~next": resultIter["~next"], - [Symbol.asyncIterator]: async function* paginator() { - for await (const page of resultIter) { - if (!page.ok) { - throw page.error; - } - yield page.value; - } - }, - }; -} - -function unwrapPaginator( - paginator: Paginator>, -): Paginator { - return () => { - const nextResult = paginator(); - if (nextResult == null) { - return null; - } - return nextResult.then((res) => { - if (!res.ok) { - throw res.error; - } - const out = { - ...res.value, - next: unwrapPaginator(res.next), - }; - return out; - }); - }; -} - -export const URL_OVERRIDE = Symbol("URL_OVERRIDE"); diff --git a/data/src/types/rfcdate.ts b/data/src/types/rfcdate.ts deleted file mode 100644 index c79b3f53..00000000 --- a/data/src/types/rfcdate.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const dateRE = /^\d{4}-\d{2}-\d{2}$/; - -export class RFCDate { - private serialized: string; - - /** - * Creates a new RFCDate instance using today's date. - */ - static today(): RFCDate { - return new RFCDate(new Date()); - } - - /** - * Creates a new RFCDate instance using the provided input. - * If a string is used then in must be in the format YYYY-MM-DD. - * - * @param date A Date object or a date string in YYYY-MM-DD format - * @example - * new RFCDate("2022-01-01") - * @example - * new RFCDate(new Date()) - */ - constructor(date: Date | string) { - if (typeof date === "string" && !dateRE.test(date)) { - throw new RangeError( - "RFCDate: date strings must be in the format YYYY-MM-DD: " + date, - ); - } - - const value = new Date(date); - if (isNaN(+value)) { - throw new RangeError("RFCDate: invalid date provided: " + date); - } - - this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length); - if (!dateRE.test(this.serialized)) { - throw new TypeError( - `RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`, - ); - } - } - - toJSON(): string { - return this.toString(); - } - - toString(): string { - return this.serialized; - } -} diff --git a/data/src/types/streams.ts b/data/src/types/streams.ts deleted file mode 100644 index a0163e7a..00000000 --- a/data/src/types/streams.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export function isReadableStream( - val: unknown, -): val is ReadableStream { - if (typeof val !== "object" || val === null) { - return false; - } - - // Check for the presence of methods specific to ReadableStream - const stream = val as ReadableStream; - - // ReadableStream has methods like getReader, cancel, and tee - return ( - typeof stream.getReader === "function" && - typeof stream.cancel === "function" && - typeof stream.tee === "function" - ); -} diff --git a/data/tsconfig.json b/data/tsconfig.json deleted file mode 100644 index 94d81a34..00000000 --- a/data/tsconfig.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", - "target": "ES2020", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "jsx": "react-jsx", - - "module": "Node16", - "moduleResolution": "Node16", - - "allowJs": true, - - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": ".", - - - // https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json - "strict": true, - "allowUnusedLabels": false, - "allowUnreachableCode": false, - "exactOptionalPropertyTypes": true, - "useUnknownInCatchVariables": true, - "noFallthroughCasesInSwitch": true, - "noImplicitOverride": true, - "noImplicitReturns": true, - "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "checkJs": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true - }, - "include": ["src"], - "exclude": ["node_modules"] -} diff --git a/metrics/.devcontainer/README.md b/metrics/.devcontainer/README.md deleted file mode 100644 index 1be12b62..00000000 --- a/metrics/.devcontainer/README.md +++ /dev/null @@ -1,35 +0,0 @@ - - -
- -> **Remember to shutdown a GitHub Codespace when it is not in use!** - -# Dev Containers Quick Start - -The default location for usage snippets is the `samples` directory. - -## Running a Usage Sample - -A sample usage example has been provided in a `root.ts` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below. - -``` -ts-node root.ts -``` - -## Generating Additional Usage Samples - -The speakeasy CLI allows you to generate more usage snippets. Here's how: - -- To generate a sample for a specific operation by providing an operation ID, use: - -``` -speakeasy generate usage -s https://popsicle-api.avax.network/api-json -l typescript -i {INPUT_OPERATION_ID} -o ./samples -``` - -- To generate samples for an entire namespace (like a tag or group name), use: - -``` -speakeasy generate usage -s https://popsicle-api.avax.network/api-json -l typescript -n {INPUT_TAG_NAME} -o ./samples -``` diff --git a/metrics/.devcontainer/devcontainer.json b/metrics/.devcontainer/devcontainer.json deleted file mode 100644 index 4d560dd5..00000000 --- a/metrics/.devcontainer/devcontainer.json +++ /dev/null @@ -1,45 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/images/tree/main/src/typescript-node -{ - "name": "TypeScript", - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh", - "customizations": { - "vscode": { - "extensions": [ - "ms-vscode.vscode-typescript-tslint-plugin", - "esbenp.prettier-vscode", - "github.vscode-pull-request-github" - ], - "settings": { - "files.eol": "\n", - "editor.formatOnSave": true, - "typescript.tsc.autoDetect": "on", - "typescript.updateImportsOnFileMove.enabled": "always", - "typescript.preferences.importModuleSpecifier": "relative", - "[typescript]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - }, - "[typescriptreact]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - } - } - }, - "codespaces": { - "openFiles": [ - ".devcontainer/README.md" - ] - } - } - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" -} diff --git a/metrics/.devcontainer/setup.sh b/metrics/.devcontainer/setup.sh deleted file mode 100644 index 6be1b84d..00000000 --- a/metrics/.devcontainer/setup.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Install the speakeasy CLI -curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh - -# Setup samples directory -rmdir samples || true -mkdir samples - -npm install -npm install -g ts-node -npm link -npm link @avalanche-sdk/metrics -TS_CONFIG_CONTENT=$(cat < samples/tsconfig.json - -# Generate starter usage sample with speakeasy -speakeasy generate usage -s https://popsicle-api.avax.network/api-json -l typescript -o samples/root.ts \ No newline at end of file diff --git a/metrics/.gitattributes b/metrics/.gitattributes deleted file mode 100644 index 113eead5..00000000 --- a/metrics/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# This allows generated code to be indexed correctly -*.ts linguist-generated=false \ No newline at end of file diff --git a/metrics/.gitignore b/metrics/.gitignore deleted file mode 100644 index 5461bbd1..00000000 --- a/metrics/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -/examples/node_modules -.env -.env.local -.env.*.local -.DS_Store -**/.speakeasy/temp/ -**/.speakeasy/logs/ -.DS_Store -/models -/models/errors -/types -/node_modules -/lib -/sdk -/funcs -/react-query -/mcp-server -/hooks -/index.* -/core.* -/bin -/cjs -/esm -/dist -/.tsbuildinfo -/.eslintcache -/.tshy -/.tshy-* -/__tests__ -/.speakeasy/reports diff --git a/metrics/.npmignore b/metrics/.npmignore deleted file mode 100644 index cf98a6bf..00000000 --- a/metrics/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -**/* -!/FUNCTIONS.md -!/RUNTIMES.md -!/REACT_QUERY.md -!/**/*.ts -!/**/*.js -!/**/*.mjs -!/**/*.json -!/**/*.map - -/eslint.config.mjs -/cjs -/.tshy -/.tshy-* -/__tests__ diff --git a/metrics/.speakeasy/gen.lock b/metrics/.speakeasy/gen.lock deleted file mode 100644 index 7574a066..00000000 --- a/metrics/.speakeasy/gen.lock +++ /dev/null @@ -1,667 +0,0 @@ -lockVersion: 2.0.0 -id: 08752bf2-e791-41ce-8509-32ac5e1c0179 -management: - docChecksum: 367751ce2e2821606b6c9edaba6f9407 - docVersion: 1.0.0 - speakeasyVersion: 1.598.2 - generationVersion: 2.674.3 - releaseVersion: 0.4.3 - configChecksum: 91a419d5ae509d645033e93ef9369cb7 - repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git - repoSubDirectory: metrics - installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/metrics - published: true -features: - typescript: - additionalDependencies: 0.1.0 - constsAndDefaults: 0.1.12 - core: 3.21.20 - defaultEnabledRetries: 0.1.0 - devContainers: 2.90.0 - enumUnions: 0.1.0 - envVarSecurityUsage: 0.1.2 - globalSecurityCallbacks: 0.1.0 - globalServerURLs: 2.82.5 - globals: 2.82.2 - groups: 2.81.2 - mcpServer: 0.9.3 - nameOverrides: 2.81.2 - nullables: 0.1.1 - pagination: 2.83.0 - responseFormat: 0.2.3 - retries: 2.83.0 - sdkHooks: 0.3.0 - unions: 2.85.11 -generatedFiles: - - .devcontainer/README.md - - .devcontainer/devcontainer.json - - .devcontainer/setup.sh - - .gitattributes - - .npmignore - - FUNCTIONS.md - - RUNTIMES.md - - USAGE.md - - docs/lib/utils/retryconfig.md - - docs/models/components/addressdetails.md - - docs/models/components/chain.md - - docs/models/components/chainmetric.md - - docs/models/components/chainrollingwindowmetric.md - - docs/models/components/chainrollingwindowmetricsvalue.md - - docs/models/components/globalparamnetwork.md - - docs/models/components/healthcheckresultdto.md - - docs/models/components/healthcheckresultdtostatus.md - - docs/models/components/healthindicatorresultdto.md - - docs/models/components/healthindicatorresultdtostatus.md - - docs/models/components/listchainsresponse.md - - docs/models/components/lookingglassresponse.md - - docs/models/components/metricsapiresponse.md - - docs/models/components/metricsvalue.md - - docs/models/components/network.md - - docs/models/components/networkmetric.md - - docs/models/components/networktype.md - - docs/models/components/nftholdersresponse.md - - docs/models/components/pchainaddressdetails.md - - docs/models/components/pchainlookingglassresponse.md - - docs/models/components/rollingwindowmetricsapiresponse.md - - docs/models/components/teleporterchainmetricsapiresponse.md - - docs/models/components/teleportermetric.md - - docs/models/components/teleportermetricsvalue.md - - docs/models/components/timeintervalgranularity.md - - docs/models/errors/badgatewayerror.md - - docs/models/errors/badgatewaymessage.md - - docs/models/errors/badrequesterror.md - - docs/models/errors/badrequestmessage.md - - docs/models/errors/forbiddenerror.md - - docs/models/errors/forbiddenmessage.md - - docs/models/errors/internalservererror.md - - docs/models/errors/internalservererrormessage.md - - docs/models/errors/notfounderror.md - - docs/models/errors/notfoundmessage.md - - docs/models/errors/serviceunavailableerror.md - - docs/models/errors/serviceunavailablemessage.md - - docs/models/errors/toomanyrequestserror.md - - docs/models/errors/toomanyrequestsmessage.md - - docs/models/errors/unauthorizederror.md - - docs/models/errors/unauthorizedmessage.md - - docs/models/operations/getaddressesbybalanceovertimeglobals.md - - docs/models/operations/getaddressesbybalanceovertimerequest.md - - docs/models/operations/getaddressesbybalanceovertimeresponse.md - - docs/models/operations/getaddressesbybtcbbridgedrequest.md - - docs/models/operations/getaddressesbybtcbbridgedresponse.md - - docs/models/operations/getchainglobals.md - - docs/models/operations/getchainrequest.md - - docs/models/operations/getevmchainmetricsglobals.md - - docs/models/operations/getevmchainmetricsrequest.md - - docs/models/operations/getevmchainmetricsresponse.md - - docs/models/operations/getevmchainrollingwindowmetricsglobals.md - - docs/models/operations/getevmchainrollingwindowmetricsrequest.md - - docs/models/operations/getmetricsbynodeidmetric.md - - docs/models/operations/getmetricsbynodeidrequest.md - - docs/models/operations/getmetricsbysubnetidmetric.md - - docs/models/operations/getmetricsbysubnetidrequest.md - - docs/models/operations/getmetricsbyvalidationidmetric.md - - docs/models/operations/getmetricsbyvalidationidrequest.md - - docs/models/operations/getnftholdersbycontractaddressglobals.md - - docs/models/operations/getnftholdersbycontractaddressrequest.md - - docs/models/operations/getnftholdersbycontractaddressresponse.md - - docs/models/operations/getstakingmetricsglobals.md - - docs/models/operations/getstakingmetricsrequest.md - - docs/models/operations/getstakingmetricsresponse.md - - docs/models/operations/getteleportermetricsbychainglobals.md - - docs/models/operations/getteleportermetricsbychainrequest.md - - docs/models/operations/gettotall1validatormetricsmetric.md - - docs/models/operations/gettotall1validatormetricsrequest.md - - docs/models/operations/getvalidatorsbydaterangerequest.md - - docs/models/operations/getvalidatorsbydaterangeresponse.md - - docs/models/operations/listchainsrequest.md - - docs/models/operations/listchainsresponse.md - - docs/sdks/avalanche/README.md - - docs/sdks/chains/README.md - - docs/sdks/l1validators/README.md - - docs/sdks/metrics/README.md - - docs/sdks/networks/README.md - - docs/sdks/subnets/README.md - - eslint.config.mjs - - examples/.env.template - - examples/README.md - - examples/metricsHealthCheck.example.ts - - examples/package.json - - jsr.json - - package.json - - src/core.ts - - src/funcs/metricsChainsGet.ts - - src/funcs/metricsChainsGetMetrics.ts - - src/funcs/metricsChainsGetRollingWindowMetrics.ts - - src/funcs/metricsChainsGetTeleporterMetrics.ts - - src/funcs/metricsChainsList.ts - - src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts - - src/funcs/metricsChainsListNftHolders.ts - - src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts - - src/funcs/metricsHealthCheck.ts - - src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts - - src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts - - src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts - - src/funcs/metricsL1ValidatorsListMetrics.ts - - src/funcs/metricsNetworksGetStakingMetrics.ts - - src/funcs/metricsSubnetsGetValidators.ts - - src/hooks/hooks.ts - - src/hooks/index.ts - - src/hooks/types.ts - - src/index.ts - - src/lib/base64.ts - - src/lib/config.ts - - src/lib/dlv.ts - - src/lib/encodings.ts - - src/lib/files.ts - - src/lib/http.ts - - src/lib/is-plain-object.ts - - src/lib/logger.ts - - src/lib/matchers.ts - - src/lib/primitives.ts - - src/lib/retries.ts - - src/lib/schemas.ts - - src/lib/sdks.ts - - src/lib/security.ts - - src/lib/url.ts - - src/mcp-server/build.mts - - src/mcp-server/cli.ts - - src/mcp-server/cli/start/command.ts - - src/mcp-server/cli/start/impl.ts - - src/mcp-server/console-logger.ts - - src/mcp-server/extensions.ts - - src/mcp-server/mcp-server.ts - - src/mcp-server/prompts.ts - - src/mcp-server/resources.ts - - src/mcp-server/scopes.ts - - src/mcp-server/server.ts - - src/mcp-server/shared.ts - - src/mcp-server/tools.ts - - src/mcp-server/tools/metricsChainsGet.ts - - src/mcp-server/tools/metricsChainsGetMetrics.ts - - src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts - - src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts - - src/mcp-server/tools/metricsChainsList.ts - - src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts - - src/mcp-server/tools/metricsChainsListNftHolders.ts - - src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts - - src/mcp-server/tools/metricsHealthCheck.ts - - src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts - - src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts - - src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts - - src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts - - src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts - - src/mcp-server/tools/metricsSubnetsGetValidators.ts - - src/models/components/addressdetails.ts - - src/models/components/chain.ts - - src/models/components/chainmetric.ts - - src/models/components/chainrollingwindowmetric.ts - - src/models/components/chainrollingwindowmetricsvalue.ts - - src/models/components/globalparamnetwork.ts - - src/models/components/healthcheckresultdto.ts - - src/models/components/healthindicatorresultdto.ts - - src/models/components/index.ts - - src/models/components/listchainsresponse.ts - - src/models/components/lookingglassresponse.ts - - src/models/components/metricsapiresponse.ts - - src/models/components/metricsvalue.ts - - src/models/components/network.ts - - src/models/components/networkmetric.ts - - src/models/components/networktype.ts - - src/models/components/nftholdersresponse.ts - - src/models/components/pchainaddressdetails.ts - - src/models/components/pchainlookingglassresponse.ts - - src/models/components/rollingwindowmetricsapiresponse.ts - - src/models/components/teleporterchainmetricsapiresponse.ts - - src/models/components/teleportermetric.ts - - src/models/components/teleportermetricsvalue.ts - - src/models/components/timeintervalgranularity.ts - - src/models/errors/avalancheapierror.ts - - src/models/errors/avalancheerror.ts - - src/models/errors/badgatewayerror.ts - - src/models/errors/badrequesterror.ts - - src/models/errors/forbiddenerror.ts - - src/models/errors/httpclienterrors.ts - - src/models/errors/index.ts - - src/models/errors/internalservererror.ts - - src/models/errors/notfounderror.ts - - src/models/errors/responsevalidationerror.ts - - src/models/errors/sdkvalidationerror.ts - - src/models/errors/serviceunavailableerror.ts - - src/models/errors/toomanyrequestserror.ts - - src/models/errors/unauthorizederror.ts - - src/models/operations/getaddressesbybalanceovertime.ts - - src/models/operations/getaddressesbybtcbbridged.ts - - src/models/operations/getchain.ts - - src/models/operations/getevmchainmetrics.ts - - src/models/operations/getevmchainrollingwindowmetrics.ts - - src/models/operations/getmetricsbynodeid.ts - - src/models/operations/getmetricsbysubnetid.ts - - src/models/operations/getmetricsbyvalidationid.ts - - src/models/operations/getnftholdersbycontractaddress.ts - - src/models/operations/getstakingmetrics.ts - - src/models/operations/getteleportermetricsbychain.ts - - src/models/operations/gettotall1validatormetrics.ts - - src/models/operations/getvalidatorsbydaterange.ts - - src/models/operations/index.ts - - src/models/operations/listchains.ts - - src/sdk/chains.ts - - src/sdk/index.ts - - src/sdk/l1validators.ts - - src/sdk/metrics.ts - - src/sdk/networks.ts - - src/sdk/sdk.ts - - src/sdk/subnets.ts - - src/types/async.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts - - tsconfig.json -examples: - metrics-health-check: - speakeasy-default-metrics-health-check: - responses: - "200": - application/json: {"info": {"database": {"status": "up"}}, "error": {}, "details": {"database": {"status": "up"}}} - "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"} - listChains: - speakeasy-default-list-chains: - parameters: - query: - network: "mainnet" - responses: - "200": - application/json: {"chains": [{"evmChainId": 43114, "chainName": "c_chain", "blockchainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", "subnetId": "11111111111111111111111111111111LpoYY", "network": "mainnet"}]} - "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"} - getChain: - speakeasy-default-get-chain: - parameters: - path: - chainId: "43114" - responses: - "200": - application/json: {"evmChainId": 43114, "chainName": "c_chain", "blockchainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", "subnetId": "11111111111111111111111111111111LpoYY", "network": "testnet"} - "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"} - getEvmChainMetrics: - speakeasy-default-get-evm-chain-metrics: - parameters: - path: - metric: "activeAddresses" - chainId: "43114" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - timeInterval: "day" - pageSize: 10 - responses: - "200": - application/json: {"results": []} - "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"} - getTeleporterMetricsByChain: - speakeasy-default-get-teleporter-metrics-by-chain: - parameters: - path: - metric: "teleporterSourceTxnCount" - chainId: "43114" - responses: - "200": - application/json: {"result": {"value": 3068.43}} - "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"} - getEvmChainRollingWindowMetrics: - speakeasy-default-get-evm-chain-rolling-window-metrics: - parameters: - path: - metric: "txCount" - chainId: "43114" - responses: - "200": - application/json: {"result": {"lastHour": 7081.1, "lastDay": 2127.7, "lastMonth": 6960.23, "lastYear": 4069.8, "allTime": 1499.54}} - "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"} - getNftHoldersByContractAddress: - speakeasy-default-get-nft-holders-by-contract-address: - parameters: - path: - chainId: "43114" - address: "0x7a420AEFF902AAa2c85a190D7B91Ce8BEFffFE14" - query: - pageSize: 10 - responses: - "200": - application/json: {"addresses": [{"address": "0x1234567890abcdef1234567890abcdef123456789", "sortKey": "123"}], "nftCollectionName": ["NFT Project"], "nftSymbol": ["NFTPROJ"], "totalHolders": 10, "totalTokens": 10} - "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"} - getAddressesByBalanceOverTime: - speakeasy-default-get-addresses-by-balance-over-time: - parameters: - path: - chainId: "43114" - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" - query: - threshold: "1000000" - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - responses: - "200": - application/json: {"addresses": []} - "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"} - getAddressesByBtcbBridged: - speakeasy-default-get-addresses-by-btcb-bridged: - parameters: - query: - threshold: "1000000" - pageSize: 10 - responses: - "200": - application/json: {"addresses": [{"address": "0x1234567890abcdef1234567890abcdef123456789", "sortKey": "123"}]} - "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"} - getStakingMetrics: - speakeasy-default-get-staking-metrics: - parameters: - path: - metric: "validatorCount" - network: "mainnet" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - subnetId: "11111111111111111111111111111111LpoYY" - responses: - "200": - application/json: {"results": []} - "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"} - getTotalL1ValidatorMetrics: - speakeasy-default-get-total-l1-validator-metrics: - parameters: - path: - metric: "totalValidatorFeesDaily" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - responses: - "200": - application/json: {"results": []} - "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"} - getMetricsByValidationId: - speakeasy-default-get-metrics-by-validation-id: - parameters: - path: - l1ValidationId: "2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG" - metric: "validationFeesDaily" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - responses: - "200": - application/json: {"results": [{"value": 4090.68, "timestamp": 9641.56}]} - "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"} - getMetricsByNodeId: - speakeasy-default-get-metrics-by-node-id: - parameters: - path: - metric: "perNodeDailyFeesPaid" - nodeId: "NodeID-JQPadXEMWtRtJyXrisyDNWuXKSjSf9D36" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - responses: - "200": - application/json: {"results": [{"value": 5895.61, "timestamp": 1664.44}]} - "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"} - getMetricsBySubnetId: - speakeasy-default-get-metrics-by-subnet-id: - parameters: - path: - metric: "perSubnetDailyFeesPaid" - subnetId: "eYwmVU67LmSfZb1RwqCMhBYkFyG8ftxn6jAwqzFmxC9STBWLC" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - responses: - "200": - application/json: {"results": []} - "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"} - getValidatorsByDateRange: - speakeasy-default-get-validators-by-date-range: - parameters: - path: - subnetId: "11111111111111111111111111111111LpoYY" - query: - startTimestamp: 1689541049 - endTimestamp: 1689800249 - pageSize: 10 - network: "mainnet" - responses: - "200": - application/json: {"addresses": [{"addresses": ["avax1abcdef1234567890abcdef1234567890abcdef"], "sortKey": "123"}]} - "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"} -examplesVersion: 1.0.2 -generatedTests: {} diff --git a/metrics/.speakeasy/gen.yaml b/metrics/.speakeasy/gen.yaml deleted file mode 100644 index 495b0870..00000000 --- a/metrics/.speakeasy/gen.yaml +++ /dev/null @@ -1,62 +0,0 @@ -configVersion: 2.0.0 -generation: - devContainers: - enabled: true - schemaPath: https://popsicle-api.avax.network/api-json - sdkClassName: Avalanche - maintainOpenAPIOrder: true - usageSnippets: - optionalPropertyRendering: withExample - sdkInitStyle: constructor - useClassNamesForArrayFields: true - fixes: - nameResolutionDec2023: true - nameResolutionFeb2025: true - parameterOrderingFeb2024: true - requestResponseComponentNamesFeb2024: true - securityFeb2025: true - sharedErrorComponentsApr2025: false - auth: - oAuth2ClientCredentialsEnabled: false - oAuth2PasswordEnabled: false - tests: - generateTests: true - generateNewTests: false - skipResponseBodyAssertions: false -typescript: - version: 0.4.3 - additionalDependencies: - dependencies: {} - devDependencies: {} - peerDependencies: {} - additionalPackageJSON: {} - author: Avacloud - baseErrorName: AvalancheError - clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true - defaultErrorName: AvalancheAPIError - enableCustomCodeRegions: false - enableMCPServer: true - enableReactQuery: false - enumFormat: union - flattenGlobalSecurity: true - flatteningOrder: parameters-first - generateExamples: true - imports: - option: openapi - paths: - callbacks: models/callbacks - errors: models/errors - operations: models/operations - shared: models/components - webhooks: models/webhooks - inputModelSuffix: input - jsonpath: rfc9535 - maxMethodParams: 0 - methodArguments: require-security-and-request - moduleFormat: dual - outputModelSuffix: output - packageName: '@avalanche-sdk/metrics' - responseFormat: flat - templateVersion: v2 - useIndexModules: true diff --git a/metrics/CONTRIBUTING.md b/metrics/CONTRIBUTING.md deleted file mode 100644 index d585717f..00000000 --- a/metrics/CONTRIBUTING.md +++ /dev/null @@ -1,26 +0,0 @@ -# Contributing to This Repository - -Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. - -## How to Report Issues - -If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: - -- A clear and descriptive title -- Steps to reproduce the issue -- Expected and actual behavior -- Any relevant logs, screenshots, or error messages -- Information about your environment (e.g., operating system, software versions) - - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed - -## Issue Triage and Upstream Fixes - -We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. - -## Contact - -If you have any questions or need further assistance, please feel free to reach out by opening an issue. - -Thank you for your understanding and cooperation! - -The Maintainers diff --git a/metrics/FUNCTIONS.md b/metrics/FUNCTIONS.md deleted file mode 100644 index f9f52a09..00000000 --- a/metrics/FUNCTIONS.md +++ /dev/null @@ -1,85 +0,0 @@ -# Standalone Functions - -> [!NOTE] -> This section is useful if you are using a bundler and targetting browsers and -> runtimes where the size of an application affects performance and load times. - -Every method in this SDK is also available as a standalone function. This -alternative API is suitable when targetting the browser or serverless runtimes -and using a bundler to build your application since all unused functionality -will be tree-shaken away. This includes code for unused methods, Zod schemas, -encoding helpers and response handlers. The result is dramatically smaller -impact on the application's final bundle size which grows very slowly as you use -more and more functionality from this SDK. - -Calling methods through the main SDK class remains a valid and generally more -more ergonomic option. Standalone functions represent an optimisation for a -specific category of applications. - -## Example - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsHealthCheck } from "@avalanche-sdk/metrics/funcs/metricsHealthCheck.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsHealthCheck(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsHealthCheck failed:", res.error); - } -} - -run(); -``` - -## Result types - -Standalone functions differ from SDK methods in that they return a -`Result` type to capture _known errors_ and document them using -the type system. By avoiding throwing errors, application code maintains clear -control flow and error-handling become part of the regular flow of application -code. - -> We use the term "known errors" because standalone functions, and JavaScript -> code in general, can still throw unexpected errors such as `TypeError`s, -> `RangeError`s and `DOMException`s. Exhaustively catching all errors may be -> something this SDK addresses in the future. Nevertheless, there is still a lot -> of benefit from capturing most errors and turning them into values. - -The second reason for this style of programming is because these functions will -typically be used in front-end applications where exception throwing is -sometimes discouraged or considered unidiomatic. React and similar ecosystems -and libraries tend to promote this style of programming so that components -render useful content under all states (loading, success, error and so on). - -The general pattern when calling standalone functions looks like this: - -```typescript -import { Core } from ""; -import { fetchSomething } from "/funcs/fetchSomething.js"; - -const client = new Core(); - -async function run() { - const result = await fetchSomething(client, { id: "123" }); - if (!result.ok) { - // You can throw the error or handle it. It's your choice now. - throw result.error; - } - - console.log(result.value); -} - -run(); -``` - -Notably, `result.error` above will have an explicit type compared to a try-catch -variation where the error in the catch block can only be of type `unknown` (or -`any` depending on your TypeScript settings). \ No newline at end of file diff --git a/metrics/LICENSE b/metrics/LICENSE deleted file mode 100644 index f7cafa6c..00000000 --- a/metrics/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Ava Labs, Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/metrics/README.md b/metrics/README.md deleted file mode 100644 index 7c65dd1e..00000000 --- a/metrics/README.md +++ /dev/null @@ -1,583 +0,0 @@ -
-

@avalanche-sdk/metrics

-

- The Avalanche Metrics SDK is a powerful and flexible toolset designed to simplify the integration with Avalanche's suite of blockchain services. -

-

- Currently, this SDK is focused on providing robust support for Metrics APIs. -

- - - -
- - - -## Summary - -Metrics API: The Metrics API provides metrics and analytics of on-chain activity. The API is in Beta and may be subject to change.

If you have feedback or feature requests for the API, please submit them here. Bug reports can be submitted here, and any potential security issues can be reported here. - - - -## Table of Contents - - * [SDK Installation](#sdk-installation) - * [Requirements](#requirements) - * [SDK Example Usage](#sdk-example-usage) - * [Available Resources and Operations](#available-resources-and-operations) - * [Standalone functions](#standalone-functions) - * [Global Parameters](#global-parameters) - * [Pagination](#pagination) - * [Retries](#retries) - * [Error Handling](#error-handling) - * [Server Selection](#server-selection) - * [Custom HTTP Client](#custom-http-client) - * [Debugging](#debugging) -* [Development](#development) - * [Maturity](#maturity) - * [Contributions](#contributions) - - - - -## SDK Installation - -The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers. - -### NPM - -```bash -npm add @avalanche-sdk/metrics -``` - -### PNPM - -```bash -pnpm add @avalanche-sdk/metrics -``` - -### Bun - -```bash -bun add @avalanche-sdk/metrics -``` - -### Yarn - -```bash -yarn add @avalanche-sdk/metrics zod - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. -``` - -> [!NOTE] -> This package is published with CommonJS and ES Modules (ESM) support. - - -### Model Context Protocol (MCP) Server - -This SDK is also an installable MCP server where the various SDK methods are -exposed as tools that can be invoked by AI applications. - -> Node.js v20 or greater is required to run the MCP server from npm. - -
-Claude installation steps - -Add the following server definition to your `claude_desktop_config.json` file: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/metrics", - "--", - "mcp", "start", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -
-Cursor installation steps - -Create a `.cursor/mcp.json` file in your project root with the following content: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/metrics", - "--", - "mcp", "start", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases: - -```bash -curl -L -o mcp-server \ - https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \ -chmod +x mcp-server -``` - -If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`. - - -```json -{ - "mcpServers": { - "Todos": { - "command": "./DOWNLOAD/PATH/mcp-server", - "args": [ - "start" - ] - } - } -} -``` - -For a full list of server arguments, run: - -```sh -npx -y --package @avalanche-sdk/metrics -- mcp start --help -``` - - - -## Requirements - -For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md). - - - -## SDK Example Usage - -### Example - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Available Resources and Operations - -
-Available methods - - -### [metrics](docs/sdks/metrics/README.md) - -* [healthCheck](docs/sdks/metrics/README.md#healthcheck) - Get the health of the service - -#### [metrics.chains](docs/sdks/chains/README.md) - -* [list](docs/sdks/chains/README.md#list) - Get a list of supported blockchains -* [get](docs/sdks/chains/README.md#get) - Get chain information for supported blockchain -* [getMetrics](docs/sdks/chains/README.md#getmetrics) - Get metrics for EVM chains -* [getTeleporterMetrics](docs/sdks/chains/README.md#getteleportermetrics) - Get teleporter metrics for EVM chains -* [getRollingWindowMetrics](docs/sdks/chains/README.md#getrollingwindowmetrics) - Get rolling window metrics for EVM chains -* [listNftHolders](docs/sdks/chains/README.md#listnftholders) - Get NFT holders by contract address -* [listTokenHoldersAboveThreshold](docs/sdks/chains/README.md#listtokenholdersabovethreshold) - Get addresses by balance over time -* [listBTCbBridgersAboveThreshold](docs/sdks/chains/README.md#listbtcbbridgersabovethreshold) - Get addresses by BTCb bridged balance - -#### [metrics.l1Validators](docs/sdks/l1validators/README.md) - -* [listMetrics](docs/sdks/l1validators/README.md#listmetrics) - Get given metric for all validators -* [getMetricsByValidationId](docs/sdks/l1validators/README.md#getmetricsbyvalidationid) - Get metric values with given validation id and timestamp range -* [getMetricsByNodeId](docs/sdks/l1validators/README.md#getmetricsbynodeid) - Get metric values with given node id and timestamp range -* [getMetricsBySubnetId](docs/sdks/l1validators/README.md#getmetricsbysubnetid) - Get metric values with given subnet ID and timestamp range - -#### [metrics.networks](docs/sdks/networks/README.md) - -* [getStakingMetrics](docs/sdks/networks/README.md#getstakingmetrics) - Get staking metrics for a given subnet - -#### [metrics.subnets](docs/sdks/subnets/README.md) - -* [getValidators](docs/sdks/subnets/README.md#getvalidators) - Get addresses running validators during a given time frame - -
- - - -## Standalone functions - -All the methods listed above are available as standalone functions. These -functions are ideal for use in applications running in the browser, serverless -runtimes or other environments where application bundle size is a primary -concern. When using a bundler to build your application, all unused -functionality will be either excluded from the final bundle or tree-shaken away. - -To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - -
- -Available standalone functions - -- [`metricsChainsGet`](docs/sdks/chains/README.md#get) - Get chain information for supported blockchain -- [`metricsChainsGetMetrics`](docs/sdks/chains/README.md#getmetrics) - Get metrics for EVM chains -- [`metricsChainsGetRollingWindowMetrics`](docs/sdks/chains/README.md#getrollingwindowmetrics) - Get rolling window metrics for EVM chains -- [`metricsChainsGetTeleporterMetrics`](docs/sdks/chains/README.md#getteleportermetrics) - Get teleporter metrics for EVM chains -- [`metricsChainsList`](docs/sdks/chains/README.md#list) - Get a list of supported blockchains -- [`metricsChainsListBTCbBridgersAboveThreshold`](docs/sdks/chains/README.md#listbtcbbridgersabovethreshold) - Get addresses by BTCb bridged balance -- [`metricsChainsListNftHolders`](docs/sdks/chains/README.md#listnftholders) - Get NFT holders by contract address -- [`metricsChainsListTokenHoldersAboveThreshold`](docs/sdks/chains/README.md#listtokenholdersabovethreshold) - Get addresses by balance over time -- [`metricsHealthCheck`](docs/sdks/metrics/README.md#healthcheck) - Get the health of the service -- [`metricsL1ValidatorsGetMetricsByNodeId`](docs/sdks/l1validators/README.md#getmetricsbynodeid) - Get metric values with given node id and timestamp range -- [`metricsL1ValidatorsGetMetricsBySubnetId`](docs/sdks/l1validators/README.md#getmetricsbysubnetid) - Get metric values with given subnet ID and timestamp range -- [`metricsL1ValidatorsGetMetricsByValidationId`](docs/sdks/l1validators/README.md#getmetricsbyvalidationid) - Get metric values with given validation id and timestamp range -- [`metricsL1ValidatorsListMetrics`](docs/sdks/l1validators/README.md#listmetrics) - Get given metric for all validators -- [`metricsNetworksGetStakingMetrics`](docs/sdks/networks/README.md#getstakingmetrics) - Get staking metrics for a given subnet -- [`metricsSubnetsGetValidators`](docs/sdks/subnets/README.md#getvalidators) - Get addresses running validators during a given time frame - -
- - - -## Global Parameters - -Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `chainId` to `"43114"` at SDK initialization and then you do not have to pass the same value on calls to operations like `list`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameters are available. - -| Name | Type | Description | -| ------- | ----------------------------- | -------------------------------------------------------- | -| chainId | string | A supported EVM chain id, chain alias, or blockchain id. | -| network | components.GlobalParamNetwork | A supported network type mainnet or testnet/fuji. | - -### Example - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", - network: "mainnet", -}); - -async function run() { - const result = await avalanche.metrics.chains.list({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); - -``` - - - -## Pagination - -Some of the endpoints in this SDK support pagination. To use pagination, you -make your SDK calls as usual, but the returned response object will also be an -async iterable that can be consumed using the [`for await...of`][for-await-of] -syntax. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of - -Here's an example of one such pagination call: - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.chains.list({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); - -``` - - - -## Retries - -Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. - -To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.healthCheck({ - retries: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, - }); - - console.log(result); -} - -run(); - -``` - -If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - retryConfig: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, -}); - -async function run() { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Error Handling - -[`AvalancheError`](./src/models/errors/avalancheerror.ts) is the base class for all HTTP error responses. It has the following properties: - -| Property | Type | Description | -| ------------------- | ---------- | --------------------------------------------------------------------------------------- | -| `error.message` | `string` | Error message | -| `error.statusCode` | `number` | HTTP response status code eg `404` | -| `error.headers` | `Headers` | HTTP response headers | -| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | -| `error.rawResponse` | `Response` | Raw HTTP response | -| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | - -### Example -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; -import * as errors from "@avalanche-sdk/metrics/models/errors"; - -const avalanche = new Avalanche(); - -async function run() { - try { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); - } catch (error) { - // The base class for HTTP error responses - if (error instanceof errors.AvalancheError) { - console.log(error.message); - console.log(error.statusCode); - console.log(error.body); - console.log(error.headers); - - // Depending on the method different errors may be thrown - if (error instanceof errors.BadRequestError) { - console.log(error.data$.message); // errors.BadRequestMessage - console.log(error.data$.statusCode); // number - console.log(error.data$.error); // string - } - } - } -} - -run(); - -``` - -### Error Classes -**Primary errors:** -* [`AvalancheError`](./src/models/errors/avalancheerror.ts): The base class for HTTP error responses. - * [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad requests generally mean the client has passed invalid or malformed parameters. Error messages in the response could help in evaluating the error. Status code `400`. - * [`UnauthorizedError`](./src/models/errors/unauthorizederror.ts): When a client attempts to access resources that require authorization credentials but the client lacks proper authentication in the request, the server responds with 401. Status code `401`. - * [`ForbiddenError`](./src/models/errors/forbiddenerror.ts): When a client attempts to access resources with valid credentials but doesn't have the privilege to perform that action, the server responds with 403. Status code `403`. - * [`NotFoundError`](./src/models/errors/notfounderror.ts): The error is mostly returned when the client requests with either mistyped URL, or the passed resource is moved or deleted, or the resource doesn't exist. Status code `404`. - * [`TooManyRequestsError`](./src/models/errors/toomanyrequestserror.ts): This error is returned when the client has sent too many, and has hit the rate limit. Status code `429`. - * [`InternalServerError`](./src/models/errors/internalservererror.ts): The error is a generic server side error that is returned for any uncaught and unexpected issues on the server side. This should be very rare, and you may reach out to us if the problem persists for a longer duration. Status code `500`. - * [`BadGatewayError`](./src/models/errors/badgatewayerror.ts): This is an internal error indicating invalid response received by the client-facing proxy or gateway from the upstream server. Status code `502`. - * [`ServiceUnavailableError`](./src/models/errors/serviceunavailableerror.ts): The error is returned for certain routes on a particular Subnet. This indicates an internal problem with our Subnet node, and may not necessarily mean the Subnet is down or affected. Status code `503`. - -
Less common errors (6) - -
- -**Network errors:** -* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. -* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. -* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. -* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. -* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. - - -**Inherit from [`AvalancheError`](./src/models/errors/avalancheerror.ts)**: -* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. - -
- - - -## Server Selection - -### Override Server URL Per-Client - -The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - serverURL: "https://metrics.avax.network", -}); - -async function run() { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Custom HTTP Client - -The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native -[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This -client is a thin wrapper around `fetch` and provides the ability to attach hooks -around the request lifecycle that can be used to modify the request or handle -errors and response. - -The `HTTPClient` constructor takes an optional `fetcher` argument that can be -used to integrate a third-party HTTP client or when writing tests to mock out -the HTTP client and feed in fixtures. - -The following example shows how to use the `"beforeRequest"` hook to to add a -custom header and a timeout to requests and how to use the `"requestError"` hook -to log errors: - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; -import { HTTPClient } from "@avalanche-sdk/metrics/lib/http"; - -const httpClient = new HTTPClient({ - // fetcher takes a function that has the same signature as native `fetch`. - fetcher: (request) => { - return fetch(request); - } -}); - -httpClient.addHook("beforeRequest", (request) => { - const nextRequest = new Request(request, { - signal: request.signal || AbortSignal.timeout(5000) - }); - - nextRequest.headers.set("x-custom-header", "custom value"); - - return nextRequest; -}); - -httpClient.addHook("requestError", (error, request) => { - console.group("Request Error"); - console.log("Reason:", `${error}`); - console.log("Endpoint:", `${request.method} ${request.url}`); - console.groupEnd(); -}); - -const sdk = new Avalanche({ httpClient }); -``` - - - -## Debugging - -You can setup your SDK to emit debug logs for SDK requests and responses. - -You can pass a logger that matches `console`'s interface as an SDK option. - -> [!WARNING] -> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production. - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const sdk = new Avalanche({ debugLogger: console }); -``` - - - - -# Development - -## Maturity - -This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage -to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally -looking for the latest version. - -## Contributions - -While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. -We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of diff --git a/metrics/RELEASES.md b/metrics/RELEASES.md deleted file mode 100644 index 38f64224..00000000 --- a/metrics/RELEASES.md +++ /dev/null @@ -1,89 +0,0 @@ - - -## 2025-03-11 19:35:52 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.516.0 (2.547.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.6] metrics - -## 2025-03-11 19:53:38 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.516.0 (2.547.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.7] metrics -### Releases -- [NPM v0.1.7] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.1.7 - metrics - -## 2025-03-11 20:32:19 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.517.0 (2.548.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.8] metrics -### Releases -- [NPM v0.1.8] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.1.8 - metrics - -## 2025-03-18 18:38:12 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.520.0 (2.555.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.0] metrics -### Releases -- [NPM v0.2.0] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.2.0 - metrics - -## 2025-03-25 18:37:56 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.523.2 (2.560.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.0] metrics -### Releases -- [NPM v0.3.0] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.3.0 - metrics - -## 2025-06-24 18:40:29 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.0] metrics -### Releases -- [NPM v0.4.0] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.4.0 - metrics - -## 2025-07-15 18:41:51 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.582.0 (2.657.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.1] metrics -### Releases -- [NPM v0.4.1] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.4.1 - metrics - -## 2025-08-05 18:43:01 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.597.0 (2.673.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.2] metrics -### Releases -- [NPM v0.4.2] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.4.2 - metrics - -## 2025-08-06 18:42:13 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.598.2 (2.674.3) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.3] metrics -### Releases -- [NPM v0.4.3] https://www.npmjs.com/package/@avalanche-sdk/metrics/v/0.4.3 - metrics \ No newline at end of file diff --git a/metrics/RUNTIMES.md b/metrics/RUNTIMES.md deleted file mode 100644 index db7ea942..00000000 --- a/metrics/RUNTIMES.md +++ /dev/null @@ -1,48 +0,0 @@ -# Supported JavaScript runtimes - -This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: - -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` - -[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API -[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API -[async-iter]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols - -Runtime environments that are explicitly supported are: - -- Evergreen browsers which include: Chrome, Safari, Edge, Firefox -- Node.js active and maintenance LTS releases - - Currently, this is v18 and v20 -- Bun v1 and above -- Deno v1.39 - - Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming]) - -[deno-file-streaming]: https://github.com/denoland/deno/issues/11018 - -## Recommended TypeScript compiler options - -The following `tsconfig.json` options are recommended for projects using this -SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], -[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and -so on): - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of -[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal -[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request -[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response - -```jsonc -{ - "compilerOptions": { - "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], - } -} -``` - -While `target` can be set to older ECMAScript versions, it may result in extra, -unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file diff --git a/metrics/USAGE.md b/metrics/USAGE.md deleted file mode 100644 index 45375418..00000000 --- a/metrics/USAGE.md +++ /dev/null @@ -1,16 +0,0 @@ - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); -} - -run(); - -``` - \ No newline at end of file diff --git a/metrics/docs/lib/utils/retryconfig.md b/metrics/docs/lib/utils/retryconfig.md deleted file mode 100644 index 08f95f45..00000000 --- a/metrics/docs/lib/utils/retryconfig.md +++ /dev/null @@ -1,24 +0,0 @@ -# RetryConfig - -Allows customizing the default retry configuration. It is only permitted in methods that accept retry policies. - -## Fields - -| Name | Type | Description | Example | -| ------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------ | ----------- | -| `strategy` | `"backoff" | "none"` | The retry strategy to use. | `"backoff"` | -| `backoff` | [BackoffStrategy](#backoffstrategy) | When strategy is "backoff", this configurates for the backoff parameters. | | -| `retryConnectionErrors` | `*boolean*` | When strategy is "backoff", this determines whether or not to retry on connection errors. | `true` | - -## BackoffStrategy - -The backoff strategy allows retrying a request with an exponential backoff between each retry. - -### Fields - -| Name | Type | Description | Example | -| ------------------ | ------------ | ----------------------------------------- | -------- | -| `initialInterval` | `*number*` | The initial interval in milliseconds. | `500` | -| `maxInterval` | `*number*` | The maximum interval in milliseconds. | `60000` | -| `exponent` | `*number*` | The exponent to use for the backoff. | `1.5` | -| `maxElapsedTime` | `*number*` | The maximum elapsed time in milliseconds. | `300000` | \ No newline at end of file diff --git a/metrics/docs/models/components/addressdetails.md b/metrics/docs/models/components/addressdetails.md deleted file mode 100644 index db797084..00000000 --- a/metrics/docs/models/components/addressdetails.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddressDetails - -## Example Usage - -```typescript -import { AddressDetails } from "@avalanche-sdk/metrics/models/components"; - -let value: AddressDetails = { - address: "0x1234567890abcdef1234567890abcdef123456789", - sortKey: "123", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `address` | *string* | :heavy_check_mark: | An EVM address. | 0x1234567890abcdef1234567890abcdef123456789 | -| `sortKey` | *string* | :heavy_check_mark: | Route dependent value associated with an address at a given point in time. | 123 | \ No newline at end of file diff --git a/metrics/docs/models/components/chain.md b/metrics/docs/models/components/chain.md deleted file mode 100644 index 2fc84dd7..00000000 --- a/metrics/docs/models/components/chain.md +++ /dev/null @@ -1,25 +0,0 @@ -# Chain - -## Example Usage - -```typescript -import { Chain } from "@avalanche-sdk/metrics/models/components"; - -let value: Chain = { - evmChainId: 43114, - chainName: "c_chain", - blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", - subnetId: "11111111111111111111111111111111LpoYY", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `evmChainId` | *number* | :heavy_check_mark: | EVM ChainID for the blockchain. | 43114 | -| `chainName` | *string* | :heavy_check_mark: | Blockchain alias for easy identification of blockchains. | c_chain | -| `blockchainId` | *string* | :heavy_check_mark: | Unique blockchain ID for this blockchain. | 2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5 | -| `subnetId` | *string* | :heavy_check_mark: | Subnet ID this blockchain belongs to. | 11111111111111111111111111111111LpoYY | -| `network` | [components.NetworkType](../../models/components/networktype.md) | :heavy_check_mark: | Network on which this blockchain or subnet is created on. | | \ No newline at end of file diff --git a/metrics/docs/models/components/chainmetric.md b/metrics/docs/models/components/chainmetric.md deleted file mode 100644 index 18354c81..00000000 --- a/metrics/docs/models/components/chainmetric.md +++ /dev/null @@ -1,15 +0,0 @@ -# ChainMetric - -## Example Usage - -```typescript -import { ChainMetric } from "@avalanche-sdk/metrics/models/components"; - -let value: ChainMetric = "activeAddresses"; -``` - -## Values - -```typescript -"activeAddresses" | "activeSenders" | "cumulativeTxCount" | "cumulativeAddresses" | "cumulativeContracts" | "cumulativeDeployers" | "gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/chainrollingwindowmetric.md b/metrics/docs/models/components/chainrollingwindowmetric.md deleted file mode 100644 index 4d654807..00000000 --- a/metrics/docs/models/components/chainrollingwindowmetric.md +++ /dev/null @@ -1,15 +0,0 @@ -# ChainRollingWindowMetric - -## Example Usage - -```typescript -import { ChainRollingWindowMetric } from "@avalanche-sdk/metrics/models/components"; - -let value: ChainRollingWindowMetric = "txCount"; -``` - -## Values - -```typescript -"gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/chainrollingwindowmetricsvalue.md b/metrics/docs/models/components/chainrollingwindowmetricsvalue.md deleted file mode 100644 index 8d4a5e8b..00000000 --- a/metrics/docs/models/components/chainrollingwindowmetricsvalue.md +++ /dev/null @@ -1,25 +0,0 @@ -# ChainRollingWindowMetricsValue - -## Example Usage - -```typescript -import { ChainRollingWindowMetricsValue } from "@avalanche-sdk/metrics/models/components"; - -let value: ChainRollingWindowMetricsValue = { - lastHour: 9866.7, - lastDay: 6987.1, - lastMonth: 2680.88, - lastYear: 8149.01, - allTime: 6874.99, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `lastHour` | *number* | :heavy_check_mark: | Aggregated value for the current metrics in last hour. | -| `lastDay` | *number* | :heavy_check_mark: | Aggregated value for the current metrics in last day. | -| `lastMonth` | *number* | :heavy_check_mark: | Aggregated value for the current metrics in last month. | -| `lastYear` | *number* | :heavy_check_mark: | Aggregated value for the current metrics in last year. | -| `allTime` | *number* | :heavy_check_mark: | Aggregated value for the current metrics for all time. | \ No newline at end of file diff --git a/metrics/docs/models/components/globalparamnetwork.md b/metrics/docs/models/components/globalparamnetwork.md deleted file mode 100644 index 1c1e39d8..00000000 --- a/metrics/docs/models/components/globalparamnetwork.md +++ /dev/null @@ -1,15 +0,0 @@ -# GlobalParamNetwork - -## Example Usage - -```typescript -import { GlobalParamNetwork } from "@avalanche-sdk/metrics/models/components"; - -let value: GlobalParamNetwork = "mainnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "testnet" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/healthcheckresultdto.md b/metrics/docs/models/components/healthcheckresultdto.md deleted file mode 100644 index a6e8298c..00000000 --- a/metrics/docs/models/components/healthcheckresultdto.md +++ /dev/null @@ -1,30 +0,0 @@ -# HealthCheckResultDto - -## Example Usage - -```typescript -import { HealthCheckResultDto } from "@avalanche-sdk/metrics/models/components"; - -let value: HealthCheckResultDto = { - info: { - "database": { - status: "up", - }, - }, - error: {}, - details: { - "database": { - status: "up", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `status` | [components.HealthCheckResultDtoStatus](../../models/components/healthcheckresultdtostatus.md) | :heavy_minus_sign: | N/A | | -| `info` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | -| `error` | Record | :heavy_minus_sign: | N/A | {} | -| `details` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | \ No newline at end of file diff --git a/metrics/docs/models/components/healthcheckresultdtostatus.md b/metrics/docs/models/components/healthcheckresultdtostatus.md deleted file mode 100644 index 4a989fec..00000000 --- a/metrics/docs/models/components/healthcheckresultdtostatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthCheckResultDtoStatus - -## Example Usage - -```typescript -import { HealthCheckResultDtoStatus } from "@avalanche-sdk/metrics/models/components"; - -let value: HealthCheckResultDtoStatus = "error"; -``` - -## Values - -```typescript -"error" | "ok" | "shutting_down" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/healthindicatorresultdto.md b/metrics/docs/models/components/healthindicatorresultdto.md deleted file mode 100644 index 010a3130..00000000 --- a/metrics/docs/models/components/healthindicatorresultdto.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthIndicatorResultDto - -## Example Usage - -```typescript -import { HealthIndicatorResultDto } from "@avalanche-sdk/metrics/models/components"; - -let value: HealthIndicatorResultDto = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `status` | [components.HealthIndicatorResultDtoStatus](../../models/components/healthindicatorresultdtostatus.md) | :heavy_minus_sign: | Status of the health indicator. | \ No newline at end of file diff --git a/metrics/docs/models/components/healthindicatorresultdtostatus.md b/metrics/docs/models/components/healthindicatorresultdtostatus.md deleted file mode 100644 index fce16cd7..00000000 --- a/metrics/docs/models/components/healthindicatorresultdtostatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# HealthIndicatorResultDtoStatus - -Status of the health indicator. - -## Example Usage - -```typescript -import { HealthIndicatorResultDtoStatus } from "@avalanche-sdk/metrics/models/components"; - -let value: HealthIndicatorResultDtoStatus = "down"; -``` - -## Values - -```typescript -"up" | "down" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/listchainsresponse.md b/metrics/docs/models/components/listchainsresponse.md deleted file mode 100644 index 5791c53a..00000000 --- a/metrics/docs/models/components/listchainsresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListChainsResponse - -## Example Usage - -```typescript -import { ListChainsResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: ListChainsResponse = { - chains: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `chains` | [components.Chain](../../models/components/chain.md)[] | :heavy_check_mark: | Array of Subnet - EVM Chain ID mappings whose metrics we support. | \ No newline at end of file diff --git a/metrics/docs/models/components/lookingglassresponse.md b/metrics/docs/models/components/lookingglassresponse.md deleted file mode 100644 index b8666f9e..00000000 --- a/metrics/docs/models/components/lookingglassresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# LookingGlassResponse - -## Example Usage - -```typescript -import { LookingGlassResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: LookingGlassResponse = { - addresses: [ - { - address: "0x1234567890abcdef1234567890abcdef123456789", - sortKey: "123", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `addresses` | [components.AddressDetails](../../models/components/addressdetails.md)[] | :heavy_check_mark: | List of addresses that match provided criteria. | \ No newline at end of file diff --git a/metrics/docs/models/components/metricsapiresponse.md b/metrics/docs/models/components/metricsapiresponse.md deleted file mode 100644 index 5b93fb46..00000000 --- a/metrics/docs/models/components/metricsapiresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# MetricsApiResponse - -## Example Usage - -```typescript -import { MetricsApiResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: MetricsApiResponse = { - results: [ - { - value: 6951.97, - timestamp: 4829.81, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `results` | [components.MetricsValue](../../models/components/metricsvalue.md)[] | :heavy_check_mark: | Array of current metrics values at different timestamps. | \ No newline at end of file diff --git a/metrics/docs/models/components/metricsvalue.md b/metrics/docs/models/components/metricsvalue.md deleted file mode 100644 index ab6e11ec..00000000 --- a/metrics/docs/models/components/metricsvalue.md +++ /dev/null @@ -1,19 +0,0 @@ -# MetricsValue - -## Example Usage - -```typescript -import { MetricsValue } from "@avalanche-sdk/metrics/models/components"; - -let value: MetricsValue = { - value: 5945.62, - timestamp: 7531.57, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `value` | *number* | :heavy_check_mark: | Aggregated value for the current metrics. | -| `timestamp` | *number* | :heavy_check_mark: | Unix Epoch timestamp for which metrics are aggregated. Depending on the interval of the metric this can be at the start of the relevant hour, day, month, year, etc. | \ No newline at end of file diff --git a/metrics/docs/models/components/network.md b/metrics/docs/models/components/network.md deleted file mode 100644 index c319b17d..00000000 --- a/metrics/docs/models/components/network.md +++ /dev/null @@ -1,15 +0,0 @@ -# Network - -## Example Usage - -```typescript -import { Network } from "@avalanche-sdk/metrics/models/components"; - -let value: Network = "mainnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "testnet" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/networkmetric.md b/metrics/docs/models/components/networkmetric.md deleted file mode 100644 index 88289cae..00000000 --- a/metrics/docs/models/components/networkmetric.md +++ /dev/null @@ -1,15 +0,0 @@ -# NetworkMetric - -## Example Usage - -```typescript -import { NetworkMetric } from "@avalanche-sdk/metrics/models/components"; - -let value: NetworkMetric = "validatorCount"; -``` - -## Values - -```typescript -"delegatorCount" | "delegatorWeight" | "validatorCount" | "validatorWeight" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/networktype.md b/metrics/docs/models/components/networktype.md deleted file mode 100644 index 3093b063..00000000 --- a/metrics/docs/models/components/networktype.md +++ /dev/null @@ -1,17 +0,0 @@ -# NetworkType - -Network on which this blockchain or subnet is created on. - -## Example Usage - -```typescript -import { NetworkType } from "@avalanche-sdk/metrics/models/components"; - -let value: NetworkType = "testnet"; -``` - -## Values - -```typescript -"mainnet" | "testnet" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/nftholdersresponse.md b/metrics/docs/models/components/nftholdersresponse.md deleted file mode 100644 index 5dc1a571..00000000 --- a/metrics/docs/models/components/nftholdersresponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# NftHoldersResponse - -## Example Usage - -```typescript -import { NftHoldersResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: NftHoldersResponse = { - addresses: [ - { - address: "0x1234567890abcdef1234567890abcdef123456789", - sortKey: "123", - }, - ], - nftCollectionName: [ - "NFT Project", - ], - nftSymbol: [ - "NFTPROJ", - ], - totalHolders: 10, - totalTokens: 10, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | | -| `addresses` | [components.AddressDetails](../../models/components/addressdetails.md)[] | :heavy_check_mark: | List of addresses that match provided criteria. | | -| `nftCollectionName` | *string*[] | :heavy_minus_sign: | NFT project name. | NFT Project | -| `nftSymbol` | *string*[] | :heavy_minus_sign: | NFT symbol. | NFTPROJ | -| `totalHolders` | *number* | :heavy_check_mark: | Total number of holders of a given NFT project. | 10 | -| `totalTokens` | *number* | :heavy_check_mark: | Total number of tokens of a given NFT project. | 10 | \ No newline at end of file diff --git a/metrics/docs/models/components/pchainaddressdetails.md b/metrics/docs/models/components/pchainaddressdetails.md deleted file mode 100644 index abde92ff..00000000 --- a/metrics/docs/models/components/pchainaddressdetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# PChainAddressDetails - -## Example Usage - -```typescript -import { PChainAddressDetails } from "@avalanche-sdk/metrics/models/components"; - -let value: PChainAddressDetails = { - addresses: [ - "avax1abcdef1234567890abcdef1234567890abcdef", - ], - sortKey: "123", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `addresses` | *string*[] | :heavy_check_mark: | A list of P-Chain addresses. | [
"avax1abcdef1234567890abcdef1234567890abcdef"
] | -| `sortKey` | *string* | :heavy_check_mark: | Route dependent value associated with an address at a given point in time. | 123 | \ No newline at end of file diff --git a/metrics/docs/models/components/pchainlookingglassresponse.md b/metrics/docs/models/components/pchainlookingglassresponse.md deleted file mode 100644 index 47153c0d..00000000 --- a/metrics/docs/models/components/pchainlookingglassresponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# PChainLookingGlassResponse - -## Example Usage - -```typescript -import { PChainLookingGlassResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: PChainLookingGlassResponse = { - addresses: [ - { - addresses: [ - "avax1abcdef1234567890abcdef1234567890abcdef", - ], - sortKey: "123", - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `addresses` | [components.PChainAddressDetails](../../models/components/pchainaddressdetails.md)[] | :heavy_check_mark: | List of addresses that match provided criteria. | \ No newline at end of file diff --git a/metrics/docs/models/components/rollingwindowmetricsapiresponse.md b/metrics/docs/models/components/rollingwindowmetricsapiresponse.md deleted file mode 100644 index 582faed1..00000000 --- a/metrics/docs/models/components/rollingwindowmetricsapiresponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# RollingWindowMetricsApiResponse - -## Example Usage - -```typescript -import { RollingWindowMetricsApiResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: RollingWindowMetricsApiResponse = { - result: { - lastHour: 3141.43, - lastDay: 8857.92, - lastMonth: 2439.17, - lastYear: 712.28, - allTime: 3194.78, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `result` | [components.ChainRollingWindowMetricsValue](../../models/components/chainrollingwindowmetricsvalue.md) | :heavy_check_mark: | Array of current metrics values for different windows. | \ No newline at end of file diff --git a/metrics/docs/models/components/teleporterchainmetricsapiresponse.md b/metrics/docs/models/components/teleporterchainmetricsapiresponse.md deleted file mode 100644 index 9e52a00b..00000000 --- a/metrics/docs/models/components/teleporterchainmetricsapiresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# TeleporterChainMetricsApiResponse - -## Example Usage - -```typescript -import { TeleporterChainMetricsApiResponse } from "@avalanche-sdk/metrics/models/components"; - -let value: TeleporterChainMetricsApiResponse = { - result: { - value: 7509, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `result` | [components.TeleporterMetricsValue](../../models/components/teleportermetricsvalue.md) | :heavy_check_mark: | current metrics value for a given teleporter metric. | \ No newline at end of file diff --git a/metrics/docs/models/components/teleportermetric.md b/metrics/docs/models/components/teleportermetric.md deleted file mode 100644 index dd514205..00000000 --- a/metrics/docs/models/components/teleportermetric.md +++ /dev/null @@ -1,15 +0,0 @@ -# TeleporterMetric - -## Example Usage - -```typescript -import { TeleporterMetric } from "@avalanche-sdk/metrics/models/components"; - -let value: TeleporterMetric = "teleporterSourceTxnCount"; -``` - -## Values - -```typescript -"teleporterSourceTxnCount" | "teleporterDestinationTxnCount" | "teleporterTotalTxnCount" -``` \ No newline at end of file diff --git a/metrics/docs/models/components/teleportermetricsvalue.md b/metrics/docs/models/components/teleportermetricsvalue.md deleted file mode 100644 index b3e9a7e0..00000000 --- a/metrics/docs/models/components/teleportermetricsvalue.md +++ /dev/null @@ -1,17 +0,0 @@ -# TeleporterMetricsValue - -## Example Usage - -```typescript -import { TeleporterMetricsValue } from "@avalanche-sdk/metrics/models/components"; - -let value: TeleporterMetricsValue = { - value: 6365.16, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `value` | *number* | :heavy_check_mark: | Aggregated value for the current metrics. | \ No newline at end of file diff --git a/metrics/docs/models/components/timeintervalgranularity.md b/metrics/docs/models/components/timeintervalgranularity.md deleted file mode 100644 index 4891d8b6..00000000 --- a/metrics/docs/models/components/timeintervalgranularity.md +++ /dev/null @@ -1,15 +0,0 @@ -# TimeIntervalGranularity - -## Example Usage - -```typescript -import { TimeIntervalGranularity } from "@avalanche-sdk/metrics/models/components"; - -let value: TimeIntervalGranularity = "day"; -``` - -## Values - -```typescript -"hour" | "day" | "week" | "month" -``` \ No newline at end of file diff --git a/metrics/docs/models/errors/badgatewayerror.md b/metrics/docs/models/errors/badgatewayerror.md deleted file mode 100644 index fbe89b03..00000000 --- a/metrics/docs/models/errors/badgatewayerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadGatewayError - -## Example Usage - -```typescript -import { BadGatewayError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadGatewayMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 502 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Gateway | \ No newline at end of file diff --git a/metrics/docs/models/errors/badgatewaymessage.md b/metrics/docs/models/errors/badgatewaymessage.md deleted file mode 100644 index 0d48b33e..00000000 --- a/metrics/docs/models/errors/badgatewaymessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadGatewayMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/badrequesterror.md b/metrics/docs/models/errors/badrequesterror.md deleted file mode 100644 index f00e4fdf..00000000 --- a/metrics/docs/models/errors/badrequesterror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadRequestError - -## Example Usage - -```typescript -import { BadRequestError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadRequestMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 400 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Request | \ No newline at end of file diff --git a/metrics/docs/models/errors/badrequestmessage.md b/metrics/docs/models/errors/badrequestmessage.md deleted file mode 100644 index 8d4e5cef..00000000 --- a/metrics/docs/models/errors/badrequestmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadRequestMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/forbiddenerror.md b/metrics/docs/models/errors/forbiddenerror.md deleted file mode 100644 index e5d25814..00000000 --- a/metrics/docs/models/errors/forbiddenerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ForbiddenError - -## Example Usage - -```typescript -import { ForbiddenError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ForbiddenMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 403 | -| `error` | *string* | :heavy_check_mark: | The type of error | Forbidden | \ No newline at end of file diff --git a/metrics/docs/models/errors/forbiddenmessage.md b/metrics/docs/models/errors/forbiddenmessage.md deleted file mode 100644 index ca64f097..00000000 --- a/metrics/docs/models/errors/forbiddenmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ForbiddenMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/internalservererror.md b/metrics/docs/models/errors/internalservererror.md deleted file mode 100644 index 35329566..00000000 --- a/metrics/docs/models/errors/internalservererror.md +++ /dev/null @@ -1,17 +0,0 @@ -# InternalServerError - -## Example Usage - -```typescript -import { InternalServerError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.InternalServerErrorMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 500 | -| `error` | *string* | :heavy_check_mark: | The type of error | Internal Server Error | \ No newline at end of file diff --git a/metrics/docs/models/errors/internalservererrormessage.md b/metrics/docs/models/errors/internalservererrormessage.md deleted file mode 100644 index f27ce805..00000000 --- a/metrics/docs/models/errors/internalservererrormessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# InternalServerErrorMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/notfounderror.md b/metrics/docs/models/errors/notfounderror.md deleted file mode 100644 index 8a8613f4..00000000 --- a/metrics/docs/models/errors/notfounderror.md +++ /dev/null @@ -1,17 +0,0 @@ -# NotFoundError - -## Example Usage - -```typescript -import { NotFoundError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.NotFoundMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 404 | -| `error` | *string* | :heavy_check_mark: | The type of error | Not Found | \ No newline at end of file diff --git a/metrics/docs/models/errors/notfoundmessage.md b/metrics/docs/models/errors/notfoundmessage.md deleted file mode 100644 index dda6ca1d..00000000 --- a/metrics/docs/models/errors/notfoundmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# NotFoundMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/serviceunavailableerror.md b/metrics/docs/models/errors/serviceunavailableerror.md deleted file mode 100644 index 4a39720f..00000000 --- a/metrics/docs/models/errors/serviceunavailableerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ServiceUnavailableError - -## Example Usage - -```typescript -import { ServiceUnavailableError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ServiceUnavailableMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 503 | -| `error` | *string* | :heavy_check_mark: | The type of error | Service Unavailable | \ No newline at end of file diff --git a/metrics/docs/models/errors/serviceunavailablemessage.md b/metrics/docs/models/errors/serviceunavailablemessage.md deleted file mode 100644 index 10c05c8f..00000000 --- a/metrics/docs/models/errors/serviceunavailablemessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ServiceUnavailableMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/toomanyrequestserror.md b/metrics/docs/models/errors/toomanyrequestserror.md deleted file mode 100644 index e26930cb..00000000 --- a/metrics/docs/models/errors/toomanyrequestserror.md +++ /dev/null @@ -1,17 +0,0 @@ -# TooManyRequestsError - -## Example Usage - -```typescript -import { TooManyRequestsError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.TooManyRequestsMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 429 | -| `error` | *string* | :heavy_check_mark: | The type of error | Too Many Requests | \ No newline at end of file diff --git a/metrics/docs/models/errors/toomanyrequestsmessage.md b/metrics/docs/models/errors/toomanyrequestsmessage.md deleted file mode 100644 index 9967ac24..00000000 --- a/metrics/docs/models/errors/toomanyrequestsmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# TooManyRequestsMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/errors/unauthorizederror.md b/metrics/docs/models/errors/unauthorizederror.md deleted file mode 100644 index f5559262..00000000 --- a/metrics/docs/models/errors/unauthorizederror.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnauthorizedError - -## Example Usage - -```typescript -import { UnauthorizedError } from "@avalanche-sdk/metrics/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.UnauthorizedMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 401 | -| `error` | *string* | :heavy_check_mark: | The type of error | Unauthorized | \ No newline at end of file diff --git a/metrics/docs/models/errors/unauthorizedmessage.md b/metrics/docs/models/errors/unauthorizedmessage.md deleted file mode 100644 index 3df6c725..00000000 --- a/metrics/docs/models/errors/unauthorizedmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# UnauthorizedMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/metrics/docs/models/operations/getaddressesbybalanceovertimeglobals.md b/metrics/docs/models/operations/getaddressesbybalanceovertimeglobals.md deleted file mode 100644 index dc4fde07..00000000 --- a/metrics/docs/models/operations/getaddressesbybalanceovertimeglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAddressesByBalanceOverTimeGlobals - -## Example Usage - -```typescript -import { GetAddressesByBalanceOverTimeGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetAddressesByBalanceOverTimeGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getaddressesbybalanceovertimerequest.md b/metrics/docs/models/operations/getaddressesbybalanceovertimerequest.md deleted file mode 100644 index 9da2e522..00000000 --- a/metrics/docs/models/operations/getaddressesbybalanceovertimerequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetAddressesByBalanceOverTimeRequest - -## Example Usage - -```typescript -import { GetAddressesByBalanceOverTimeRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetAddressesByBalanceOverTimeRequest = { - threshold: "1000000", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `threshold` | *string* | :heavy_check_mark: | The minimum balance for which addresses should be considered. | 1000000 | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 5000. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E | \ No newline at end of file diff --git a/metrics/docs/models/operations/getaddressesbybalanceovertimeresponse.md b/metrics/docs/models/operations/getaddressesbybalanceovertimeresponse.md deleted file mode 100644 index cb1b7845..00000000 --- a/metrics/docs/models/operations/getaddressesbybalanceovertimeresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetAddressesByBalanceOverTimeResponse - -## Example Usage - -```typescript -import { GetAddressesByBalanceOverTimeResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetAddressesByBalanceOverTimeResponse = { - result: { - addresses: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `result` | [components.LookingGlassResponse](../../models/components/lookingglassresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/getaddressesbybtcbbridgedrequest.md b/metrics/docs/models/operations/getaddressesbybtcbbridgedrequest.md deleted file mode 100644 index 6faffb67..00000000 --- a/metrics/docs/models/operations/getaddressesbybtcbbridgedrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetAddressesByBtcbBridgedRequest - -## Example Usage - -```typescript -import { GetAddressesByBtcbBridgedRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetAddressesByBtcbBridgedRequest = { - threshold: "1000000", - pageSize: 10, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `threshold` | *string* | :heavy_check_mark: | The minimum balance for which addresses should be considered. | 1000000 | -| `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. The minimum page size is 1. The maximum pageSize is 5000. | 10 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getaddressesbybtcbbridgedresponse.md b/metrics/docs/models/operations/getaddressesbybtcbbridgedresponse.md deleted file mode 100644 index 561e4b45..00000000 --- a/metrics/docs/models/operations/getaddressesbybtcbbridgedresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetAddressesByBtcbBridgedResponse - -## Example Usage - -```typescript -import { GetAddressesByBtcbBridgedResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetAddressesByBtcbBridgedResponse = { - result: { - addresses: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `result` | [components.LookingGlassResponse](../../models/components/lookingglassresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/getchainglobals.md b/metrics/docs/models/operations/getchainglobals.md deleted file mode 100644 index d14ced54..00000000 --- a/metrics/docs/models/operations/getchainglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetChainGlobals - -## Example Usage - -```typescript -import { GetChainGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetChainGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getchainrequest.md b/metrics/docs/models/operations/getchainrequest.md deleted file mode 100644 index 924b0f14..00000000 --- a/metrics/docs/models/operations/getchainrequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetChainRequest - -## Example Usage - -```typescript -import { GetChainRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetChainRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getevmchainmetricsglobals.md b/metrics/docs/models/operations/getevmchainmetricsglobals.md deleted file mode 100644 index 6d509528..00000000 --- a/metrics/docs/models/operations/getevmchainmetricsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEvmChainMetricsGlobals - -## Example Usage - -```typescript -import { GetEvmChainMetricsGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetEvmChainMetricsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getevmchainmetricsrequest.md b/metrics/docs/models/operations/getevmchainmetricsrequest.md deleted file mode 100644 index 980926ad..00000000 --- a/metrics/docs/models/operations/getevmchainmetricsrequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# GetEvmChainMetricsRequest - -## Example Usage - -```typescript -import { GetEvmChainMetricsRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetEvmChainMetricsRequest = { - metric: "activeAddresses", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - timeInterval: "day", - pageSize: 10, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `metric` | [components.ChainMetric](../../models/components/chainmetric.md) | :heavy_check_mark: | Which chain level metric to fetch. | activeAddresses | -| `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.TimeIntervalGranularity](../../models/components/timeintervalgranularity.md) | :heavy_minus_sign: | Time interval granularity for data aggregation. Metrics
prefixed with "cumulative", "max", or "avg" only support timeInterval equal
to "day". | day | -| `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. The minimum page size is 1. The maximum pageSize is 2160. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getevmchainmetricsresponse.md b/metrics/docs/models/operations/getevmchainmetricsresponse.md deleted file mode 100644 index fe8fb3ef..00000000 --- a/metrics/docs/models/operations/getevmchainmetricsresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetEvmChainMetricsResponse - -## Example Usage - -```typescript -import { GetEvmChainMetricsResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetEvmChainMetricsResponse = { - result: { - results: [ - { - value: 6951.97, - timestamp: 4829.81, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `result` | [components.MetricsApiResponse](../../models/components/metricsapiresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/getevmchainrollingwindowmetricsglobals.md b/metrics/docs/models/operations/getevmchainrollingwindowmetricsglobals.md deleted file mode 100644 index 3c8fd9c1..00000000 --- a/metrics/docs/models/operations/getevmchainrollingwindowmetricsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEvmChainRollingWindowMetricsGlobals - -## Example Usage - -```typescript -import { GetEvmChainRollingWindowMetricsGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetEvmChainRollingWindowMetricsGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getevmchainrollingwindowmetricsrequest.md b/metrics/docs/models/operations/getevmchainrollingwindowmetricsrequest.md deleted file mode 100644 index 4b33f32a..00000000 --- a/metrics/docs/models/operations/getevmchainrollingwindowmetricsrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEvmChainRollingWindowMetricsRequest - -## Example Usage - -```typescript -import { GetEvmChainRollingWindowMetricsRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetEvmChainRollingWindowMetricsRequest = { - metric: "txCount", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `metric` | [components.ChainRollingWindowMetric](../../models/components/chainrollingwindowmetric.md) | :heavy_check_mark: | Which chain level metric to fetch for the rolling window. | txCount | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbynodeidmetric.md b/metrics/docs/models/operations/getmetricsbynodeidmetric.md deleted file mode 100644 index 05edbf78..00000000 --- a/metrics/docs/models/operations/getmetricsbynodeidmetric.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetMetricsByNodeIdMetric - -Which metric to fetch for given L1 validator(node) ID. - -## Example Usage - -```typescript -import { GetMetricsByNodeIdMetric } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsByNodeIdMetric = "perNodeDailyFeesPaid"; -``` - -## Values - -```typescript -"perNodeCumulativeFeesPaid" | "perNodeDailyFeesPaid" -``` \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbynodeidrequest.md b/metrics/docs/models/operations/getmetricsbynodeidrequest.md deleted file mode 100644 index 41a45669..00000000 --- a/metrics/docs/models/operations/getmetricsbynodeidrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetMetricsByNodeIdRequest - -## Example Usage - -```typescript -import { GetMetricsByNodeIdRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsByNodeIdRequest = { - metric: "perNodeDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - nodeId: "NodeID-JQPadXEMWtRtJyXrisyDNWuXKSjSf9D36", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `metric` | [operations.GetMetricsByNodeIdMetric](../../models/operations/getmetricsbynodeidmetric.md) | :heavy_check_mark: | Which metric to fetch for given L1 validator(node) ID. | perNodeDailyFeesPaid | -| `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 | -| `nodeId` | *string* | :heavy_check_mark: | A primary network (P or X chain) nodeId. | NodeID-JQPadXEMWtRtJyXrisyDNWuXKSjSf9D36 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbysubnetidmetric.md b/metrics/docs/models/operations/getmetricsbysubnetidmetric.md deleted file mode 100644 index e6007897..00000000 --- a/metrics/docs/models/operations/getmetricsbysubnetidmetric.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetMetricsBySubnetIdMetric - -Which metric to fetch for given subnet ID. - -## Example Usage - -```typescript -import { GetMetricsBySubnetIdMetric } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsBySubnetIdMetric = "perSubnetDailyFeesPaid"; -``` - -## Values - -```typescript -"perSubnetDailyFeesPaid" | "perSubnetCumulativeFeesPaid" | "perSubnetPayingValidators" -``` \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbysubnetidrequest.md b/metrics/docs/models/operations/getmetricsbysubnetidrequest.md deleted file mode 100644 index 09da7aab..00000000 --- a/metrics/docs/models/operations/getmetricsbysubnetidrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetMetricsBySubnetIdRequest - -## Example Usage - -```typescript -import { GetMetricsBySubnetIdRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsBySubnetIdRequest = { - metric: "perSubnetDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - subnetId: "eYwmVU67LmSfZb1RwqCMhBYkFyG8ftxn6jAwqzFmxC9STBWLC", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `metric` | [operations.GetMetricsBySubnetIdMetric](../../models/operations/getmetricsbysubnetidmetric.md) | :heavy_check_mark: | Which metric to fetch for given subnet ID. | perSubnetDailyFeesPaid | -| `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 | -| `subnetId` | *string* | :heavy_check_mark: | The subnet ID to filter by. | eYwmVU67LmSfZb1RwqCMhBYkFyG8ftxn6jAwqzFmxC9STBWLC | \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbyvalidationidmetric.md b/metrics/docs/models/operations/getmetricsbyvalidationidmetric.md deleted file mode 100644 index 077a379e..00000000 --- a/metrics/docs/models/operations/getmetricsbyvalidationidmetric.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetMetricsByValidationIdMetric - -Which metric to fetch for given L1 validation ID. - -## Example Usage - -```typescript -import { GetMetricsByValidationIdMetric } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsByValidationIdMetric = "validationFeesDaily"; -``` - -## Values - -```typescript -"validationCumulativeFeesDaily" | "validationFeesDaily" -``` \ No newline at end of file diff --git a/metrics/docs/models/operations/getmetricsbyvalidationidrequest.md b/metrics/docs/models/operations/getmetricsbyvalidationidrequest.md deleted file mode 100644 index 2c7eaa0a..00000000 --- a/metrics/docs/models/operations/getmetricsbyvalidationidrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetMetricsByValidationIdRequest - -## Example Usage - -```typescript -import { GetMetricsByValidationIdRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetMetricsByValidationIdRequest = { - l1ValidationId: "2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG", - metric: "validationFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `l1ValidationId` | *string* | :heavy_check_mark: | The L1 Validator's validation ID to filter by | 2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG | -| `metric` | [operations.GetMetricsByValidationIdMetric](../../models/operations/getmetricsbyvalidationidmetric.md) | :heavy_check_mark: | Which metric to fetch for given L1 validation ID. | validationFeesDaily | -| `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 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getnftholdersbycontractaddressglobals.md b/metrics/docs/models/operations/getnftholdersbycontractaddressglobals.md deleted file mode 100644 index 19ea3bef..00000000 --- a/metrics/docs/models/operations/getnftholdersbycontractaddressglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNftHoldersByContractAddressGlobals - -## Example Usage - -```typescript -import { GetNftHoldersByContractAddressGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetNftHoldersByContractAddressGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getnftholdersbycontractaddressrequest.md b/metrics/docs/models/operations/getnftholdersbycontractaddressrequest.md deleted file mode 100644 index 12c82f5e..00000000 --- a/metrics/docs/models/operations/getnftholdersbycontractaddressrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetNftHoldersByContractAddressRequest - -## Example Usage - -```typescript -import { GetNftHoldersByContractAddressRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetNftHoldersByContractAddressRequest = { - pageSize: 10, - address: "0x7a420AEFF902AAa2c85a190D7B91Ce8BEFffFE14", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `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. The minimum page size is 1. The maximum pageSize is 5000. | 10 | -| `chainId` | *string* | :heavy_minus_sign: | A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. | 43114 | -| `address` | *string* | :heavy_check_mark: | Contract address on the relevant chain. | 0x7a420AEFF902AAa2c85a190D7B91Ce8BEFffFE14 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getnftholdersbycontractaddressresponse.md b/metrics/docs/models/operations/getnftholdersbycontractaddressresponse.md deleted file mode 100644 index 826ea596..00000000 --- a/metrics/docs/models/operations/getnftholdersbycontractaddressresponse.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetNftHoldersByContractAddressResponse - -## Example Usage - -```typescript -import { GetNftHoldersByContractAddressResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetNftHoldersByContractAddressResponse = { - result: { - addresses: [ - { - address: "0x1234567890abcdef1234567890abcdef123456789", - sortKey: "123", - }, - ], - nftCollectionName: [ - "NFT Project", - ], - nftSymbol: [ - "NFTPROJ", - ], - totalHolders: 10, - totalTokens: 10, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `result` | [components.NftHoldersResponse](../../models/components/nftholdersresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/getstakingmetricsglobals.md b/metrics/docs/models/operations/getstakingmetricsglobals.md deleted file mode 100644 index 126822d0..00000000 --- a/metrics/docs/models/operations/getstakingmetricsglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetStakingMetricsGlobals - -## Example Usage - -```typescript -import { GetStakingMetricsGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetStakingMetricsGlobals = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | A supported network type mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/metrics/docs/models/operations/getstakingmetricsrequest.md b/metrics/docs/models/operations/getstakingmetricsrequest.md deleted file mode 100644 index c92e1d57..00000000 --- a/metrics/docs/models/operations/getstakingmetricsrequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# GetStakingMetricsRequest - -## Example Usage - -```typescript -import { GetStakingMetricsRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetStakingMetricsRequest = { - metric: "validatorCount", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `metric` | [components.NetworkMetric](../../models/components/networkmetric.md) | :heavy_check_mark: | Which network level metric to fetch. | validatorCount | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 2160. | 10 | -| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | -| `subnetId` | *any* | :heavy_minus_sign: | The subnet ID to filter by. If not provided, then all subnets will be returned. | 11111111111111111111111111111111LpoYY | \ No newline at end of file diff --git a/metrics/docs/models/operations/getstakingmetricsresponse.md b/metrics/docs/models/operations/getstakingmetricsresponse.md deleted file mode 100644 index eebd6168..00000000 --- a/metrics/docs/models/operations/getstakingmetricsresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetStakingMetricsResponse - -## Example Usage - -```typescript -import { GetStakingMetricsResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetStakingMetricsResponse = { - result: { - results: [ - { - value: 6951.97, - timestamp: 4829.81, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `result` | [components.MetricsApiResponse](../../models/components/metricsapiresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/getteleportermetricsbychainglobals.md b/metrics/docs/models/operations/getteleportermetricsbychainglobals.md deleted file mode 100644 index c8a24af0..00000000 --- a/metrics/docs/models/operations/getteleportermetricsbychainglobals.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTeleporterMetricsByChainGlobals - -## Example Usage - -```typescript -import { GetTeleporterMetricsByChainGlobals } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetTeleporterMetricsByChainGlobals = { - chainId: "43114", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain id, chain alias, or blockchain id. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getteleportermetricsbychainrequest.md b/metrics/docs/models/operations/getteleportermetricsbychainrequest.md deleted file mode 100644 index 0c9977cc..00000000 --- a/metrics/docs/models/operations/getteleportermetricsbychainrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTeleporterMetricsByChainRequest - -## Example Usage - -```typescript -import { GetTeleporterMetricsByChainRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetTeleporterMetricsByChainRequest = { - metric: "teleporterSourceTxnCount", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `metric` | [components.TeleporterMetric](../../models/components/teleportermetric.md) | :heavy_check_mark: | Which chain level teleporter metric to fetch. | teleporterSourceTxnCount | -| `chainId` | *string* | :heavy_minus_sign: | A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. | 43114 | \ No newline at end of file diff --git a/metrics/docs/models/operations/gettotall1validatormetricsmetric.md b/metrics/docs/models/operations/gettotall1validatormetricsmetric.md deleted file mode 100644 index 60ab0874..00000000 --- a/metrics/docs/models/operations/gettotall1validatormetricsmetric.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTotalL1ValidatorMetricsMetric - -Which network level metric to fetch for L1 validator. - -## Example Usage - -```typescript -import { GetTotalL1ValidatorMetricsMetric } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetTotalL1ValidatorMetricsMetric = "totalValidatorFeesDaily"; -``` - -## Values - -```typescript -"totalCumulativeFeesDaily" | "totalValidatorFeesDaily" | "totalPayingValidatorsDaily" -``` \ No newline at end of file diff --git a/metrics/docs/models/operations/gettotall1validatormetricsrequest.md b/metrics/docs/models/operations/gettotall1validatormetricsrequest.md deleted file mode 100644 index 78cf8428..00000000 --- a/metrics/docs/models/operations/gettotall1validatormetricsrequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetTotalL1ValidatorMetricsRequest - -## Example Usage - -```typescript -import { GetTotalL1ValidatorMetricsRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetTotalL1ValidatorMetricsRequest = { - metric: "totalValidatorFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `metric` | [operations.GetTotalL1ValidatorMetricsMetric](../../models/operations/gettotall1validatormetricsmetric.md) | :heavy_check_mark: | Which network level metric to fetch for L1 validator. | totalValidatorFeesDaily | -| `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 | \ No newline at end of file diff --git a/metrics/docs/models/operations/getvalidatorsbydaterangerequest.md b/metrics/docs/models/operations/getvalidatorsbydaterangerequest.md deleted file mode 100644 index 2eef580c..00000000 --- a/metrics/docs/models/operations/getvalidatorsbydaterangerequest.md +++ /dev/null @@ -1,26 +0,0 @@ -# GetValidatorsByDateRangeRequest - -## Example Usage - -```typescript -import { GetValidatorsByDateRangeRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetValidatorsByDateRangeRequest = { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - subnetId: "11111111111111111111111111111111LpoYY", - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `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 | -| `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. The minimum page size is 1. The maximum pageSize is 5000. | 10 | -| `subnetId` | *string* | :heavy_check_mark: | The subnet ID to filter by. | 11111111111111111111111111111111LpoYY | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/metrics/docs/models/operations/getvalidatorsbydaterangeresponse.md b/metrics/docs/models/operations/getvalidatorsbydaterangeresponse.md deleted file mode 100644 index 869b3133..00000000 --- a/metrics/docs/models/operations/getvalidatorsbydaterangeresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetValidatorsByDateRangeResponse - -## Example Usage - -```typescript -import { GetValidatorsByDateRangeResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: GetValidatorsByDateRangeResponse = { - result: { - addresses: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `result` | [components.PChainLookingGlassResponse](../../models/components/pchainlookingglassresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/models/operations/listchainsrequest.md b/metrics/docs/models/operations/listchainsrequest.md deleted file mode 100644 index d5a08f56..00000000 --- a/metrics/docs/models/operations/listchainsrequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListChainsRequest - -## Example Usage - -```typescript -import { ListChainsRequest } from "@avalanche-sdk/metrics/models/operations"; - -let value: ListChainsRequest = { - network: "mainnet", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `pageToken` | *string* | :heavy_minus_sign: | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | | -| `network` | [components.Network](../../models/components/network.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet | \ No newline at end of file diff --git a/metrics/docs/models/operations/listchainsresponse.md b/metrics/docs/models/operations/listchainsresponse.md deleted file mode 100644 index 4c856e5f..00000000 --- a/metrics/docs/models/operations/listchainsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListChainsResponse - -## Example Usage - -```typescript -import { ListChainsResponse } from "@avalanche-sdk/metrics/models/operations"; - -let value: ListChainsResponse = { - result: { - chains: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `result` | [components.ListChainsResponse](../../models/components/listchainsresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/metrics/docs/sdks/avalanche/README.md b/metrics/docs/sdks/avalanche/README.md deleted file mode 100644 index 0468f089..00000000 --- a/metrics/docs/sdks/avalanche/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Avalanche SDK - -## Overview - -Metrics API: The Metrics API provides metrics and analytics of on-chain activity. The API is in Beta and may be subject to change.

If you have feedback or feature requests for the API, please submit them here. Bug reports can be submitted here, and any potential security issues can be reported here. - -### Available Operations diff --git a/metrics/docs/sdks/chains/README.md b/metrics/docs/sdks/chains/README.md deleted file mode 100644 index 7f62fc14..00000000 --- a/metrics/docs/sdks/chains/README.md +++ /dev/null @@ -1,725 +0,0 @@ -# Chains -(*metrics.chains*) - -## Overview - -### Available Operations - -* [list](#list) - Get a list of supported blockchains -* [get](#get) - Get chain information for supported blockchain -* [getMetrics](#getmetrics) - Get metrics for EVM chains -* [getTeleporterMetrics](#getteleportermetrics) - Get teleporter metrics for EVM chains -* [getRollingWindowMetrics](#getrollingwindowmetrics) - Get rolling window metrics for EVM chains -* [listNftHolders](#listnftholders) - Get NFT holders by contract address -* [listTokenHoldersAboveThreshold](#listtokenholdersabovethreshold) - Get addresses by balance over time -* [listBTCbBridgersAboveThreshold](#listbtcbbridgersabovethreshold) - Get addresses by BTCb bridged balance - -## list - -Get a list of Metrics API supported blockchains. This endpoint is paginated and supports a maximum page size of 10000. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.chains.list({ - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsList } from "@avalanche-sdk/metrics/funcs/metricsChainsList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsChainsList(avalanche, { - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsChainsList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListChainsRequest](../../models/operations/listchainsrequest.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. | - -### Response - -**Promise\<[operations.ListChainsResponse](../../models/operations/listchainsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Get chain information for Metrics API supported blockchain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.get({}); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsGet } from "@avalanche-sdk/metrics/funcs/metricsChainsGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsGet(avalanche, {}); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsChainsGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetChainRequest](../../models/operations/getchainrequest.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. | - -### Response - -**Promise\<[components.Chain](../../models/components/chain.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getMetrics - -EVM chain metrics are available for all Avalanche L1s on _Mainnet_ and _Fuji_ (testnet). You can request metrics by EVM chain ID. See the `/chains` endpoint for all supported chains. - -All metrics are updated several times every hour. Each metric data point has a `value` and `timestamp` (Unix timestamp in seconds). All metric values include data within the duration of the associated timestamp plus the requested `timeInterval`. All timestamps are fixed to the hour. When requesting a timeInterval of **day**, **week**, or **month**, the timestamp will be 0:00 UTC of the day, Monday of the week, or first day of the month, respectively. The latest data point in any response may change on each update. - -### Metrics - -activeAddresses: The number of distinct addresses seen within the selected `timeInterval` starting at the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. - -activeSenders: This metric follows the same structure as activeAddresses, but instead only counts addresses that appear in the “from” field of the respective transaction or transfer log event. - -cumulativeTxCount: The cumulative transaction count from genesis up until 24 hours after the timestamp. This aggregation can be considered a “rolling sum” of the transaction count metric (txCount). Only `timeInterval=day` supported. - -cumulativeAddresses: The cumulative count of unique addresses from genesis up until 24 hours after the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. Only `timeInterval=day` supported. - -cumulativeContracts: The cumulative count of contracts created from genesis up until the timestamp. Contracts are counted by looking for the CREATE, CREATE2, and CREATE3 call types in all transaction traces (aka internal transactions). Only `timeInterval=day` supported. - -cumulativeDeployers: The cumulative count of unique contract deployers from genesis up until 24 hours after the timestamp. Deployers counted are those that appear in the “from” field of transaction traces with the CREATE, CREATE2, and CREATE3 call types. Only `timeInterval=day` supported. - -gasUsed: The amount of gas used by transactions within the requested timeInterval starting at the timestamp. - -txCount: The amount of transactions within the requested timeInterval starting at the timestamp. - -avgGps: The average Gas used Per Second (GPS) within the day beginning at the timestamp. The average is calculated by taking the sum of gas used by all blocks within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - -maxGps: The max Gas used Per Second (GPS) measured within the day beginning at the timestamp. Each GPS data point is calculated using the gas used in a single block divided by the time since the last block. Only `timeInterval=day` supported. - -avgTps: The average Transactions Per Second (TPS) within the day beginning at the timestamp. The average is calculated by taking the sum of transactions within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - -maxTps: The max Transactions Per Second (TPS) measured within the day beginning at the timestamp. Each TPS data point is calculated by taking the number of transactions in a single block and dividing it by the time since the last block. Only `timeInterval=day` supported. - -avgGasPrice: The average gas price within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - -maxGasPrice: The max gas price seen within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - -feesPaid: The sum of transaction fees paid within the day beginning at the timestamp. The fee is calculated as the gas used multiplied by the gas price as reported in all transaction receipts. Only `timeInterval=day` supported. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.getMetrics({ - metric: "activeAddresses", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - timeInterval: "day", - pageSize: 10, - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsGetMetrics } from "@avalanche-sdk/metrics/funcs/metricsChainsGetMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsGetMetrics(avalanche, { - metric: "activeAddresses", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - timeInterval: "day", - pageSize: 10, - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsChainsGetMetrics failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetEvmChainMetricsRequest](../../models/operations/getevmchainmetricsrequest.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. | - -### Response - -**Promise\<[operations.GetEvmChainMetricsResponse](../../models/operations/getevmchainmetricsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getTeleporterMetrics - -Gets teleporter metrics for an EVM chain. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.getTeleporterMetrics({ - metric: "teleporterSourceTxnCount", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsGetTeleporterMetrics } from "@avalanche-sdk/metrics/funcs/metricsChainsGetTeleporterMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsGetTeleporterMetrics(avalanche, { - metric: "teleporterSourceTxnCount", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsChainsGetTeleporterMetrics failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTeleporterMetricsByChainRequest](../../models/operations/getteleportermetricsbychainrequest.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. | - -### Response - -**Promise\<[components.TeleporterChainMetricsApiResponse](../../models/components/teleporterchainmetricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getRollingWindowMetrics - -Gets the rolling window metrics for an EVM chain for the last hour, day, month, year, and all time. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.getRollingWindowMetrics({ - metric: "txCount", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsGetRollingWindowMetrics } from "@avalanche-sdk/metrics/funcs/metricsChainsGetRollingWindowMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsGetRollingWindowMetrics(avalanche, { - metric: "txCount", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsChainsGetRollingWindowMetrics failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetEvmChainRollingWindowMetricsRequest](../../models/operations/getevmchainrollingwindowmetricsrequest.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. | - -### Response - -**Promise\<[components.RollingWindowMetricsApiResponse](../../models/components/rollingwindowmetricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listNftHolders - -Get list of NFT holders and number of NFTs held by contract address. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.listNftHolders({ - pageSize: 10, - address: "0x7a420AEFF902AAa2c85a190D7B91Ce8BEFffFE14", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsListNftHolders } from "@avalanche-sdk/metrics/funcs/metricsChainsListNftHolders.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsListNftHolders(avalanche, { - pageSize: 10, - address: "0x7a420AEFF902AAa2c85a190D7B91Ce8BEFffFE14", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsChainsListNftHolders failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetNftHoldersByContractAddressRequest](../../models/operations/getnftholdersbycontractaddressrequest.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. | - -### Response - -**Promise\<[operations.GetNftHoldersByContractAddressResponse](../../models/operations/getnftholdersbycontractaddressresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listTokenHoldersAboveThreshold - -Get list of addresses and their latest balances that have held more than a certain threshold of a given token during the specified time frame. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - chainId: "43114", -}); - -async function run() { - const result = await avalanche.metrics.chains.listTokenHoldersAboveThreshold({ - threshold: "1000000", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsListTokenHoldersAboveThreshold } from "@avalanche-sdk/metrics/funcs/metricsChainsListTokenHoldersAboveThreshold.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - chainId: "43114", -}); - -async function run() { - const res = await metricsChainsListTokenHoldersAboveThreshold(avalanche, { - threshold: "1000000", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsChainsListTokenHoldersAboveThreshold failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAddressesByBalanceOverTimeRequest](../../models/operations/getaddressesbybalanceovertimerequest.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. | - -### Response - -**Promise\<[operations.GetAddressesByBalanceOverTimeResponse](../../models/operations/getaddressesbybalanceovertimeresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## listBTCbBridgersAboveThreshold - -Get list of addresses and their net bridged amounts that have bridged more than a certain threshold. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.chains.listBTCbBridgersAboveThreshold({ - threshold: "1000000", - pageSize: 10, - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsChainsListBTCbBridgersAboveThreshold } from "@avalanche-sdk/metrics/funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsChainsListBTCbBridgersAboveThreshold(avalanche, { - threshold: "1000000", - pageSize: 10, - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsChainsListBTCbBridgersAboveThreshold failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAddressesByBtcbBridgedRequest](../../models/operations/getaddressesbybtcbbridgedrequest.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. | - -### Response - -**Promise\<[operations.GetAddressesByBtcbBridgedResponse](../../models/operations/getaddressesbybtcbbridgedresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/metrics/docs/sdks/l1validators/README.md b/metrics/docs/sdks/l1validators/README.md deleted file mode 100644 index 2f81e932..00000000 --- a/metrics/docs/sdks/l1validators/README.md +++ /dev/null @@ -1,341 +0,0 @@ -# L1Validators -(*metrics.l1Validators*) - -## Overview - -### Available Operations - -* [listMetrics](#listmetrics) - Get given metric for all validators -* [getMetricsByValidationId](#getmetricsbyvalidationid) - Get metric values with given validation id and timestamp range -* [getMetricsByNodeId](#getmetricsbynodeid) - Get metric values with given node id and timestamp range -* [getMetricsBySubnetId](#getmetricsbysubnetid) - Get metric values with given subnet ID and timestamp range - -## listMetrics - -Get given metric's value for all validators. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.l1Validators.listMetrics({ - metric: "totalValidatorFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsL1ValidatorsListMetrics } from "@avalanche-sdk/metrics/funcs/metricsL1ValidatorsListMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsL1ValidatorsListMetrics(avalanche, { - metric: "totalValidatorFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsL1ValidatorsListMetrics failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetTotalL1ValidatorMetricsRequest](../../models/operations/gettotall1validatormetricsrequest.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. | - -### Response - -**Promise\<[components.MetricsApiResponse](../../models/components/metricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getMetricsByValidationId - -Get given metric values for a given validation id with or without a timestamp range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.l1Validators.getMetricsByValidationId({ - l1ValidationId: "2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG", - metric: "validationFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsL1ValidatorsGetMetricsByValidationId } from "@avalanche-sdk/metrics/funcs/metricsL1ValidatorsGetMetricsByValidationId.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsL1ValidatorsGetMetricsByValidationId(avalanche, { - l1ValidationId: "2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG", - metric: "validationFeesDaily", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsL1ValidatorsGetMetricsByValidationId failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetricsByValidationIdRequest](../../models/operations/getmetricsbyvalidationidrequest.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. | - -### Response - -**Promise\<[components.MetricsApiResponse](../../models/components/metricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getMetricsByNodeId - -Get given metric values for a given node id with or without a timestamp range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.l1Validators.getMetricsByNodeId({ - metric: "perNodeDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - nodeId: "NodeID-JQPadXEMWtRtJyXrisyDNWuXKSjSf9D36", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsL1ValidatorsGetMetricsByNodeId } from "@avalanche-sdk/metrics/funcs/metricsL1ValidatorsGetMetricsByNodeId.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsL1ValidatorsGetMetricsByNodeId(avalanche, { - metric: "perNodeDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - nodeId: "NodeID-JQPadXEMWtRtJyXrisyDNWuXKSjSf9D36", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsL1ValidatorsGetMetricsByNodeId failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetricsByNodeIdRequest](../../models/operations/getmetricsbynodeidrequest.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. | - -### Response - -**Promise\<[components.MetricsApiResponse](../../models/components/metricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getMetricsBySubnetId - -Get given metric values for a given subnet ID with or without a timestamp range. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.l1Validators.getMetricsBySubnetId({ - metric: "perSubnetDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - subnetId: "eYwmVU67LmSfZb1RwqCMhBYkFyG8ftxn6jAwqzFmxC9STBWLC", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsL1ValidatorsGetMetricsBySubnetId } from "@avalanche-sdk/metrics/funcs/metricsL1ValidatorsGetMetricsBySubnetId.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsL1ValidatorsGetMetricsBySubnetId(avalanche, { - metric: "perSubnetDailyFeesPaid", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - subnetId: "eYwmVU67LmSfZb1RwqCMhBYkFyG8ftxn6jAwqzFmxC9STBWLC", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsL1ValidatorsGetMetricsBySubnetId failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetricsBySubnetIdRequest](../../models/operations/getmetricsbysubnetidrequest.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. | - -### Response - -**Promise\<[components.MetricsApiResponse](../../models/components/metricsapiresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/metrics/docs/sdks/metrics/README.md b/metrics/docs/sdks/metrics/README.md deleted file mode 100644 index 9382b267..00000000 --- a/metrics/docs/sdks/metrics/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# Metrics -(*metrics*) - -## Overview - -### Available Operations - -* [healthCheck](#healthcheck) - Get the health of the service - -## healthCheck - -Check the health of the service. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.healthCheck(); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsHealthCheck } from "@avalanche-sdk/metrics/funcs/metricsHealthCheck.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsHealthCheck(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("metricsHealthCheck failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | - -### Response - -**Promise\<[components.HealthCheckResultDto](../../models/components/healthcheckresultdto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/metrics/docs/sdks/networks/README.md b/metrics/docs/sdks/networks/README.md deleted file mode 100644 index 1cad7587..00000000 --- a/metrics/docs/sdks/networks/README.md +++ /dev/null @@ -1,99 +0,0 @@ -# Networks -(*metrics.networks*) - -## Overview - -### Available Operations - -* [getStakingMetrics](#getstakingmetrics) - Get staking metrics for a given subnet - -## getStakingMetrics - -Gets staking metrics for a given subnet. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche({ - network: "mainnet", -}); - -async function run() { - const result = await avalanche.metrics.networks.getStakingMetrics({ - metric: "validatorCount", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsNetworksGetStakingMetrics } from "@avalanche-sdk/metrics/funcs/metricsNetworksGetStakingMetrics.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore({ - network: "mainnet", -}); - -async function run() { - const res = await metricsNetworksGetStakingMetrics(avalanche, { - metric: "validatorCount", - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsNetworksGetStakingMetrics failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetStakingMetricsRequest](../../models/operations/getstakingmetricsrequest.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. | - -### Response - -**Promise\<[operations.GetStakingMetricsResponse](../../models/operations/getstakingmetricsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/metrics/docs/sdks/subnets/README.md b/metrics/docs/sdks/subnets/README.md deleted file mode 100644 index 697987f1..00000000 --- a/metrics/docs/sdks/subnets/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# Subnets -(*metrics.subnets*) - -## Overview - -### Available Operations - -* [getValidators](#getvalidators) - Get addresses running validators during a given time frame - -## getValidators - -Get list of addresses and AddValidatorTx timestamps set to receive awards for validation periods during the specified time frame. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.metrics.subnets.getValidators({ - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - subnetId: "11111111111111111111111111111111LpoYY", - network: "mainnet", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/metrics/core.js"; -import { metricsSubnetsGetValidators } from "@avalanche-sdk/metrics/funcs/metricsSubnetsGetValidators.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await metricsSubnetsGetValidators(avalanche, { - startTimestamp: 1689541049, - endTimestamp: 1689800249, - pageSize: 10, - subnetId: "11111111111111111111111111111111LpoYY", - network: "mainnet", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("metricsSubnetsGetValidators failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetValidatorsByDateRangeRequest](../../models/operations/getvalidatorsbydaterangerequest.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. | - -### Response - -**Promise\<[operations.GetValidatorsByDateRangeResponse](../../models/operations/getvalidatorsbydaterangeresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/metrics/eslint.config.mjs b/metrics/eslint.config.mjs deleted file mode 100644 index 67bccfec..00000000 --- a/metrics/eslint.config.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import tseslint from "typescript-eslint"; - -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { files: ["**/*.{js,mjs,cjs,ts}"] }, - { languageOptions: { globals: globals.browser } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - { - rules: { - "no-constant-condition": "off", - "no-useless-escape": "off", - // Handled by typescript compiler - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-empty-object-type": "off", - "@typescript-eslint/no-namespace": "off", - }, - }, -]; diff --git a/metrics/examples/.env.template b/metrics/examples/.env.template deleted file mode 100644 index ed3446e4..00000000 --- a/metrics/examples/.env.template +++ /dev/null @@ -1,3 +0,0 @@ -# @avalanche-sdk/metrics SDK Environment Variables -# Copy this file to .env and fill in your actual values -# DO NOT commit the .env file to version control diff --git a/metrics/examples/README.md b/metrics/examples/README.md deleted file mode 100644 index 545581f1..00000000 --- a/metrics/examples/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# @avalanche-sdk/metrics Examples - -This directory contains example scripts demonstrating how to use the @avalanche-sdk/metrics SDK. - -## Prerequisites - -- Node.js (v18 or higher) -- npm - -## Setup - -1. Copy `.env.template` to `.env`: - ```bash - cp .env.template .env - ``` - -2. Edit `.env` and add your actual credentials - -## Running the Examples - -To run an example file from the examples directory: - -```bash -npm run build && npx tsx example.ts -``` - -## Creating new examples - -Duplicate an existing example file, they won't be overwritten by the generation process. - - diff --git a/metrics/examples/metricsHealthCheck.example.ts b/metrics/examples/metricsHealthCheck.example.ts deleted file mode 100644 index 6abb7dba..00000000 --- a/metrics/examples/metricsHealthCheck.example.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import dotenv from "dotenv"; -dotenv.config(); -/** - * Example usage of the @avalanche-sdk/metrics SDK - * - * To run this example from the examples directory: - * npm run build && npx tsx metricsHealthCheck.ts - */ - -import { Avalanche } from "@avalanche-sdk/metrics"; - -const avalanche = new Avalanche(); - -async function main() { - const result = await avalanche.healthCheck(); - - console.log(result); -} - -main().catch(console.error); diff --git a/metrics/examples/package-lock.json b/metrics/examples/package-lock.json deleted file mode 100644 index e7e077ba..00000000 --- a/metrics/examples/package-lock.json +++ /dev/null @@ -1,628 +0,0 @@ -{ - "name": "@avalanche-sdk/metrics-examples", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/metrics-examples", - "version": "1.0.0", - "dependencies": { - "@avalanche-sdk/metrics": "file:.." - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - } - }, - "..": { - "name": "@avalanche-sdk/metrics", - "version": "0.4.3", - "dependencies": { - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@avalanche-sdk/metrics": { - "resolved": "..", - "link": true - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", - "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz", - "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", - "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz", - "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", - "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", - "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", - "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", - "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", - "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", - "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", - "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", - "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", - "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", - "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", - "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", - "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", - "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", - "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", - "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", - "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", - "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", - "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", - "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", - "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", - "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", - "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@types/node": { - "version": "20.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.8.tgz", - "integrity": "sha512-HzbgCY53T6bfu4tT7Aq3TvViJyHjLjPNaAS3HOuMc9pw97KHsUtXNX4L+wu59g1WnjsZSko35MbEqnO58rihhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/dotenv": { - "version": "16.6.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", - "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/esbuild": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz", - "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.6", - "@esbuild/android-arm": "0.25.6", - "@esbuild/android-arm64": "0.25.6", - "@esbuild/android-x64": "0.25.6", - "@esbuild/darwin-arm64": "0.25.6", - "@esbuild/darwin-x64": "0.25.6", - "@esbuild/freebsd-arm64": "0.25.6", - "@esbuild/freebsd-x64": "0.25.6", - "@esbuild/linux-arm": "0.25.6", - "@esbuild/linux-arm64": "0.25.6", - "@esbuild/linux-ia32": "0.25.6", - "@esbuild/linux-loong64": "0.25.6", - "@esbuild/linux-mips64el": "0.25.6", - "@esbuild/linux-ppc64": "0.25.6", - "@esbuild/linux-riscv64": "0.25.6", - "@esbuild/linux-s390x": "0.25.6", - "@esbuild/linux-x64": "0.25.6", - "@esbuild/netbsd-arm64": "0.25.6", - "@esbuild/netbsd-x64": "0.25.6", - "@esbuild/openbsd-arm64": "0.25.6", - "@esbuild/openbsd-x64": "0.25.6", - "@esbuild/openharmony-arm64": "0.25.6", - "@esbuild/sunos-x64": "0.25.6", - "@esbuild/win32-arm64": "0.25.6", - "@esbuild/win32-ia32": "0.25.6", - "@esbuild/win32-x64": "0.25.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-tsconfig": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", - "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/tsx": { - "version": "4.20.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz", - "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.25.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - } - } -} diff --git a/metrics/examples/package.json b/metrics/examples/package.json deleted file mode 100644 index a3db2f9d..00000000 --- a/metrics/examples/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@avalanche-sdk/metrics-examples", - "version": "1.0.0", - "private": true, - "scripts": { - "build:parent": "cd .. && npm i && npm run build && cd -", - "build:examples": "npm i", - "build": "npm run build:parent && npm run build:examples" - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - }, - "dependencies": { - "@avalanche-sdk/metrics": "file:.." - } -} \ No newline at end of file diff --git a/metrics/jsr.json b/metrics/jsr.json deleted file mode 100644 index 74700b6b..00000000 --- a/metrics/jsr.json +++ /dev/null @@ -1,27 +0,0 @@ - - -{ - "name": "@avalanche-sdk/metrics", - "version": "0.4.3", - "exports": { - ".": "./src/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./lib/config": "./src/lib/config.ts", - "./lib/http": "./src/lib/http.ts", - "./lib/retries": "./src/lib/retries.ts", - "./lib/sdks": "./src/lib/sdks.ts", - "./types": "./src/types/index.ts" - }, - "publish": { - "include": [ - "LICENSE", - "README.md", - "RUNTIMES.md", - "USAGE.md", - "jsr.json", - "src/**/*.ts" - ] - } -} diff --git a/metrics/overlays/overlay.yaml b/metrics/overlays/overlay.yaml deleted file mode 100644 index d247db37..00000000 --- a/metrics/overlays/overlay.yaml +++ /dev/null @@ -1,18 +0,0 @@ -overlay: 1.0.0 -info: - title: Overlay to change the merged OpenAPI Spec - version: 1.0.0 -actions: - - target: $["paths"]["/v2/chains"]["get"][?(@['servers'][0]['url'] == 'https://popsicle-api.avax.network' || @['servers'][0]['url'] == 'https://metrics.avax.network')]["responses"]["200"]["content"]["application/json"]["schema"] - description: Change the response schema for the /v2/chains endpoint in popsicle to avoid a merger conflict with Popsicle API Spec - update: - $ref: "#/components/schemas/MetricsListChainsResponse" - - target: $.paths.*.*[?(@.deprecated == true)] - description: Remove all deprecated paths - remove: true - - target: $.paths['/v2/lookingGlass/compositeQuery'] - description: Remove the /v2/lookingGlass/compositeQuery path - remove: true - - target: $.paths['/v1/lookingGlass/compositeQuery'] - description: Remove the /v1/lookingGlass/compositeQuery path - remove: true \ No newline at end of file diff --git a/metrics/package-lock.json b/metrics/package-lock.json deleted file mode 100644 index 12baf01f..00000000 --- a/metrics/package-lock.json +++ /dev/null @@ -1,6433 +0,0 @@ -{ - "name": "@avalanche-sdk/metrics", - "version": "0.4.3", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/metrics", - "version": "0.4.3", - "dependencies": { - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.0.tgz", - "integrity": "sha512-RoV8Xs9eNwiDvhv7M+xcL4PWyRyIXRY/FLp3buU4h1EYfdF7unWUy3dOjPqb3C7rMUewIcqwW850PgS8h1o1yg==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "dependencies": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": { - "version": "1.53.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", - "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "dependencies": { - "mime-db": "^1.53.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "dependencies": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "cpu": [ - "aarch64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "node_modules/@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "node_modules/@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "node_modules/@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "dependencies": { - "undici-types": "~6.20.0" - } - }, - "node_modules/@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "node_modules/@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/body-parser/node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "cpu": [ - "arm64", - "x64", - "aarch64" - ], - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "os": [ - "darwin", - "linux", - "win32" - ], - "bin": { - "bun": "bin/bun.exe", - "bunx": "bin/bunx.exe" - }, - "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "node_modules/bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "dependencies": { - "eventsource-parser": "^3.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": "^4.11 || 5 || ^5.0.0-beta.1" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "dependencies": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - }, - "engines": { - "node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "dependencies": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/router/node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, - "engines": { - "node": ">=16" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/send/node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "dependencies": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - }, - "bin": { - "sync-content": "dist/mjs/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "dependencies": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "bin": { - "tshy": "dist/esm/index.js" - }, - "engines": { - "node": "16 >=16.17 || 18 >=18.15.0 || >=20.6.1" - } - }, - "node_modules/tshy/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/tshy/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true, - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/tshy/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "3.25.67", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", - "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-to-json-schema": { - "version": "3.24.3", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", - "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", - "dev": true, - "peerDependencies": { - "zod": "^3.24.1" - } - } - }, - "dependencies": { - "@eslint-community/eslint-utils": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.0.tgz", - "integrity": "sha512-RoV8Xs9eNwiDvhv7M+xcL4PWyRyIXRY/FLp3buU4h1EYfdF7unWUy3dOjPqb3C7rMUewIcqwW850PgS8h1o1yg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.4.3" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - } - } - }, - "@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true - }, - "@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "requires": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - } - }, - "@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true - }, - "@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.15" - } - }, - "@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true - } - } - }, - "@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true - }, - "@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true - }, - "@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "requires": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - } - }, - "@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true - }, - "@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "requires": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "dependencies": { - "@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true - } - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - } - }, - "@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "dependencies": { - "accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "requires": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - } - }, - "body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "requires": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "dependencies": { - "qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "requires": { - "side-channel": "^1.1.0" - } - } - } - }, - "content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true - }, - "express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "requires": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "requires": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - } - }, - "fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true - }, - "iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true - }, - "merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true - }, - "mime-db": { - "version": "1.53.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", - "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", - "dev": true - }, - "mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "requires": { - "mime-db": "^1.53.0" - } - }, - "negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true - }, - "send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "requires": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "dependencies": { - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - } - } - }, - "serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "requires": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - } - }, - "type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - } - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "dev": true, - "optional": true - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true - }, - "@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "requires": { - "undici-types": "~6.20.0" - } - }, - "@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "requires": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "requires": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - } - }, - "@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - } - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true - }, - "body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "dev": true, - "requires": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true - }, - "cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "requires": { - "ms": "^2.1.3" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - } - }, - "eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true - }, - "espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "requires": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - } - }, - "esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true - }, - "eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "requires": { - "eventsource-parser": "^3.0.0" - } - }, - "eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true - }, - "express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "requires": {} - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "requires": { - "flat-cache": "^4.0.0" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "requires": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - } - }, - "flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "requires": { - "function-bind": "^1.1.2" - } - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "requires": { - "json-buffer": "3.0.1" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true - }, - "merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true - }, - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true - }, - "object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - } - }, - "path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true - }, - "polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - } - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "requires": { - "side-channel": "^1.0.6" - } - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "requires": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - } - }, - "reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true - }, - "rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "requires": { - "glob": "^10.3.7" - } - }, - "router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "requires": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "dependencies": { - "path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true - } - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true - }, - "send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true - } - } - }, - "serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "requires": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - } - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - } - }, - "side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - } - }, - "side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - } - }, - "side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - } - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - } - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "requires": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true - }, - "ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "requires": {} - }, - "tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "requires": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true - }, - "typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "requires": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - } - }, - "undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true - }, - "walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - }, - "zod": { - "version": "3.25.67", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", - "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==" - }, - "zod-to-json-schema": { - "version": "3.24.3", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", - "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", - "dev": true, - "requires": {} - } - } -} diff --git a/metrics/package.json b/metrics/package.json deleted file mode 100644 index c0abcdaf..00000000 --- a/metrics/package.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "name": "@avalanche-sdk/metrics", - "version": "0.4.3", - "author": "Avacloud", - "license": "BSD-3-Clause", - "type": "module", - "bin": { - "mcp": "bin/mcp-server.js" - }, - "tshy": { - "sourceDialects": [ - "@avalanche-sdk/metrics/source" - ], - "exports": { - ".": "./src/index.ts", - "./package.json": "./package.json", - "./types": "./src/types/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./*.js": "./src/*.ts", - "./*": "./src/*.ts" - } - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/ava-labs/avalanche-sdk-typescript.git", - "directory": "metrics" - }, - "scripts": { - "lint": "eslint --cache --max-warnings=0 src", - "build:mcp": "bun src/mcp-server/build.mts", - "build": "npm run build:mcp && tshy", - "prepublishOnly": "npm run build" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "dependencies": { - "zod": "^3.20.0" - }, - "exports": { - ".": { - "import": { - "@avalanche-sdk/metrics/source": "./src/index.ts", - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" - } - }, - "./package.json": "./package.json", - "./types": { - "import": { - "@avalanche-sdk/metrics/source": "./src/types/index.ts", - "types": "./dist/esm/types/index.d.ts", - "default": "./dist/esm/types/index.js" - }, - "require": { - "types": "./dist/commonjs/types/index.d.ts", - "default": "./dist/commonjs/types/index.js" - } - }, - "./models/errors": { - "import": { - "@avalanche-sdk/metrics/source": "./src/models/errors/index.ts", - "types": "./dist/esm/models/errors/index.d.ts", - "default": "./dist/esm/models/errors/index.js" - }, - "require": { - "types": "./dist/commonjs/models/errors/index.d.ts", - "default": "./dist/commonjs/models/errors/index.js" - } - }, - "./models/components": { - "import": { - "@avalanche-sdk/metrics/source": "./src/models/components/index.ts", - "types": "./dist/esm/models/components/index.d.ts", - "default": "./dist/esm/models/components/index.js" - }, - "require": { - "types": "./dist/commonjs/models/components/index.d.ts", - "default": "./dist/commonjs/models/components/index.js" - } - }, - "./models/operations": { - "import": { - "@avalanche-sdk/metrics/source": "./src/models/operations/index.ts", - "types": "./dist/esm/models/operations/index.d.ts", - "default": "./dist/esm/models/operations/index.js" - }, - "require": { - "types": "./dist/commonjs/models/operations/index.d.ts", - "default": "./dist/commonjs/models/operations/index.js" - } - }, - "./*.js": { - "import": { - "@avalanche-sdk/metrics/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - }, - "./*": { - "import": { - "@avalanche-sdk/metrics/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - } - }, - "main": "./dist/commonjs/index.js", - "types": "./dist/commonjs/index.d.ts", - "module": "./dist/esm/index.js" -} diff --git a/metrics/src/core.ts b/metrics/src/core.ts deleted file mode 100644 index 413ea3f4..00000000 --- a/metrics/src/core.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "./lib/sdks.js"; - -/** - * A minimal client to use when calling standalone SDK functions. Typically, an - * instance of this class would be instantiated once at the start of an - * application and passed around through some dependency injection mechanism to - * parts of an application that need to make SDK calls. - */ -export class AvalancheCore extends ClientSDK {} diff --git a/metrics/src/funcs/metricsChainsGet.ts b/metrics/src/funcs/metricsChainsGet.ts deleted file mode 100644 index 3f80b82a..00000000 --- a/metrics/src/funcs/metricsChainsGet.ts +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get chain information for supported blockchain - * - * @remarks - * Get chain information for Metrics API supported blockchain. - */ -export function metricsChainsGet( - client: AvalancheCore, - request: operations.GetChainRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.Chain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetChainRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.Chain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetChainRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v2/chains/{chainId}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getChain", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.Chain, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.Chain$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsChainsGetMetrics.ts b/metrics/src/funcs/metricsChainsGetMetrics.ts deleted file mode 100644 index 2ae2471d..00000000 --- a/metrics/src/funcs/metricsChainsGetMetrics.ts +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get metrics for EVM chains - * - * @remarks - * EVM chain metrics are available for all Avalanche L1s on _Mainnet_ and _Fuji_ (testnet). You can request metrics by EVM chain ID. See the `/chains` endpoint for all supported chains. - * - * All metrics are updated several times every hour. Each metric data point has a `value` and `timestamp` (Unix timestamp in seconds). All metric values include data within the duration of the associated timestamp plus the requested `timeInterval`. All timestamps are fixed to the hour. When requesting a timeInterval of **day**, **week**, or **month**, the timestamp will be 0:00 UTC of the day, Monday of the week, or first day of the month, respectively. The latest data point in any response may change on each update. - * - * ### Metrics - * - * activeAddresses: The number of distinct addresses seen within the selected `timeInterval` starting at the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. - * - * activeSenders: This metric follows the same structure as activeAddresses, but instead only counts addresses that appear in the “from” field of the respective transaction or transfer log event. - * - * cumulativeTxCount: The cumulative transaction count from genesis up until 24 hours after the timestamp. This aggregation can be considered a “rolling sum” of the transaction count metric (txCount). Only `timeInterval=day` supported. - * - * cumulativeAddresses: The cumulative count of unique addresses from genesis up until 24 hours after the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. Only `timeInterval=day` supported. - * - * cumulativeContracts: The cumulative count of contracts created from genesis up until the timestamp. Contracts are counted by looking for the CREATE, CREATE2, and CREATE3 call types in all transaction traces (aka internal transactions). Only `timeInterval=day` supported. - * - * cumulativeDeployers: The cumulative count of unique contract deployers from genesis up until 24 hours after the timestamp. Deployers counted are those that appear in the “from” field of transaction traces with the CREATE, CREATE2, and CREATE3 call types. Only `timeInterval=day` supported. - * - * gasUsed: The amount of gas used by transactions within the requested timeInterval starting at the timestamp. - * - * txCount: The amount of transactions within the requested timeInterval starting at the timestamp. - * - * avgGps: The average Gas used Per Second (GPS) within the day beginning at the timestamp. The average is calculated by taking the sum of gas used by all blocks within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - * - * maxGps: The max Gas used Per Second (GPS) measured within the day beginning at the timestamp. Each GPS data point is calculated using the gas used in a single block divided by the time since the last block. Only `timeInterval=day` supported. - * - * avgTps: The average Transactions Per Second (TPS) within the day beginning at the timestamp. The average is calculated by taking the sum of transactions within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - * - * maxTps: The max Transactions Per Second (TPS) measured within the day beginning at the timestamp. Each TPS data point is calculated by taking the number of transactions in a single block and dividing it by the time since the last block. Only `timeInterval=day` supported. - * - * avgGasPrice: The average gas price within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - * - * maxGasPrice: The max gas price seen within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - * - * feesPaid: The sum of transaction fees paid within the day beginning at the timestamp. The fee is calculated as the gas used multiplied by the gas price as reported in all transaction receipts. Only `timeInterval=day` supported. - */ -export function metricsChainsGetMetrics( - client: AvalancheCore, - request: operations.GetEvmChainMetricsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetEvmChainMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetEvmChainMetricsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetEvmChainMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetEvmChainMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/chains/{chainId}/metrics/{metric}")(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - "timeInterval": payload.timeInterval, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getEvmChainMetrics", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetEvmChainMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetEvmChainMetricsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetEvmChainMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsChainsGetMetrics( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsChainsGetRollingWindowMetrics.ts b/metrics/src/funcs/metricsChainsGetRollingWindowMetrics.ts deleted file mode 100644 index 8d28ce93..00000000 --- a/metrics/src/funcs/metricsChainsGetRollingWindowMetrics.ts +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get rolling window metrics for EVM chains - * - * @remarks - * Gets the rolling window metrics for an EVM chain for the last hour, day, month, year, and all time. - */ -export function metricsChainsGetRollingWindowMetrics( - client: AvalancheCore, - request: operations.GetEvmChainRollingWindowMetricsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.RollingWindowMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetEvmChainRollingWindowMetricsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.RollingWindowMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetEvmChainRollingWindowMetricsRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/chains/{chainId}/rollingWindowMetrics/{metric}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getEvmChainRollingWindowMetrics", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.RollingWindowMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.RollingWindowMetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsChainsGetTeleporterMetrics.ts b/metrics/src/funcs/metricsChainsGetTeleporterMetrics.ts deleted file mode 100644 index 4338412b..00000000 --- a/metrics/src/funcs/metricsChainsGetTeleporterMetrics.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get teleporter metrics for EVM chains - * - * @remarks - * Gets teleporter metrics for an EVM chain. - */ -export function metricsChainsGetTeleporterMetrics( - client: AvalancheCore, - request: operations.GetTeleporterMetricsByChainRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.TeleporterChainMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTeleporterMetricsByChainRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.TeleporterChainMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetTeleporterMetricsByChainRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/chains/{chainId}/teleporterMetrics/{metric}")( - pathParams, - ); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTeleporterMetricsByChain", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.TeleporterChainMetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.TeleporterChainMetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsChainsList.ts b/metrics/src/funcs/metricsChainsList.ts deleted file mode 100644 index cc7eaf52..00000000 --- a/metrics/src/funcs/metricsChainsList.ts +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get a list of supported blockchains - * - * @remarks - * Get a list of Metrics API supported blockchains. This endpoint is paginated and supports a maximum page size of 10000. - */ -export function metricsChainsList( - client: AvalancheCore, - request: operations.ListChainsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListChainsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListChainsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v2/chains")(); - - const query = encodeFormQuery({ - "network": payload.network, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listChains", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListChainsResponse$inboundSchema, { key: "Result" }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListChainsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsChainsList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts b/metrics/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts deleted file mode 100644 index 62f2de29..00000000 --- a/metrics/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get addresses by BTCb bridged balance - * - * @remarks - * Get list of addresses and their net bridged amounts that have bridged more than a certain threshold. - */ -export function metricsChainsListBTCbBridgersAboveThreshold( - client: AvalancheCore, - request: operations.GetAddressesByBtcbBridgedRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetAddressesByBtcbBridgedResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAddressesByBtcbBridgedRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetAddressesByBtcbBridgedResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetAddressesByBtcbBridgedRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v2/chains/43114/btcb/bridged:getAddresses")(); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "threshold": payload.threshold, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAddressesByBtcbBridged", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetAddressesByBtcbBridgedResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetAddressesByBtcbBridgedResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetAddressesByBtcbBridgedResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsChainsListBTCbBridgersAboveThreshold( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsChainsListNftHolders.ts b/metrics/src/funcs/metricsChainsListNftHolders.ts deleted file mode 100644 index 13edc4cf..00000000 --- a/metrics/src/funcs/metricsChainsListNftHolders.ts +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get NFT holders by contract address - * - * @remarks - * Get list of NFT holders and number of NFTs held by contract address. - */ -export function metricsChainsListNftHolders( - client: AvalancheCore, - request: operations.GetNftHoldersByContractAddressRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetNftHoldersByContractAddressResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetNftHoldersByContractAddressRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetNftHoldersByContractAddressResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetNftHoldersByContractAddressRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc( - "/v2/chains/{chainId}/contracts/{address}/nfts:listHolders", - )(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getNftHoldersByContractAddress", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetNftHoldersByContractAddressResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.GetNftHoldersByContractAddressResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetNftHoldersByContractAddressResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsChainsListNftHolders( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts b/metrics/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts deleted file mode 100644 index 67901944..00000000 --- a/metrics/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get addresses by balance over time - * - * @remarks - * Get list of addresses and their latest balances that have held more than a certain threshold of a given token during the specified time frame. - */ -export function metricsChainsListTokenHoldersAboveThreshold( - client: AvalancheCore, - request: operations.GetAddressesByBalanceOverTimeRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetAddressesByBalanceOverTimeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAddressesByBalanceOverTimeRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetAddressesByBalanceOverTimeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetAddressesByBalanceOverTimeRequest$outboundSchema.parse( - value, - ), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - address: encodeSimple("address", payload.address, { - explode: false, - charEncoding: "percent", - }), - chainId: encodeSimple( - "chainId", - payload.chainId ?? client._options.chainId, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v2/chains/{chainId}/contracts/{address}/balances")( - pathParams, - ); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - "threshold": payload.threshold, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAddressesByBalanceOverTime", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetAddressesByBalanceOverTimeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json( - 200, - operations.GetAddressesByBalanceOverTimeResponse$inboundSchema, - { key: "Result" }, - ), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetAddressesByBalanceOverTimeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsChainsListTokenHoldersAboveThreshold( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsHealthCheck.ts b/metrics/src/funcs/metricsHealthCheck.ts deleted file mode 100644 index 2f203031..00000000 --- a/metrics/src/funcs/metricsHealthCheck.ts +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ -export function metricsHealthCheck( - client: AvalancheCore, - options?: RequestOptions, -): APIPromise< - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - options, - )); -} - -async function $do( - client: AvalancheCore, - options?: RequestOptions, -): Promise< - [ - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const path = pathToFunc("/v2/health-check")(); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "metrics-health-check", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.HealthCheckResultDto$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts b/metrics/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts deleted file mode 100644 index 3099df26..00000000 --- a/metrics/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get metric values with given node id and timestamp range - * - * @remarks - * Get given metric values for a given node id with or without a timestamp range. - */ -export function metricsL1ValidatorsGetMetricsByNodeId( - client: AvalancheCore, - request: operations.GetMetricsByNodeIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetMetricsByNodeIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetMetricsByNodeIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - nodeId: encodeSimple("nodeId", payload.nodeId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/validator/{nodeId}/metrics/{metric}")( - pathParams, - ); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getMetricsByNodeId", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.MetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts b/metrics/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts deleted file mode 100644 index 402c9604..00000000 --- a/metrics/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get metric values with given subnet ID and timestamp range - * - * @remarks - * Get given metric values for a given subnet ID with or without a timestamp range. - */ -export function metricsL1ValidatorsGetMetricsBySubnetId( - client: AvalancheCore, - request: operations.GetMetricsBySubnetIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetMetricsBySubnetIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetMetricsBySubnetIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - subnetId: encodeSimple("subnetId", payload.subnetId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/subnet/{subnetId}/metrics/{metric}")(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getMetricsBySubnetId", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.MetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts b/metrics/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts deleted file mode 100644 index f2124430..00000000 --- a/metrics/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get metric values with given validation id and timestamp range - * - * @remarks - * Get given metric values for a given validation id with or without a timestamp range. - */ -export function metricsL1ValidatorsGetMetricsByValidationId( - client: AvalancheCore, - request: operations.GetMetricsByValidationIdRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetMetricsByValidationIdRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetMetricsByValidationIdRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - l1ValidationId: encodeSimple("l1ValidationId", payload.l1ValidationId, { - explode: false, - charEncoding: "percent", - }), - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/validation/{l1ValidationId}/metrics/{metric}")( - pathParams, - ); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getMetricsByValidationId", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.MetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsL1ValidatorsListMetrics.ts b/metrics/src/funcs/metricsL1ValidatorsListMetrics.ts deleted file mode 100644 index 3dcc91a4..00000000 --- a/metrics/src/funcs/metricsL1ValidatorsListMetrics.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get given metric for all validators - * - * @remarks - * Get given metric's value for all validators. - */ -export function metricsL1ValidatorsListMetrics( - client: AvalancheCore, - request: operations.GetTotalL1ValidatorMetricsRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetTotalL1ValidatorMetricsRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetTotalL1ValidatorMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/validators/metrics/{metric}")(pathParams); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getTotalL1ValidatorMetrics", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.MetricsApiResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.MetricsApiResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/metrics/src/funcs/metricsNetworksGetStakingMetrics.ts b/metrics/src/funcs/metricsNetworksGetStakingMetrics.ts deleted file mode 100644 index 3b6f487c..00000000 --- a/metrics/src/funcs/metricsNetworksGetStakingMetrics.ts +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get staking metrics for a given subnet - * - * @remarks - * Gets staking metrics for a given subnet. - */ -export function metricsNetworksGetStakingMetrics( - client: AvalancheCore, - request: operations.GetStakingMetricsRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetStakingMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetStakingMetricsRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetStakingMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetStakingMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - metric: encodeSimple("metric", payload.metric, { - explode: false, - charEncoding: "percent", - }), - network: encodeSimple( - "network", - payload.network ?? client._options.network, - { explode: false, charEncoding: "percent" }, - ), - }; - - const path = pathToFunc("/v2/networks/{network}/metrics/{metric}")( - pathParams, - ); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - "subnetId": payload.subnetId, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getStakingMetrics", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetStakingMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetStakingMetricsResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetStakingMetricsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsNetworksGetStakingMetrics( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/funcs/metricsSubnetsGetValidators.ts b/metrics/src/funcs/metricsSubnetsGetValidators.ts deleted file mode 100644 index 01ed4a4f..00000000 --- a/metrics/src/funcs/metricsSubnetsGetValidators.ts +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { pathToFunc } from "../lib/url.js"; -import { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * Get addresses running validators during a given time frame - * - * @remarks - * Get list of addresses and AddValidatorTx timestamps set to receive awards for validation periods during the specified time frame. - */ -export function metricsSubnetsGetValidators( - client: AvalancheCore, - request: operations.GetValidatorsByDateRangeRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetValidatorsByDateRangeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetValidatorsByDateRangeRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetValidatorsByDateRangeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetValidatorsByDateRangeRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - subnetId: encodeSimple("subnetId", payload.subnetId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v2/subnets/{subnetId}/validators:getAddresses")( - pathParams, - ); - - const query = encodeFormQuery({ - "endTimestamp": payload.endTimestamp, - "network": payload.network, - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "startTimestamp": payload.startTimestamp, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getValidatorsByDateRange", - oAuth2Scopes: [], - - resolvedSecurity: null, - - securitySource: null, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetValidatorsByDateRangeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetValidatorsByDateRangeResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetValidatorsByDateRangeResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - metricsSubnetsGetValidators( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/metrics/src/hooks/hooks.ts b/metrics/src/hooks/hooks.ts deleted file mode 100644 index d34c8849..00000000 --- a/metrics/src/hooks/hooks.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { RequestInput } from "../lib/http.js"; -import { - AfterErrorContext, - AfterErrorHook, - AfterSuccessContext, - AfterSuccessHook, - BeforeCreateRequestContext, - BeforeCreateRequestHook, - BeforeRequestContext, - BeforeRequestHook, - Hook, - Hooks, - SDKInitHook, - SDKInitOptions, -} from "./types.js"; - -import { initHooks } from "./registration.js"; - -export class SDKHooks implements Hooks { - sdkInitHooks: SDKInitHook[] = []; - beforeCreateRequestHooks: BeforeCreateRequestHook[] = []; - beforeRequestHooks: BeforeRequestHook[] = []; - afterSuccessHooks: AfterSuccessHook[] = []; - afterErrorHooks: AfterErrorHook[] = []; - - constructor() { - const presetHooks: Array = []; - - for (const hook of presetHooks) { - if ("sdkInit" in hook) { - this.registerSDKInitHook(hook); - } - if ("beforeCreateRequest" in hook) { - this.registerBeforeCreateRequestHook(hook); - } - if ("beforeRequest" in hook) { - this.registerBeforeRequestHook(hook); - } - if ("afterSuccess" in hook) { - this.registerAfterSuccessHook(hook); - } - if ("afterError" in hook) { - this.registerAfterErrorHook(hook); - } - } - initHooks(this); - } - - registerSDKInitHook(hook: SDKInitHook) { - this.sdkInitHooks.push(hook); - } - - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook) { - this.beforeCreateRequestHooks.push(hook); - } - - registerBeforeRequestHook(hook: BeforeRequestHook) { - this.beforeRequestHooks.push(hook); - } - - registerAfterSuccessHook(hook: AfterSuccessHook) { - this.afterSuccessHooks.push(hook); - } - - registerAfterErrorHook(hook: AfterErrorHook) { - this.afterErrorHooks.push(hook); - } - - sdkInit(opts: SDKInitOptions): SDKInitOptions { - return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts); - } - - beforeCreateRequest( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ): RequestInput { - let inp = input; - - for (const hook of this.beforeCreateRequestHooks) { - inp = hook.beforeCreateRequest(hookCtx, inp); - } - - return inp; - } - - async beforeRequest( - hookCtx: BeforeRequestContext, - request: Request, - ): Promise { - let req = request; - - for (const hook of this.beforeRequestHooks) { - req = await hook.beforeRequest(hookCtx, req); - } - - return req; - } - - async afterSuccess( - hookCtx: AfterSuccessContext, - response: Response, - ): Promise { - let res = response; - - for (const hook of this.afterSuccessHooks) { - res = await hook.afterSuccess(hookCtx, res); - } - - return res; - } - - async afterError( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ): Promise<{ response: Response | null; error: unknown }> { - let res = response; - let err = error; - - for (const hook of this.afterErrorHooks) { - const result = await hook.afterError(hookCtx, res, err); - res = result.response; - err = result.error; - } - - return { response: res, error: err }; - } -} diff --git a/metrics/src/hooks/index.ts b/metrics/src/hooks/index.ts deleted file mode 100644 index f60ec7ac..00000000 --- a/metrics/src/hooks/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./hooks.js"; -export * from "./types.js"; diff --git a/metrics/src/hooks/registration.ts b/metrics/src/hooks/registration.ts deleted file mode 100644 index 70649734..00000000 --- a/metrics/src/hooks/registration.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Hooks } from "./types.js"; - -/* - * This file is only ever generated once on the first generation and then is free to be modified. - * Any hooks you wish to add should be registered in the initHooks function. Feel free to define them - * in this file or in separate files in the hooks folder. - */ - -// @ts-expect-error remove this line when you add your first hook and hooks is used -export function initHooks(hooks: Hooks) { - // Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook - // with an instance of a hook that implements that specific Hook interface - // Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance -} diff --git a/metrics/src/hooks/types.ts b/metrics/src/hooks/types.ts deleted file mode 100644 index 8bfe4fe8..00000000 --- a/metrics/src/hooks/types.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKOptions } from "../lib/config.js"; -import { HTTPClient, RequestInput } from "../lib/http.js"; -import { RetryConfig } from "../lib/retries.js"; -import { SecurityState } from "../lib/security.js"; - -export type HookContext = { - baseURL: string | URL; - operationID: string; - oAuth2Scopes: string[] | null; - securitySource?: any | (() => Promise); - retryConfig: RetryConfig; - resolvedSecurity: SecurityState | null; - options: SDKOptions; -}; - -export type Awaitable = T | Promise; - -export type SDKInitOptions = { - baseURL: URL | null; - client: HTTPClient; -}; - -export type BeforeCreateRequestContext = HookContext & {}; -export type BeforeRequestContext = HookContext & {}; -export type AfterSuccessContext = HookContext & {}; -export type AfterErrorContext = HookContext & {}; - -/** - * SDKInitHook is called when the SDK is initializing. The - * hook can return a new baseURL and HTTP client to be used by the SDK. - */ -export interface SDKInitHook { - sdkInit: (opts: SDKInitOptions) => SDKInitOptions; -} - -export interface BeforeCreateRequestHook { - /** - * A hook that is called before the SDK creates a `Request` object. The hook - * can modify how a request is constructed since certain modifications, like - * changing the request URL, cannot be done on a request object directly. - */ - beforeCreateRequest: ( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ) => RequestInput; -} - -export interface BeforeRequestHook { - /** - * A hook that is called before the SDK sends a request. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * replace the request before it is sent or throw an error to stop the - * request from being sent. - */ - beforeRequest: ( - hookCtx: BeforeRequestContext, - request: Request, - ) => Awaitable; -} - -export interface AfterSuccessHook { - /** - * A hook that is called after the SDK receives a response. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * modify the response before it is handled or throw an error to stop the - * response from being handled. - */ - afterSuccess: ( - hookCtx: AfterSuccessContext, - response: Response, - ) => Awaitable; -} - -export interface AfterErrorHook { - /** - * A hook that is called after the SDK encounters an error, or a - * non-successful response. The hook can introduce instrumentation code such - * as logging, tracing and metrics or modify the response or error values. - */ - afterError: ( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ) => Awaitable<{ - response: Response | null; - error: unknown; - }>; -} - -export interface Hooks { - /** Registers a hook to be used by the SDK for initialization event. */ - registerSDKInitHook(hook: SDKInitHook): void; - /** Registers a hook to be used by the SDK for to modify `Request` construction. */ - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void; - /** Registers a hook to be used by the SDK for the before request event. */ - registerBeforeRequestHook(hook: BeforeRequestHook): void; - /** Registers a hook to be used by the SDK for the after success event. */ - registerAfterSuccessHook(hook: AfterSuccessHook): void; - /** Registers a hook to be used by the SDK for the after error event. */ - registerAfterErrorHook(hook: AfterErrorHook): void; -} - -export type Hook = - | SDKInitHook - | BeforeCreateRequestHook - | BeforeRequestHook - | AfterSuccessHook - | AfterErrorHook; diff --git a/metrics/src/index.ts b/metrics/src/index.ts deleted file mode 100644 index dbcba164..00000000 --- a/metrics/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./lib/config.js"; -export * as files from "./lib/files.js"; -export { HTTPClient } from "./lib/http.js"; -export type { Fetcher, HTTPClientOptions } from "./lib/http.js"; -export * from "./sdk/sdk.js"; diff --git a/metrics/src/lib/base64.ts b/metrics/src/lib/base64.ts deleted file mode 100644 index c2d5b389..00000000 --- a/metrics/src/lib/base64.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function bytesToBase64(u8arr: Uint8Array): string { - return btoa(String.fromCodePoint(...u8arr)); -} - -export function bytesFromBase64(encoded: string): Uint8Array { - return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0)); -} - -export function stringToBytes(str: string): Uint8Array { - return new TextEncoder().encode(str); -} - -export function stringFromBytes(u8arr: Uint8Array): string { - return new TextDecoder().decode(u8arr); -} - -export function stringToBase64(str: string): string { - return bytesToBase64(stringToBytes(str)); -} - -export function stringFromBase64(b64str: string): string { - return stringFromBytes(bytesFromBase64(b64str)); -} - -export const zodOutbound = z - .instanceof(Uint8Array) - .or(z.string().transform(stringToBytes)); - -export const zodInbound = z - .instanceof(Uint8Array) - .or(z.string().transform(bytesFromBase64)); diff --git a/metrics/src/lib/config.ts b/metrics/src/lib/config.ts deleted file mode 100644 index b6ffeaa7..00000000 --- a/metrics/src/lib/config.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as components from "../models/components/index.js"; -import { HTTPClient } from "./http.js"; -import { Logger } from "./logger.js"; -import { RetryConfig } from "./retries.js"; -import { Params, pathToFunc } from "./url.js"; - -/** - * Contains the list of servers available to the SDK - */ -export const ServerList = [ - "https://metrics.avax.network", -] as const; - -export type SDKOptions = { - /** - * Allows setting the chainId parameter for all supported operations - */ - chainId?: string | undefined; - - /** - * Allows setting the network parameter for all supported operations - */ - network?: components.GlobalParamNetwork | undefined; - - httpClient?: HTTPClient; - /** - * Allows overriding the default server used by the SDK - */ - serverIdx?: number | undefined; - /** - * Allows overriding the default server URL used by the SDK - */ - serverURL?: string | undefined; - /** - * Allows overriding the default user agent used by the SDK - */ - userAgent?: string | undefined; - /** - * Allows overriding the default retry config used by the SDK - */ - retryConfig?: RetryConfig; - timeoutMs?: number; - debugLogger?: Logger; -}; - -export function serverURLFromOptions(options: SDKOptions): URL | null { - let serverURL = options.serverURL; - - const params: Params = {}; - - if (!serverURL) { - const serverIdx = options.serverIdx ?? 0; - if (serverIdx < 0 || serverIdx >= ServerList.length) { - throw new Error(`Invalid server index ${serverIdx}`); - } - serverURL = ServerList[serverIdx] || ""; - } - - const u = pathToFunc(serverURL)(params); - return new URL(u); -} - -export const SDK_METADATA = { - language: "typescript", - openapiDocVersion: "1.0.0", - sdkVersion: "0.4.3", - genVersion: "2.674.3", - userAgent: - "speakeasy-sdk/typescript 0.4.3 2.674.3 1.0.0 @avalanche-sdk/metrics", -} as const; diff --git a/metrics/src/lib/dlv.ts b/metrics/src/lib/dlv.ts deleted file mode 100644 index e81091f5..00000000 --- a/metrics/src/lib/dlv.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) 2024 Jason Miller (http://jasonformat.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -/** - * @param obj The object to walk - * @param key The key path to walk the object with - * @param def A default value to return if the result is undefined - * - * @example - * dlv(obj, "a.b.c.d") - * @example - * dlv(object, ["a", "b", "c", "d"]) - * @example - * dlv(object, "foo.bar.baz", "Hello, default value!") - */ -export function dlv( - obj: any, - key: string | string[], - def?: T, - p?: number, - undef?: never, -): T | undefined { - key = Array.isArray(key) ? key : key.split("."); - for (p = 0; p < key.length; p++) { - const k = key[p]; - obj = k != null && obj ? obj[k] : undef; - } - return obj === undef ? def : obj; -} diff --git a/metrics/src/lib/encodings.ts b/metrics/src/lib/encodings.ts deleted file mode 100644 index 25c9dcba..00000000 --- a/metrics/src/lib/encodings.ts +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { bytesToBase64 } from "./base64.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export class EncodingError extends Error { - constructor(message: string) { - super(message); - this.name = "EncodingError"; - } -} - -export function encodeMatrix( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - const keyPrefix = encodeString(pk); - tmp = `${keyPrefix}=${encValue}`; - // trim trailing '=' if value was empty - if (tmp === `${keyPrefix}=`) { - tmp = tmp.slice(0, -1); - } - - // If we end up with the nothing then skip forward - if (!tmp) { - return; - } - - out += `;${tmp}`; - }); - - return out; -} - -export function encodeLabel( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let encValue: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join("."); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `.${encodeString(k)}.${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; - encValue = `${k}${encodeValue(pv)}`; - } - - out += encValue == null ? "" : `.${encValue}`; - }); - - return out; -} - -type FormEncoder = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -) => string | undefined; - -function formEncoder(sep: string): FormEncoder { - return ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, - ) => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - const encodedSep = encodeString(sep); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(encodedSep); - } else if (isPlainObject(pv)) { - encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `${encodeString(k)}${encodedSep}${encodeValue(v)}`; - })?.join(encodedSep); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); - }; -} - -export const encodeForm = formEncoder(","); -export const encodeSpaceDelimited = formEncoder(" "); -export const encodePipeDelimited = formEncoder("|"); - -export function encodeBodyForm( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else if (isPlainObject(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else { - encValue = `${encodeValue(pv)}`; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); -} - -export function encodeDeepObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - if (!isPlainObject(value)) { - throw new EncodingError( - `Value of parameter '${key}' which uses deepObject encoding must be an object or null`, - ); - } - - return encodeDeepObjectObject(key, value, options); -} - -export function encodeDeepObjectObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - let out = ""; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - if (!isPlainObject(value)) { - throw new EncodingError(`Expected parameter '${key}' to be an object.`); - } - - Object.entries(value).forEach(([ck, cv]) => { - if (cv == null) { - return; - } - - const pk = `${key}[${ck}]`; - - if (isPlainObject(cv)) { - const objOut = encodeDeepObjectObject(pk, cv, options); - - out += objOut == null ? "" : `&${objOut}`; - - return; - } - - const pairs: unknown[] = Array.isArray(cv) ? cv : [cv]; - const encoded = mapDefined(pairs, (v) => { - return `${encodeString(pk)}=${encodeString(serializeValue(v))}`; - })?.join("&"); - - out += encoded == null ? "" : `&${encoded}`; - }); - - return out.slice(1); -} - -export function encodeJSON( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - if (typeof value === "undefined") { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encVal = encodeString(JSON.stringify(value, jsonReplacer)); - - return options?.explode ? encVal : `${encodeString(key)}=${encVal}`; -} - -export const encodeSimple = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - tmp = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - tmp = mapped?.join("").slice(1); - } else { - const k = options?.explode && isPlainObject(value) ? `${pk}=` : ""; - tmp = `${k}${encodeValue(pv)}`; - } - - out += tmp ? `,${tmp}` : ""; - }); - - return out.slice(1); -}; - -function explode(key: string, value: unknown): [string, unknown][] { - if (Array.isArray(value)) { - return value.map((v) => [key, v]); - } else if (isPlainObject(value)) { - const o = value ?? {}; - return Object.entries(o).map(([k, v]) => [k, v]); - } else { - return [[key, value]]; - } -} - -function serializeValue(value: unknown): string { - if (value == null) { - return ""; - } else if (value instanceof Date) { - return value.toISOString(); - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (typeof value === "object") { - return JSON.stringify(value, jsonReplacer); - } - - return `${value}`; -} - -function jsonReplacer(_: string, value: unknown): unknown { - if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else { - return value; - } -} - -function mapDefined(inp: T[], mapper: (v: T) => R): R[] | null { - const res = inp.reduce((acc, v) => { - if (v == null) { - return acc; - } - - const m = mapper(v); - if (m == null) { - return acc; - } - - acc.push(m); - - return acc; - }, []); - - return res.length ? res : null; -} - -function mapDefinedEntries( - inp: Iterable<[K, V]>, - mapper: (v: [K, V]) => R, -): R[] | null { - const acc: R[] = []; - for (const [k, v] of inp) { - if (v == null) { - continue; - } - - const m = mapper([k, v]); - if (m == null) { - continue; - } - - acc.push(m); - } - - return acc.length ? acc : null; -} - -export function queryJoin(...args: (string | undefined)[]): string { - return args.filter(Boolean).join("&"); -} - -type QueryEncoderOptions = { - explode?: boolean; - charEncoding?: "percent" | "none"; -}; - -type QueryEncoder = ( - key: string, - value: unknown, - options?: QueryEncoderOptions, -) => string | undefined; - -type BulkQueryEncoder = ( - values: Record, - options?: QueryEncoderOptions, -) => string; - -export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( - values: Record, - options?: QueryEncoderOptions, - ): string { - const opts: QueryEncoderOptions = { - ...options, - explode: options?.explode ?? true, - charEncoding: options?.charEncoding ?? "percent", - }; - - const encoded = Object.entries(values).map(([key, value]) => { - return f(key, value, opts); - }); - return queryJoin(...encoded); - }; - - return bulkEncode; -} - -export const encodeJSONQuery = queryEncoder(encodeJSON); -export const encodeFormQuery = queryEncoder(encodeForm); -export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited); -export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited); -export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject); - -export function appendForm( - fd: FormData, - key: string, - value: unknown, - fileName?: string, -): void { - if (value == null) { - return; - } else if (value instanceof Blob && fileName) { - fd.append(key, value, fileName); - } else if (value instanceof Blob) { - fd.append(key, value); - } else { - fd.append(key, String(value)); - } -} diff --git a/metrics/src/lib/files.ts b/metrics/src/lib/files.ts deleted file mode 100644 index 0344cd04..00000000 --- a/metrics/src/lib/files.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Consumes a stream and returns a concatenated array buffer. Useful in - * situations where we need to read the whole file because it forms part of a - * larger payload containing other fields, and we can't modify the underlying - * request structure. - */ -export async function readableStreamToArrayBuffer( - readable: ReadableStream, -): Promise { - const reader = readable.getReader(); - const chunks: Uint8Array[] = []; - - let totalLength = 0; - let done = false; - - while (!done) { - const { value, done: doneReading } = await reader.read(); - - if (doneReading) { - done = true; - } else { - chunks.push(value); - totalLength += value.length; - } - } - - const concatenatedChunks = new Uint8Array(totalLength); - let offset = 0; - - for (const chunk of chunks) { - concatenatedChunks.set(chunk, offset); - offset += chunk.length; - } - - return concatenatedChunks.buffer as ArrayBuffer; -} - -/** - * Determines the MIME content type based on a file's extension. - * Returns null if the extension is not recognized. - */ -export function getContentTypeFromFileName(fileName: string): string | null { - if (!fileName) return null; - - const ext = fileName.toLowerCase().split(".").pop(); - if (!ext) return null; - - const mimeTypes: Record = { - json: "application/json", - xml: "application/xml", - html: "text/html", - htm: "text/html", - txt: "text/plain", - csv: "text/csv", - pdf: "application/pdf", - png: "image/png", - jpg: "image/jpeg", - jpeg: "image/jpeg", - gif: "image/gif", - svg: "image/svg+xml", - js: "application/javascript", - css: "text/css", - zip: "application/zip", - tar: "application/x-tar", - gz: "application/gzip", - mp4: "video/mp4", - mp3: "audio/mpeg", - wav: "audio/wav", - webp: "image/webp", - ico: "image/x-icon", - woff: "font/woff", - woff2: "font/woff2", - ttf: "font/ttf", - otf: "font/otf", - }; - - return mimeTypes[ext] || null; -} diff --git a/metrics/src/lib/http.ts b/metrics/src/lib/http.ts deleted file mode 100644 index 13cf1fd7..00000000 --- a/metrics/src/lib/http.ts +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type Fetcher = ( - input: RequestInfo | URL, - init?: RequestInit, -) => Promise; - -export type Awaitable = T | Promise; - -const DEFAULT_FETCHER: Fetcher = (input, init) => { - // If input is a Request and init is undefined, Bun will discard the method, - // headers, body and other options that were set on the request object. - // Node.js and browers would ignore an undefined init value. This check is - // therefore needed for interop with Bun. - if (init == null) { - return fetch(input); - } else { - return fetch(input, init); - } -}; - -export type RequestInput = { - /** - * The URL the request will use. - */ - url: URL; - /** - * Options used to create a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - */ - options?: RequestInit | undefined; -}; - -export interface HTTPClientOptions { - fetcher?: Fetcher; -} - -export type BeforeRequestHook = (req: Request) => Awaitable; -export type RequestErrorHook = (err: unknown, req: Request) => Awaitable; -export type ResponseHook = (res: Response, req: Request) => Awaitable; - -export class HTTPClient { - private fetcher: Fetcher; - private requestHooks: BeforeRequestHook[] = []; - private requestErrorHooks: RequestErrorHook[] = []; - private responseHooks: ResponseHook[] = []; - - constructor(private options: HTTPClientOptions = {}) { - this.fetcher = options.fetcher || DEFAULT_FETCHER; - } - - async request(request: Request): Promise { - let req = request; - for (const hook of this.requestHooks) { - const nextRequest = await hook(req); - if (nextRequest) { - req = nextRequest; - } - } - - try { - const res = await this.fetcher(req); - - for (const hook of this.responseHooks) { - await hook(res, req); - } - - return res; - } catch (err) { - for (const hook of this.requestErrorHooks) { - await hook(err, req); - } - - throw err; - } - } - - /** - * Registers a hook that is called before a request is made. The hook function - * can mutate the request or return a new request. This may be useful to add - * additional information to request such as request IDs and tracing headers. - */ - addHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** - * Registers a hook that is called when a request cannot be made due to a - * network error. - */ - addHook(hook: "requestError", fn: RequestErrorHook): this; - /** - * Registers a hook that is called when a response has been received from the - * server. - */ - addHook(hook: "response", fn: ResponseHook): this; - addHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ) { - if (args[0] === "beforeRequest") { - this.requestHooks.push(args[1]); - } else if (args[0] === "requestError") { - this.requestErrorHooks.push(args[1]); - } else if (args[0] === "response") { - this.responseHooks.push(args[1]); - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - return this; - } - - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "requestError", fn: RequestErrorHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "response", fn: ResponseHook): this; - removeHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ): this { - let target: unknown[]; - if (args[0] === "beforeRequest") { - target = this.requestHooks; - } else if (args[0] === "requestError") { - target = this.requestErrorHooks; - } else if (args[0] === "response") { - target = this.responseHooks; - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - - const index = target.findIndex((v) => v === args[1]); - if (index >= 0) { - target.splice(index, 1); - } - - return this; - } - - clone(): HTTPClient { - const child = new HTTPClient(this.options); - child.requestHooks = this.requestHooks.slice(); - child.requestErrorHooks = this.requestErrorHooks.slice(); - child.responseHooks = this.responseHooks.slice(); - - return child; - } -} - -export type StatusCodePredicate = number | string | (number | string)[]; - -// A semicolon surrounded by optional whitespace characters is used to separate -// segments in a media type string. -const mediaParamSeparator = /\s*;\s*/g; - -export function matchContentType(response: Response, pattern: string): boolean { - // `*` is a special case which means anything is acceptable. - if (pattern === "*") { - return true; - } - - let contentType = - response.headers.get("content-type")?.trim() || "application/octet-stream"; - contentType = contentType.toLowerCase(); - - const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator); - const [wantType = "", ...wantParams] = wantParts; - - if (wantType.split("/").length !== 2) { - return false; - } - - const gotParts = contentType.split(mediaParamSeparator); - const [gotType = "", ...gotParams] = gotParts; - - const [type = "", subtype = ""] = gotType.split("/"); - if (!type || !subtype) { - return false; - } - - if ( - wantType !== "*/*" && - gotType !== wantType && - `${type}/*` !== wantType && - `*/${subtype}` !== wantType - ) { - return false; - } - - if (gotParams.length < wantParams.length) { - return false; - } - - const params = new Set(gotParams); - for (const wantParam of wantParams) { - if (!params.has(wantParam)) { - return false; - } - } - - return true; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -export function matchStatusCode( - response: Response, - codes: StatusCodePredicate, -): boolean { - const actual = `${response.status}`; - const expectedCodes = Array.isArray(codes) ? codes : [codes]; - if (!expectedCodes.length) { - return false; - } - - return expectedCodes.some((ec) => { - const code = `${ec}`; - - if (code === "default") { - return true; - } - - if (!codeRangeRE.test(`${code}`)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -export function matchResponse( - response: Response, - code: StatusCodePredicate, - contentTypePattern: string, -): boolean { - return ( - matchStatusCode(response, code) && - matchContentType(response, contentTypePattern) - ); -} - -/** - * Uses various heurisitics to determine if an error is a connection error. - */ -export function isConnectionError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Covers fetch in Deno as well - const isBrowserErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("failed to fetch"); - - const isNodeErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("fetch failed"); - - const isBunErr = "name" in err && err.name === "ConnectionError"; - - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnreset"; - - return isBrowserErr || isNodeErr || isGenericErr || isBunErr; -} - -/** - * Uses various heurisitics to determine if an error is a timeout error. - */ -export function isTimeoutError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "TimeoutError"; - const isLegacyNative = "code" in err && err.code === 23; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} - -/** - * Uses various heurisitics to determine if an error is a abort error. - */ -export function isAbortError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "AbortError"; - const isLegacyNative = "code" in err && err.code === 20; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} diff --git a/metrics/src/lib/is-plain-object.ts b/metrics/src/lib/is-plain-object.ts deleted file mode 100644 index 61070d3d..00000000 --- a/metrics/src/lib/is-plain-object.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js - -export function isPlainObject(value: unknown): value is object { - if (typeof value !== "object" || value === null) { - return false; - } - - const prototype = Object.getPrototypeOf(value); - return ( - (prototype === null || - prototype === Object.prototype || - Object.getPrototypeOf(prototype) === null) && - !(Symbol.toStringTag in value) && - !(Symbol.iterator in value) - ); -} diff --git a/metrics/src/lib/logger.ts b/metrics/src/lib/logger.ts deleted file mode 100644 index d181f293..00000000 --- a/metrics/src/lib/logger.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export interface Logger { - group(label?: string): void; - groupEnd(): void; - log(message: any, ...args: any[]): void; -} diff --git a/metrics/src/lib/matchers.ts b/metrics/src/lib/matchers.ts deleted file mode 100644 index 6525c6db..00000000 --- a/metrics/src/lib/matchers.ts +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheAPIError } from "../models/errors/avalancheapierror.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export type Encoding = - | "jsonl" - | "json" - | "text" - | "bytes" - | "stream" - | "sse" - | "nil" - | "fail"; - -const DEFAULT_CONTENT_TYPES: Record = { - jsonl: "application/jsonl", - json: "application/json", - text: "text/plain", - bytes: "application/octet-stream", - stream: "application/octet-stream", - sse: "text/event-stream", - nil: "*", - fail: "*", -}; - -type Schema = { parse(raw: unknown): T }; - -type MatchOptions = { - ctype?: string; - hdrs?: boolean; - key?: string; - sseSentinel?: string; -}; - -export type ValueMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; -}; - -export type ErrorMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; - err: true; -}; - -export type FailMatcher = { - enc: "fail"; - codes: StatusCodePredicate; -}; - -export type Matcher = ValueMatcher | ErrorMatcher | FailMatcher; - -export function jsonErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "json", codes, schema }; -} -export function json( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "json", codes, schema }; -} - -export function jsonl( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "jsonl", codes, schema }; -} - -export function jsonlErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "jsonl", codes, schema }; -} -export function textErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "text", codes, schema }; -} -export function text( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "text", codes, schema }; -} - -export function bytesErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "bytes", codes, schema }; -} -export function bytes( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "bytes", codes, schema }; -} - -export function streamErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "stream", codes, schema }; -} -export function stream( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "stream", codes, schema }; -} - -export function sseErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "sse", codes, schema }; -} -export function sse( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "sse", codes, schema }; -} - -export function nilErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "nil", codes, schema }; -} -export function nil( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "nil", codes, schema }; -} - -export function fail(codes: StatusCodePredicate): FailMatcher { - return { enc: "fail", codes }; -} - -export type MatchedValue = Matchers extends Matcher[] - ? T - : never; -export type MatchedError = Matchers extends Matcher[] - ? E - : never; -export type MatchFunc = ( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, -) => Promise<[result: Result, raw: unknown]>; - -export function match( - ...matchers: Array> -): MatchFunc { - return async function matchFunc( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, - ): Promise< - [ - result: Result, - raw: unknown, - ] - > { - let raw: unknown; - let matcher: Matcher | undefined; - for (const match of matchers) { - const { codes } = match; - const ctpattern = "ctype" in match - ? match.ctype - : DEFAULT_CONTENT_TYPES[match.enc]; - if (ctpattern && matchResponse(response, codes, ctpattern)) { - matcher = match; - break; - } else if (!ctpattern && matchStatusCode(response, codes)) { - matcher = match; - break; - } - } - - if (!matcher) { - return [{ - ok: false, - error: new AvalancheAPIError("Unexpected Status or Content-Type", { - response, - request, - body: await response.text().catch(() => ""), - }), - }, raw]; - } - - const encoding = matcher.enc; - let body = ""; - switch (encoding) { - case "json": - body = await response.text(); - raw = JSON.parse(body); - break; - case "jsonl": - raw = response.body; - break; - case "bytes": - raw = new Uint8Array(await response.arrayBuffer()); - break; - case "stream": - raw = response.body; - break; - case "text": - body = await response.text(); - raw = body; - break; - case "sse": - raw = response.body; - break; - case "nil": - body = await response.text(); - raw = undefined; - break; - case "fail": - body = await response.text(); - raw = body; - break; - default: - encoding satisfies never; - throw new Error(`Unsupported response type: ${encoding}`); - } - - if (matcher.enc === "fail") { - return [{ - ok: false, - error: new AvalancheAPIError("API error occurred", { - request, - response, - body, - }), - }, raw]; - } - - const resultKey = matcher.key || options?.resultKey; - let data: unknown; - - if ("err" in matcher) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - request$: request, - response$: response, - body$: body, - }; - } else if (resultKey) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - [resultKey]: raw, - }; - } else if (matcher.hdrs) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - }; - } else { - data = raw; - } - - if ("err" in matcher) { - const result = safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ); - return [result.ok ? { ok: false, error: result.value } : result, raw]; - } else { - return [ - safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ), - raw, - ]; - } - }; -} - -const headerValRE = /, */; -/** - * Iterates over a Headers object and returns an object with all the header - * entries. Values are represented as an array to account for repeated headers. - */ -export function unpackHeaders(headers: Headers): Record { - const out: Record = {}; - - for (const [k, v] of headers.entries()) { - out[k] = v.split(headerValRE); - } - - return out; -} - -function safeParseResponse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, - httpMeta: { response: Response; request: Request; body: string }, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR( - new ResponseValidationError(errorMessage, { - cause: err, - rawValue, - rawMessage: errorMessage, - ...httpMeta, - }), - ); - } -} diff --git a/metrics/src/lib/primitives.ts b/metrics/src/lib/primitives.ts deleted file mode 100644 index d21f1dc4..00000000 --- a/metrics/src/lib/primitives.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -class InvariantError extends Error { - constructor(message: string) { - super(message); - this.name = "InvariantError"; - } -} - -export function invariant( - condition: unknown, - message: string, -): asserts condition { - if (!condition) { - throw new InvariantError(message); - } -} - -export type ExactPartial = { - [P in keyof T]?: T[P] | undefined; -}; - -export type Remap = { - [k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */ - ? Mapping[k] - : Mapping[k] extends null /* if the mapping is to `null` then drop the key */ - ? never - : k /* otherwise keep the key as-is */]: Inp[k]; -}; - -/** - * Converts or omits an object's keys according to a mapping. - * - * @param inp An object whose keys will be remapped - * @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object. - * @returns A new object with keys remapped or omitted according to the mappings - */ -export function remap< - Inp extends Record, - const Mapping extends { [k in keyof Inp]?: string | null }, ->(inp: Inp, mappings: Mapping): Remap { - let out: any = {}; - - if (!Object.keys(mappings).length) { - out = inp; - return out; - } - - for (const [k, v] of Object.entries(inp)) { - const j = mappings[k]; - if (j === null) { - continue; - } - out[j ?? k] = v; - } - - return out; -} - -export function combineSignals( - ...signals: Array -): AbortSignal | null { - const filtered: AbortSignal[] = []; - for (const signal of signals) { - if (signal) { - filtered.push(signal); - } - } - - switch (filtered.length) { - case 0: - case 1: - return filtered[0] || null; - default: - if ("any" in AbortSignal && typeof AbortSignal.any === "function") { - return AbortSignal.any(filtered); - } - return abortSignalAny(filtered); - } -} - -export function abortSignalAny(signals: AbortSignal[]): AbortSignal { - const controller = new AbortController(); - const result = controller.signal; - if (!signals.length) { - return controller.signal; - } - - if (signals.length === 1) { - return signals[0] || controller.signal; - } - - for (const signal of signals) { - if (signal.aborted) { - return signal; - } - } - - function abort(this: AbortSignal) { - controller.abort(this.reason); - clean(); - } - - const signalRefs: WeakRef[] = []; - function clean() { - for (const signalRef of signalRefs) { - const signal = signalRef.deref(); - if (signal) { - signal.removeEventListener("abort", abort); - } - } - } - - for (const signal of signals) { - signalRefs.push(new WeakRef(signal)); - signal.addEventListener("abort", abort); - } - - return result; -} - -export function compactMap( - values: Record, -): Record { - const out: Record = {}; - - for (const [k, v] of Object.entries(values)) { - if (typeof v !== "undefined") { - out[k] = v; - } - } - - return out; -} - -export function allRequired>( - v: V, -): - | { - [K in keyof V]: NonNullable; - } - | undefined { - if (Object.values(v).every((x) => x == null)) { - return void 0; - } - - return v as ReturnType>; -} diff --git a/metrics/src/lib/retries.ts b/metrics/src/lib/retries.ts deleted file mode 100644 index e3ce9aba..00000000 --- a/metrics/src/lib/retries.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { isConnectionError, isTimeoutError } from "./http.js"; - -export type BackoffStrategy = { - initialInterval: number; - maxInterval: number; - exponent: number; - maxElapsedTime: number; -}; - -const defaultBackoff: BackoffStrategy = { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, -}; - -export type RetryConfig = - | { strategy: "none" } - | { - strategy: "backoff"; - backoff?: BackoffStrategy; - retryConnectionErrors?: boolean; - }; - -/** - * PermanentError is an error that is not recoverable. Throwing this error will - * cause a retry loop to terminate. - */ -export class PermanentError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - - constructor(message: string, options?: { cause?: unknown }) { - let msg = message; - if (options?.cause) { - msg += `: ${options.cause}`; - } - - super(msg, options); - this.name = "PermanentError"; - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = options?.cause; - } - - Object.setPrototypeOf(this, PermanentError.prototype); - } -} - -/** - * TemporaryError is an error is used to signal that an HTTP request can be - * retried as part of a retry loop. If retry attempts are exhausted and this - * error is thrown, the response will be returned to the caller. - */ -export class TemporaryError extends Error { - response: Response; - - constructor(message: string, response: Response) { - super(message); - this.response = response; - this.name = "TemporaryError"; - - Object.setPrototypeOf(this, TemporaryError.prototype); - } -} - -export async function retry( - fetchFn: () => Promise, - options: { - config: RetryConfig; - statusCodes: string[]; - }, -): Promise { - switch (options.config.strategy) { - case "backoff": - return retryBackoff( - wrapFetcher(fetchFn, { - statusCodes: options.statusCodes, - retryConnectionErrors: !!options.config.retryConnectionErrors, - }), - options.config.backoff ?? defaultBackoff, - ); - default: - return await fetchFn(); - } -} - -function wrapFetcher( - fn: () => Promise, - options: { - statusCodes: string[]; - retryConnectionErrors: boolean; - }, -): () => Promise { - return async () => { - try { - const res = await fn(); - if (isRetryableResponse(res, options.statusCodes)) { - throw new TemporaryError( - "Response failed with retryable status code", - res, - ); - } - - return res; - } catch (err: unknown) { - if (err instanceof TemporaryError) { - throw err; - } - - if ( - options.retryConnectionErrors && - (isTimeoutError(err) || isConnectionError(err)) - ) { - throw err; - } - - throw new PermanentError("Permanent error", { cause: err }); - } - }; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -function isRetryableResponse(res: Response, statusCodes: string[]): boolean { - const actual = `${res.status}`; - - return statusCodes.some((code) => { - if (!codeRangeRE.test(code)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -async function retryBackoff( - fn: () => Promise, - strategy: BackoffStrategy, -): Promise { - const { maxElapsedTime, initialInterval, exponent, maxInterval } = strategy; - - const start = Date.now(); - let x = 0; - - while (true) { - try { - const res = await fn(); - return res; - } catch (err: unknown) { - if (err instanceof PermanentError) { - throw err.cause; - } - const elapsed = Date.now() - start; - if (elapsed > maxElapsedTime) { - if (err instanceof TemporaryError) { - return err.response; - } - - throw err; - } - - let retryInterval = 0; - if (err instanceof TemporaryError) { - retryInterval = retryIntervalFromResponse(err.response); - } - - if (retryInterval <= 0) { - retryInterval = - initialInterval * Math.pow(x, exponent) + Math.random() * 1000; - } - - const d = Math.min(retryInterval, maxInterval); - - await delay(d); - x++; - } - } -} - -function retryIntervalFromResponse(res: Response): number { - const retryVal = res.headers.get("retry-after") || ""; - if (!retryVal) { - return 0; - } - - const parsedNumber = Number(retryVal); - if (Number.isInteger(parsedNumber)) { - return parsedNumber * 1000; - } - - const parsedDate = Date.parse(retryVal); - if (Number.isInteger(parsedDate)) { - const deltaMS = parsedDate - Date.now(); - return deltaMS > 0 ? Math.ceil(deltaMS) : 0; - } - - return 0; -} - -async function delay(delay: number): Promise { - return new Promise((resolve) => setTimeout(resolve, delay)); -} diff --git a/metrics/src/lib/schemas.ts b/metrics/src/lib/schemas.ts deleted file mode 100644 index 0e340b7e..00000000 --- a/metrics/src/lib/schemas.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - output, - ZodEffects, - ZodError, - ZodObject, - ZodRawShape, - ZodTypeAny, -} from "zod"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; - -/** - * Utility function that executes some code which may throw a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function parse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Out { - try { - return fn(rawValue); - } catch (err) { - if (err instanceof ZodError) { - throw new SDKValidationError(errorMessage, err, rawValue); - } - throw err; - } -} - -/** - * Utility function that executes some code which may result in a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function safeParse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR(new SDKValidationError(errorMessage, err, rawValue)); - } -} - -export function collectExtraKeys< - Shape extends ZodRawShape, - Catchall extends ZodTypeAny, - K extends string, ->( - obj: ZodObject, - extrasKey: K, - optional: boolean, -): ZodEffects< - typeof obj, - & output> - & { - [k in K]: Record>; - } -> { - return obj.transform((val) => { - const extras: Record> = {}; - const { shape } = obj; - for (const [key] of Object.entries(val)) { - if (key in shape) { - continue; - } - - const v = val[key]; - if (typeof v === "undefined") { - continue; - } - - extras[key] = v; - delete val[key]; - } - - if (optional && Object.keys(extras).length === 0) { - return val; - } - - return { ...val, [extrasKey]: extras }; - }); -} diff --git a/metrics/src/lib/sdks.ts b/metrics/src/lib/sdks.ts deleted file mode 100644 index bdb1f37c..00000000 --- a/metrics/src/lib/sdks.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKHooks } from "../hooks/hooks.js"; -import { HookContext } from "../hooks/types.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { stringToBase64 } from "./base64.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "./config.js"; -import { encodeForm } from "./encodings.js"; -import { - HTTPClient, - isAbortError, - isConnectionError, - isTimeoutError, - matchContentType, - matchStatusCode, -} from "./http.js"; -import { Logger } from "./logger.js"; -import { retry, RetryConfig } from "./retries.js"; -import { SecurityState } from "./security.js"; - -export type RequestOptions = { - /** - * Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If - * `fetchOptions.signal` is set then it will take precedence over this option. - */ - timeoutMs?: number; - /** - * Set or override a retry policy on HTTP calls. - */ - retries?: RetryConfig; - /** - * Specifies the status codes which should be retried using the given retry policy. - */ - retryCodes?: string[]; - /** - * Overrides the base server URL that will be used by an operation. - */ - serverURL?: string | URL; - /** - * @deprecated `fetchOptions` has been flattened into `RequestOptions`. - * - * Sets various request options on the `fetch` call made by an SDK method. - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request} - */ - fetchOptions?: Omit; -} & Omit; - -type RequestConfig = { - method: string; - path: string; - baseURL?: string | URL | undefined; - query?: string; - body?: RequestInit["body"]; - headers?: HeadersInit; - security?: SecurityState | null; - uaHeader?: string; - userAgent?: string | undefined; - timeoutMs?: number; -}; - -const gt: unknown = typeof globalThis === "undefined" ? null : globalThis; -const webWorkerLike = typeof gt === "object" - && gt != null - && "importScripts" in gt - && typeof gt["importScripts"] === "function"; -const isBrowserLike = webWorkerLike - || (typeof navigator !== "undefined" && "serviceWorker" in navigator) - || (typeof window === "object" && typeof window.document !== "undefined"); - -export class ClientSDK { - readonly #httpClient: HTTPClient; - readonly #hooks: SDKHooks; - readonly #logger?: Logger | undefined; - public readonly _baseURL: URL | null; - public readonly _options: SDKOptions & { hooks?: SDKHooks }; - - constructor(options: SDKOptions = {}) { - const opt = options as unknown; - if ( - typeof opt === "object" - && opt != null - && "hooks" in opt - && opt.hooks instanceof SDKHooks - ) { - this.#hooks = opt.hooks; - } else { - this.#hooks = new SDKHooks(); - } - const url = serverURLFromOptions(options); - if (url) { - url.pathname = url.pathname.replace(/\/+$/, "") + "/"; - } - - const { baseURL, client } = this.#hooks.sdkInit({ - baseURL: url, - client: options.httpClient || new HTTPClient(), - }); - this._baseURL = baseURL; - this.#httpClient = client; - - this._options = { ...options, hooks: this.#hooks }; - - this.#logger = this._options.debugLogger; - } - - public _createRequest( - context: HookContext, - conf: RequestConfig, - options?: RequestOptions, - ): Result { - const { method, path, query, headers: opHeaders, security } = conf; - - const base = conf.baseURL ?? this._baseURL; - if (!base) { - return ERR(new InvalidRequestError("No base URL provided for operation")); - } - const reqURL = new URL(base); - const inputURL = new URL(path, reqURL); - - if (path) { - reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/"; - reqURL.pathname += inputURL.pathname.replace(/^\/+/, ""); - } - - let finalQuery = query || ""; - - const secQuery: string[] = []; - for (const [k, v] of Object.entries(security?.queryParams || {})) { - const q = encodeForm(k, v, { charEncoding: "percent" }); - if (typeof q !== "undefined") { - secQuery.push(q); - } - } - if (secQuery.length) { - finalQuery += `&${secQuery.join("&")}`; - } - - if (finalQuery) { - const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery; - reqURL.search = `?${q}`; - } - - const headers = new Headers(opHeaders); - - const username = security?.basic.username; - const password = security?.basic.password; - if (username != null || password != null) { - const encoded = stringToBase64( - [username || "", password || ""].join(":"), - ); - headers.set("Authorization", `Basic ${encoded}`); - } - - const securityHeaders = new Headers(security?.headers || {}); - for (const [k, v] of securityHeaders) { - headers.set(k, v); - } - - let cookie = headers.get("cookie") || ""; - for (const [k, v] of Object.entries(security?.cookies || {})) { - cookie += `; ${k}=${v}`; - } - cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie; - headers.set("cookie", cookie); - - const userHeaders = new Headers( - options?.headers ?? options?.fetchOptions?.headers, - ); - for (const [k, v] of userHeaders) { - headers.set(k, v); - } - - // Only set user agent header in non-browser-like environments since CORS - // policy disallows setting it in browsers e.g. Chrome throws an error. - if (!isBrowserLike) { - headers.set( - conf.uaHeader ?? "user-agent", - conf.userAgent ?? SDK_METADATA.userAgent, - ); - } - - const fetchOptions: Omit = { - ...options?.fetchOptions, - ...options, - }; - if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) { - const timeoutSignal = AbortSignal.timeout(conf.timeoutMs); - fetchOptions.signal = timeoutSignal; - } - - if (conf.body instanceof ReadableStream) { - Object.assign(fetchOptions, { duplex: "half" }); - } - - let input; - try { - input = this.#hooks.beforeCreateRequest(context, { - url: reqURL, - options: { - ...fetchOptions, - body: conf.body ?? null, - headers, - method, - }, - }); - } catch (err: unknown) { - return ERR( - new UnexpectedClientError("Create request hook failed to execute", { - cause: err, - }), - ); - } - - return OK(new Request(input.url, input.options)); - } - - public async _do( - request: Request, - options: { - context: HookContext; - errorCodes: number | string | (number | string)[]; - retryConfig: RetryConfig; - retryCodes: string[]; - }, - ): Promise< - Result< - Response, - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - | UnexpectedClientError - > - > { - const { context, errorCodes } = options; - - return retry( - async () => { - const req = await this.#hooks.beforeRequest(context, request.clone()); - await logRequest(this.#logger, req).catch((e) => - this.#logger?.log("Failed to log request:", e) - ); - - let response = await this.#httpClient.request(req); - - try { - if (matchStatusCode(response, errorCodes)) { - const result = await this.#hooks.afterError( - context, - response, - null, - ); - if (result.error) { - throw result.error; - } - response = result.response || response; - } else { - response = await this.#hooks.afterSuccess(context, response); - } - } finally { - await logResponse(this.#logger, response, req) - .catch(e => this.#logger?.log("Failed to log response:", e)); - } - - return response; - }, - { config: options.retryConfig, statusCodes: options.retryCodes }, - ).then( - (r) => OK(r), - (err) => { - switch (true) { - case isAbortError(err): - return ERR( - new RequestAbortedError("Request aborted by client", { - cause: err, - }), - ); - case isTimeoutError(err): - return ERR( - new RequestTimeoutError("Request timed out", { cause: err }), - ); - case isConnectionError(err): - return ERR( - new ConnectionError("Unable to make request", { cause: err }), - ); - default: - return ERR( - new UnexpectedClientError("Unexpected HTTP client error", { - cause: err, - }), - ); - } - }, - ); - } -} - -const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/; -const jsonlLikeContentTypeRE = - /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/; -async function logRequest(logger: Logger | undefined, req: Request) { - if (!logger) { - return; - } - - const contentType = req.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`> Request: ${req.method} ${req.url}`); - - logger.group("Headers:"); - for (const [k, v] of req.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case jsonLikeContentTypeRE.test(ct): - logger.log(await req.clone().json()); - break; - case ct.startsWith("text/"): - logger.log(await req.clone().text()); - break; - case ct === "multipart/form-data": { - const body = await req.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} - -async function logResponse( - logger: Logger | undefined, - res: Response, - req: Request, -) { - if (!logger) { - return; - } - - const contentType = res.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`< Response: ${req.method} ${req.url}`); - logger.log("Status Code:", res.status, res.statusText); - - logger.group("Headers:"); - for (const [k, v] of res.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case matchContentType(res, "application/json") - || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().json()); - break; - case matchContentType(res, "application/jsonl") - || jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "text/event-stream"): - logger.log(`<${contentType}>`); - break; - case matchContentType(res, "text/*"): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "multipart/form-data"): { - const body = await res.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} diff --git a/metrics/src/lib/security.ts b/metrics/src/lib/security.ts deleted file mode 100644 index 78f56b04..00000000 --- a/metrics/src/lib/security.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -type OAuth2PasswordFlow = { - username: string; - password: string; - clientID?: string | undefined; - clientSecret?: string | undefined; - tokenURL: string; -}; - -export enum SecurityErrorCode { - Incomplete = "incomplete", - UnrecognisedSecurityType = "unrecognized_security_type", -} - -export class SecurityError extends Error { - constructor( - public code: SecurityErrorCode, - message: string, - ) { - super(message); - this.name = "SecurityError"; - } - - static incomplete(): SecurityError { - return new SecurityError( - SecurityErrorCode.Incomplete, - "Security requirements not met in order to perform the operation", - ); - } - static unrecognizedType(type: string): SecurityError { - return new SecurityError( - SecurityErrorCode.UnrecognisedSecurityType, - `Unrecognised security type: ${type}`, - ); - } -} - -export type SecurityState = { - basic: { username?: string | undefined; password?: string | undefined }; - headers: Record; - queryParams: Record; - cookies: Record; - oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" }; -}; - -type SecurityInputBasic = { - type: "http:basic"; - value: - | { username?: string | undefined; password?: string | undefined } - | null - | undefined; -}; - -type SecurityInputBearer = { - type: "http:bearer"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputAPIKey = { - type: "apiKey:header" | "apiKey:query" | "apiKey:cookie"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOIDC = { - type: "openIdConnect"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2 = { - type: "oauth2"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2ClientCredentials = { - type: "oauth2:client_credentials"; - value: - | { clientID?: string | undefined; clientSecret?: string | undefined } - | null - | string - | undefined; - fieldName?: string; -}; - -type SecurityInputOAuth2PasswordCredentials = { - type: "oauth2:password"; - value: - | string - | null - | undefined; - fieldName?: string; -}; - -type SecurityInputCustom = { - type: "http:custom"; - value: any | null | undefined; - fieldName?: string; -}; - -export type SecurityInput = - | SecurityInputBasic - | SecurityInputBearer - | SecurityInputAPIKey - | SecurityInputOAuth2 - | SecurityInputOAuth2ClientCredentials - | SecurityInputOAuth2PasswordCredentials - | SecurityInputOIDC - | SecurityInputCustom; - -export function resolveSecurity( - ...options: SecurityInput[][] -): SecurityState | null { - const state: SecurityState = { - basic: {}, - headers: {}, - queryParams: {}, - cookies: {}, - oauth2: { type: "none" }, - }; - - const option = options.find((opts) => { - return opts.every((o) => { - if (o.value == null) { - return false; - } else if (o.type === "http:basic") { - return o.value.username != null || o.value.password != null; - } else if (o.type === "http:custom") { - return null; - } else if (o.type === "oauth2:password") { - return ( - typeof o.value === "string" && !!o.value - ); - } else if (o.type === "oauth2:client_credentials") { - if (typeof o.value == "string") { - return !!o.value; - } - return o.value.clientID != null || o.value.clientSecret != null; - } else if (typeof o.value === "string") { - return !!o.value; - } else { - throw new Error( - `Unrecognized security type: ${o.type} (value type: ${typeof o - .value})`, - ); - } - }); - }); - if (option == null) { - return null; - } - - option.forEach((spec) => { - if (spec.value == null) { - return; - } - - const { type } = spec; - - switch (type) { - case "apiKey:header": - state.headers[spec.fieldName] = spec.value; - break; - case "apiKey:query": - state.queryParams[spec.fieldName] = spec.value; - break; - case "apiKey:cookie": - state.cookies[spec.fieldName] = spec.value; - break; - case "http:basic": - applyBasic(state, spec); - break; - case "http:custom": - break; - case "http:bearer": - applyBearer(state, spec); - break; - case "oauth2": - applyBearer(state, spec); - break; - case "oauth2:password": - applyBearer(state, spec); - break; - case "oauth2:client_credentials": - break; - case "openIdConnect": - applyBearer(state, spec); - break; - default: - spec satisfies never; - throw SecurityError.unrecognizedType(type); - } - }); - - return state; -} - -function applyBasic( - state: SecurityState, - spec: SecurityInputBasic, -) { - if (spec.value == null) { - return; - } - - state.basic = spec.value; -} - -function applyBearer( - state: SecurityState, - spec: - | SecurityInputBearer - | SecurityInputOAuth2 - | SecurityInputOIDC - | SecurityInputOAuth2PasswordCredentials, -) { - if (typeof spec.value !== "string" || !spec.value) { - return; - } - - let value = spec.value; - if (value.slice(0, 7).toLowerCase() !== "bearer ") { - value = `Bearer ${value}`; - } - - if (spec.fieldName !== undefined) { - state.headers[spec.fieldName] = value; - } -} diff --git a/metrics/src/lib/url.ts b/metrics/src/lib/url.ts deleted file mode 100644 index 6bc6356e..00000000 --- a/metrics/src/lib/url.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const hasOwn = Object.prototype.hasOwnProperty; - -export type Params = Partial>; - -export function pathToFunc( - pathPattern: string, - options?: { charEncoding?: "percent" | "none" }, -): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; - - return function buildURLPath(params: Record = {}): string { - return pathPattern.replace(paramRE, function (_, placeholder) { - if (!hasOwn.call(params, placeholder)) { - throw new Error(`Parameter '${placeholder}' is required`); - } - - const value = params[placeholder]; - if (typeof value !== "string" && typeof value !== "number") { - throw new Error( - `Parameter '${placeholder}' must be a string or number`, - ); - } - - return options?.charEncoding === "percent" - ? encodeURIComponent(`${value}`) - : `${value}`; - }); - }; -} diff --git a/metrics/src/mcp-server/build.mts b/metrics/src/mcp-server/build.mts deleted file mode 100644 index a04739f2..00000000 --- a/metrics/src/mcp-server/build.mts +++ /dev/null @@ -1,16 +0,0 @@ -/// - -import { build } from "bun"; - -const entrypoint = "./src/mcp-server/mcp-server.ts"; - -await build({ - entrypoints: [entrypoint], - outdir: "./bin", - sourcemap: "linked", - target: "node", - format: "esm", - minify: false, - throw: true, - banner: "#!/usr/bin/env node", -}); diff --git a/metrics/src/mcp-server/cli.ts b/metrics/src/mcp-server/cli.ts deleted file mode 100644 index b878d8de..00000000 --- a/metrics/src/mcp-server/cli.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { CommandContext, StricliProcess } from "@stricli/core"; - -export interface LocalContext extends CommandContext { - readonly process: StricliProcess; -} - -export function buildContext(process: NodeJS.Process): LocalContext { - return { process: process as StricliProcess }; -} diff --git a/metrics/src/mcp-server/cli/start/command.ts b/metrics/src/mcp-server/cli/start/command.ts deleted file mode 100644 index 0f35e851..00000000 --- a/metrics/src/mcp-server/cli/start/command.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; -import * as components from "../../../models/components/index.js"; -import { consoleLoggerLevels } from "../../console-logger.js"; - -export const startCommand = buildCommand({ - loader: async () => { - const { main } = await import("./impl.js"); - return main; - }, - parameters: { - flags: { - transport: { - kind: "enum", - brief: "The transport to use for communicating with the server", - default: "stdio", - values: ["stdio", "sse"], - }, - port: { - kind: "parsed", - brief: "The port to use when the SSE transport is enabled", - default: "2718", - parse: (val: string) => - z.coerce.number().int().gte(0).lt(65536).parse(val), - }, - tool: { - kind: "parsed", - brief: "Specify tools to mount on the server", - optional: true, - variadic: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "chain-id": { - kind: "parsed", - brief: - "Allows setting the chainId parameter for all supported operations", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - network: { - kind: "parsed", - brief: - "Allows setting the network parameter for all supported operations", - optional: true, - parse: (value) => { - return components.GlobalParamNetwork$inboundSchema.parse(value); - }, - }, - "server-url": { - kind: "parsed", - brief: "Overrides the default server URL used by the SDK", - optional: true, - parse: (value) => new URL(value).toString(), - }, - "server-index": { - kind: "parsed", - brief: "Selects a predefined server used by the SDK", - optional: true, - parse: numberParser, - }, - "log-level": { - kind: "enum", - brief: "The log level to use for the server", - default: "info", - values: consoleLoggerLevels, - }, - env: { - kind: "parsed", - brief: "Environment variables made available to the server", - optional: true, - variadic: true, - parse: (val: string) => { - const sepIdx = val.indexOf("="); - if (sepIdx === -1) { - throw new Error("Invalid environment variable format"); - } - - const key = val.slice(0, sepIdx); - const value = val.slice(sepIdx + 1); - - return [ - z.string().nonempty({ - message: "Environment variable key must be a non-empty string", - }).parse(key), - z.string().nonempty({ - message: "Environment variable value must be a non-empty string", - }).parse(value), - ] satisfies [string, string]; - }, - }, - }, - }, - docs: { - brief: "Run the Model Context Protocol server", - }, -}); diff --git a/metrics/src/mcp-server/cli/start/impl.ts b/metrics/src/mcp-server/cli/start/impl.ts deleted file mode 100644 index 531180cd..00000000 --- a/metrics/src/mcp-server/cli/start/impl.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"; -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; -import express from "express"; -import { SDKOptions } from "../../../lib/config.js"; -import { LocalContext } from "../../cli.js"; -import { - ConsoleLoggerLevel, - createConsoleLogger, -} from "../../console-logger.js"; -import { createMCPServer } from "../../server.js"; - -interface StartCommandFlags { - readonly transport: "stdio" | "sse"; - readonly port: number; - readonly tool?: string[]; - readonly "chain-id"?: SDKOptions["chainId"] | undefined; - readonly network?: SDKOptions["network"] | undefined; - readonly "server-url"?: string; - readonly "server-index"?: SDKOptions["serverIdx"]; - readonly "log-level": ConsoleLoggerLevel; - readonly env?: [string, string][]; -} - -export async function main(this: LocalContext, flags: StartCommandFlags) { - flags.env?.forEach(([key, value]) => { - process.env[key] = value; - }); - - switch (flags.transport) { - case "stdio": - await startStdio(flags); - break; - case "sse": - await startSSE(flags); - break; - default: - throw new Error(`Invalid transport: ${flags.transport}`); - } -} - -async function startStdio(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const transport = new StdioServerTransport(); - const server = createMCPServer({ - logger, - allowedTools: flags.tool, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - await server.connect(transport); - - const abort = async () => { - await server.close(); - process.exit(0); - }; - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} - -async function startSSE(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const app = express(); - const mcpServer = createMCPServer({ - logger, - allowedTools: flags.tool, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - let transport: SSEServerTransport | undefined; - const controller = new AbortController(); - - app.get("/sse", async (_req, res) => { - transport = new SSEServerTransport("/message", res); - - await mcpServer.connect(transport); - - mcpServer.server.onclose = async () => { - res.end(); - }; - }); - - app.post("/message", async (req, res) => { - if (!transport) { - throw new Error("Server transport not initialized"); - } - - await transport.handlePostMessage(req, res); - }); - - const httpServer = app.listen(flags.port, "0.0.0.0", () => { - const ha = httpServer.address(); - const host = typeof ha === "string" ? ha : `${ha?.address}:${ha?.port}`; - logger.info("MCP HTTP server started", { host }); - }); - - let closing = false; - controller.signal.addEventListener("abort", async () => { - if (closing) { - logger.info("Received second signal. Forcing shutdown."); - process.exit(1); - } - closing = true; - - logger.info("Shutting down MCP server"); - - await mcpServer.close(); - - logger.info("Shutting down HTTP server"); - - const timer = setTimeout(() => { - logger.info("Forcing shutdown"); - process.exit(1); - }, 5000); - - httpServer.close(() => { - clearTimeout(timer); - logger.info("Graceful shutdown complete"); - process.exit(0); - }); - }); - - const abort = () => controller.abort(); - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} diff --git a/metrics/src/mcp-server/console-logger.ts b/metrics/src/mcp-server/console-logger.ts deleted file mode 100644 index d65a295b..00000000 --- a/metrics/src/mcp-server/console-logger.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const consoleLoggerLevels = [ - "debug", - "warning", - "info", - "error", -] as const; - -export type ConsoleLoggerLevel = (typeof consoleLoggerLevels)[number]; - -export type ConsoleLogger = { - [key in ConsoleLoggerLevel]: ( - message: string, - data?: Record, - ) => void; -}; - -export function createConsoleLogger(level: ConsoleLoggerLevel): ConsoleLogger { - const min = consoleLoggerLevels.indexOf(level); - const noop = () => {}; - - const logger: ConsoleLogger = { - debug: noop, - warning: noop, - info: noop, - error: noop, - }; - - return consoleLoggerLevels.reduce((logger, level, i) => { - if (i < min) { - return logger; - } - - logger[level] = log.bind(null, level); - - return logger; - }, logger); -} - -function log( - level: ConsoleLoggerLevel, - message: string, - data?: Record, -) { - let line = ""; - const allData = [{ msg: message, l: level }, data]; - - for (const ctx of allData) { - for (const [key, value] of Object.entries(ctx || {})) { - if (value == null) { - line += ` ${key}=<${value}>`; - } else if (typeof value === "function") { - line += ` ${key}=`; - } else if (typeof value === "symbol") { - line += ` ${key}=${value.toString()}`; - } else if (typeof value === "string") { - const v = value.search(/\s/g) >= 0 ? JSON.stringify(value) : value; - line += ` ${key}=${v}`; - } else if (typeof value !== "object") { - line += ` ${key}=${value}`; - } else { - line += ` ${key}="${JSON.stringify(value)}"`; - } - } - } - - console.error(line); -} diff --git a/metrics/src/mcp-server/extensions.ts b/metrics/src/mcp-server/extensions.ts deleted file mode 100644 index 7aab2809..00000000 --- a/metrics/src/mcp-server/extensions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ZodRawShape } from "zod"; -import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; -import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; -import { ToolDefinition } from "./tools.js"; - -export type Register = { - tool: (def: ToolDefinition) => void; - resource: (def: ResourceDefinition) => void; - resourceTemplate: (def: ResourceTemplateDefinition) => void; - prompt: ( - prompt: PromptDefinition, - ) => void; -}; diff --git a/metrics/src/mcp-server/mcp-server.ts b/metrics/src/mcp-server/mcp-server.ts deleted file mode 100644 index d85e913c..00000000 --- a/metrics/src/mcp-server/mcp-server.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildApplication, buildRouteMap, run } from "@stricli/core"; -import process from "node:process"; -import { buildContext } from "./cli.js"; -import { startCommand } from "./cli/start/command.js"; - -const routes = buildRouteMap({ - routes: { - start: startCommand, - }, - docs: { - brief: "MCP server CLI", - }, -}); - -export const app = buildApplication(routes, { - name: "mcp", - versionInfo: { - currentVersion: "0.4.3", - }, -}); - -run(app, process.argv.slice(2), buildContext(process)); diff --git a/metrics/src/mcp-server/prompts.ts b/metrics/src/mcp-server/prompts.ts deleted file mode 100644 index 0cc049c6..00000000 --- a/metrics/src/mcp-server/prompts.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; -import { - objectOutputType, - ZodOptional, - ZodType, - ZodTypeAny, - ZodTypeDef, -} from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; - -// '@modelcontextprotocol/sdk' currently does not export this type -export type PromptArgsRawShape = { - [k: string]: - | ZodType - | ZodOptional>; -}; - -export type PromptDefinition< - Args extends undefined | PromptArgsRawShape = undefined, -> = Args extends PromptArgsRawShape ? { - name: string; - description?: string; - scopes?: MCPScope[]; - args: Args; - prompt: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - } - : { - name: string; - description?: string; - scopes?: MCPScope[]; - args?: undefined; - prompt: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - }; - -// Optional function to assist with formatting prompt results -export async function formatResult(value: string): Promise { - return { - messages: [ - { - role: "user", - content: { - type: "text", - text: value, - }, - }, - ], - }; -} - -export function createRegisterPrompt( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): ( - prompt: PromptDefinition, -) => void { - return ( - prompt: PromptDefinition, - ): void => { - const scopes = prompt.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (prompt.args) { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } else { - server.prompt( - prompt.name, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } - } else { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - async (ctx) => prompt.prompt(sdk, ctx), - ); - } else { - server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx)); - } - } - - logger.debug("Registered prompt", { name: prompt.name }); - }; -} diff --git a/metrics/src/mcp-server/resources.ts b/metrics/src/mcp-server/resources.ts deleted file mode 100644 index ac05763b..00000000 --- a/metrics/src/mcp-server/resources.ts +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - McpServer, - ResourceMetadata, - ResourceTemplate, -} from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ReadResourceCallback = ( - client: AvalancheCore, - uri: URL, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceDefinition = { - name: string; - description?: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: string; - read: ReadResourceCallback; -}; - -export type ReadResourceTemplateCallback = ( - client: AvalancheCore, - uri: URL, - vars: Variables, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceTemplateDefinition = { - name: string; - description: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: ResourceTemplate; - read: ReadResourceTemplateCallback; -}; - -// Optional function to assist with formatting resource results -export async function formatResult( - value: unknown, - uri: URL, - init: { mimeType?: string | undefined; response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { contents: [] }; - } - - let contents: ReadResourceResult["contents"] = []; - - const mimeType = init.mimeType ?? init.response?.headers.get("content-type") - ?? ""; - - if (mimeType.search(/\bjson\b/g) !== -1) { - contents = [{ uri: uri.toString(), mimeType, text: JSON.stringify(value) }]; - } else if ( - mimeType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - contents = [ - { - uri: uri.toString(), - mimeType: "application/json", - text: await stringifySSEToJSON(value), - }, - ]; - } else if ( - (mimeType.startsWith("text/") || mimeType.startsWith("application/")) - && typeof value === "string" - ) { - contents = [{ uri: uri.toString(), mimeType, text: value }]; - } else if (isBinaryData(value)) { - const blob = await valueToBase64(value); - contents = blob == null ? [] : [{ uri: uri.toString(), blob, mimeType }]; - } else { - throw new Error(`Unsupported content type: "${mimeType}"`); - } - - return { contents }; -} - -async function stringifySSEToJSON( - value: AsyncIterable, -): Promise { - const payloads = []; - - for await (const chunk of value) { - payloads.push(chunk); - } - - return JSON.stringify(payloads); -} - -export function createRegisterResource( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceDefinition) => void { - return (resource: ResourceDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, ctx) => resource.read(sdk, uri, ctx), - ); - - logger.debug("Registered resource", { name: resource.name }); - }; -} - -export function createRegisterResourceTemplate( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceTemplateDefinition) => void { - return (resource: ResourceTemplateDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, vars, ctx) => resource.read(sdk, uri, vars, ctx), - ); - - logger.debug("Registered resource template", { name: resource.name }); - }; -} diff --git a/metrics/src/mcp-server/scopes.ts b/metrics/src/mcp-server/scopes.ts deleted file mode 100644 index c25696d4..00000000 --- a/metrics/src/mcp-server/scopes.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const mcpScopes = [] as const; - -export type MCPScope = (typeof mcpScopes)[number]; diff --git a/metrics/src/mcp-server/server.ts b/metrics/src/mcp-server/server.ts deleted file mode 100644 index bffe7457..00000000 --- a/metrics/src/mcp-server/server.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { AvalancheCore } from "../core.js"; -import { SDKOptions } from "../lib/config.js"; -import type { ConsoleLogger } from "./console-logger.js"; -import { createRegisterPrompt } from "./prompts.js"; -import { - createRegisterResource, - createRegisterResourceTemplate, -} from "./resources.js"; -import { MCPScope } from "./scopes.js"; -import { createRegisterTool } from "./tools.js"; -import { tool$metricsChainsGet } from "./tools/metricsChainsGet.js"; -import { tool$metricsChainsGetMetrics } from "./tools/metricsChainsGetMetrics.js"; -import { tool$metricsChainsGetRollingWindowMetrics } from "./tools/metricsChainsGetRollingWindowMetrics.js"; -import { tool$metricsChainsGetTeleporterMetrics } from "./tools/metricsChainsGetTeleporterMetrics.js"; -import { tool$metricsChainsList } from "./tools/metricsChainsList.js"; -import { tool$metricsChainsListBTCbBridgersAboveThreshold } from "./tools/metricsChainsListBTCbBridgersAboveThreshold.js"; -import { tool$metricsChainsListNftHolders } from "./tools/metricsChainsListNftHolders.js"; -import { tool$metricsChainsListTokenHoldersAboveThreshold } from "./tools/metricsChainsListTokenHoldersAboveThreshold.js"; -import { tool$metricsHealthCheck } from "./tools/metricsHealthCheck.js"; -import { tool$metricsL1ValidatorsGetMetricsByNodeId } from "./tools/metricsL1ValidatorsGetMetricsByNodeId.js"; -import { tool$metricsL1ValidatorsGetMetricsBySubnetId } from "./tools/metricsL1ValidatorsGetMetricsBySubnetId.js"; -import { tool$metricsL1ValidatorsGetMetricsByValidationId } from "./tools/metricsL1ValidatorsGetMetricsByValidationId.js"; -import { tool$metricsL1ValidatorsListMetrics } from "./tools/metricsL1ValidatorsListMetrics.js"; -import { tool$metricsNetworksGetStakingMetrics } from "./tools/metricsNetworksGetStakingMetrics.js"; -import { tool$metricsSubnetsGetValidators } from "./tools/metricsSubnetsGetValidators.js"; - -export function createMCPServer(deps: { - logger: ConsoleLogger; - allowedTools?: string[] | undefined; - scopes?: MCPScope[] | undefined; - serverURL?: string | undefined; - chainId?: SDKOptions["chainId"] | undefined; - network?: SDKOptions["network"] | undefined; - serverIdx?: SDKOptions["serverIdx"] | undefined; -}) { - const server = new McpServer({ - name: "Avalanche", - version: "0.4.3", - }); - - const client = new AvalancheCore({ - chainId: deps.chainId, - network: deps.network, - serverURL: deps.serverURL, - serverIdx: deps.serverIdx, - }); - - const scopes = new Set(deps.scopes); - - const allowedTools = deps.allowedTools && new Set(deps.allowedTools); - const tool = createRegisterTool( - deps.logger, - server, - client, - scopes, - allowedTools, - ); - const resource = createRegisterResource(deps.logger, server, client, scopes); - const resourceTemplate = createRegisterResourceTemplate( - deps.logger, - server, - client, - scopes, - ); - const prompt = createRegisterPrompt(deps.logger, server, client, scopes); - const register = { tool, resource, resourceTemplate, prompt }; - void register; // suppress unused warnings - - tool(tool$metricsHealthCheck); - tool(tool$metricsChainsList); - tool(tool$metricsChainsGet); - tool(tool$metricsChainsGetMetrics); - tool(tool$metricsChainsGetTeleporterMetrics); - tool(tool$metricsChainsGetRollingWindowMetrics); - tool(tool$metricsChainsListNftHolders); - tool(tool$metricsChainsListTokenHoldersAboveThreshold); - tool(tool$metricsChainsListBTCbBridgersAboveThreshold); - tool(tool$metricsNetworksGetStakingMetrics); - tool(tool$metricsL1ValidatorsListMetrics); - tool(tool$metricsL1ValidatorsGetMetricsByValidationId); - tool(tool$metricsL1ValidatorsGetMetricsByNodeId); - tool(tool$metricsL1ValidatorsGetMetricsBySubnetId); - tool(tool$metricsSubnetsGetValidators); - - return server; -} diff --git a/metrics/src/mcp-server/shared.ts b/metrics/src/mcp-server/shared.ts deleted file mode 100644 index 9dc6d2f6..00000000 --- a/metrics/src/mcp-server/shared.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { bytesToBase64 } from "../lib/base64.js"; - -type BinaryData = - | Uint8Array - | ArrayBuffer - | Blob - | ReadableStream - | Response - | string; - -export async function consumeStream( - stream: ReadableStream, -): Promise { - const reader = stream.getReader(); - const chunks: Uint8Array[] = []; - - try { - while (true) { - const { done, value } = await reader.read(); - if (value != null) chunks.push(value); - if (done) break; - } - } finally { - reader.releaseLock(); - } - - return new Uint8Array(await new Blob(chunks).arrayBuffer()); -} - -export function isAsyncIterable( - value: unknown, -): value is AsyncIterable { - return ( - typeof value === "object" && value != null && Symbol.asyncIterator in value - ); -} - -export function isBinaryData(value: unknown): value is BinaryData { - return ( - value instanceof Uint8Array - || value instanceof ArrayBuffer - || value instanceof Blob - || value instanceof ReadableStream - || value instanceof Response - || typeof value === "string" - ); -} - -const base64Schema = z.string().base64(); - -export async function valueToBase64( - value: BinaryData | null | undefined, -): Promise { - if (value == null) { - return null; - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (value instanceof ArrayBuffer) { - return bytesToBase64(new Uint8Array(value)); - } else if (value instanceof Response || value instanceof Blob) { - return bytesToBase64(new Uint8Array(await value.arrayBuffer())); - } else if (value instanceof ReadableStream) { - return bytesToBase64(await consumeStream(value)); - } else if (typeof value === "string") { - return base64Schema.parse(value); - } else { - value satisfies never; - throw new Error(`Unsupported image value type: ${typeof value}`); - } -} diff --git a/metrics/src/mcp-server/tools.ts b/metrics/src/mcp-server/tools.ts deleted file mode 100644 index 0cfcb691..00000000 --- a/metrics/src/mcp-server/tools.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ToolDefinition = - Args extends ZodRawShape ? { - name: string; - description: string; - scopes?: MCPScope[]; - args: Args; - tool: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - } - : { - name: string; - description: string; - scopes?: MCPScope[]; - args?: undefined; - tool: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - }; - -// Optional function to assist with formatting tool results -export async function formatResult( - value: unknown, - init: { response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { content: [] }; - } - - const { response } = init; - const contentType = response?.headers.get("content-type") ?? ""; - let content: CallToolResult["content"] = []; - - if (contentType.search(/\bjson\b/g)) { - content = [{ type: "text", text: JSON.stringify(value) }]; - } else if ( - contentType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - content = await consumeSSE(value); - } else if (contentType.startsWith("text/") && typeof value === "string") { - content = [{ type: "text", text: value }]; - } else if (isBinaryData(value) && contentType.startsWith("image/")) { - const data = await valueToBase64(value); - content = data == null - ? [] - : [{ type: "image", data, mimeType: contentType }]; - } else { - return { - content: [{ - type: "text", - text: `Unsupported content type: "${contentType}"`, - }], - isError: true, - }; - } - - return { content }; -} - -async function consumeSSE( - value: AsyncIterable, -): Promise { - const content: CallToolResult["content"] = []; - - for await (const chunk of value) { - if (typeof chunk === "string") { - content.push({ type: "text", text: chunk }); - } else { - content.push({ type: "text", text: JSON.stringify(chunk) }); - } - } - - return content; -} - -export function createRegisterTool( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, - allowedTools?: Set, -): (tool: ToolDefinition) => void { - return (tool: ToolDefinition): void => { - if (allowedTools && !allowedTools.has(tool.name)) { - return; - } - - const scopes = tool.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (tool.args) { - server.tool(tool.name, tool.description, tool.args, async (args, ctx) => { - return tool.tool(sdk, args, ctx); - }); - } else { - server.tool(tool.name, tool.description, async (ctx) => { - return tool.tool(sdk, ctx); - }); - } - - logger.debug("Registered tool", { name: tool.name }); - }; -} diff --git a/metrics/src/mcp-server/tools/metricsChainsGet.ts b/metrics/src/mcp-server/tools/metricsChainsGet.ts deleted file mode 100644 index 72eefe52..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsGet } from "../../funcs/metricsChainsGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetChainRequest$inboundSchema, -}; - -export const tool$metricsChainsGet: ToolDefinition = { - name: "metrics-chains-get", - description: `Get chain information for supported blockchain - -Get chain information for Metrics API supported blockchain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsGetMetrics.ts b/metrics/src/mcp-server/tools/metricsChainsGetMetrics.ts deleted file mode 100644 index 21013e98..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsGetMetrics.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsGetMetrics } from "../../funcs/metricsChainsGetMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetEvmChainMetricsRequest$inboundSchema, -}; - -export const tool$metricsChainsGetMetrics: ToolDefinition = { - name: "metrics-chains-get-metrics", - description: `Get metrics for EVM chains - -EVM chain metrics are available for all Avalanche L1s on _Mainnet_ and _Fuji_ (testnet). You can request metrics by EVM chain ID. See the \`/chains\` endpoint for all supported chains. - -All metrics are updated several times every hour. Each metric data point has a \`value\` and \`timestamp\` (Unix timestamp in seconds). All metric values include data within the duration of the associated timestamp plus the requested \`timeInterval\`. All timestamps are fixed to the hour. When requesting a timeInterval of **day**, **week**, or **month**, the timestamp will be 0:00 UTC of the day, Monday of the week, or first day of the month, respectively. The latest data point in any response may change on each update. - -### Metrics - -activeAddresses: The number of distinct addresses seen within the selected \`timeInterval\` starting at the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. - -activeSenders: This metric follows the same structure as activeAddresses, but instead only counts addresses that appear in the “from” field of the respective transaction or transfer log event. - -cumulativeTxCount: The cumulative transaction count from genesis up until 24 hours after the timestamp. This aggregation can be considered a “rolling sum” of the transaction count metric (txCount). Only \`timeInterval=day\` supported. - -cumulativeAddresses: The cumulative count of unique addresses from genesis up until 24 hours after the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. Only \`timeInterval=day\` supported. - -cumulativeContracts: The cumulative count of contracts created from genesis up until the timestamp. Contracts are counted by looking for the CREATE, CREATE2, and CREATE3 call types in all transaction traces (aka internal transactions). Only \`timeInterval=day\` supported. - -cumulativeDeployers: The cumulative count of unique contract deployers from genesis up until 24 hours after the timestamp. Deployers counted are those that appear in the “from” field of transaction traces with the CREATE, CREATE2, and CREATE3 call types. Only \`timeInterval=day\` supported. - -gasUsed: The amount of gas used by transactions within the requested timeInterval starting at the timestamp. - -txCount: The amount of transactions within the requested timeInterval starting at the timestamp. - -avgGps: The average Gas used Per Second (GPS) within the day beginning at the timestamp. The average is calculated by taking the sum of gas used by all blocks within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only \`timeInterval=day\` supported. - -maxGps: The max Gas used Per Second (GPS) measured within the day beginning at the timestamp. Each GPS data point is calculated using the gas used in a single block divided by the time since the last block. Only \`timeInterval=day\` supported. - -avgTps: The average Transactions Per Second (TPS) within the day beginning at the timestamp. The average is calculated by taking the sum of transactions within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only \`timeInterval=day\` supported. - -maxTps: The max Transactions Per Second (TPS) measured within the day beginning at the timestamp. Each TPS data point is calculated by taking the number of transactions in a single block and dividing it by the time since the last block. Only \`timeInterval=day\` supported. - -avgGasPrice: The average gas price within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only \`timeInterval=day\` supported. - -maxGasPrice: The max gas price seen within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only \`timeInterval=day\` supported. - -feesPaid: The sum of transaction fees paid within the day beginning at the timestamp. The fee is calculated as the gas used multiplied by the gas price as reported in all transaction receipts. Only \`timeInterval=day\` supported.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsGetMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts b/metrics/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts deleted file mode 100644 index 56593a6b..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsGetRollingWindowMetrics } from "../../funcs/metricsChainsGetRollingWindowMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetEvmChainRollingWindowMetricsRequest$inboundSchema, -}; - -export const tool$metricsChainsGetRollingWindowMetrics: ToolDefinition< - typeof args -> = { - name: "metrics-chains-get-rolling-window-metrics", - description: `Get rolling window metrics for EVM chains - -Gets the rolling window metrics for an EVM chain for the last hour, day, month, year, and all time.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsGetRollingWindowMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts b/metrics/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts deleted file mode 100644 index 818368a5..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsGetTeleporterMetrics } from "../../funcs/metricsChainsGetTeleporterMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTeleporterMetricsByChainRequest$inboundSchema, -}; - -export const tool$metricsChainsGetTeleporterMetrics: ToolDefinition< - typeof args -> = { - name: "metrics-chains-get-teleporter-metrics", - description: `Get teleporter metrics for EVM chains - -Gets teleporter metrics for an EVM chain.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsGetTeleporterMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsList.ts b/metrics/src/mcp-server/tools/metricsChainsList.ts deleted file mode 100644 index 706074ac..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsList } from "../../funcs/metricsChainsList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListChainsRequest$inboundSchema, -}; - -export const tool$metricsChainsList: ToolDefinition = { - name: "metrics-chains-list", - description: `Get a list of supported blockchains - -Get a list of Metrics API supported blockchains. This endpoint is paginated and supports a maximum page size of 10000.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts b/metrics/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts deleted file mode 100644 index e7f8c6b2..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsListBTCbBridgersAboveThreshold } from "../../funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAddressesByBtcbBridgedRequest$inboundSchema, -}; - -export const tool$metricsChainsListBTCbBridgersAboveThreshold: ToolDefinition< - typeof args -> = { - name: "metrics-chains-list-BT-cb-bridgers-above-threshold", - description: `Get addresses by BTCb bridged balance - -Get list of addresses and their net bridged amounts that have bridged more than a certain threshold.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsListBTCbBridgersAboveThreshold( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsListNftHolders.ts b/metrics/src/mcp-server/tools/metricsChainsListNftHolders.ts deleted file mode 100644 index 8cc887ac..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsListNftHolders.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsListNftHolders } from "../../funcs/metricsChainsListNftHolders.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetNftHoldersByContractAddressRequest$inboundSchema, -}; - -export const tool$metricsChainsListNftHolders: ToolDefinition = { - name: "metrics-chains-list-nft-holders", - description: `Get NFT holders by contract address - -Get list of NFT holders and number of NFTs held by contract address.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsListNftHolders( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts b/metrics/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts deleted file mode 100644 index 65621375..00000000 --- a/metrics/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsListTokenHoldersAboveThreshold } from "../../funcs/metricsChainsListTokenHoldersAboveThreshold.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAddressesByBalanceOverTimeRequest$inboundSchema, -}; - -export const tool$metricsChainsListTokenHoldersAboveThreshold: ToolDefinition< - typeof args -> = { - name: "metrics-chains-list-token-holders-above-threshold", - description: `Get addresses by balance over time - -Get list of addresses and their latest balances that have held more than a certain threshold of a given token during the specified time frame.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsChainsListTokenHoldersAboveThreshold( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsHealthCheck.ts b/metrics/src/mcp-server/tools/metricsHealthCheck.ts deleted file mode 100644 index 2dce8970..00000000 --- a/metrics/src/mcp-server/tools/metricsHealthCheck.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsHealthCheck } from "../../funcs/metricsHealthCheck.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$metricsHealthCheck: ToolDefinition = { - name: "metrics-health-check", - description: `Get the health of the service - -Check the health of the service.`, - tool: async (client, ctx) => { - const [result, apiCall] = await metricsHealthCheck( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts b/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts deleted file mode 100644 index e81117f1..00000000 --- a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsL1ValidatorsGetMetricsByNodeId } from "../../funcs/metricsL1ValidatorsGetMetricsByNodeId.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetMetricsByNodeIdRequest$inboundSchema, -}; - -export const tool$metricsL1ValidatorsGetMetricsByNodeId: ToolDefinition< - typeof args -> = { - name: "metrics-l1-validators-get-metrics-by-node-id", - description: `Get metric values with given node id and timestamp range - -Get given metric values for a given node id with or without a timestamp range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsL1ValidatorsGetMetricsByNodeId( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts b/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts deleted file mode 100644 index 635dd49e..00000000 --- a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsL1ValidatorsGetMetricsBySubnetId } from "../../funcs/metricsL1ValidatorsGetMetricsBySubnetId.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetMetricsBySubnetIdRequest$inboundSchema, -}; - -export const tool$metricsL1ValidatorsGetMetricsBySubnetId: ToolDefinition< - typeof args -> = { - name: "metrics-l1-validators-get-metrics-by-subnet-id", - description: `Get metric values with given subnet ID and timestamp range - -Get given metric values for a given subnet ID with or without a timestamp range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsL1ValidatorsGetMetricsBySubnetId( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts b/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts deleted file mode 100644 index 2091cefd..00000000 --- a/metrics/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsL1ValidatorsGetMetricsByValidationId } from "../../funcs/metricsL1ValidatorsGetMetricsByValidationId.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetMetricsByValidationIdRequest$inboundSchema, -}; - -export const tool$metricsL1ValidatorsGetMetricsByValidationId: ToolDefinition< - typeof args -> = { - name: "metrics-l1-validators-get-metrics-by-validation-id", - description: `Get metric values with given validation id and timestamp range - -Get given metric values for a given validation id with or without a timestamp range.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsL1ValidatorsGetMetricsByValidationId( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts b/metrics/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts deleted file mode 100644 index 3291e4e3..00000000 --- a/metrics/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsL1ValidatorsListMetrics } from "../../funcs/metricsL1ValidatorsListMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetTotalL1ValidatorMetricsRequest$inboundSchema, -}; - -export const tool$metricsL1ValidatorsListMetrics: ToolDefinition = - { - name: "metrics-l1-validators-list-metrics", - description: `Get given metric for all validators - -Get given metric's value for all validators.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsL1ValidatorsListMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, - }; diff --git a/metrics/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts b/metrics/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts deleted file mode 100644 index 9423e99a..00000000 --- a/metrics/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsNetworksGetStakingMetrics } from "../../funcs/metricsNetworksGetStakingMetrics.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetStakingMetricsRequest$inboundSchema, -}; - -export const tool$metricsNetworksGetStakingMetrics: ToolDefinition< - typeof args -> = { - name: "metrics-networks-get-staking-metrics", - description: `Get staking metrics for a given subnet - -Gets staking metrics for a given subnet.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsNetworksGetStakingMetrics( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/mcp-server/tools/metricsSubnetsGetValidators.ts b/metrics/src/mcp-server/tools/metricsSubnetsGetValidators.ts deleted file mode 100644 index 39206d12..00000000 --- a/metrics/src/mcp-server/tools/metricsSubnetsGetValidators.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsSubnetsGetValidators } from "../../funcs/metricsSubnetsGetValidators.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetValidatorsByDateRangeRequest$inboundSchema, -}; - -export const tool$metricsSubnetsGetValidators: ToolDefinition = { - name: "metrics-subnets-get-validators", - description: `Get addresses running validators during a given time frame - -Get list of addresses and AddValidatorTx timestamps set to receive awards for validation periods during the specified time frame.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await metricsSubnetsGetValidators( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/metrics/src/models/components/addressdetails.ts b/metrics/src/models/components/addressdetails.ts deleted file mode 100644 index f935cac9..00000000 --- a/metrics/src/models/components/addressdetails.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddressDetails = { - /** - * An EVM address. - */ - address: string; - /** - * Route dependent value associated with an address at a given point in time. - */ - sortKey: string; -}; - -/** @internal */ -export const AddressDetails$inboundSchema: z.ZodType< - AddressDetails, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - sortKey: z.string(), -}); - -/** @internal */ -export type AddressDetails$Outbound = { - address: string; - sortKey: string; -}; - -/** @internal */ -export const AddressDetails$outboundSchema: z.ZodType< - AddressDetails$Outbound, - z.ZodTypeDef, - AddressDetails -> = z.object({ - address: z.string(), - sortKey: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddressDetails$ { - /** @deprecated use `AddressDetails$inboundSchema` instead. */ - export const inboundSchema = AddressDetails$inboundSchema; - /** @deprecated use `AddressDetails$outboundSchema` instead. */ - export const outboundSchema = AddressDetails$outboundSchema; - /** @deprecated use `AddressDetails$Outbound` instead. */ - export type Outbound = AddressDetails$Outbound; -} - -export function addressDetailsToJSON(addressDetails: AddressDetails): string { - return JSON.stringify(AddressDetails$outboundSchema.parse(addressDetails)); -} - -export function addressDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddressDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddressDetails' from JSON`, - ); -} diff --git a/metrics/src/models/components/chain.ts b/metrics/src/models/components/chain.ts deleted file mode 100644 index cc2a7e27..00000000 --- a/metrics/src/models/components/chain.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - NetworkType, - NetworkType$inboundSchema, - NetworkType$outboundSchema, -} from "./networktype.js"; - -export type Chain = { - /** - * EVM ChainID for the blockchain. - */ - evmChainId: number; - /** - * Blockchain alias for easy identification of blockchains. - */ - chainName: string; - /** - * Unique blockchain ID for this blockchain. - */ - blockchainId: string; - /** - * Subnet ID this blockchain belongs to. - */ - subnetId: string; - /** - * Network on which this blockchain or subnet is created on. - */ - network: NetworkType; -}; - -/** @internal */ -export const Chain$inboundSchema: z.ZodType = z - .object({ - evmChainId: z.number(), - chainName: z.string(), - blockchainId: z.string(), - subnetId: z.string(), - network: NetworkType$inboundSchema, - }); - -/** @internal */ -export type Chain$Outbound = { - evmChainId: number; - chainName: string; - blockchainId: string; - subnetId: string; - network: string; -}; - -/** @internal */ -export const Chain$outboundSchema: z.ZodType< - Chain$Outbound, - z.ZodTypeDef, - Chain -> = z.object({ - evmChainId: z.number(), - chainName: z.string(), - blockchainId: z.string(), - subnetId: z.string(), - network: NetworkType$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Chain$ { - /** @deprecated use `Chain$inboundSchema` instead. */ - export const inboundSchema = Chain$inboundSchema; - /** @deprecated use `Chain$outboundSchema` instead. */ - export const outboundSchema = Chain$outboundSchema; - /** @deprecated use `Chain$Outbound` instead. */ - export type Outbound = Chain$Outbound; -} - -export function chainToJSON(chain: Chain): string { - return JSON.stringify(Chain$outboundSchema.parse(chain)); -} - -export function chainFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Chain$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Chain' from JSON`, - ); -} diff --git a/metrics/src/models/components/chainmetric.ts b/metrics/src/models/components/chainmetric.ts deleted file mode 100644 index 7a105c60..00000000 --- a/metrics/src/models/components/chainmetric.ts +++ /dev/null @@ -1,44 +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 ChainMetric = { - ActiveAddresses: "activeAddresses", - ActiveSenders: "activeSenders", - CumulativeTxCount: "cumulativeTxCount", - CumulativeAddresses: "cumulativeAddresses", - CumulativeContracts: "cumulativeContracts", - CumulativeDeployers: "cumulativeDeployers", - GasUsed: "gasUsed", - TxCount: "txCount", - AvgGps: "avgGps", - MaxGps: "maxGps", - AvgTps: "avgTps", - MaxTps: "maxTps", - AvgGasPrice: "avgGasPrice", - MaxGasPrice: "maxGasPrice", - FeesPaid: "feesPaid", -} as const; -export type ChainMetric = ClosedEnum; - -/** @internal */ -export const ChainMetric$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(ChainMetric); - -/** @internal */ -export const ChainMetric$outboundSchema: z.ZodNativeEnum = - ChainMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainMetric$ { - /** @deprecated use `ChainMetric$inboundSchema` instead. */ - export const inboundSchema = ChainMetric$inboundSchema; - /** @deprecated use `ChainMetric$outboundSchema` instead. */ - export const outboundSchema = ChainMetric$outboundSchema; -} diff --git a/metrics/src/models/components/chainrollingwindowmetric.ts b/metrics/src/models/components/chainrollingwindowmetric.ts deleted file mode 100644 index f5bf3a1b..00000000 --- a/metrics/src/models/components/chainrollingwindowmetric.ts +++ /dev/null @@ -1,42 +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 ChainRollingWindowMetric = { - GasUsed: "gasUsed", - TxCount: "txCount", - AvgGps: "avgGps", - MaxGps: "maxGps", - AvgTps: "avgTps", - MaxTps: "maxTps", - AvgGasPrice: "avgGasPrice", - MaxGasPrice: "maxGasPrice", - FeesPaid: "feesPaid", -} as const; -export type ChainRollingWindowMetric = ClosedEnum< - typeof ChainRollingWindowMetric ->; - -/** @internal */ -export const ChainRollingWindowMetric$inboundSchema: z.ZodNativeEnum< - typeof ChainRollingWindowMetric -> = z.nativeEnum(ChainRollingWindowMetric); - -/** @internal */ -export const ChainRollingWindowMetric$outboundSchema: z.ZodNativeEnum< - typeof ChainRollingWindowMetric -> = ChainRollingWindowMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ChainRollingWindowMetric$ { - /** @deprecated use `ChainRollingWindowMetric$inboundSchema` instead. */ - export const inboundSchema = ChainRollingWindowMetric$inboundSchema; - /** @deprecated use `ChainRollingWindowMetric$outboundSchema` instead. */ - export const outboundSchema = ChainRollingWindowMetric$outboundSchema; -} diff --git a/metrics/src/models/components/chainrollingwindowmetricsvalue.ts b/metrics/src/models/components/chainrollingwindowmetricsvalue.ts deleted file mode 100644 index 4e83fc95..00000000 --- a/metrics/src/models/components/chainrollingwindowmetricsvalue.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ChainRollingWindowMetricsValue = { - /** - * Aggregated value for the current metrics in last hour. - */ - lastHour: number; - /** - * Aggregated value for the current metrics in last day. - */ - lastDay: number; - /** - * Aggregated value for the current metrics in last month. - */ - lastMonth: number; - /** - * Aggregated value for the current metrics in last year. - */ - lastYear: number; - /** - * Aggregated value for the current metrics for all time. - */ - allTime: number; -}; - -/** @internal */ -export const ChainRollingWindowMetricsValue$inboundSchema: z.ZodType< - ChainRollingWindowMetricsValue, - z.ZodTypeDef, - unknown -> = z.object({ - lastHour: z.number(), - lastDay: z.number(), - lastMonth: z.number(), - lastYear: z.number(), - allTime: z.number(), -}); - -/** @internal */ -export type ChainRollingWindowMetricsValue$Outbound = { - lastHour: number; - lastDay: number; - lastMonth: number; - lastYear: number; - allTime: number; -}; - -/** @internal */ -export const ChainRollingWindowMetricsValue$outboundSchema: z.ZodType< - ChainRollingWindowMetricsValue$Outbound, - z.ZodTypeDef, - ChainRollingWindowMetricsValue -> = z.object({ - lastHour: z.number(), - lastDay: z.number(), - lastMonth: z.number(), - lastYear: z.number(), - allTime: 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 ChainRollingWindowMetricsValue$ { - /** @deprecated use `ChainRollingWindowMetricsValue$inboundSchema` instead. */ - export const inboundSchema = ChainRollingWindowMetricsValue$inboundSchema; - /** @deprecated use `ChainRollingWindowMetricsValue$outboundSchema` instead. */ - export const outboundSchema = ChainRollingWindowMetricsValue$outboundSchema; - /** @deprecated use `ChainRollingWindowMetricsValue$Outbound` instead. */ - export type Outbound = ChainRollingWindowMetricsValue$Outbound; -} - -export function chainRollingWindowMetricsValueToJSON( - chainRollingWindowMetricsValue: ChainRollingWindowMetricsValue, -): string { - return JSON.stringify( - ChainRollingWindowMetricsValue$outboundSchema.parse( - chainRollingWindowMetricsValue, - ), - ); -} - -export function chainRollingWindowMetricsValueFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ChainRollingWindowMetricsValue$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ChainRollingWindowMetricsValue' from JSON`, - ); -} diff --git a/metrics/src/models/components/globalparamnetwork.ts b/metrics/src/models/components/globalparamnetwork.ts deleted file mode 100644 index 41aa1b36..00000000 --- a/metrics/src/models/components/globalparamnetwork.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 GlobalParamNetwork = { - Mainnet: "mainnet", - Fuji: "fuji", - Testnet: "testnet", -} as const; -export type GlobalParamNetwork = ClosedEnum; - -/** @internal */ -export const GlobalParamNetwork$inboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = z.nativeEnum(GlobalParamNetwork); - -/** @internal */ -export const GlobalParamNetwork$outboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = GlobalParamNetwork$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GlobalParamNetwork$ { - /** @deprecated use `GlobalParamNetwork$inboundSchema` instead. */ - export const inboundSchema = GlobalParamNetwork$inboundSchema; - /** @deprecated use `GlobalParamNetwork$outboundSchema` instead. */ - export const outboundSchema = GlobalParamNetwork$outboundSchema; -} diff --git a/metrics/src/models/components/healthcheckresultdto.ts b/metrics/src/models/components/healthcheckresultdto.ts deleted file mode 100644 index 97df22fe..00000000 --- a/metrics/src/models/components/healthcheckresultdto.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HealthIndicatorResultDto, - HealthIndicatorResultDto$inboundSchema, - HealthIndicatorResultDto$Outbound, - HealthIndicatorResultDto$outboundSchema, -} from "./healthindicatorresultdto.js"; - -export const HealthCheckResultDtoStatus = { - Error: "error", - Ok: "ok", - ShuttingDown: "shutting_down", -} as const; -export type HealthCheckResultDtoStatus = ClosedEnum< - typeof HealthCheckResultDtoStatus ->; - -export type HealthCheckResultDto = { - status?: HealthCheckResultDtoStatus | undefined; - info?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = z.nativeEnum(HealthCheckResultDtoStatus); - -/** @internal */ -export const HealthCheckResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = HealthCheckResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDtoStatus$ { - /** @deprecated use `HealthCheckResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDtoStatus$inboundSchema; - /** @deprecated use `HealthCheckResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthCheckResultDto$inboundSchema: z.ZodType< - HealthCheckResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthCheckResultDtoStatus$inboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)).optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$inboundSchema).optional(), -}); - -/** @internal */ -export type HealthCheckResultDto$Outbound = { - status?: string | undefined; - info?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto$Outbound } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDto$outboundSchema: z.ZodType< - HealthCheckResultDto$Outbound, - z.ZodTypeDef, - HealthCheckResultDto -> = z.object({ - status: HealthCheckResultDtoStatus$outboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDto$ { - /** @deprecated use `HealthCheckResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDto$inboundSchema; - /** @deprecated use `HealthCheckResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDto$outboundSchema; - /** @deprecated use `HealthCheckResultDto$Outbound` instead. */ - export type Outbound = HealthCheckResultDto$Outbound; -} - -export function healthCheckResultDtoToJSON( - healthCheckResultDto: HealthCheckResultDto, -): string { - return JSON.stringify( - HealthCheckResultDto$outboundSchema.parse(healthCheckResultDto), - ); -} - -export function healthCheckResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthCheckResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthCheckResultDto' from JSON`, - ); -} diff --git a/metrics/src/models/components/healthindicatorresultdto.ts b/metrics/src/models/components/healthindicatorresultdto.ts deleted file mode 100644 index 9f05c384..00000000 --- a/metrics/src/models/components/healthindicatorresultdto.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Status of the health indicator. - */ -export const HealthIndicatorResultDtoStatus = { - Up: "up", - Down: "down", -} as const; -/** - * Status of the health indicator. - */ -export type HealthIndicatorResultDtoStatus = ClosedEnum< - typeof HealthIndicatorResultDtoStatus ->; - -export type HealthIndicatorResultDto = { - /** - * Status of the health indicator. - */ - status?: HealthIndicatorResultDtoStatus | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = z.nativeEnum(HealthIndicatorResultDtoStatus); - -/** @internal */ -export const HealthIndicatorResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = HealthIndicatorResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDtoStatus$ { - /** @deprecated use `HealthIndicatorResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDtoStatus$inboundSchema; - /** @deprecated use `HealthIndicatorResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthIndicatorResultDto$inboundSchema: z.ZodType< - HealthIndicatorResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthIndicatorResultDtoStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type HealthIndicatorResultDto$Outbound = { - status?: string | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDto$outboundSchema: z.ZodType< - HealthIndicatorResultDto$Outbound, - z.ZodTypeDef, - HealthIndicatorResultDto -> = z.object({ - status: HealthIndicatorResultDtoStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDto$ { - /** @deprecated use `HealthIndicatorResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDto$inboundSchema; - /** @deprecated use `HealthIndicatorResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDto$outboundSchema; - /** @deprecated use `HealthIndicatorResultDto$Outbound` instead. */ - export type Outbound = HealthIndicatorResultDto$Outbound; -} - -export function healthIndicatorResultDtoToJSON( - healthIndicatorResultDto: HealthIndicatorResultDto, -): string { - return JSON.stringify( - HealthIndicatorResultDto$outboundSchema.parse(healthIndicatorResultDto), - ); -} - -export function healthIndicatorResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthIndicatorResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthIndicatorResultDto' from JSON`, - ); -} diff --git a/metrics/src/models/components/index.ts b/metrics/src/models/components/index.ts deleted file mode 100644 index e3541d2e..00000000 --- a/metrics/src/models/components/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./addressdetails.js"; -export * from "./chain.js"; -export * from "./chainmetric.js"; -export * from "./chainrollingwindowmetric.js"; -export * from "./chainrollingwindowmetricsvalue.js"; -export * from "./globalparamnetwork.js"; -export * from "./healthcheckresultdto.js"; -export * from "./healthindicatorresultdto.js"; -export * from "./listchainsresponse.js"; -export * from "./lookingglassresponse.js"; -export * from "./metricsapiresponse.js"; -export * from "./metricsvalue.js"; -export * from "./network.js"; -export * from "./networkmetric.js"; -export * from "./networktype.js"; -export * from "./nftholdersresponse.js"; -export * from "./pchainaddressdetails.js"; -export * from "./pchainlookingglassresponse.js"; -export * from "./rollingwindowmetricsapiresponse.js"; -export * from "./teleporterchainmetricsapiresponse.js"; -export * from "./teleportermetric.js"; -export * from "./teleportermetricsvalue.js"; -export * from "./timeintervalgranularity.js"; diff --git a/metrics/src/models/components/listchainsresponse.ts b/metrics/src/models/components/listchainsresponse.ts deleted file mode 100644 index e26d5b3a..00000000 --- a/metrics/src/models/components/listchainsresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Chain, - Chain$inboundSchema, - Chain$Outbound, - Chain$outboundSchema, -} from "./chain.js"; - -export type ListChainsResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * Array of Subnet - EVM Chain ID mappings whose metrics we support. - */ - chains: Array; -}; - -/** @internal */ -export const ListChainsResponse$inboundSchema: z.ZodType< - ListChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - chains: z.array(Chain$inboundSchema), -}); - -/** @internal */ -export type ListChainsResponse$Outbound = { - nextPageToken?: string | undefined; - chains: Array; -}; - -/** @internal */ -export const ListChainsResponse$outboundSchema: z.ZodType< - ListChainsResponse$Outbound, - z.ZodTypeDef, - ListChainsResponse -> = z.object({ - nextPageToken: z.string().optional(), - chains: z.array(Chain$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListChainsResponse$ { - /** @deprecated use `ListChainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListChainsResponse$inboundSchema; - /** @deprecated use `ListChainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListChainsResponse$outboundSchema; - /** @deprecated use `ListChainsResponse$Outbound` instead. */ - export type Outbound = ListChainsResponse$Outbound; -} - -export function listChainsResponseToJSON( - listChainsResponse: ListChainsResponse, -): string { - return JSON.stringify( - ListChainsResponse$outboundSchema.parse(listChainsResponse), - ); -} - -export function listChainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListChainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListChainsResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/lookingglassresponse.ts b/metrics/src/models/components/lookingglassresponse.ts deleted file mode 100644 index 32270738..00000000 --- a/metrics/src/models/components/lookingglassresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AddressDetails, - AddressDetails$inboundSchema, - AddressDetails$Outbound, - AddressDetails$outboundSchema, -} from "./addressdetails.js"; - -export type LookingGlassResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * List of addresses that match provided criteria. - */ - addresses: Array; -}; - -/** @internal */ -export const LookingGlassResponse$inboundSchema: z.ZodType< - LookingGlassResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(AddressDetails$inboundSchema), -}); - -/** @internal */ -export type LookingGlassResponse$Outbound = { - nextPageToken?: string | undefined; - addresses: Array; -}; - -/** @internal */ -export const LookingGlassResponse$outboundSchema: z.ZodType< - LookingGlassResponse$Outbound, - z.ZodTypeDef, - LookingGlassResponse -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(AddressDetails$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LookingGlassResponse$ { - /** @deprecated use `LookingGlassResponse$inboundSchema` instead. */ - export const inboundSchema = LookingGlassResponse$inboundSchema; - /** @deprecated use `LookingGlassResponse$outboundSchema` instead. */ - export const outboundSchema = LookingGlassResponse$outboundSchema; - /** @deprecated use `LookingGlassResponse$Outbound` instead. */ - export type Outbound = LookingGlassResponse$Outbound; -} - -export function lookingGlassResponseToJSON( - lookingGlassResponse: LookingGlassResponse, -): string { - return JSON.stringify( - LookingGlassResponse$outboundSchema.parse(lookingGlassResponse), - ); -} - -export function lookingGlassResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => LookingGlassResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LookingGlassResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/metricsapiresponse.ts b/metrics/src/models/components/metricsapiresponse.ts deleted file mode 100644 index 863479b4..00000000 --- a/metrics/src/models/components/metricsapiresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - MetricsValue, - MetricsValue$inboundSchema, - MetricsValue$Outbound, - MetricsValue$outboundSchema, -} from "./metricsvalue.js"; - -export type MetricsApiResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * Array of current metrics values at different timestamps. - */ - results: Array; -}; - -/** @internal */ -export const MetricsApiResponse$inboundSchema: z.ZodType< - MetricsApiResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - results: z.array(MetricsValue$inboundSchema), -}); - -/** @internal */ -export type MetricsApiResponse$Outbound = { - nextPageToken?: string | undefined; - results: Array; -}; - -/** @internal */ -export const MetricsApiResponse$outboundSchema: z.ZodType< - MetricsApiResponse$Outbound, - z.ZodTypeDef, - MetricsApiResponse -> = z.object({ - nextPageToken: z.string().optional(), - results: z.array(MetricsValue$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace MetricsApiResponse$ { - /** @deprecated use `MetricsApiResponse$inboundSchema` instead. */ - export const inboundSchema = MetricsApiResponse$inboundSchema; - /** @deprecated use `MetricsApiResponse$outboundSchema` instead. */ - export const outboundSchema = MetricsApiResponse$outboundSchema; - /** @deprecated use `MetricsApiResponse$Outbound` instead. */ - export type Outbound = MetricsApiResponse$Outbound; -} - -export function metricsApiResponseToJSON( - metricsApiResponse: MetricsApiResponse, -): string { - return JSON.stringify( - MetricsApiResponse$outboundSchema.parse(metricsApiResponse), - ); -} - -export function metricsApiResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MetricsApiResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MetricsApiResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/metricsvalue.ts b/metrics/src/models/components/metricsvalue.ts deleted file mode 100644 index 2c3cbe3d..00000000 --- a/metrics/src/models/components/metricsvalue.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type MetricsValue = { - /** - * Aggregated value for the current metrics. - */ - value: number; - /** - * Unix Epoch timestamp for which metrics are aggregated. Depending on the interval of the metric this can be at the start of the relevant hour, day, month, year, etc. - */ - timestamp: number; -}; - -/** @internal */ -export const MetricsValue$inboundSchema: z.ZodType< - MetricsValue, - z.ZodTypeDef, - unknown -> = z.object({ - value: z.number(), - timestamp: z.number(), -}); - -/** @internal */ -export type MetricsValue$Outbound = { - value: number; - timestamp: number; -}; - -/** @internal */ -export const MetricsValue$outboundSchema: z.ZodType< - MetricsValue$Outbound, - z.ZodTypeDef, - MetricsValue -> = z.object({ - value: z.number(), - timestamp: 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 MetricsValue$ { - /** @deprecated use `MetricsValue$inboundSchema` instead. */ - export const inboundSchema = MetricsValue$inboundSchema; - /** @deprecated use `MetricsValue$outboundSchema` instead. */ - export const outboundSchema = MetricsValue$outboundSchema; - /** @deprecated use `MetricsValue$Outbound` instead. */ - export type Outbound = MetricsValue$Outbound; -} - -export function metricsValueToJSON(metricsValue: MetricsValue): string { - return JSON.stringify(MetricsValue$outboundSchema.parse(metricsValue)); -} - -export function metricsValueFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => MetricsValue$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'MetricsValue' from JSON`, - ); -} diff --git a/metrics/src/models/components/network.ts b/metrics/src/models/components/network.ts deleted file mode 100644 index 09ee8b52..00000000 --- a/metrics/src/models/components/network.ts +++ /dev/null @@ -1,32 +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 Network = { - Mainnet: "mainnet", - Fuji: "fuji", - Testnet: "testnet", -} as const; -export type Network = ClosedEnum; - -/** @internal */ -export const Network$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Network); - -/** @internal */ -export const Network$outboundSchema: z.ZodNativeEnum = - Network$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Network$ { - /** @deprecated use `Network$inboundSchema` instead. */ - export const inboundSchema = Network$inboundSchema; - /** @deprecated use `Network$outboundSchema` instead. */ - export const outboundSchema = Network$outboundSchema; -} diff --git a/metrics/src/models/components/networkmetric.ts b/metrics/src/models/components/networkmetric.ts deleted file mode 100644 index 035829f8..00000000 --- a/metrics/src/models/components/networkmetric.ts +++ /dev/null @@ -1,35 +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 NetworkMetric = { - DelegatorCount: "delegatorCount", - DelegatorWeight: "delegatorWeight", - ValidatorCount: "validatorCount", - ValidatorWeight: "validatorWeight", -} as const; -export type NetworkMetric = ClosedEnum; - -/** @internal */ -export const NetworkMetric$inboundSchema: z.ZodNativeEnum< - typeof NetworkMetric -> = z.nativeEnum(NetworkMetric); - -/** @internal */ -export const NetworkMetric$outboundSchema: z.ZodNativeEnum< - typeof NetworkMetric -> = NetworkMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NetworkMetric$ { - /** @deprecated use `NetworkMetric$inboundSchema` instead. */ - export const inboundSchema = NetworkMetric$inboundSchema; - /** @deprecated use `NetworkMetric$outboundSchema` instead. */ - export const outboundSchema = NetworkMetric$outboundSchema; -} diff --git a/metrics/src/models/components/networktype.ts b/metrics/src/models/components/networktype.ts deleted file mode 100644 index 4f30936d..00000000 --- a/metrics/src/models/components/networktype.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Network on which this blockchain or subnet is created on. - */ -export const NetworkType = { - Mainnet: "mainnet", - Testnet: "testnet", -} as const; -/** - * Network on which this blockchain or subnet is created on. - */ -export type NetworkType = ClosedEnum; - -/** @internal */ -export const NetworkType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(NetworkType); - -/** @internal */ -export const NetworkType$outboundSchema: z.ZodNativeEnum = - NetworkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NetworkType$ { - /** @deprecated use `NetworkType$inboundSchema` instead. */ - export const inboundSchema = NetworkType$inboundSchema; - /** @deprecated use `NetworkType$outboundSchema` instead. */ - export const outboundSchema = NetworkType$outboundSchema; -} diff --git a/metrics/src/models/components/nftholdersresponse.ts b/metrics/src/models/components/nftholdersresponse.ts deleted file mode 100644 index 08c827a6..00000000 --- a/metrics/src/models/components/nftholdersresponse.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AddressDetails, - AddressDetails$inboundSchema, - AddressDetails$Outbound, - AddressDetails$outboundSchema, -} from "./addressdetails.js"; - -export type NftHoldersResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * List of addresses that match provided criteria. - */ - addresses: Array; - /** - * NFT project name. - */ - nftCollectionName?: Array | undefined; - /** - * NFT symbol. - */ - nftSymbol?: Array | undefined; - /** - * Total number of holders of a given NFT project. - */ - totalHolders: number; - /** - * Total number of tokens of a given NFT project. - */ - totalTokens: number; -}; - -/** @internal */ -export const NftHoldersResponse$inboundSchema: z.ZodType< - NftHoldersResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(AddressDetails$inboundSchema), - nftCollectionName: z.array(z.string()).optional(), - nftSymbol: z.array(z.string()).optional(), - totalHolders: z.number(), - totalTokens: z.number(), -}); - -/** @internal */ -export type NftHoldersResponse$Outbound = { - nextPageToken?: string | undefined; - addresses: Array; - nftCollectionName?: Array | undefined; - nftSymbol?: Array | undefined; - totalHolders: number; - totalTokens: number; -}; - -/** @internal */ -export const NftHoldersResponse$outboundSchema: z.ZodType< - NftHoldersResponse$Outbound, - z.ZodTypeDef, - NftHoldersResponse -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(AddressDetails$outboundSchema), - nftCollectionName: z.array(z.string()).optional(), - nftSymbol: z.array(z.string()).optional(), - totalHolders: z.number(), - totalTokens: 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 NftHoldersResponse$ { - /** @deprecated use `NftHoldersResponse$inboundSchema` instead. */ - export const inboundSchema = NftHoldersResponse$inboundSchema; - /** @deprecated use `NftHoldersResponse$outboundSchema` instead. */ - export const outboundSchema = NftHoldersResponse$outboundSchema; - /** @deprecated use `NftHoldersResponse$Outbound` instead. */ - export type Outbound = NftHoldersResponse$Outbound; -} - -export function nftHoldersResponseToJSON( - nftHoldersResponse: NftHoldersResponse, -): string { - return JSON.stringify( - NftHoldersResponse$outboundSchema.parse(nftHoldersResponse), - ); -} - -export function nftHoldersResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NftHoldersResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NftHoldersResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/pchainaddressdetails.ts b/metrics/src/models/components/pchainaddressdetails.ts deleted file mode 100644 index 1de7bf3d..00000000 --- a/metrics/src/models/components/pchainaddressdetails.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type PChainAddressDetails = { - /** - * A list of P-Chain addresses. - */ - addresses: Array; - /** - * Route dependent value associated with an address at a given point in time. - */ - sortKey: string; -}; - -/** @internal */ -export const PChainAddressDetails$inboundSchema: z.ZodType< - PChainAddressDetails, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), - sortKey: z.string(), -}); - -/** @internal */ -export type PChainAddressDetails$Outbound = { - addresses: Array; - sortKey: string; -}; - -/** @internal */ -export const PChainAddressDetails$outboundSchema: z.ZodType< - PChainAddressDetails$Outbound, - z.ZodTypeDef, - PChainAddressDetails -> = z.object({ - addresses: z.array(z.string()), - sortKey: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainAddressDetails$ { - /** @deprecated use `PChainAddressDetails$inboundSchema` instead. */ - export const inboundSchema = PChainAddressDetails$inboundSchema; - /** @deprecated use `PChainAddressDetails$outboundSchema` instead. */ - export const outboundSchema = PChainAddressDetails$outboundSchema; - /** @deprecated use `PChainAddressDetails$Outbound` instead. */ - export type Outbound = PChainAddressDetails$Outbound; -} - -export function pChainAddressDetailsToJSON( - pChainAddressDetails: PChainAddressDetails, -): string { - return JSON.stringify( - PChainAddressDetails$outboundSchema.parse(pChainAddressDetails), - ); -} - -export function pChainAddressDetailsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainAddressDetails$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainAddressDetails' from JSON`, - ); -} diff --git a/metrics/src/models/components/pchainlookingglassresponse.ts b/metrics/src/models/components/pchainlookingglassresponse.ts deleted file mode 100644 index e573e746..00000000 --- a/metrics/src/models/components/pchainlookingglassresponse.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PChainAddressDetails, - PChainAddressDetails$inboundSchema, - PChainAddressDetails$Outbound, - PChainAddressDetails$outboundSchema, -} from "./pchainaddressdetails.js"; - -export type PChainLookingGlassResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - /** - * List of addresses that match provided criteria. - */ - addresses: Array; -}; - -/** @internal */ -export const PChainLookingGlassResponse$inboundSchema: z.ZodType< - PChainLookingGlassResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(PChainAddressDetails$inboundSchema), -}); - -/** @internal */ -export type PChainLookingGlassResponse$Outbound = { - nextPageToken?: string | undefined; - addresses: Array; -}; - -/** @internal */ -export const PChainLookingGlassResponse$outboundSchema: z.ZodType< - PChainLookingGlassResponse$Outbound, - z.ZodTypeDef, - PChainLookingGlassResponse -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(PChainAddressDetails$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PChainLookingGlassResponse$ { - /** @deprecated use `PChainLookingGlassResponse$inboundSchema` instead. */ - export const inboundSchema = PChainLookingGlassResponse$inboundSchema; - /** @deprecated use `PChainLookingGlassResponse$outboundSchema` instead. */ - export const outboundSchema = PChainLookingGlassResponse$outboundSchema; - /** @deprecated use `PChainLookingGlassResponse$Outbound` instead. */ - export type Outbound = PChainLookingGlassResponse$Outbound; -} - -export function pChainLookingGlassResponseToJSON( - pChainLookingGlassResponse: PChainLookingGlassResponse, -): string { - return JSON.stringify( - PChainLookingGlassResponse$outboundSchema.parse(pChainLookingGlassResponse), - ); -} - -export function pChainLookingGlassResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => PChainLookingGlassResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PChainLookingGlassResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/rollingwindowmetricsapiresponse.ts b/metrics/src/models/components/rollingwindowmetricsapiresponse.ts deleted file mode 100644 index 4099d147..00000000 --- a/metrics/src/models/components/rollingwindowmetricsapiresponse.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ChainRollingWindowMetricsValue, - ChainRollingWindowMetricsValue$inboundSchema, - ChainRollingWindowMetricsValue$Outbound, - ChainRollingWindowMetricsValue$outboundSchema, -} from "./chainrollingwindowmetricsvalue.js"; - -export type RollingWindowMetricsApiResponse = { - /** - * Array of current metrics values for different windows. - */ - result: ChainRollingWindowMetricsValue; -}; - -/** @internal */ -export const RollingWindowMetricsApiResponse$inboundSchema: z.ZodType< - RollingWindowMetricsApiResponse, - z.ZodTypeDef, - unknown -> = z.object({ - result: ChainRollingWindowMetricsValue$inboundSchema, -}); - -/** @internal */ -export type RollingWindowMetricsApiResponse$Outbound = { - result: ChainRollingWindowMetricsValue$Outbound; -}; - -/** @internal */ -export const RollingWindowMetricsApiResponse$outboundSchema: z.ZodType< - RollingWindowMetricsApiResponse$Outbound, - z.ZodTypeDef, - RollingWindowMetricsApiResponse -> = z.object({ - result: ChainRollingWindowMetricsValue$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RollingWindowMetricsApiResponse$ { - /** @deprecated use `RollingWindowMetricsApiResponse$inboundSchema` instead. */ - export const inboundSchema = RollingWindowMetricsApiResponse$inboundSchema; - /** @deprecated use `RollingWindowMetricsApiResponse$outboundSchema` instead. */ - export const outboundSchema = RollingWindowMetricsApiResponse$outboundSchema; - /** @deprecated use `RollingWindowMetricsApiResponse$Outbound` instead. */ - export type Outbound = RollingWindowMetricsApiResponse$Outbound; -} - -export function rollingWindowMetricsApiResponseToJSON( - rollingWindowMetricsApiResponse: RollingWindowMetricsApiResponse, -): string { - return JSON.stringify( - RollingWindowMetricsApiResponse$outboundSchema.parse( - rollingWindowMetricsApiResponse, - ), - ); -} - -export function rollingWindowMetricsApiResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RollingWindowMetricsApiResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RollingWindowMetricsApiResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/teleporterchainmetricsapiresponse.ts b/metrics/src/models/components/teleporterchainmetricsapiresponse.ts deleted file mode 100644 index 4f0e667a..00000000 --- a/metrics/src/models/components/teleporterchainmetricsapiresponse.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TeleporterMetricsValue, - TeleporterMetricsValue$inboundSchema, - TeleporterMetricsValue$Outbound, - TeleporterMetricsValue$outboundSchema, -} from "./teleportermetricsvalue.js"; - -export type TeleporterChainMetricsApiResponse = { - /** - * current metrics value for a given teleporter metric. - */ - result: TeleporterMetricsValue; -}; - -/** @internal */ -export const TeleporterChainMetricsApiResponse$inboundSchema: z.ZodType< - TeleporterChainMetricsApiResponse, - z.ZodTypeDef, - unknown -> = z.object({ - result: TeleporterMetricsValue$inboundSchema, -}); - -/** @internal */ -export type TeleporterChainMetricsApiResponse$Outbound = { - result: TeleporterMetricsValue$Outbound; -}; - -/** @internal */ -export const TeleporterChainMetricsApiResponse$outboundSchema: z.ZodType< - TeleporterChainMetricsApiResponse$Outbound, - z.ZodTypeDef, - TeleporterChainMetricsApiResponse -> = z.object({ - result: TeleporterMetricsValue$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterChainMetricsApiResponse$ { - /** @deprecated use `TeleporterChainMetricsApiResponse$inboundSchema` instead. */ - export const inboundSchema = TeleporterChainMetricsApiResponse$inboundSchema; - /** @deprecated use `TeleporterChainMetricsApiResponse$outboundSchema` instead. */ - export const outboundSchema = - TeleporterChainMetricsApiResponse$outboundSchema; - /** @deprecated use `TeleporterChainMetricsApiResponse$Outbound` instead. */ - export type Outbound = TeleporterChainMetricsApiResponse$Outbound; -} - -export function teleporterChainMetricsApiResponseToJSON( - teleporterChainMetricsApiResponse: TeleporterChainMetricsApiResponse, -): string { - return JSON.stringify( - TeleporterChainMetricsApiResponse$outboundSchema.parse( - teleporterChainMetricsApiResponse, - ), - ); -} - -export function teleporterChainMetricsApiResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterChainMetricsApiResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterChainMetricsApiResponse' from JSON`, - ); -} diff --git a/metrics/src/models/components/teleportermetric.ts b/metrics/src/models/components/teleportermetric.ts deleted file mode 100644 index 034fe0d9..00000000 --- a/metrics/src/models/components/teleportermetric.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 TeleporterMetric = { - TeleporterSourceTxnCount: "teleporterSourceTxnCount", - TeleporterDestinationTxnCount: "teleporterDestinationTxnCount", - TeleporterTotalTxnCount: "teleporterTotalTxnCount", -} as const; -export type TeleporterMetric = ClosedEnum; - -/** @internal */ -export const TeleporterMetric$inboundSchema: z.ZodNativeEnum< - typeof TeleporterMetric -> = z.nativeEnum(TeleporterMetric); - -/** @internal */ -export const TeleporterMetric$outboundSchema: z.ZodNativeEnum< - typeof TeleporterMetric -> = TeleporterMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TeleporterMetric$ { - /** @deprecated use `TeleporterMetric$inboundSchema` instead. */ - export const inboundSchema = TeleporterMetric$inboundSchema; - /** @deprecated use `TeleporterMetric$outboundSchema` instead. */ - export const outboundSchema = TeleporterMetric$outboundSchema; -} diff --git a/metrics/src/models/components/teleportermetricsvalue.ts b/metrics/src/models/components/teleportermetricsvalue.ts deleted file mode 100644 index f63230b3..00000000 --- a/metrics/src/models/components/teleportermetricsvalue.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type TeleporterMetricsValue = { - /** - * Aggregated value for the current metrics. - */ - value: number; -}; - -/** @internal */ -export const TeleporterMetricsValue$inboundSchema: z.ZodType< - TeleporterMetricsValue, - z.ZodTypeDef, - unknown -> = z.object({ - value: z.number(), -}); - -/** @internal */ -export type TeleporterMetricsValue$Outbound = { - value: number; -}; - -/** @internal */ -export const TeleporterMetricsValue$outboundSchema: z.ZodType< - TeleporterMetricsValue$Outbound, - z.ZodTypeDef, - TeleporterMetricsValue -> = z.object({ - value: 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 TeleporterMetricsValue$ { - /** @deprecated use `TeleporterMetricsValue$inboundSchema` instead. */ - export const inboundSchema = TeleporterMetricsValue$inboundSchema; - /** @deprecated use `TeleporterMetricsValue$outboundSchema` instead. */ - export const outboundSchema = TeleporterMetricsValue$outboundSchema; - /** @deprecated use `TeleporterMetricsValue$Outbound` instead. */ - export type Outbound = TeleporterMetricsValue$Outbound; -} - -export function teleporterMetricsValueToJSON( - teleporterMetricsValue: TeleporterMetricsValue, -): string { - return JSON.stringify( - TeleporterMetricsValue$outboundSchema.parse(teleporterMetricsValue), - ); -} - -export function teleporterMetricsValueFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TeleporterMetricsValue$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TeleporterMetricsValue' from JSON`, - ); -} diff --git a/metrics/src/models/components/timeintervalgranularity.ts b/metrics/src/models/components/timeintervalgranularity.ts deleted file mode 100644 index 3b872f01..00000000 --- a/metrics/src/models/components/timeintervalgranularity.ts +++ /dev/null @@ -1,37 +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 TimeIntervalGranularity = { - Hour: "hour", - Day: "day", - Week: "week", - Month: "month", -} as const; -export type TimeIntervalGranularity = ClosedEnum< - typeof TimeIntervalGranularity ->; - -/** @internal */ -export const TimeIntervalGranularity$inboundSchema: z.ZodNativeEnum< - typeof TimeIntervalGranularity -> = z.nativeEnum(TimeIntervalGranularity); - -/** @internal */ -export const TimeIntervalGranularity$outboundSchema: z.ZodNativeEnum< - typeof TimeIntervalGranularity -> = TimeIntervalGranularity$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeIntervalGranularity$ { - /** @deprecated use `TimeIntervalGranularity$inboundSchema` instead. */ - export const inboundSchema = TimeIntervalGranularity$inboundSchema; - /** @deprecated use `TimeIntervalGranularity$outboundSchema` instead. */ - export const outboundSchema = TimeIntervalGranularity$outboundSchema; -} diff --git a/metrics/src/models/errors/avalancheapierror.ts b/metrics/src/models/errors/avalancheapierror.ts deleted file mode 100644 index a744f7e9..00000000 --- a/metrics/src/models/errors/avalancheapierror.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheError } from "./avalancheerror.js"; - -/** The fallback error class if no more specific error class is matched */ -export class AvalancheAPIError extends AvalancheError { - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - if (message) { - message += `: `; - } - message += `Status ${httpMeta.response.status}`; - const contentType = httpMeta.response.headers.get("content-type") || `""`; - if (contentType !== "application/json") { - message += ` Content-Type ${ - contentType.includes(" ") ? `"${contentType}"` : contentType - }`; - } - const body = httpMeta.body || `""`; - message += body.length > 100 ? "\n" : ". "; - let bodyDisplay = body; - if (body.length > 10000) { - const truncated = body.substring(0, 10000); - const remaining = body.length - 10000; - bodyDisplay = `${truncated}...and ${remaining} more chars`; - } - message += `Body: ${bodyDisplay}`; - message = message.trim(); - super(message, httpMeta); - this.name = "AvalancheAPIError"; - } -} diff --git a/metrics/src/models/errors/avalancheerror.ts b/metrics/src/models/errors/avalancheerror.ts deleted file mode 100644 index 4ebd6912..00000000 --- a/metrics/src/models/errors/avalancheerror.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** The base class for all HTTP error responses */ -export class AvalancheError extends Error { - /** HTTP status code */ - public readonly statusCode: number; - /** HTTP body */ - public readonly body: string; - /** HTTP headers */ - public readonly headers: Headers; - /** HTTP content type */ - public readonly contentType: string; - /** Raw response */ - public readonly rawResponse: Response; - - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - super(message); - this.statusCode = httpMeta.response.status; - this.body = httpMeta.body; - this.headers = httpMeta.response.headers; - this.contentType = httpMeta.response.headers.get("content-type") || ""; - this.rawResponse = httpMeta.response; - - this.name = "AvalancheError"; - } -} diff --git a/metrics/src/models/errors/badgatewayerror.ts b/metrics/src/models/errors/badgatewayerror.ts deleted file mode 100644 index 664399c5..00000000 --- a/metrics/src/models/errors/badgatewayerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadGatewayMessage = string | Array; - -export type BadGatewayErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadGatewayError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadGatewayErrorData; - - constructor( - err: BadGatewayErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadGatewayError"; - } -} - -/** @internal */ -export const BadGatewayMessage$inboundSchema: z.ZodType< - BadGatewayMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadGatewayMessage$Outbound = string | Array; - -/** @internal */ -export const BadGatewayMessage$outboundSchema: z.ZodType< - BadGatewayMessage$Outbound, - z.ZodTypeDef, - BadGatewayMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayMessage$ { - /** @deprecated use `BadGatewayMessage$inboundSchema` instead. */ - export const inboundSchema = BadGatewayMessage$inboundSchema; - /** @deprecated use `BadGatewayMessage$outboundSchema` instead. */ - export const outboundSchema = BadGatewayMessage$outboundSchema; - /** @deprecated use `BadGatewayMessage$Outbound` instead. */ - export type Outbound = BadGatewayMessage$Outbound; -} - -export function badGatewayMessageToJSON( - badGatewayMessage: BadGatewayMessage, -): string { - return JSON.stringify( - BadGatewayMessage$outboundSchema.parse(badGatewayMessage), - ); -} - -export function badGatewayMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadGatewayMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadGatewayMessage' from JSON`, - ); -} - -/** @internal */ -export const BadGatewayError$inboundSchema: z.ZodType< - BadGatewayError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadGatewayError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadGatewayError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadGatewayError$outboundSchema: z.ZodType< - BadGatewayError$Outbound, - z.ZodTypeDef, - BadGatewayError -> = z.instanceof(BadGatewayError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayError$ { - /** @deprecated use `BadGatewayError$inboundSchema` instead. */ - export const inboundSchema = BadGatewayError$inboundSchema; - /** @deprecated use `BadGatewayError$outboundSchema` instead. */ - export const outboundSchema = BadGatewayError$outboundSchema; - /** @deprecated use `BadGatewayError$Outbound` instead. */ - export type Outbound = BadGatewayError$Outbound; -} diff --git a/metrics/src/models/errors/badrequesterror.ts b/metrics/src/models/errors/badrequesterror.ts deleted file mode 100644 index 6a622dd8..00000000 --- a/metrics/src/models/errors/badrequesterror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadRequestMessage = string | Array; - -export type BadRequestErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadRequestError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadRequestErrorData; - - constructor( - err: BadRequestErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadRequestError"; - } -} - -/** @internal */ -export const BadRequestMessage$inboundSchema: z.ZodType< - BadRequestMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadRequestMessage$Outbound = string | Array; - -/** @internal */ -export const BadRequestMessage$outboundSchema: z.ZodType< - BadRequestMessage$Outbound, - z.ZodTypeDef, - BadRequestMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestMessage$ { - /** @deprecated use `BadRequestMessage$inboundSchema` instead. */ - export const inboundSchema = BadRequestMessage$inboundSchema; - /** @deprecated use `BadRequestMessage$outboundSchema` instead. */ - export const outboundSchema = BadRequestMessage$outboundSchema; - /** @deprecated use `BadRequestMessage$Outbound` instead. */ - export type Outbound = BadRequestMessage$Outbound; -} - -export function badRequestMessageToJSON( - badRequestMessage: BadRequestMessage, -): string { - return JSON.stringify( - BadRequestMessage$outboundSchema.parse(badRequestMessage), - ); -} - -export function badRequestMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadRequestMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadRequestMessage' from JSON`, - ); -} - -/** @internal */ -export const BadRequestError$inboundSchema: z.ZodType< - BadRequestError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadRequestError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadRequestError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadRequestError$outboundSchema: z.ZodType< - BadRequestError$Outbound, - z.ZodTypeDef, - BadRequestError -> = z.instanceof(BadRequestError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestError$ { - /** @deprecated use `BadRequestError$inboundSchema` instead. */ - export const inboundSchema = BadRequestError$inboundSchema; - /** @deprecated use `BadRequestError$outboundSchema` instead. */ - export const outboundSchema = BadRequestError$outboundSchema; - /** @deprecated use `BadRequestError$Outbound` instead. */ - export type Outbound = BadRequestError$Outbound; -} diff --git a/metrics/src/models/errors/forbiddenerror.ts b/metrics/src/models/errors/forbiddenerror.ts deleted file mode 100644 index c61d94bd..00000000 --- a/metrics/src/models/errors/forbiddenerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ForbiddenMessage = string | Array; - -export type ForbiddenErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ForbiddenError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ForbiddenErrorData; - - constructor( - err: ForbiddenErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ForbiddenError"; - } -} - -/** @internal */ -export const ForbiddenMessage$inboundSchema: z.ZodType< - ForbiddenMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ForbiddenMessage$Outbound = string | Array; - -/** @internal */ -export const ForbiddenMessage$outboundSchema: z.ZodType< - ForbiddenMessage$Outbound, - z.ZodTypeDef, - ForbiddenMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenMessage$ { - /** @deprecated use `ForbiddenMessage$inboundSchema` instead. */ - export const inboundSchema = ForbiddenMessage$inboundSchema; - /** @deprecated use `ForbiddenMessage$outboundSchema` instead. */ - export const outboundSchema = ForbiddenMessage$outboundSchema; - /** @deprecated use `ForbiddenMessage$Outbound` instead. */ - export type Outbound = ForbiddenMessage$Outbound; -} - -export function forbiddenMessageToJSON( - forbiddenMessage: ForbiddenMessage, -): string { - return JSON.stringify( - ForbiddenMessage$outboundSchema.parse(forbiddenMessage), - ); -} - -export function forbiddenMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ForbiddenMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ForbiddenMessage' from JSON`, - ); -} - -/** @internal */ -export const ForbiddenError$inboundSchema: z.ZodType< - ForbiddenError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ForbiddenError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ForbiddenError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ForbiddenError$outboundSchema: z.ZodType< - ForbiddenError$Outbound, - z.ZodTypeDef, - ForbiddenError -> = z.instanceof(ForbiddenError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenError$ { - /** @deprecated use `ForbiddenError$inboundSchema` instead. */ - export const inboundSchema = ForbiddenError$inboundSchema; - /** @deprecated use `ForbiddenError$outboundSchema` instead. */ - export const outboundSchema = ForbiddenError$outboundSchema; - /** @deprecated use `ForbiddenError$Outbound` instead. */ - export type Outbound = ForbiddenError$Outbound; -} diff --git a/metrics/src/models/errors/httpclienterrors.ts b/metrics/src/models/errors/httpclienterrors.ts deleted file mode 100644 index b34f6121..00000000 --- a/metrics/src/models/errors/httpclienterrors.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Base class for all HTTP errors. - */ -export class HTTPClientError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - override name = "HTTPClientError"; - constructor(message: string, opts?: { cause?: unknown }) { - let msg = message; - if (opts?.cause) { - msg += `: ${opts.cause}`; - } - - super(msg, opts); - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = opts?.cause; - } - } -} - -/** - * An error to capture unrecognised or unexpected errors when making HTTP calls. - */ -export class UnexpectedClientError extends HTTPClientError { - override name = "UnexpectedClientError"; -} - -/** - * An error that is raised when any inputs used to create a request are invalid. - */ -export class InvalidRequestError extends HTTPClientError { - override name = "InvalidRequestError"; -} - -/** - * An error that is raised when a HTTP request was aborted by the client error. - */ -export class RequestAbortedError extends HTTPClientError { - override readonly name = "RequestAbortedError"; -} - -/** - * An error that is raised when a HTTP request timed out due to an AbortSignal - * signal timeout. - */ -export class RequestTimeoutError extends HTTPClientError { - override readonly name = "RequestTimeoutError"; -} - -/** - * An error that is raised when a HTTP client is unable to make a request to - * a server. - */ -export class ConnectionError extends HTTPClientError { - override readonly name = "ConnectionError"; -} diff --git a/metrics/src/models/errors/index.ts b/metrics/src/models/errors/index.ts deleted file mode 100644 index a7ea0acc..00000000 --- a/metrics/src/models/errors/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./avalancheapierror.js"; -export * from "./badgatewayerror.js"; -export * from "./badrequesterror.js"; -export * from "./forbiddenerror.js"; -export * from "./httpclienterrors.js"; -export * from "./internalservererror.js"; -export * from "./notfounderror.js"; -export * from "./responsevalidationerror.js"; -export * from "./sdkvalidationerror.js"; -export * from "./serviceunavailableerror.js"; -export * from "./toomanyrequestserror.js"; -export * from "./unauthorizederror.js"; diff --git a/metrics/src/models/errors/internalservererror.ts b/metrics/src/models/errors/internalservererror.ts deleted file mode 100644 index 97fc7853..00000000 --- a/metrics/src/models/errors/internalservererror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type InternalServerErrorMessage = string | Array; - -export type InternalServerErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class InternalServerError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: InternalServerErrorData; - - constructor( - err: InternalServerErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "InternalServerError"; - } -} - -/** @internal */ -export const InternalServerErrorMessage$inboundSchema: z.ZodType< - InternalServerErrorMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type InternalServerErrorMessage$Outbound = string | Array; - -/** @internal */ -export const InternalServerErrorMessage$outboundSchema: z.ZodType< - InternalServerErrorMessage$Outbound, - z.ZodTypeDef, - InternalServerErrorMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorMessage$ { - /** @deprecated use `InternalServerErrorMessage$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorMessage$inboundSchema; - /** @deprecated use `InternalServerErrorMessage$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorMessage$outboundSchema; - /** @deprecated use `InternalServerErrorMessage$Outbound` instead. */ - export type Outbound = InternalServerErrorMessage$Outbound; -} - -export function internalServerErrorMessageToJSON( - internalServerErrorMessage: InternalServerErrorMessage, -): string { - return JSON.stringify( - InternalServerErrorMessage$outboundSchema.parse(internalServerErrorMessage), - ); -} - -export function internalServerErrorMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InternalServerErrorMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InternalServerErrorMessage' from JSON`, - ); -} - -/** @internal */ -export const InternalServerError$inboundSchema: z.ZodType< - InternalServerError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new InternalServerError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type InternalServerError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const InternalServerError$outboundSchema: z.ZodType< - InternalServerError$Outbound, - z.ZodTypeDef, - InternalServerError -> = z.instanceof(InternalServerError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerError$ { - /** @deprecated use `InternalServerError$inboundSchema` instead. */ - export const inboundSchema = InternalServerError$inboundSchema; - /** @deprecated use `InternalServerError$outboundSchema` instead. */ - export const outboundSchema = InternalServerError$outboundSchema; - /** @deprecated use `InternalServerError$Outbound` instead. */ - export type Outbound = InternalServerError$Outbound; -} diff --git a/metrics/src/models/errors/notfounderror.ts b/metrics/src/models/errors/notfounderror.ts deleted file mode 100644 index 52a68f66..00000000 --- a/metrics/src/models/errors/notfounderror.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type NotFoundMessage = string | Array; - -export type NotFoundErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class NotFoundError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: NotFoundErrorData; - - constructor( - err: NotFoundErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "NotFoundError"; - } -} - -/** @internal */ -export const NotFoundMessage$inboundSchema: z.ZodType< - NotFoundMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type NotFoundMessage$Outbound = string | Array; - -/** @internal */ -export const NotFoundMessage$outboundSchema: z.ZodType< - NotFoundMessage$Outbound, - z.ZodTypeDef, - NotFoundMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundMessage$ { - /** @deprecated use `NotFoundMessage$inboundSchema` instead. */ - export const inboundSchema = NotFoundMessage$inboundSchema; - /** @deprecated use `NotFoundMessage$outboundSchema` instead. */ - export const outboundSchema = NotFoundMessage$outboundSchema; - /** @deprecated use `NotFoundMessage$Outbound` instead. */ - export type Outbound = NotFoundMessage$Outbound; -} - -export function notFoundMessageToJSON( - notFoundMessage: NotFoundMessage, -): string { - return JSON.stringify(NotFoundMessage$outboundSchema.parse(notFoundMessage)); -} - -export function notFoundMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotFoundMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotFoundMessage' from JSON`, - ); -} - -/** @internal */ -export const NotFoundError$inboundSchema: z.ZodType< - NotFoundError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new NotFoundError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type NotFoundError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const NotFoundError$outboundSchema: z.ZodType< - NotFoundError$Outbound, - z.ZodTypeDef, - NotFoundError -> = z.instanceof(NotFoundError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundError$ { - /** @deprecated use `NotFoundError$inboundSchema` instead. */ - export const inboundSchema = NotFoundError$inboundSchema; - /** @deprecated use `NotFoundError$outboundSchema` instead. */ - export const outboundSchema = NotFoundError$outboundSchema; - /** @deprecated use `NotFoundError$Outbound` instead. */ - export type Outbound = NotFoundError$Outbound; -} diff --git a/metrics/src/models/errors/responsevalidationerror.ts b/metrics/src/models/errors/responsevalidationerror.ts deleted file mode 100644 index d91ba996..00000000 --- a/metrics/src/models/errors/responsevalidationerror.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { AvalancheError } from "./avalancheerror.js"; -import { formatZodError } from "./sdkvalidationerror.js"; - -export class ResponseValidationError extends AvalancheError { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - constructor( - message: string, - extra: { - response: Response; - request: Request; - body: string; - cause: unknown; - rawValue: unknown; - rawMessage: unknown; - }, - ) { - super(message, extra); - this.name = "ResponseValidationError"; - this.cause = extra.cause; - this.rawValue = extra.rawValue; - this.rawMessage = extra.rawMessage; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} diff --git a/metrics/src/models/errors/sdkvalidationerror.ts b/metrics/src/models/errors/sdkvalidationerror.ts deleted file mode 100644 index 37face8a..00000000 --- a/metrics/src/models/errors/sdkvalidationerror.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export class SDKValidationError extends Error { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` - static override [Symbol.hasInstance]( - instance: unknown, - ): instance is SDKValidationError { - if (!(instance instanceof Error)) return false; - if (!("rawValue" in instance)) return false; - if (!("rawMessage" in instance)) return false; - if (!("pretty" in instance)) return false; - if (typeof instance.pretty !== "function") return false; - return true; - } - - constructor(message: string, cause: unknown, rawValue: unknown) { - super(`${message}: ${cause}`); - this.name = "SDKValidationError"; - this.cause = cause; - this.rawValue = rawValue; - this.rawMessage = message; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} - -export function formatZodError(err: z.ZodError, level = 0): string { - let pre = " ".repeat(level); - pre = level > 0 ? `│${pre}` : pre; - pre += " ".repeat(level); - - let message = ""; - const append = (str: string) => (message += `\n${pre}${str}`); - - const len = err.issues.length; - const headline = len === 1 ? `${len} issue found` : `${len} issues found`; - - if (len) { - append(`┌ ${headline}:`); - } - - for (const issue of err.issues) { - let path = issue.path.join("."); - path = path ? `.${path}` : ""; - append(`│ • [${path}]: ${issue.message} (${issue.code})`); - switch (issue.code) { - case "invalid_literal": - case "invalid_type": { - append(`│ Want: ${issue.expected}`); - append(`│ Got: ${issue.received}`); - break; - } - case "unrecognized_keys": { - append(`│ Keys: ${issue.keys.join(", ")}`); - break; - } - case "invalid_enum_value": { - append(`│ Allowed: ${issue.options.join(", ")}`); - append(`│ Got: ${issue.received}`); - break; - } - case "invalid_union_discriminator": { - append(`│ Allowed: ${issue.options.join(", ")}`); - break; - } - case "invalid_union": { - const len = issue.unionErrors.length; - append( - `│ ✖︎ Attemped to deserialize into one of ${len} union members:`, - ); - issue.unionErrors.forEach((err, i) => { - append(`│ ✖︎ Member ${i + 1} of ${len}`); - append(`${formatZodError(err, level + 1)}`); - }); - } - } - } - - if (err.issues.length) { - append(`└─*`); - } - - return message.slice(1); -} diff --git a/metrics/src/models/errors/serviceunavailableerror.ts b/metrics/src/models/errors/serviceunavailableerror.ts deleted file mode 100644 index 160912cd..00000000 --- a/metrics/src/models/errors/serviceunavailableerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ServiceUnavailableMessage = string | Array; - -export type ServiceUnavailableErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ServiceUnavailableError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ServiceUnavailableErrorData; - - constructor( - err: ServiceUnavailableErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ServiceUnavailableError"; - } -} - -/** @internal */ -export const ServiceUnavailableMessage$inboundSchema: z.ZodType< - ServiceUnavailableMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ServiceUnavailableMessage$Outbound = string | Array; - -/** @internal */ -export const ServiceUnavailableMessage$outboundSchema: z.ZodType< - ServiceUnavailableMessage$Outbound, - z.ZodTypeDef, - ServiceUnavailableMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableMessage$ { - /** @deprecated use `ServiceUnavailableMessage$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableMessage$inboundSchema; - /** @deprecated use `ServiceUnavailableMessage$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableMessage$outboundSchema; - /** @deprecated use `ServiceUnavailableMessage$Outbound` instead. */ - export type Outbound = ServiceUnavailableMessage$Outbound; -} - -export function serviceUnavailableMessageToJSON( - serviceUnavailableMessage: ServiceUnavailableMessage, -): string { - return JSON.stringify( - ServiceUnavailableMessage$outboundSchema.parse(serviceUnavailableMessage), - ); -} - -export function serviceUnavailableMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServiceUnavailableMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServiceUnavailableMessage' from JSON`, - ); -} - -/** @internal */ -export const ServiceUnavailableError$inboundSchema: z.ZodType< - ServiceUnavailableError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ServiceUnavailableError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ServiceUnavailableError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ServiceUnavailableError$outboundSchema: z.ZodType< - ServiceUnavailableError$Outbound, - z.ZodTypeDef, - ServiceUnavailableError -> = z.instanceof(ServiceUnavailableError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableError$ { - /** @deprecated use `ServiceUnavailableError$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableError$inboundSchema; - /** @deprecated use `ServiceUnavailableError$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableError$outboundSchema; - /** @deprecated use `ServiceUnavailableError$Outbound` instead. */ - export type Outbound = ServiceUnavailableError$Outbound; -} diff --git a/metrics/src/models/errors/toomanyrequestserror.ts b/metrics/src/models/errors/toomanyrequestserror.ts deleted file mode 100644 index ed150368..00000000 --- a/metrics/src/models/errors/toomanyrequestserror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type TooManyRequestsMessage = string | Array; - -export type TooManyRequestsErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class TooManyRequestsError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: TooManyRequestsErrorData; - - constructor( - err: TooManyRequestsErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "TooManyRequestsError"; - } -} - -/** @internal */ -export const TooManyRequestsMessage$inboundSchema: z.ZodType< - TooManyRequestsMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type TooManyRequestsMessage$Outbound = string | Array; - -/** @internal */ -export const TooManyRequestsMessage$outboundSchema: z.ZodType< - TooManyRequestsMessage$Outbound, - z.ZodTypeDef, - TooManyRequestsMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsMessage$ { - /** @deprecated use `TooManyRequestsMessage$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsMessage$inboundSchema; - /** @deprecated use `TooManyRequestsMessage$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsMessage$outboundSchema; - /** @deprecated use `TooManyRequestsMessage$Outbound` instead. */ - export type Outbound = TooManyRequestsMessage$Outbound; -} - -export function tooManyRequestsMessageToJSON( - tooManyRequestsMessage: TooManyRequestsMessage, -): string { - return JSON.stringify( - TooManyRequestsMessage$outboundSchema.parse(tooManyRequestsMessage), - ); -} - -export function tooManyRequestsMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TooManyRequestsMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TooManyRequestsMessage' from JSON`, - ); -} - -/** @internal */ -export const TooManyRequestsError$inboundSchema: z.ZodType< - TooManyRequestsError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new TooManyRequestsError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type TooManyRequestsError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const TooManyRequestsError$outboundSchema: z.ZodType< - TooManyRequestsError$Outbound, - z.ZodTypeDef, - TooManyRequestsError -> = z.instanceof(TooManyRequestsError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsError$ { - /** @deprecated use `TooManyRequestsError$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsError$inboundSchema; - /** @deprecated use `TooManyRequestsError$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsError$outboundSchema; - /** @deprecated use `TooManyRequestsError$Outbound` instead. */ - export type Outbound = TooManyRequestsError$Outbound; -} diff --git a/metrics/src/models/errors/unauthorizederror.ts b/metrics/src/models/errors/unauthorizederror.ts deleted file mode 100644 index 7e9e4b65..00000000 --- a/metrics/src/models/errors/unauthorizederror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type UnauthorizedMessage = string | Array; - -export type UnauthorizedErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class UnauthorizedError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: UnauthorizedErrorData; - - constructor( - err: UnauthorizedErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "UnauthorizedError"; - } -} - -/** @internal */ -export const UnauthorizedMessage$inboundSchema: z.ZodType< - UnauthorizedMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type UnauthorizedMessage$Outbound = string | Array; - -/** @internal */ -export const UnauthorizedMessage$outboundSchema: z.ZodType< - UnauthorizedMessage$Outbound, - z.ZodTypeDef, - UnauthorizedMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedMessage$ { - /** @deprecated use `UnauthorizedMessage$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedMessage$inboundSchema; - /** @deprecated use `UnauthorizedMessage$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedMessage$outboundSchema; - /** @deprecated use `UnauthorizedMessage$Outbound` instead. */ - export type Outbound = UnauthorizedMessage$Outbound; -} - -export function unauthorizedMessageToJSON( - unauthorizedMessage: UnauthorizedMessage, -): string { - return JSON.stringify( - UnauthorizedMessage$outboundSchema.parse(unauthorizedMessage), - ); -} - -export function unauthorizedMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnauthorizedMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnauthorizedMessage' from JSON`, - ); -} - -/** @internal */ -export const UnauthorizedError$inboundSchema: z.ZodType< - UnauthorizedError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new UnauthorizedError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type UnauthorizedError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const UnauthorizedError$outboundSchema: z.ZodType< - UnauthorizedError$Outbound, - z.ZodTypeDef, - UnauthorizedError -> = z.instanceof(UnauthorizedError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedError$ { - /** @deprecated use `UnauthorizedError$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedError$inboundSchema; - /** @deprecated use `UnauthorizedError$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedError$outboundSchema; - /** @deprecated use `UnauthorizedError$Outbound` instead. */ - export type Outbound = UnauthorizedError$Outbound; -} diff --git a/metrics/src/models/operations/getaddressesbybalanceovertime.ts b/metrics/src/models/operations/getaddressesbybalanceovertime.ts deleted file mode 100644 index 326f1261..00000000 --- a/metrics/src/models/operations/getaddressesbybalanceovertime.ts +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAddressesByBalanceOverTimeGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetAddressesByBalanceOverTimeRequest = { - /** - * The minimum balance for which addresses should be considered. - */ - threshold: string; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 5000. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; -}; - -export type GetAddressesByBalanceOverTimeResponse = { - result: components.LookingGlassResponse; -}; - -/** @internal */ -export const GetAddressesByBalanceOverTimeGlobals$inboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetAddressesByBalanceOverTimeGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetAddressesByBalanceOverTimeGlobals$outboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeGlobals$Outbound, - z.ZodTypeDef, - GetAddressesByBalanceOverTimeGlobals -> = z.object({ - chainId: 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 GetAddressesByBalanceOverTimeGlobals$ { - /** @deprecated use `GetAddressesByBalanceOverTimeGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetAddressesByBalanceOverTimeGlobals$inboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetAddressesByBalanceOverTimeGlobals$outboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeGlobals$Outbound` instead. */ - export type Outbound = GetAddressesByBalanceOverTimeGlobals$Outbound; -} - -export function getAddressesByBalanceOverTimeGlobalsToJSON( - getAddressesByBalanceOverTimeGlobals: GetAddressesByBalanceOverTimeGlobals, -): string { - return JSON.stringify( - GetAddressesByBalanceOverTimeGlobals$outboundSchema.parse( - getAddressesByBalanceOverTimeGlobals, - ), - ); -} - -export function getAddressesByBalanceOverTimeGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetAddressesByBalanceOverTimeGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesByBalanceOverTimeGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetAddressesByBalanceOverTimeRequest$inboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - threshold: z.string(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type GetAddressesByBalanceOverTimeRequest$Outbound = { - threshold: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const GetAddressesByBalanceOverTimeRequest$outboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeRequest$Outbound, - z.ZodTypeDef, - GetAddressesByBalanceOverTimeRequest -> = z.object({ - threshold: z.string(), - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesByBalanceOverTimeRequest$ { - /** @deprecated use `GetAddressesByBalanceOverTimeRequest$inboundSchema` instead. */ - export const inboundSchema = - GetAddressesByBalanceOverTimeRequest$inboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeRequest$outboundSchema` instead. */ - export const outboundSchema = - GetAddressesByBalanceOverTimeRequest$outboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeRequest$Outbound` instead. */ - export type Outbound = GetAddressesByBalanceOverTimeRequest$Outbound; -} - -export function getAddressesByBalanceOverTimeRequestToJSON( - getAddressesByBalanceOverTimeRequest: GetAddressesByBalanceOverTimeRequest, -): string { - return JSON.stringify( - GetAddressesByBalanceOverTimeRequest$outboundSchema.parse( - getAddressesByBalanceOverTimeRequest, - ), - ); -} - -export function getAddressesByBalanceOverTimeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetAddressesByBalanceOverTimeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesByBalanceOverTimeRequest' from JSON`, - ); -} - -/** @internal */ -export const GetAddressesByBalanceOverTimeResponse$inboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.LookingGlassResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetAddressesByBalanceOverTimeResponse$Outbound = { - Result: components.LookingGlassResponse$Outbound; -}; - -/** @internal */ -export const GetAddressesByBalanceOverTimeResponse$outboundSchema: z.ZodType< - GetAddressesByBalanceOverTimeResponse$Outbound, - z.ZodTypeDef, - GetAddressesByBalanceOverTimeResponse -> = z.object({ - result: components.LookingGlassResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesByBalanceOverTimeResponse$ { - /** @deprecated use `GetAddressesByBalanceOverTimeResponse$inboundSchema` instead. */ - export const inboundSchema = - GetAddressesByBalanceOverTimeResponse$inboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAddressesByBalanceOverTimeResponse$outboundSchema; - /** @deprecated use `GetAddressesByBalanceOverTimeResponse$Outbound` instead. */ - export type Outbound = GetAddressesByBalanceOverTimeResponse$Outbound; -} - -export function getAddressesByBalanceOverTimeResponseToJSON( - getAddressesByBalanceOverTimeResponse: GetAddressesByBalanceOverTimeResponse, -): string { - return JSON.stringify( - GetAddressesByBalanceOverTimeResponse$outboundSchema.parse( - getAddressesByBalanceOverTimeResponse, - ), - ); -} - -export function getAddressesByBalanceOverTimeResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetAddressesByBalanceOverTimeResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesByBalanceOverTimeResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getaddressesbybtcbbridged.ts b/metrics/src/models/operations/getaddressesbybtcbbridged.ts deleted file mode 100644 index 0d488dbb..00000000 --- a/metrics/src/models/operations/getaddressesbybtcbbridged.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAddressesByBtcbBridgedRequest = { - /** - * The minimum balance for which addresses should be considered. - */ - threshold: string; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 5000. - */ - pageSize?: number | undefined; -}; - -export type GetAddressesByBtcbBridgedResponse = { - result: components.LookingGlassResponse; -}; - -/** @internal */ -export const GetAddressesByBtcbBridgedRequest$inboundSchema: z.ZodType< - GetAddressesByBtcbBridgedRequest, - z.ZodTypeDef, - unknown -> = z.object({ - threshold: z.string(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), -}); - -/** @internal */ -export type GetAddressesByBtcbBridgedRequest$Outbound = { - threshold: string; - pageToken?: string | undefined; - pageSize: number; -}; - -/** @internal */ -export const GetAddressesByBtcbBridgedRequest$outboundSchema: z.ZodType< - GetAddressesByBtcbBridgedRequest$Outbound, - z.ZodTypeDef, - GetAddressesByBtcbBridgedRequest -> = z.object({ - threshold: z.string(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesByBtcbBridgedRequest$ { - /** @deprecated use `GetAddressesByBtcbBridgedRequest$inboundSchema` instead. */ - export const inboundSchema = GetAddressesByBtcbBridgedRequest$inboundSchema; - /** @deprecated use `GetAddressesByBtcbBridgedRequest$outboundSchema` instead. */ - export const outboundSchema = GetAddressesByBtcbBridgedRequest$outboundSchema; - /** @deprecated use `GetAddressesByBtcbBridgedRequest$Outbound` instead. */ - export type Outbound = GetAddressesByBtcbBridgedRequest$Outbound; -} - -export function getAddressesByBtcbBridgedRequestToJSON( - getAddressesByBtcbBridgedRequest: GetAddressesByBtcbBridgedRequest, -): string { - return JSON.stringify( - GetAddressesByBtcbBridgedRequest$outboundSchema.parse( - getAddressesByBtcbBridgedRequest, - ), - ); -} - -export function getAddressesByBtcbBridgedRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAddressesByBtcbBridgedRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesByBtcbBridgedRequest' from JSON`, - ); -} - -/** @internal */ -export const GetAddressesByBtcbBridgedResponse$inboundSchema: z.ZodType< - GetAddressesByBtcbBridgedResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.LookingGlassResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetAddressesByBtcbBridgedResponse$Outbound = { - Result: components.LookingGlassResponse$Outbound; -}; - -/** @internal */ -export const GetAddressesByBtcbBridgedResponse$outboundSchema: z.ZodType< - GetAddressesByBtcbBridgedResponse$Outbound, - z.ZodTypeDef, - GetAddressesByBtcbBridgedResponse -> = z.object({ - result: components.LookingGlassResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesByBtcbBridgedResponse$ { - /** @deprecated use `GetAddressesByBtcbBridgedResponse$inboundSchema` instead. */ - export const inboundSchema = GetAddressesByBtcbBridgedResponse$inboundSchema; - /** @deprecated use `GetAddressesByBtcbBridgedResponse$outboundSchema` instead. */ - export const outboundSchema = - GetAddressesByBtcbBridgedResponse$outboundSchema; - /** @deprecated use `GetAddressesByBtcbBridgedResponse$Outbound` instead. */ - export type Outbound = GetAddressesByBtcbBridgedResponse$Outbound; -} - -export function getAddressesByBtcbBridgedResponseToJSON( - getAddressesByBtcbBridgedResponse: GetAddressesByBtcbBridgedResponse, -): string { - return JSON.stringify( - GetAddressesByBtcbBridgedResponse$outboundSchema.parse( - getAddressesByBtcbBridgedResponse, - ), - ); -} - -export function getAddressesByBtcbBridgedResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAddressesByBtcbBridgedResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesByBtcbBridgedResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getchain.ts b/metrics/src/models/operations/getchain.ts deleted file mode 100644 index 86d06475..00000000 --- a/metrics/src/models/operations/getchain.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetChainGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetChainRequest = { - /** - * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainGlobals$inboundSchema: z.ZodType< - GetChainGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetChainGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainGlobals$outboundSchema: z.ZodType< - GetChainGlobals$Outbound, - z.ZodTypeDef, - GetChainGlobals -> = z.object({ - chainId: 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 GetChainGlobals$ { - /** @deprecated use `GetChainGlobals$inboundSchema` instead. */ - export const inboundSchema = GetChainGlobals$inboundSchema; - /** @deprecated use `GetChainGlobals$outboundSchema` instead. */ - export const outboundSchema = GetChainGlobals$outboundSchema; - /** @deprecated use `GetChainGlobals$Outbound` instead. */ - export type Outbound = GetChainGlobals$Outbound; -} - -export function getChainGlobalsToJSON( - getChainGlobals: GetChainGlobals, -): string { - return JSON.stringify(GetChainGlobals$outboundSchema.parse(getChainGlobals)); -} - -export function getChainGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetChainRequest$inboundSchema: z.ZodType< - GetChainRequest, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetChainRequest$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetChainRequest$outboundSchema: z.ZodType< - GetChainRequest$Outbound, - z.ZodTypeDef, - GetChainRequest -> = z.object({ - chainId: 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 GetChainRequest$ { - /** @deprecated use `GetChainRequest$inboundSchema` instead. */ - export const inboundSchema = GetChainRequest$inboundSchema; - /** @deprecated use `GetChainRequest$outboundSchema` instead. */ - export const outboundSchema = GetChainRequest$outboundSchema; - /** @deprecated use `GetChainRequest$Outbound` instead. */ - export type Outbound = GetChainRequest$Outbound; -} - -export function getChainRequestToJSON( - getChainRequest: GetChainRequest, -): string { - return JSON.stringify(GetChainRequest$outboundSchema.parse(getChainRequest)); -} - -export function getChainRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetChainRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetChainRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getevmchainmetrics.ts b/metrics/src/models/operations/getevmchainmetrics.ts deleted file mode 100644 index a3292d8c..00000000 --- a/metrics/src/models/operations/getevmchainmetrics.ts +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetEvmChainMetricsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetEvmChainMetricsRequest = { - /** - * Which chain level metric to fetch. - */ - metric: components.ChainMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * Time interval granularity for data aggregation. Metrics - * - * @remarks - * prefixed with "cumulative", "max", or "avg" only support timeInterval equal - * to "day". - */ - timeInterval?: components.TimeIntervalGranularity | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 2160. - */ - pageSize?: number | undefined; - /** - * A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. - */ - chainId?: string | undefined; -}; - -export type GetEvmChainMetricsResponse = { - result: components.MetricsApiResponse; -}; - -/** @internal */ -export const GetEvmChainMetricsGlobals$inboundSchema: z.ZodType< - GetEvmChainMetricsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetEvmChainMetricsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetEvmChainMetricsGlobals$outboundSchema: z.ZodType< - GetEvmChainMetricsGlobals$Outbound, - z.ZodTypeDef, - GetEvmChainMetricsGlobals -> = z.object({ - chainId: 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 GetEvmChainMetricsGlobals$ { - /** @deprecated use `GetEvmChainMetricsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetEvmChainMetricsGlobals$inboundSchema; - /** @deprecated use `GetEvmChainMetricsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetEvmChainMetricsGlobals$outboundSchema; - /** @deprecated use `GetEvmChainMetricsGlobals$Outbound` instead. */ - export type Outbound = GetEvmChainMetricsGlobals$Outbound; -} - -export function getEvmChainMetricsGlobalsToJSON( - getEvmChainMetricsGlobals: GetEvmChainMetricsGlobals, -): string { - return JSON.stringify( - GetEvmChainMetricsGlobals$outboundSchema.parse(getEvmChainMetricsGlobals), - ); -} - -export function getEvmChainMetricsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetEvmChainMetricsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmChainMetricsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetEvmChainMetricsRequest$inboundSchema: z.ZodType< - GetEvmChainMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: components.ChainMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - timeInterval: components.TimeIntervalGranularity$inboundSchema.optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetEvmChainMetricsRequest$Outbound = { - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - timeInterval?: string | undefined; - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; -}; - -/** @internal */ -export const GetEvmChainMetricsRequest$outboundSchema: z.ZodType< - GetEvmChainMetricsRequest$Outbound, - z.ZodTypeDef, - GetEvmChainMetricsRequest -> = z.object({ - metric: components.ChainMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - timeInterval: components.TimeIntervalGranularity$outboundSchema.optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - chainId: 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 GetEvmChainMetricsRequest$ { - /** @deprecated use `GetEvmChainMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetEvmChainMetricsRequest$inboundSchema; - /** @deprecated use `GetEvmChainMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetEvmChainMetricsRequest$outboundSchema; - /** @deprecated use `GetEvmChainMetricsRequest$Outbound` instead. */ - export type Outbound = GetEvmChainMetricsRequest$Outbound; -} - -export function getEvmChainMetricsRequestToJSON( - getEvmChainMetricsRequest: GetEvmChainMetricsRequest, -): string { - return JSON.stringify( - GetEvmChainMetricsRequest$outboundSchema.parse(getEvmChainMetricsRequest), - ); -} - -export function getEvmChainMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetEvmChainMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmChainMetricsRequest' from JSON`, - ); -} - -/** @internal */ -export const GetEvmChainMetricsResponse$inboundSchema: z.ZodType< - GetEvmChainMetricsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.MetricsApiResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetEvmChainMetricsResponse$Outbound = { - Result: components.MetricsApiResponse$Outbound; -}; - -/** @internal */ -export const GetEvmChainMetricsResponse$outboundSchema: z.ZodType< - GetEvmChainMetricsResponse$Outbound, - z.ZodTypeDef, - GetEvmChainMetricsResponse -> = z.object({ - result: components.MetricsApiResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetEvmChainMetricsResponse$ { - /** @deprecated use `GetEvmChainMetricsResponse$inboundSchema` instead. */ - export const inboundSchema = GetEvmChainMetricsResponse$inboundSchema; - /** @deprecated use `GetEvmChainMetricsResponse$outboundSchema` instead. */ - export const outboundSchema = GetEvmChainMetricsResponse$outboundSchema; - /** @deprecated use `GetEvmChainMetricsResponse$Outbound` instead. */ - export type Outbound = GetEvmChainMetricsResponse$Outbound; -} - -export function getEvmChainMetricsResponseToJSON( - getEvmChainMetricsResponse: GetEvmChainMetricsResponse, -): string { - return JSON.stringify( - GetEvmChainMetricsResponse$outboundSchema.parse(getEvmChainMetricsResponse), - ); -} - -export function getEvmChainMetricsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetEvmChainMetricsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmChainMetricsResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getevmchainrollingwindowmetrics.ts b/metrics/src/models/operations/getevmchainrollingwindowmetrics.ts deleted file mode 100644 index 68728844..00000000 --- a/metrics/src/models/operations/getevmchainrollingwindowmetrics.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetEvmChainRollingWindowMetricsGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetEvmChainRollingWindowMetricsRequest = { - /** - * Which chain level metric to fetch for the rolling window. - */ - metric: components.ChainRollingWindowMetric; - /** - * A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. - */ - chainId?: string | undefined; -}; - -/** @internal */ -export const GetEvmChainRollingWindowMetricsGlobals$inboundSchema: z.ZodType< - GetEvmChainRollingWindowMetricsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetEvmChainRollingWindowMetricsGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetEvmChainRollingWindowMetricsGlobals$outboundSchema: z.ZodType< - GetEvmChainRollingWindowMetricsGlobals$Outbound, - z.ZodTypeDef, - GetEvmChainRollingWindowMetricsGlobals -> = z.object({ - chainId: 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 GetEvmChainRollingWindowMetricsGlobals$ { - /** @deprecated use `GetEvmChainRollingWindowMetricsGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetEvmChainRollingWindowMetricsGlobals$inboundSchema; - /** @deprecated use `GetEvmChainRollingWindowMetricsGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetEvmChainRollingWindowMetricsGlobals$outboundSchema; - /** @deprecated use `GetEvmChainRollingWindowMetricsGlobals$Outbound` instead. */ - export type Outbound = GetEvmChainRollingWindowMetricsGlobals$Outbound; -} - -export function getEvmChainRollingWindowMetricsGlobalsToJSON( - getEvmChainRollingWindowMetricsGlobals: - GetEvmChainRollingWindowMetricsGlobals, -): string { - return JSON.stringify( - GetEvmChainRollingWindowMetricsGlobals$outboundSchema.parse( - getEvmChainRollingWindowMetricsGlobals, - ), - ); -} - -export function getEvmChainRollingWindowMetricsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetEvmChainRollingWindowMetricsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmChainRollingWindowMetricsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetEvmChainRollingWindowMetricsRequest$inboundSchema: z.ZodType< - GetEvmChainRollingWindowMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: components.ChainRollingWindowMetric$inboundSchema, - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetEvmChainRollingWindowMetricsRequest$Outbound = { - metric: string; - chainId?: string | undefined; -}; - -/** @internal */ -export const GetEvmChainRollingWindowMetricsRequest$outboundSchema: z.ZodType< - GetEvmChainRollingWindowMetricsRequest$Outbound, - z.ZodTypeDef, - GetEvmChainRollingWindowMetricsRequest -> = z.object({ - metric: components.ChainRollingWindowMetric$outboundSchema, - chainId: 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 GetEvmChainRollingWindowMetricsRequest$ { - /** @deprecated use `GetEvmChainRollingWindowMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = - GetEvmChainRollingWindowMetricsRequest$inboundSchema; - /** @deprecated use `GetEvmChainRollingWindowMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetEvmChainRollingWindowMetricsRequest$outboundSchema; - /** @deprecated use `GetEvmChainRollingWindowMetricsRequest$Outbound` instead. */ - export type Outbound = GetEvmChainRollingWindowMetricsRequest$Outbound; -} - -export function getEvmChainRollingWindowMetricsRequestToJSON( - getEvmChainRollingWindowMetricsRequest: - GetEvmChainRollingWindowMetricsRequest, -): string { - return JSON.stringify( - GetEvmChainRollingWindowMetricsRequest$outboundSchema.parse( - getEvmChainRollingWindowMetricsRequest, - ), - ); -} - -export function getEvmChainRollingWindowMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetEvmChainRollingWindowMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetEvmChainRollingWindowMetricsRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getmetricsbynodeid.ts b/metrics/src/models/operations/getmetricsbynodeid.ts deleted file mode 100644 index fb1ab761..00000000 --- a/metrics/src/models/operations/getmetricsbynodeid.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Which metric to fetch for given L1 validator(node) ID. - */ -export const GetMetricsByNodeIdMetric = { - PerNodeCumulativeFeesPaid: "perNodeCumulativeFeesPaid", - PerNodeDailyFeesPaid: "perNodeDailyFeesPaid", -} as const; -/** - * Which metric to fetch for given L1 validator(node) ID. - */ -export type GetMetricsByNodeIdMetric = ClosedEnum< - typeof GetMetricsByNodeIdMetric ->; - -export type GetMetricsByNodeIdRequest = { - /** - * Which metric to fetch for given L1 validator(node) ID. - */ - metric: GetMetricsByNodeIdMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A primary network (P or X chain) nodeId. - */ - nodeId: string; -}; - -/** @internal */ -export const GetMetricsByNodeIdMetric$inboundSchema: z.ZodNativeEnum< - typeof GetMetricsByNodeIdMetric -> = z.nativeEnum(GetMetricsByNodeIdMetric); - -/** @internal */ -export const GetMetricsByNodeIdMetric$outboundSchema: z.ZodNativeEnum< - typeof GetMetricsByNodeIdMetric -> = GetMetricsByNodeIdMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsByNodeIdMetric$ { - /** @deprecated use `GetMetricsByNodeIdMetric$inboundSchema` instead. */ - export const inboundSchema = GetMetricsByNodeIdMetric$inboundSchema; - /** @deprecated use `GetMetricsByNodeIdMetric$outboundSchema` instead. */ - export const outboundSchema = GetMetricsByNodeIdMetric$outboundSchema; -} - -/** @internal */ -export const GetMetricsByNodeIdRequest$inboundSchema: z.ZodType< - GetMetricsByNodeIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: GetMetricsByNodeIdMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - nodeId: z.string(), -}); - -/** @internal */ -export type GetMetricsByNodeIdRequest$Outbound = { - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - nodeId: string; -}; - -/** @internal */ -export const GetMetricsByNodeIdRequest$outboundSchema: z.ZodType< - GetMetricsByNodeIdRequest$Outbound, - z.ZodTypeDef, - GetMetricsByNodeIdRequest -> = z.object({ - metric: GetMetricsByNodeIdMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - nodeId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsByNodeIdRequest$ { - /** @deprecated use `GetMetricsByNodeIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetricsByNodeIdRequest$inboundSchema; - /** @deprecated use `GetMetricsByNodeIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetricsByNodeIdRequest$outboundSchema; - /** @deprecated use `GetMetricsByNodeIdRequest$Outbound` instead. */ - export type Outbound = GetMetricsByNodeIdRequest$Outbound; -} - -export function getMetricsByNodeIdRequestToJSON( - getMetricsByNodeIdRequest: GetMetricsByNodeIdRequest, -): string { - return JSON.stringify( - GetMetricsByNodeIdRequest$outboundSchema.parse(getMetricsByNodeIdRequest), - ); -} - -export function getMetricsByNodeIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetricsByNodeIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetricsByNodeIdRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getmetricsbysubnetid.ts b/metrics/src/models/operations/getmetricsbysubnetid.ts deleted file mode 100644 index f20b562b..00000000 --- a/metrics/src/models/operations/getmetricsbysubnetid.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Which metric to fetch for given subnet ID. - */ -export const GetMetricsBySubnetIdMetric = { - PerSubnetDailyFeesPaid: "perSubnetDailyFeesPaid", - PerSubnetCumulativeFeesPaid: "perSubnetCumulativeFeesPaid", - PerSubnetPayingValidators: "perSubnetPayingValidators", -} as const; -/** - * Which metric to fetch for given subnet ID. - */ -export type GetMetricsBySubnetIdMetric = ClosedEnum< - typeof GetMetricsBySubnetIdMetric ->; - -export type GetMetricsBySubnetIdRequest = { - /** - * Which metric to fetch for given subnet ID. - */ - metric: GetMetricsBySubnetIdMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * The subnet ID to filter by. - */ - subnetId: string; -}; - -/** @internal */ -export const GetMetricsBySubnetIdMetric$inboundSchema: z.ZodNativeEnum< - typeof GetMetricsBySubnetIdMetric -> = z.nativeEnum(GetMetricsBySubnetIdMetric); - -/** @internal */ -export const GetMetricsBySubnetIdMetric$outboundSchema: z.ZodNativeEnum< - typeof GetMetricsBySubnetIdMetric -> = GetMetricsBySubnetIdMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsBySubnetIdMetric$ { - /** @deprecated use `GetMetricsBySubnetIdMetric$inboundSchema` instead. */ - export const inboundSchema = GetMetricsBySubnetIdMetric$inboundSchema; - /** @deprecated use `GetMetricsBySubnetIdMetric$outboundSchema` instead. */ - export const outboundSchema = GetMetricsBySubnetIdMetric$outboundSchema; -} - -/** @internal */ -export const GetMetricsBySubnetIdRequest$inboundSchema: z.ZodType< - GetMetricsBySubnetIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: GetMetricsBySubnetIdMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - subnetId: z.string(), -}); - -/** @internal */ -export type GetMetricsBySubnetIdRequest$Outbound = { - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - subnetId: string; -}; - -/** @internal */ -export const GetMetricsBySubnetIdRequest$outboundSchema: z.ZodType< - GetMetricsBySubnetIdRequest$Outbound, - z.ZodTypeDef, - GetMetricsBySubnetIdRequest -> = z.object({ - metric: GetMetricsBySubnetIdMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - subnetId: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsBySubnetIdRequest$ { - /** @deprecated use `GetMetricsBySubnetIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetricsBySubnetIdRequest$inboundSchema; - /** @deprecated use `GetMetricsBySubnetIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetricsBySubnetIdRequest$outboundSchema; - /** @deprecated use `GetMetricsBySubnetIdRequest$Outbound` instead. */ - export type Outbound = GetMetricsBySubnetIdRequest$Outbound; -} - -export function getMetricsBySubnetIdRequestToJSON( - getMetricsBySubnetIdRequest: GetMetricsBySubnetIdRequest, -): string { - return JSON.stringify( - GetMetricsBySubnetIdRequest$outboundSchema.parse( - getMetricsBySubnetIdRequest, - ), - ); -} - -export function getMetricsBySubnetIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetricsBySubnetIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetricsBySubnetIdRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getmetricsbyvalidationid.ts b/metrics/src/models/operations/getmetricsbyvalidationid.ts deleted file mode 100644 index 42ff8ed6..00000000 --- a/metrics/src/models/operations/getmetricsbyvalidationid.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Which metric to fetch for given L1 validation ID. - */ -export const GetMetricsByValidationIdMetric = { - ValidationCumulativeFeesDaily: "validationCumulativeFeesDaily", - ValidationFeesDaily: "validationFeesDaily", -} as const; -/** - * Which metric to fetch for given L1 validation ID. - */ -export type GetMetricsByValidationIdMetric = ClosedEnum< - typeof GetMetricsByValidationIdMetric ->; - -export type GetMetricsByValidationIdRequest = { - /** - * The L1 Validator's validation ID to filter by - */ - l1ValidationId: string; - /** - * Which metric to fetch for given L1 validation ID. - */ - metric: GetMetricsByValidationIdMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; -}; - -/** @internal */ -export const GetMetricsByValidationIdMetric$inboundSchema: z.ZodNativeEnum< - typeof GetMetricsByValidationIdMetric -> = z.nativeEnum(GetMetricsByValidationIdMetric); - -/** @internal */ -export const GetMetricsByValidationIdMetric$outboundSchema: z.ZodNativeEnum< - typeof GetMetricsByValidationIdMetric -> = GetMetricsByValidationIdMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsByValidationIdMetric$ { - /** @deprecated use `GetMetricsByValidationIdMetric$inboundSchema` instead. */ - export const inboundSchema = GetMetricsByValidationIdMetric$inboundSchema; - /** @deprecated use `GetMetricsByValidationIdMetric$outboundSchema` instead. */ - export const outboundSchema = GetMetricsByValidationIdMetric$outboundSchema; -} - -/** @internal */ -export const GetMetricsByValidationIdRequest$inboundSchema: z.ZodType< - GetMetricsByValidationIdRequest, - z.ZodTypeDef, - unknown -> = z.object({ - l1ValidationId: z.string(), - metric: GetMetricsByValidationIdMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), -}); - -/** @internal */ -export type GetMetricsByValidationIdRequest$Outbound = { - l1ValidationId: string; - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; -}; - -/** @internal */ -export const GetMetricsByValidationIdRequest$outboundSchema: z.ZodType< - GetMetricsByValidationIdRequest$Outbound, - z.ZodTypeDef, - GetMetricsByValidationIdRequest -> = z.object({ - l1ValidationId: z.string(), - metric: GetMetricsByValidationIdMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsByValidationIdRequest$ { - /** @deprecated use `GetMetricsByValidationIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetricsByValidationIdRequest$inboundSchema; - /** @deprecated use `GetMetricsByValidationIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetricsByValidationIdRequest$outboundSchema; - /** @deprecated use `GetMetricsByValidationIdRequest$Outbound` instead. */ - export type Outbound = GetMetricsByValidationIdRequest$Outbound; -} - -export function getMetricsByValidationIdRequestToJSON( - getMetricsByValidationIdRequest: GetMetricsByValidationIdRequest, -): string { - return JSON.stringify( - GetMetricsByValidationIdRequest$outboundSchema.parse( - getMetricsByValidationIdRequest, - ), - ); -} - -export function getMetricsByValidationIdRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetMetricsByValidationIdRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetMetricsByValidationIdRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getnftholdersbycontractaddress.ts b/metrics/src/models/operations/getnftholdersbycontractaddress.ts deleted file mode 100644 index 7f33c3a6..00000000 --- a/metrics/src/models/operations/getnftholdersbycontractaddress.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetNftHoldersByContractAddressGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetNftHoldersByContractAddressRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 5000. - */ - pageSize?: number | undefined; - /** - * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids. - */ - chainId?: string | undefined; - /** - * Contract address on the relevant chain. - */ - address: string; -}; - -export type GetNftHoldersByContractAddressResponse = { - result: components.NftHoldersResponse; -}; - -/** @internal */ -export const GetNftHoldersByContractAddressGlobals$inboundSchema: z.ZodType< - GetNftHoldersByContractAddressGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetNftHoldersByContractAddressGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetNftHoldersByContractAddressGlobals$outboundSchema: z.ZodType< - GetNftHoldersByContractAddressGlobals$Outbound, - z.ZodTypeDef, - GetNftHoldersByContractAddressGlobals -> = z.object({ - chainId: 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 GetNftHoldersByContractAddressGlobals$ { - /** @deprecated use `GetNftHoldersByContractAddressGlobals$inboundSchema` instead. */ - export const inboundSchema = - GetNftHoldersByContractAddressGlobals$inboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetNftHoldersByContractAddressGlobals$outboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressGlobals$Outbound` instead. */ - export type Outbound = GetNftHoldersByContractAddressGlobals$Outbound; -} - -export function getNftHoldersByContractAddressGlobalsToJSON( - getNftHoldersByContractAddressGlobals: GetNftHoldersByContractAddressGlobals, -): string { - return JSON.stringify( - GetNftHoldersByContractAddressGlobals$outboundSchema.parse( - getNftHoldersByContractAddressGlobals, - ), - ); -} - -export function getNftHoldersByContractAddressGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetNftHoldersByContractAddressGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNftHoldersByContractAddressGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetNftHoldersByContractAddressRequest$inboundSchema: z.ZodType< - GetNftHoldersByContractAddressRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - chainId: z.string().optional(), - address: z.string(), -}); - -/** @internal */ -export type GetNftHoldersByContractAddressRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - chainId?: string | undefined; - address: string; -}; - -/** @internal */ -export const GetNftHoldersByContractAddressRequest$outboundSchema: z.ZodType< - GetNftHoldersByContractAddressRequest$Outbound, - z.ZodTypeDef, - GetNftHoldersByContractAddressRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - chainId: z.string().optional(), - address: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNftHoldersByContractAddressRequest$ { - /** @deprecated use `GetNftHoldersByContractAddressRequest$inboundSchema` instead. */ - export const inboundSchema = - GetNftHoldersByContractAddressRequest$inboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressRequest$outboundSchema` instead. */ - export const outboundSchema = - GetNftHoldersByContractAddressRequest$outboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressRequest$Outbound` instead. */ - export type Outbound = GetNftHoldersByContractAddressRequest$Outbound; -} - -export function getNftHoldersByContractAddressRequestToJSON( - getNftHoldersByContractAddressRequest: GetNftHoldersByContractAddressRequest, -): string { - return JSON.stringify( - GetNftHoldersByContractAddressRequest$outboundSchema.parse( - getNftHoldersByContractAddressRequest, - ), - ); -} - -export function getNftHoldersByContractAddressRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetNftHoldersByContractAddressRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNftHoldersByContractAddressRequest' from JSON`, - ); -} - -/** @internal */ -export const GetNftHoldersByContractAddressResponse$inboundSchema: z.ZodType< - GetNftHoldersByContractAddressResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.NftHoldersResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetNftHoldersByContractAddressResponse$Outbound = { - Result: components.NftHoldersResponse$Outbound; -}; - -/** @internal */ -export const GetNftHoldersByContractAddressResponse$outboundSchema: z.ZodType< - GetNftHoldersByContractAddressResponse$Outbound, - z.ZodTypeDef, - GetNftHoldersByContractAddressResponse -> = z.object({ - result: components.NftHoldersResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetNftHoldersByContractAddressResponse$ { - /** @deprecated use `GetNftHoldersByContractAddressResponse$inboundSchema` instead. */ - export const inboundSchema = - GetNftHoldersByContractAddressResponse$inboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressResponse$outboundSchema` instead. */ - export const outboundSchema = - GetNftHoldersByContractAddressResponse$outboundSchema; - /** @deprecated use `GetNftHoldersByContractAddressResponse$Outbound` instead. */ - export type Outbound = GetNftHoldersByContractAddressResponse$Outbound; -} - -export function getNftHoldersByContractAddressResponseToJSON( - getNftHoldersByContractAddressResponse: - GetNftHoldersByContractAddressResponse, -): string { - return JSON.stringify( - GetNftHoldersByContractAddressResponse$outboundSchema.parse( - getNftHoldersByContractAddressResponse, - ), - ); -} - -export function getNftHoldersByContractAddressResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetNftHoldersByContractAddressResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetNftHoldersByContractAddressResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getstakingmetrics.ts b/metrics/src/models/operations/getstakingmetrics.ts deleted file mode 100644 index 2afc0a0c..00000000 --- a/metrics/src/models/operations/getstakingmetrics.ts +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetStakingMetricsGlobals = { - /** - * A supported network type mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; -}; - -export type GetStakingMetricsRequest = { - /** - * Which network level metric to fetch. - */ - metric: components.NetworkMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 2160. - */ - pageSize?: number | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.GlobalParamNetwork | undefined; - /** - * The subnet ID to filter by. If not provided, then all subnets will be returned. - */ - subnetId?: any | undefined; -}; - -export type GetStakingMetricsResponse = { - result: components.MetricsApiResponse; -}; - -/** @internal */ -export const GetStakingMetricsGlobals$inboundSchema: z.ZodType< - GetStakingMetricsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - network: components.GlobalParamNetwork$inboundSchema.optional(), -}); - -/** @internal */ -export type GetStakingMetricsGlobals$Outbound = { - network?: string | undefined; -}; - -/** @internal */ -export const GetStakingMetricsGlobals$outboundSchema: z.ZodType< - GetStakingMetricsGlobals$Outbound, - z.ZodTypeDef, - GetStakingMetricsGlobals -> = z.object({ - network: components.GlobalParamNetwork$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStakingMetricsGlobals$ { - /** @deprecated use `GetStakingMetricsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetStakingMetricsGlobals$inboundSchema; - /** @deprecated use `GetStakingMetricsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetStakingMetricsGlobals$outboundSchema; - /** @deprecated use `GetStakingMetricsGlobals$Outbound` instead. */ - export type Outbound = GetStakingMetricsGlobals$Outbound; -} - -export function getStakingMetricsGlobalsToJSON( - getStakingMetricsGlobals: GetStakingMetricsGlobals, -): string { - return JSON.stringify( - GetStakingMetricsGlobals$outboundSchema.parse(getStakingMetricsGlobals), - ); -} - -export function getStakingMetricsGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStakingMetricsGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStakingMetricsGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetStakingMetricsRequest$inboundSchema: z.ZodType< - GetStakingMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: components.NetworkMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$inboundSchema.optional(), - subnetId: z.any(), -}); - -/** @internal */ -export type GetStakingMetricsRequest$Outbound = { - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - network?: string | undefined; - subnetId?: any; -}; - -/** @internal */ -export const GetStakingMetricsRequest$outboundSchema: z.ZodType< - GetStakingMetricsRequest$Outbound, - z.ZodTypeDef, - GetStakingMetricsRequest -> = z.object({ - metric: components.NetworkMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(100), - network: components.GlobalParamNetwork$outboundSchema.optional(), - subnetId: z.any(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStakingMetricsRequest$ { - /** @deprecated use `GetStakingMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetStakingMetricsRequest$inboundSchema; - /** @deprecated use `GetStakingMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetStakingMetricsRequest$outboundSchema; - /** @deprecated use `GetStakingMetricsRequest$Outbound` instead. */ - export type Outbound = GetStakingMetricsRequest$Outbound; -} - -export function getStakingMetricsRequestToJSON( - getStakingMetricsRequest: GetStakingMetricsRequest, -): string { - return JSON.stringify( - GetStakingMetricsRequest$outboundSchema.parse(getStakingMetricsRequest), - ); -} - -export function getStakingMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStakingMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStakingMetricsRequest' from JSON`, - ); -} - -/** @internal */ -export const GetStakingMetricsResponse$inboundSchema: z.ZodType< - GetStakingMetricsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.MetricsApiResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetStakingMetricsResponse$Outbound = { - Result: components.MetricsApiResponse$Outbound; -}; - -/** @internal */ -export const GetStakingMetricsResponse$outboundSchema: z.ZodType< - GetStakingMetricsResponse$Outbound, - z.ZodTypeDef, - GetStakingMetricsResponse -> = z.object({ - result: components.MetricsApiResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetStakingMetricsResponse$ { - /** @deprecated use `GetStakingMetricsResponse$inboundSchema` instead. */ - export const inboundSchema = GetStakingMetricsResponse$inboundSchema; - /** @deprecated use `GetStakingMetricsResponse$outboundSchema` instead. */ - export const outboundSchema = GetStakingMetricsResponse$outboundSchema; - /** @deprecated use `GetStakingMetricsResponse$Outbound` instead. */ - export type Outbound = GetStakingMetricsResponse$Outbound; -} - -export function getStakingMetricsResponseToJSON( - getStakingMetricsResponse: GetStakingMetricsResponse, -): string { - return JSON.stringify( - GetStakingMetricsResponse$outboundSchema.parse(getStakingMetricsResponse), - ); -} - -export function getStakingMetricsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetStakingMetricsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetStakingMetricsResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getteleportermetricsbychain.ts b/metrics/src/models/operations/getteleportermetricsbychain.ts deleted file mode 100644 index f90933f1..00000000 --- a/metrics/src/models/operations/getteleportermetricsbychain.ts +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetTeleporterMetricsByChainGlobals = { - /** - * A supported EVM chain id, chain alias, or blockchain id. - */ - chainId?: string | undefined; -}; - -export type GetTeleporterMetricsByChainRequest = { - /** - * Which chain level teleporter metric to fetch. - */ - metric: components.TeleporterMetric; - /** - * A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the `/chains` endpoint to get a list of supported chain IDs. - */ - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTeleporterMetricsByChainGlobals$inboundSchema: z.ZodType< - GetTeleporterMetricsByChainGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetTeleporterMetricsByChainGlobals$Outbound = { - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTeleporterMetricsByChainGlobals$outboundSchema: z.ZodType< - GetTeleporterMetricsByChainGlobals$Outbound, - z.ZodTypeDef, - GetTeleporterMetricsByChainGlobals -> = z.object({ - chainId: 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 GetTeleporterMetricsByChainGlobals$ { - /** @deprecated use `GetTeleporterMetricsByChainGlobals$inboundSchema` instead. */ - export const inboundSchema = GetTeleporterMetricsByChainGlobals$inboundSchema; - /** @deprecated use `GetTeleporterMetricsByChainGlobals$outboundSchema` instead. */ - export const outboundSchema = - GetTeleporterMetricsByChainGlobals$outboundSchema; - /** @deprecated use `GetTeleporterMetricsByChainGlobals$Outbound` instead. */ - export type Outbound = GetTeleporterMetricsByChainGlobals$Outbound; -} - -export function getTeleporterMetricsByChainGlobalsToJSON( - getTeleporterMetricsByChainGlobals: GetTeleporterMetricsByChainGlobals, -): string { - return JSON.stringify( - GetTeleporterMetricsByChainGlobals$outboundSchema.parse( - getTeleporterMetricsByChainGlobals, - ), - ); -} - -export function getTeleporterMetricsByChainGlobalsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetTeleporterMetricsByChainGlobals$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTeleporterMetricsByChainGlobals' from JSON`, - ); -} - -/** @internal */ -export const GetTeleporterMetricsByChainRequest$inboundSchema: z.ZodType< - GetTeleporterMetricsByChainRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: components.TeleporterMetric$inboundSchema, - chainId: z.string().optional(), -}); - -/** @internal */ -export type GetTeleporterMetricsByChainRequest$Outbound = { - metric: string; - chainId?: string | undefined; -}; - -/** @internal */ -export const GetTeleporterMetricsByChainRequest$outboundSchema: z.ZodType< - GetTeleporterMetricsByChainRequest$Outbound, - z.ZodTypeDef, - GetTeleporterMetricsByChainRequest -> = z.object({ - metric: components.TeleporterMetric$outboundSchema, - chainId: 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 GetTeleporterMetricsByChainRequest$ { - /** @deprecated use `GetTeleporterMetricsByChainRequest$inboundSchema` instead. */ - export const inboundSchema = GetTeleporterMetricsByChainRequest$inboundSchema; - /** @deprecated use `GetTeleporterMetricsByChainRequest$outboundSchema` instead. */ - export const outboundSchema = - GetTeleporterMetricsByChainRequest$outboundSchema; - /** @deprecated use `GetTeleporterMetricsByChainRequest$Outbound` instead. */ - export type Outbound = GetTeleporterMetricsByChainRequest$Outbound; -} - -export function getTeleporterMetricsByChainRequestToJSON( - getTeleporterMetricsByChainRequest: GetTeleporterMetricsByChainRequest, -): string { - return JSON.stringify( - GetTeleporterMetricsByChainRequest$outboundSchema.parse( - getTeleporterMetricsByChainRequest, - ), - ); -} - -export function getTeleporterMetricsByChainRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetTeleporterMetricsByChainRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTeleporterMetricsByChainRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/gettotall1validatormetrics.ts b/metrics/src/models/operations/gettotall1validatormetrics.ts deleted file mode 100644 index a8e2de63..00000000 --- a/metrics/src/models/operations/gettotall1validatormetrics.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Which network level metric to fetch for L1 validator. - */ -export const GetTotalL1ValidatorMetricsMetric = { - TotalCumulativeFeesDaily: "totalCumulativeFeesDaily", - TotalValidatorFeesDaily: "totalValidatorFeesDaily", - TotalPayingValidatorsDaily: "totalPayingValidatorsDaily", -} as const; -/** - * Which network level metric to fetch for L1 validator. - */ -export type GetTotalL1ValidatorMetricsMetric = ClosedEnum< - typeof GetTotalL1ValidatorMetricsMetric ->; - -export type GetTotalL1ValidatorMetricsRequest = { - /** - * Which network level metric to fetch for L1 validator. - */ - metric: GetTotalL1ValidatorMetricsMetric; - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; -}; - -/** @internal */ -export const GetTotalL1ValidatorMetricsMetric$inboundSchema: z.ZodNativeEnum< - typeof GetTotalL1ValidatorMetricsMetric -> = z.nativeEnum(GetTotalL1ValidatorMetricsMetric); - -/** @internal */ -export const GetTotalL1ValidatorMetricsMetric$outboundSchema: z.ZodNativeEnum< - typeof GetTotalL1ValidatorMetricsMetric -> = GetTotalL1ValidatorMetricsMetric$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTotalL1ValidatorMetricsMetric$ { - /** @deprecated use `GetTotalL1ValidatorMetricsMetric$inboundSchema` instead. */ - export const inboundSchema = GetTotalL1ValidatorMetricsMetric$inboundSchema; - /** @deprecated use `GetTotalL1ValidatorMetricsMetric$outboundSchema` instead. */ - export const outboundSchema = GetTotalL1ValidatorMetricsMetric$outboundSchema; -} - -/** @internal */ -export const GetTotalL1ValidatorMetricsRequest$inboundSchema: z.ZodType< - GetTotalL1ValidatorMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - metric: GetTotalL1ValidatorMetricsMetric$inboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), -}); - -/** @internal */ -export type GetTotalL1ValidatorMetricsRequest$Outbound = { - metric: string; - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; -}; - -/** @internal */ -export const GetTotalL1ValidatorMetricsRequest$outboundSchema: z.ZodType< - GetTotalL1ValidatorMetricsRequest$Outbound, - z.ZodTypeDef, - GetTotalL1ValidatorMetricsRequest -> = z.object({ - metric: GetTotalL1ValidatorMetricsMetric$outboundSchema, - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetTotalL1ValidatorMetricsRequest$ { - /** @deprecated use `GetTotalL1ValidatorMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetTotalL1ValidatorMetricsRequest$inboundSchema; - /** @deprecated use `GetTotalL1ValidatorMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = - GetTotalL1ValidatorMetricsRequest$outboundSchema; - /** @deprecated use `GetTotalL1ValidatorMetricsRequest$Outbound` instead. */ - export type Outbound = GetTotalL1ValidatorMetricsRequest$Outbound; -} - -export function getTotalL1ValidatorMetricsRequestToJSON( - getTotalL1ValidatorMetricsRequest: GetTotalL1ValidatorMetricsRequest, -): string { - return JSON.stringify( - GetTotalL1ValidatorMetricsRequest$outboundSchema.parse( - getTotalL1ValidatorMetricsRequest, - ), - ); -} - -export function getTotalL1ValidatorMetricsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetTotalL1ValidatorMetricsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetTotalL1ValidatorMetricsRequest' from JSON`, - ); -} diff --git a/metrics/src/models/operations/getvalidatorsbydaterange.ts b/metrics/src/models/operations/getvalidatorsbydaterange.ts deleted file mode 100644 index e24f6987..00000000 --- a/metrics/src/models/operations/getvalidatorsbydaterange.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetValidatorsByDateRangeRequest = { - /** - * Query param for retrieving items after a specific timestamp. - */ - startTimestamp?: number | undefined; - /** - * Query param for retrieving items before a specific timestamp. - */ - endTimestamp?: number | undefined; - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 5000. - */ - pageSize?: number | undefined; - /** - * The subnet ID to filter by. - */ - subnetId: string; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type GetValidatorsByDateRangeResponse = { - result: components.PChainLookingGlassResponse; -}; - -/** @internal */ -export const GetValidatorsByDateRangeRequest$inboundSchema: z.ZodType< - GetValidatorsByDateRangeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - subnetId: z.string(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type GetValidatorsByDateRangeRequest$Outbound = { - startTimestamp?: number | undefined; - endTimestamp?: number | undefined; - pageToken?: string | undefined; - pageSize: number; - subnetId: string; - network?: string | undefined; -}; - -/** @internal */ -export const GetValidatorsByDateRangeRequest$outboundSchema: z.ZodType< - GetValidatorsByDateRangeRequest$Outbound, - z.ZodTypeDef, - GetValidatorsByDateRangeRequest -> = z.object({ - startTimestamp: z.number().int().optional(), - endTimestamp: z.number().int().optional(), - pageToken: z.string().optional(), - pageSize: z.number().int().default(1000), - subnetId: z.string(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetValidatorsByDateRangeRequest$ { - /** @deprecated use `GetValidatorsByDateRangeRequest$inboundSchema` instead. */ - export const inboundSchema = GetValidatorsByDateRangeRequest$inboundSchema; - /** @deprecated use `GetValidatorsByDateRangeRequest$outboundSchema` instead. */ - export const outboundSchema = GetValidatorsByDateRangeRequest$outboundSchema; - /** @deprecated use `GetValidatorsByDateRangeRequest$Outbound` instead. */ - export type Outbound = GetValidatorsByDateRangeRequest$Outbound; -} - -export function getValidatorsByDateRangeRequestToJSON( - getValidatorsByDateRangeRequest: GetValidatorsByDateRangeRequest, -): string { - return JSON.stringify( - GetValidatorsByDateRangeRequest$outboundSchema.parse( - getValidatorsByDateRangeRequest, - ), - ); -} - -export function getValidatorsByDateRangeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetValidatorsByDateRangeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetValidatorsByDateRangeRequest' from JSON`, - ); -} - -/** @internal */ -export const GetValidatorsByDateRangeResponse$inboundSchema: z.ZodType< - GetValidatorsByDateRangeResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.PChainLookingGlassResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetValidatorsByDateRangeResponse$Outbound = { - Result: components.PChainLookingGlassResponse$Outbound; -}; - -/** @internal */ -export const GetValidatorsByDateRangeResponse$outboundSchema: z.ZodType< - GetValidatorsByDateRangeResponse$Outbound, - z.ZodTypeDef, - GetValidatorsByDateRangeResponse -> = z.object({ - result: components.PChainLookingGlassResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetValidatorsByDateRangeResponse$ { - /** @deprecated use `GetValidatorsByDateRangeResponse$inboundSchema` instead. */ - export const inboundSchema = GetValidatorsByDateRangeResponse$inboundSchema; - /** @deprecated use `GetValidatorsByDateRangeResponse$outboundSchema` instead. */ - export const outboundSchema = GetValidatorsByDateRangeResponse$outboundSchema; - /** @deprecated use `GetValidatorsByDateRangeResponse$Outbound` instead. */ - export type Outbound = GetValidatorsByDateRangeResponse$Outbound; -} - -export function getValidatorsByDateRangeResponseToJSON( - getValidatorsByDateRangeResponse: GetValidatorsByDateRangeResponse, -): string { - return JSON.stringify( - GetValidatorsByDateRangeResponse$outboundSchema.parse( - getValidatorsByDateRangeResponse, - ), - ); -} - -export function getValidatorsByDateRangeResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetValidatorsByDateRangeResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetValidatorsByDateRangeResponse' from JSON`, - ); -} diff --git a/metrics/src/models/operations/index.ts b/metrics/src/models/operations/index.ts deleted file mode 100644 index 3be51439..00000000 --- a/metrics/src/models/operations/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./getaddressesbybalanceovertime.js"; -export * from "./getaddressesbybtcbbridged.js"; -export * from "./getchain.js"; -export * from "./getevmchainmetrics.js"; -export * from "./getevmchainrollingwindowmetrics.js"; -export * from "./getmetricsbynodeid.js"; -export * from "./getmetricsbysubnetid.js"; -export * from "./getmetricsbyvalidationid.js"; -export * from "./getnftholdersbycontractaddress.js"; -export * from "./getstakingmetrics.js"; -export * from "./getteleportermetricsbychain.js"; -export * from "./gettotall1validatormetrics.js"; -export * from "./getvalidatorsbydaterange.js"; -export * from "./listchains.js"; diff --git a/metrics/src/models/operations/listchains.ts b/metrics/src/models/operations/listchains.ts deleted file mode 100644 index 2d36bdad..00000000 --- a/metrics/src/models/operations/listchains.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListChainsRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * Either mainnet or testnet/fuji. - */ - network?: components.Network | undefined; -}; - -export type ListChainsResponse = { - result: components.ListChainsResponse; -}; - -/** @internal */ -export const ListChainsRequest$inboundSchema: z.ZodType< - ListChainsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - network: components.Network$inboundSchema.optional(), -}); - -/** @internal */ -export type ListChainsRequest$Outbound = { - pageToken?: string | undefined; - network?: string | undefined; -}; - -/** @internal */ -export const ListChainsRequest$outboundSchema: z.ZodType< - ListChainsRequest$Outbound, - z.ZodTypeDef, - ListChainsRequest -> = z.object({ - pageToken: z.string().optional(), - network: components.Network$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListChainsRequest$ { - /** @deprecated use `ListChainsRequest$inboundSchema` instead. */ - export const inboundSchema = ListChainsRequest$inboundSchema; - /** @deprecated use `ListChainsRequest$outboundSchema` instead. */ - export const outboundSchema = ListChainsRequest$outboundSchema; - /** @deprecated use `ListChainsRequest$Outbound` instead. */ - export type Outbound = ListChainsRequest$Outbound; -} - -export function listChainsRequestToJSON( - listChainsRequest: ListChainsRequest, -): string { - return JSON.stringify( - ListChainsRequest$outboundSchema.parse(listChainsRequest), - ); -} - -export function listChainsRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListChainsRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListChainsRequest' from JSON`, - ); -} - -/** @internal */ -export const ListChainsResponse$inboundSchema: z.ZodType< - ListChainsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListChainsResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListChainsResponse$Outbound = { - Result: components.ListChainsResponse$Outbound; -}; - -/** @internal */ -export const ListChainsResponse$outboundSchema: z.ZodType< - ListChainsResponse$Outbound, - z.ZodTypeDef, - ListChainsResponse -> = z.object({ - result: components.ListChainsResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListChainsResponse$ { - /** @deprecated use `ListChainsResponse$inboundSchema` instead. */ - export const inboundSchema = ListChainsResponse$inboundSchema; - /** @deprecated use `ListChainsResponse$outboundSchema` instead. */ - export const outboundSchema = ListChainsResponse$outboundSchema; - /** @deprecated use `ListChainsResponse$Outbound` instead. */ - export type Outbound = ListChainsResponse$Outbound; -} - -export function listChainsResponseToJSON( - listChainsResponse: ListChainsResponse, -): string { - return JSON.stringify( - ListChainsResponse$outboundSchema.parse(listChainsResponse), - ); -} - -export function listChainsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListChainsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListChainsResponse' from JSON`, - ); -} diff --git a/metrics/src/sdk/chains.ts b/metrics/src/sdk/chains.ts deleted file mode 100644 index 349908a5..00000000 --- a/metrics/src/sdk/chains.ts +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsChainsGet } from "../funcs/metricsChainsGet.js"; -import { metricsChainsGetMetrics } from "../funcs/metricsChainsGetMetrics.js"; -import { metricsChainsGetRollingWindowMetrics } from "../funcs/metricsChainsGetRollingWindowMetrics.js"; -import { metricsChainsGetTeleporterMetrics } from "../funcs/metricsChainsGetTeleporterMetrics.js"; -import { metricsChainsList } from "../funcs/metricsChainsList.js"; -import { metricsChainsListBTCbBridgersAboveThreshold } from "../funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; -import { metricsChainsListNftHolders } from "../funcs/metricsChainsListNftHolders.js"; -import { metricsChainsListTokenHoldersAboveThreshold } from "../funcs/metricsChainsListTokenHoldersAboveThreshold.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Chains extends ClientSDK { - /** - * Get a list of supported blockchains - * - * @remarks - * Get a list of Metrics API supported blockchains. This endpoint is paginated and supports a maximum page size of 10000. - */ - async list( - request: operations.ListChainsRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(metricsChainsList( - this, - request, - options, - )); - } - - /** - * Get chain information for supported blockchain - * - * @remarks - * Get chain information for Metrics API supported blockchain. - */ - async get( - request: operations.GetChainRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsChainsGet( - this, - request, - options, - )); - } - - /** - * Get metrics for EVM chains - * - * @remarks - * EVM chain metrics are available for all Avalanche L1s on _Mainnet_ and _Fuji_ (testnet). You can request metrics by EVM chain ID. See the `/chains` endpoint for all supported chains. - * - * All metrics are updated several times every hour. Each metric data point has a `value` and `timestamp` (Unix timestamp in seconds). All metric values include data within the duration of the associated timestamp plus the requested `timeInterval`. All timestamps are fixed to the hour. When requesting a timeInterval of **day**, **week**, or **month**, the timestamp will be 0:00 UTC of the day, Monday of the week, or first day of the month, respectively. The latest data point in any response may change on each update. - * - * ### Metrics - * - * activeAddresses: The number of distinct addresses seen within the selected `timeInterval` starting at the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. - * - * activeSenders: This metric follows the same structure as activeAddresses, but instead only counts addresses that appear in the “from” field of the respective transaction or transfer log event. - * - * cumulativeTxCount: The cumulative transaction count from genesis up until 24 hours after the timestamp. This aggregation can be considered a “rolling sum” of the transaction count metric (txCount). Only `timeInterval=day` supported. - * - * cumulativeAddresses: The cumulative count of unique addresses from genesis up until 24 hours after the timestamp. Addresses counted are those that appear in the “from” and “to” fields of a transaction or ERC20/ERC721/ERC1155 transfer log event. Only `timeInterval=day` supported. - * - * cumulativeContracts: The cumulative count of contracts created from genesis up until the timestamp. Contracts are counted by looking for the CREATE, CREATE2, and CREATE3 call types in all transaction traces (aka internal transactions). Only `timeInterval=day` supported. - * - * cumulativeDeployers: The cumulative count of unique contract deployers from genesis up until 24 hours after the timestamp. Deployers counted are those that appear in the “from” field of transaction traces with the CREATE, CREATE2, and CREATE3 call types. Only `timeInterval=day` supported. - * - * gasUsed: The amount of gas used by transactions within the requested timeInterval starting at the timestamp. - * - * txCount: The amount of transactions within the requested timeInterval starting at the timestamp. - * - * avgGps: The average Gas used Per Second (GPS) within the day beginning at the timestamp. The average is calculated by taking the sum of gas used by all blocks within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - * - * maxGps: The max Gas used Per Second (GPS) measured within the day beginning at the timestamp. Each GPS data point is calculated using the gas used in a single block divided by the time since the last block. Only `timeInterval=day` supported. - * - * avgTps: The average Transactions Per Second (TPS) within the day beginning at the timestamp. The average is calculated by taking the sum of transactions within the day and dividing it by the time interval between the last block of the previous day and the last block of the day that begins at the timestamp. Only `timeInterval=day` supported. - * - * maxTps: The max Transactions Per Second (TPS) measured within the day beginning at the timestamp. Each TPS data point is calculated by taking the number of transactions in a single block and dividing it by the time since the last block. Only `timeInterval=day` supported. - * - * avgGasPrice: The average gas price within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - * - * maxGasPrice: The max gas price seen within the day beginning at the timestamp. The gas price used is the price reported in transaction receipts. Only `timeInterval=day` supported. - * - * feesPaid: The sum of transaction fees paid within the day beginning at the timestamp. The fee is calculated as the gas used multiplied by the gas price as reported in all transaction receipts. Only `timeInterval=day` supported. - */ - async getMetrics( - request: operations.GetEvmChainMetricsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(metricsChainsGetMetrics( - this, - request, - options, - )); - } - - /** - * Get teleporter metrics for EVM chains - * - * @remarks - * Gets teleporter metrics for an EVM chain. - */ - async getTeleporterMetrics( - request: operations.GetTeleporterMetricsByChainRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsChainsGetTeleporterMetrics( - this, - request, - options, - )); - } - - /** - * Get rolling window metrics for EVM chains - * - * @remarks - * Gets the rolling window metrics for an EVM chain for the last hour, day, month, year, and all time. - */ - async getRollingWindowMetrics( - request: operations.GetEvmChainRollingWindowMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsChainsGetRollingWindowMetrics( - this, - request, - options, - )); - } - - /** - * Get NFT holders by contract address - * - * @remarks - * Get list of NFT holders and number of NFTs held by contract address. - */ - async listNftHolders( - request: operations.GetNftHoldersByContractAddressRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.GetNftHoldersByContractAddressResponse, - { cursor: string } - > - > { - return unwrapResultIterator(metricsChainsListNftHolders( - this, - request, - options, - )); - } - - /** - * Get addresses by balance over time - * - * @remarks - * Get list of addresses and their latest balances that have held more than a certain threshold of a given token during the specified time frame. - */ - async listTokenHoldersAboveThreshold( - request: operations.GetAddressesByBalanceOverTimeRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.GetAddressesByBalanceOverTimeResponse, - { cursor: string } - > - > { - return unwrapResultIterator(metricsChainsListTokenHoldersAboveThreshold( - this, - request, - options, - )); - } - - /** - * Get addresses by BTCb bridged balance - * - * @remarks - * Get list of addresses and their net bridged amounts that have bridged more than a certain threshold. - */ - async listBTCbBridgersAboveThreshold( - request: operations.GetAddressesByBtcbBridgedRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.GetAddressesByBtcbBridgedResponse, - { cursor: string } - > - > { - return unwrapResultIterator(metricsChainsListBTCbBridgersAboveThreshold( - this, - request, - options, - )); - } -} diff --git a/metrics/src/sdk/index.ts b/metrics/src/sdk/index.ts deleted file mode 100644 index ecac2264..00000000 --- a/metrics/src/sdk/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./sdk.js"; diff --git a/metrics/src/sdk/l1validators.ts b/metrics/src/sdk/l1validators.ts deleted file mode 100644 index a2e331c1..00000000 --- a/metrics/src/sdk/l1validators.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsL1ValidatorsGetMetricsByNodeId } from "../funcs/metricsL1ValidatorsGetMetricsByNodeId.js"; -import { metricsL1ValidatorsGetMetricsBySubnetId } from "../funcs/metricsL1ValidatorsGetMetricsBySubnetId.js"; -import { metricsL1ValidatorsGetMetricsByValidationId } from "../funcs/metricsL1ValidatorsGetMetricsByValidationId.js"; -import { metricsL1ValidatorsListMetrics } from "../funcs/metricsL1ValidatorsListMetrics.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class L1Validators extends ClientSDK { - /** - * Get given metric for all validators - * - * @remarks - * Get given metric's value for all validators. - */ - async listMetrics( - request: operations.GetTotalL1ValidatorMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsL1ValidatorsListMetrics( - this, - request, - options, - )); - } - - /** - * Get metric values with given validation id and timestamp range - * - * @remarks - * Get given metric values for a given validation id with or without a timestamp range. - */ - async getMetricsByValidationId( - request: operations.GetMetricsByValidationIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsL1ValidatorsGetMetricsByValidationId( - this, - request, - options, - )); - } - - /** - * Get metric values with given node id and timestamp range - * - * @remarks - * Get given metric values for a given node id with or without a timestamp range. - */ - async getMetricsByNodeId( - request: operations.GetMetricsByNodeIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsL1ValidatorsGetMetricsByNodeId( - this, - request, - options, - )); - } - - /** - * Get metric values with given subnet ID and timestamp range - * - * @remarks - * Get given metric values for a given subnet ID with or without a timestamp range. - */ - async getMetricsBySubnetId( - request: operations.GetMetricsBySubnetIdRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsL1ValidatorsGetMetricsBySubnetId( - this, - request, - options, - )); - } -} diff --git a/metrics/src/sdk/metrics.ts b/metrics/src/sdk/metrics.ts deleted file mode 100644 index a2f4abd5..00000000 --- a/metrics/src/sdk/metrics.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsHealthCheck } from "../funcs/metricsHealthCheck.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { Chains } from "./chains.js"; -import { L1Validators } from "./l1validators.js"; -import { Networks } from "./networks.js"; -import { Subnets } from "./subnets.js"; - -export class Metrics extends ClientSDK { - private _chains?: Chains; - get chains(): Chains { - return (this._chains ??= new Chains(this._options)); - } - - private _networks?: Networks; - get networks(): Networks { - return (this._networks ??= new Networks(this._options)); - } - - private _l1Validators?: L1Validators; - get l1Validators(): L1Validators { - return (this._l1Validators ??= new L1Validators(this._options)); - } - - private _subnets?: Subnets; - get subnets(): Subnets { - return (this._subnets ??= new Subnets(this._options)); - } - - /** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ - async healthCheck( - options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsHealthCheck( - this, - options, - )); - } -} diff --git a/metrics/src/sdk/networks.ts b/metrics/src/sdk/networks.ts deleted file mode 100644 index 49c6138c..00000000 --- a/metrics/src/sdk/networks.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsNetworksGetStakingMetrics } from "../funcs/metricsNetworksGetStakingMetrics.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Networks extends ClientSDK { - /** - * Get staking metrics for a given subnet - * - * @remarks - * Gets staking metrics for a given subnet. - */ - async getStakingMetrics( - request: operations.GetStakingMetricsRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(metricsNetworksGetStakingMetrics( - this, - request, - options, - )); - } -} diff --git a/metrics/src/sdk/sdk.ts b/metrics/src/sdk/sdk.ts deleted file mode 100644 index 258f44c7..00000000 --- a/metrics/src/sdk/sdk.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Metrics } from "./metrics.js"; - -export class Avalanche extends ClientSDK { - private _metrics?: Metrics; - get metrics(): Metrics { - return (this._metrics ??= new Metrics(this._options)); - } -} diff --git a/metrics/src/sdk/subnets.ts b/metrics/src/sdk/subnets.ts deleted file mode 100644 index b9090007..00000000 --- a/metrics/src/sdk/subnets.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { metricsSubnetsGetValidators } from "../funcs/metricsSubnetsGetValidators.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Subnets extends ClientSDK { - /** - * Get addresses running validators during a given time frame - * - * @remarks - * Get list of addresses and AddValidatorTx timestamps set to receive awards for validation periods during the specified time frame. - */ - async getValidators( - request: operations.GetValidatorsByDateRangeRequest, - options?: RequestOptions, - ): Promise< - PageIterator< - operations.GetValidatorsByDateRangeResponse, - { cursor: string } - > - > { - return unwrapResultIterator(metricsSubnetsGetValidators( - this, - request, - options, - )); - } -} diff --git a/metrics/src/types/async.ts b/metrics/src/types/async.ts deleted file mode 100644 index 689dba5d..00000000 --- a/metrics/src/types/async.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type APICall = - | { - status: "complete"; - request: Request; - response: Response; - } - | { - status: "request-error"; - request: Request; - response?: undefined; - } - | { - status: "invalid"; - request?: undefined; - response?: undefined; - }; - -export class APIPromise implements Promise { - readonly #promise: Promise<[T, APICall]>; - readonly #unwrapped: Promise; - - readonly [Symbol.toStringTag] = "APIPromise"; - - constructor(p: [T, APICall] | Promise<[T, APICall]>) { - this.#promise = p instanceof Promise ? p : Promise.resolve(p); - this.#unwrapped = - p instanceof Promise - ? this.#promise.then(([value]) => value) - : Promise.resolve(p[0]); - } - - then( - onfulfilled?: - | ((value: T) => TResult1 | PromiseLike) - | null - | undefined, - onrejected?: - | ((reason: any) => TResult2 | PromiseLike) - | null - | undefined, - ): Promise { - return this.#promise.then( - onfulfilled ? ([value]) => onfulfilled(value) : void 0, - onrejected, - ); - } - - catch( - onrejected?: - | ((reason: any) => TResult | PromiseLike) - | null - | undefined, - ): Promise { - return this.#unwrapped.catch(onrejected); - } - - finally(onfinally?: (() => void) | null | undefined): Promise { - return this.#unwrapped.finally(onfinally); - } - - $inspect(): Promise<[T, APICall]> { - return this.#promise; - } -} diff --git a/metrics/src/types/blobs.ts b/metrics/src/types/blobs.ts deleted file mode 100644 index 4ce84602..00000000 --- a/metrics/src/types/blobs.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); - -export function isBlobLike(val: unknown): val is Blob { - if (val instanceof Blob) { - return true; - } - - if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) { - return false; - } - - const name = val[Symbol.toStringTag]; - if (typeof name !== "string") { - return false; - } - if (name !== "Blob" && name !== "File") { - return false; - } - - return "stream" in val && typeof val.stream === "function"; -} diff --git a/metrics/src/types/constdatetime.ts b/metrics/src/types/constdatetime.ts deleted file mode 100644 index eeff4dde..00000000 --- a/metrics/src/types/constdatetime.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function constDateTime( - val: string, -): z.ZodType { - return z.custom((v) => { - return ( - typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() - ); - }, `Value must be equivalent to ${val}`); -} diff --git a/metrics/src/types/enums.ts b/metrics/src/types/enums.ts deleted file mode 100644 index 6fb6d910..00000000 --- a/metrics/src/types/enums.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -declare const __brand: unique symbol; -export type Unrecognized = T & { [__brand]: "unrecognized" }; - -export function catchUnrecognizedEnum(value: T): Unrecognized { - return value as Unrecognized; -} - -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; diff --git a/metrics/src/types/fp.ts b/metrics/src/types/fp.ts deleted file mode 100644 index ccbe51ea..00000000 --- a/metrics/src/types/fp.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * A monad that captures the result of a function call or an error if it was not - * successful. Railway programming, enabled by this type, can be a nicer - * alternative to traditional exception throwing because it allows functions to - * declare all _known_ errors with static types and then check for them - * exhaustively in application code. Thrown exception have a type of `unknown` - * and break out of regular control flow of programs making them harder to - * inspect and more verbose work with due to try-catch blocks. - */ -export type Result = - | { ok: true; value: T; error?: never } - | { ok: false; value?: never; error: E }; - -export function OK(value: V): Result { - return { ok: true, value }; -} - -export function ERR(error: E): Result { - return { ok: false, error }; -} - -/** - * unwrap is a convenience function for extracting a value from a result or - * throwing if there was an error. - */ -export function unwrap(r: Result): T { - if (!r.ok) { - throw r.error; - } - return r.value; -} - -/** - * unwrapAsync is a convenience function for resolving a value from a Promise - * of a result or rejecting if an error occurred. - */ -export async function unwrapAsync( - pr: Promise>, -): Promise { - const r = await pr; - if (!r.ok) { - throw r.error; - } - - return r.value; -} diff --git a/metrics/src/types/index.ts b/metrics/src/types/index.ts deleted file mode 100644 index e124e817..00000000 --- a/metrics/src/types/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; -export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; -export type { Result } from "./fp.js"; -export type { PageIterator, Paginator } from "./operations.js"; -export { createPageIterator } from "./operations.js"; -export { RFCDate } from "./rfcdate.js"; diff --git a/metrics/src/types/operations.ts b/metrics/src/types/operations.ts deleted file mode 100644 index beb81e10..00000000 --- a/metrics/src/types/operations.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { Result } from "./fp.js"; - -export type Paginator = () => Promise }> | null; - -export type PageIterator = V & { - next: Paginator; - [Symbol.asyncIterator]: () => AsyncIterableIterator; - "~next"?: PageState | undefined; -}; - -export function createPageIterator( - page: V & { next: Paginator }, - halt: (v: V) => boolean, -): { - [Symbol.asyncIterator]: () => AsyncIterableIterator; -} { - return { - [Symbol.asyncIterator]: async function* paginator() { - yield page; - if (halt(page)) { - return; - } - - let p: typeof page | null = page; - for (p = await p.next(); p != null; p = await p.next()) { - yield p; - if (halt(p)) { - return; - } - } - }, - }; -} - -/** - * This utility create a special iterator that yields a single value and - * terminates. It is useful in paginated SDK functions that have early return - * paths when things go wrong. - */ -export function haltIterator( - v: V, -): PageIterator { - return { - ...v, - next: () => null, - [Symbol.asyncIterator]: async function* paginator() { - yield v; - }, - }; -} - -/** - * Converts an async iterator of `Result` into an async iterator of `V`. - * When error results occur, the underlying error value is thrown. - */ -export async function unwrapResultIterator( - iteratorPromise: Promise, PageState>>, -): Promise> { - const resultIter = await iteratorPromise; - - if (!resultIter.ok) { - throw resultIter.error; - } - - return { - ...resultIter.value, - next: unwrapPaginator(resultIter.next), - "~next": resultIter["~next"], - [Symbol.asyncIterator]: async function* paginator() { - for await (const page of resultIter) { - if (!page.ok) { - throw page.error; - } - yield page.value; - } - }, - }; -} - -function unwrapPaginator( - paginator: Paginator>, -): Paginator { - return () => { - const nextResult = paginator(); - if (nextResult == null) { - return null; - } - return nextResult.then((res) => { - if (!res.ok) { - throw res.error; - } - const out = { - ...res.value, - next: unwrapPaginator(res.next), - }; - return out; - }); - }; -} - -export const URL_OVERRIDE = Symbol("URL_OVERRIDE"); diff --git a/metrics/src/types/rfcdate.ts b/metrics/src/types/rfcdate.ts deleted file mode 100644 index c79b3f53..00000000 --- a/metrics/src/types/rfcdate.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const dateRE = /^\d{4}-\d{2}-\d{2}$/; - -export class RFCDate { - private serialized: string; - - /** - * Creates a new RFCDate instance using today's date. - */ - static today(): RFCDate { - return new RFCDate(new Date()); - } - - /** - * Creates a new RFCDate instance using the provided input. - * If a string is used then in must be in the format YYYY-MM-DD. - * - * @param date A Date object or a date string in YYYY-MM-DD format - * @example - * new RFCDate("2022-01-01") - * @example - * new RFCDate(new Date()) - */ - constructor(date: Date | string) { - if (typeof date === "string" && !dateRE.test(date)) { - throw new RangeError( - "RFCDate: date strings must be in the format YYYY-MM-DD: " + date, - ); - } - - const value = new Date(date); - if (isNaN(+value)) { - throw new RangeError("RFCDate: invalid date provided: " + date); - } - - this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length); - if (!dateRE.test(this.serialized)) { - throw new TypeError( - `RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`, - ); - } - } - - toJSON(): string { - return this.toString(); - } - - toString(): string { - return this.serialized; - } -} diff --git a/metrics/src/types/streams.ts b/metrics/src/types/streams.ts deleted file mode 100644 index a0163e7a..00000000 --- a/metrics/src/types/streams.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export function isReadableStream( - val: unknown, -): val is ReadableStream { - if (typeof val !== "object" || val === null) { - return false; - } - - // Check for the presence of methods specific to ReadableStream - const stream = val as ReadableStream; - - // ReadableStream has methods like getReader, cancel, and tee - return ( - typeof stream.getReader === "function" && - typeof stream.cancel === "function" && - typeof stream.tee === "function" - ); -} diff --git a/metrics/tsconfig.json b/metrics/tsconfig.json deleted file mode 100644 index 94d81a34..00000000 --- a/metrics/tsconfig.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", - "target": "ES2020", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "jsx": "react-jsx", - - "module": "Node16", - "moduleResolution": "Node16", - - "allowJs": true, - - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": ".", - - - // https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json - "strict": true, - "allowUnusedLabels": false, - "allowUnreachableCode": false, - "exactOptionalPropertyTypes": true, - "useUnknownInCatchVariables": true, - "noFallthroughCasesInSwitch": true, - "noImplicitOverride": true, - "noImplicitReturns": true, - "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "checkJs": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true - }, - "include": ["src"], - "exclude": ["node_modules"] -} diff --git a/webhooks/.devcontainer/README.md b/webhooks/.devcontainer/README.md deleted file mode 100644 index 96e8024b..00000000 --- a/webhooks/.devcontainer/README.md +++ /dev/null @@ -1,35 +0,0 @@ - - -
- -> **Remember to shutdown a GitHub Codespace when it is not in use!** - -# Dev Containers Quick Start - -The default location for usage snippets is the `samples` directory. - -## Running a Usage Sample - -A sample usage example has been provided in a `root.ts` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below. - -``` -ts-node root.ts -``` - -## Generating Additional Usage Samples - -The speakeasy CLI allows you to generate more usage snippets. Here's how: - -- To generate a sample for a specific operation by providing an operation ID, use: - -``` -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -i {INPUT_OPERATION_ID} -o ./samples -``` - -- To generate samples for an entire namespace (like a tag or group name), use: - -``` -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -n {INPUT_TAG_NAME} -o ./samples -``` diff --git a/webhooks/.devcontainer/devcontainer.json b/webhooks/.devcontainer/devcontainer.json deleted file mode 100644 index 4d560dd5..00000000 --- a/webhooks/.devcontainer/devcontainer.json +++ /dev/null @@ -1,45 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/images/tree/main/src/typescript-node -{ - "name": "TypeScript", - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh", - "customizations": { - "vscode": { - "extensions": [ - "ms-vscode.vscode-typescript-tslint-plugin", - "esbenp.prettier-vscode", - "github.vscode-pull-request-github" - ], - "settings": { - "files.eol": "\n", - "editor.formatOnSave": true, - "typescript.tsc.autoDetect": "on", - "typescript.updateImportsOnFileMove.enabled": "always", - "typescript.preferences.importModuleSpecifier": "relative", - "[typescript]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - }, - "[typescriptreact]": { - "editor.codeActionsOnSave": { - "source.organizeImports": true - } - } - } - }, - "codespaces": { - "openFiles": [ - ".devcontainer/README.md" - ] - } - } - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" -} diff --git a/webhooks/.devcontainer/setup.sh b/webhooks/.devcontainer/setup.sh deleted file mode 100644 index 3b6e9242..00000000 --- a/webhooks/.devcontainer/setup.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Install the speakeasy CLI -curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh - -# Setup samples directory -rmdir samples || true -mkdir samples - -npm install -npm install -g ts-node -npm link -npm link @avalanche-sdk/webhooks -TS_CONFIG_CONTENT=$(cat < samples/tsconfig.json - -# Generate starter usage sample with speakeasy -speakeasy generate usage -s https://glacier-api.avax.network/api-json -l typescript -o samples/root.ts \ No newline at end of file diff --git a/webhooks/.genignore b/webhooks/.genignore deleted file mode 100644 index b2c3b9d6..00000000 --- a/webhooks/.genignore +++ /dev/null @@ -1 +0,0 @@ -jsr.json \ No newline at end of file diff --git a/webhooks/.gitattributes b/webhooks/.gitattributes deleted file mode 100644 index 113eead5..00000000 --- a/webhooks/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# This allows generated code to be indexed correctly -*.ts linguist-generated=false \ No newline at end of file diff --git a/webhooks/.gitignore b/webhooks/.gitignore deleted file mode 100644 index 5550e44e..00000000 --- a/webhooks/.gitignore +++ /dev/null @@ -1,32 +0,0 @@ -/examples/node_modules -.env -.env.local -.env.*.local -**/.speakeasy/temp/ -**/.speakeasy/logs/ -.DS_Store -.speakeasy/temp/ -.speakeasy/logs/ -.DS_Store -/models -/models/errors -/types -/node_modules -/lib -/sdk -/funcs -/react-query -/mcp-server -/hooks -/index.* -/core.* -/bin -/cjs -/esm -/dist -/.tsbuildinfo -/.eslintcache -/.tshy -/.tshy-* -/__tests__ -/.speakeasy/reports diff --git a/webhooks/.npmignore b/webhooks/.npmignore deleted file mode 100644 index cf98a6bf..00000000 --- a/webhooks/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -**/* -!/FUNCTIONS.md -!/RUNTIMES.md -!/REACT_QUERY.md -!/**/*.ts -!/**/*.js -!/**/*.mjs -!/**/*.json -!/**/*.map - -/eslint.config.mjs -/cjs -/.tshy -/.tshy-* -/__tests__ diff --git a/webhooks/.speakeasy/gen.lock b/webhooks/.speakeasy/gen.lock deleted file mode 100644 index 3a9413eb..00000000 --- a/webhooks/.speakeasy/gen.lock +++ /dev/null @@ -1,712 +0,0 @@ -lockVersion: 2.0.0 -id: f2a15845-dc11-48d9-85a3-222c345ff88e -management: - docChecksum: 0f00e872cc004f6fc18bfadcda5f1fe2 - docVersion: 1.0.0 - speakeasyVersion: 1.598.2 - generationVersion: 2.674.3 - releaseVersion: 0.5.2 - configChecksum: 218f94d7f2a4f1a10ef66b56ee7c61d1 - repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git - repoSubDirectory: webhooks - installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/webhooks - published: true -features: - typescript: - additionalDependencies: 0.1.0 - constsAndDefaults: 0.1.12 - core: 3.21.20 - defaultEnabledRetries: 0.1.0 - devContainers: 2.90.0 - enumUnions: 0.1.0 - envVarSecurityUsage: 0.1.2 - examples: 2.82.1 - globalSecurity: 2.82.13 - globalSecurityCallbacks: 0.1.0 - globalSecurityFlattening: 0.1.0 - globalServerURLs: 2.82.5 - globals: 2.82.2 - groups: 2.81.2 - mcpServer: 0.9.3 - nameOverrides: 2.81.2 - nullables: 0.1.1 - pagination: 2.83.0 - responseFormat: 0.2.3 - retries: 2.83.0 - sdkHooks: 0.3.0 - unions: 2.85.11 - webhooks: 1.5.0 -generatedFiles: - - .devcontainer/README.md - - .devcontainer/devcontainer.json - - .devcontainer/setup.sh - - .gitattributes - - .npmignore - - FUNCTIONS.md - - RUNTIMES.md - - USAGE.md - - docs/lib/utils/retryconfig.md - - docs/models/components/accesslistdata.md - - docs/models/components/addressactivityeventtype.md - - docs/models/components/addressactivitymetadata.md - - docs/models/components/addresseschangerequest.md - - docs/models/components/commonbalancetype.md - - docs/models/components/erctoken.md - - docs/models/components/erctransfer.md - - docs/models/components/evmaddressactivityrequest.md - - docs/models/components/evmaddressactivityrequesteventtype.md - - docs/models/components/evmaddressactivityrequestmetadata.md - - docs/models/components/evmaddressactivityresponse.md - - docs/models/components/globalparamnetwork.md - - docs/models/components/healthcheckresultdto.md - - docs/models/components/healthcheckresultdtostatus.md - - docs/models/components/healthindicatorresultdto.md - - docs/models/components/healthindicatorresultdtostatus.md - - docs/models/components/listwebhookaddressesresponse.md - - docs/models/components/listwebhooksresponse.md - - docs/models/components/log.md - - docs/models/components/networktokeninfo.md - - docs/models/components/platformaddressactivitykeytype.md - - docs/models/components/primarynetworkaddressactivityeventtype.md - - docs/models/components/primarynetworkaddressactivitymetadata.md - - docs/models/components/primarynetworkaddressactivityrequest.md - - docs/models/components/primarynetworkaddressactivityrequesteventtype.md - - docs/models/components/primarynetworkaddressactivityrequestmetadata.md - - docs/models/components/primarynetworkaddressactivityresponse.md - - docs/models/components/primarynetworkaddressactivitysubevents.md - - docs/models/components/primarynetworkaddressactivitysubeventtype.md - - docs/models/components/primarynetworkbalancethresholdfilter.md - - docs/models/components/primarynetworktype.md - - docs/models/components/security.md - - docs/models/components/sharedsecretsresponse.md - - docs/models/components/transaction.md - - docs/models/components/transactionevent.md - - docs/models/components/updatewebhookrequest.md - - docs/models/components/validatoractivityeventtype.md - - docs/models/components/validatoractivitykeytype.md - - docs/models/components/validatoractivitymetadata.md - - docs/models/components/validatoractivityrequest.md - - docs/models/components/validatoractivityrequesteventtype.md - - docs/models/components/validatoractivityrequestmetadata.md - - docs/models/components/validatoractivityresponse.md - - docs/models/components/validatoractivitysubevent.md - - docs/models/components/validatoractivitysubevents.md - - docs/models/components/webhook.md - - docs/models/components/webhookaddressactivityresponse.md - - docs/models/components/webhookaddressactivityresponseeventtype.md - - docs/models/components/webhookinternaltransaction.md - - docs/models/components/webhookstatus.md - - docs/models/components/webhookstatustype.md - - docs/models/errors/badgatewayerror.md - - docs/models/errors/badgatewaymessage.md - - docs/models/errors/badrequesterror.md - - docs/models/errors/badrequestmessage.md - - docs/models/errors/forbiddenerror.md - - docs/models/errors/forbiddenmessage.md - - docs/models/errors/internalservererror.md - - docs/models/errors/internalservererrormessage.md - - docs/models/errors/notfounderror.md - - docs/models/errors/notfoundmessage.md - - docs/models/errors/serviceunavailableerror.md - - docs/models/errors/serviceunavailablemessage.md - - docs/models/errors/toomanyrequestserror.md - - docs/models/errors/toomanyrequestsmessage.md - - docs/models/errors/unauthorizederror.md - - docs/models/errors/unauthorizedmessage.md - - docs/models/operations/addaddressestowebhookrequest.md - - docs/models/operations/createwebhookrequest.md - - docs/models/operations/createwebhookresponse.md - - docs/models/operations/deactivatewebhookrequest.md - - docs/models/operations/deactivatewebhookresponse.md - - docs/models/operations/getaddressesfromwebhookrequest.md - - docs/models/operations/getaddressesfromwebhookresponse.md - - docs/models/operations/getwebhookrequest.md - - docs/models/operations/getwebhookresponse.md - - docs/models/operations/listwebhooksrequest.md - - docs/models/operations/listwebhooksresponse.md - - docs/models/operations/removeaddressesfromwebhookrequest.md - - docs/models/operations/updatewebhookrequest.md - - docs/models/operations/updatewebhookresponse.md - - docs/sdks/addresses/README.md - - docs/sdks/avalanche/README.md - - docs/sdks/webhooks/README.md - - eslint.config.mjs - - examples/.env.template - - examples/README.md - - examples/package.json - - examples/webhooksCreate.example.ts - - package.json - - src/core.ts - - src/funcs/webhooksAddressesAdd.ts - - src/funcs/webhooksAddressesList.ts - - src/funcs/webhooksAddressesRemove.ts - - src/funcs/webhooksCreate.ts - - src/funcs/webhooksDeactivate.ts - - src/funcs/webhooksGenerateOrRotateSharedSecret.ts - - src/funcs/webhooksGet.ts - - src/funcs/webhooksGetSharedSecret.ts - - src/funcs/webhooksHealthCheck.ts - - src/funcs/webhooksList.ts - - src/funcs/webhooksUpdate.ts - - src/hooks/hooks.ts - - src/hooks/index.ts - - src/hooks/types.ts - - src/index.ts - - src/lib/base64.ts - - src/lib/config.ts - - src/lib/dlv.ts - - src/lib/encodings.ts - - src/lib/files.ts - - src/lib/http.ts - - src/lib/is-plain-object.ts - - src/lib/logger.ts - - src/lib/matchers.ts - - src/lib/primitives.ts - - src/lib/retries.ts - - src/lib/schemas.ts - - src/lib/sdks.ts - - src/lib/security.ts - - src/lib/url.ts - - src/mcp-server/build.mts - - src/mcp-server/cli.ts - - src/mcp-server/cli/start/command.ts - - src/mcp-server/cli/start/impl.ts - - src/mcp-server/console-logger.ts - - src/mcp-server/extensions.ts - - src/mcp-server/mcp-server.ts - - src/mcp-server/prompts.ts - - src/mcp-server/resources.ts - - src/mcp-server/scopes.ts - - src/mcp-server/server.ts - - src/mcp-server/shared.ts - - src/mcp-server/tools.ts - - src/mcp-server/tools/webhooksAddressesAdd.ts - - src/mcp-server/tools/webhooksAddressesList.ts - - src/mcp-server/tools/webhooksAddressesRemove.ts - - src/mcp-server/tools/webhooksCreate.ts - - src/mcp-server/tools/webhooksDeactivate.ts - - src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts - - src/mcp-server/tools/webhooksGet.ts - - src/mcp-server/tools/webhooksGetSharedSecret.ts - - src/mcp-server/tools/webhooksHealthCheck.ts - - src/mcp-server/tools/webhooksList.ts - - src/mcp-server/tools/webhooksUpdate.ts - - src/models/components/accesslistdata.ts - - src/models/components/addressactivityeventtype.ts - - src/models/components/addressactivitymetadata.ts - - src/models/components/addresseschangerequest.ts - - src/models/components/commonbalancetype.ts - - src/models/components/erctoken.ts - - src/models/components/erctransfer.ts - - src/models/components/evmaddressactivityrequest.ts - - src/models/components/evmaddressactivityresponse.ts - - src/models/components/globalparamnetwork.ts - - src/models/components/healthcheckresultdto.ts - - src/models/components/healthindicatorresultdto.ts - - src/models/components/index.ts - - src/models/components/listwebhookaddressesresponse.ts - - src/models/components/listwebhooksresponse.ts - - src/models/components/log.ts - - src/models/components/networktokeninfo.ts - - src/models/components/platformaddressactivitykeytype.ts - - src/models/components/primarynetworkaddressactivityeventtype.ts - - src/models/components/primarynetworkaddressactivitymetadata.ts - - src/models/components/primarynetworkaddressactivityrequest.ts - - src/models/components/primarynetworkaddressactivityresponse.ts - - src/models/components/primarynetworkaddressactivitysubevents.ts - - src/models/components/primarynetworkaddressactivitysubeventtype.ts - - src/models/components/primarynetworkbalancethresholdfilter.ts - - src/models/components/primarynetworktype.ts - - src/models/components/security.ts - - src/models/components/sharedsecretsresponse.ts - - src/models/components/transaction.ts - - src/models/components/transactionevent.ts - - src/models/components/updatewebhookrequest.ts - - src/models/components/validatoractivityeventtype.ts - - src/models/components/validatoractivitykeytype.ts - - src/models/components/validatoractivitymetadata.ts - - src/models/components/validatoractivityrequest.ts - - src/models/components/validatoractivityresponse.ts - - src/models/components/validatoractivitysubevents.ts - - src/models/components/webhookaddressactivityresponse.ts - - src/models/components/webhookinternaltransaction.ts - - src/models/components/webhookstatus.ts - - src/models/components/webhookstatustype.ts - - src/models/errors/avalancheapierror.ts - - src/models/errors/avalancheerror.ts - - src/models/errors/badgatewayerror.ts - - src/models/errors/badrequesterror.ts - - src/models/errors/forbiddenerror.ts - - src/models/errors/httpclienterrors.ts - - src/models/errors/index.ts - - src/models/errors/internalservererror.ts - - src/models/errors/notfounderror.ts - - src/models/errors/responsevalidationerror.ts - - src/models/errors/sdkvalidationerror.ts - - src/models/errors/serviceunavailableerror.ts - - src/models/errors/toomanyrequestserror.ts - - src/models/errors/unauthorizederror.ts - - src/models/operations/addaddressestowebhook.ts - - src/models/operations/createwebhook.ts - - src/models/operations/deactivatewebhook.ts - - src/models/operations/getaddressesfromwebhook.ts - - src/models/operations/getwebhook.ts - - src/models/operations/index.ts - - src/models/operations/listwebhooks.ts - - src/models/operations/removeaddressesfromwebhook.ts - - src/models/operations/updatewebhook.ts - - src/sdk/addresses.ts - - src/sdk/index.ts - - src/sdk/sdk.ts - - src/sdk/webhooks.ts - - src/types/async.ts - - src/types/blobs.ts - - src/types/constdatetime.ts - - src/types/enums.ts - - src/types/fp.ts - - src/types/index.ts - - src/types/operations.ts - - src/types/rfcdate.ts - - src/types/streams.ts - - src/types/webhooks.ts - - tsconfig.json -examples: - sendAddressActivityWebhook: - speakeasy-default-send-address-activity-webhook: - requestBody: - application/json: {"webhookId": "401da7d9-d6d7-46c8-b431-72ff1e1543f4", "eventType": "address_activity", "messageId": "bc9732db-2430-4296-afc3-c51267beb14a", "event": {"transaction": {"blockHash": "0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0", "blockNumber": "45396106", "from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "gas": "80000", "gasPrice": "52000000000", "maxFeePerGas": "52000000000", "maxPriorityFeePerGas": "2000000000", "txHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", "txStatus": "1", "input": "0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69", "nonce": "0", "to": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", "transactionIndex": 1, "value": "0", "type": 2, "chainId": "43114", "receiptCumulativeGasUsed": "668508", "receiptGasUsed": "44038", "receiptEffectiveGasPrice": "27000000000", "receiptRoot": "0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3", "blockTimestamp": 1715621840, "contractAddress": "0x0000000000000000000000000000000000000000", "erc20Transfers": [{"transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", "type": "ERC20", "from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", "value": "3331009129", "tokenId": "2", "blockTimestamp": 1640995200, "logIndex": 5, "erc20Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}, "erc721Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}, "erc1155Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}}, {"transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", "type": "ERC20", "from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", "value": "3331009129", "tokenId": "2", "blockTimestamp": 1640995200, "logIndex": 5, "erc20Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}, "erc721Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}, "erc1155Token": {"address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "name": "TetherToken", "symbol": "USDt", "decimals": 6, "valueWithDecimals": "3331.009129"}}], "erc721Transfers": [], "erc1155Transfers": [], "internalTransactions": [{"from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "internalTxType": "call", "value": "50000000000000000", "gasUsed": "44038", "gasLimit": "50000", "transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"}, {"from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "internalTxType": "call", "value": "50000000000000000", "gasUsed": "44038", "gasLimit": "50000", "transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"}, {"from": "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", "to": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "internalTxType": "call", "value": "50000000000000000", "gasUsed": "44038", "gasLimit": "50000", "transactionHash": "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"}], "accessList": [{"accessAddresses": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "storageKeys": ["", ""]}, {"accessAddresses": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "storageKeys": ["", ""]}, {"accessAddresses": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", "storageKeys": ["", ""]}], "networkToken": {"tokenName": "TetherToken", "tokenSymbol": "USDt", "tokenDecimals": 6, "valueWithDecimals": "3331.009129"}}, "logs": [{"address": "0x54C800d2331E10467143911aabCa092d68bF4166", "topic0": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "topic1": "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", "topic2": "0x0000000000000000000000000000000000000000000000000000000000000000", "topic3": "0x0000000000000000000000000000000000000000000000000000000000001350", "data": "0x", "transactionIndex": 2, "logIndex": 10, "removed": false}, {"address": "0x54C800d2331E10467143911aabCa092d68bF4166", "topic0": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "topic1": "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", "topic2": "0x0000000000000000000000000000000000000000000000000000000000000000", "topic3": "0x0000000000000000000000000000000000000000000000000000000000001350", "data": "0x", "transactionIndex": 2, "logIndex": 10, "removed": false}, {"address": "0x54C800d2331E10467143911aabCa092d68bF4166", "topic0": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "topic1": "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", "topic2": "0x0000000000000000000000000000000000000000000000000000000000000000", "topic3": "0x0000000000000000000000000000000000000000000000000000000000001350", "data": "0x", "transactionIndex": 2, "logIndex": 10, "removed": false}]}} - data-health-check: - speakeasy-default-data-health-check: - responses: - "200": - application/json: {"info": {"database": {"status": "up"}}, "error": {}, "details": {"database": {"status": "up"}}} - "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"} - createWebhook: - speakeasy-default-create-webhook: - requestBody: - application/json: {"eventType": "address_activity", "url": "https://sophisticated-exterior.org/", "chainId": "", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]}} - responses: - "201": - application/json: {"id": "", "url": "https://staid-noon.org/", "chainId": "", "status": "inactive", "createdAt": 9478.09, "name": "", "description": "bonnet failing which officially thankfully naturally cruel", "eventType": "address_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]}} - "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"} - listWebhooks: - "": - parameters: - query: - pageSize: 10 - status: "active" - responses: - "200": - application/json: {"webhooks": []} - "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"} - speakeasy-default-list-webhooks: - parameters: - query: - pageSize: 10 - status: "active" - responses: - "200": - application/json: {"webhooks": []} - "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"} - getWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - responses: - "200": - application/json: {"id": "", "eventType": "validator_activity", "url": "https://shrill-feather.name", "chainId": "", "status": "active", "createdAt": 3272.52, "name": "", "description": "ah interestingly knuckle helplessly not enrich", "metadata": {"keyType": "subnetId", "keys": ["", ""], "eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"]}} - "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"} - speakeasy-default-get-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - responses: - "200": - application/json: {"id": "", "url": "https://shrill-feather.name", "chainId": "", "status": "active", "createdAt": 3272.52, "name": "", "description": "ah interestingly knuckle helplessly not enrich", "eventType": "validator_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "keyType": "subnetId", "keys": ["", ""], "subEvents": {"validatorActivitySubEvents": ["l1_validator_balance_threshold"]}}} - "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"} - deactivateWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - responses: - "200": - application/json: {"id": "", "eventType": "platform_address_activity", "url": "https://orange-igloo.info", "chainId": "", "status": "inactive", "createdAt": 9870.51, "name": "", "description": "ack scary foot", "metadata": {"keyType": "addresses", "keys": ["", "", ""], "eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"]}} - "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"} - speakeasy-default-deactivate-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - responses: - "200": - application/json: {"id": "", "url": "https://orange-igloo.info", "chainId": "", "status": "inactive", "createdAt": 9870.51, "name": "", "description": "ack scary foot", "eventType": "validator_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "keyType": "subnetId", "keys": ["", "", ""], "subEvents": {"validatorActivitySubEvents": ["l1_validator_disabled"]}}} - "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"} - updateWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {} - responses: - "200": - application/json: {"id": "", "eventType": "platform_address_activity", "url": "https://puzzled-confusion.com/", "chainId": "", "status": "active", "createdAt": 2194.04, "name": "", "description": "ick athwart mid", "metadata": {"keyType": "addresses", "keys": ["", ""], "eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"]}} - "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"} - speakeasy-default-update-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {} - responses: - "200": - application/json: {"id": "", "url": "https://puzzled-confusion.com/", "chainId": "", "status": "active", "createdAt": 2194.04, "name": "", "description": "ick athwart mid", "eventType": "validator_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "keyType": "subnetId", "keys": ["", ""], "subEvents": {"validatorActivitySubEvents": []}}} - "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"} - generateOrRotateSharedSecret: - speakeasy-default-generate-or-rotate-shared-secret: - responses: - "201": - application/json: {"secret": ""} - "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"} - getSharedSecret: - speakeasy-default-get-shared-secret: - responses: - "200": - application/json: {"secret": ""} - "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"} - addAddressesToWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]} - responses: - "200": - application/json: {"id": "", "eventType": "platform_address_activity", "url": "https://apprehensive-unit.net/", "chainId": "", "status": "inactive", "createdAt": 9755.42, "name": "", "description": "wetly woot challenge that irresponsible requite rectangular wherever noted", "metadata": {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"], "eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"]}} - "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"} - speakeasy-default-add-addresses-to-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]} - responses: - "200": - application/json: {"id": "", "url": "https://apprehensive-unit.net/", "chainId": "", "status": "inactive", "createdAt": 9755.42, "name": "", "description": "wetly woot challenge that irresponsible requite rectangular wherever noted", "eventType": "address_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]}} - "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"} - removeAddressesFromWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]} - responses: - "200": - application/json: {"id": "", "eventType": "validator_activity", "url": "https://ornery-colon.info", "chainId": "", "status": "inactive", "createdAt": 5668.34, "name": "", "description": "colorful emphasise worth intervention wherever onto mill custom for", "metadata": {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"], "eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"]}} - "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"} - speakeasy-default-remove-addresses-from-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - requestBody: - application/json: {"addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]} - responses: - "200": - application/json: {"id": "", "url": "https://ornery-colon.info", "chainId": "", "status": "inactive", "createdAt": 5668.34, "name": "", "description": "colorful emphasise worth intervention wherever onto mill custom for", "eventType": "address_activity", "metadata": {"eventSignatures": ["0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"], "addresses": ["0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]}} - "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"} - getAddressesFromWebhook: - "": - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - query: - pageSize: 10 - responses: - "200": - application/json: {"addresses": [], "totalAddresses": 5926.55} - "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"} - speakeasy-default-get-addresses-from-webhook: - parameters: - path: - id: "f33de69c-d13b-4691-908f-870d6e2e6b04" - query: - pageSize: 10 - responses: - "200": - application/json: {"addresses": [], "totalAddresses": 5926.55} - "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"} -examplesVersion: 1.0.2 -generatedTests: {} diff --git a/webhooks/.speakeasy/gen.yaml b/webhooks/.speakeasy/gen.yaml deleted file mode 100644 index 425c936a..00000000 --- a/webhooks/.speakeasy/gen.yaml +++ /dev/null @@ -1,64 +0,0 @@ -configVersion: 2.0.0 -generation: - devContainers: - enabled: true - schemaPath: https://glacier-api.avax.network/api-json - sdkClassName: Avalanche - maintainOpenAPIOrder: true - usageSnippets: - optionalPropertyRendering: withExample - sdkInitStyle: constructor - useClassNamesForArrayFields: true - fixes: - nameResolutionDec2023: true - nameResolutionFeb2025: true - parameterOrderingFeb2024: true - requestResponseComponentNamesFeb2024: true - securityFeb2025: true - sharedErrorComponentsApr2025: false - auth: - oAuth2ClientCredentialsEnabled: false - oAuth2PasswordEnabled: false - tests: - generateTests: true - generateNewTests: false - skipResponseBodyAssertions: false -typescript: - version: 0.5.2 - additionalDependencies: - dependencies: - json-canonicalize: ^1.0.6 - devDependencies: - '@types/node': ^22.4.1 - peerDependencies: {} - additionalPackageJSON: {} - author: Avacloud - baseErrorName: AvalancheError - clientServerStatusCodesAsErrors: true - constFieldsAlwaysOptional: true - defaultErrorName: AvalancheAPIError - enableCustomCodeRegions: false - enableMCPServer: true - enableReactQuery: false - enumFormat: union - flattenGlobalSecurity: true - flatteningOrder: parameters-first - generateExamples: true - imports: - option: openapi - paths: - callbacks: models/callbacks - errors: models/errors - operations: models/operations - shared: models/components - webhooks: models/webhooks - inputModelSuffix: input - jsonpath: rfc9535 - maxMethodParams: 0 - methodArguments: require-security-and-request - moduleFormat: dual - outputModelSuffix: output - packageName: '@avalanche-sdk/webhooks' - responseFormat: flat - templateVersion: v2 - useIndexModules: true diff --git a/webhooks/CONTRIBUTING.md b/webhooks/CONTRIBUTING.md deleted file mode 100644 index d585717f..00000000 --- a/webhooks/CONTRIBUTING.md +++ /dev/null @@ -1,26 +0,0 @@ -# Contributing to This Repository - -Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. - -## How to Report Issues - -If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: - -- A clear and descriptive title -- Steps to reproduce the issue -- Expected and actual behavior -- Any relevant logs, screenshots, or error messages -- Information about your environment (e.g., operating system, software versions) - - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed - -## Issue Triage and Upstream Fixes - -We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. - -## Contact - -If you have any questions or need further assistance, please feel free to reach out by opening an issue. - -Thank you for your understanding and cooperation! - -The Maintainers diff --git a/webhooks/FUNCTIONS.md b/webhooks/FUNCTIONS.md deleted file mode 100644 index 79fc045d..00000000 --- a/webhooks/FUNCTIONS.md +++ /dev/null @@ -1,97 +0,0 @@ -# Standalone Functions - -> [!NOTE] -> This section is useful if you are using a bundler and targetting browsers and -> runtimes where the size of an application affects performance and load times. - -Every method in this SDK is also available as a standalone function. This -alternative API is suitable when targetting the browser or serverless runtimes -and using a bundler to build your application since all unused functionality -will be tree-shaken away. This includes code for unused methods, Zod schemas, -encoding helpers and response handlers. The result is dramatically smaller -impact on the application's final bundle size which grows very slowly as you use -more and more functionality from this SDK. - -Calling methods through the main SDK class remains a valid and generally more -more ergonomic option. Standalone functions represent an optimisation for a -specific category of applications. - -## Example - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksCreate } from "@avalanche-sdk/webhooks/funcs/webhooksCreate.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksCreate(avalanche, { - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksCreate failed:", res.error); - } -} - -run(); -``` - -## Result types - -Standalone functions differ from SDK methods in that they return a -`Result` type to capture _known errors_ and document them using -the type system. By avoiding throwing errors, application code maintains clear -control flow and error-handling become part of the regular flow of application -code. - -> We use the term "known errors" because standalone functions, and JavaScript -> code in general, can still throw unexpected errors such as `TypeError`s, -> `RangeError`s and `DOMException`s. Exhaustively catching all errors may be -> something this SDK addresses in the future. Nevertheless, there is still a lot -> of benefit from capturing most errors and turning them into values. - -The second reason for this style of programming is because these functions will -typically be used in front-end applications where exception throwing is -sometimes discouraged or considered unidiomatic. React and similar ecosystems -and libraries tend to promote this style of programming so that components -render useful content under all states (loading, success, error and so on). - -The general pattern when calling standalone functions looks like this: - -```typescript -import { Core } from ""; -import { fetchSomething } from "/funcs/fetchSomething.js"; - -const client = new Core(); - -async function run() { - const result = await fetchSomething(client, { id: "123" }); - if (!result.ok) { - // You can throw the error or handle it. It's your choice now. - throw result.error; - } - - console.log(result.value); -} - -run(); -``` - -Notably, `result.error` above will have an explicit type compared to a try-catch -variation where the error in the catch block can only be of type `unknown` (or -`any` depending on your TypeScript settings). \ No newline at end of file diff --git a/webhooks/README.md b/webhooks/README.md deleted file mode 100644 index eec451ab..00000000 --- a/webhooks/README.md +++ /dev/null @@ -1,566 +0,0 @@ -
-

@avalanche-sdk/webhooks

-

- The Avalanche Webhooks SDK is a powerful and flexible toolset designed to simplify the integration with Avalanche's suite of blockchain services. -

-

- Currently, this SDK is focused on providing robust support for Webhooks APIs. -

- - - -
- - -## Summary - -Webhooks API: Webhooks API enables real-time monitoring of on-chain events across the Avalanche C-chain, subnets, and L1 networks. It provides instant notifications for activities like smart contract events, NFT transfers, and wallet transactions. Developers can customize filters to track specific events and verify notifications using shared secrets for security - - - -## Table of Contents - - * [SDK Installation](#sdk-installation) - * [Requirements](#requirements) - * [SDK Example Usage](#sdk-example-usage) - * [Authentication](#authentication) - * [Available Resources and Operations](#available-resources-and-operations) - * [Standalone functions](#standalone-functions) - * [Pagination](#pagination) - * [Retries](#retries) - * [Error Handling](#error-handling) - * [Server Selection](#server-selection) - * [Custom HTTP Client](#custom-http-client) - * [Debugging](#debugging) -* [Development](#development) - * [Maturity](#maturity) - * [Contributions](#contributions) - - - - -## SDK Installation - -The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers. - -### NPM - -```bash -npm add @avalanche-sdk/webhooks -``` - -### PNPM - -```bash -pnpm add @avalanche-sdk/webhooks -``` - -### Bun - -```bash -bun add @avalanche-sdk/webhooks -``` - -### Yarn - -```bash -yarn add @avalanche-sdk/webhooks zod - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. -``` - -> [!NOTE] -> This package is published with CommonJS and ES Modules (ESM) support. - - -### Model Context Protocol (MCP) Server - -This SDK is also an installable MCP server where the various SDK methods are -exposed as tools that can be invoked by AI applications. - -> Node.js v20 or greater is required to run the MCP server from npm. - -
-Claude installation steps - -Add the following server definition to your `claude_desktop_config.json` file: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/webhooks", - "--", - "mcp", "start", - "--api-key", "...", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -
-Cursor installation steps - -Create a `.cursor/mcp.json` file in your project root with the following content: - -```json -{ - "mcpServers": { - "Avalanche": { - "command": "npx", - "args": [ - "-y", "--package", "@avalanche-sdk/webhooks", - "--", - "mcp", "start", - "--api-key", "...", - "--chain-id", "...", - "--network", "..." - ] - } - } -} -``` - -
- -You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases: - -```bash -curl -L -o mcp-server \ - https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \ -chmod +x mcp-server -``` - -If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`. - - -```json -{ - "mcpServers": { - "Todos": { - "command": "./DOWNLOAD/PATH/mcp-server", - "args": [ - "start" - ] - } - } -} -``` - -For a full list of server arguments, run: - -```sh -npx -y --package @avalanche-sdk/webhooks -- mcp start --help -``` - - - -## Requirements - -For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md). - - - -## SDK Example Usage - -### Example - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.create({ - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -run(); - -``` - - - -## Authentication - -### Per-Client Security Schemes - -This SDK supports the following security scheme globally: - -| Name | Type | Scheme | -| -------- | ------ | ------- | -| `apiKey` | apiKey | API key | - -To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche({ - apiKey: "", -}); - -async function run() { - const result = await avalanche.webhooks.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Available Resources and Operations - -
-Available methods - - -### [webhooks](docs/sdks/webhooks/README.md) - -* [healthCheck](docs/sdks/webhooks/README.md#healthcheck) - Get the health of the service -* [create](docs/sdks/webhooks/README.md#create) - Create a webhook -* [list](docs/sdks/webhooks/README.md#list) - List webhooks -* [get](docs/sdks/webhooks/README.md#get) - Get a webhook by ID -* [deactivate](docs/sdks/webhooks/README.md#deactivate) - Deactivate a webhook -* [update](docs/sdks/webhooks/README.md#update) - Update a webhook -* [generateOrRotateSharedSecret](docs/sdks/webhooks/README.md#generateorrotatesharedsecret) - Generate or rotate a shared secret -* [getSharedSecret](docs/sdks/webhooks/README.md#getsharedsecret) - Get a shared secret - -#### [webhooks.addresses](docs/sdks/addresses/README.md) - -* [add](docs/sdks/addresses/README.md#add) - Add addresses to EVM activity webhook -* [remove](docs/sdks/addresses/README.md#remove) - Remove addresses from EVM activity webhook -* [list](docs/sdks/addresses/README.md#list) - List adresses by EVM activity webhooks - -
- - - -## Standalone functions - -All the methods listed above are available as standalone functions. These -functions are ideal for use in applications running in the browser, serverless -runtimes or other environments where application bundle size is a primary -concern. When using a bundler to build your application, all unused -functionality will be either excluded from the final bundle or tree-shaken away. - -To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - -
- -Available standalone functions - -- [`webhooksAddressesAdd`](docs/sdks/addresses/README.md#add) - Add addresses to EVM activity webhook -- [`webhooksAddressesList`](docs/sdks/addresses/README.md#list) - List adresses by EVM activity webhooks -- [`webhooksAddressesRemove`](docs/sdks/addresses/README.md#remove) - Remove addresses from EVM activity webhook -- [`webhooksCreate`](docs/sdks/webhooks/README.md#create) - Create a webhook -- [`webhooksDeactivate`](docs/sdks/webhooks/README.md#deactivate) - Deactivate a webhook -- [`webhooksGenerateOrRotateSharedSecret`](docs/sdks/webhooks/README.md#generateorrotatesharedsecret) - Generate or rotate a shared secret -- [`webhooksGet`](docs/sdks/webhooks/README.md#get) - Get a webhook by ID -- [`webhooksGetSharedSecret`](docs/sdks/webhooks/README.md#getsharedsecret) - Get a shared secret -- [`webhooksHealthCheck`](docs/sdks/webhooks/README.md#healthcheck) - Get the health of the service -- [`webhooksList`](docs/sdks/webhooks/README.md#list) - List webhooks -- [`webhooksUpdate`](docs/sdks/webhooks/README.md#update) - Update a webhook - -
- - - -## Pagination - -Some of the endpoints in this SDK support pagination. To use pagination, you -make your SDK calls as usual, but the returned response object will also be an -async iterable that can be consumed using the [`for await...of`][for-await-of] -syntax. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of - -Here's an example of one such pagination call: - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.list({ - status: "active", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); - -``` - - - -## Retries - -Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. - -To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.healthCheck({ - retries: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, - }); - - console.log(result); -} - -run(); - -``` - -If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche({ - retryConfig: { - strategy: "backoff", - backoff: { - initialInterval: 1, - maxInterval: 50, - exponent: 1.1, - maxElapsedTime: 100, - }, - retryConnectionErrors: false, - }, -}); - -async function run() { - const result = await avalanche.webhooks.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Error Handling - -[`AvalancheError`](./src/models/errors/avalancheerror.ts) is the base class for all HTTP error responses. It has the following properties: - -| Property | Type | Description | -| ------------------- | ---------- | --------------------------------------------------------------------------------------- | -| `error.message` | `string` | Error message | -| `error.statusCode` | `number` | HTTP response status code eg `404` | -| `error.headers` | `Headers` | HTTP response headers | -| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | -| `error.rawResponse` | `Response` | Raw HTTP response | -| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | - -### Example -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; -import * as errors from "@avalanche-sdk/webhooks/models/errors"; - -const avalanche = new Avalanche(); - -async function run() { - try { - const result = await avalanche.webhooks.healthCheck(); - - console.log(result); - } catch (error) { - // The base class for HTTP error responses - if (error instanceof errors.AvalancheError) { - console.log(error.message); - console.log(error.statusCode); - console.log(error.body); - console.log(error.headers); - - // Depending on the method different errors may be thrown - if (error instanceof errors.BadRequestError) { - console.log(error.data$.message); // errors.BadRequestMessage - console.log(error.data$.statusCode); // number - console.log(error.data$.error); // string - } - } - } -} - -run(); - -``` - -### Error Classes -**Primary errors:** -* [`AvalancheError`](./src/models/errors/avalancheerror.ts): The base class for HTTP error responses. - * [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad requests generally mean the client has passed invalid or malformed parameters. Error messages in the response could help in evaluating the error. Status code `400`. - * [`UnauthorizedError`](./src/models/errors/unauthorizederror.ts): When a client attempts to access resources that require authorization credentials but the client lacks proper authentication in the request, the server responds with 401. Status code `401`. - * [`ForbiddenError`](./src/models/errors/forbiddenerror.ts): When a client attempts to access resources with valid credentials but doesn't have the privilege to perform that action, the server responds with 403. Status code `403`. - * [`NotFoundError`](./src/models/errors/notfounderror.ts): The error is mostly returned when the client requests with either mistyped URL, or the passed resource is moved or deleted, or the resource doesn't exist. Status code `404`. - * [`TooManyRequestsError`](./src/models/errors/toomanyrequestserror.ts): This error is returned when the client has sent too many, and has hit the rate limit. Status code `429`. - * [`InternalServerError`](./src/models/errors/internalservererror.ts): The error is a generic server side error that is returned for any uncaught and unexpected issues on the server side. This should be very rare, and you may reach out to us if the problem persists for a longer duration. Status code `500`. - * [`BadGatewayError`](./src/models/errors/badgatewayerror.ts): This is an internal error indicating invalid response received by the client-facing proxy or gateway from the upstream server. Status code `502`. - * [`ServiceUnavailableError`](./src/models/errors/serviceunavailableerror.ts): The error is returned for certain routes on a particular Subnet. This indicates an internal problem with our Subnet node, and may not necessarily mean the Subnet is down or affected. Status code `503`. - -
Less common errors (6) - -
- -**Network errors:** -* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. -* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. -* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. -* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. -* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. - - -**Inherit from [`AvalancheError`](./src/models/errors/avalancheerror.ts)**: -* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. - -
- - - -## Server Selection - -### Override Server URL Per-Client - -The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche({ - serverURL: "https://glacier-api.avax.network", -}); - -async function run() { - const result = await avalanche.webhooks.healthCheck(); - - console.log(result); -} - -run(); - -``` - - - -## Custom HTTP Client - -The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native -[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This -client is a thin wrapper around `fetch` and provides the ability to attach hooks -around the request lifecycle that can be used to modify the request or handle -errors and response. - -The `HTTPClient` constructor takes an optional `fetcher` argument that can be -used to integrate a third-party HTTP client or when writing tests to mock out -the HTTP client and feed in fixtures. - -The following example shows how to use the `"beforeRequest"` hook to to add a -custom header and a timeout to requests and how to use the `"requestError"` hook -to log errors: - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; -import { HTTPClient } from "@avalanche-sdk/webhooks/lib/http"; - -const httpClient = new HTTPClient({ - // fetcher takes a function that has the same signature as native `fetch`. - fetcher: (request) => { - return fetch(request); - } -}); - -httpClient.addHook("beforeRequest", (request) => { - const nextRequest = new Request(request, { - signal: request.signal || AbortSignal.timeout(5000) - }); - - nextRequest.headers.set("x-custom-header", "custom value"); - - return nextRequest; -}); - -httpClient.addHook("requestError", (error, request) => { - console.group("Request Error"); - console.log("Reason:", `${error}`); - console.log("Endpoint:", `${request.method} ${request.url}`); - console.groupEnd(); -}); - -const sdk = new Avalanche({ httpClient }); -``` - - - -## Debugging - -You can setup your SDK to emit debug logs for SDK requests and responses. - -You can pass a logger that matches `console`'s interface as an SDK option. - -> [!WARNING] -> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production. - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const sdk = new Avalanche({ debugLogger: console }); -``` - - - - -# Development - -## Maturity - -This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage -to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally -looking for the latest version. - -## Contributions - -While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. -We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of diff --git a/webhooks/RELEASES.md b/webhooks/RELEASES.md deleted file mode 100644 index 8858cc4d..00000000 --- a/webhooks/RELEASES.md +++ /dev/null @@ -1,111 +0,0 @@ - - -## 2025-03-18 18:36:45 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.520.0 (2.555.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.3] webhooks -### Releases -- [NPM v0.0.3] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.0.3 - webhooks - -## 2025-03-18 19:51:11 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.520.0 (2.555.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.0] webhooks -### Releases -- [NPM v0.1.0] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.1.0 - webhooks - -## 2025-03-25 19:13:59 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.523.2 (2.560.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.1] webhooks -### Releases -- [NPM v0.3.1] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.3.1 - webhooks - -## 2025-04-01 18:41:12 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.527.1 (2.564.5) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.2] webhooks -### Releases -- [NPM v0.3.2] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.3.2 - webhooks - -## 2025-04-05 18:38:34 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.529.1 (2.566.5) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.3] webhooks -### Releases -- [NPM v0.3.3] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.3.3 - webhooks - -## 2025-04-30 18:41:29 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.541.0 (2.595.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.4] webhooks -### Releases -- [NPM v0.3.4] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.3.4 - webhooks - -## 2025-05-20 18:42:37 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.548.3 (2.605.6) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.3.5] webhooks -### Releases -- [NPM v0.3.5] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.3.5 - webhooks - -## 2025-06-24 18:43:23 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.4.0] webhooks -### Releases -- [NPM v0.4.0] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.4.0 - webhooks - -## 2025-07-15 18:45:12 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.582.0 (2.657.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.0] webhooks -### Releases -- [NPM v0.5.0] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.5.0 - webhooks - -## 2025-07-23 18:45:08 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.1] webhooks -### Releases -- [NPM v0.5.1] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.5.1 - webhooks - -## 2025-08-06 18:45:38 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.598.2 (2.674.3) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.5.2] webhooks -### Releases -- [NPM v0.5.2] https://www.npmjs.com/package/@avalanche-sdk/webhooks/v/0.5.2 - webhooks \ No newline at end of file diff --git a/webhooks/RUNTIMES.md b/webhooks/RUNTIMES.md deleted file mode 100644 index db7ea942..00000000 --- a/webhooks/RUNTIMES.md +++ /dev/null @@ -1,48 +0,0 @@ -# Supported JavaScript runtimes - -This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: - -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` - -[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API -[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API -[async-iter]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols - -Runtime environments that are explicitly supported are: - -- Evergreen browsers which include: Chrome, Safari, Edge, Firefox -- Node.js active and maintenance LTS releases - - Currently, this is v18 and v20 -- Bun v1 and above -- Deno v1.39 - - Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming]) - -[deno-file-streaming]: https://github.com/denoland/deno/issues/11018 - -## Recommended TypeScript compiler options - -The following `tsconfig.json` options are recommended for projects using this -SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], -[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and -so on): - -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of -[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal -[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request -[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response - -```jsonc -{ - "compilerOptions": { - "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], - } -} -``` - -While `target` can be set to older ECMAScript versions, it may result in extra, -unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file diff --git a/webhooks/USAGE.md b/webhooks/USAGE.md deleted file mode 100644 index c95d0158..00000000 --- a/webhooks/USAGE.md +++ /dev/null @@ -1,28 +0,0 @@ - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.create({ - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -run(); - -``` - \ No newline at end of file diff --git a/webhooks/docs/lib/utils/retryconfig.md b/webhooks/docs/lib/utils/retryconfig.md deleted file mode 100644 index 08f95f45..00000000 --- a/webhooks/docs/lib/utils/retryconfig.md +++ /dev/null @@ -1,24 +0,0 @@ -# RetryConfig - -Allows customizing the default retry configuration. It is only permitted in methods that accept retry policies. - -## Fields - -| Name | Type | Description | Example | -| ------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------ | ----------- | -| `strategy` | `"backoff" | "none"` | The retry strategy to use. | `"backoff"` | -| `backoff` | [BackoffStrategy](#backoffstrategy) | When strategy is "backoff", this configurates for the backoff parameters. | | -| `retryConnectionErrors` | `*boolean*` | When strategy is "backoff", this determines whether or not to retry on connection errors. | `true` | - -## BackoffStrategy - -The backoff strategy allows retrying a request with an exponential backoff between each retry. - -### Fields - -| Name | Type | Description | Example | -| ------------------ | ------------ | ----------------------------------------- | -------- | -| `initialInterval` | `*number*` | The initial interval in milliseconds. | `500` | -| `maxInterval` | `*number*` | The maximum interval in milliseconds. | `60000` | -| `exponent` | `*number*` | The exponent to use for the backoff. | `1.5` | -| `maxElapsedTime` | `*number*` | The maximum elapsed time in milliseconds. | `300000` | \ No newline at end of file diff --git a/webhooks/docs/models/components/accesslistdata.md b/webhooks/docs/models/components/accesslistdata.md deleted file mode 100644 index 3381a158..00000000 --- a/webhooks/docs/models/components/accesslistdata.md +++ /dev/null @@ -1,21 +0,0 @@ -# AccessListData - -## Example Usage - -```typescript -import { AccessListData } from "@avalanche-sdk/webhooks/models/components"; - -let value: AccessListData = { - accessAddresses: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - storageKeys: [ - "", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `accessAddresses` | *string* | :heavy_check_mark: | Access Address | 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7 | -| `storageKeys` | *string*[] | :heavy_check_mark: | Storage keys | | \ No newline at end of file diff --git a/webhooks/docs/models/components/addressactivityeventtype.md b/webhooks/docs/models/components/addressactivityeventtype.md deleted file mode 100644 index d9993434..00000000 --- a/webhooks/docs/models/components/addressactivityeventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# AddressActivityEventType - -## Example Usage - -```typescript -import { AddressActivityEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: AddressActivityEventType = "address_activity"; -``` - -## Values - -```typescript -"address_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/addressactivitymetadata.md b/webhooks/docs/models/components/addressactivitymetadata.md deleted file mode 100644 index cbeab19f..00000000 --- a/webhooks/docs/models/components/addressactivitymetadata.md +++ /dev/null @@ -1,23 +0,0 @@ -# AddressActivityMetadata - -## Example Usage - -```typescript -import { AddressActivityMetadata } from "@avalanche-sdk/webhooks/models/components"; - -let value: AddressActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `eventSignatures` | *string*[] | :heavy_minus_sign: | Array of hexadecimal strings of the event signatures. | [
"0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"
] | -| `addresses` | *string*[] | :heavy_check_mark: | Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to. | [
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
] | \ No newline at end of file diff --git a/webhooks/docs/models/components/addresseschangerequest.md b/webhooks/docs/models/components/addresseschangerequest.md deleted file mode 100644 index 7c4739f1..00000000 --- a/webhooks/docs/models/components/addresseschangerequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddressesChangeRequest - -## Example Usage - -```typescript -import { AddressesChangeRequest } from "@avalanche-sdk/webhooks/models/components"; - -let value: AddressesChangeRequest = { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `addresses` | *string*[] | :heavy_check_mark: | Ethereum address(es) for the address_activity event type | [
"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
] | \ No newline at end of file diff --git a/webhooks/docs/models/components/commonbalancetype.md b/webhooks/docs/models/components/commonbalancetype.md deleted file mode 100644 index aa78fcf0..00000000 --- a/webhooks/docs/models/components/commonbalancetype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CommonBalanceType - -Type of balance to monitor - -## Example Usage - -```typescript -import { CommonBalanceType } from "@avalanche-sdk/webhooks/models/components"; - -let value: CommonBalanceType = "atomicMemoryUnlocked"; -``` - -## Values - -```typescript -"unlockedUnstaked" | "unlockedStaked" | "lockedPlatform" | "lockedStakeable" | "lockedStaked" | "pendingStaked" | "unlocked" | "locked" | "atomicMemoryUnlocked" | "atomicMemoryLocked" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/erctoken.md b/webhooks/docs/models/components/erctoken.md deleted file mode 100644 index 26853228..00000000 --- a/webhooks/docs/models/components/erctoken.md +++ /dev/null @@ -1,25 +0,0 @@ -# ERCToken - -## Example Usage - -```typescript -import { ERCToken } from "@avalanche-sdk/webhooks/models/components"; - -let value: ERCToken = { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `address` | *string* | :heavy_check_mark: | Token contract address | 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7 | -| `name` | *string* | :heavy_check_mark: | Token name | TetherToken | -| `symbol` | *string* | :heavy_check_mark: | Token symbol | USDt | -| `decimals` | *number* | :heavy_check_mark: | Token decimals | 6 | -| `valueWithDecimals` | *string* | :heavy_check_mark: | Value including decimals | 3331.009129 | \ No newline at end of file diff --git a/webhooks/docs/models/components/erctransfer.md b/webhooks/docs/models/components/erctransfer.md deleted file mode 100644 index 079eb1c6..00000000 --- a/webhooks/docs/models/components/erctransfer.md +++ /dev/null @@ -1,56 +0,0 @@ -# ERCTransfer - -## Example Usage - -```typescript -import { ERCTransfer } from "@avalanche-sdk/webhooks/models/components"; - -let value: ERCTransfer = { - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - type: "ERC20", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", - value: "3331009129", - tokenId: "2", - blockTimestamp: 1640995200, - logIndex: 5, - erc20Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc721Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc1155Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `transactionHash` | *string* | :heavy_check_mark: | Transaction hash | 0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8 | -| `type` | *string* | :heavy_check_mark: | Transfer type | ERC20 | -| `from` | *string* | :heavy_check_mark: | Sender address | 0x737F6b0b8A04e8462d0fC7076451298F0dA9a972 | -| `to` | *string* | :heavy_check_mark: | Recipient address | 0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B | -| `value` | *string* | :heavy_check_mark: | Amount transferred | 3331009129 | -| `tokenId` | *string* | :heavy_minus_sign: | Token Id | 2 | -| `blockTimestamp` | *number* | :heavy_check_mark: | Block timestamp | 1640995200 | -| `logIndex` | *number* | :heavy_check_mark: | Log index | 5 | -| `erc20Token` | [components.ERCToken](../../models/components/erctoken.md) | :heavy_minus_sign: | erc20 Token details | | -| `erc721Token` | [components.ERCToken](../../models/components/erctoken.md) | :heavy_minus_sign: | erc721 Token details | | -| `erc1155Token` | [components.ERCToken](../../models/components/erctoken.md) | :heavy_minus_sign: | erc1155 Token details | | \ No newline at end of file diff --git a/webhooks/docs/models/components/evmaddressactivityrequest.md b/webhooks/docs/models/components/evmaddressactivityrequest.md deleted file mode 100644 index 6dfe5fc0..00000000 --- a/webhooks/docs/models/components/evmaddressactivityrequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# EVMAddressActivityRequest - -## Example Usage - -```typescript -import { EVMAddressActivityRequest } from "@avalanche-sdk/webhooks/models/components"; - -let value: EVMAddressActivityRequest = { - eventType: "address_activity", - url: "https://buttery-couch.biz/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `eventType` | [components.EVMAddressActivityRequestEventType](../../models/components/evmaddressactivityrequesteventtype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `metadata` | *components.EVMAddressActivityRequestMetadata* | :heavy_check_mark: | N/A | -| `includeInternalTxs` | *boolean* | :heavy_minus_sign: | Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. | -| `includeLogs` | *boolean* | :heavy_minus_sign: | Whether to include logs in the webhook payload. | \ No newline at end of file diff --git a/webhooks/docs/models/components/evmaddressactivityrequesteventtype.md b/webhooks/docs/models/components/evmaddressactivityrequesteventtype.md deleted file mode 100644 index e4f1364d..00000000 --- a/webhooks/docs/models/components/evmaddressactivityrequesteventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# EVMAddressActivityRequestEventType - -## Example Usage - -```typescript -import { EVMAddressActivityRequestEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: EVMAddressActivityRequestEventType = "address_activity"; -``` - -## Values - -```typescript -"address_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/evmaddressactivityrequestmetadata.md b/webhooks/docs/models/components/evmaddressactivityrequestmetadata.md deleted file mode 100644 index d3785bc3..00000000 --- a/webhooks/docs/models/components/evmaddressactivityrequestmetadata.md +++ /dev/null @@ -1,18 +0,0 @@ -# EVMAddressActivityRequestMetadata - - -## Supported Types - -### `components.AddressActivityMetadata` - -```typescript -const value: components.AddressActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], -}; -``` - diff --git a/webhooks/docs/models/components/evmaddressactivityresponse.md b/webhooks/docs/models/components/evmaddressactivityresponse.md deleted file mode 100644 index a2bd7ec9..00000000 --- a/webhooks/docs/models/components/evmaddressactivityresponse.md +++ /dev/null @@ -1,42 +0,0 @@ -# EVMAddressActivityResponse - -## Example Usage - -```typescript -import { EVMAddressActivityResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `status` | [components.WebhookStatusType](../../models/components/webhookstatustype.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_check_mark: | N/A | -| `eventType` | [components.AddressActivityEventType](../../models/components/addressactivityeventtype.md) | :heavy_check_mark: | N/A | -| `metadata` | [components.AddressActivityMetadata](../../models/components/addressactivitymetadata.md) | :heavy_check_mark: | N/A | -| `includeInternalTxs` | *boolean* | :heavy_minus_sign: | Whether to include traces in the webhook payload. | -| `includeLogs` | *boolean* | :heavy_minus_sign: | Whether to include logs in the webhook payload. | \ No newline at end of file diff --git a/webhooks/docs/models/components/globalparamnetwork.md b/webhooks/docs/models/components/globalparamnetwork.md deleted file mode 100644 index 46472f16..00000000 --- a/webhooks/docs/models/components/globalparamnetwork.md +++ /dev/null @@ -1,15 +0,0 @@ -# GlobalParamNetwork - -## Example Usage - -```typescript -import { GlobalParamNetwork } from "@avalanche-sdk/webhooks/models/components"; - -let value: GlobalParamNetwork = "mainnet"; -``` - -## Values - -```typescript -"mainnet" | "fuji" | "testnet" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/healthcheckresultdto.md b/webhooks/docs/models/components/healthcheckresultdto.md deleted file mode 100644 index 5961f391..00000000 --- a/webhooks/docs/models/components/healthcheckresultdto.md +++ /dev/null @@ -1,30 +0,0 @@ -# HealthCheckResultDto - -## Example Usage - -```typescript -import { HealthCheckResultDto } from "@avalanche-sdk/webhooks/models/components"; - -let value: HealthCheckResultDto = { - info: { - "database": { - status: "up", - }, - }, - error: {}, - details: { - "database": { - status: "up", - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `status` | [components.HealthCheckResultDtoStatus](../../models/components/healthcheckresultdtostatus.md) | :heavy_minus_sign: | N/A | | -| `info` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | -| `error` | Record | :heavy_minus_sign: | N/A | {} | -| `details` | Record | :heavy_minus_sign: | N/A | {
"database": {
"status": "up"
}
} | \ No newline at end of file diff --git a/webhooks/docs/models/components/healthcheckresultdtostatus.md b/webhooks/docs/models/components/healthcheckresultdtostatus.md deleted file mode 100644 index be60f6bf..00000000 --- a/webhooks/docs/models/components/healthcheckresultdtostatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthCheckResultDtoStatus - -## Example Usage - -```typescript -import { HealthCheckResultDtoStatus } from "@avalanche-sdk/webhooks/models/components"; - -let value: HealthCheckResultDtoStatus = "error"; -``` - -## Values - -```typescript -"error" | "ok" | "shutting_down" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/healthindicatorresultdto.md b/webhooks/docs/models/components/healthindicatorresultdto.md deleted file mode 100644 index bdc792ae..00000000 --- a/webhooks/docs/models/components/healthindicatorresultdto.md +++ /dev/null @@ -1,15 +0,0 @@ -# HealthIndicatorResultDto - -## Example Usage - -```typescript -import { HealthIndicatorResultDto } from "@avalanche-sdk/webhooks/models/components"; - -let value: HealthIndicatorResultDto = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `status` | [components.HealthIndicatorResultDtoStatus](../../models/components/healthindicatorresultdtostatus.md) | :heavy_minus_sign: | Status of the health indicator. | \ No newline at end of file diff --git a/webhooks/docs/models/components/healthindicatorresultdtostatus.md b/webhooks/docs/models/components/healthindicatorresultdtostatus.md deleted file mode 100644 index b2472377..00000000 --- a/webhooks/docs/models/components/healthindicatorresultdtostatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# HealthIndicatorResultDtoStatus - -Status of the health indicator. - -## Example Usage - -```typescript -import { HealthIndicatorResultDtoStatus } from "@avalanche-sdk/webhooks/models/components"; - -let value: HealthIndicatorResultDtoStatus = "down"; -``` - -## Values - -```typescript -"up" | "down" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/listwebhookaddressesresponse.md b/webhooks/docs/models/components/listwebhookaddressesresponse.md deleted file mode 100644 index 01be0d1e..00000000 --- a/webhooks/docs/models/components/listwebhookaddressesresponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# ListWebhookAddressesResponse - -## Example Usage - -```typescript -import { ListWebhookAddressesResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: ListWebhookAddressesResponse = { - addresses: [ - "", - ], - totalAddresses: 1978.18, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `addresses` | *string*[] | :heavy_check_mark: | N/A | -| `totalAddresses` | *number* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/listwebhooksresponse.md b/webhooks/docs/models/components/listwebhooksresponse.md deleted file mode 100644 index f34dcc95..00000000 --- a/webhooks/docs/models/components/listwebhooksresponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ListWebhooksResponse - -## Example Usage - -```typescript -import { ListWebhooksResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: ListWebhooksResponse = { - webhooks: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -| `nextPageToken` | *string* | :heavy_minus_sign: | A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. | -| `webhooks` | *components.Webhook*[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/log.md b/webhooks/docs/models/components/log.md deleted file mode 100644 index 31e53337..00000000 --- a/webhooks/docs/models/components/log.md +++ /dev/null @@ -1,33 +0,0 @@ -# Log - -## Example Usage - -```typescript -import { Log } from "@avalanche-sdk/webhooks/models/components"; - -let value: Log = { - address: "0x54C800d2331E10467143911aabCa092d68bF4166", - topic0: "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", - topic1: "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", - topic2: "0x0000000000000000000000000000000000000000000000000000000000000000", - topic3: "0x0000000000000000000000000000000000000000000000000000000000001350", - data: "0x", - transactionIndex: 2, - logIndex: 10, - removed: false, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `address` | *string* | :heavy_check_mark: | Contract address | 0x54C800d2331E10467143911aabCa092d68bF4166 | -| `topic0` | *string* | :heavy_check_mark: | First topic | 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925 | -| `topic1` | *string* | :heavy_minus_sign: | Second topic (optional) | 0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b | -| `topic2` | *string* | :heavy_minus_sign: | Third topic (optional) | 0x0000000000000000000000000000000000000000000000000000000000000000 | -| `topic3` | *string* | :heavy_minus_sign: | Fourth topic (optional) | 0x0000000000000000000000000000000000000000000000000000000000001350 | -| `data` | *string* | :heavy_check_mark: | Event data | 0x | -| `transactionIndex` | *number* | :heavy_check_mark: | Transaction index | 2 | -| `logIndex` | *number* | :heavy_check_mark: | Log index | 10 | -| `removed` | *boolean* | :heavy_check_mark: | Indicates if the log was removed | false | \ No newline at end of file diff --git a/webhooks/docs/models/components/networktokeninfo.md b/webhooks/docs/models/components/networktokeninfo.md deleted file mode 100644 index 7acb8400..00000000 --- a/webhooks/docs/models/components/networktokeninfo.md +++ /dev/null @@ -1,23 +0,0 @@ -# NetworkTokenInfo - -## Example Usage - -```typescript -import { NetworkTokenInfo } from "@avalanche-sdk/webhooks/models/components"; - -let value: NetworkTokenInfo = { - tokenName: "TetherToken", - tokenSymbol: "USDt", - tokenDecimals: 6, - valueWithDecimals: "3331.009129", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | -| `tokenName` | *string* | :heavy_minus_sign: | Token name | TetherToken | -| `tokenSymbol` | *string* | :heavy_minus_sign: | Token symbol | USDt | -| `tokenDecimals` | *number* | :heavy_minus_sign: | Token decimals | 6 | -| `valueWithDecimals` | *string* | :heavy_minus_sign: | Value including decimals | 3331.009129 | \ No newline at end of file diff --git a/webhooks/docs/models/components/platformaddressactivitykeytype.md b/webhooks/docs/models/components/platformaddressactivitykeytype.md deleted file mode 100644 index b2f92d0a..00000000 --- a/webhooks/docs/models/components/platformaddressactivitykeytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# PlatformAddressActivityKeyType - -The type of key to monitor for the address activity event type. - -## Example Usage - -```typescript -import { PlatformAddressActivityKeyType } from "@avalanche-sdk/webhooks/models/components"; - -let value: PlatformAddressActivityKeyType = "addresses"; -``` - -## Values - -```typescript -"addresses" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivityeventtype.md b/webhooks/docs/models/components/primarynetworkaddressactivityeventtype.md deleted file mode 100644 index 7874dba9..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivityeventtype.md +++ /dev/null @@ -1,16 +0,0 @@ -# PrimaryNetworkAddressActivityEventType - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivityEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivityEventType = - "primary_network_address_activity"; -``` - -## Values - -```typescript -"primary_network_address_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivitymetadata.md b/webhooks/docs/models/components/primarynetworkaddressactivitymetadata.md deleted file mode 100644 index 4e9dd33b..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivitymetadata.md +++ /dev/null @@ -1,30 +0,0 @@ -# PrimaryNetworkAddressActivityMetadata - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivityMetadata } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `eventSignatures` | *string*[] | :heavy_minus_sign: | Array of hexadecimal strings of the event signatures. | [
"0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"
] | -| `keyType` | [components.PlatformAddressActivityKeyType](../../models/components/platformaddressactivitykeytype.md) | :heavy_check_mark: | The type of key to monitor for the address activity event type. | | -| `keys` | *string*[] | :heavy_check_mark: | Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to. | | -| `subEvents` | [components.PrimaryNetworkAddressActivitySubEvents](../../models/components/primarynetworkaddressactivitysubevents.md) | :heavy_check_mark: | Sub-events to monitor | | -| `balanceThresholdFilter` | [components.PrimaryNetworkBalanceThresholdFilter](../../models/components/primarynetworkbalancethresholdfilter.md) | :heavy_minus_sign: | Balance threshold filter | | \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivityrequest.md b/webhooks/docs/models/components/primarynetworkaddressactivityrequest.md deleted file mode 100644 index 2020fb9d..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivityrequest.md +++ /dev/null @@ -1,40 +0,0 @@ -# PrimaryNetworkAddressActivityRequest - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivityRequest } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivityRequest = { - eventType: "primary_network_address_activity", - url: "https://irresponsible-entry.name", - network: "mainnet", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - "", - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `eventType` | [components.PrimaryNetworkAddressActivityRequestEventType](../../models/components/primarynetworkaddressactivityrequesteventtype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `network` | [components.PrimaryNetworkType](../../models/components/primarynetworktype.md) | :heavy_check_mark: | N/A | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `metadata` | *components.PrimaryNetworkAddressActivityRequestMetadata* | :heavy_check_mark: | Metadata for platform address activity event | \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivityrequesteventtype.md b/webhooks/docs/models/components/primarynetworkaddressactivityrequesteventtype.md deleted file mode 100644 index e4d6aa47..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivityrequesteventtype.md +++ /dev/null @@ -1,16 +0,0 @@ -# PrimaryNetworkAddressActivityRequestEventType - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivityRequestEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivityRequestEventType = - "primary_network_address_activity"; -``` - -## Values - -```typescript -"primary_network_address_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivityrequestmetadata.md b/webhooks/docs/models/components/primarynetworkaddressactivityrequestmetadata.md deleted file mode 100644 index c98da964..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivityrequestmetadata.md +++ /dev/null @@ -1,24 +0,0 @@ -# PrimaryNetworkAddressActivityRequestMetadata - -Metadata for platform address activity event - - -## Supported Types - -### `components.PrimaryNetworkAddressActivityMetadata` - -```typescript -const value: components.PrimaryNetworkAddressActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, -}; -``` - diff --git a/webhooks/docs/models/components/primarynetworkaddressactivityresponse.md b/webhooks/docs/models/components/primarynetworkaddressactivityresponse.md deleted file mode 100644 index e3434ef3..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivityresponse.md +++ /dev/null @@ -1,44 +0,0 @@ -# PrimaryNetworkAddressActivityResponse - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivityResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `status` | [components.WebhookStatusType](../../models/components/webhookstatustype.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_check_mark: | N/A | -| `eventType` | [components.PrimaryNetworkAddressActivityEventType](../../models/components/primarynetworkaddressactivityeventtype.md) | :heavy_check_mark: | N/A | -| `metadata` | [components.PrimaryNetworkAddressActivityMetadata](../../models/components/primarynetworkaddressactivitymetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivitysubevents.md b/webhooks/docs/models/components/primarynetworkaddressactivitysubevents.md deleted file mode 100644 index 2b046b7f..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivitysubevents.md +++ /dev/null @@ -1,19 +0,0 @@ -# PrimaryNetworkAddressActivitySubEvents - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivitySubEvents } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivitySubEvents = { - addressActivitySubEvents: [ - "balance_threshold", - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `addressActivitySubEvents` | [components.PrimaryNetworkAddressActivitySubEventType](../../models/components/primarynetworkaddressactivitysubeventtype.md)[] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkaddressactivitysubeventtype.md b/webhooks/docs/models/components/primarynetworkaddressactivitysubeventtype.md deleted file mode 100644 index b26fb406..00000000 --- a/webhooks/docs/models/components/primarynetworkaddressactivitysubeventtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# PrimaryNetworkAddressActivitySubEventType - -Array of address activity sub-event types - -## Example Usage - -```typescript -import { PrimaryNetworkAddressActivitySubEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkAddressActivitySubEventType = "reward_distribution"; -``` - -## Values - -```typescript -"balance_change" | "balance_threshold" | "reward_distribution" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworkbalancethresholdfilter.md b/webhooks/docs/models/components/primarynetworkbalancethresholdfilter.md deleted file mode 100644 index 6a7c8d5e..00000000 --- a/webhooks/docs/models/components/primarynetworkbalancethresholdfilter.md +++ /dev/null @@ -1,19 +0,0 @@ -# PrimaryNetworkBalanceThresholdFilter - -## Example Usage - -```typescript -import { PrimaryNetworkBalanceThresholdFilter } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkBalanceThresholdFilter = { - balanceType: "unlockedStaked", - balanceThreshold: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `balanceType` | [components.CommonBalanceType](../../models/components/commonbalancetype.md) | :heavy_check_mark: | Type of balance to monitor | -| `balanceThreshold` | *string* | :heavy_check_mark: | Threshold for balance corresponding to balanceType in nAVAX | \ No newline at end of file diff --git a/webhooks/docs/models/components/primarynetworktype.md b/webhooks/docs/models/components/primarynetworktype.md deleted file mode 100644 index 5233200f..00000000 --- a/webhooks/docs/models/components/primarynetworktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# PrimaryNetworkType - -## Example Usage - -```typescript -import { PrimaryNetworkType } from "@avalanche-sdk/webhooks/models/components"; - -let value: PrimaryNetworkType = "fuji"; -``` - -## Values - -```typescript -"mainnet" | "fuji" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/security.md b/webhooks/docs/models/components/security.md deleted file mode 100644 index c01916ed..00000000 --- a/webhooks/docs/models/components/security.md +++ /dev/null @@ -1,15 +0,0 @@ -# Security - -## Example Usage - -```typescript -import { Security } from "@avalanche-sdk/webhooks/models/components"; - -let value: Security = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `apiKey` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/sharedsecretsresponse.md b/webhooks/docs/models/components/sharedsecretsresponse.md deleted file mode 100644 index e3deace3..00000000 --- a/webhooks/docs/models/components/sharedsecretsresponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# SharedSecretsResponse - -## Example Usage - -```typescript -import { SharedSecretsResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: SharedSecretsResponse = { - secret: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `secret` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/transaction.md b/webhooks/docs/models/components/transaction.md deleted file mode 100644 index 79b2cae1..00000000 --- a/webhooks/docs/models/components/transaction.md +++ /dev/null @@ -1,132 +0,0 @@ -# Transaction - -## Example Usage - -```typescript -import { Transaction } from "@avalanche-sdk/webhooks/models/components"; - -let value: Transaction = { - blockHash: - "0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0", - blockNumber: "45396106", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - gas: "80000", - gasPrice: "52000000000", - maxFeePerGas: "52000000000", - maxPriorityFeePerGas: "2000000000", - txHash: "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - txStatus: "1", - input: - "0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69", - nonce: "0", - to: "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", - transactionIndex: 1, - value: "0", - type: 2, - chainId: "43114", - receiptCumulativeGasUsed: "668508", - receiptGasUsed: "44038", - receiptEffectiveGasPrice: "27000000000", - receiptRoot: - "0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3", - blockTimestamp: 1715621840, - contractAddress: "0x0000000000000000000000000000000000000000", - erc20Transfers: [], - erc721Transfers: [ - { - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - type: "ERC20", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", - value: "3331009129", - tokenId: "2", - blockTimestamp: 1640995200, - logIndex: 5, - erc20Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc721Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc1155Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - }, - ], - erc1155Transfers: [], - internalTransactions: [ - { - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - internalTxType: "call", - value: "50000000000000000", - gasUsed: "44038", - gasLimit: "50000", - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - }, - ], - accessList: [ - { - accessAddresses: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - storageKeys: [ - "", - "", - "", - ], - }, - ], - networkToken: { - tokenName: "TetherToken", - tokenSymbol: "USDt", - tokenDecimals: 6, - valueWithDecimals: "3331.009129", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `blockHash` | *string* | :heavy_check_mark: | Block hash of the transaction | 0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0 | -| `blockNumber` | *string* | :heavy_check_mark: | Block number of the transaction | 45396106 | -| `from` | *string* | :heavy_check_mark: | Sender address | 0x737F6b0b8A04e8462d0fC7076451298F0dA9a972 | -| `gas` | *string* | :heavy_check_mark: | Gas limit for the transaction | 80000 | -| `gasPrice` | *string* | :heavy_check_mark: | Gas price used | 52000000000 | -| `maxFeePerGas` | *string* | :heavy_check_mark: | Maximum fee per gas | 52000000000 | -| `maxPriorityFeePerGas` | *string* | :heavy_check_mark: | Maximum priority fee per gas | 2000000000 | -| `txHash` | *string* | :heavy_check_mark: | Transaction hash | 0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8 | -| `txStatus` | *string* | :heavy_check_mark: | Transaction status | 1 | -| `input` | *string* | :heavy_check_mark: | Input data | 0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69 | -| `nonce` | *string* | :heavy_check_mark: | Nonce value | 0 | -| `to` | *string* | :heavy_check_mark: | Recipient address | 0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7 | -| `transactionIndex` | *number* | :heavy_check_mark: | Transaction index | 1 | -| `value` | *string* | :heavy_check_mark: | Value transferred in the transaction | 0 | -| `type` | *number* | :heavy_check_mark: | Transaction type | 2 | -| `chainId` | *string* | :heavy_check_mark: | Chain ID of the network | 43114 | -| `receiptCumulativeGasUsed` | *string* | :heavy_check_mark: | Cumulative gas used | 668508 | -| `receiptGasUsed` | *string* | :heavy_check_mark: | Gas used | 44038 | -| `receiptEffectiveGasPrice` | *string* | :heavy_check_mark: | Effective gas price | 27000000000 | -| `receiptRoot` | *string* | :heavy_check_mark: | Receipt root | 0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3 | -| `blockTimestamp` | *number* | :heavy_check_mark: | Block timestamp | 1715621840 | -| `contractAddress` | *string* | :heavy_minus_sign: | Contract address (optional) | 0x0000000000000000000000000000000000000000 | -| `erc20Transfers` | [components.ERCTransfer](../../models/components/erctransfer.md)[] | :heavy_check_mark: | ERC20 transfers | | -| `erc721Transfers` | [components.ERCTransfer](../../models/components/erctransfer.md)[] | :heavy_check_mark: | ERC721 transfers | | -| `erc1155Transfers` | [components.ERCTransfer](../../models/components/erctransfer.md)[] | :heavy_check_mark: | ERC1155 transfers | | -| `internalTransactions` | [components.WebhookInternalTransaction](../../models/components/webhookinternaltransaction.md)[] | :heavy_minus_sign: | Internal transactions (optional) | | -| `accessList` | [components.AccessListData](../../models/components/accesslistdata.md)[] | :heavy_minus_sign: | Access list (optional) | | -| `networkToken` | [components.NetworkTokenInfo](../../models/components/networktokeninfo.md) | :heavy_minus_sign: | Network token info (optional) | | \ No newline at end of file diff --git a/webhooks/docs/models/components/transactionevent.md b/webhooks/docs/models/components/transactionevent.md deleted file mode 100644 index 5c8f5e85..00000000 --- a/webhooks/docs/models/components/transactionevent.md +++ /dev/null @@ -1,126 +0,0 @@ -# TransactionEvent - -## Example Usage - -```typescript -import { TransactionEvent } from "@avalanche-sdk/webhooks/models/components"; - -let value: TransactionEvent = { - transaction: { - blockHash: - "0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0", - blockNumber: "45396106", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - gas: "80000", - gasPrice: "52000000000", - maxFeePerGas: "52000000000", - maxPriorityFeePerGas: "2000000000", - txHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - txStatus: "1", - input: - "0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69", - nonce: "0", - to: "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", - transactionIndex: 1, - value: "0", - type: 2, - chainId: "43114", - receiptCumulativeGasUsed: "668508", - receiptGasUsed: "44038", - receiptEffectiveGasPrice: "27000000000", - receiptRoot: - "0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3", - blockTimestamp: 1715621840, - contractAddress: "0x0000000000000000000000000000000000000000", - erc20Transfers: [], - erc721Transfers: [ - { - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - type: "ERC20", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", - value: "3331009129", - tokenId: "2", - blockTimestamp: 1640995200, - logIndex: 5, - erc20Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc721Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc1155Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - }, - ], - erc1155Transfers: [], - internalTransactions: [ - { - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - internalTxType: "call", - value: "50000000000000000", - gasUsed: "44038", - gasLimit: "50000", - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - }, - ], - accessList: [ - { - accessAddresses: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - storageKeys: [ - "", - "", - "", - ], - }, - ], - networkToken: { - tokenName: "TetherToken", - tokenSymbol: "USDt", - tokenDecimals: 6, - valueWithDecimals: "3331.009129", - }, - }, - logs: [ - { - address: "0x54C800d2331E10467143911aabCa092d68bF4166", - topic0: - "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", - topic1: - "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", - topic2: - "0x0000000000000000000000000000000000000000000000000000000000000000", - topic3: - "0x0000000000000000000000000000000000000000000000000000000000001350", - data: "0x", - transactionIndex: 2, - logIndex: 10, - removed: false, - }, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `transaction` | [components.Transaction](../../models/components/transaction.md) | :heavy_check_mark: | Transaction details | -| `logs` | [components.Log](../../models/components/log.md)[] | :heavy_minus_sign: | Array of log events | \ No newline at end of file diff --git a/webhooks/docs/models/components/updatewebhookrequest.md b/webhooks/docs/models/components/updatewebhookrequest.md deleted file mode 100644 index cf350993..00000000 --- a/webhooks/docs/models/components/updatewebhookrequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdateWebhookRequest - -## Example Usage - -```typescript -import { UpdateWebhookRequest } from "@avalanche-sdk/webhooks/models/components"; - -let value: UpdateWebhookRequest = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `url` | *string* | :heavy_minus_sign: | N/A | -| `status` | [components.WebhookStatusType](../../models/components/webhookstatustype.md) | :heavy_minus_sign: | N/A | -| `includeInternalTxs` | *boolean* | :heavy_minus_sign: | Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. | -| `includeLogs` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivityeventtype.md b/webhooks/docs/models/components/validatoractivityeventtype.md deleted file mode 100644 index 7704a4d7..00000000 --- a/webhooks/docs/models/components/validatoractivityeventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ValidatorActivityEventType - -## Example Usage - -```typescript -import { ValidatorActivityEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityEventType = "validator_activity"; -``` - -## Values - -```typescript -"validator_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivitykeytype.md b/webhooks/docs/models/components/validatoractivitykeytype.md deleted file mode 100644 index 796783f6..00000000 --- a/webhooks/docs/models/components/validatoractivitykeytype.md +++ /dev/null @@ -1,17 +0,0 @@ -# ValidatorActivityKeyType - -The type of key to monitor for the validator activity event type. - -## Example Usage - -```typescript -import { ValidatorActivityKeyType } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityKeyType = "nodeId"; -``` - -## Values - -```typescript -"nodeId" | "subnetId" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivitymetadata.md b/webhooks/docs/models/components/validatoractivitymetadata.md deleted file mode 100644 index a0c45abd..00000000 --- a/webhooks/docs/models/components/validatoractivitymetadata.md +++ /dev/null @@ -1,33 +0,0 @@ -# ValidatorActivityMetadata - -## Example Usage - -```typescript -import { ValidatorActivityMetadata } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `eventSignatures` | *string*[] | :heavy_minus_sign: | Array of hexadecimal strings of the event signatures. | [
"0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64"
] | -| `keyType` | [components.ValidatorActivityKeyType](../../models/components/validatoractivitykeytype.md) | :heavy_check_mark: | The type of key to monitor for the validator activity event type. | | -| `keys` | *string*[] | :heavy_check_mark: | Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key | | -| `subEvents` | [components.ValidatorActivitySubEvents](../../models/components/validatoractivitysubevents.md) | :heavy_check_mark: | Sub-events to monitor | | -| `nodeIds` | *string*[] | :heavy_minus_sign: | Array of node IDs to filter the events | | -| `subnetIds` | *string*[] | :heavy_minus_sign: | Array of subnet IDs to filter the events | | -| `l1ValidatorFeeBalanceThreshold` | *string* | :heavy_minus_sign: | L1 validator fee balance threshold in nAVAX | | \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivityrequest.md b/webhooks/docs/models/components/validatoractivityrequest.md deleted file mode 100644 index daf3770e..00000000 --- a/webhooks/docs/models/components/validatoractivityrequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# ValidatorActivityRequest - -## Example Usage - -```typescript -import { ValidatorActivityRequest } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityRequest = { - eventType: "validator_activity", - url: "https://cultivated-archaeology.biz/", - network: "fuji", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "nodeId", - keys: [], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `eventType` | [components.ValidatorActivityRequestEventType](../../models/components/validatoractivityrequesteventtype.md) | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `network` | [components.PrimaryNetworkType](../../models/components/primarynetworktype.md) | :heavy_check_mark: | N/A | -| `metadata` | *components.ValidatorActivityRequestMetadata* | :heavy_check_mark: | Metadata for platform validator activity event | \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivityrequesteventtype.md b/webhooks/docs/models/components/validatoractivityrequesteventtype.md deleted file mode 100644 index ba51e0a6..00000000 --- a/webhooks/docs/models/components/validatoractivityrequesteventtype.md +++ /dev/null @@ -1,15 +0,0 @@ -# ValidatorActivityRequestEventType - -## Example Usage - -```typescript -import { ValidatorActivityRequestEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityRequestEventType = "validator_activity"; -``` - -## Values - -```typescript -"validator_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivityrequestmetadata.md b/webhooks/docs/models/components/validatoractivityrequestmetadata.md deleted file mode 100644 index 9d1203d0..00000000 --- a/webhooks/docs/models/components/validatoractivityrequestmetadata.md +++ /dev/null @@ -1,25 +0,0 @@ -# ValidatorActivityRequestMetadata - -Metadata for platform validator activity event - - -## Supported Types - -### `components.ValidatorActivityMetadata` - -```typescript -const value: components.ValidatorActivityMetadata = { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, -}; -``` - diff --git a/webhooks/docs/models/components/validatoractivityresponse.md b/webhooks/docs/models/components/validatoractivityresponse.md deleted file mode 100644 index e640e623..00000000 --- a/webhooks/docs/models/components/validatoractivityresponse.md +++ /dev/null @@ -1,46 +0,0 @@ -# ValidatorActivityResponse - -## Example Usage - -```typescript -import { ValidatorActivityResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | N/A | -| `url` | *string* | :heavy_check_mark: | N/A | -| `chainId` | *string* | :heavy_check_mark: | N/A | -| `status` | [components.WebhookStatusType](../../models/components/webhookstatustype.md) | :heavy_check_mark: | N/A | -| `createdAt` | *number* | :heavy_check_mark: | N/A | -| `name` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_check_mark: | N/A | -| `eventType` | [components.ValidatorActivityEventType](../../models/components/validatoractivityeventtype.md) | :heavy_check_mark: | N/A | -| `metadata` | [components.ValidatorActivityMetadata](../../models/components/validatoractivitymetadata.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivitysubevent.md b/webhooks/docs/models/components/validatoractivitysubevent.md deleted file mode 100644 index 3f77a490..00000000 --- a/webhooks/docs/models/components/validatoractivitysubevent.md +++ /dev/null @@ -1,15 +0,0 @@ -# ValidatorActivitySubEvent - -## Example Usage - -```typescript -import { ValidatorActivitySubEvent } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivitySubEvent = "l1_validator_balance_threshold"; -``` - -## Values - -```typescript -"validator_stake" | "delegator_stake" | "reward_distribution" | "l1_validator_balance_increased" | "l1_validator_disabled" | "l1_validator_removed" | "l1_validator_balance_threshold" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/validatoractivitysubevents.md b/webhooks/docs/models/components/validatoractivitysubevents.md deleted file mode 100644 index e310cfc1..00000000 --- a/webhooks/docs/models/components/validatoractivitysubevents.md +++ /dev/null @@ -1,17 +0,0 @@ -# ValidatorActivitySubEvents - -## Example Usage - -```typescript -import { ValidatorActivitySubEvents } from "@avalanche-sdk/webhooks/models/components"; - -let value: ValidatorActivitySubEvents = { - validatorActivitySubEvents: [], -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `validatorActivitySubEvents` | [components.ValidatorActivitySubEvent](../../models/components/validatoractivitysubevent.md)[] | :heavy_check_mark: | Array of validator activity sub-event types | \ No newline at end of file diff --git a/webhooks/docs/models/components/webhook.md b/webhooks/docs/models/components/webhook.md deleted file mode 100644 index eeaf9a28..00000000 --- a/webhooks/docs/models/components/webhook.md +++ /dev/null @@ -1,84 +0,0 @@ -# Webhook - - -## Supported Types - -### `components.EVMAddressActivityResponse` - -```typescript -const value: components.EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityResponse` - -```typescript -const value: components.PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityResponse` - -```typescript -const value: components.ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/models/components/webhookaddressactivityresponse.md b/webhooks/docs/models/components/webhookaddressactivityresponse.md deleted file mode 100644 index 8ba5e8f1..00000000 --- a/webhooks/docs/models/components/webhookaddressactivityresponse.md +++ /dev/null @@ -1,133 +0,0 @@ -# WebhookAddressActivityResponse - -## Example Usage - -```typescript -import { WebhookAddressActivityResponse } from "@avalanche-sdk/webhooks/models/components"; - -let value: WebhookAddressActivityResponse = { - webhookId: "401da7d9-d6d7-46c8-b431-72ff1e1543f4", - eventType: "address_activity", - messageId: "bc9732db-2430-4296-afc3-c51267beb14a", - event: { - transaction: { - blockHash: - "0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0", - blockNumber: "45396106", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - gas: "80000", - gasPrice: "52000000000", - maxFeePerGas: "52000000000", - maxPriorityFeePerGas: "2000000000", - txHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - txStatus: "1", - input: - "0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69", - nonce: "0", - to: "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", - transactionIndex: 1, - value: "0", - type: 2, - chainId: "43114", - receiptCumulativeGasUsed: "668508", - receiptGasUsed: "44038", - receiptEffectiveGasPrice: "27000000000", - receiptRoot: - "0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3", - blockTimestamp: 1715621840, - contractAddress: "0x0000000000000000000000000000000000000000", - erc20Transfers: [], - erc721Transfers: [ - { - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - type: "ERC20", - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x40E832C3Df9562DfaE5A86A4849F27F687A9B46B", - value: "3331009129", - tokenId: "2", - blockTimestamp: 1640995200, - logIndex: 5, - erc20Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc721Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - erc1155Token: { - address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - name: "TetherToken", - symbol: "USDt", - decimals: 6, - valueWithDecimals: "3331.009129", - }, - }, - ], - erc1155Transfers: [], - internalTransactions: [ - { - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - internalTxType: "call", - value: "50000000000000000", - gasUsed: "44038", - gasLimit: "50000", - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", - }, - ], - accessList: [ - { - accessAddresses: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - storageKeys: [ - "", - "", - "", - ], - }, - ], - networkToken: { - tokenName: "TetherToken", - tokenSymbol: "USDt", - tokenDecimals: 6, - valueWithDecimals: "3331.009129", - }, - }, - logs: [ - { - address: "0x54C800d2331E10467143911aabCa092d68bF4166", - topic0: - "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", - topic1: - "0x0000000000000000000000000000333883f313ad709f583d0a3d2e18a44ef29b", - topic2: - "0x0000000000000000000000000000000000000000000000000000000000000000", - topic3: - "0x0000000000000000000000000000000000000000000000000000000000001350", - data: "0x", - transactionIndex: 2, - logIndex: 10, - removed: false, - }, - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `webhookId` | *string* | :heavy_check_mark: | Webhook ID | 401da7d9-d6d7-46c8-b431-72ff1e1543f4 | -| `eventType` | [components.WebhookAddressActivityResponseEventType](../../models/components/webhookaddressactivityresponseeventtype.md) | :heavy_check_mark: | Event type | address_activity | -| `messageId` | *string* | :heavy_check_mark: | Message ID | bc9732db-2430-4296-afc3-c51267beb14a | -| `event` | [components.TransactionEvent](../../models/components/transactionevent.md) | :heavy_check_mark: | Event details | | \ No newline at end of file diff --git a/webhooks/docs/models/components/webhookaddressactivityresponseeventtype.md b/webhooks/docs/models/components/webhookaddressactivityresponseeventtype.md deleted file mode 100644 index 68441db1..00000000 --- a/webhooks/docs/models/components/webhookaddressactivityresponseeventtype.md +++ /dev/null @@ -1,17 +0,0 @@ -# WebhookAddressActivityResponseEventType - -Event type - -## Example Usage - -```typescript -import { WebhookAddressActivityResponseEventType } from "@avalanche-sdk/webhooks/models/components"; - -let value: WebhookAddressActivityResponseEventType = "address_activity"; -``` - -## Values - -```typescript -"address_activity" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/webhookinternaltransaction.md b/webhooks/docs/models/components/webhookinternaltransaction.md deleted file mode 100644 index fdebfb03..00000000 --- a/webhooks/docs/models/components/webhookinternaltransaction.md +++ /dev/null @@ -1,30 +0,0 @@ -# WebhookInternalTransaction - -## Example Usage - -```typescript -import { WebhookInternalTransaction } from "@avalanche-sdk/webhooks/models/components"; - -let value: WebhookInternalTransaction = { - from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", - to: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", - internalTxType: "call", - value: "50000000000000000", - gasUsed: "44038", - gasLimit: "50000", - transactionHash: - "0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `from` | *string* | :heavy_check_mark: | Sender address | 0x737F6b0b8A04e8462d0fC7076451298F0dA9a972 | -| `to` | *string* | :heavy_check_mark: | Recipient address | 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7 | -| `internalTxType` | *string* | :heavy_check_mark: | Internal transaction type | call | -| `value` | *string* | :heavy_check_mark: | Value transferred | 50000000000000000 | -| `gasUsed` | *string* | :heavy_check_mark: | Gas used | 44038 | -| `gasLimit` | *string* | :heavy_check_mark: | Gas limit | 50000 | -| `transactionHash` | *string* | :heavy_check_mark: | Transaction hash | 0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8 | \ No newline at end of file diff --git a/webhooks/docs/models/components/webhookstatus.md b/webhooks/docs/models/components/webhookstatus.md deleted file mode 100644 index 57185e5e..00000000 --- a/webhooks/docs/models/components/webhookstatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# WebhookStatus - -## Example Usage - -```typescript -import { WebhookStatus } from "@avalanche-sdk/webhooks/models/components"; - -let value: WebhookStatus = "active"; -``` - -## Values - -```typescript -"active" | "inactive" -``` \ No newline at end of file diff --git a/webhooks/docs/models/components/webhookstatustype.md b/webhooks/docs/models/components/webhookstatustype.md deleted file mode 100644 index 97539c46..00000000 --- a/webhooks/docs/models/components/webhookstatustype.md +++ /dev/null @@ -1,15 +0,0 @@ -# WebhookStatusType - -## Example Usage - -```typescript -import { WebhookStatusType } from "@avalanche-sdk/webhooks/models/components"; - -let value: WebhookStatusType = "inactive"; -``` - -## Values - -```typescript -"active" | "inactive" -``` \ No newline at end of file diff --git a/webhooks/docs/models/errors/badgatewayerror.md b/webhooks/docs/models/errors/badgatewayerror.md deleted file mode 100644 index a389b954..00000000 --- a/webhooks/docs/models/errors/badgatewayerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadGatewayError - -## Example Usage - -```typescript -import { BadGatewayError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadGatewayMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 502 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Gateway | \ No newline at end of file diff --git a/webhooks/docs/models/errors/badgatewaymessage.md b/webhooks/docs/models/errors/badgatewaymessage.md deleted file mode 100644 index 0d48b33e..00000000 --- a/webhooks/docs/models/errors/badgatewaymessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadGatewayMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/badrequesterror.md b/webhooks/docs/models/errors/badrequesterror.md deleted file mode 100644 index 40406835..00000000 --- a/webhooks/docs/models/errors/badrequesterror.md +++ /dev/null @@ -1,17 +0,0 @@ -# BadRequestError - -## Example Usage - -```typescript -import { BadRequestError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.BadRequestMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 400 | -| `error` | *string* | :heavy_check_mark: | The type of error | Bad Request | \ No newline at end of file diff --git a/webhooks/docs/models/errors/badrequestmessage.md b/webhooks/docs/models/errors/badrequestmessage.md deleted file mode 100644 index 8d4e5cef..00000000 --- a/webhooks/docs/models/errors/badrequestmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# BadRequestMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/forbiddenerror.md b/webhooks/docs/models/errors/forbiddenerror.md deleted file mode 100644 index 8021876f..00000000 --- a/webhooks/docs/models/errors/forbiddenerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ForbiddenError - -## Example Usage - -```typescript -import { ForbiddenError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ForbiddenMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 403 | -| `error` | *string* | :heavy_check_mark: | The type of error | Forbidden | \ No newline at end of file diff --git a/webhooks/docs/models/errors/forbiddenmessage.md b/webhooks/docs/models/errors/forbiddenmessage.md deleted file mode 100644 index ca64f097..00000000 --- a/webhooks/docs/models/errors/forbiddenmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ForbiddenMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/internalservererror.md b/webhooks/docs/models/errors/internalservererror.md deleted file mode 100644 index ea8a9ea5..00000000 --- a/webhooks/docs/models/errors/internalservererror.md +++ /dev/null @@ -1,17 +0,0 @@ -# InternalServerError - -## Example Usage - -```typescript -import { InternalServerError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.InternalServerErrorMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 500 | -| `error` | *string* | :heavy_check_mark: | The type of error | Internal Server Error | \ No newline at end of file diff --git a/webhooks/docs/models/errors/internalservererrormessage.md b/webhooks/docs/models/errors/internalservererrormessage.md deleted file mode 100644 index f27ce805..00000000 --- a/webhooks/docs/models/errors/internalservererrormessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# InternalServerErrorMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/notfounderror.md b/webhooks/docs/models/errors/notfounderror.md deleted file mode 100644 index 2f1c9dfc..00000000 --- a/webhooks/docs/models/errors/notfounderror.md +++ /dev/null @@ -1,17 +0,0 @@ -# NotFoundError - -## Example Usage - -```typescript -import { NotFoundError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.NotFoundMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 404 | -| `error` | *string* | :heavy_check_mark: | The type of error | Not Found | \ No newline at end of file diff --git a/webhooks/docs/models/errors/notfoundmessage.md b/webhooks/docs/models/errors/notfoundmessage.md deleted file mode 100644 index dda6ca1d..00000000 --- a/webhooks/docs/models/errors/notfoundmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# NotFoundMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/serviceunavailableerror.md b/webhooks/docs/models/errors/serviceunavailableerror.md deleted file mode 100644 index 53b2afbd..00000000 --- a/webhooks/docs/models/errors/serviceunavailableerror.md +++ /dev/null @@ -1,17 +0,0 @@ -# ServiceUnavailableError - -## Example Usage - -```typescript -import { ServiceUnavailableError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.ServiceUnavailableMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 503 | -| `error` | *string* | :heavy_check_mark: | The type of error | Service Unavailable | \ No newline at end of file diff --git a/webhooks/docs/models/errors/serviceunavailablemessage.md b/webhooks/docs/models/errors/serviceunavailablemessage.md deleted file mode 100644 index 10c05c8f..00000000 --- a/webhooks/docs/models/errors/serviceunavailablemessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# ServiceUnavailableMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/toomanyrequestserror.md b/webhooks/docs/models/errors/toomanyrequestserror.md deleted file mode 100644 index 2fda00b0..00000000 --- a/webhooks/docs/models/errors/toomanyrequestserror.md +++ /dev/null @@ -1,17 +0,0 @@ -# TooManyRequestsError - -## Example Usage - -```typescript -import { TooManyRequestsError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.TooManyRequestsMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 429 | -| `error` | *string* | :heavy_check_mark: | The type of error | Too Many Requests | \ No newline at end of file diff --git a/webhooks/docs/models/errors/toomanyrequestsmessage.md b/webhooks/docs/models/errors/toomanyrequestsmessage.md deleted file mode 100644 index 9967ac24..00000000 --- a/webhooks/docs/models/errors/toomanyrequestsmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# TooManyRequestsMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/errors/unauthorizederror.md b/webhooks/docs/models/errors/unauthorizederror.md deleted file mode 100644 index 43ede3d2..00000000 --- a/webhooks/docs/models/errors/unauthorizederror.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnauthorizedError - -## Example Usage - -```typescript -import { UnauthorizedError } from "@avalanche-sdk/webhooks/models/errors"; - -// No examples available for this model -``` - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `message` | *errors.UnauthorizedMessage* | :heavy_check_mark: | The error message describing the reason for the exception | | -| `statusCode` | *number* | :heavy_check_mark: | The HTTP status code of the response | 401 | -| `error` | *string* | :heavy_check_mark: | The type of error | Unauthorized | \ No newline at end of file diff --git a/webhooks/docs/models/errors/unauthorizedmessage.md b/webhooks/docs/models/errors/unauthorizedmessage.md deleted file mode 100644 index 3df6c725..00000000 --- a/webhooks/docs/models/errors/unauthorizedmessage.md +++ /dev/null @@ -1,22 +0,0 @@ -# UnauthorizedMessage - -The error message describing the reason for the exception - - -## Supported Types - -### `string` - -```typescript -const value: string = ""; -``` - -### `string[]` - -```typescript -const value: string[] = [ - "", - "", -]; -``` - diff --git a/webhooks/docs/models/operations/addaddressestowebhookrequest.md b/webhooks/docs/models/operations/addaddressestowebhookrequest.md deleted file mode 100644 index c32d9240..00000000 --- a/webhooks/docs/models/operations/addaddressestowebhookrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# AddAddressesToWebhookRequest - -## Example Usage - -```typescript -import { AddAddressesToWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: AddAddressesToWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | -| `addressesChangeRequest` | [components.AddressesChangeRequest](../../models/components/addresseschangerequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/webhooks/docs/models/operations/createwebhookrequest.md b/webhooks/docs/models/operations/createwebhookrequest.md deleted file mode 100644 index 82da9cbd..00000000 --- a/webhooks/docs/models/operations/createwebhookrequest.md +++ /dev/null @@ -1,68 +0,0 @@ -# CreateWebhookRequest - - -## Supported Types - -### `components.EVMAddressActivityRequest` - -```typescript -const value: components.EVMAddressActivityRequest = { - eventType: "address_activity", - url: "https://buttery-couch.biz/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityRequest` - -```typescript -const value: components.PrimaryNetworkAddressActivityRequest = { - eventType: "primary_network_address_activity", - url: "https://irresponsible-entry.name", - network: "mainnet", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - "", - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityRequest` - -```typescript -const value: components.ValidatorActivityRequest = { - eventType: "validator_activity", - url: "https://cultivated-archaeology.biz/", - network: "fuji", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "nodeId", - keys: [], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/models/operations/createwebhookresponse.md b/webhooks/docs/models/operations/createwebhookresponse.md deleted file mode 100644 index eb379765..00000000 --- a/webhooks/docs/models/operations/createwebhookresponse.md +++ /dev/null @@ -1,86 +0,0 @@ -# CreateWebhookResponse - -Successful response - - -## Supported Types - -### `components.EVMAddressActivityResponse` - -```typescript -const value: components.EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityResponse` - -```typescript -const value: components.PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityResponse` - -```typescript -const value: components.ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/models/operations/deactivatewebhookrequest.md b/webhooks/docs/models/operations/deactivatewebhookrequest.md deleted file mode 100644 index d1658100..00000000 --- a/webhooks/docs/models/operations/deactivatewebhookrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeactivateWebhookRequest - -## Example Usage - -```typescript -import { DeactivateWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: DeactivateWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | \ No newline at end of file diff --git a/webhooks/docs/models/operations/deactivatewebhookresponse.md b/webhooks/docs/models/operations/deactivatewebhookresponse.md deleted file mode 100644 index 28772f03..00000000 --- a/webhooks/docs/models/operations/deactivatewebhookresponse.md +++ /dev/null @@ -1,86 +0,0 @@ -# DeactivateWebhookResponse - -Successful response - - -## Supported Types - -### `components.EVMAddressActivityResponse` - -```typescript -const value: components.EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityResponse` - -```typescript -const value: components.PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityResponse` - -```typescript -const value: components.ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/models/operations/getaddressesfromwebhookrequest.md b/webhooks/docs/models/operations/getaddressesfromwebhookrequest.md deleted file mode 100644 index 2588f383..00000000 --- a/webhooks/docs/models/operations/getaddressesfromwebhookrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetAddressesFromWebhookRequest - -## Example Usage - -```typescript -import { GetAddressesFromWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: GetAddressesFromWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | \ No newline at end of file diff --git a/webhooks/docs/models/operations/getaddressesfromwebhookresponse.md b/webhooks/docs/models/operations/getaddressesfromwebhookresponse.md deleted file mode 100644 index d75f7bd4..00000000 --- a/webhooks/docs/models/operations/getaddressesfromwebhookresponse.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetAddressesFromWebhookResponse - -## Example Usage - -```typescript -import { GetAddressesFromWebhookResponse } from "@avalanche-sdk/webhooks/models/operations"; - -let value: GetAddressesFromWebhookResponse = { - result: { - addresses: [ - "", - "", - "", - ], - totalAddresses: 1227.61, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `result` | [components.ListWebhookAddressesResponse](../../models/components/listwebhookaddressesresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/operations/getwebhookrequest.md b/webhooks/docs/models/operations/getwebhookrequest.md deleted file mode 100644 index 255a5a83..00000000 --- a/webhooks/docs/models/operations/getwebhookrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetWebhookRequest - -## Example Usage - -```typescript -import { GetWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: GetWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | \ No newline at end of file diff --git a/webhooks/docs/models/operations/getwebhookresponse.md b/webhooks/docs/models/operations/getwebhookresponse.md deleted file mode 100644 index 74a70316..00000000 --- a/webhooks/docs/models/operations/getwebhookresponse.md +++ /dev/null @@ -1,86 +0,0 @@ -# GetWebhookResponse - -Successful response - - -## Supported Types - -### `components.EVMAddressActivityResponse` - -```typescript -const value: components.EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityResponse` - -```typescript -const value: components.PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityResponse` - -```typescript -const value: components.ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/models/operations/listwebhooksrequest.md b/webhooks/docs/models/operations/listwebhooksrequest.md deleted file mode 100644 index 004deb9e..00000000 --- a/webhooks/docs/models/operations/listwebhooksrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListWebhooksRequest - -## Example Usage - -```typescript -import { ListWebhooksRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: ListWebhooksRequest = { - status: "active", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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. The minimum page size is 1. The maximum pageSize is 100. | 10 | -| `status` | [components.WebhookStatus](../../models/components/webhookstatus.md) | :heavy_minus_sign: | Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned. | active | \ No newline at end of file diff --git a/webhooks/docs/models/operations/listwebhooksresponse.md b/webhooks/docs/models/operations/listwebhooksresponse.md deleted file mode 100644 index 7f7dc13e..00000000 --- a/webhooks/docs/models/operations/listwebhooksresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# ListWebhooksResponse - -## Example Usage - -```typescript -import { ListWebhooksResponse } from "@avalanche-sdk/webhooks/models/operations"; - -let value: ListWebhooksResponse = { - result: { - webhooks: [], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `result` | [components.ListWebhooksResponse](../../models/components/listwebhooksresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/webhooks/docs/models/operations/removeaddressesfromwebhookrequest.md b/webhooks/docs/models/operations/removeaddressesfromwebhookrequest.md deleted file mode 100644 index 45976ce3..00000000 --- a/webhooks/docs/models/operations/removeaddressesfromwebhookrequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# RemoveAddressesFromWebhookRequest - -## Example Usage - -```typescript -import { RemoveAddressesFromWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: RemoveAddressesFromWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | -| `addressesChangeRequest` | [components.AddressesChangeRequest](../../models/components/addresseschangerequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/webhooks/docs/models/operations/updatewebhookrequest.md b/webhooks/docs/models/operations/updatewebhookrequest.md deleted file mode 100644 index d08384cf..00000000 --- a/webhooks/docs/models/operations/updatewebhookrequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# UpdateWebhookRequest - -## Example Usage - -```typescript -import { UpdateWebhookRequest } from "@avalanche-sdk/webhooks/models/operations"; - -let value: UpdateWebhookRequest = { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - updateWebhookRequest: {}, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The webhook identifier. | f33de69c-d13b-4691-908f-870d6e2e6b04 | -| `updateWebhookRequest` | [components.UpdateWebhookRequest](../../models/components/updatewebhookrequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/webhooks/docs/models/operations/updatewebhookresponse.md b/webhooks/docs/models/operations/updatewebhookresponse.md deleted file mode 100644 index 0b76e627..00000000 --- a/webhooks/docs/models/operations/updatewebhookresponse.md +++ /dev/null @@ -1,86 +0,0 @@ -# UpdateWebhookResponse - -Successful response - - -## Supported Types - -### `components.EVMAddressActivityResponse` - -```typescript -const value: components.EVMAddressActivityResponse = { - id: "", - url: "https://gruesome-waterspout.net", - chainId: "", - status: "inactive", - createdAt: 8215.82, - name: "", - description: "inventory which regarding", - eventType: "address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, -}; -``` - -### `components.PrimaryNetworkAddressActivityResponse` - -```typescript -const value: components.PrimaryNetworkAddressActivityResponse = { - id: "", - url: "https://general-babushka.biz/", - chainId: "", - status: "inactive", - createdAt: 6579.99, - name: "", - description: "mmm tabulate especially under inside youthfully since word", - eventType: "primary_network_address_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "addresses", - keys: [ - "", - ], - subEvents: { - addressActivitySubEvents: [], - }, - }, -}; -``` - -### `components.ValidatorActivityResponse` - -```typescript -const value: components.ValidatorActivityResponse = { - id: "", - url: "https://juvenile-abacus.info/", - chainId: "", - status: "inactive", - createdAt: 5002.48, - name: "", - description: "stiffen but behind flat supposing realistic", - eventType: "validator_activity", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - keyType: "subnetId", - keys: [ - "", - "", - "", - ], - subEvents: { - validatorActivitySubEvents: [], - }, - }, -}; -``` - diff --git a/webhooks/docs/sdks/addresses/README.md b/webhooks/docs/sdks/addresses/README.md deleted file mode 100644 index 1ebad1ff..00000000 --- a/webhooks/docs/sdks/addresses/README.md +++ /dev/null @@ -1,265 +0,0 @@ -# Addresses -(*webhooks.addresses*) - -## Overview - -### Available Operations - -* [add](#add) - Add addresses to EVM activity webhook -* [remove](#remove) - Remove addresses from EVM activity webhook -* [list](#list) - List adresses by EVM activity webhooks - -## add - -Add addresses to webhook. Only valid for EVM activity webhooks. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.addresses.add({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksAddressesAdd } from "@avalanche-sdk/webhooks/funcs/webhooksAddressesAdd.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksAddressesAdd(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksAddressesAdd failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.AddAddressesToWebhookRequest](../../models/operations/addaddressestowebhookrequest.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. | - -### Response - -**Promise\<[components.EVMAddressActivityResponse](../../models/components/evmaddressactivityresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## remove - -Remove addresses from webhook. Only valid for EVM activity webhooks. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.addresses.remove({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksAddressesRemove } from "@avalanche-sdk/webhooks/funcs/webhooksAddressesRemove.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksAddressesRemove(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - addressesChangeRequest: { - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksAddressesRemove failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.RemoveAddressesFromWebhookRequest](../../models/operations/removeaddressesfromwebhookrequest.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. | - -### Response - -**Promise\<[components.EVMAddressActivityResponse](../../models/components/evmaddressactivityresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## list - -List adresses by webhook. Only valid for EVM activity webhooks. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.addresses.list({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksAddressesList } from "@avalanche-sdk/webhooks/funcs/webhooksAddressesList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksAddressesList(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("webhooksAddressesList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetAddressesFromWebhookRequest](../../models/operations/getaddressesfromwebhookrequest.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. | - -### Response - -**Promise\<[operations.GetAddressesFromWebhookResponse](../../models/operations/getaddressesfromwebhookresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/webhooks/docs/sdks/avalanche/README.md b/webhooks/docs/sdks/avalanche/README.md deleted file mode 100644 index 4504d312..00000000 --- a/webhooks/docs/sdks/avalanche/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Avalanche SDK - -## Overview - -Webhooks API: Webhooks API enables real-time monitoring of on-chain events across the Avalanche C-chain, subnets, and L1 networks. It provides instant notifications for activities like smart contract events, NFT transfers, and wallet transactions. Developers can customize filters to track specific events and verify notifications using shared secrets for security - -### Available Operations diff --git a/webhooks/docs/sdks/webhooks/README.md b/webhooks/docs/sdks/webhooks/README.md deleted file mode 100644 index e274634e..00000000 --- a/webhooks/docs/sdks/webhooks/README.md +++ /dev/null @@ -1,642 +0,0 @@ -# Webhooks -(*webhooks*) - -## Overview - -### Available Operations - -* [healthCheck](#healthcheck) - Get the health of the service -* [create](#create) - Create a webhook -* [list](#list) - List webhooks -* [get](#get) - Get a webhook by ID -* [deactivate](#deactivate) - Deactivate a webhook -* [update](#update) - Update a webhook -* [generateOrRotateSharedSecret](#generateorrotatesharedsecret) - Generate or rotate a shared secret -* [getSharedSecret](#getsharedsecret) - Get a shared secret - -## healthCheck - -Check the health of the service. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.healthCheck(); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksHealthCheck } from "@avalanche-sdk/webhooks/funcs/webhooksHealthCheck.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksHealthCheck(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksHealthCheck failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | - -### Response - -**Promise\<[components.HealthCheckResultDto](../../models/components/healthcheckresultdto.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## create - -Create a new webhook. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.create({ - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksCreate } from "@avalanche-sdk/webhooks/funcs/webhooksCreate.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksCreate(avalanche, { - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksCreate failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateWebhookRequest](../../models/operations/createwebhookrequest.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. | - -### Response - -**Promise\<[operations.CreateWebhookResponse](../../models/operations/createwebhookresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## list - -Lists webhooks for the user. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.list({ - status: "active", - }); - - for await (const page of result) { - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksList } from "@avalanche-sdk/webhooks/funcs/webhooksList.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksList(avalanche, { - status: "active", - }); - if (res.ok) { - const { value: result } = res; - for await (const page of result) { - console.log(page); - } - } else { - console.log("webhooksList failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.ListWebhooksRequest](../../models/operations/listwebhooksrequest.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. | - -### Response - -**Promise\<[operations.ListWebhooksResponse](../../models/operations/listwebhooksresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## get - -Retrieves a webhook by ID. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.get({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksGet } from "@avalanche-sdk/webhooks/funcs/webhooksGet.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksGet(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksGet failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetWebhookRequest](../../models/operations/getwebhookrequest.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. | - -### Response - -**Promise\<[operations.GetWebhookResponse](../../models/operations/getwebhookresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## deactivate - -Deactivates a webhook by ID. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.deactivate({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksDeactivate } from "@avalanche-sdk/webhooks/funcs/webhooksDeactivate.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksDeactivate(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksDeactivate failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeactivateWebhookRequest](../../models/operations/deactivatewebhookrequest.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. | - -### Response - -**Promise\<[operations.DeactivateWebhookResponse](../../models/operations/deactivatewebhookresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## update - -Updates an existing webhook. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.update({ - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - updateWebhookRequest: {}, - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksUpdate } from "@avalanche-sdk/webhooks/funcs/webhooksUpdate.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksUpdate(avalanche, { - id: "f33de69c-d13b-4691-908f-870d6e2e6b04", - updateWebhookRequest: {}, - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksUpdate failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateWebhookRequest](../../models/operations/updatewebhookrequest.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. | - -### Response - -**Promise\<[operations.UpdateWebhookResponse](../../models/operations/updatewebhookresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## generateOrRotateSharedSecret - -Generates a new shared secret or rotate an existing one. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.generateOrRotateSharedSecret(); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksGenerateOrRotateSharedSecret } from "@avalanche-sdk/webhooks/funcs/webhooksGenerateOrRotateSharedSecret.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksGenerateOrRotateSharedSecret(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksGenerateOrRotateSharedSecret failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | - -### Response - -**Promise\<[components.SharedSecretsResponse](../../models/components/sharedsecretsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | - -## getSharedSecret - -Get a previously generated shared secret. - -### Example Usage - - -```typescript -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function run() { - const result = await avalanche.webhooks.getSharedSecret(); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { AvalancheCore } from "@avalanche-sdk/webhooks/core.js"; -import { webhooksGetSharedSecret } from "@avalanche-sdk/webhooks/funcs/webhooksGetSharedSecret.js"; - -// Use `AvalancheCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const avalanche = new AvalancheCore(); - -async function run() { - const res = await webhooksGetSharedSecret(avalanche); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("webhooksGetSharedSecret failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `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. | - -### Response - -**Promise\<[components.SharedSecretsResponse](../../models/components/sharedsecretsresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------ | ------------------------------ | ------------------------------ | -| errors.BadRequestError | 400 | application/json | -| errors.UnauthorizedError | 401 | application/json | -| errors.ForbiddenError | 403 | application/json | -| errors.NotFoundError | 404 | application/json | -| errors.TooManyRequestsError | 429 | application/json | -| errors.InternalServerError | 500 | application/json | -| errors.BadGatewayError | 502 | application/json | -| errors.ServiceUnavailableError | 503 | application/json | -| errors.AvalancheAPIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/webhooks/eslint.config.mjs b/webhooks/eslint.config.mjs deleted file mode 100644 index 67bccfec..00000000 --- a/webhooks/eslint.config.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import tseslint from "typescript-eslint"; - -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { files: ["**/*.{js,mjs,cjs,ts}"] }, - { languageOptions: { globals: globals.browser } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - { - rules: { - "no-constant-condition": "off", - "no-useless-escape": "off", - // Handled by typescript compiler - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-empty-object-type": "off", - "@typescript-eslint/no-namespace": "off", - }, - }, -]; diff --git a/webhooks/examples/.env.template b/webhooks/examples/.env.template deleted file mode 100644 index bd99a3dc..00000000 --- a/webhooks/examples/.env.template +++ /dev/null @@ -1,3 +0,0 @@ -# @avalanche-sdk/webhooks SDK Environment Variables -# Copy this file to .env and fill in your actual values -# DO NOT commit the .env file to version control diff --git a/webhooks/examples/README.md b/webhooks/examples/README.md deleted file mode 100644 index 998bb93d..00000000 --- a/webhooks/examples/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# @avalanche-sdk/webhooks Examples - -This directory contains example scripts demonstrating how to use the @avalanche-sdk/webhooks SDK. - -## Prerequisites - -- Node.js (v18 or higher) -- npm - -## Setup - -1. Copy `.env.template` to `.env`: - ```bash - cp .env.template .env - ``` - -2. Edit `.env` and add your actual credentials - -## Running the Examples - -To run an example file from the examples directory: - -```bash -npm run build && npx tsx example.ts -``` - -## Creating new examples - -Duplicate an existing example file, they won't be overwritten by the generation process. - - diff --git a/webhooks/examples/package-lock.json b/webhooks/examples/package-lock.json deleted file mode 100644 index 62f206fb..00000000 --- a/webhooks/examples/package-lock.json +++ /dev/null @@ -1,630 +0,0 @@ -{ - "name": "@avalanche-sdk/webhooks-examples", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/webhooks-examples", - "version": "1.0.0", - "dependencies": { - "@avalanche-sdk/webhooks": "file:.." - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - } - }, - "..": { - "name": "@avalanche-sdk/webhooks", - "version": "0.5.2", - "dependencies": { - "json-canonicalize": "^1.0.6", - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "@types/node": "^22.4.1", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@avalanche-sdk/webhooks": { - "resolved": "..", - "link": true - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", - "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz", - "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", - "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz", - "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", - "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", - "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", - "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", - "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", - "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", - "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", - "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", - "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", - "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", - "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", - "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", - "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", - "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", - "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", - "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", - "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", - "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", - "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", - "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", - "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", - "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", - "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@types/node": { - "version": "20.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.8.tgz", - "integrity": "sha512-HzbgCY53T6bfu4tT7Aq3TvViJyHjLjPNaAS3HOuMc9pw97KHsUtXNX4L+wu59g1WnjsZSko35MbEqnO58rihhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/dotenv": { - "version": "16.6.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", - "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, - "node_modules/esbuild": { - "version": "0.25.6", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz", - "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.6", - "@esbuild/android-arm": "0.25.6", - "@esbuild/android-arm64": "0.25.6", - "@esbuild/android-x64": "0.25.6", - "@esbuild/darwin-arm64": "0.25.6", - "@esbuild/darwin-x64": "0.25.6", - "@esbuild/freebsd-arm64": "0.25.6", - "@esbuild/freebsd-x64": "0.25.6", - "@esbuild/linux-arm": "0.25.6", - "@esbuild/linux-arm64": "0.25.6", - "@esbuild/linux-ia32": "0.25.6", - "@esbuild/linux-loong64": "0.25.6", - "@esbuild/linux-mips64el": "0.25.6", - "@esbuild/linux-ppc64": "0.25.6", - "@esbuild/linux-riscv64": "0.25.6", - "@esbuild/linux-s390x": "0.25.6", - "@esbuild/linux-x64": "0.25.6", - "@esbuild/netbsd-arm64": "0.25.6", - "@esbuild/netbsd-x64": "0.25.6", - "@esbuild/openbsd-arm64": "0.25.6", - "@esbuild/openbsd-x64": "0.25.6", - "@esbuild/openharmony-arm64": "0.25.6", - "@esbuild/sunos-x64": "0.25.6", - "@esbuild/win32-arm64": "0.25.6", - "@esbuild/win32-ia32": "0.25.6", - "@esbuild/win32-x64": "0.25.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-tsconfig": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", - "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/tsx": { - "version": "4.20.3", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz", - "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.25.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - } - } -} diff --git a/webhooks/examples/package.json b/webhooks/examples/package.json deleted file mode 100644 index 3f254fbc..00000000 --- a/webhooks/examples/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@avalanche-sdk/webhooks-examples", - "version": "1.0.0", - "private": true, - "scripts": { - "build:parent": "cd .. && npm i && npm run build && cd -", - "build:examples": "npm i", - "build": "npm run build:parent && npm run build:examples" - }, - "devDependencies": { - "@types/node": "^20.0.0", - "dotenv": "^16.4.5", - "tsx": "^4.19.2" - }, - "dependencies": { - "@avalanche-sdk/webhooks": "file:.." - } -} \ No newline at end of file diff --git a/webhooks/examples/webhooksCreate.example.ts b/webhooks/examples/webhooksCreate.example.ts deleted file mode 100644 index c7e31f84..00000000 --- a/webhooks/examples/webhooksCreate.example.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import dotenv from "dotenv"; -dotenv.config(); -/** - * Example usage of the @avalanche-sdk/webhooks SDK - * - * To run this example from the examples directory: - * npm run build && npx tsx webhooksCreate.ts - */ - -import { Avalanche } from "@avalanche-sdk/webhooks"; - -const avalanche = new Avalanche(); - -async function main() { - const result = await avalanche.create({ - eventType: "address_activity", - url: "https://sophisticated-exterior.org/", - chainId: "", - metadata: { - eventSignatures: [ - "0x61cbb2a3dee0b6064c2e681aadd61677fb4ef319f0b547508d495626f5a62f64", - ], - addresses: [ - "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", - ], - }, - }); - - console.log(result); -} - -main().catch(console.error); diff --git a/webhooks/jsr.json b/webhooks/jsr.json deleted file mode 100644 index 1f650d4f..00000000 --- a/webhooks/jsr.json +++ /dev/null @@ -1,28 +0,0 @@ - - -{ - "name": "@avalanche-sdk/webhooks", - "version": "0.1.0", - "exports": { - ".": "./src/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./lib/config": "./src/lib/config.ts", - "./lib/http": "./src/lib/http.ts", - "./lib/retries": "./src/lib/retries.ts", - "./lib/sdks": "./src/lib/sdks.ts", - "./types": "./src/types/index.ts", - "./utils": "./src/utils/index.ts" - }, - "publish": { - "include": [ - "LICENSE", - "README.md", - "RUNTIMES.md", - "USAGE.md", - "jsr.json", - "src/**/*.ts" - ] - } -} diff --git a/webhooks/overlays/overlay.yaml b/webhooks/overlays/overlay.yaml deleted file mode 100644 index dcb003dc..00000000 --- a/webhooks/overlays/overlay.yaml +++ /dev/null @@ -1,22 +0,0 @@ -overlay: 1.0.0 -info: - title: Overlay to keep specific webhook routes - version: 1.0.0 -actions: - - target: $.paths['/v1/health-check'].get - description: Keep the /v1/health-check GET endpoint in the OpenAPI spec - update: - x-speakeasy-group: 'webhooks' - x-speakeasy-name-override: 'healthCheck' - - target: $.paths.*.*[?(! (@['x-speakeasy-group'] == 'webhooks' || @['x-speakeasy-group'] == 'webhooks.addresses') )] - description: Remove all paths that are not part of the webhooks group - remove: true - - target: $.paths['/v1/webhooks'].post - description: Keep the /v1/webhooks POST endpoint in usage example of root readme - update: - x-speakeasy-usage-example: true - - target: $.info - description: Add a description to the OpenAPI spec - update: - description: Webhooks API enables real-time monitoring of on-chain events across the Avalanche C-chain, subnets, and L1 networks. It provides instant notifications for activities like smart contract events, NFT transfers, and wallet transactions. Developers can customize filters to track specific events and verify notifications using shared secrets for security - title: Webhooks API \ No newline at end of file diff --git a/webhooks/package-lock.json b/webhooks/package-lock.json deleted file mode 100644 index 963d9ef2..00000000 --- a/webhooks/package-lock.json +++ /dev/null @@ -1,6445 +0,0 @@ -{ - "name": "@avalanche-sdk/webhooks", - "version": "0.5.2", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@avalanche-sdk/webhooks", - "version": "0.5.2", - "dependencies": { - "json-canonicalize": "^1.0.6", - "zod": "^3.20.0" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "@types/node": "^22.4.1", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", - "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "dependencies": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "dependencies": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "dependencies": { - "mime-db": "^1.53.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "dependencies": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/send/node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "cpu": [ - "aarch64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "node_modules/@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "node_modules/@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "node_modules/@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "dependencies": { - "undici-types": "~6.20.0" - } - }, - "node_modules/@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "node_modules/@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/body-parser/node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "cpu": [ - "arm64", - "x64", - "aarch64" - ], - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "os": [ - "darwin", - "linux", - "win32" - ], - "bin": { - "bun": "bin/bun.exe", - "bunx": "bin/bunx.exe" - }, - "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "node_modules/bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "dependencies": { - "eventsource-parser": "^3.0.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": "^4.11 || 5 || ^5.0.0-beta.1" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-canonicalize": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/json-canonicalize/-/json-canonicalize-1.0.6.tgz", - "integrity": "sha512-kP2iYpOS5SZHYhIaR1t9oG80d4uTY3jPoaBj+nimy3njtJk8+sRsVatN8pyJRDRtk9Su3+6XqA2U8k0dByJBUQ==" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.6" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "dependencies": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - }, - "engines": { - "node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "dependencies": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/router/node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, - "engines": { - "node": ">=16" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/send/node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "dependencies": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - }, - "bin": { - "sync-content": "dist/mjs/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "dependencies": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "bin": { - "tshy": "dist/esm/index.js" - }, - "engines": { - "node": "16 >=16.17 || 18 >=18.15.0 || >=20.6.1" - } - }, - "node_modules/tshy/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/tshy/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true, - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/tshy/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "3.25.67", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", - "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-to-json-schema": { - "version": "3.24.4", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.4.tgz", - "integrity": "sha512-0uNlcvgabyrni9Ag8Vghj21drk7+7tp7VTwwR7KxxXXc/3pbXz2PHlDgj3cICahgF1kHm4dExBFj7BXrZJXzig==", - "dev": true, - "peerDependencies": { - "zod": "^3.24.1" - } - } - }, - "dependencies": { - "@eslint-community/eslint-utils": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", - "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.4.3" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - } - } - }, - "@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true - }, - "@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "requires": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - } - }, - "@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true - }, - "@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.15" - } - }, - "@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true - } - } - }, - "@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true - }, - "@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true - }, - "@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "requires": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - } - }, - "@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true - }, - "@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "requires": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "dependencies": { - "@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true - } - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - } - }, - "@modelcontextprotocol/sdk": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", - "integrity": "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "cors": "^2.8.5", - "eventsource": "^3.0.2", - "express": "^5.0.1", - "express-rate-limit": "^7.5.0", - "pkce-challenge": "^4.1.0", - "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" - }, - "dependencies": { - "accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, - "requires": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - } - }, - "body-parser": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", - "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, - "requires": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.5.2", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "dependencies": { - "qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "requires": { - "side-channel": "^1.1.0" - } - } - } - }, - "content-disposition": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true - }, - "express": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", - "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, - "requires": { - "accepts": "^2.0.0", - "body-parser": "^2.0.1", - "content-disposition": "^1.0.0", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "^1.2.1", - "debug": "4.3.6", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "^2.0.0", - "fresh": "2.0.0", - "http-errors": "2.0.0", - "merge-descriptors": "^2.0.0", - "methods": "~1.1.2", - "mime-types": "^3.0.0", - "on-finished": "2.4.1", - "once": "1.4.0", - "parseurl": "~1.3.3", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "router": "^2.0.0", - "safe-buffer": "5.2.1", - "send": "^1.1.0", - "serve-static": "^2.1.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "^2.0.0", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "finalhandler": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", - "dev": true, - "requires": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - } - }, - "fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true - }, - "iconv-lite": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", - "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true - }, - "merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true - }, - "mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "dev": true - }, - "mime-types": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", - "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, - "requires": { - "mime-db": "^1.53.0" - } - }, - "negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true - }, - "send": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", - "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, - "requires": { - "debug": "^4.3.5", - "destroy": "^1.2.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^0.5.2", - "http-errors": "^2.0.0", - "mime-types": "^2.1.35", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "dependencies": { - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - } - } - }, - "serve-static": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", - "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, - "requires": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.0.0" - } - }, - "type-is": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", - "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, - "requires": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - } - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@oven/bun-darwin-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz", - "integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz", - "integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==", - "dev": true, - "optional": true - }, - "@oven/bun-darwin-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz", - "integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz", - "integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-aarch64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz", - "integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz", - "integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz", - "integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz", - "integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==", - "dev": true, - "optional": true - }, - "@oven/bun-linux-x64-musl-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz", - "integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz", - "integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==", - "dev": true, - "optional": true - }, - "@oven/bun-windows-x64-baseline": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz", - "integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==", - "dev": true, - "optional": true - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true - }, - "@stricli/core": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@stricli/core/-/core-1.1.1.tgz", - "integrity": "sha512-pobySbkEtm1x/Kx42EqS9pDi/7ewSfIV3l6P7pPLp1b2ehWyIqfNoLKdWb9nrwnhwrfYwYaCGQMWZgWcgj4UFg==", - "dev": true - }, - "@types/body-parser": { - "version": "1.19.5", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", - "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", - "dev": true, - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "@types/express": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", - "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", - "dev": true, - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.19.6", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", - "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", - "dev": true, - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "@types/http-errors": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", - "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "dev": true - }, - "@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "requires": { - "undici-types": "~6.20.0" - } - }, - "@types/qs": { - "version": "6.9.18", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", - "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", - "dev": true - }, - "@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "dev": true - }, - "@types/send": { - "version": "0.17.4", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", - "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", - "dev": true, - "requires": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "@types/serve-static": { - "version": "1.15.7", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", - "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", - "dev": true, - "requires": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "@typescript-eslint/eslint-plugin": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", - "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/type-utils": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/parser": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", - "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", - "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1" - } - }, - "@typescript-eslint/type-utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", - "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "8.26.1", - "@typescript-eslint/utils": "8.26.1", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/types": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", - "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", - "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/visitor-keys": "8.26.1", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "@typescript-eslint/utils": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", - "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.26.1", - "@typescript-eslint/types": "8.26.1", - "@typescript-eslint/typescript-estree": "8.26.1" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", - "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.26.1", - "eslint-visitor-keys": "^4.2.0" - } - }, - "accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "requires": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - } - }, - "acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true - }, - "body-parser": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", - "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.13.0", - "raw-body": "2.5.2", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "bun": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz", - "integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==", - "dev": true, - "requires": { - "@oven/bun-darwin-aarch64": "1.2.17", - "@oven/bun-darwin-x64": "1.2.17", - "@oven/bun-darwin-x64-baseline": "1.2.17", - "@oven/bun-linux-aarch64": "1.2.17", - "@oven/bun-linux-aarch64-musl": "1.2.17", - "@oven/bun-linux-x64": "1.2.17", - "@oven/bun-linux-x64-baseline": "1.2.17", - "@oven/bun-linux-x64-musl": "1.2.17", - "@oven/bun-linux-x64-musl-baseline": "1.2.17", - "@oven/bun-windows-x64": "1.2.17", - "@oven/bun-windows-x64-baseline": "1.2.17" - } - }, - "bun-types": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz", - "integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "requires": { - "safe-buffer": "5.2.1" - } - }, - "content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true - }, - "cookie": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", - "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true - }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true - }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "requires": { - "ms": "^2.1.3" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true - }, - "destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0" - } - }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - } - }, - "eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true - }, - "espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "requires": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - } - }, - "esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true - }, - "eventsource": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", - "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, - "requires": { - "eventsource-parser": "^3.0.0" - } - }, - "eventsource-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", - "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true - }, - "express": { - "version": "4.21.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", - "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, - "requires": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "1.20.3", - "content-disposition": "0.5.4", - "content-type": "~1.0.4", - "cookie": "0.7.1", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "1.3.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.12", - "proxy-addr": "~2.0.7", - "qs": "6.13.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.19.0", - "serve-static": "1.16.2", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "express-rate-limit": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", - "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, - "requires": {} - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "requires": { - "flat-cache": "^4.0.0" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "finalhandler": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", - "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, - "requires": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "2.4.1", - "parseurl": "~1.3.3", - "statuses": "2.0.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "requires": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - } - }, - "flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - } - }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true - }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "15.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", - "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", - "dev": true - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "requires": { - "function-bind": "^1.1.2" - } - }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - } - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "json-canonicalize": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/json-canonicalize/-/json-canonicalize-1.0.6.tgz", - "integrity": "sha512-kP2iYpOS5SZHYhIaR1t9oG80d4uTY3jPoaBj+nimy3njtJk8+sRsVatN8pyJRDRtk9Su3+6XqA2U8k0dByJBUQ==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "requires": { - "json-buffer": "3.0.1" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true - }, - "merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true - }, - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true - }, - "object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true - }, - "on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "requires": { - "ee-first": "1.1.1" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - } - }, - "path-to-regexp": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", - "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pkce-challenge": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", - "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true - }, - "polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - } - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, - "requires": { - "side-channel": "^1.0.6" - } - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true - }, - "raw-body": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "resolve-import": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-1.4.6.tgz", - "integrity": "sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==", - "dev": true, - "requires": { - "glob": "^10.3.3", - "walk-up-path": "^3.0.1" - } - }, - "reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true - }, - "rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "requires": { - "glob": "^10.3.7" - } - }, - "router": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", - "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, - "requires": { - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "dependencies": { - "path-to-regexp": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true - } - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true - }, - "send": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", - "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, - "requires": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "2.0.0", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", - "range-parser": "~1.2.1", - "statuses": "2.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true - } - } - }, - "serve-static": { - "version": "1.16.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", - "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, - "requires": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.19.0" - } - }, - "setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - } - }, - "side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - } - }, - "side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - } - }, - "side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - } - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - } - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "sync-content": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-1.0.2.tgz", - "integrity": "sha512-znd3rYiiSxU3WteWyS9a6FXkTA/Wjk8WQsOyzHbineeL837dLn3DA4MRhsIX3qGcxDMH6+uuFV4axztssk7wEQ==", - "dev": true, - "requires": { - "glob": "^10.2.6", - "mkdirp": "^3.0.1", - "path-scurry": "^1.9.2", - "rimraf": "^5.0.1" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true - }, - "ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "requires": {} - }, - "tshy": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-2.0.1.tgz", - "integrity": "sha512-U5fC+3pMaGfmULhPTVpxKMd62AcX13yfsFrjhAP/daTLG6LFRLIuxqYOmkejJ4MT/s5bEa29+1Jy/9mXkMiMfA==", - "dev": true, - "requires": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^1.4.5", - "rimraf": "^5.0.1", - "sync-content": "^1.0.2", - "typescript": "5", - "walk-up-path": "^3.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - } - }, - "typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true - }, - "typescript-eslint": { - "version": "8.26.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", - "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", - "dev": true, - "requires": { - "@typescript-eslint/eslint-plugin": "8.26.1", - "@typescript-eslint/parser": "8.26.1", - "@typescript-eslint/utils": "8.26.1" - } - }, - "undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true - }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true - }, - "walk-up-path": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", - "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - }, - "zod": { - "version": "3.25.67", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", - "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==" - }, - "zod-to-json-schema": { - "version": "3.24.4", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.4.tgz", - "integrity": "sha512-0uNlcvgabyrni9Ag8Vghj21drk7+7tp7VTwwR7KxxXXc/3pbXz2PHlDgj3cICahgF1kHm4dExBFj7BXrZJXzig==", - "dev": true, - "requires": {} - } - } -} diff --git a/webhooks/package.json b/webhooks/package.json deleted file mode 100644 index 36e71bd2..00000000 --- a/webhooks/package.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "name": "@avalanche-sdk/webhooks", - "version": "0.5.2", - "author": "Avacloud", - "license": "BSD-3-Clause", - "type": "module", - "bin": { - "mcp": "bin/mcp-server.js" - }, - "tshy": { - "sourceDialects": [ - "@avalanche-sdk/webhooks/source" - ], - "exports": { - ".": "./src/index.ts", - "./package.json": "./package.json", - "./types": "./src/types/index.ts", - "./models/errors": "./src/models/errors/index.ts", - "./models/components": "./src/models/components/index.ts", - "./models/operations": "./src/models/operations/index.ts", - "./*.js": "./src/*.ts", - "./*": "./src/*.ts" - } - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "https://github.com/ava-labs/avalanche-sdk-typescript.git", - "directory": "webhooks" - }, - "scripts": { - "lint": "eslint --cache --max-warnings=0 src", - "build:mcp": "bun src/mcp-server/build.mts", - "build": "npm run build:mcp && tshy", - "prepublishOnly": "npm run build" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "@stricli/core": "^1.1.1", - "@types/express": "^4.17.21", - "@types/node": "^22.4.1", - "bun": "1.2.17", - "bun-types": "1.2.17", - "eslint": "^9.19.0", - "express": "^4.21.2", - "globals": "^15.14.0", - "tshy": "^2.0.0", - "typescript": "~5.8.3", - "typescript-eslint": "^8.26.0" - }, - "dependencies": { - "json-canonicalize": "^1.0.6", - "zod": "^3.20.0" - }, - "exports": { - ".": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/index.ts", - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" - } - }, - "./package.json": "./package.json", - "./types": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/types/index.ts", - "types": "./dist/esm/types/index.d.ts", - "default": "./dist/esm/types/index.js" - }, - "require": { - "types": "./dist/commonjs/types/index.d.ts", - "default": "./dist/commonjs/types/index.js" - } - }, - "./models/errors": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/models/errors/index.ts", - "types": "./dist/esm/models/errors/index.d.ts", - "default": "./dist/esm/models/errors/index.js" - }, - "require": { - "types": "./dist/commonjs/models/errors/index.d.ts", - "default": "./dist/commonjs/models/errors/index.js" - } - }, - "./models/components": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/models/components/index.ts", - "types": "./dist/esm/models/components/index.d.ts", - "default": "./dist/esm/models/components/index.js" - }, - "require": { - "types": "./dist/commonjs/models/components/index.d.ts", - "default": "./dist/commonjs/models/components/index.js" - } - }, - "./models/operations": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/models/operations/index.ts", - "types": "./dist/esm/models/operations/index.d.ts", - "default": "./dist/esm/models/operations/index.js" - }, - "require": { - "types": "./dist/commonjs/models/operations/index.d.ts", - "default": "./dist/commonjs/models/operations/index.js" - } - }, - "./*.js": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - }, - "./*": { - "import": { - "@avalanche-sdk/webhooks/source": "./src/*.ts", - "types": "./dist/esm/*.d.ts", - "default": "./dist/esm/*.js" - }, - "require": { - "types": "./dist/commonjs/*.d.ts", - "default": "./dist/commonjs/*.js" - } - } - }, - "main": "./dist/commonjs/index.js", - "types": "./dist/commonjs/index.d.ts", - "module": "./dist/esm/index.js" -} diff --git a/webhooks/speakeasyusagegen/.speakeasy/logs/naming.log b/webhooks/speakeasyusagegen/.speakeasy/logs/naming.log deleted file mode 100644 index 63c6b4e4..00000000 --- a/webhooks/speakeasyusagegen/.speakeasy/logs/naming.log +++ /dev/null @@ -1,178 +0,0 @@ -DEBUG append_error: Renamed component to "BadRequest_error" - labels: "original_name:BadRequest scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadRequest component:true originalName:BadRequest" -DEBUG append_error: Renamed component to "Unauthorized_error" - labels: "original_name:Unauthorized scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Unauthorized component:true originalName:Unauthorized" -DEBUG append_error: Renamed component to "Forbidden_error" - labels: "original_name:Forbidden scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Forbidden component:true originalName:Forbidden" -DEBUG append_error: Renamed component to "NotFound_error" - labels: "original_name:NotFound scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:NotFound component:true originalName:NotFound" -DEBUG append_error: Renamed component to "TooManyRequests_error" - labels: "original_name:TooManyRequests scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests component:true originalName:TooManyRequests" -DEBUG append_error: Renamed component to "BadGateway_error" - labels: "original_name:BadGateway scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadGateway component:true originalName:BadGateway" -DEBUG append_error: Renamed component to "ServiceUnavailable_error" - labels: "original_name:ServiceUnavailable scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable component:true originalName:ServiceUnavailable" -DEBUG prepend_op_id: Renamed to "createWebhook_request" - labels: "original_name:request operation:createWebhook operationTag:webhooks data_type:union" - registrationID: "scope:operations operationTag:webhooks operation:createWebhook requestResponse:request originalName:RequestBody" -DEBUG - ---- Renaming 2 types with name "status" --- -DEBUG discriminated: Renamed to "HealthCheckResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthCheckResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthCheckResultDto originalName:status" -DEBUG discriminated: Renamed to "HealthIndicatorResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthIndicatorResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthIndicatorResultDto originalName:status" -DEBUG - ---- Renaming 4 types with name "eventType" --- -DEBUG discriminated: Renamed to "EVMAddressActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:EVMAddressActivityRequest constProperty:AddressActivity" - registrationID: "scope:shared refType:Schemas refName:EVMAddressActivityRequest constProperty:address_activity originalName:eventType" -DEBUG discriminated: Renamed to "PrimaryNetworkAddressActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:PrimaryNetworkAddressActivityRequest constProperty:PrimaryNetworkAddressActivity" - registrationID: "scope:shared refType:Schemas refName:PrimaryNetworkAddressActivityRequest constProperty:primary_network_address_activity originalName:eventType" -DEBUG discriminated: Renamed to "ValidatorActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:ValidatorActivityRequest constProperty:ValidatorActivity" - registrationID: "scope:shared refType:Schemas refName:ValidatorActivityRequest constProperty:validator_activity originalName:eventType" -DEBUG discriminated: Renamed to "WebhookAddressActivityResponse_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:WebhookAddressActivityResponse constProperty:AddressActivity" - registrationID: "scope:shared refType:Schemas refName:WebhookAddressActivityResponse constProperty:address_activity originalName:eventType" -DEBUG - ---- Renaming 3 types with name "metadata" --- -DEBUG discriminated: Renamed to "EVMAddressActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:EVMAddressActivityRequest" - registrationID: "scope:shared refType:Schemas refName:EVMAddressActivityRequest originalName:metadata" -DEBUG discriminated: Renamed to "PrimaryNetworkAddressActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:PrimaryNetworkAddressActivityRequest" - registrationID: "scope:shared refType:Schemas refName:PrimaryNetworkAddressActivityRequest originalName:metadata" -DEBUG discriminated: Renamed to "ValidatorActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:ValidatorActivityRequest" - registrationID: "scope:shared refType:Schemas refName:ValidatorActivityRequest originalName:metadata" -DEBUG - ---- Renaming 8 types with name "message" --- -DEBUG discriminated: Renamed to "BadRequest_message" - labels: "original_name:message scope:errors data_type:union refName:BadRequest" - registrationID: "scope:errors refType:Schemas refName:BadRequest originalName:message" -DEBUG discriminated: Renamed to "Unauthorized_message" - labels: "original_name:message scope:errors data_type:union refName:Unauthorized" - registrationID: "scope:errors refType:Schemas refName:Unauthorized originalName:message" -DEBUG discriminated: Renamed to "Forbidden_message" - labels: "original_name:message scope:errors data_type:union refName:Forbidden" - registrationID: "scope:errors refType:Schemas refName:Forbidden originalName:message" -DEBUG discriminated: Renamed to "NotFound_message" - labels: "original_name:message scope:errors data_type:union refName:NotFound" - registrationID: "scope:errors refType:Schemas refName:NotFound originalName:message" -DEBUG discriminated: Renamed to "TooManyRequests_message" - labels: "original_name:message scope:errors data_type:union refName:TooManyRequests" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests originalName:message" -DEBUG discriminated: Renamed to "InternalServerError_message" - labels: "original_name:message scope:errors data_type:union refName:InternalServerError" - registrationID: "scope:errors refType:Schemas refName:InternalServerError originalName:message" -DEBUG discriminated: Renamed to "BadGateway_message" - labels: "original_name:message scope:errors data_type:union refName:BadGateway" - registrationID: "scope:errors refType:Schemas refName:BadGateway originalName:message" -DEBUG discriminated: Renamed to "ServiceUnavailable_message" - labels: "original_name:message scope:errors data_type:union refName:ServiceUnavailable" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable originalName:message" -DEBUG prepend_op_id: N/A rename "createWebhook_request" - labels: "original_name:request operation:createWebhook operationTag:webhooks data_type:union" - registrationID: "scope:operations operationTag:webhooks operation:createWebhook requestResponse:request originalName:RequestBody" -DEBUG - -Avalanche (SDK empty) -Webhooks (SDK empty) -Addresses (SDK empty) -AddAddressesToWebhookRequest (id: string, AddressesChangeRequest: AddressesChangeRequest) - AddressesChangeRequest (addresses: array) -EvmAddressActivityResponse (id: string, url: string, chainId: string ...) - WebhookStatusType (enum: active, inactive) - AddressActivityEventType (enum: address_activity) - AddressActivityMetadata (eventSignatures: array, addresses: array) -BadRequestError (error) - BadRequestMessage (union) -UnauthorizedError (error) - UnauthorizedMessage (union) -ForbiddenError (error) - ForbiddenMessage (union) -NotFoundError (error) - NotFoundMessage (union) -TooManyRequestsError (error) - TooManyRequestsMessage (union) -InternalServerError (error) - InternalServerErrorMessage (union) -BadGatewayError (error) - BadGatewayMessage (union) -ServiceUnavailableError (error) - ServiceUnavailableMessage (union) -Security (apiKey: string) -RemoveAddressesFromWebhookRequest (id: string, AddressesChangeRequest: AddressesChangeRequest) -GetAddressesFromWebhookRequest (pageToken: string, pageSize: integer, id: string) -GetAddressesFromWebhookResponse (Result: ListWebhookAddressesResponse) - ListWebhookAddressesResponse (nextPageToken: string, addresses: array, totalAddresses: number) -HealthCheckResultDto (status: enum, info: map, error: map ...) - HealthCheckResultDtoStatus (enum: error, ok, shutting_down) - HealthIndicatorResultDto (status: enum) - HealthIndicatorResultDtoStatus (enum: up, down) -CreateWebhookRequest (union) - EvmAddressActivityRequest (eventType: enum, url: string, name: string ...) - EvmAddressActivityRequestEventType (enum: address_activity) - EvmAddressActivityRequestMetadata (union) - PrimaryNetworkAddressActivityRequest (eventType: enum, url: string, name: string ...) - PrimaryNetworkAddressActivityRequestEventType (enum: primary_network_address_activity) - PrimaryNetworkType (enum: mainnet, fuji) - PrimaryNetworkAddressActivityRequestMetadata (union) - PrimaryNetworkAddressActivityMetadata (eventSignatures: array, keyType: PlatformAddressActivityKeyType, keys: array ...) - PlatformAddressActivityKeyType (enum: addresses) - PrimaryNetworkAddressActivitySubEvents (addressActivitySubEvents: array) - PrimaryNetworkAddressActivitySubEventType (enum: balance_change, balance_threshold, reward_distribution) - PrimaryNetworkBalanceThresholdFilter (balanceType: CommonBalanceType, balanceThreshold: string) - CommonBalanceType (enum: unlockedUnstaked, unlockedStaked, lockedPlatform ...) - ValidatorActivityRequest (eventType: enum, url: string, name: string ...) - ValidatorActivityRequestEventType (enum: validator_activity) - ValidatorActivityRequestMetadata (union) - ValidatorActivityMetadata (eventSignatures: array, keyType: ValidatorActivityKeyType, keys: array ...) - ValidatorActivityKeyType (enum: nodeId, subnetId) - ValidatorActivitySubEvents (validatorActivitySubEvents: array) - ValidatorActivitySubEvent (enum: validator_stake, delegator_stake, reward_distribution ...) -CreateWebhookResponse (union) - PrimaryNetworkAddressActivityResponse (id: string, url: string, chainId: string ...) - PrimaryNetworkAddressActivityEventType (enum: primary_network_address_activity) - ValidatorActivityResponse (id: string, url: string, chainId: string ...) - ValidatorActivityEventType (enum: validator_activity) -ListWebhooksRequest (pageToken: string, pageSize: integer, status: WebhookStatus) - WebhookStatus (enum: active, inactive) -ListWebhooksResponse (Result: ListWebhooksResponse) - ListWebhooksResponse (nextPageToken: string, webhooks: array) - Webhook (union) -GetWebhookRequest (id: string) -GetWebhookResponse (union) -DeactivateWebhookRequest (id: string) -DeactivateWebhookResponse (union) -UpdateWebhookRequest (id: string, UpdateWebhookRequest: UpdateWebhookRequest) - UpdateWebhookRequest (name: string, description: string, url: string ...) -UpdateWebhookResponse (union) -SharedSecretsResponse (secret: string) -WebhookAddressActivityResponse (webhookId: string, eventType: enum, messageId: string ...) - WebhookAddressActivityResponseEventType (enum: address_activity) - TransactionEvent (transaction: Transaction, logs: array) - Transaction (blockHash: string, blockNumber: string, from: string ...) - ErcTransfer (transactionHash: string, type: string, from: string ...) - ErcToken (address: string, name: string, symbol: string ...) - WebhookInternalTransaction (from: string, to: string, internalTxType: string ...) - AccessListData (accessAddresses: string, storageKeys: array) - NetworkTokenInfo (tokenName: string, tokenSymbol: string, tokenDecimals: number ...) - Log (address: string, topic0: string, topic1: string ...) -Globals (chainId: string, network: GlobalParamNetwork) - GlobalParamNetwork (enum: mainnet, fuji, testnet) - diff --git a/webhooks/src/core.ts b/webhooks/src/core.ts deleted file mode 100644 index 413ea3f4..00000000 --- a/webhooks/src/core.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "./lib/sdks.js"; - -/** - * A minimal client to use when calling standalone SDK functions. Typically, an - * instance of this class would be instantiated once at the start of an - * application and passed around through some dependency injection mechanism to - * parts of an application that need to make SDK calls. - */ -export class AvalancheCore extends ClientSDK {} diff --git a/webhooks/src/funcs/webhooksAddressesAdd.ts b/webhooks/src/funcs/webhooksAddressesAdd.ts deleted file mode 100644 index 7915f6ab..00000000 --- a/webhooks/src/funcs/webhooksAddressesAdd.ts +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Add addresses to EVM activity webhook - * - * @remarks - * Add addresses to webhook. Only valid for EVM activity webhooks. - */ -export function webhooksAddressesAdd( - client: AvalancheCore, - request: operations.AddAddressesToWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.AddAddressesToWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.AddAddressesToWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.AddressesChangeRequest, { - explode: true, - }); - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}/addresses")(pathParams); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "addAddressesToWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "PATCH", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.EVMAddressActivityResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksAddressesList.ts b/webhooks/src/funcs/webhooksAddressesList.ts deleted file mode 100644 index bbc8c6f6..00000000 --- a/webhooks/src/funcs/webhooksAddressesList.ts +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List adresses by EVM activity webhooks - * - * @remarks - * List adresses by webhook. Only valid for EVM activity webhooks. - */ -export function webhooksAddressesList( - client: AvalancheCore, - request: operations.GetAddressesFromWebhookRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.GetAddressesFromWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetAddressesFromWebhookRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.GetAddressesFromWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.GetAddressesFromWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}/addresses")(pathParams); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getAddressesFromWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.GetAddressesFromWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetAddressesFromWebhookResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.GetAddressesFromWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - webhooksAddressesList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/webhooks/src/funcs/webhooksAddressesRemove.ts b/webhooks/src/funcs/webhooksAddressesRemove.ts deleted file mode 100644 index a599290b..00000000 --- a/webhooks/src/funcs/webhooksAddressesRemove.ts +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Remove addresses from EVM activity webhook - * - * @remarks - * Remove addresses from webhook. Only valid for EVM activity webhooks. - */ -export function webhooksAddressesRemove( - client: AvalancheCore, - request: operations.RemoveAddressesFromWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.RemoveAddressesFromWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => - operations.RemoveAddressesFromWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.AddressesChangeRequest, { - explode: true, - }); - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}/addresses")(pathParams); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "removeAddressesFromWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "DELETE", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.EVMAddressActivityResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.EVMAddressActivityResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksCreate.ts b/webhooks/src/funcs/webhooksCreate.ts deleted file mode 100644 index 2103072f..00000000 --- a/webhooks/src/funcs/webhooksCreate.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Create a webhook - * - * @remarks - * Create a new webhook. - */ -export function webhooksCreate( - client: AvalancheCore, - request: operations.CreateWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.CreateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.CreateWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.CreateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.CreateWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload, { explode: true }); - - const path = pathToFunc("/v1/webhooks")(); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "createWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.CreateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(201, operations.CreateWebhookResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksDeactivate.ts b/webhooks/src/funcs/webhooksDeactivate.ts deleted file mode 100644 index 09e96fa9..00000000 --- a/webhooks/src/funcs/webhooksDeactivate.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Deactivate a webhook - * - * @remarks - * Deactivates a webhook by ID. - */ -export function webhooksDeactivate( - client: AvalancheCore, - request: operations.DeactivateWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.DeactivateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.DeactivateWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.DeactivateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.DeactivateWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "deactivateWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "DELETE", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.DeactivateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.DeactivateWebhookResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksGenerateOrRotateSharedSecret.ts b/webhooks/src/funcs/webhooksGenerateOrRotateSharedSecret.ts deleted file mode 100644 index 1ce4a1c7..00000000 --- a/webhooks/src/funcs/webhooksGenerateOrRotateSharedSecret.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Generate or rotate a shared secret - * - * @remarks - * Generates a new shared secret or rotate an existing one. - */ -export function webhooksGenerateOrRotateSharedSecret( - client: AvalancheCore, - options?: RequestOptions, -): APIPromise< - Result< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - options, - )); -} - -async function $do( - client: AvalancheCore, - options?: RequestOptions, -): Promise< - [ - Result< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const path = pathToFunc("/v1/webhooks:generateOrRotateSharedSecret")(); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "generateOrRotateSharedSecret", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(201, components.SharedSecretsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksGet.ts b/webhooks/src/funcs/webhooksGet.ts deleted file mode 100644 index f909149a..00000000 --- a/webhooks/src/funcs/webhooksGet.ts +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get a webhook by ID - * - * @remarks - * Retrieves a webhook by ID. - */ -export function webhooksGet( - client: AvalancheCore, - request: operations.GetWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.GetWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.GetWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.GetWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.GetWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.GetWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.GetWebhookResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksGetSharedSecret.ts b/webhooks/src/funcs/webhooksGetSharedSecret.ts deleted file mode 100644 index 15aed73b..00000000 --- a/webhooks/src/funcs/webhooksGetSharedSecret.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get a shared secret - * - * @remarks - * Get a previously generated shared secret. - */ -export function webhooksGetSharedSecret( - client: AvalancheCore, - options?: RequestOptions, -): APIPromise< - Result< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - options, - )); -} - -async function $do( - client: AvalancheCore, - options?: RequestOptions, -): Promise< - [ - Result< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const path = pathToFunc("/v1/webhooks:getSharedSecret")(); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "getSharedSecret", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.SharedSecretsResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.SharedSecretsResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksHealthCheck.ts b/webhooks/src/funcs/webhooksHealthCheck.ts deleted file mode 100644 index e66b1654..00000000 --- a/webhooks/src/funcs/webhooksHealthCheck.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ -export function webhooksHealthCheck( - client: AvalancheCore, - options?: RequestOptions, -): APIPromise< - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - options, - )); -} - -async function $do( - client: AvalancheCore, - options?: RequestOptions, -): Promise< - [ - Result< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const path = pathToFunc("/v1/health-check")(); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "data-health-check", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.HealthCheckResultDto, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, components.HealthCheckResultDto$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/funcs/webhooksList.ts b/webhooks/src/funcs/webhooksList.ts deleted file mode 100644 index 85fedbdf..00000000 --- a/webhooks/src/funcs/webhooksList.ts +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { dlv } from "../lib/dlv.js"; -import { encodeFormQuery } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; -import { - createPageIterator, - haltIterator, - PageIterator, - Paginator, -} from "../types/operations.js"; - -/** - * List webhooks - * - * @remarks - * Lists webhooks for the user. - */ -export function webhooksList( - client: AvalancheCore, - request: operations.ListWebhooksRequest, - options?: RequestOptions, -): APIPromise< - PageIterator< - Result< - operations.ListWebhooksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.ListWebhooksRequest, - options?: RequestOptions, -): Promise< - [ - PageIterator< - Result< - operations.ListWebhooksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - { cursor: string } - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.ListWebhooksRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [haltIterator(parsed), { status: "invalid" }]; - } - const payload = parsed.value; - const body = null; - - const path = pathToFunc("/v1/webhooks")(); - - const query = encodeFormQuery({ - "pageSize": payload.pageSize, - "pageToken": payload.pageToken, - "status": payload.status, - }); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "listWebhooks", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - query: query, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [haltIterator(requestRes), { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [haltIterator(doResult), { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result, raw] = await M.match< - operations.ListWebhooksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.ListWebhooksResponse$inboundSchema, { - key: "Result", - }), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [haltIterator(result), { - status: "complete", - request: req, - response, - }]; - } - - const nextFunc = ( - responseData: unknown, - ): { - next: Paginator< - Result< - operations.ListWebhooksResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > - >; - "~next"?: { cursor: string }; - } => { - const nextCursor = dlv(responseData, "nextPageToken"); - if (typeof nextCursor !== "string") { - return { next: () => null }; - } - - const nextVal = () => - webhooksList( - client, - { - ...request, - pageToken: nextCursor, - }, - options, - ); - - return { next: nextVal, "~next": { cursor: nextCursor } }; - }; - - const page = { ...result, ...nextFunc(raw) }; - return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { - status: "complete", - request: req, - response, - }]; -} diff --git a/webhooks/src/funcs/webhooksUpdate.ts b/webhooks/src/funcs/webhooksUpdate.ts deleted file mode 100644 index f5764a61..00000000 --- a/webhooks/src/funcs/webhooksUpdate.ts +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.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 { AvalancheError } from "../models/errors/avalancheerror.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { APICall, APIPromise } from "../types/async.js"; -import { Result } from "../types/fp.js"; - -/** - * Update a webhook - * - * @remarks - * Updates an existing webhook. - */ -export function webhooksUpdate( - client: AvalancheCore, - request: operations.UpdateWebhookRequest, - options?: RequestOptions, -): APIPromise< - Result< - operations.UpdateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - > -> { - return new APIPromise($do( - client, - request, - options, - )); -} - -async function $do( - client: AvalancheCore, - request: operations.UpdateWebhookRequest, - options?: RequestOptions, -): Promise< - [ - Result< - operations.UpdateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >, - APICall, - ] -> { - const parsed = safeParse( - request, - (value) => operations.UpdateWebhookRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return [parsed, { status: "invalid" }]; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.UpdateWebhookRequest, { - explode: true, - }); - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/webhooks/{id}")(pathParams); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - options: client._options, - baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "updateWebhook", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { - strategy: "backoff", - backoff: { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 120000, - }, - retryConnectionErrors: true, - } - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["5XX"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "PATCH", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - userAgent: client._options.userAgent, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return [requestRes, { status: "invalid" }]; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: [ - "400", - "401", - "403", - "404", - "429", - "4XX", - "500", - "502", - "503", - "5XX", - ], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return [doResult, { status: "request-error", request: req }]; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - operations.UpdateWebhookResponse, - | errors.BadRequestError - | errors.UnauthorizedError - | errors.ForbiddenError - | errors.NotFoundError - | errors.TooManyRequestsError - | errors.InternalServerError - | errors.BadGatewayError - | errors.ServiceUnavailableError - | AvalancheError - | ResponseValidationError - | ConnectionError - | RequestAbortedError - | RequestTimeoutError - | InvalidRequestError - | UnexpectedClientError - | SDKValidationError - >( - M.json(200, operations.UpdateWebhookResponse$inboundSchema), - M.jsonErr(400, errors.BadRequestError$inboundSchema), - M.jsonErr(401, errors.UnauthorizedError$inboundSchema), - M.jsonErr(403, errors.ForbiddenError$inboundSchema), - M.jsonErr(404, errors.NotFoundError$inboundSchema), - M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), - M.jsonErr(500, errors.InternalServerError$inboundSchema), - M.jsonErr(502, errors.BadGatewayError$inboundSchema), - M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, req, { extraFields: responseFields }); - if (!result.ok) { - return [result, { status: "complete", request: req, response }]; - } - - return [result, { status: "complete", request: req, response }]; -} diff --git a/webhooks/src/hooks/hooks.ts b/webhooks/src/hooks/hooks.ts deleted file mode 100644 index d34c8849..00000000 --- a/webhooks/src/hooks/hooks.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { RequestInput } from "../lib/http.js"; -import { - AfterErrorContext, - AfterErrorHook, - AfterSuccessContext, - AfterSuccessHook, - BeforeCreateRequestContext, - BeforeCreateRequestHook, - BeforeRequestContext, - BeforeRequestHook, - Hook, - Hooks, - SDKInitHook, - SDKInitOptions, -} from "./types.js"; - -import { initHooks } from "./registration.js"; - -export class SDKHooks implements Hooks { - sdkInitHooks: SDKInitHook[] = []; - beforeCreateRequestHooks: BeforeCreateRequestHook[] = []; - beforeRequestHooks: BeforeRequestHook[] = []; - afterSuccessHooks: AfterSuccessHook[] = []; - afterErrorHooks: AfterErrorHook[] = []; - - constructor() { - const presetHooks: Array = []; - - for (const hook of presetHooks) { - if ("sdkInit" in hook) { - this.registerSDKInitHook(hook); - } - if ("beforeCreateRequest" in hook) { - this.registerBeforeCreateRequestHook(hook); - } - if ("beforeRequest" in hook) { - this.registerBeforeRequestHook(hook); - } - if ("afterSuccess" in hook) { - this.registerAfterSuccessHook(hook); - } - if ("afterError" in hook) { - this.registerAfterErrorHook(hook); - } - } - initHooks(this); - } - - registerSDKInitHook(hook: SDKInitHook) { - this.sdkInitHooks.push(hook); - } - - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook) { - this.beforeCreateRequestHooks.push(hook); - } - - registerBeforeRequestHook(hook: BeforeRequestHook) { - this.beforeRequestHooks.push(hook); - } - - registerAfterSuccessHook(hook: AfterSuccessHook) { - this.afterSuccessHooks.push(hook); - } - - registerAfterErrorHook(hook: AfterErrorHook) { - this.afterErrorHooks.push(hook); - } - - sdkInit(opts: SDKInitOptions): SDKInitOptions { - return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts); - } - - beforeCreateRequest( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ): RequestInput { - let inp = input; - - for (const hook of this.beforeCreateRequestHooks) { - inp = hook.beforeCreateRequest(hookCtx, inp); - } - - return inp; - } - - async beforeRequest( - hookCtx: BeforeRequestContext, - request: Request, - ): Promise { - let req = request; - - for (const hook of this.beforeRequestHooks) { - req = await hook.beforeRequest(hookCtx, req); - } - - return req; - } - - async afterSuccess( - hookCtx: AfterSuccessContext, - response: Response, - ): Promise { - let res = response; - - for (const hook of this.afterSuccessHooks) { - res = await hook.afterSuccess(hookCtx, res); - } - - return res; - } - - async afterError( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ): Promise<{ response: Response | null; error: unknown }> { - let res = response; - let err = error; - - for (const hook of this.afterErrorHooks) { - const result = await hook.afterError(hookCtx, res, err); - res = result.response; - err = result.error; - } - - return { response: res, error: err }; - } -} diff --git a/webhooks/src/hooks/index.ts b/webhooks/src/hooks/index.ts deleted file mode 100644 index f60ec7ac..00000000 --- a/webhooks/src/hooks/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./hooks.js"; -export * from "./types.js"; diff --git a/webhooks/src/hooks/registration.ts b/webhooks/src/hooks/registration.ts deleted file mode 100644 index 70649734..00000000 --- a/webhooks/src/hooks/registration.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Hooks } from "./types.js"; - -/* - * This file is only ever generated once on the first generation and then is free to be modified. - * Any hooks you wish to add should be registered in the initHooks function. Feel free to define them - * in this file or in separate files in the hooks folder. - */ - -// @ts-expect-error remove this line when you add your first hook and hooks is used -export function initHooks(hooks: Hooks) { - // Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook - // with an instance of a hook that implements that specific Hook interface - // Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance -} diff --git a/webhooks/src/hooks/types.ts b/webhooks/src/hooks/types.ts deleted file mode 100644 index ba88232e..00000000 --- a/webhooks/src/hooks/types.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKOptions } from "../lib/config.js"; -import { HTTPClient, RequestInput } from "../lib/http.js"; -import { RetryConfig } from "../lib/retries.js"; -import { SecurityState } from "../lib/security.js"; -import { WebhookRecipient } from "../types/webhooks.js"; - -export type HookContext = { - baseURL: string | URL; - operationID: string; - oAuth2Scopes: string[] | null; - webhookRecipient?: WebhookRecipient; - securitySource?: any | (() => Promise); - retryConfig: RetryConfig; - resolvedSecurity: SecurityState | null; - options: SDKOptions; -}; - -export type Awaitable = T | Promise; - -export type SDKInitOptions = { - baseURL: URL | null; - client: HTTPClient; -}; - -export type BeforeCreateRequestContext = HookContext & {}; -export type BeforeRequestContext = HookContext & {}; -export type AfterSuccessContext = HookContext & {}; -export type AfterErrorContext = HookContext & {}; - -/** - * SDKInitHook is called when the SDK is initializing. The - * hook can return a new baseURL and HTTP client to be used by the SDK. - */ -export interface SDKInitHook { - sdkInit: (opts: SDKInitOptions) => SDKInitOptions; -} - -export interface BeforeCreateRequestHook { - /** - * A hook that is called before the SDK creates a `Request` object. The hook - * can modify how a request is constructed since certain modifications, like - * changing the request URL, cannot be done on a request object directly. - */ - beforeCreateRequest: ( - hookCtx: BeforeCreateRequestContext, - input: RequestInput, - ) => RequestInput; -} - -export interface BeforeRequestHook { - /** - * A hook that is called before the SDK sends a request. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * replace the request before it is sent or throw an error to stop the - * request from being sent. - */ - beforeRequest: ( - hookCtx: BeforeRequestContext, - request: Request, - ) => Awaitable; -} - -export interface AfterSuccessHook { - /** - * A hook that is called after the SDK receives a response. The hook can - * introduce instrumentation code such as logging, tracing and metrics or - * modify the response before it is handled or throw an error to stop the - * response from being handled. - */ - afterSuccess: ( - hookCtx: AfterSuccessContext, - response: Response, - ) => Awaitable; -} - -export interface AfterErrorHook { - /** - * A hook that is called after the SDK encounters an error, or a - * non-successful response. The hook can introduce instrumentation code such - * as logging, tracing and metrics or modify the response or error values. - */ - afterError: ( - hookCtx: AfterErrorContext, - response: Response | null, - error: unknown, - ) => Awaitable<{ - response: Response | null; - error: unknown; - }>; -} - -export interface Hooks { - /** Registers a hook to be used by the SDK for initialization event. */ - registerSDKInitHook(hook: SDKInitHook): void; - /** Registers a hook to be used by the SDK for to modify `Request` construction. */ - registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void; - /** Registers a hook to be used by the SDK for the before request event. */ - registerBeforeRequestHook(hook: BeforeRequestHook): void; - /** Registers a hook to be used by the SDK for the after success event. */ - registerAfterSuccessHook(hook: AfterSuccessHook): void; - /** Registers a hook to be used by the SDK for the after error event. */ - registerAfterErrorHook(hook: AfterErrorHook): void; -} - -export type Hook = - | SDKInitHook - | BeforeCreateRequestHook - | BeforeRequestHook - | AfterSuccessHook - | AfterErrorHook; diff --git a/webhooks/src/index.extras.ts b/webhooks/src/index.extras.ts deleted file mode 100644 index 44e5b271..00000000 --- a/webhooks/src/index.extras.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./utils/index.js"; \ No newline at end of file diff --git a/webhooks/src/index.ts b/webhooks/src/index.ts deleted file mode 100644 index 5836d51d..00000000 --- a/webhooks/src/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./lib/config.js"; -export * as files from "./lib/files.js"; -export { HTTPClient } from "./lib/http.js"; -export type { Fetcher, HTTPClientOptions } from "./lib/http.js"; -export * from "./sdk/sdk.js"; - -export * from "./index.extras.js"; diff --git a/webhooks/src/lib/base64.ts b/webhooks/src/lib/base64.ts deleted file mode 100644 index c2d5b389..00000000 --- a/webhooks/src/lib/base64.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function bytesToBase64(u8arr: Uint8Array): string { - return btoa(String.fromCodePoint(...u8arr)); -} - -export function bytesFromBase64(encoded: string): Uint8Array { - return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0)); -} - -export function stringToBytes(str: string): Uint8Array { - return new TextEncoder().encode(str); -} - -export function stringFromBytes(u8arr: Uint8Array): string { - return new TextDecoder().decode(u8arr); -} - -export function stringToBase64(str: string): string { - return bytesToBase64(stringToBytes(str)); -} - -export function stringFromBase64(b64str: string): string { - return stringFromBytes(bytesFromBase64(b64str)); -} - -export const zodOutbound = z - .instanceof(Uint8Array) - .or(z.string().transform(stringToBytes)); - -export const zodInbound = z - .instanceof(Uint8Array) - .or(z.string().transform(bytesFromBase64)); diff --git a/webhooks/src/lib/config.ts b/webhooks/src/lib/config.ts deleted file mode 100644 index bff2afbc..00000000 --- a/webhooks/src/lib/config.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as components from "../models/components/index.js"; -import { HTTPClient } from "./http.js"; -import { Logger } from "./logger.js"; -import { RetryConfig } from "./retries.js"; -import { Params, pathToFunc } from "./url.js"; - -/** - * Contains the list of servers available to the SDK - */ -export const ServerList = [ - "https://glacier-api.avax.network", -] as const; - -export type SDKOptions = { - apiKey?: string | (() => Promise) | undefined; - - /** - * Allows setting the chainId parameter for all supported operations - */ - chainId?: string | undefined; - - /** - * Allows setting the network parameter for all supported operations - */ - network?: components.GlobalParamNetwork | undefined; - - httpClient?: HTTPClient; - /** - * Allows overriding the default server used by the SDK - */ - serverIdx?: number | undefined; - /** - * Allows overriding the default server URL used by the SDK - */ - serverURL?: string | undefined; - /** - * Allows overriding the default user agent used by the SDK - */ - userAgent?: string | undefined; - /** - * Allows overriding the default retry config used by the SDK - */ - retryConfig?: RetryConfig; - timeoutMs?: number; - debugLogger?: Logger; -}; - -export function serverURLFromOptions(options: SDKOptions): URL | null { - let serverURL = options.serverURL; - - const params: Params = {}; - - if (!serverURL) { - const serverIdx = options.serverIdx ?? 0; - if (serverIdx < 0 || serverIdx >= ServerList.length) { - throw new Error(`Invalid server index ${serverIdx}`); - } - serverURL = ServerList[serverIdx] || ""; - } - - const u = pathToFunc(serverURL)(params); - return new URL(u); -} - -export const SDK_METADATA = { - language: "typescript", - openapiDocVersion: "1.0.0", - sdkVersion: "0.5.2", - genVersion: "2.674.3", - userAgent: - "speakeasy-sdk/typescript 0.5.2 2.674.3 1.0.0 @avalanche-sdk/webhooks", -} as const; diff --git a/webhooks/src/lib/dlv.ts b/webhooks/src/lib/dlv.ts deleted file mode 100644 index e81091f5..00000000 --- a/webhooks/src/lib/dlv.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) 2024 Jason Miller (http://jasonformat.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -/** - * @param obj The object to walk - * @param key The key path to walk the object with - * @param def A default value to return if the result is undefined - * - * @example - * dlv(obj, "a.b.c.d") - * @example - * dlv(object, ["a", "b", "c", "d"]) - * @example - * dlv(object, "foo.bar.baz", "Hello, default value!") - */ -export function dlv( - obj: any, - key: string | string[], - def?: T, - p?: number, - undef?: never, -): T | undefined { - key = Array.isArray(key) ? key : key.split("."); - for (p = 0; p < key.length; p++) { - const k = key[p]; - obj = k != null && obj ? obj[k] : undef; - } - return obj === undef ? def : obj; -} diff --git a/webhooks/src/lib/encodings.ts b/webhooks/src/lib/encodings.ts deleted file mode 100644 index 25c9dcba..00000000 --- a/webhooks/src/lib/encodings.ts +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { bytesToBase64 } from "./base64.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export class EncodingError extends Error { - constructor(message: string) { - super(message); - this.name = "EncodingError"; - } -} - -export function encodeMatrix( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - const keyPrefix = encodeString(pk); - tmp = `${keyPrefix}=${encValue}`; - // trim trailing '=' if value was empty - if (tmp === `${keyPrefix}=`) { - tmp = tmp.slice(0, -1); - } - - // If we end up with the nothing then skip forward - if (!tmp) { - return; - } - - out += `;${tmp}`; - }); - - return out; -} - -export function encodeLabel( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let encValue: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join("."); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `.${encodeString(k)}.${encodeValue(v)}`; - }); - encValue = mapped?.join("").slice(1); - } else { - const k = - options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : ""; - encValue = `${k}${encodeValue(pv)}`; - } - - out += encValue == null ? "" : `.${encValue}`; - }); - - return out; -} - -type FormEncoder = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -) => string | undefined; - -function formEncoder(sep: string): FormEncoder { - return ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, - ) => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - const encodedSep = encodeString(sep); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue: string | null | undefined = null; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(encodedSep); - } else if (isPlainObject(pv)) { - encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `${encodeString(k)}${encodedSep}${encodeValue(v)}`; - })?.join(encodedSep); - } else { - encValue = `${encodeValue(pv)}`; - } - - if (encValue == null) { - return; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); - }; -} - -export const encodeForm = formEncoder(","); -export const encodeSpaceDelimited = formEncoder(" "); -export const encodePipeDelimited = formEncoder("|"); - -export function encodeBodyForm( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp = ""; - let encValue = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else if (isPlainObject(pv)) { - encValue = JSON.stringify(pv, jsonReplacer); - } else { - encValue = `${encodeValue(pv)}`; - } - - tmp = `${encodeString(pk)}=${encValue}`; - - // If we end up with the nothing then skip forward - if (!tmp || tmp === "=") { - return; - } - - out += `&${tmp}`; - }); - - return out.slice(1); -} - -export function encodeDeepObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - if (!isPlainObject(value)) { - throw new EncodingError( - `Value of parameter '${key}' which uses deepObject encoding must be an object or null`, - ); - } - - return encodeDeepObjectObject(key, value, options); -} - -export function encodeDeepObjectObject( - key: string, - value: unknown, - options?: { charEncoding?: "percent" | "none" }, -): string | undefined { - if (value == null) { - return; - } - - let out = ""; - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - if (!isPlainObject(value)) { - throw new EncodingError(`Expected parameter '${key}' to be an object.`); - } - - Object.entries(value).forEach(([ck, cv]) => { - if (cv == null) { - return; - } - - const pk = `${key}[${ck}]`; - - if (isPlainObject(cv)) { - const objOut = encodeDeepObjectObject(pk, cv, options); - - out += objOut == null ? "" : `&${objOut}`; - - return; - } - - const pairs: unknown[] = Array.isArray(cv) ? cv : [cv]; - const encoded = mapDefined(pairs, (v) => { - return `${encodeString(pk)}=${encodeString(serializeValue(v))}`; - })?.join("&"); - - out += encoded == null ? "" : `&${encoded}`; - }); - - return out.slice(1); -} - -export function encodeJSON( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined { - if (typeof value === "undefined") { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - - const encVal = encodeString(JSON.stringify(value, jsonReplacer)); - - return options?.explode ? encVal : `${encodeString(key)}=${encVal}`; -} - -export const encodeSimple = ( - key: string, - value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, -): string | undefined => { - let out = ""; - const pairs: [string, unknown][] = options?.explode - ? explode(key, value) - : [[key, value]]; - - if (pairs.every(([_, v]) => v == null)) { - return; - } - - const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; - }; - const encodeValue = (v: unknown) => encodeString(serializeValue(v)); - - pairs.forEach(([pk, pv]) => { - let tmp: string | null | undefined = ""; - - if (pv == null) { - return; - } else if (Array.isArray(pv)) { - tmp = mapDefined(pv, (v) => `${encodeValue(v)}`)?.join(","); - } else if (isPlainObject(pv)) { - const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => { - return `,${encodeString(k)},${encodeValue(v)}`; - }); - tmp = mapped?.join("").slice(1); - } else { - const k = options?.explode && isPlainObject(value) ? `${pk}=` : ""; - tmp = `${k}${encodeValue(pv)}`; - } - - out += tmp ? `,${tmp}` : ""; - }); - - return out.slice(1); -}; - -function explode(key: string, value: unknown): [string, unknown][] { - if (Array.isArray(value)) { - return value.map((v) => [key, v]); - } else if (isPlainObject(value)) { - const o = value ?? {}; - return Object.entries(o).map(([k, v]) => [k, v]); - } else { - return [[key, value]]; - } -} - -function serializeValue(value: unknown): string { - if (value == null) { - return ""; - } else if (value instanceof Date) { - return value.toISOString(); - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (typeof value === "object") { - return JSON.stringify(value, jsonReplacer); - } - - return `${value}`; -} - -function jsonReplacer(_: string, value: unknown): unknown { - if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else { - return value; - } -} - -function mapDefined(inp: T[], mapper: (v: T) => R): R[] | null { - const res = inp.reduce((acc, v) => { - if (v == null) { - return acc; - } - - const m = mapper(v); - if (m == null) { - return acc; - } - - acc.push(m); - - return acc; - }, []); - - return res.length ? res : null; -} - -function mapDefinedEntries( - inp: Iterable<[K, V]>, - mapper: (v: [K, V]) => R, -): R[] | null { - const acc: R[] = []; - for (const [k, v] of inp) { - if (v == null) { - continue; - } - - const m = mapper([k, v]); - if (m == null) { - continue; - } - - acc.push(m); - } - - return acc.length ? acc : null; -} - -export function queryJoin(...args: (string | undefined)[]): string { - return args.filter(Boolean).join("&"); -} - -type QueryEncoderOptions = { - explode?: boolean; - charEncoding?: "percent" | "none"; -}; - -type QueryEncoder = ( - key: string, - value: unknown, - options?: QueryEncoderOptions, -) => string | undefined; - -type BulkQueryEncoder = ( - values: Record, - options?: QueryEncoderOptions, -) => string; - -export function queryEncoder(f: QueryEncoder): BulkQueryEncoder { - const bulkEncode = function ( - values: Record, - options?: QueryEncoderOptions, - ): string { - const opts: QueryEncoderOptions = { - ...options, - explode: options?.explode ?? true, - charEncoding: options?.charEncoding ?? "percent", - }; - - const encoded = Object.entries(values).map(([key, value]) => { - return f(key, value, opts); - }); - return queryJoin(...encoded); - }; - - return bulkEncode; -} - -export const encodeJSONQuery = queryEncoder(encodeJSON); -export const encodeFormQuery = queryEncoder(encodeForm); -export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited); -export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited); -export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject); - -export function appendForm( - fd: FormData, - key: string, - value: unknown, - fileName?: string, -): void { - if (value == null) { - return; - } else if (value instanceof Blob && fileName) { - fd.append(key, value, fileName); - } else if (value instanceof Blob) { - fd.append(key, value); - } else { - fd.append(key, String(value)); - } -} diff --git a/webhooks/src/lib/files.ts b/webhooks/src/lib/files.ts deleted file mode 100644 index 0344cd04..00000000 --- a/webhooks/src/lib/files.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Consumes a stream and returns a concatenated array buffer. Useful in - * situations where we need to read the whole file because it forms part of a - * larger payload containing other fields, and we can't modify the underlying - * request structure. - */ -export async function readableStreamToArrayBuffer( - readable: ReadableStream, -): Promise { - const reader = readable.getReader(); - const chunks: Uint8Array[] = []; - - let totalLength = 0; - let done = false; - - while (!done) { - const { value, done: doneReading } = await reader.read(); - - if (doneReading) { - done = true; - } else { - chunks.push(value); - totalLength += value.length; - } - } - - const concatenatedChunks = new Uint8Array(totalLength); - let offset = 0; - - for (const chunk of chunks) { - concatenatedChunks.set(chunk, offset); - offset += chunk.length; - } - - return concatenatedChunks.buffer as ArrayBuffer; -} - -/** - * Determines the MIME content type based on a file's extension. - * Returns null if the extension is not recognized. - */ -export function getContentTypeFromFileName(fileName: string): string | null { - if (!fileName) return null; - - const ext = fileName.toLowerCase().split(".").pop(); - if (!ext) return null; - - const mimeTypes: Record = { - json: "application/json", - xml: "application/xml", - html: "text/html", - htm: "text/html", - txt: "text/plain", - csv: "text/csv", - pdf: "application/pdf", - png: "image/png", - jpg: "image/jpeg", - jpeg: "image/jpeg", - gif: "image/gif", - svg: "image/svg+xml", - js: "application/javascript", - css: "text/css", - zip: "application/zip", - tar: "application/x-tar", - gz: "application/gzip", - mp4: "video/mp4", - mp3: "audio/mpeg", - wav: "audio/wav", - webp: "image/webp", - ico: "image/x-icon", - woff: "font/woff", - woff2: "font/woff2", - ttf: "font/ttf", - otf: "font/otf", - }; - - return mimeTypes[ext] || null; -} diff --git a/webhooks/src/lib/http.ts b/webhooks/src/lib/http.ts deleted file mode 100644 index 13cf1fd7..00000000 --- a/webhooks/src/lib/http.ts +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type Fetcher = ( - input: RequestInfo | URL, - init?: RequestInit, -) => Promise; - -export type Awaitable = T | Promise; - -const DEFAULT_FETCHER: Fetcher = (input, init) => { - // If input is a Request and init is undefined, Bun will discard the method, - // headers, body and other options that were set on the request object. - // Node.js and browers would ignore an undefined init value. This check is - // therefore needed for interop with Bun. - if (init == null) { - return fetch(input); - } else { - return fetch(input, init); - } -}; - -export type RequestInput = { - /** - * The URL the request will use. - */ - url: URL; - /** - * Options used to create a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - */ - options?: RequestInit | undefined; -}; - -export interface HTTPClientOptions { - fetcher?: Fetcher; -} - -export type BeforeRequestHook = (req: Request) => Awaitable; -export type RequestErrorHook = (err: unknown, req: Request) => Awaitable; -export type ResponseHook = (res: Response, req: Request) => Awaitable; - -export class HTTPClient { - private fetcher: Fetcher; - private requestHooks: BeforeRequestHook[] = []; - private requestErrorHooks: RequestErrorHook[] = []; - private responseHooks: ResponseHook[] = []; - - constructor(private options: HTTPClientOptions = {}) { - this.fetcher = options.fetcher || DEFAULT_FETCHER; - } - - async request(request: Request): Promise { - let req = request; - for (const hook of this.requestHooks) { - const nextRequest = await hook(req); - if (nextRequest) { - req = nextRequest; - } - } - - try { - const res = await this.fetcher(req); - - for (const hook of this.responseHooks) { - await hook(res, req); - } - - return res; - } catch (err) { - for (const hook of this.requestErrorHooks) { - await hook(err, req); - } - - throw err; - } - } - - /** - * Registers a hook that is called before a request is made. The hook function - * can mutate the request or return a new request. This may be useful to add - * additional information to request such as request IDs and tracing headers. - */ - addHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** - * Registers a hook that is called when a request cannot be made due to a - * network error. - */ - addHook(hook: "requestError", fn: RequestErrorHook): this; - /** - * Registers a hook that is called when a response has been received from the - * server. - */ - addHook(hook: "response", fn: ResponseHook): this; - addHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ) { - if (args[0] === "beforeRequest") { - this.requestHooks.push(args[1]); - } else if (args[0] === "requestError") { - this.requestErrorHooks.push(args[1]); - } else if (args[0] === "response") { - this.responseHooks.push(args[1]); - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - return this; - } - - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "beforeRequest", fn: BeforeRequestHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "requestError", fn: RequestErrorHook): this; - /** Removes a hook that was previously registered with `addHook`. */ - removeHook(hook: "response", fn: ResponseHook): this; - removeHook( - ...args: - | [hook: "beforeRequest", fn: BeforeRequestHook] - | [hook: "requestError", fn: RequestErrorHook] - | [hook: "response", fn: ResponseHook] - ): this { - let target: unknown[]; - if (args[0] === "beforeRequest") { - target = this.requestHooks; - } else if (args[0] === "requestError") { - target = this.requestErrorHooks; - } else if (args[0] === "response") { - target = this.responseHooks; - } else { - throw new Error(`Invalid hook type: ${args[0]}`); - } - - const index = target.findIndex((v) => v === args[1]); - if (index >= 0) { - target.splice(index, 1); - } - - return this; - } - - clone(): HTTPClient { - const child = new HTTPClient(this.options); - child.requestHooks = this.requestHooks.slice(); - child.requestErrorHooks = this.requestErrorHooks.slice(); - child.responseHooks = this.responseHooks.slice(); - - return child; - } -} - -export type StatusCodePredicate = number | string | (number | string)[]; - -// A semicolon surrounded by optional whitespace characters is used to separate -// segments in a media type string. -const mediaParamSeparator = /\s*;\s*/g; - -export function matchContentType(response: Response, pattern: string): boolean { - // `*` is a special case which means anything is acceptable. - if (pattern === "*") { - return true; - } - - let contentType = - response.headers.get("content-type")?.trim() || "application/octet-stream"; - contentType = contentType.toLowerCase(); - - const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator); - const [wantType = "", ...wantParams] = wantParts; - - if (wantType.split("/").length !== 2) { - return false; - } - - const gotParts = contentType.split(mediaParamSeparator); - const [gotType = "", ...gotParams] = gotParts; - - const [type = "", subtype = ""] = gotType.split("/"); - if (!type || !subtype) { - return false; - } - - if ( - wantType !== "*/*" && - gotType !== wantType && - `${type}/*` !== wantType && - `*/${subtype}` !== wantType - ) { - return false; - } - - if (gotParams.length < wantParams.length) { - return false; - } - - const params = new Set(gotParams); - for (const wantParam of wantParams) { - if (!params.has(wantParam)) { - return false; - } - } - - return true; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -export function matchStatusCode( - response: Response, - codes: StatusCodePredicate, -): boolean { - const actual = `${response.status}`; - const expectedCodes = Array.isArray(codes) ? codes : [codes]; - if (!expectedCodes.length) { - return false; - } - - return expectedCodes.some((ec) => { - const code = `${ec}`; - - if (code === "default") { - return true; - } - - if (!codeRangeRE.test(`${code}`)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -export function matchResponse( - response: Response, - code: StatusCodePredicate, - contentTypePattern: string, -): boolean { - return ( - matchStatusCode(response, code) && - matchContentType(response, contentTypePattern) - ); -} - -/** - * Uses various heurisitics to determine if an error is a connection error. - */ -export function isConnectionError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Covers fetch in Deno as well - const isBrowserErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("failed to fetch"); - - const isNodeErr = - err instanceof TypeError && - err.message.toLowerCase().startsWith("fetch failed"); - - const isBunErr = "name" in err && err.name === "ConnectionError"; - - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnreset"; - - return isBrowserErr || isNodeErr || isGenericErr || isBunErr; -} - -/** - * Uses various heurisitics to determine if an error is a timeout error. - */ -export function isTimeoutError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "TimeoutError"; - const isLegacyNative = "code" in err && err.code === 23; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} - -/** - * Uses various heurisitics to determine if an error is a abort error. - */ -export function isAbortError(err: unknown): boolean { - if (typeof err !== "object" || err == null) { - return false; - } - - // Fetch in browser, Node.js, Bun, Deno - const isNative = "name" in err && err.name === "AbortError"; - const isLegacyNative = "code" in err && err.code === 20; - - // Node.js HTTP client and Axios - const isGenericErr = - "code" in err && - typeof err.code === "string" && - err.code.toLowerCase() === "econnaborted"; - - return isNative || isLegacyNative || isGenericErr; -} diff --git a/webhooks/src/lib/is-plain-object.ts b/webhooks/src/lib/is-plain-object.ts deleted file mode 100644 index 61070d3d..00000000 --- a/webhooks/src/lib/is-plain-object.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/* -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -// Taken from https://github.com/sindresorhus/is-plain-obj/blob/97f38e8836f86a642cce98fc6ab3058bc36df181/index.js - -export function isPlainObject(value: unknown): value is object { - if (typeof value !== "object" || value === null) { - return false; - } - - const prototype = Object.getPrototypeOf(value); - return ( - (prototype === null || - prototype === Object.prototype || - Object.getPrototypeOf(prototype) === null) && - !(Symbol.toStringTag in value) && - !(Symbol.iterator in value) - ); -} diff --git a/webhooks/src/lib/logger.ts b/webhooks/src/lib/logger.ts deleted file mode 100644 index d181f293..00000000 --- a/webhooks/src/lib/logger.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export interface Logger { - group(label?: string): void; - groupEnd(): void; - log(message: any, ...args: any[]): void; -} diff --git a/webhooks/src/lib/matchers.ts b/webhooks/src/lib/matchers.ts deleted file mode 100644 index 6525c6db..00000000 --- a/webhooks/src/lib/matchers.ts +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheAPIError } from "../models/errors/avalancheapierror.js"; -import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { matchResponse, matchStatusCode, StatusCodePredicate } from "./http.js"; -import { isPlainObject } from "./is-plain-object.js"; - -export type Encoding = - | "jsonl" - | "json" - | "text" - | "bytes" - | "stream" - | "sse" - | "nil" - | "fail"; - -const DEFAULT_CONTENT_TYPES: Record = { - jsonl: "application/jsonl", - json: "application/json", - text: "text/plain", - bytes: "application/octet-stream", - stream: "application/octet-stream", - sse: "text/event-stream", - nil: "*", - fail: "*", -}; - -type Schema = { parse(raw: unknown): T }; - -type MatchOptions = { - ctype?: string; - hdrs?: boolean; - key?: string; - sseSentinel?: string; -}; - -export type ValueMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; -}; - -export type ErrorMatcher = MatchOptions & { - enc: Encoding; - codes: StatusCodePredicate; - schema: Schema; - err: true; -}; - -export type FailMatcher = { - enc: "fail"; - codes: StatusCodePredicate; -}; - -export type Matcher = ValueMatcher | ErrorMatcher | FailMatcher; - -export function jsonErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "json", codes, schema }; -} -export function json( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "json", codes, schema }; -} - -export function jsonl( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "jsonl", codes, schema }; -} - -export function jsonlErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "jsonl", codes, schema }; -} -export function textErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "text", codes, schema }; -} -export function text( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "text", codes, schema }; -} - -export function bytesErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "bytes", codes, schema }; -} -export function bytes( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "bytes", codes, schema }; -} - -export function streamErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "stream", codes, schema }; -} -export function stream( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "stream", codes, schema }; -} - -export function sseErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "sse", codes, schema }; -} -export function sse( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "sse", codes, schema }; -} - -export function nilErr( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ErrorMatcher { - return { ...options, err: true, enc: "nil", codes, schema }; -} -export function nil( - codes: StatusCodePredicate, - schema: Schema, - options?: MatchOptions, -): ValueMatcher { - return { ...options, enc: "nil", codes, schema }; -} - -export function fail(codes: StatusCodePredicate): FailMatcher { - return { enc: "fail", codes }; -} - -export type MatchedValue = Matchers extends Matcher[] - ? T - : never; -export type MatchedError = Matchers extends Matcher[] - ? E - : never; -export type MatchFunc = ( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, -) => Promise<[result: Result, raw: unknown]>; - -export function match( - ...matchers: Array> -): MatchFunc { - return async function matchFunc( - response: Response, - request: Request, - options?: { resultKey?: string; extraFields?: Record }, - ): Promise< - [ - result: Result, - raw: unknown, - ] - > { - let raw: unknown; - let matcher: Matcher | undefined; - for (const match of matchers) { - const { codes } = match; - const ctpattern = "ctype" in match - ? match.ctype - : DEFAULT_CONTENT_TYPES[match.enc]; - if (ctpattern && matchResponse(response, codes, ctpattern)) { - matcher = match; - break; - } else if (!ctpattern && matchStatusCode(response, codes)) { - matcher = match; - break; - } - } - - if (!matcher) { - return [{ - ok: false, - error: new AvalancheAPIError("Unexpected Status or Content-Type", { - response, - request, - body: await response.text().catch(() => ""), - }), - }, raw]; - } - - const encoding = matcher.enc; - let body = ""; - switch (encoding) { - case "json": - body = await response.text(); - raw = JSON.parse(body); - break; - case "jsonl": - raw = response.body; - break; - case "bytes": - raw = new Uint8Array(await response.arrayBuffer()); - break; - case "stream": - raw = response.body; - break; - case "text": - body = await response.text(); - raw = body; - break; - case "sse": - raw = response.body; - break; - case "nil": - body = await response.text(); - raw = undefined; - break; - case "fail": - body = await response.text(); - raw = body; - break; - default: - encoding satisfies never; - throw new Error(`Unsupported response type: ${encoding}`); - } - - if (matcher.enc === "fail") { - return [{ - ok: false, - error: new AvalancheAPIError("API error occurred", { - request, - response, - body, - }), - }, raw]; - } - - const resultKey = matcher.key || options?.resultKey; - let data: unknown; - - if ("err" in matcher) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - request$: request, - response$: response, - body$: body, - }; - } else if (resultKey) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - [resultKey]: raw, - }; - } else if (matcher.hdrs) { - data = { - ...options?.extraFields, - ...(matcher.hdrs ? { Headers: unpackHeaders(response.headers) } : null), - ...(isPlainObject(raw) ? raw : null), - }; - } else { - data = raw; - } - - if ("err" in matcher) { - const result = safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ); - return [result.ok ? { ok: false, error: result.value } : result, raw]; - } else { - return [ - safeParseResponse( - data, - (v: unknown) => matcher.schema.parse(v), - "Response validation failed", - { request, response, body }, - ), - raw, - ]; - } - }; -} - -const headerValRE = /, */; -/** - * Iterates over a Headers object and returns an object with all the header - * entries. Values are represented as an array to account for repeated headers. - */ -export function unpackHeaders(headers: Headers): Record { - const out: Record = {}; - - for (const [k, v] of headers.entries()) { - out[k] = v.split(headerValRE); - } - - return out; -} - -function safeParseResponse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, - httpMeta: { response: Response; request: Request; body: string }, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR( - new ResponseValidationError(errorMessage, { - cause: err, - rawValue, - rawMessage: errorMessage, - ...httpMeta, - }), - ); - } -} diff --git a/webhooks/src/lib/primitives.ts b/webhooks/src/lib/primitives.ts deleted file mode 100644 index d21f1dc4..00000000 --- a/webhooks/src/lib/primitives.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -class InvariantError extends Error { - constructor(message: string) { - super(message); - this.name = "InvariantError"; - } -} - -export function invariant( - condition: unknown, - message: string, -): asserts condition { - if (!condition) { - throw new InvariantError(message); - } -} - -export type ExactPartial = { - [P in keyof T]?: T[P] | undefined; -}; - -export type Remap = { - [k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */ - ? Mapping[k] - : Mapping[k] extends null /* if the mapping is to `null` then drop the key */ - ? never - : k /* otherwise keep the key as-is */]: Inp[k]; -}; - -/** - * Converts or omits an object's keys according to a mapping. - * - * @param inp An object whose keys will be remapped - * @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object. - * @returns A new object with keys remapped or omitted according to the mappings - */ -export function remap< - Inp extends Record, - const Mapping extends { [k in keyof Inp]?: string | null }, ->(inp: Inp, mappings: Mapping): Remap { - let out: any = {}; - - if (!Object.keys(mappings).length) { - out = inp; - return out; - } - - for (const [k, v] of Object.entries(inp)) { - const j = mappings[k]; - if (j === null) { - continue; - } - out[j ?? k] = v; - } - - return out; -} - -export function combineSignals( - ...signals: Array -): AbortSignal | null { - const filtered: AbortSignal[] = []; - for (const signal of signals) { - if (signal) { - filtered.push(signal); - } - } - - switch (filtered.length) { - case 0: - case 1: - return filtered[0] || null; - default: - if ("any" in AbortSignal && typeof AbortSignal.any === "function") { - return AbortSignal.any(filtered); - } - return abortSignalAny(filtered); - } -} - -export function abortSignalAny(signals: AbortSignal[]): AbortSignal { - const controller = new AbortController(); - const result = controller.signal; - if (!signals.length) { - return controller.signal; - } - - if (signals.length === 1) { - return signals[0] || controller.signal; - } - - for (const signal of signals) { - if (signal.aborted) { - return signal; - } - } - - function abort(this: AbortSignal) { - controller.abort(this.reason); - clean(); - } - - const signalRefs: WeakRef[] = []; - function clean() { - for (const signalRef of signalRefs) { - const signal = signalRef.deref(); - if (signal) { - signal.removeEventListener("abort", abort); - } - } - } - - for (const signal of signals) { - signalRefs.push(new WeakRef(signal)); - signal.addEventListener("abort", abort); - } - - return result; -} - -export function compactMap( - values: Record, -): Record { - const out: Record = {}; - - for (const [k, v] of Object.entries(values)) { - if (typeof v !== "undefined") { - out[k] = v; - } - } - - return out; -} - -export function allRequired>( - v: V, -): - | { - [K in keyof V]: NonNullable; - } - | undefined { - if (Object.values(v).every((x) => x == null)) { - return void 0; - } - - return v as ReturnType>; -} diff --git a/webhooks/src/lib/retries.ts b/webhooks/src/lib/retries.ts deleted file mode 100644 index e3ce9aba..00000000 --- a/webhooks/src/lib/retries.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { isConnectionError, isTimeoutError } from "./http.js"; - -export type BackoffStrategy = { - initialInterval: number; - maxInterval: number; - exponent: number; - maxElapsedTime: number; -}; - -const defaultBackoff: BackoffStrategy = { - initialInterval: 500, - maxInterval: 60000, - exponent: 1.5, - maxElapsedTime: 3600000, -}; - -export type RetryConfig = - | { strategy: "none" } - | { - strategy: "backoff"; - backoff?: BackoffStrategy; - retryConnectionErrors?: boolean; - }; - -/** - * PermanentError is an error that is not recoverable. Throwing this error will - * cause a retry loop to terminate. - */ -export class PermanentError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - - constructor(message: string, options?: { cause?: unknown }) { - let msg = message; - if (options?.cause) { - msg += `: ${options.cause}`; - } - - super(msg, options); - this.name = "PermanentError"; - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = options?.cause; - } - - Object.setPrototypeOf(this, PermanentError.prototype); - } -} - -/** - * TemporaryError is an error is used to signal that an HTTP request can be - * retried as part of a retry loop. If retry attempts are exhausted and this - * error is thrown, the response will be returned to the caller. - */ -export class TemporaryError extends Error { - response: Response; - - constructor(message: string, response: Response) { - super(message); - this.response = response; - this.name = "TemporaryError"; - - Object.setPrototypeOf(this, TemporaryError.prototype); - } -} - -export async function retry( - fetchFn: () => Promise, - options: { - config: RetryConfig; - statusCodes: string[]; - }, -): Promise { - switch (options.config.strategy) { - case "backoff": - return retryBackoff( - wrapFetcher(fetchFn, { - statusCodes: options.statusCodes, - retryConnectionErrors: !!options.config.retryConnectionErrors, - }), - options.config.backoff ?? defaultBackoff, - ); - default: - return await fetchFn(); - } -} - -function wrapFetcher( - fn: () => Promise, - options: { - statusCodes: string[]; - retryConnectionErrors: boolean; - }, -): () => Promise { - return async () => { - try { - const res = await fn(); - if (isRetryableResponse(res, options.statusCodes)) { - throw new TemporaryError( - "Response failed with retryable status code", - res, - ); - } - - return res; - } catch (err: unknown) { - if (err instanceof TemporaryError) { - throw err; - } - - if ( - options.retryConnectionErrors && - (isTimeoutError(err) || isConnectionError(err)) - ) { - throw err; - } - - throw new PermanentError("Permanent error", { cause: err }); - } - }; -} - -const codeRangeRE = new RegExp("^[0-9]xx$", "i"); - -function isRetryableResponse(res: Response, statusCodes: string[]): boolean { - const actual = `${res.status}`; - - return statusCodes.some((code) => { - if (!codeRangeRE.test(code)) { - return code === actual; - } - - const expectFamily = code.charAt(0); - if (!expectFamily) { - throw new Error("Invalid status code range"); - } - - const actualFamily = actual.charAt(0); - if (!actualFamily) { - throw new Error(`Invalid response status code: ${actual}`); - } - - return actualFamily === expectFamily; - }); -} - -async function retryBackoff( - fn: () => Promise, - strategy: BackoffStrategy, -): Promise { - const { maxElapsedTime, initialInterval, exponent, maxInterval } = strategy; - - const start = Date.now(); - let x = 0; - - while (true) { - try { - const res = await fn(); - return res; - } catch (err: unknown) { - if (err instanceof PermanentError) { - throw err.cause; - } - const elapsed = Date.now() - start; - if (elapsed > maxElapsedTime) { - if (err instanceof TemporaryError) { - return err.response; - } - - throw err; - } - - let retryInterval = 0; - if (err instanceof TemporaryError) { - retryInterval = retryIntervalFromResponse(err.response); - } - - if (retryInterval <= 0) { - retryInterval = - initialInterval * Math.pow(x, exponent) + Math.random() * 1000; - } - - const d = Math.min(retryInterval, maxInterval); - - await delay(d); - x++; - } - } -} - -function retryIntervalFromResponse(res: Response): number { - const retryVal = res.headers.get("retry-after") || ""; - if (!retryVal) { - return 0; - } - - const parsedNumber = Number(retryVal); - if (Number.isInteger(parsedNumber)) { - return parsedNumber * 1000; - } - - const parsedDate = Date.parse(retryVal); - if (Number.isInteger(parsedDate)) { - const deltaMS = parsedDate - Date.now(); - return deltaMS > 0 ? Math.ceil(deltaMS) : 0; - } - - return 0; -} - -async function delay(delay: number): Promise { - return new Promise((resolve) => setTimeout(resolve, delay)); -} diff --git a/webhooks/src/lib/schemas.ts b/webhooks/src/lib/schemas.ts deleted file mode 100644 index 0e340b7e..00000000 --- a/webhooks/src/lib/schemas.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - output, - ZodEffects, - ZodError, - ZodObject, - ZodRawShape, - ZodTypeAny, -} from "zod"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { ERR, OK, Result } from "../types/fp.js"; - -/** - * Utility function that executes some code which may throw a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function parse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Out { - try { - return fn(rawValue); - } catch (err) { - if (err instanceof ZodError) { - throw new SDKValidationError(errorMessage, err, rawValue); - } - throw err; - } -} - -/** - * Utility function that executes some code which may result in a ZodError. It - * intercepts this error and converts it to an SDKValidationError so as to not - * leak Zod implementation details to user code. - */ -export function safeParse( - rawValue: Inp, - fn: (value: Inp) => Out, - errorMessage: string, -): Result { - try { - return OK(fn(rawValue)); - } catch (err) { - return ERR(new SDKValidationError(errorMessage, err, rawValue)); - } -} - -export function collectExtraKeys< - Shape extends ZodRawShape, - Catchall extends ZodTypeAny, - K extends string, ->( - obj: ZodObject, - extrasKey: K, - optional: boolean, -): ZodEffects< - typeof obj, - & output> - & { - [k in K]: Record>; - } -> { - return obj.transform((val) => { - const extras: Record> = {}; - const { shape } = obj; - for (const [key] of Object.entries(val)) { - if (key in shape) { - continue; - } - - const v = val[key]; - if (typeof v === "undefined") { - continue; - } - - extras[key] = v; - delete val[key]; - } - - if (optional && Object.keys(extras).length === 0) { - return val; - } - - return { ...val, [extrasKey]: extras }; - }); -} diff --git a/webhooks/src/lib/sdks.ts b/webhooks/src/lib/sdks.ts deleted file mode 100644 index bdb1f37c..00000000 --- a/webhooks/src/lib/sdks.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKHooks } from "../hooks/hooks.js"; -import { HookContext } from "../hooks/types.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { ERR, OK, Result } from "../types/fp.js"; -import { stringToBase64 } from "./base64.js"; -import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "./config.js"; -import { encodeForm } from "./encodings.js"; -import { - HTTPClient, - isAbortError, - isConnectionError, - isTimeoutError, - matchContentType, - matchStatusCode, -} from "./http.js"; -import { Logger } from "./logger.js"; -import { retry, RetryConfig } from "./retries.js"; -import { SecurityState } from "./security.js"; - -export type RequestOptions = { - /** - * Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If - * `fetchOptions.signal` is set then it will take precedence over this option. - */ - timeoutMs?: number; - /** - * Set or override a retry policy on HTTP calls. - */ - retries?: RetryConfig; - /** - * Specifies the status codes which should be retried using the given retry policy. - */ - retryCodes?: string[]; - /** - * Overrides the base server URL that will be used by an operation. - */ - serverURL?: string | URL; - /** - * @deprecated `fetchOptions` has been flattened into `RequestOptions`. - * - * Sets various request options on the `fetch` call made by an SDK method. - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request} - */ - fetchOptions?: Omit; -} & Omit; - -type RequestConfig = { - method: string; - path: string; - baseURL?: string | URL | undefined; - query?: string; - body?: RequestInit["body"]; - headers?: HeadersInit; - security?: SecurityState | null; - uaHeader?: string; - userAgent?: string | undefined; - timeoutMs?: number; -}; - -const gt: unknown = typeof globalThis === "undefined" ? null : globalThis; -const webWorkerLike = typeof gt === "object" - && gt != null - && "importScripts" in gt - && typeof gt["importScripts"] === "function"; -const isBrowserLike = webWorkerLike - || (typeof navigator !== "undefined" && "serviceWorker" in navigator) - || (typeof window === "object" && typeof window.document !== "undefined"); - -export class ClientSDK { - readonly #httpClient: HTTPClient; - readonly #hooks: SDKHooks; - readonly #logger?: Logger | undefined; - public readonly _baseURL: URL | null; - public readonly _options: SDKOptions & { hooks?: SDKHooks }; - - constructor(options: SDKOptions = {}) { - const opt = options as unknown; - if ( - typeof opt === "object" - && opt != null - && "hooks" in opt - && opt.hooks instanceof SDKHooks - ) { - this.#hooks = opt.hooks; - } else { - this.#hooks = new SDKHooks(); - } - const url = serverURLFromOptions(options); - if (url) { - url.pathname = url.pathname.replace(/\/+$/, "") + "/"; - } - - const { baseURL, client } = this.#hooks.sdkInit({ - baseURL: url, - client: options.httpClient || new HTTPClient(), - }); - this._baseURL = baseURL; - this.#httpClient = client; - - this._options = { ...options, hooks: this.#hooks }; - - this.#logger = this._options.debugLogger; - } - - public _createRequest( - context: HookContext, - conf: RequestConfig, - options?: RequestOptions, - ): Result { - const { method, path, query, headers: opHeaders, security } = conf; - - const base = conf.baseURL ?? this._baseURL; - if (!base) { - return ERR(new InvalidRequestError("No base URL provided for operation")); - } - const reqURL = new URL(base); - const inputURL = new URL(path, reqURL); - - if (path) { - reqURL.pathname += reqURL.pathname.endsWith("/") ? "" : "/"; - reqURL.pathname += inputURL.pathname.replace(/^\/+/, ""); - } - - let finalQuery = query || ""; - - const secQuery: string[] = []; - for (const [k, v] of Object.entries(security?.queryParams || {})) { - const q = encodeForm(k, v, { charEncoding: "percent" }); - if (typeof q !== "undefined") { - secQuery.push(q); - } - } - if (secQuery.length) { - finalQuery += `&${secQuery.join("&")}`; - } - - if (finalQuery) { - const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery; - reqURL.search = `?${q}`; - } - - const headers = new Headers(opHeaders); - - const username = security?.basic.username; - const password = security?.basic.password; - if (username != null || password != null) { - const encoded = stringToBase64( - [username || "", password || ""].join(":"), - ); - headers.set("Authorization", `Basic ${encoded}`); - } - - const securityHeaders = new Headers(security?.headers || {}); - for (const [k, v] of securityHeaders) { - headers.set(k, v); - } - - let cookie = headers.get("cookie") || ""; - for (const [k, v] of Object.entries(security?.cookies || {})) { - cookie += `; ${k}=${v}`; - } - cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie; - headers.set("cookie", cookie); - - const userHeaders = new Headers( - options?.headers ?? options?.fetchOptions?.headers, - ); - for (const [k, v] of userHeaders) { - headers.set(k, v); - } - - // Only set user agent header in non-browser-like environments since CORS - // policy disallows setting it in browsers e.g. Chrome throws an error. - if (!isBrowserLike) { - headers.set( - conf.uaHeader ?? "user-agent", - conf.userAgent ?? SDK_METADATA.userAgent, - ); - } - - const fetchOptions: Omit = { - ...options?.fetchOptions, - ...options, - }; - if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) { - const timeoutSignal = AbortSignal.timeout(conf.timeoutMs); - fetchOptions.signal = timeoutSignal; - } - - if (conf.body instanceof ReadableStream) { - Object.assign(fetchOptions, { duplex: "half" }); - } - - let input; - try { - input = this.#hooks.beforeCreateRequest(context, { - url: reqURL, - options: { - ...fetchOptions, - body: conf.body ?? null, - headers, - method, - }, - }); - } catch (err: unknown) { - return ERR( - new UnexpectedClientError("Create request hook failed to execute", { - cause: err, - }), - ); - } - - return OK(new Request(input.url, input.options)); - } - - public async _do( - request: Request, - options: { - context: HookContext; - errorCodes: number | string | (number | string)[]; - retryConfig: RetryConfig; - retryCodes: string[]; - }, - ): Promise< - Result< - Response, - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - | UnexpectedClientError - > - > { - const { context, errorCodes } = options; - - return retry( - async () => { - const req = await this.#hooks.beforeRequest(context, request.clone()); - await logRequest(this.#logger, req).catch((e) => - this.#logger?.log("Failed to log request:", e) - ); - - let response = await this.#httpClient.request(req); - - try { - if (matchStatusCode(response, errorCodes)) { - const result = await this.#hooks.afterError( - context, - response, - null, - ); - if (result.error) { - throw result.error; - } - response = result.response || response; - } else { - response = await this.#hooks.afterSuccess(context, response); - } - } finally { - await logResponse(this.#logger, response, req) - .catch(e => this.#logger?.log("Failed to log response:", e)); - } - - return response; - }, - { config: options.retryConfig, statusCodes: options.retryCodes }, - ).then( - (r) => OK(r), - (err) => { - switch (true) { - case isAbortError(err): - return ERR( - new RequestAbortedError("Request aborted by client", { - cause: err, - }), - ); - case isTimeoutError(err): - return ERR( - new RequestTimeoutError("Request timed out", { cause: err }), - ); - case isConnectionError(err): - return ERR( - new ConnectionError("Unable to make request", { cause: err }), - ); - default: - return ERR( - new UnexpectedClientError("Unexpected HTTP client error", { - cause: err, - }), - ); - } - }, - ); - } -} - -const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/; -const jsonlLikeContentTypeRE = - /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/; -async function logRequest(logger: Logger | undefined, req: Request) { - if (!logger) { - return; - } - - const contentType = req.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`> Request: ${req.method} ${req.url}`); - - logger.group("Headers:"); - for (const [k, v] of req.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case jsonLikeContentTypeRE.test(ct): - logger.log(await req.clone().json()); - break; - case ct.startsWith("text/"): - logger.log(await req.clone().text()); - break; - case ct === "multipart/form-data": { - const body = await req.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} - -async function logResponse( - logger: Logger | undefined, - res: Response, - req: Request, -) { - if (!logger) { - return; - } - - const contentType = res.headers.get("content-type"); - const ct = contentType?.split(";")[0] || ""; - - logger.group(`< Response: ${req.method} ${req.url}`); - logger.log("Status Code:", res.status, res.statusText); - - logger.group("Headers:"); - for (const [k, v] of res.headers.entries()) { - logger.log(`${k}: ${v}`); - } - logger.groupEnd(); - - logger.group("Body:"); - switch (true) { - case matchContentType(res, "application/json") - || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().json()); - break; - case matchContentType(res, "application/jsonl") - || jsonlLikeContentTypeRE.test(ct): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "text/event-stream"): - logger.log(`<${contentType}>`); - break; - case matchContentType(res, "text/*"): - logger.log(await res.clone().text()); - break; - case matchContentType(res, "multipart/form-data"): { - const body = await res.clone().formData(); - for (const [k, v] of body) { - const vlabel = v instanceof Blob ? "" : v; - logger.log(`${k}: ${vlabel}`); - } - break; - } - default: - logger.log(`<${contentType}>`); - break; - } - logger.groupEnd(); - - logger.groupEnd(); -} diff --git a/webhooks/src/lib/security.ts b/webhooks/src/lib/security.ts deleted file mode 100644 index 250e03fa..00000000 --- a/webhooks/src/lib/security.ts +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as components from "../models/components/index.js"; - -type OAuth2PasswordFlow = { - username: string; - password: string; - clientID?: string | undefined; - clientSecret?: string | undefined; - tokenURL: string; -}; - -export enum SecurityErrorCode { - Incomplete = "incomplete", - UnrecognisedSecurityType = "unrecognized_security_type", -} - -export class SecurityError extends Error { - constructor( - public code: SecurityErrorCode, - message: string, - ) { - super(message); - this.name = "SecurityError"; - } - - static incomplete(): SecurityError { - return new SecurityError( - SecurityErrorCode.Incomplete, - "Security requirements not met in order to perform the operation", - ); - } - static unrecognizedType(type: string): SecurityError { - return new SecurityError( - SecurityErrorCode.UnrecognisedSecurityType, - `Unrecognised security type: ${type}`, - ); - } -} - -export type SecurityState = { - basic: { username?: string | undefined; password?: string | undefined }; - headers: Record; - queryParams: Record; - cookies: Record; - oauth2: ({ type: "password" } & OAuth2PasswordFlow) | { type: "none" }; -}; - -type SecurityInputBasic = { - type: "http:basic"; - value: - | { username?: string | undefined; password?: string | undefined } - | null - | undefined; -}; - -type SecurityInputBearer = { - type: "http:bearer"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputAPIKey = { - type: "apiKey:header" | "apiKey:query" | "apiKey:cookie"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOIDC = { - type: "openIdConnect"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2 = { - type: "oauth2"; - value: string | null | undefined; - fieldName: string; -}; - -type SecurityInputOAuth2ClientCredentials = { - type: "oauth2:client_credentials"; - value: - | { clientID?: string | undefined; clientSecret?: string | undefined } - | null - | string - | undefined; - fieldName?: string; -}; - -type SecurityInputOAuth2PasswordCredentials = { - type: "oauth2:password"; - value: - | string - | null - | undefined; - fieldName?: string; -}; - -type SecurityInputCustom = { - type: "http:custom"; - value: any | null | undefined; - fieldName?: string; -}; - -export type SecurityInput = - | SecurityInputBasic - | SecurityInputBearer - | SecurityInputAPIKey - | SecurityInputOAuth2 - | SecurityInputOAuth2ClientCredentials - | SecurityInputOAuth2PasswordCredentials - | SecurityInputOIDC - | SecurityInputCustom; - -export function resolveSecurity( - ...options: SecurityInput[][] -): SecurityState | null { - const state: SecurityState = { - basic: {}, - headers: {}, - queryParams: {}, - cookies: {}, - oauth2: { type: "none" }, - }; - - const option = options.find((opts) => { - return opts.every((o) => { - if (o.value == null) { - return false; - } else if (o.type === "http:basic") { - return o.value.username != null || o.value.password != null; - } else if (o.type === "http:custom") { - return null; - } else if (o.type === "oauth2:password") { - return ( - typeof o.value === "string" && !!o.value - ); - } else if (o.type === "oauth2:client_credentials") { - if (typeof o.value == "string") { - return !!o.value; - } - return o.value.clientID != null || o.value.clientSecret != null; - } else if (typeof o.value === "string") { - return !!o.value; - } else { - throw new Error( - `Unrecognized security type: ${o.type} (value type: ${typeof o - .value})`, - ); - } - }); - }); - if (option == null) { - return null; - } - - option.forEach((spec) => { - if (spec.value == null) { - return; - } - - const { type } = spec; - - switch (type) { - case "apiKey:header": - state.headers[spec.fieldName] = spec.value; - break; - case "apiKey:query": - state.queryParams[spec.fieldName] = spec.value; - break; - case "apiKey:cookie": - state.cookies[spec.fieldName] = spec.value; - break; - case "http:basic": - applyBasic(state, spec); - break; - case "http:custom": - break; - case "http:bearer": - applyBearer(state, spec); - break; - case "oauth2": - applyBearer(state, spec); - break; - case "oauth2:password": - applyBearer(state, spec); - break; - case "oauth2:client_credentials": - break; - case "openIdConnect": - applyBearer(state, spec); - break; - default: - spec satisfies never; - throw SecurityError.unrecognizedType(type); - } - }); - - return state; -} - -function applyBasic( - state: SecurityState, - spec: SecurityInputBasic, -) { - if (spec.value == null) { - return; - } - - state.basic = spec.value; -} - -function applyBearer( - state: SecurityState, - spec: - | SecurityInputBearer - | SecurityInputOAuth2 - | SecurityInputOIDC - | SecurityInputOAuth2PasswordCredentials, -) { - if (typeof spec.value !== "string" || !spec.value) { - return; - } - - let value = spec.value; - if (value.slice(0, 7).toLowerCase() !== "bearer ") { - value = `Bearer ${value}`; - } - - if (spec.fieldName !== undefined) { - state.headers[spec.fieldName] = value; - } -} - -export function resolveGlobalSecurity( - security: Partial | null | undefined, -): SecurityState | null { - return resolveSecurity( - [ - { - fieldName: "x-glacier-api-key", - type: "apiKey:header", - value: security?.apiKey, - }, - ], - ); -} - -export async function extractSecurity< - T extends string | Record, ->(sec: T | (() => Promise) | undefined): Promise { - if (sec == null) { - return; - } - - return typeof sec === "function" ? sec() : sec; -} diff --git a/webhooks/src/lib/url.ts b/webhooks/src/lib/url.ts deleted file mode 100644 index 6bc6356e..00000000 --- a/webhooks/src/lib/url.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const hasOwn = Object.prototype.hasOwnProperty; - -export type Params = Partial>; - -export function pathToFunc( - pathPattern: string, - options?: { charEncoding?: "percent" | "none" }, -): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; - - return function buildURLPath(params: Record = {}): string { - return pathPattern.replace(paramRE, function (_, placeholder) { - if (!hasOwn.call(params, placeholder)) { - throw new Error(`Parameter '${placeholder}' is required`); - } - - const value = params[placeholder]; - if (typeof value !== "string" && typeof value !== "number") { - throw new Error( - `Parameter '${placeholder}' must be a string or number`, - ); - } - - return options?.charEncoding === "percent" - ? encodeURIComponent(`${value}`) - : `${value}`; - }); - }; -} diff --git a/webhooks/src/mcp-server/build.mts b/webhooks/src/mcp-server/build.mts deleted file mode 100644 index a04739f2..00000000 --- a/webhooks/src/mcp-server/build.mts +++ /dev/null @@ -1,16 +0,0 @@ -/// - -import { build } from "bun"; - -const entrypoint = "./src/mcp-server/mcp-server.ts"; - -await build({ - entrypoints: [entrypoint], - outdir: "./bin", - sourcemap: "linked", - target: "node", - format: "esm", - minify: false, - throw: true, - banner: "#!/usr/bin/env node", -}); diff --git a/webhooks/src/mcp-server/cli.ts b/webhooks/src/mcp-server/cli.ts deleted file mode 100644 index b878d8de..00000000 --- a/webhooks/src/mcp-server/cli.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { CommandContext, StricliProcess } from "@stricli/core"; - -export interface LocalContext extends CommandContext { - readonly process: StricliProcess; -} - -export function buildContext(process: NodeJS.Process): LocalContext { - return { process: process as StricliProcess }; -} diff --git a/webhooks/src/mcp-server/cli/start/command.ts b/webhooks/src/mcp-server/cli/start/command.ts deleted file mode 100644 index eac631ea..00000000 --- a/webhooks/src/mcp-server/cli/start/command.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; -import * as components from "../../../models/components/index.js"; -import { consoleLoggerLevels } from "../../console-logger.js"; - -export const startCommand = buildCommand({ - loader: async () => { - const { main } = await import("./impl.js"); - return main; - }, - parameters: { - flags: { - transport: { - kind: "enum", - brief: "The transport to use for communicating with the server", - default: "stdio", - values: ["stdio", "sse"], - }, - port: { - kind: "parsed", - brief: "The port to use when the SSE transport is enabled", - default: "2718", - parse: (val: string) => - z.coerce.number().int().gte(0).lt(65536).parse(val), - }, - tool: { - kind: "parsed", - brief: "Specify tools to mount on the server", - optional: true, - variadic: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "api-key": { - kind: "parsed", - brief: "Sets the apiKey auth field for the API", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - "chain-id": { - kind: "parsed", - brief: - "Allows setting the chainId parameter for all supported operations", - optional: true, - parse: (value) => { - return z.string().parse(value); - }, - }, - network: { - kind: "parsed", - brief: - "Allows setting the network parameter for all supported operations", - optional: true, - parse: (value) => { - return components.GlobalParamNetwork$inboundSchema.parse(value); - }, - }, - "server-url": { - kind: "parsed", - brief: "Overrides the default server URL used by the SDK", - optional: true, - parse: (value) => new URL(value).toString(), - }, - "server-index": { - kind: "parsed", - brief: "Selects a predefined server used by the SDK", - optional: true, - parse: numberParser, - }, - "log-level": { - kind: "enum", - brief: "The log level to use for the server", - default: "info", - values: consoleLoggerLevels, - }, - env: { - kind: "parsed", - brief: "Environment variables made available to the server", - optional: true, - variadic: true, - parse: (val: string) => { - const sepIdx = val.indexOf("="); - if (sepIdx === -1) { - throw new Error("Invalid environment variable format"); - } - - const key = val.slice(0, sepIdx); - const value = val.slice(sepIdx + 1); - - return [ - z.string().nonempty({ - message: "Environment variable key must be a non-empty string", - }).parse(key), - z.string().nonempty({ - message: "Environment variable value must be a non-empty string", - }).parse(value), - ] satisfies [string, string]; - }, - }, - }, - }, - docs: { - brief: "Run the Model Context Protocol server", - }, -}); diff --git a/webhooks/src/mcp-server/cli/start/impl.ts b/webhooks/src/mcp-server/cli/start/impl.ts deleted file mode 100644 index 2daf11ff..00000000 --- a/webhooks/src/mcp-server/cli/start/impl.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js"; -import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; -import express from "express"; -import { SDKOptions } from "../../../lib/config.js"; -import { LocalContext } from "../../cli.js"; -import { - ConsoleLoggerLevel, - createConsoleLogger, -} from "../../console-logger.js"; -import { createMCPServer } from "../../server.js"; - -interface StartCommandFlags { - readonly transport: "stdio" | "sse"; - readonly port: number; - readonly tool?: string[]; - readonly "api-key"?: string | undefined; - readonly "chain-id"?: SDKOptions["chainId"] | undefined; - readonly network?: SDKOptions["network"] | undefined; - readonly "server-url"?: string; - readonly "server-index"?: SDKOptions["serverIdx"]; - readonly "log-level": ConsoleLoggerLevel; - readonly env?: [string, string][]; -} - -export async function main(this: LocalContext, flags: StartCommandFlags) { - flags.env?.forEach(([key, value]) => { - process.env[key] = value; - }); - - switch (flags.transport) { - case "stdio": - await startStdio(flags); - break; - case "sse": - await startSSE(flags); - break; - default: - throw new Error(`Invalid transport: ${flags.transport}`); - } -} - -async function startStdio(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const transport = new StdioServerTransport(); - const server = createMCPServer({ - logger, - allowedTools: flags.tool, - ...{ apiKey: flags["api-key"] ?? "" }, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - await server.connect(transport); - - const abort = async () => { - await server.close(); - process.exit(0); - }; - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} - -async function startSSE(flags: StartCommandFlags) { - const logger = createConsoleLogger(flags["log-level"]); - const app = express(); - const mcpServer = createMCPServer({ - logger, - allowedTools: flags.tool, - ...{ apiKey: flags["api-key"] ?? "" }, - chainId: flags["chain-id"], - network: flags.network, - serverURL: flags["server-url"], - serverIdx: flags["server-index"], - }); - let transport: SSEServerTransport | undefined; - const controller = new AbortController(); - - app.get("/sse", async (_req, res) => { - transport = new SSEServerTransport("/message", res); - - await mcpServer.connect(transport); - - mcpServer.server.onclose = async () => { - res.end(); - }; - }); - - app.post("/message", async (req, res) => { - if (!transport) { - throw new Error("Server transport not initialized"); - } - - await transport.handlePostMessage(req, res); - }); - - const httpServer = app.listen(flags.port, "0.0.0.0", () => { - const ha = httpServer.address(); - const host = typeof ha === "string" ? ha : `${ha?.address}:${ha?.port}`; - logger.info("MCP HTTP server started", { host }); - }); - - let closing = false; - controller.signal.addEventListener("abort", async () => { - if (closing) { - logger.info("Received second signal. Forcing shutdown."); - process.exit(1); - } - closing = true; - - logger.info("Shutting down MCP server"); - - await mcpServer.close(); - - logger.info("Shutting down HTTP server"); - - const timer = setTimeout(() => { - logger.info("Forcing shutdown"); - process.exit(1); - }, 5000); - - httpServer.close(() => { - clearTimeout(timer); - logger.info("Graceful shutdown complete"); - process.exit(0); - }); - }); - - const abort = () => controller.abort(); - process.on("SIGTERM", abort); - process.on("SIGINT", abort); -} diff --git a/webhooks/src/mcp-server/console-logger.ts b/webhooks/src/mcp-server/console-logger.ts deleted file mode 100644 index d65a295b..00000000 --- a/webhooks/src/mcp-server/console-logger.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const consoleLoggerLevels = [ - "debug", - "warning", - "info", - "error", -] as const; - -export type ConsoleLoggerLevel = (typeof consoleLoggerLevels)[number]; - -export type ConsoleLogger = { - [key in ConsoleLoggerLevel]: ( - message: string, - data?: Record, - ) => void; -}; - -export function createConsoleLogger(level: ConsoleLoggerLevel): ConsoleLogger { - const min = consoleLoggerLevels.indexOf(level); - const noop = () => {}; - - const logger: ConsoleLogger = { - debug: noop, - warning: noop, - info: noop, - error: noop, - }; - - return consoleLoggerLevels.reduce((logger, level, i) => { - if (i < min) { - return logger; - } - - logger[level] = log.bind(null, level); - - return logger; - }, logger); -} - -function log( - level: ConsoleLoggerLevel, - message: string, - data?: Record, -) { - let line = ""; - const allData = [{ msg: message, l: level }, data]; - - for (const ctx of allData) { - for (const [key, value] of Object.entries(ctx || {})) { - if (value == null) { - line += ` ${key}=<${value}>`; - } else if (typeof value === "function") { - line += ` ${key}=`; - } else if (typeof value === "symbol") { - line += ` ${key}=${value.toString()}`; - } else if (typeof value === "string") { - const v = value.search(/\s/g) >= 0 ? JSON.stringify(value) : value; - line += ` ${key}=${v}`; - } else if (typeof value !== "object") { - line += ` ${key}=${value}`; - } else { - line += ` ${key}="${JSON.stringify(value)}"`; - } - } - } - - console.error(line); -} diff --git a/webhooks/src/mcp-server/extensions.ts b/webhooks/src/mcp-server/extensions.ts deleted file mode 100644 index 7aab2809..00000000 --- a/webhooks/src/mcp-server/extensions.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ZodRawShape } from "zod"; -import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; -import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; -import { ToolDefinition } from "./tools.js"; - -export type Register = { - tool: (def: ToolDefinition) => void; - resource: (def: ResourceDefinition) => void; - resourceTemplate: (def: ResourceTemplateDefinition) => void; - prompt: ( - prompt: PromptDefinition, - ) => void; -}; diff --git a/webhooks/src/mcp-server/mcp-server.ts b/webhooks/src/mcp-server/mcp-server.ts deleted file mode 100644 index e0e914cb..00000000 --- a/webhooks/src/mcp-server/mcp-server.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { buildApplication, buildRouteMap, run } from "@stricli/core"; -import process from "node:process"; -import { buildContext } from "./cli.js"; -import { startCommand } from "./cli/start/command.js"; - -const routes = buildRouteMap({ - routes: { - start: startCommand, - }, - docs: { - brief: "MCP server CLI", - }, -}); - -export const app = buildApplication(routes, { - name: "mcp", - versionInfo: { - currentVersion: "0.5.2", - }, -}); - -run(app, process.argv.slice(2), buildContext(process)); diff --git a/webhooks/src/mcp-server/prompts.ts b/webhooks/src/mcp-server/prompts.ts deleted file mode 100644 index 0cc049c6..00000000 --- a/webhooks/src/mcp-server/prompts.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; -import { - objectOutputType, - ZodOptional, - ZodType, - ZodTypeAny, - ZodTypeDef, -} from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; - -// '@modelcontextprotocol/sdk' currently does not export this type -export type PromptArgsRawShape = { - [k: string]: - | ZodType - | ZodOptional>; -}; - -export type PromptDefinition< - Args extends undefined | PromptArgsRawShape = undefined, -> = Args extends PromptArgsRawShape ? { - name: string; - description?: string; - scopes?: MCPScope[]; - args: Args; - prompt: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - } - : { - name: string; - description?: string; - scopes?: MCPScope[]; - args?: undefined; - prompt: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => GetPromptResult | Promise; - }; - -// Optional function to assist with formatting prompt results -export async function formatResult(value: string): Promise { - return { - messages: [ - { - role: "user", - content: { - type: "text", - text: value, - }, - }, - ], - }; -} - -export function createRegisterPrompt( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): ( - prompt: PromptDefinition, -) => void { - return ( - prompt: PromptDefinition, - ): void => { - const scopes = prompt.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (prompt.args) { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } else { - server.prompt( - prompt.name, - prompt.args, - async (args, ctx) => prompt.prompt(sdk, args, ctx), - ); - } - } else { - if (prompt.description) { - server.prompt( - prompt.name, - prompt.description, - async (ctx) => prompt.prompt(sdk, ctx), - ); - } else { - server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx)); - } - } - - logger.debug("Registered prompt", { name: prompt.name }); - }; -} diff --git a/webhooks/src/mcp-server/resources.ts b/webhooks/src/mcp-server/resources.ts deleted file mode 100644 index ac05763b..00000000 --- a/webhooks/src/mcp-server/resources.ts +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { - McpServer, - ResourceMetadata, - ResourceTemplate, -} from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ReadResourceCallback = ( - client: AvalancheCore, - uri: URL, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceDefinition = { - name: string; - description?: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: string; - read: ReadResourceCallback; -}; - -export type ReadResourceTemplateCallback = ( - client: AvalancheCore, - uri: URL, - vars: Variables, - extra: RequestHandlerExtra, -) => ReadResourceResult | Promise; - -export type ResourceTemplateDefinition = { - name: string; - description: string; - metadata?: ResourceMetadata; - scopes?: MCPScope[]; - resource: ResourceTemplate; - read: ReadResourceTemplateCallback; -}; - -// Optional function to assist with formatting resource results -export async function formatResult( - value: unknown, - uri: URL, - init: { mimeType?: string | undefined; response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { contents: [] }; - } - - let contents: ReadResourceResult["contents"] = []; - - const mimeType = init.mimeType ?? init.response?.headers.get("content-type") - ?? ""; - - if (mimeType.search(/\bjson\b/g) !== -1) { - contents = [{ uri: uri.toString(), mimeType, text: JSON.stringify(value) }]; - } else if ( - mimeType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - contents = [ - { - uri: uri.toString(), - mimeType: "application/json", - text: await stringifySSEToJSON(value), - }, - ]; - } else if ( - (mimeType.startsWith("text/") || mimeType.startsWith("application/")) - && typeof value === "string" - ) { - contents = [{ uri: uri.toString(), mimeType, text: value }]; - } else if (isBinaryData(value)) { - const blob = await valueToBase64(value); - contents = blob == null ? [] : [{ uri: uri.toString(), blob, mimeType }]; - } else { - throw new Error(`Unsupported content type: "${mimeType}"`); - } - - return { contents }; -} - -async function stringifySSEToJSON( - value: AsyncIterable, -): Promise { - const payloads = []; - - for await (const chunk of value) { - payloads.push(chunk); - } - - return JSON.stringify(payloads); -} - -export function createRegisterResource( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceDefinition) => void { - return (resource: ResourceDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, ctx) => resource.read(sdk, uri, ctx), - ); - - logger.debug("Registered resource", { name: resource.name }); - }; -} - -export function createRegisterResourceTemplate( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, -): (resource: ResourceTemplateDefinition) => void { - return (resource: ResourceTemplateDefinition): void => { - const scopes = resource.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - const metadata: ResourceMetadata = { - ...resource.metadata, - description: resource.description, - }; - - server.resource( - resource.name, - resource.resource, - metadata, - async (uri, vars, ctx) => resource.read(sdk, uri, vars, ctx), - ); - - logger.debug("Registered resource template", { name: resource.name }); - }; -} diff --git a/webhooks/src/mcp-server/scopes.ts b/webhooks/src/mcp-server/scopes.ts deleted file mode 100644 index c25696d4..00000000 --- a/webhooks/src/mcp-server/scopes.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export const mcpScopes = [] as const; - -export type MCPScope = (typeof mcpScopes)[number]; diff --git a/webhooks/src/mcp-server/server.ts b/webhooks/src/mcp-server/server.ts deleted file mode 100644 index dba83bc2..00000000 --- a/webhooks/src/mcp-server/server.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { AvalancheCore } from "../core.js"; -import { SDKOptions } from "../lib/config.js"; -import type { ConsoleLogger } from "./console-logger.js"; -import { createRegisterPrompt } from "./prompts.js"; -import { - createRegisterResource, - createRegisterResourceTemplate, -} from "./resources.js"; -import { MCPScope } from "./scopes.js"; -import { createRegisterTool } from "./tools.js"; -import { tool$webhooksAddressesAdd } from "./tools/webhooksAddressesAdd.js"; -import { tool$webhooksAddressesList } from "./tools/webhooksAddressesList.js"; -import { tool$webhooksAddressesRemove } from "./tools/webhooksAddressesRemove.js"; -import { tool$webhooksCreate } from "./tools/webhooksCreate.js"; -import { tool$webhooksDeactivate } from "./tools/webhooksDeactivate.js"; -import { tool$webhooksGenerateOrRotateSharedSecret } from "./tools/webhooksGenerateOrRotateSharedSecret.js"; -import { tool$webhooksGet } from "./tools/webhooksGet.js"; -import { tool$webhooksGetSharedSecret } from "./tools/webhooksGetSharedSecret.js"; -import { tool$webhooksHealthCheck } from "./tools/webhooksHealthCheck.js"; -import { tool$webhooksList } from "./tools/webhooksList.js"; -import { tool$webhooksUpdate } from "./tools/webhooksUpdate.js"; - -export function createMCPServer(deps: { - logger: ConsoleLogger; - allowedTools?: string[] | undefined; - scopes?: MCPScope[] | undefined; - serverURL?: string | undefined; - apiKey?: SDKOptions["apiKey"] | undefined; - chainId?: SDKOptions["chainId"] | undefined; - network?: SDKOptions["network"] | undefined; - serverIdx?: SDKOptions["serverIdx"] | undefined; -}) { - const server = new McpServer({ - name: "Avalanche", - version: "0.5.2", - }); - - const client = new AvalancheCore({ - apiKey: deps.apiKey, - chainId: deps.chainId, - network: deps.network, - serverURL: deps.serverURL, - serverIdx: deps.serverIdx, - }); - - const scopes = new Set(deps.scopes); - - const allowedTools = deps.allowedTools && new Set(deps.allowedTools); - const tool = createRegisterTool( - deps.logger, - server, - client, - scopes, - allowedTools, - ); - const resource = createRegisterResource(deps.logger, server, client, scopes); - const resourceTemplate = createRegisterResourceTemplate( - deps.logger, - server, - client, - scopes, - ); - const prompt = createRegisterPrompt(deps.logger, server, client, scopes); - const register = { tool, resource, resourceTemplate, prompt }; - void register; // suppress unused warnings - - tool(tool$webhooksHealthCheck); - tool(tool$webhooksCreate); - tool(tool$webhooksList); - tool(tool$webhooksGet); - tool(tool$webhooksDeactivate); - tool(tool$webhooksUpdate); - tool(tool$webhooksGenerateOrRotateSharedSecret); - tool(tool$webhooksGetSharedSecret); - tool(tool$webhooksAddressesAdd); - tool(tool$webhooksAddressesRemove); - tool(tool$webhooksAddressesList); - - return server; -} diff --git a/webhooks/src/mcp-server/shared.ts b/webhooks/src/mcp-server/shared.ts deleted file mode 100644 index 9dc6d2f6..00000000 --- a/webhooks/src/mcp-server/shared.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { bytesToBase64 } from "../lib/base64.js"; - -type BinaryData = - | Uint8Array - | ArrayBuffer - | Blob - | ReadableStream - | Response - | string; - -export async function consumeStream( - stream: ReadableStream, -): Promise { - const reader = stream.getReader(); - const chunks: Uint8Array[] = []; - - try { - while (true) { - const { done, value } = await reader.read(); - if (value != null) chunks.push(value); - if (done) break; - } - } finally { - reader.releaseLock(); - } - - return new Uint8Array(await new Blob(chunks).arrayBuffer()); -} - -export function isAsyncIterable( - value: unknown, -): value is AsyncIterable { - return ( - typeof value === "object" && value != null && Symbol.asyncIterator in value - ); -} - -export function isBinaryData(value: unknown): value is BinaryData { - return ( - value instanceof Uint8Array - || value instanceof ArrayBuffer - || value instanceof Blob - || value instanceof ReadableStream - || value instanceof Response - || typeof value === "string" - ); -} - -const base64Schema = z.string().base64(); - -export async function valueToBase64( - value: BinaryData | null | undefined, -): Promise { - if (value == null) { - return null; - } else if (value instanceof Uint8Array) { - return bytesToBase64(value); - } else if (value instanceof ArrayBuffer) { - return bytesToBase64(new Uint8Array(value)); - } else if (value instanceof Response || value instanceof Blob) { - return bytesToBase64(new Uint8Array(await value.arrayBuffer())); - } else if (value instanceof ReadableStream) { - return bytesToBase64(await consumeStream(value)); - } else if (typeof value === "string") { - return base64Schema.parse(value); - } else { - value satisfies never; - throw new Error(`Unsupported image value type: ${typeof value}`); - } -} diff --git a/webhooks/src/mcp-server/tools.ts b/webhooks/src/mcp-server/tools.ts deleted file mode 100644 index 0cfcb691..00000000 --- a/webhooks/src/mcp-server/tools.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; -import { AvalancheCore } from "../core.js"; -import { ConsoleLogger } from "./console-logger.js"; -import { MCPScope } from "./scopes.js"; -import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; - -export type ToolDefinition = - Args extends ZodRawShape ? { - name: string; - description: string; - scopes?: MCPScope[]; - args: Args; - tool: ( - client: AvalancheCore, - args: objectOutputType, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - } - : { - name: string; - description: string; - scopes?: MCPScope[]; - args?: undefined; - tool: ( - client: AvalancheCore, - extra: RequestHandlerExtra, - ) => CallToolResult | Promise; - }; - -// Optional function to assist with formatting tool results -export async function formatResult( - value: unknown, - init: { response?: Response | undefined }, -): Promise { - if (typeof value === "undefined") { - return { content: [] }; - } - - const { response } = init; - const contentType = response?.headers.get("content-type") ?? ""; - let content: CallToolResult["content"] = []; - - if (contentType.search(/\bjson\b/g)) { - content = [{ type: "text", text: JSON.stringify(value) }]; - } else if ( - contentType.startsWith("text/event-stream") - && isAsyncIterable(value) - ) { - content = await consumeSSE(value); - } else if (contentType.startsWith("text/") && typeof value === "string") { - content = [{ type: "text", text: value }]; - } else if (isBinaryData(value) && contentType.startsWith("image/")) { - const data = await valueToBase64(value); - content = data == null - ? [] - : [{ type: "image", data, mimeType: contentType }]; - } else { - return { - content: [{ - type: "text", - text: `Unsupported content type: "${contentType}"`, - }], - isError: true, - }; - } - - return { content }; -} - -async function consumeSSE( - value: AsyncIterable, -): Promise { - const content: CallToolResult["content"] = []; - - for await (const chunk of value) { - if (typeof chunk === "string") { - content.push({ type: "text", text: chunk }); - } else { - content.push({ type: "text", text: JSON.stringify(chunk) }); - } - } - - return content; -} - -export function createRegisterTool( - logger: ConsoleLogger, - server: McpServer, - sdk: AvalancheCore, - allowedScopes: Set, - allowedTools?: Set, -): (tool: ToolDefinition) => void { - return (tool: ToolDefinition): void => { - if (allowedTools && !allowedTools.has(tool.name)) { - return; - } - - const scopes = tool.scopes ?? []; - if (allowedScopes.size > 0 && scopes.length === 0) { - return; - } - - if ( - allowedScopes.size > 0 - && !scopes.every((s: MCPScope) => allowedScopes.has(s)) - ) { - return; - } - - if (tool.args) { - server.tool(tool.name, tool.description, tool.args, async (args, ctx) => { - return tool.tool(sdk, args, ctx); - }); - } else { - server.tool(tool.name, tool.description, async (ctx) => { - return tool.tool(sdk, ctx); - }); - } - - logger.debug("Registered tool", { name: tool.name }); - }; -} diff --git a/webhooks/src/mcp-server/tools/webhooksAddressesAdd.ts b/webhooks/src/mcp-server/tools/webhooksAddressesAdd.ts deleted file mode 100644 index 69f6fe97..00000000 --- a/webhooks/src/mcp-server/tools/webhooksAddressesAdd.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksAddressesAdd } from "../../funcs/webhooksAddressesAdd.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.AddAddressesToWebhookRequest$inboundSchema, -}; - -export const tool$webhooksAddressesAdd: ToolDefinition = { - name: "webhooks-addresses-add", - description: `Add addresses to EVM activity webhook - -Add addresses to webhook. Only valid for EVM activity webhooks.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksAddressesAdd( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksAddressesList.ts b/webhooks/src/mcp-server/tools/webhooksAddressesList.ts deleted file mode 100644 index 68c61bdc..00000000 --- a/webhooks/src/mcp-server/tools/webhooksAddressesList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksAddressesList } from "../../funcs/webhooksAddressesList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetAddressesFromWebhookRequest$inboundSchema, -}; - -export const tool$webhooksAddressesList: ToolDefinition = { - name: "webhooks-addresses-list", - description: `List adresses by EVM activity webhooks - -List adresses by webhook. Only valid for EVM activity webhooks.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksAddressesList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksAddressesRemove.ts b/webhooks/src/mcp-server/tools/webhooksAddressesRemove.ts deleted file mode 100644 index 5780d0a2..00000000 --- a/webhooks/src/mcp-server/tools/webhooksAddressesRemove.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksAddressesRemove } from "../../funcs/webhooksAddressesRemove.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.RemoveAddressesFromWebhookRequest$inboundSchema, -}; - -export const tool$webhooksAddressesRemove: ToolDefinition = { - name: "webhooks-addresses-remove", - description: `Remove addresses from EVM activity webhook - -Remove addresses from webhook. Only valid for EVM activity webhooks.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksAddressesRemove( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksCreate.ts b/webhooks/src/mcp-server/tools/webhooksCreate.ts deleted file mode 100644 index ebed47e6..00000000 --- a/webhooks/src/mcp-server/tools/webhooksCreate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksCreate } from "../../funcs/webhooksCreate.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.CreateWebhookRequest$inboundSchema, -}; - -export const tool$webhooksCreate: ToolDefinition = { - name: "webhooks-create", - description: `Create a webhook - -Create a new webhook.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksCreate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksDeactivate.ts b/webhooks/src/mcp-server/tools/webhooksDeactivate.ts deleted file mode 100644 index fd2ae649..00000000 --- a/webhooks/src/mcp-server/tools/webhooksDeactivate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksDeactivate } from "../../funcs/webhooksDeactivate.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.DeactivateWebhookRequest$inboundSchema, -}; - -export const tool$webhooksDeactivate: ToolDefinition = { - name: "webhooks-deactivate", - description: `Deactivate a webhook - -Deactivates a webhook by ID.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksDeactivate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts b/webhooks/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts deleted file mode 100644 index ffacfb29..00000000 --- a/webhooks/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksGenerateOrRotateSharedSecret } from "../../funcs/webhooksGenerateOrRotateSharedSecret.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$webhooksGenerateOrRotateSharedSecret: ToolDefinition = { - name: "webhooks-generate-or-rotate-shared-secret", - description: `Generate or rotate a shared secret - -Generates a new shared secret or rotate an existing one.`, - tool: async (client, ctx) => { - const [result, apiCall] = await webhooksGenerateOrRotateSharedSecret( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksGet.ts b/webhooks/src/mcp-server/tools/webhooksGet.ts deleted file mode 100644 index aeff362c..00000000 --- a/webhooks/src/mcp-server/tools/webhooksGet.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksGet } from "../../funcs/webhooksGet.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.GetWebhookRequest$inboundSchema, -}; - -export const tool$webhooksGet: ToolDefinition = { - name: "webhooks-get", - description: `Get a webhook by ID - -Retrieves a webhook by ID.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksGet( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksGetSharedSecret.ts b/webhooks/src/mcp-server/tools/webhooksGetSharedSecret.ts deleted file mode 100644 index 63fe1607..00000000 --- a/webhooks/src/mcp-server/tools/webhooksGetSharedSecret.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksGetSharedSecret } from "../../funcs/webhooksGetSharedSecret.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$webhooksGetSharedSecret: ToolDefinition = { - name: "webhooks-get-shared-secret", - description: `Get a shared secret - -Get a previously generated shared secret.`, - tool: async (client, ctx) => { - const [result, apiCall] = await webhooksGetSharedSecret( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksHealthCheck.ts b/webhooks/src/mcp-server/tools/webhooksHealthCheck.ts deleted file mode 100644 index 398f4bc8..00000000 --- a/webhooks/src/mcp-server/tools/webhooksHealthCheck.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksHealthCheck } from "../../funcs/webhooksHealthCheck.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -export const tool$webhooksHealthCheck: ToolDefinition = { - name: "webhooks-health-check", - description: `Get the health of the service - -Check the health of the service.`, - tool: async (client, ctx) => { - const [result, apiCall] = await webhooksHealthCheck( - client, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksList.ts b/webhooks/src/mcp-server/tools/webhooksList.ts deleted file mode 100644 index a933e370..00000000 --- a/webhooks/src/mcp-server/tools/webhooksList.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksList } from "../../funcs/webhooksList.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.ListWebhooksRequest$inboundSchema, -}; - -export const tool$webhooksList: ToolDefinition = { - name: "webhooks-list", - description: `List webhooks - -Lists webhooks for the user.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksList( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value.result; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/mcp-server/tools/webhooksUpdate.ts b/webhooks/src/mcp-server/tools/webhooksUpdate.ts deleted file mode 100644 index 6b1170f9..00000000 --- a/webhooks/src/mcp-server/tools/webhooksUpdate.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksUpdate } from "../../funcs/webhooksUpdate.js"; -import * as operations from "../../models/operations/index.js"; -import { formatResult, ToolDefinition } from "../tools.js"; - -const args = { - request: operations.UpdateWebhookRequest$inboundSchema, -}; - -export const tool$webhooksUpdate: ToolDefinition = { - name: "webhooks-update", - description: `Update a webhook - -Updates an existing webhook.`, - args, - tool: async (client, args, ctx) => { - const [result, apiCall] = await webhooksUpdate( - client, - args.request, - { fetchOptions: { signal: ctx.signal } }, - ).$inspect(); - - if (!result.ok) { - return { - content: [{ type: "text", text: result.error.message }], - isError: true, - }; - } - - const value = result.value; - - return formatResult(value, apiCall); - }, -}; diff --git a/webhooks/src/models/components/accesslistdata.ts b/webhooks/src/models/components/accesslistdata.ts deleted file mode 100644 index 3869e46c..00000000 --- a/webhooks/src/models/components/accesslistdata.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AccessListData = { - /** - * Access Address - */ - accessAddresses: string; - /** - * Storage keys - */ - storageKeys: Array; -}; - -/** @internal */ -export const AccessListData$inboundSchema: z.ZodType< - AccessListData, - z.ZodTypeDef, - unknown -> = z.object({ - accessAddresses: z.string(), - storageKeys: z.array(z.string()), -}); - -/** @internal */ -export type AccessListData$Outbound = { - accessAddresses: string; - storageKeys: Array; -}; - -/** @internal */ -export const AccessListData$outboundSchema: z.ZodType< - AccessListData$Outbound, - z.ZodTypeDef, - AccessListData -> = z.object({ - accessAddresses: z.string(), - storageKeys: z.array(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AccessListData$ { - /** @deprecated use `AccessListData$inboundSchema` instead. */ - export const inboundSchema = AccessListData$inboundSchema; - /** @deprecated use `AccessListData$outboundSchema` instead. */ - export const outboundSchema = AccessListData$outboundSchema; - /** @deprecated use `AccessListData$Outbound` instead. */ - export type Outbound = AccessListData$Outbound; -} - -export function accessListDataToJSON(accessListData: AccessListData): string { - return JSON.stringify(AccessListData$outboundSchema.parse(accessListData)); -} - -export function accessListDataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AccessListData$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AccessListData' from JSON`, - ); -} diff --git a/webhooks/src/models/components/addressactivityeventtype.ts b/webhooks/src/models/components/addressactivityeventtype.ts deleted file mode 100644 index 7e459c53..00000000 --- a/webhooks/src/models/components/addressactivityeventtype.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 AddressActivityEventType = { - AddressActivity: "address_activity", -} as const; -export type AddressActivityEventType = ClosedEnum< - typeof AddressActivityEventType ->; - -/** @internal */ -export const AddressActivityEventType$inboundSchema: z.ZodNativeEnum< - typeof AddressActivityEventType -> = z.nativeEnum(AddressActivityEventType); - -/** @internal */ -export const AddressActivityEventType$outboundSchema: z.ZodNativeEnum< - typeof AddressActivityEventType -> = AddressActivityEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddressActivityEventType$ { - /** @deprecated use `AddressActivityEventType$inboundSchema` instead. */ - export const inboundSchema = AddressActivityEventType$inboundSchema; - /** @deprecated use `AddressActivityEventType$outboundSchema` instead. */ - export const outboundSchema = AddressActivityEventType$outboundSchema; -} diff --git a/webhooks/src/models/components/addressactivitymetadata.ts b/webhooks/src/models/components/addressactivitymetadata.ts deleted file mode 100644 index 2a0aa9e7..00000000 --- a/webhooks/src/models/components/addressactivitymetadata.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddressActivityMetadata = { - /** - * Array of hexadecimal strings of the event signatures. - */ - eventSignatures?: Array | undefined; - /** - * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to. - */ - addresses: Array; -}; - -/** @internal */ -export const AddressActivityMetadata$inboundSchema: z.ZodType< - AddressActivityMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - addresses: z.array(z.string()), -}); - -/** @internal */ -export type AddressActivityMetadata$Outbound = { - eventSignatures?: Array | undefined; - addresses: Array; -}; - -/** @internal */ -export const AddressActivityMetadata$outboundSchema: z.ZodType< - AddressActivityMetadata$Outbound, - z.ZodTypeDef, - AddressActivityMetadata -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - addresses: z.array(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddressActivityMetadata$ { - /** @deprecated use `AddressActivityMetadata$inboundSchema` instead. */ - export const inboundSchema = AddressActivityMetadata$inboundSchema; - /** @deprecated use `AddressActivityMetadata$outboundSchema` instead. */ - export const outboundSchema = AddressActivityMetadata$outboundSchema; - /** @deprecated use `AddressActivityMetadata$Outbound` instead. */ - export type Outbound = AddressActivityMetadata$Outbound; -} - -export function addressActivityMetadataToJSON( - addressActivityMetadata: AddressActivityMetadata, -): string { - return JSON.stringify( - AddressActivityMetadata$outboundSchema.parse(addressActivityMetadata), - ); -} - -export function addressActivityMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddressActivityMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddressActivityMetadata' from JSON`, - ); -} diff --git a/webhooks/src/models/components/addresseschangerequest.ts b/webhooks/src/models/components/addresseschangerequest.ts deleted file mode 100644 index 06309074..00000000 --- a/webhooks/src/models/components/addresseschangerequest.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddressesChangeRequest = { - /** - * Ethereum address(es) for the address_activity event type - */ - addresses: Array; -}; - -/** @internal */ -export const AddressesChangeRequest$inboundSchema: z.ZodType< - AddressesChangeRequest, - z.ZodTypeDef, - unknown -> = z.object({ - addresses: z.array(z.string()), -}); - -/** @internal */ -export type AddressesChangeRequest$Outbound = { - addresses: Array; -}; - -/** @internal */ -export const AddressesChangeRequest$outboundSchema: z.ZodType< - AddressesChangeRequest$Outbound, - z.ZodTypeDef, - AddressesChangeRequest -> = z.object({ - addresses: z.array(z.string()), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddressesChangeRequest$ { - /** @deprecated use `AddressesChangeRequest$inboundSchema` instead. */ - export const inboundSchema = AddressesChangeRequest$inboundSchema; - /** @deprecated use `AddressesChangeRequest$outboundSchema` instead. */ - export const outboundSchema = AddressesChangeRequest$outboundSchema; - /** @deprecated use `AddressesChangeRequest$Outbound` instead. */ - export type Outbound = AddressesChangeRequest$Outbound; -} - -export function addressesChangeRequestToJSON( - addressesChangeRequest: AddressesChangeRequest, -): string { - return JSON.stringify( - AddressesChangeRequest$outboundSchema.parse(addressesChangeRequest), - ); -} - -export function addressesChangeRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddressesChangeRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddressesChangeRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/components/commonbalancetype.ts b/webhooks/src/models/components/commonbalancetype.ts deleted file mode 100644 index 92eb05d3..00000000 --- a/webhooks/src/models/components/commonbalancetype.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Type of balance to monitor - */ -export const CommonBalanceType = { - UnlockedUnstaked: "unlockedUnstaked", - UnlockedStaked: "unlockedStaked", - LockedPlatform: "lockedPlatform", - LockedStakeable: "lockedStakeable", - LockedStaked: "lockedStaked", - PendingStaked: "pendingStaked", - Unlocked: "unlocked", - Locked: "locked", - AtomicMemoryUnlocked: "atomicMemoryUnlocked", - AtomicMemoryLocked: "atomicMemoryLocked", -} as const; -/** - * Type of balance to monitor - */ -export type CommonBalanceType = ClosedEnum; - -/** @internal */ -export const CommonBalanceType$inboundSchema: z.ZodNativeEnum< - typeof CommonBalanceType -> = z.nativeEnum(CommonBalanceType); - -/** @internal */ -export const CommonBalanceType$outboundSchema: z.ZodNativeEnum< - typeof CommonBalanceType -> = CommonBalanceType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CommonBalanceType$ { - /** @deprecated use `CommonBalanceType$inboundSchema` instead. */ - export const inboundSchema = CommonBalanceType$inboundSchema; - /** @deprecated use `CommonBalanceType$outboundSchema` instead. */ - export const outboundSchema = CommonBalanceType$outboundSchema; -} diff --git a/webhooks/src/models/components/erctoken.ts b/webhooks/src/models/components/erctoken.ts deleted file mode 100644 index ab7a243c..00000000 --- a/webhooks/src/models/components/erctoken.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ERCToken = { - /** - * Token contract address - */ - address: string; - /** - * Token name - */ - name: string; - /** - * Token symbol - */ - symbol: string; - /** - * Token decimals - */ - decimals: number; - /** - * Value including decimals - */ - valueWithDecimals: string; -}; - -/** @internal */ -export const ERCToken$inboundSchema: z.ZodType< - ERCToken, - z.ZodTypeDef, - unknown -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - valueWithDecimals: z.string(), -}); - -/** @internal */ -export type ERCToken$Outbound = { - address: string; - name: string; - symbol: string; - decimals: number; - valueWithDecimals: string; -}; - -/** @internal */ -export const ERCToken$outboundSchema: z.ZodType< - ERCToken$Outbound, - z.ZodTypeDef, - ERCToken -> = z.object({ - address: z.string(), - name: z.string(), - symbol: z.string(), - decimals: z.number(), - valueWithDecimals: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ERCToken$ { - /** @deprecated use `ERCToken$inboundSchema` instead. */ - export const inboundSchema = ERCToken$inboundSchema; - /** @deprecated use `ERCToken$outboundSchema` instead. */ - export const outboundSchema = ERCToken$outboundSchema; - /** @deprecated use `ERCToken$Outbound` instead. */ - export type Outbound = ERCToken$Outbound; -} - -export function ercTokenToJSON(ercToken: ERCToken): string { - return JSON.stringify(ERCToken$outboundSchema.parse(ercToken)); -} - -export function ercTokenFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ERCToken$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ERCToken' from JSON`, - ); -} diff --git a/webhooks/src/models/components/erctransfer.ts b/webhooks/src/models/components/erctransfer.ts deleted file mode 100644 index b05f2e5b..00000000 --- a/webhooks/src/models/components/erctransfer.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ERCToken, - ERCToken$inboundSchema, - ERCToken$Outbound, - ERCToken$outboundSchema, -} from "./erctoken.js"; - -export type ERCTransfer = { - /** - * Transaction hash - */ - transactionHash: string; - /** - * Transfer type - */ - type: string; - /** - * Sender address - */ - from: string; - /** - * Recipient address - */ - to: string; - /** - * Amount transferred - */ - value: string; - /** - * Token Id - */ - tokenId?: string | undefined; - /** - * Block timestamp - */ - blockTimestamp: number; - /** - * Log index - */ - logIndex: number; - /** - * erc20 Token details - */ - erc20Token?: ERCToken | undefined; - /** - * erc721 Token details - */ - erc721Token?: ERCToken | undefined; - /** - * erc1155 Token details - */ - erc1155Token?: ERCToken | undefined; -}; - -/** @internal */ -export const ERCTransfer$inboundSchema: z.ZodType< - ERCTransfer, - z.ZodTypeDef, - unknown -> = z.object({ - transactionHash: z.string(), - type: z.string(), - from: z.string(), - to: z.string(), - value: z.string(), - tokenId: z.string().optional(), - blockTimestamp: z.number(), - logIndex: z.number(), - erc20Token: ERCToken$inboundSchema.optional(), - erc721Token: ERCToken$inboundSchema.optional(), - erc1155Token: ERCToken$inboundSchema.optional(), -}); - -/** @internal */ -export type ERCTransfer$Outbound = { - transactionHash: string; - type: string; - from: string; - to: string; - value: string; - tokenId?: string | undefined; - blockTimestamp: number; - logIndex: number; - erc20Token?: ERCToken$Outbound | undefined; - erc721Token?: ERCToken$Outbound | undefined; - erc1155Token?: ERCToken$Outbound | undefined; -}; - -/** @internal */ -export const ERCTransfer$outboundSchema: z.ZodType< - ERCTransfer$Outbound, - z.ZodTypeDef, - ERCTransfer -> = z.object({ - transactionHash: z.string(), - type: z.string(), - from: z.string(), - to: z.string(), - value: z.string(), - tokenId: z.string().optional(), - blockTimestamp: z.number(), - logIndex: z.number(), - erc20Token: ERCToken$outboundSchema.optional(), - erc721Token: ERCToken$outboundSchema.optional(), - erc1155Token: ERCToken$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ERCTransfer$ { - /** @deprecated use `ERCTransfer$inboundSchema` instead. */ - export const inboundSchema = ERCTransfer$inboundSchema; - /** @deprecated use `ERCTransfer$outboundSchema` instead. */ - export const outboundSchema = ERCTransfer$outboundSchema; - /** @deprecated use `ERCTransfer$Outbound` instead. */ - export type Outbound = ERCTransfer$Outbound; -} - -export function ercTransferToJSON(ercTransfer: ERCTransfer): string { - return JSON.stringify(ERCTransfer$outboundSchema.parse(ercTransfer)); -} - -export function ercTransferFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ERCTransfer$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ERCTransfer' from JSON`, - ); -} diff --git a/webhooks/src/models/components/evmaddressactivityrequest.ts b/webhooks/src/models/components/evmaddressactivityrequest.ts deleted file mode 100644 index 79c14dc7..00000000 --- a/webhooks/src/models/components/evmaddressactivityrequest.ts +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AddressActivityMetadata, - AddressActivityMetadata$inboundSchema, - AddressActivityMetadata$Outbound, - AddressActivityMetadata$outboundSchema, -} from "./addressactivitymetadata.js"; - -export const EVMAddressActivityRequestEventType = { - AddressActivity: "address_activity", -} as const; -export type EVMAddressActivityRequestEventType = ClosedEnum< - typeof EVMAddressActivityRequestEventType ->; - -export type EVMAddressActivityRequestMetadata = AddressActivityMetadata; - -export type EVMAddressActivityRequest = { - eventType: EVMAddressActivityRequestEventType; - url: string; - name?: string | undefined; - description?: string | undefined; - chainId: string; - metadata: AddressActivityMetadata; - /** - * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. - */ - includeInternalTxs?: boolean | undefined; - /** - * Whether to include logs in the webhook payload. - */ - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const EVMAddressActivityRequestEventType$inboundSchema: z.ZodNativeEnum< - typeof EVMAddressActivityRequestEventType -> = z.nativeEnum(EVMAddressActivityRequestEventType); - -/** @internal */ -export const EVMAddressActivityRequestEventType$outboundSchema: z.ZodNativeEnum< - typeof EVMAddressActivityRequestEventType -> = EVMAddressActivityRequestEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMAddressActivityRequestEventType$ { - /** @deprecated use `EVMAddressActivityRequestEventType$inboundSchema` instead. */ - export const inboundSchema = EVMAddressActivityRequestEventType$inboundSchema; - /** @deprecated use `EVMAddressActivityRequestEventType$outboundSchema` instead. */ - export const outboundSchema = - EVMAddressActivityRequestEventType$outboundSchema; -} - -/** @internal */ -export const EVMAddressActivityRequestMetadata$inboundSchema: z.ZodType< - EVMAddressActivityRequestMetadata, - z.ZodTypeDef, - unknown -> = AddressActivityMetadata$inboundSchema; - -/** @internal */ -export type EVMAddressActivityRequestMetadata$Outbound = - AddressActivityMetadata$Outbound; - -/** @internal */ -export const EVMAddressActivityRequestMetadata$outboundSchema: z.ZodType< - EVMAddressActivityRequestMetadata$Outbound, - z.ZodTypeDef, - EVMAddressActivityRequestMetadata -> = AddressActivityMetadata$outboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMAddressActivityRequestMetadata$ { - /** @deprecated use `EVMAddressActivityRequestMetadata$inboundSchema` instead. */ - export const inboundSchema = EVMAddressActivityRequestMetadata$inboundSchema; - /** @deprecated use `EVMAddressActivityRequestMetadata$outboundSchema` instead. */ - export const outboundSchema = - EVMAddressActivityRequestMetadata$outboundSchema; - /** @deprecated use `EVMAddressActivityRequestMetadata$Outbound` instead. */ - export type Outbound = EVMAddressActivityRequestMetadata$Outbound; -} - -export function evmAddressActivityRequestMetadataToJSON( - evmAddressActivityRequestMetadata: EVMAddressActivityRequestMetadata, -): string { - return JSON.stringify( - EVMAddressActivityRequestMetadata$outboundSchema.parse( - evmAddressActivityRequestMetadata, - ), - ); -} - -export function evmAddressActivityRequestMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EVMAddressActivityRequestMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EVMAddressActivityRequestMetadata' from JSON`, - ); -} - -/** @internal */ -export const EVMAddressActivityRequest$inboundSchema: z.ZodType< - EVMAddressActivityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - eventType: EVMAddressActivityRequestEventType$inboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - chainId: z.string(), - metadata: AddressActivityMetadata$inboundSchema, - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** @internal */ -export type EVMAddressActivityRequest$Outbound = { - eventType: string; - url: string; - name?: string | undefined; - description?: string | undefined; - chainId: string; - metadata: AddressActivityMetadata$Outbound; - includeInternalTxs?: boolean | undefined; - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const EVMAddressActivityRequest$outboundSchema: z.ZodType< - EVMAddressActivityRequest$Outbound, - z.ZodTypeDef, - EVMAddressActivityRequest -> = z.object({ - eventType: EVMAddressActivityRequestEventType$outboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - chainId: z.string(), - metadata: AddressActivityMetadata$outboundSchema, - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMAddressActivityRequest$ { - /** @deprecated use `EVMAddressActivityRequest$inboundSchema` instead. */ - export const inboundSchema = EVMAddressActivityRequest$inboundSchema; - /** @deprecated use `EVMAddressActivityRequest$outboundSchema` instead. */ - export const outboundSchema = EVMAddressActivityRequest$outboundSchema; - /** @deprecated use `EVMAddressActivityRequest$Outbound` instead. */ - export type Outbound = EVMAddressActivityRequest$Outbound; -} - -export function evmAddressActivityRequestToJSON( - evmAddressActivityRequest: EVMAddressActivityRequest, -): string { - return JSON.stringify( - EVMAddressActivityRequest$outboundSchema.parse(evmAddressActivityRequest), - ); -} - -export function evmAddressActivityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EVMAddressActivityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EVMAddressActivityRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/components/evmaddressactivityresponse.ts b/webhooks/src/models/components/evmaddressactivityresponse.ts deleted file mode 100644 index df688a4c..00000000 --- a/webhooks/src/models/components/evmaddressactivityresponse.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AddressActivityEventType, - AddressActivityEventType$inboundSchema, - AddressActivityEventType$outboundSchema, -} from "./addressactivityeventtype.js"; -import { - AddressActivityMetadata, - AddressActivityMetadata$inboundSchema, - AddressActivityMetadata$Outbound, - AddressActivityMetadata$outboundSchema, -} from "./addressactivitymetadata.js"; -import { - WebhookStatusType, - WebhookStatusType$inboundSchema, - WebhookStatusType$outboundSchema, -} from "./webhookstatustype.js"; - -export type EVMAddressActivityResponse = { - id: string; - url: string; - chainId: string; - status: WebhookStatusType; - createdAt: number; - name: string; - description: string; - eventType: AddressActivityEventType; - metadata: AddressActivityMetadata; - /** - * Whether to include traces in the webhook payload. - */ - includeInternalTxs?: boolean | undefined; - /** - * Whether to include logs in the webhook payload. - */ - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const EVMAddressActivityResponse$inboundSchema: z.ZodType< - EVMAddressActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$inboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: AddressActivityEventType$inboundSchema, - metadata: AddressActivityMetadata$inboundSchema, - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** @internal */ -export type EVMAddressActivityResponse$Outbound = { - id: string; - url: string; - chainId: string; - status: string; - createdAt: number; - name: string; - description: string; - eventType: string; - metadata: AddressActivityMetadata$Outbound; - includeInternalTxs?: boolean | undefined; - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const EVMAddressActivityResponse$outboundSchema: z.ZodType< - EVMAddressActivityResponse$Outbound, - z.ZodTypeDef, - EVMAddressActivityResponse -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$outboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: AddressActivityEventType$outboundSchema, - metadata: AddressActivityMetadata$outboundSchema, - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EVMAddressActivityResponse$ { - /** @deprecated use `EVMAddressActivityResponse$inboundSchema` instead. */ - export const inboundSchema = EVMAddressActivityResponse$inboundSchema; - /** @deprecated use `EVMAddressActivityResponse$outboundSchema` instead. */ - export const outboundSchema = EVMAddressActivityResponse$outboundSchema; - /** @deprecated use `EVMAddressActivityResponse$Outbound` instead. */ - export type Outbound = EVMAddressActivityResponse$Outbound; -} - -export function evmAddressActivityResponseToJSON( - evmAddressActivityResponse: EVMAddressActivityResponse, -): string { - return JSON.stringify( - EVMAddressActivityResponse$outboundSchema.parse(evmAddressActivityResponse), - ); -} - -export function evmAddressActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => EVMAddressActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'EVMAddressActivityResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/globalparamnetwork.ts b/webhooks/src/models/components/globalparamnetwork.ts deleted file mode 100644 index 41aa1b36..00000000 --- a/webhooks/src/models/components/globalparamnetwork.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 GlobalParamNetwork = { - Mainnet: "mainnet", - Fuji: "fuji", - Testnet: "testnet", -} as const; -export type GlobalParamNetwork = ClosedEnum; - -/** @internal */ -export const GlobalParamNetwork$inboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = z.nativeEnum(GlobalParamNetwork); - -/** @internal */ -export const GlobalParamNetwork$outboundSchema: z.ZodNativeEnum< - typeof GlobalParamNetwork -> = GlobalParamNetwork$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GlobalParamNetwork$ { - /** @deprecated use `GlobalParamNetwork$inboundSchema` instead. */ - export const inboundSchema = GlobalParamNetwork$inboundSchema; - /** @deprecated use `GlobalParamNetwork$outboundSchema` instead. */ - export const outboundSchema = GlobalParamNetwork$outboundSchema; -} diff --git a/webhooks/src/models/components/healthcheckresultdto.ts b/webhooks/src/models/components/healthcheckresultdto.ts deleted file mode 100644 index 97df22fe..00000000 --- a/webhooks/src/models/components/healthcheckresultdto.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - HealthIndicatorResultDto, - HealthIndicatorResultDto$inboundSchema, - HealthIndicatorResultDto$Outbound, - HealthIndicatorResultDto$outboundSchema, -} from "./healthindicatorresultdto.js"; - -export const HealthCheckResultDtoStatus = { - Error: "error", - Ok: "ok", - ShuttingDown: "shutting_down", -} as const; -export type HealthCheckResultDtoStatus = ClosedEnum< - typeof HealthCheckResultDtoStatus ->; - -export type HealthCheckResultDto = { - status?: HealthCheckResultDtoStatus | undefined; - info?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = z.nativeEnum(HealthCheckResultDtoStatus); - -/** @internal */ -export const HealthCheckResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthCheckResultDtoStatus -> = HealthCheckResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDtoStatus$ { - /** @deprecated use `HealthCheckResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDtoStatus$inboundSchema; - /** @deprecated use `HealthCheckResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthCheckResultDto$inboundSchema: z.ZodType< - HealthCheckResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthCheckResultDtoStatus$inboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)).optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$inboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$inboundSchema).optional(), -}); - -/** @internal */ -export type HealthCheckResultDto$Outbound = { - status?: string | undefined; - info?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - error?: { [k: string]: HealthIndicatorResultDto$Outbound } | null | undefined; - details?: { [k: string]: HealthIndicatorResultDto$Outbound } | undefined; -}; - -/** @internal */ -export const HealthCheckResultDto$outboundSchema: z.ZodType< - HealthCheckResultDto$Outbound, - z.ZodTypeDef, - HealthCheckResultDto -> = z.object({ - status: HealthCheckResultDtoStatus$outboundSchema.optional(), - info: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - error: z.nullable(z.record(HealthIndicatorResultDto$outboundSchema)) - .optional(), - details: z.record(HealthIndicatorResultDto$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthCheckResultDto$ { - /** @deprecated use `HealthCheckResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthCheckResultDto$inboundSchema; - /** @deprecated use `HealthCheckResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthCheckResultDto$outboundSchema; - /** @deprecated use `HealthCheckResultDto$Outbound` instead. */ - export type Outbound = HealthCheckResultDto$Outbound; -} - -export function healthCheckResultDtoToJSON( - healthCheckResultDto: HealthCheckResultDto, -): string { - return JSON.stringify( - HealthCheckResultDto$outboundSchema.parse(healthCheckResultDto), - ); -} - -export function healthCheckResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthCheckResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthCheckResultDto' from JSON`, - ); -} diff --git a/webhooks/src/models/components/healthindicatorresultdto.ts b/webhooks/src/models/components/healthindicatorresultdto.ts deleted file mode 100644 index 9f05c384..00000000 --- a/webhooks/src/models/components/healthindicatorresultdto.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Status of the health indicator. - */ -export const HealthIndicatorResultDtoStatus = { - Up: "up", - Down: "down", -} as const; -/** - * Status of the health indicator. - */ -export type HealthIndicatorResultDtoStatus = ClosedEnum< - typeof HealthIndicatorResultDtoStatus ->; - -export type HealthIndicatorResultDto = { - /** - * Status of the health indicator. - */ - status?: HealthIndicatorResultDtoStatus | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDtoStatus$inboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = z.nativeEnum(HealthIndicatorResultDtoStatus); - -/** @internal */ -export const HealthIndicatorResultDtoStatus$outboundSchema: z.ZodNativeEnum< - typeof HealthIndicatorResultDtoStatus -> = HealthIndicatorResultDtoStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDtoStatus$ { - /** @deprecated use `HealthIndicatorResultDtoStatus$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDtoStatus$inboundSchema; - /** @deprecated use `HealthIndicatorResultDtoStatus$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDtoStatus$outboundSchema; -} - -/** @internal */ -export const HealthIndicatorResultDto$inboundSchema: z.ZodType< - HealthIndicatorResultDto, - z.ZodTypeDef, - unknown -> = z.object({ - status: HealthIndicatorResultDtoStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type HealthIndicatorResultDto$Outbound = { - status?: string | undefined; -}; - -/** @internal */ -export const HealthIndicatorResultDto$outboundSchema: z.ZodType< - HealthIndicatorResultDto$Outbound, - z.ZodTypeDef, - HealthIndicatorResultDto -> = z.object({ - status: HealthIndicatorResultDtoStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace HealthIndicatorResultDto$ { - /** @deprecated use `HealthIndicatorResultDto$inboundSchema` instead. */ - export const inboundSchema = HealthIndicatorResultDto$inboundSchema; - /** @deprecated use `HealthIndicatorResultDto$outboundSchema` instead. */ - export const outboundSchema = HealthIndicatorResultDto$outboundSchema; - /** @deprecated use `HealthIndicatorResultDto$Outbound` instead. */ - export type Outbound = HealthIndicatorResultDto$Outbound; -} - -export function healthIndicatorResultDtoToJSON( - healthIndicatorResultDto: HealthIndicatorResultDto, -): string { - return JSON.stringify( - HealthIndicatorResultDto$outboundSchema.parse(healthIndicatorResultDto), - ); -} - -export function healthIndicatorResultDtoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => HealthIndicatorResultDto$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'HealthIndicatorResultDto' from JSON`, - ); -} diff --git a/webhooks/src/models/components/index.ts b/webhooks/src/models/components/index.ts deleted file mode 100644 index b59e8abc..00000000 --- a/webhooks/src/models/components/index.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./accesslistdata.js"; -export * from "./addressactivityeventtype.js"; -export * from "./addressactivitymetadata.js"; -export * from "./addresseschangerequest.js"; -export * from "./commonbalancetype.js"; -export * from "./erctoken.js"; -export * from "./erctransfer.js"; -export * from "./evmaddressactivityrequest.js"; -export * from "./evmaddressactivityresponse.js"; -export * from "./globalparamnetwork.js"; -export * from "./healthcheckresultdto.js"; -export * from "./healthindicatorresultdto.js"; -export * from "./listwebhookaddressesresponse.js"; -export * from "./listwebhooksresponse.js"; -export * from "./log.js"; -export * from "./networktokeninfo.js"; -export * from "./platformaddressactivitykeytype.js"; -export * from "./primarynetworkaddressactivityeventtype.js"; -export * from "./primarynetworkaddressactivitymetadata.js"; -export * from "./primarynetworkaddressactivityrequest.js"; -export * from "./primarynetworkaddressactivityresponse.js"; -export * from "./primarynetworkaddressactivitysubevents.js"; -export * from "./primarynetworkaddressactivitysubeventtype.js"; -export * from "./primarynetworkbalancethresholdfilter.js"; -export * from "./primarynetworktype.js"; -export * from "./security.js"; -export * from "./sharedsecretsresponse.js"; -export * from "./transaction.js"; -export * from "./transactionevent.js"; -export * from "./updatewebhookrequest.js"; -export * from "./validatoractivityeventtype.js"; -export * from "./validatoractivitykeytype.js"; -export * from "./validatoractivitymetadata.js"; -export * from "./validatoractivityrequest.js"; -export * from "./validatoractivityresponse.js"; -export * from "./validatoractivitysubevents.js"; -export * from "./webhookaddressactivityresponse.js"; -export * from "./webhookinternaltransaction.js"; -export * from "./webhookstatus.js"; -export * from "./webhookstatustype.js"; diff --git a/webhooks/src/models/components/listwebhookaddressesresponse.ts b/webhooks/src/models/components/listwebhookaddressesresponse.ts deleted file mode 100644 index 5fa5e74e..00000000 --- a/webhooks/src/models/components/listwebhookaddressesresponse.ts +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListWebhookAddressesResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - addresses: Array; - totalAddresses: number; -}; - -/** @internal */ -export const ListWebhookAddressesResponse$inboundSchema: z.ZodType< - ListWebhookAddressesResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(z.string()), - totalAddresses: z.number(), -}); - -/** @internal */ -export type ListWebhookAddressesResponse$Outbound = { - nextPageToken?: string | undefined; - addresses: Array; - totalAddresses: number; -}; - -/** @internal */ -export const ListWebhookAddressesResponse$outboundSchema: z.ZodType< - ListWebhookAddressesResponse$Outbound, - z.ZodTypeDef, - ListWebhookAddressesResponse -> = z.object({ - nextPageToken: z.string().optional(), - addresses: z.array(z.string()), - totalAddresses: 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 ListWebhookAddressesResponse$ { - /** @deprecated use `ListWebhookAddressesResponse$inboundSchema` instead. */ - export const inboundSchema = ListWebhookAddressesResponse$inboundSchema; - /** @deprecated use `ListWebhookAddressesResponse$outboundSchema` instead. */ - export const outboundSchema = ListWebhookAddressesResponse$outboundSchema; - /** @deprecated use `ListWebhookAddressesResponse$Outbound` instead. */ - export type Outbound = ListWebhookAddressesResponse$Outbound; -} - -export function listWebhookAddressesResponseToJSON( - listWebhookAddressesResponse: ListWebhookAddressesResponse, -): string { - return JSON.stringify( - ListWebhookAddressesResponse$outboundSchema.parse( - listWebhookAddressesResponse, - ), - ); -} - -export function listWebhookAddressesResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListWebhookAddressesResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListWebhookAddressesResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/listwebhooksresponse.ts b/webhooks/src/models/components/listwebhooksresponse.ts deleted file mode 100644 index 940b57a8..00000000 --- a/webhooks/src/models/components/listwebhooksresponse.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - EVMAddressActivityResponse, - EVMAddressActivityResponse$inboundSchema, - EVMAddressActivityResponse$Outbound, - EVMAddressActivityResponse$outboundSchema, -} from "./evmaddressactivityresponse.js"; -import { - PrimaryNetworkAddressActivityResponse, - PrimaryNetworkAddressActivityResponse$inboundSchema, - PrimaryNetworkAddressActivityResponse$Outbound, - PrimaryNetworkAddressActivityResponse$outboundSchema, -} from "./primarynetworkaddressactivityresponse.js"; -import { - ValidatorActivityResponse, - ValidatorActivityResponse$inboundSchema, - ValidatorActivityResponse$Outbound, - ValidatorActivityResponse$outboundSchema, -} from "./validatoractivityresponse.js"; - -export type Webhook = - | EVMAddressActivityResponse - | PrimaryNetworkAddressActivityResponse - | ValidatorActivityResponse; - -export type ListWebhooksResponse = { - /** - * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. - */ - nextPageToken?: string | undefined; - webhooks: Array< - | EVMAddressActivityResponse - | PrimaryNetworkAddressActivityResponse - | ValidatorActivityResponse - >; -}; - -/** @internal */ -export const Webhook$inboundSchema: z.ZodType = - z.union([ - EVMAddressActivityResponse$inboundSchema, - PrimaryNetworkAddressActivityResponse$inboundSchema, - ValidatorActivityResponse$inboundSchema, - ]); - -/** @internal */ -export type Webhook$Outbound = - | EVMAddressActivityResponse$Outbound - | PrimaryNetworkAddressActivityResponse$Outbound - | ValidatorActivityResponse$Outbound; - -/** @internal */ -export const Webhook$outboundSchema: z.ZodType< - Webhook$Outbound, - z.ZodTypeDef, - Webhook -> = z.union([ - EVMAddressActivityResponse$outboundSchema, - PrimaryNetworkAddressActivityResponse$outboundSchema, - ValidatorActivityResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Webhook$ { - /** @deprecated use `Webhook$inboundSchema` instead. */ - export const inboundSchema = Webhook$inboundSchema; - /** @deprecated use `Webhook$outboundSchema` instead. */ - export const outboundSchema = Webhook$outboundSchema; - /** @deprecated use `Webhook$Outbound` instead. */ - export type Outbound = Webhook$Outbound; -} - -export function webhookToJSON(webhook: Webhook): string { - return JSON.stringify(Webhook$outboundSchema.parse(webhook)); -} - -export function webhookFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Webhook$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Webhook' from JSON`, - ); -} - -/** @internal */ -export const ListWebhooksResponse$inboundSchema: z.ZodType< - ListWebhooksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - nextPageToken: z.string().optional(), - webhooks: z.array( - z.union([ - EVMAddressActivityResponse$inboundSchema, - PrimaryNetworkAddressActivityResponse$inboundSchema, - ValidatorActivityResponse$inboundSchema, - ]), - ), -}); - -/** @internal */ -export type ListWebhooksResponse$Outbound = { - nextPageToken?: string | undefined; - webhooks: Array< - | EVMAddressActivityResponse$Outbound - | PrimaryNetworkAddressActivityResponse$Outbound - | ValidatorActivityResponse$Outbound - >; -}; - -/** @internal */ -export const ListWebhooksResponse$outboundSchema: z.ZodType< - ListWebhooksResponse$Outbound, - z.ZodTypeDef, - ListWebhooksResponse -> = z.object({ - nextPageToken: z.string().optional(), - webhooks: z.array( - z.union([ - EVMAddressActivityResponse$outboundSchema, - PrimaryNetworkAddressActivityResponse$outboundSchema, - ValidatorActivityResponse$outboundSchema, - ]), - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListWebhooksResponse$ { - /** @deprecated use `ListWebhooksResponse$inboundSchema` instead. */ - export const inboundSchema = ListWebhooksResponse$inboundSchema; - /** @deprecated use `ListWebhooksResponse$outboundSchema` instead. */ - export const outboundSchema = ListWebhooksResponse$outboundSchema; - /** @deprecated use `ListWebhooksResponse$Outbound` instead. */ - export type Outbound = ListWebhooksResponse$Outbound; -} - -export function listWebhooksResponseToJSON( - listWebhooksResponse: ListWebhooksResponse, -): string { - return JSON.stringify( - ListWebhooksResponse$outboundSchema.parse(listWebhooksResponse), - ); -} - -export function listWebhooksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListWebhooksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListWebhooksResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/log.ts b/webhooks/src/models/components/log.ts deleted file mode 100644 index 8b1f273c..00000000 --- a/webhooks/src/models/components/log.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type Log = { - /** - * Contract address - */ - address: string; - /** - * First topic - */ - topic0: string; - /** - * Second topic (optional) - */ - topic1?: string | undefined; - /** - * Third topic (optional) - */ - topic2?: string | undefined; - /** - * Fourth topic (optional) - */ - topic3?: string | undefined; - /** - * Event data - */ - data: string; - /** - * Transaction index - */ - transactionIndex: number; - /** - * Log index - */ - logIndex: number; - /** - * Indicates if the log was removed - */ - removed: boolean; -}; - -/** @internal */ -export const Log$inboundSchema: z.ZodType = z - .object({ - address: z.string(), - topic0: z.string(), - topic1: z.string().optional(), - topic2: z.string().optional(), - topic3: z.string().optional(), - data: z.string(), - transactionIndex: z.number(), - logIndex: z.number(), - removed: z.boolean(), - }); - -/** @internal */ -export type Log$Outbound = { - address: string; - topic0: string; - topic1?: string | undefined; - topic2?: string | undefined; - topic3?: string | undefined; - data: string; - transactionIndex: number; - logIndex: number; - removed: boolean; -}; - -/** @internal */ -export const Log$outboundSchema: z.ZodType = z - .object({ - address: z.string(), - topic0: z.string(), - topic1: z.string().optional(), - topic2: z.string().optional(), - topic3: z.string().optional(), - data: z.string(), - transactionIndex: z.number(), - logIndex: z.number(), - removed: z.boolean(), - }); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Log$ { - /** @deprecated use `Log$inboundSchema` instead. */ - export const inboundSchema = Log$inboundSchema; - /** @deprecated use `Log$outboundSchema` instead. */ - export const outboundSchema = Log$outboundSchema; - /** @deprecated use `Log$Outbound` instead. */ - export type Outbound = Log$Outbound; -} - -export function logToJSON(log: Log): string { - return JSON.stringify(Log$outboundSchema.parse(log)); -} - -export function logFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Log$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Log' from JSON`, - ); -} diff --git a/webhooks/src/models/components/networktokeninfo.ts b/webhooks/src/models/components/networktokeninfo.ts deleted file mode 100644 index 71480126..00000000 --- a/webhooks/src/models/components/networktokeninfo.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type NetworkTokenInfo = { - /** - * Token name - */ - tokenName?: string | undefined; - /** - * Token symbol - */ - tokenSymbol?: string | undefined; - /** - * Token decimals - */ - tokenDecimals?: number | undefined; - /** - * Value including decimals - */ - valueWithDecimals?: string | undefined; -}; - -/** @internal */ -export const NetworkTokenInfo$inboundSchema: z.ZodType< - NetworkTokenInfo, - z.ZodTypeDef, - unknown -> = z.object({ - tokenName: z.string().optional(), - tokenSymbol: z.string().optional(), - tokenDecimals: z.number().optional(), - valueWithDecimals: z.string().optional(), -}); - -/** @internal */ -export type NetworkTokenInfo$Outbound = { - tokenName?: string | undefined; - tokenSymbol?: string | undefined; - tokenDecimals?: number | undefined; - valueWithDecimals?: string | undefined; -}; - -/** @internal */ -export const NetworkTokenInfo$outboundSchema: z.ZodType< - NetworkTokenInfo$Outbound, - z.ZodTypeDef, - NetworkTokenInfo -> = z.object({ - tokenName: z.string().optional(), - tokenSymbol: z.string().optional(), - tokenDecimals: z.number().optional(), - valueWithDecimals: 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 NetworkTokenInfo$ { - /** @deprecated use `NetworkTokenInfo$inboundSchema` instead. */ - export const inboundSchema = NetworkTokenInfo$inboundSchema; - /** @deprecated use `NetworkTokenInfo$outboundSchema` instead. */ - export const outboundSchema = NetworkTokenInfo$outboundSchema; - /** @deprecated use `NetworkTokenInfo$Outbound` instead. */ - export type Outbound = NetworkTokenInfo$Outbound; -} - -export function networkTokenInfoToJSON( - networkTokenInfo: NetworkTokenInfo, -): string { - return JSON.stringify( - NetworkTokenInfo$outboundSchema.parse(networkTokenInfo), - ); -} - -export function networkTokenInfoFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NetworkTokenInfo$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NetworkTokenInfo' from JSON`, - ); -} diff --git a/webhooks/src/models/components/platformaddressactivitykeytype.ts b/webhooks/src/models/components/platformaddressactivitykeytype.ts deleted file mode 100644 index 6e30d7a0..00000000 --- a/webhooks/src/models/components/platformaddressactivitykeytype.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * The type of key to monitor for the address activity event type. - */ -export const PlatformAddressActivityKeyType = { - Addresses: "addresses", -} as const; -/** - * The type of key to monitor for the address activity event type. - */ -export type PlatformAddressActivityKeyType = ClosedEnum< - typeof PlatformAddressActivityKeyType ->; - -/** @internal */ -export const PlatformAddressActivityKeyType$inboundSchema: z.ZodNativeEnum< - typeof PlatformAddressActivityKeyType -> = z.nativeEnum(PlatformAddressActivityKeyType); - -/** @internal */ -export const PlatformAddressActivityKeyType$outboundSchema: z.ZodNativeEnum< - typeof PlatformAddressActivityKeyType -> = PlatformAddressActivityKeyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PlatformAddressActivityKeyType$ { - /** @deprecated use `PlatformAddressActivityKeyType$inboundSchema` instead. */ - export const inboundSchema = PlatformAddressActivityKeyType$inboundSchema; - /** @deprecated use `PlatformAddressActivityKeyType$outboundSchema` instead. */ - export const outboundSchema = PlatformAddressActivityKeyType$outboundSchema; -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivityeventtype.ts b/webhooks/src/models/components/primarynetworkaddressactivityeventtype.ts deleted file mode 100644 index 2ba15ae1..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivityeventtype.ts +++ /dev/null @@ -1,37 +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 PrimaryNetworkAddressActivityEventType = { - PrimaryNetworkAddressActivity: "primary_network_address_activity", -} as const; -export type PrimaryNetworkAddressActivityEventType = ClosedEnum< - typeof PrimaryNetworkAddressActivityEventType ->; - -/** @internal */ -export const PrimaryNetworkAddressActivityEventType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - PrimaryNetworkAddressActivityEventType, - ); - -/** @internal */ -export const PrimaryNetworkAddressActivityEventType$outboundSchema: - z.ZodNativeEnum = - PrimaryNetworkAddressActivityEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityEventType$ { - /** @deprecated use `PrimaryNetworkAddressActivityEventType$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityEventType$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityEventType$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityEventType$outboundSchema; -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivitymetadata.ts b/webhooks/src/models/components/primarynetworkaddressactivitymetadata.ts deleted file mode 100644 index fe7ad5f8..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivitymetadata.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PlatformAddressActivityKeyType, - PlatformAddressActivityKeyType$inboundSchema, - PlatformAddressActivityKeyType$outboundSchema, -} from "./platformaddressactivitykeytype.js"; -import { - PrimaryNetworkAddressActivitySubEvents, - PrimaryNetworkAddressActivitySubEvents$inboundSchema, - PrimaryNetworkAddressActivitySubEvents$Outbound, - PrimaryNetworkAddressActivitySubEvents$outboundSchema, -} from "./primarynetworkaddressactivitysubevents.js"; -import { - PrimaryNetworkBalanceThresholdFilter, - PrimaryNetworkBalanceThresholdFilter$inboundSchema, - PrimaryNetworkBalanceThresholdFilter$Outbound, - PrimaryNetworkBalanceThresholdFilter$outboundSchema, -} from "./primarynetworkbalancethresholdfilter.js"; - -export type PrimaryNetworkAddressActivityMetadata = { - /** - * Array of hexadecimal strings of the event signatures. - */ - eventSignatures?: Array | undefined; - /** - * The type of key to monitor for the address activity event type. - */ - keyType: PlatformAddressActivityKeyType; - /** - * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to. - */ - keys: Array; - /** - * Sub-events to monitor - */ - subEvents: PrimaryNetworkAddressActivitySubEvents; - /** - * Balance threshold filter - */ - balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter | undefined; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityMetadata$inboundSchema: z.ZodType< - PrimaryNetworkAddressActivityMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - keyType: PlatformAddressActivityKeyType$inboundSchema, - keys: z.array(z.string()), - subEvents: PrimaryNetworkAddressActivitySubEvents$inboundSchema, - balanceThresholdFilter: PrimaryNetworkBalanceThresholdFilter$inboundSchema - .optional(), -}); - -/** @internal */ -export type PrimaryNetworkAddressActivityMetadata$Outbound = { - eventSignatures?: Array | undefined; - keyType: string; - keys: Array; - subEvents: PrimaryNetworkAddressActivitySubEvents$Outbound; - balanceThresholdFilter?: - | PrimaryNetworkBalanceThresholdFilter$Outbound - | undefined; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityMetadata$outboundSchema: z.ZodType< - PrimaryNetworkAddressActivityMetadata$Outbound, - z.ZodTypeDef, - PrimaryNetworkAddressActivityMetadata -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - keyType: PlatformAddressActivityKeyType$outboundSchema, - keys: z.array(z.string()), - subEvents: PrimaryNetworkAddressActivitySubEvents$outboundSchema, - balanceThresholdFilter: PrimaryNetworkBalanceThresholdFilter$outboundSchema - .optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityMetadata$ { - /** @deprecated use `PrimaryNetworkAddressActivityMetadata$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityMetadata$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityMetadata$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityMetadata$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityMetadata$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressActivityMetadata$Outbound; -} - -export function primaryNetworkAddressActivityMetadataToJSON( - primaryNetworkAddressActivityMetadata: PrimaryNetworkAddressActivityMetadata, -): string { - return JSON.stringify( - PrimaryNetworkAddressActivityMetadata$outboundSchema.parse( - primaryNetworkAddressActivityMetadata, - ), - ); -} - -export function primaryNetworkAddressActivityMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PrimaryNetworkAddressActivityMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkAddressActivityMetadata' from JSON`, - ); -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivityrequest.ts b/webhooks/src/models/components/primarynetworkaddressactivityrequest.ts deleted file mode 100644 index d167999e..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivityrequest.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAddressActivityMetadata, - PrimaryNetworkAddressActivityMetadata$inboundSchema, - PrimaryNetworkAddressActivityMetadata$Outbound, - PrimaryNetworkAddressActivityMetadata$outboundSchema, -} from "./primarynetworkaddressactivitymetadata.js"; -import { - PrimaryNetworkType, - PrimaryNetworkType$inboundSchema, - PrimaryNetworkType$outboundSchema, -} from "./primarynetworktype.js"; - -export const PrimaryNetworkAddressActivityRequestEventType = { - PrimaryNetworkAddressActivity: "primary_network_address_activity", -} as const; -export type PrimaryNetworkAddressActivityRequestEventType = ClosedEnum< - typeof PrimaryNetworkAddressActivityRequestEventType ->; - -/** - * Metadata for platform address activity event - */ -export type PrimaryNetworkAddressActivityRequestMetadata = - PrimaryNetworkAddressActivityMetadata; - -export type PrimaryNetworkAddressActivityRequest = { - eventType: PrimaryNetworkAddressActivityRequestEventType; - url: string; - name?: string | undefined; - description?: string | undefined; - network: PrimaryNetworkType; - chainId: string; - /** - * Metadata for platform address activity event - */ - metadata: PrimaryNetworkAddressActivityMetadata; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityRequestEventType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(PrimaryNetworkAddressActivityRequestEventType); - -/** @internal */ -export const PrimaryNetworkAddressActivityRequestEventType$outboundSchema: - z.ZodNativeEnum = - PrimaryNetworkAddressActivityRequestEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityRequestEventType$ { - /** @deprecated use `PrimaryNetworkAddressActivityRequestEventType$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityRequestEventType$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityRequestEventType$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityRequestEventType$outboundSchema; -} - -/** @internal */ -export const PrimaryNetworkAddressActivityRequestMetadata$inboundSchema: - z.ZodType< - PrimaryNetworkAddressActivityRequestMetadata, - z.ZodTypeDef, - unknown - > = PrimaryNetworkAddressActivityMetadata$inboundSchema; - -/** @internal */ -export type PrimaryNetworkAddressActivityRequestMetadata$Outbound = - PrimaryNetworkAddressActivityMetadata$Outbound; - -/** @internal */ -export const PrimaryNetworkAddressActivityRequestMetadata$outboundSchema: - z.ZodType< - PrimaryNetworkAddressActivityRequestMetadata$Outbound, - z.ZodTypeDef, - PrimaryNetworkAddressActivityRequestMetadata - > = PrimaryNetworkAddressActivityMetadata$outboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityRequestMetadata$ { - /** @deprecated use `PrimaryNetworkAddressActivityRequestMetadata$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityRequestMetadata$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityRequestMetadata$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityRequestMetadata$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityRequestMetadata$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressActivityRequestMetadata$Outbound; -} - -export function primaryNetworkAddressActivityRequestMetadataToJSON( - primaryNetworkAddressActivityRequestMetadata: - PrimaryNetworkAddressActivityRequestMetadata, -): string { - return JSON.stringify( - PrimaryNetworkAddressActivityRequestMetadata$outboundSchema.parse( - primaryNetworkAddressActivityRequestMetadata, - ), - ); -} - -export function primaryNetworkAddressActivityRequestMetadataFromJSON( - jsonString: string, -): SafeParseResult< - PrimaryNetworkAddressActivityRequestMetadata, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - PrimaryNetworkAddressActivityRequestMetadata$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'PrimaryNetworkAddressActivityRequestMetadata' from JSON`, - ); -} - -/** @internal */ -export const PrimaryNetworkAddressActivityRequest$inboundSchema: z.ZodType< - PrimaryNetworkAddressActivityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - eventType: PrimaryNetworkAddressActivityRequestEventType$inboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - network: PrimaryNetworkType$inboundSchema, - chainId: z.string(), - metadata: PrimaryNetworkAddressActivityMetadata$inboundSchema, -}); - -/** @internal */ -export type PrimaryNetworkAddressActivityRequest$Outbound = { - eventType: string; - url: string; - name?: string | undefined; - description?: string | undefined; - network: string; - chainId: string; - metadata: PrimaryNetworkAddressActivityMetadata$Outbound; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityRequest$outboundSchema: z.ZodType< - PrimaryNetworkAddressActivityRequest$Outbound, - z.ZodTypeDef, - PrimaryNetworkAddressActivityRequest -> = z.object({ - eventType: PrimaryNetworkAddressActivityRequestEventType$outboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - network: PrimaryNetworkType$outboundSchema, - chainId: z.string(), - metadata: PrimaryNetworkAddressActivityMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityRequest$ { - /** @deprecated use `PrimaryNetworkAddressActivityRequest$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityRequest$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityRequest$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityRequest$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityRequest$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressActivityRequest$Outbound; -} - -export function primaryNetworkAddressActivityRequestToJSON( - primaryNetworkAddressActivityRequest: PrimaryNetworkAddressActivityRequest, -): string { - return JSON.stringify( - PrimaryNetworkAddressActivityRequest$outboundSchema.parse( - primaryNetworkAddressActivityRequest, - ), - ); -} - -export function primaryNetworkAddressActivityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PrimaryNetworkAddressActivityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkAddressActivityRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivityresponse.ts b/webhooks/src/models/components/primarynetworkaddressactivityresponse.ts deleted file mode 100644 index 0ca41c8b..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivityresponse.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAddressActivityEventType, - PrimaryNetworkAddressActivityEventType$inboundSchema, - PrimaryNetworkAddressActivityEventType$outboundSchema, -} from "./primarynetworkaddressactivityeventtype.js"; -import { - PrimaryNetworkAddressActivityMetadata, - PrimaryNetworkAddressActivityMetadata$inboundSchema, - PrimaryNetworkAddressActivityMetadata$Outbound, - PrimaryNetworkAddressActivityMetadata$outboundSchema, -} from "./primarynetworkaddressactivitymetadata.js"; -import { - WebhookStatusType, - WebhookStatusType$inboundSchema, - WebhookStatusType$outboundSchema, -} from "./webhookstatustype.js"; - -export type PrimaryNetworkAddressActivityResponse = { - id: string; - url: string; - chainId: string; - status: WebhookStatusType; - createdAt: number; - name: string; - description: string; - eventType: PrimaryNetworkAddressActivityEventType; - metadata: PrimaryNetworkAddressActivityMetadata; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityResponse$inboundSchema: z.ZodType< - PrimaryNetworkAddressActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$inboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: PrimaryNetworkAddressActivityEventType$inboundSchema, - metadata: PrimaryNetworkAddressActivityMetadata$inboundSchema, -}); - -/** @internal */ -export type PrimaryNetworkAddressActivityResponse$Outbound = { - id: string; - url: string; - chainId: string; - status: string; - createdAt: number; - name: string; - description: string; - eventType: string; - metadata: PrimaryNetworkAddressActivityMetadata$Outbound; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivityResponse$outboundSchema: z.ZodType< - PrimaryNetworkAddressActivityResponse$Outbound, - z.ZodTypeDef, - PrimaryNetworkAddressActivityResponse -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$outboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: PrimaryNetworkAddressActivityEventType$outboundSchema, - metadata: PrimaryNetworkAddressActivityMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivityResponse$ { - /** @deprecated use `PrimaryNetworkAddressActivityResponse$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivityResponse$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityResponse$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivityResponse$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivityResponse$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressActivityResponse$Outbound; -} - -export function primaryNetworkAddressActivityResponseToJSON( - primaryNetworkAddressActivityResponse: PrimaryNetworkAddressActivityResponse, -): string { - return JSON.stringify( - PrimaryNetworkAddressActivityResponse$outboundSchema.parse( - primaryNetworkAddressActivityResponse, - ), - ); -} - -export function primaryNetworkAddressActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PrimaryNetworkAddressActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkAddressActivityResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivitysubevents.ts b/webhooks/src/models/components/primarynetworkaddressactivitysubevents.ts deleted file mode 100644 index 1300e8d3..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivitysubevents.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkAddressActivitySubEventType, - PrimaryNetworkAddressActivitySubEventType$inboundSchema, - PrimaryNetworkAddressActivitySubEventType$outboundSchema, -} from "./primarynetworkaddressactivitysubeventtype.js"; - -export type PrimaryNetworkAddressActivitySubEvents = { - addressActivitySubEvents: Array; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivitySubEvents$inboundSchema: z.ZodType< - PrimaryNetworkAddressActivitySubEvents, - z.ZodTypeDef, - unknown -> = z.object({ - addressActivitySubEvents: z.array( - PrimaryNetworkAddressActivitySubEventType$inboundSchema, - ), -}); - -/** @internal */ -export type PrimaryNetworkAddressActivitySubEvents$Outbound = { - addressActivitySubEvents: Array; -}; - -/** @internal */ -export const PrimaryNetworkAddressActivitySubEvents$outboundSchema: z.ZodType< - PrimaryNetworkAddressActivitySubEvents$Outbound, - z.ZodTypeDef, - PrimaryNetworkAddressActivitySubEvents -> = z.object({ - addressActivitySubEvents: z.array( - PrimaryNetworkAddressActivitySubEventType$outboundSchema, - ), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivitySubEvents$ { - /** @deprecated use `PrimaryNetworkAddressActivitySubEvents$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivitySubEvents$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivitySubEvents$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivitySubEvents$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivitySubEvents$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressActivitySubEvents$Outbound; -} - -export function primaryNetworkAddressActivitySubEventsToJSON( - primaryNetworkAddressActivitySubEvents: - PrimaryNetworkAddressActivitySubEvents, -): string { - return JSON.stringify( - PrimaryNetworkAddressActivitySubEvents$outboundSchema.parse( - primaryNetworkAddressActivitySubEvents, - ), - ); -} - -export function primaryNetworkAddressActivitySubEventsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PrimaryNetworkAddressActivitySubEvents$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkAddressActivitySubEvents' from JSON`, - ); -} diff --git a/webhooks/src/models/components/primarynetworkaddressactivitysubeventtype.ts b/webhooks/src/models/components/primarynetworkaddressactivitysubeventtype.ts deleted file mode 100644 index c1088d19..00000000 --- a/webhooks/src/models/components/primarynetworkaddressactivitysubeventtype.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * Array of address activity sub-event types - */ -export const PrimaryNetworkAddressActivitySubEventType = { - BalanceChange: "balance_change", - BalanceThreshold: "balance_threshold", - RewardDistribution: "reward_distribution", -} as const; -/** - * Array of address activity sub-event types - */ -export type PrimaryNetworkAddressActivitySubEventType = ClosedEnum< - typeof PrimaryNetworkAddressActivitySubEventType ->; - -/** @internal */ -export const PrimaryNetworkAddressActivitySubEventType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(PrimaryNetworkAddressActivitySubEventType); - -/** @internal */ -export const PrimaryNetworkAddressActivitySubEventType$outboundSchema: - z.ZodNativeEnum = - PrimaryNetworkAddressActivitySubEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkAddressActivitySubEventType$ { - /** @deprecated use `PrimaryNetworkAddressActivitySubEventType$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkAddressActivitySubEventType$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressActivitySubEventType$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkAddressActivitySubEventType$outboundSchema; -} diff --git a/webhooks/src/models/components/primarynetworkbalancethresholdfilter.ts b/webhooks/src/models/components/primarynetworkbalancethresholdfilter.ts deleted file mode 100644 index 42ff2589..00000000 --- a/webhooks/src/models/components/primarynetworkbalancethresholdfilter.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CommonBalanceType, - CommonBalanceType$inboundSchema, - CommonBalanceType$outboundSchema, -} from "./commonbalancetype.js"; - -export type PrimaryNetworkBalanceThresholdFilter = { - /** - * Type of balance to monitor - */ - balanceType: CommonBalanceType; - /** - * Threshold for balance corresponding to balanceType in nAVAX - */ - balanceThreshold: string; -}; - -/** @internal */ -export const PrimaryNetworkBalanceThresholdFilter$inboundSchema: z.ZodType< - PrimaryNetworkBalanceThresholdFilter, - z.ZodTypeDef, - unknown -> = z.object({ - balanceType: CommonBalanceType$inboundSchema, - balanceThreshold: z.string(), -}); - -/** @internal */ -export type PrimaryNetworkBalanceThresholdFilter$Outbound = { - balanceType: string; - balanceThreshold: string; -}; - -/** @internal */ -export const PrimaryNetworkBalanceThresholdFilter$outboundSchema: z.ZodType< - PrimaryNetworkBalanceThresholdFilter$Outbound, - z.ZodTypeDef, - PrimaryNetworkBalanceThresholdFilter -> = z.object({ - balanceType: CommonBalanceType$outboundSchema, - balanceThreshold: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkBalanceThresholdFilter$ { - /** @deprecated use `PrimaryNetworkBalanceThresholdFilter$inboundSchema` instead. */ - export const inboundSchema = - PrimaryNetworkBalanceThresholdFilter$inboundSchema; - /** @deprecated use `PrimaryNetworkBalanceThresholdFilter$outboundSchema` instead. */ - export const outboundSchema = - PrimaryNetworkBalanceThresholdFilter$outboundSchema; - /** @deprecated use `PrimaryNetworkBalanceThresholdFilter$Outbound` instead. */ - export type Outbound = PrimaryNetworkBalanceThresholdFilter$Outbound; -} - -export function primaryNetworkBalanceThresholdFilterToJSON( - primaryNetworkBalanceThresholdFilter: PrimaryNetworkBalanceThresholdFilter, -): string { - return JSON.stringify( - PrimaryNetworkBalanceThresholdFilter$outboundSchema.parse( - primaryNetworkBalanceThresholdFilter, - ), - ); -} - -export function primaryNetworkBalanceThresholdFilterFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - PrimaryNetworkBalanceThresholdFilter$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'PrimaryNetworkBalanceThresholdFilter' from JSON`, - ); -} diff --git a/webhooks/src/models/components/primarynetworktype.ts b/webhooks/src/models/components/primarynetworktype.ts deleted file mode 100644 index 59ce3a7d..00000000 --- a/webhooks/src/models/components/primarynetworktype.ts +++ /dev/null @@ -1,33 +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 PrimaryNetworkType = { - Mainnet: "mainnet", - Fuji: "fuji", -} as const; -export type PrimaryNetworkType = ClosedEnum; - -/** @internal */ -export const PrimaryNetworkType$inboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkType -> = z.nativeEnum(PrimaryNetworkType); - -/** @internal */ -export const PrimaryNetworkType$outboundSchema: z.ZodNativeEnum< - typeof PrimaryNetworkType -> = PrimaryNetworkType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PrimaryNetworkType$ { - /** @deprecated use `PrimaryNetworkType$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkType$inboundSchema; - /** @deprecated use `PrimaryNetworkType$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkType$outboundSchema; -} diff --git a/webhooks/src/models/components/security.ts b/webhooks/src/models/components/security.ts deleted file mode 100644 index fdcb409f..00000000 --- a/webhooks/src/models/components/security.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type Security = { - apiKey?: string | undefined; -}; - -/** @internal */ -export const Security$inboundSchema: z.ZodType< - Security, - z.ZodTypeDef, - unknown -> = z.object({ - apiKey: z.string().optional(), -}); - -/** @internal */ -export type Security$Outbound = { - apiKey?: string | undefined; -}; - -/** @internal */ -export const Security$outboundSchema: z.ZodType< - Security$Outbound, - z.ZodTypeDef, - Security -> = z.object({ - apiKey: 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 Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - -export function securityToJSON(security: Security): string { - return JSON.stringify(Security$outboundSchema.parse(security)); -} - -export function securityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Security$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Security' from JSON`, - ); -} diff --git a/webhooks/src/models/components/sharedsecretsresponse.ts b/webhooks/src/models/components/sharedsecretsresponse.ts deleted file mode 100644 index 4563e6ba..00000000 --- a/webhooks/src/models/components/sharedsecretsresponse.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type SharedSecretsResponse = { - secret: string; -}; - -/** @internal */ -export const SharedSecretsResponse$inboundSchema: z.ZodType< - SharedSecretsResponse, - z.ZodTypeDef, - unknown -> = z.object({ - secret: z.string(), -}); - -/** @internal */ -export type SharedSecretsResponse$Outbound = { - secret: string; -}; - -/** @internal */ -export const SharedSecretsResponse$outboundSchema: z.ZodType< - SharedSecretsResponse$Outbound, - z.ZodTypeDef, - SharedSecretsResponse -> = z.object({ - secret: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SharedSecretsResponse$ { - /** @deprecated use `SharedSecretsResponse$inboundSchema` instead. */ - export const inboundSchema = SharedSecretsResponse$inboundSchema; - /** @deprecated use `SharedSecretsResponse$outboundSchema` instead. */ - export const outboundSchema = SharedSecretsResponse$outboundSchema; - /** @deprecated use `SharedSecretsResponse$Outbound` instead. */ - export type Outbound = SharedSecretsResponse$Outbound; -} - -export function sharedSecretsResponseToJSON( - sharedSecretsResponse: SharedSecretsResponse, -): string { - return JSON.stringify( - SharedSecretsResponse$outboundSchema.parse(sharedSecretsResponse), - ); -} - -export function sharedSecretsResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => SharedSecretsResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'SharedSecretsResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/transaction.ts b/webhooks/src/models/components/transaction.ts deleted file mode 100644 index 88986aae..00000000 --- a/webhooks/src/models/components/transaction.ts +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - AccessListData, - AccessListData$inboundSchema, - AccessListData$Outbound, - AccessListData$outboundSchema, -} from "./accesslistdata.js"; -import { - ERCTransfer, - ERCTransfer$inboundSchema, - ERCTransfer$Outbound, - ERCTransfer$outboundSchema, -} from "./erctransfer.js"; -import { - NetworkTokenInfo, - NetworkTokenInfo$inboundSchema, - NetworkTokenInfo$Outbound, - NetworkTokenInfo$outboundSchema, -} from "./networktokeninfo.js"; -import { - WebhookInternalTransaction, - WebhookInternalTransaction$inboundSchema, - WebhookInternalTransaction$Outbound, - WebhookInternalTransaction$outboundSchema, -} from "./webhookinternaltransaction.js"; - -export type Transaction = { - /** - * Block hash of the transaction - */ - blockHash: string; - /** - * Block number of the transaction - */ - blockNumber: string; - /** - * Sender address - */ - from: string; - /** - * Gas limit for the transaction - */ - gas: string; - /** - * Gas price used - */ - gasPrice: string; - /** - * Maximum fee per gas - */ - maxFeePerGas: string; - /** - * Maximum priority fee per gas - */ - maxPriorityFeePerGas: string; - /** - * Transaction hash - */ - txHash: string; - /** - * Transaction status - */ - txStatus: string; - /** - * Input data - */ - input: string; - /** - * Nonce value - */ - nonce: string; - /** - * Recipient address - */ - to: string; - /** - * Transaction index - */ - transactionIndex: number; - /** - * Value transferred in the transaction - */ - value: string; - /** - * Transaction type - */ - type: number; - /** - * Chain ID of the network - */ - chainId: string; - /** - * Cumulative gas used - */ - receiptCumulativeGasUsed: string; - /** - * Gas used - */ - receiptGasUsed: string; - /** - * Effective gas price - */ - receiptEffectiveGasPrice: string; - /** - * Receipt root - */ - receiptRoot: string; - /** - * Block timestamp - */ - blockTimestamp: number; - /** - * Contract address (optional) - */ - contractAddress?: string | undefined; - /** - * ERC20 transfers - */ - erc20Transfers: Array; - /** - * ERC721 transfers - */ - erc721Transfers: Array; - /** - * ERC1155 transfers - */ - erc1155Transfers: Array; - /** - * Internal transactions (optional) - */ - internalTransactions?: Array | undefined; - /** - * Access list (optional) - */ - accessList?: Array | undefined; - /** - * Network token info (optional) - */ - networkToken?: NetworkTokenInfo | undefined; -}; - -/** @internal */ -export const Transaction$inboundSchema: z.ZodType< - Transaction, - z.ZodTypeDef, - unknown -> = z.object({ - blockHash: z.string(), - blockNumber: z.string(), - from: z.string(), - gas: z.string(), - gasPrice: z.string(), - maxFeePerGas: z.string(), - maxPriorityFeePerGas: z.string(), - txHash: z.string(), - txStatus: z.string(), - input: z.string(), - nonce: z.string(), - to: z.string(), - transactionIndex: z.number(), - value: z.string(), - type: z.number(), - chainId: z.string(), - receiptCumulativeGasUsed: z.string(), - receiptGasUsed: z.string(), - receiptEffectiveGasPrice: z.string(), - receiptRoot: z.string(), - blockTimestamp: z.number(), - contractAddress: z.string().optional(), - erc20Transfers: z.array(ERCTransfer$inboundSchema), - erc721Transfers: z.array(ERCTransfer$inboundSchema), - erc1155Transfers: z.array(ERCTransfer$inboundSchema), - internalTransactions: z.array(WebhookInternalTransaction$inboundSchema) - .optional(), - accessList: z.array(AccessListData$inboundSchema).optional(), - networkToken: NetworkTokenInfo$inboundSchema.optional(), -}); - -/** @internal */ -export type Transaction$Outbound = { - blockHash: string; - blockNumber: string; - from: string; - gas: string; - gasPrice: string; - maxFeePerGas: string; - maxPriorityFeePerGas: string; - txHash: string; - txStatus: string; - input: string; - nonce: string; - to: string; - transactionIndex: number; - value: string; - type: number; - chainId: string; - receiptCumulativeGasUsed: string; - receiptGasUsed: string; - receiptEffectiveGasPrice: string; - receiptRoot: string; - blockTimestamp: number; - contractAddress?: string | undefined; - erc20Transfers: Array; - erc721Transfers: Array; - erc1155Transfers: Array; - internalTransactions?: Array | undefined; - accessList?: Array | undefined; - networkToken?: NetworkTokenInfo$Outbound | undefined; -}; - -/** @internal */ -export const Transaction$outboundSchema: z.ZodType< - Transaction$Outbound, - z.ZodTypeDef, - Transaction -> = z.object({ - blockHash: z.string(), - blockNumber: z.string(), - from: z.string(), - gas: z.string(), - gasPrice: z.string(), - maxFeePerGas: z.string(), - maxPriorityFeePerGas: z.string(), - txHash: z.string(), - txStatus: z.string(), - input: z.string(), - nonce: z.string(), - to: z.string(), - transactionIndex: z.number(), - value: z.string(), - type: z.number(), - chainId: z.string(), - receiptCumulativeGasUsed: z.string(), - receiptGasUsed: z.string(), - receiptEffectiveGasPrice: z.string(), - receiptRoot: z.string(), - blockTimestamp: z.number(), - contractAddress: z.string().optional(), - erc20Transfers: z.array(ERCTransfer$outboundSchema), - erc721Transfers: z.array(ERCTransfer$outboundSchema), - erc1155Transfers: z.array(ERCTransfer$outboundSchema), - internalTransactions: z.array(WebhookInternalTransaction$outboundSchema) - .optional(), - accessList: z.array(AccessListData$outboundSchema).optional(), - networkToken: NetworkTokenInfo$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Transaction$ { - /** @deprecated use `Transaction$inboundSchema` instead. */ - export const inboundSchema = Transaction$inboundSchema; - /** @deprecated use `Transaction$outboundSchema` instead. */ - export const outboundSchema = Transaction$outboundSchema; - /** @deprecated use `Transaction$Outbound` instead. */ - export type Outbound = Transaction$Outbound; -} - -export function transactionToJSON(transaction: Transaction): string { - return JSON.stringify(Transaction$outboundSchema.parse(transaction)); -} - -export function transactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => Transaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Transaction' from JSON`, - ); -} diff --git a/webhooks/src/models/components/transactionevent.ts b/webhooks/src/models/components/transactionevent.ts deleted file mode 100644 index 105e056a..00000000 --- a/webhooks/src/models/components/transactionevent.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - Log, - Log$inboundSchema, - Log$Outbound, - Log$outboundSchema, -} from "./log.js"; -import { - Transaction, - Transaction$inboundSchema, - Transaction$Outbound, - Transaction$outboundSchema, -} from "./transaction.js"; - -export type TransactionEvent = { - /** - * Transaction details - */ - transaction: Transaction; - /** - * Array of log events - */ - logs?: Array | undefined; -}; - -/** @internal */ -export const TransactionEvent$inboundSchema: z.ZodType< - TransactionEvent, - z.ZodTypeDef, - unknown -> = z.object({ - transaction: Transaction$inboundSchema, - logs: z.array(Log$inboundSchema).optional(), -}); - -/** @internal */ -export type TransactionEvent$Outbound = { - transaction: Transaction$Outbound; - logs?: Array | undefined; -}; - -/** @internal */ -export const TransactionEvent$outboundSchema: z.ZodType< - TransactionEvent$Outbound, - z.ZodTypeDef, - TransactionEvent -> = z.object({ - transaction: Transaction$outboundSchema, - logs: z.array(Log$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TransactionEvent$ { - /** @deprecated use `TransactionEvent$inboundSchema` instead. */ - export const inboundSchema = TransactionEvent$inboundSchema; - /** @deprecated use `TransactionEvent$outboundSchema` instead. */ - export const outboundSchema = TransactionEvent$outboundSchema; - /** @deprecated use `TransactionEvent$Outbound` instead. */ - export type Outbound = TransactionEvent$Outbound; -} - -export function transactionEventToJSON( - transactionEvent: TransactionEvent, -): string { - return JSON.stringify( - TransactionEvent$outboundSchema.parse(transactionEvent), - ); -} - -export function transactionEventFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TransactionEvent$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TransactionEvent' from JSON`, - ); -} diff --git a/webhooks/src/models/components/updatewebhookrequest.ts b/webhooks/src/models/components/updatewebhookrequest.ts deleted file mode 100644 index bc3efe0b..00000000 --- a/webhooks/src/models/components/updatewebhookrequest.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - WebhookStatusType, - WebhookStatusType$inboundSchema, - WebhookStatusType$outboundSchema, -} from "./webhookstatustype.js"; - -export type UpdateWebhookRequest = { - name?: string | undefined; - description?: string | undefined; - url?: string | undefined; - status?: WebhookStatusType | undefined; - /** - * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114. - */ - includeInternalTxs?: boolean | undefined; - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const UpdateWebhookRequest$inboundSchema: z.ZodType< - UpdateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - url: z.string().optional(), - status: WebhookStatusType$inboundSchema.optional(), - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** @internal */ -export type UpdateWebhookRequest$Outbound = { - name?: string | undefined; - description?: string | undefined; - url?: string | undefined; - status?: string | undefined; - includeInternalTxs?: boolean | undefined; - includeLogs?: boolean | undefined; -}; - -/** @internal */ -export const UpdateWebhookRequest$outboundSchema: z.ZodType< - UpdateWebhookRequest$Outbound, - z.ZodTypeDef, - UpdateWebhookRequest -> = z.object({ - name: z.string().optional(), - description: z.string().optional(), - url: z.string().optional(), - status: WebhookStatusType$outboundSchema.optional(), - includeInternalTxs: z.boolean().optional(), - includeLogs: z.boolean().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWebhookRequest$ { - /** @deprecated use `UpdateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateWebhookRequest$inboundSchema; - /** @deprecated use `UpdateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateWebhookRequest$outboundSchema; - /** @deprecated use `UpdateWebhookRequest$Outbound` instead. */ - export type Outbound = UpdateWebhookRequest$Outbound; -} - -export function updateWebhookRequestToJSON( - updateWebhookRequest: UpdateWebhookRequest, -): string { - return JSON.stringify( - UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), - ); -} - -export function updateWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateWebhookRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/components/validatoractivityeventtype.ts b/webhooks/src/models/components/validatoractivityeventtype.ts deleted file mode 100644 index 7958cbae..00000000 --- a/webhooks/src/models/components/validatoractivityeventtype.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 ValidatorActivityEventType = { - ValidatorActivity: "validator_activity", -} as const; -export type ValidatorActivityEventType = ClosedEnum< - typeof ValidatorActivityEventType ->; - -/** @internal */ -export const ValidatorActivityEventType$inboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityEventType -> = z.nativeEnum(ValidatorActivityEventType); - -/** @internal */ -export const ValidatorActivityEventType$outboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityEventType -> = ValidatorActivityEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityEventType$ { - /** @deprecated use `ValidatorActivityEventType$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityEventType$inboundSchema; - /** @deprecated use `ValidatorActivityEventType$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityEventType$outboundSchema; -} diff --git a/webhooks/src/models/components/validatoractivitykeytype.ts b/webhooks/src/models/components/validatoractivitykeytype.ts deleted file mode 100644 index ab825f90..00000000 --- a/webhooks/src/models/components/validatoractivitykeytype.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { ClosedEnum } from "../../types/enums.js"; - -/** - * The type of key to monitor for the validator activity event type. - */ -export const ValidatorActivityKeyType = { - NodeId: "nodeId", - SubnetId: "subnetId", -} as const; -/** - * The type of key to monitor for the validator activity event type. - */ -export type ValidatorActivityKeyType = ClosedEnum< - typeof ValidatorActivityKeyType ->; - -/** @internal */ -export const ValidatorActivityKeyType$inboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityKeyType -> = z.nativeEnum(ValidatorActivityKeyType); - -/** @internal */ -export const ValidatorActivityKeyType$outboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityKeyType -> = ValidatorActivityKeyType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityKeyType$ { - /** @deprecated use `ValidatorActivityKeyType$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityKeyType$inboundSchema; - /** @deprecated use `ValidatorActivityKeyType$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityKeyType$outboundSchema; -} diff --git a/webhooks/src/models/components/validatoractivitymetadata.ts b/webhooks/src/models/components/validatoractivitymetadata.ts deleted file mode 100644 index bede8577..00000000 --- a/webhooks/src/models/components/validatoractivitymetadata.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ValidatorActivityKeyType, - ValidatorActivityKeyType$inboundSchema, - ValidatorActivityKeyType$outboundSchema, -} from "./validatoractivitykeytype.js"; -import { - ValidatorActivitySubEvents, - ValidatorActivitySubEvents$inboundSchema, - ValidatorActivitySubEvents$Outbound, - ValidatorActivitySubEvents$outboundSchema, -} from "./validatoractivitysubevents.js"; - -export type ValidatorActivityMetadata = { - /** - * Array of hexadecimal strings of the event signatures. - */ - eventSignatures?: Array | undefined; - /** - * The type of key to monitor for the validator activity event type. - */ - keyType: ValidatorActivityKeyType; - /** - * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key - */ - keys: Array; - /** - * Sub-events to monitor - */ - subEvents: ValidatorActivitySubEvents; - /** - * Array of node IDs to filter the events - */ - nodeIds?: Array | undefined; - /** - * Array of subnet IDs to filter the events - */ - subnetIds?: Array | undefined; - /** - * L1 validator fee balance threshold in nAVAX - */ - l1ValidatorFeeBalanceThreshold?: string | undefined; -}; - -/** @internal */ -export const ValidatorActivityMetadata$inboundSchema: z.ZodType< - ValidatorActivityMetadata, - z.ZodTypeDef, - unknown -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - keyType: ValidatorActivityKeyType$inboundSchema, - keys: z.array(z.string()), - subEvents: ValidatorActivitySubEvents$inboundSchema, - nodeIds: z.array(z.string()).optional(), - subnetIds: z.array(z.string()).optional(), - l1ValidatorFeeBalanceThreshold: z.string().optional(), -}); - -/** @internal */ -export type ValidatorActivityMetadata$Outbound = { - eventSignatures?: Array | undefined; - keyType: string; - keys: Array; - subEvents: ValidatorActivitySubEvents$Outbound; - nodeIds?: Array | undefined; - subnetIds?: Array | undefined; - l1ValidatorFeeBalanceThreshold?: string | undefined; -}; - -/** @internal */ -export const ValidatorActivityMetadata$outboundSchema: z.ZodType< - ValidatorActivityMetadata$Outbound, - z.ZodTypeDef, - ValidatorActivityMetadata -> = z.object({ - eventSignatures: z.array(z.string()).optional(), - keyType: ValidatorActivityKeyType$outboundSchema, - keys: z.array(z.string()), - subEvents: ValidatorActivitySubEvents$outboundSchema, - nodeIds: z.array(z.string()).optional(), - subnetIds: z.array(z.string()).optional(), - l1ValidatorFeeBalanceThreshold: 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 ValidatorActivityMetadata$ { - /** @deprecated use `ValidatorActivityMetadata$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityMetadata$inboundSchema; - /** @deprecated use `ValidatorActivityMetadata$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityMetadata$outboundSchema; - /** @deprecated use `ValidatorActivityMetadata$Outbound` instead. */ - export type Outbound = ValidatorActivityMetadata$Outbound; -} - -export function validatorActivityMetadataToJSON( - validatorActivityMetadata: ValidatorActivityMetadata, -): string { - return JSON.stringify( - ValidatorActivityMetadata$outboundSchema.parse(validatorActivityMetadata), - ); -} - -export function validatorActivityMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorActivityMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorActivityMetadata' from JSON`, - ); -} diff --git a/webhooks/src/models/components/validatoractivityrequest.ts b/webhooks/src/models/components/validatoractivityrequest.ts deleted file mode 100644 index caf29c91..00000000 --- a/webhooks/src/models/components/validatoractivityrequest.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - PrimaryNetworkType, - PrimaryNetworkType$inboundSchema, - PrimaryNetworkType$outboundSchema, -} from "./primarynetworktype.js"; -import { - ValidatorActivityMetadata, - ValidatorActivityMetadata$inboundSchema, - ValidatorActivityMetadata$Outbound, - ValidatorActivityMetadata$outboundSchema, -} from "./validatoractivitymetadata.js"; - -export const ValidatorActivityRequestEventType = { - ValidatorActivity: "validator_activity", -} as const; -export type ValidatorActivityRequestEventType = ClosedEnum< - typeof ValidatorActivityRequestEventType ->; - -/** - * Metadata for platform validator activity event - */ -export type ValidatorActivityRequestMetadata = ValidatorActivityMetadata; - -export type ValidatorActivityRequest = { - eventType: ValidatorActivityRequestEventType; - url: string; - name?: string | undefined; - description?: string | undefined; - network: PrimaryNetworkType; - /** - * Metadata for platform validator activity event - */ - metadata: ValidatorActivityMetadata; -}; - -/** @internal */ -export const ValidatorActivityRequestEventType$inboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityRequestEventType -> = z.nativeEnum(ValidatorActivityRequestEventType); - -/** @internal */ -export const ValidatorActivityRequestEventType$outboundSchema: z.ZodNativeEnum< - typeof ValidatorActivityRequestEventType -> = ValidatorActivityRequestEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityRequestEventType$ { - /** @deprecated use `ValidatorActivityRequestEventType$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityRequestEventType$inboundSchema; - /** @deprecated use `ValidatorActivityRequestEventType$outboundSchema` instead. */ - export const outboundSchema = - ValidatorActivityRequestEventType$outboundSchema; -} - -/** @internal */ -export const ValidatorActivityRequestMetadata$inboundSchema: z.ZodType< - ValidatorActivityRequestMetadata, - z.ZodTypeDef, - unknown -> = ValidatorActivityMetadata$inboundSchema; - -/** @internal */ -export type ValidatorActivityRequestMetadata$Outbound = - ValidatorActivityMetadata$Outbound; - -/** @internal */ -export const ValidatorActivityRequestMetadata$outboundSchema: z.ZodType< - ValidatorActivityRequestMetadata$Outbound, - z.ZodTypeDef, - ValidatorActivityRequestMetadata -> = ValidatorActivityMetadata$outboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityRequestMetadata$ { - /** @deprecated use `ValidatorActivityRequestMetadata$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityRequestMetadata$inboundSchema; - /** @deprecated use `ValidatorActivityRequestMetadata$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityRequestMetadata$outboundSchema; - /** @deprecated use `ValidatorActivityRequestMetadata$Outbound` instead. */ - export type Outbound = ValidatorActivityRequestMetadata$Outbound; -} - -export function validatorActivityRequestMetadataToJSON( - validatorActivityRequestMetadata: ValidatorActivityRequestMetadata, -): string { - return JSON.stringify( - ValidatorActivityRequestMetadata$outboundSchema.parse( - validatorActivityRequestMetadata, - ), - ); -} - -export function validatorActivityRequestMetadataFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorActivityRequestMetadata$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorActivityRequestMetadata' from JSON`, - ); -} - -/** @internal */ -export const ValidatorActivityRequest$inboundSchema: z.ZodType< - ValidatorActivityRequest, - z.ZodTypeDef, - unknown -> = z.object({ - eventType: ValidatorActivityRequestEventType$inboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - network: PrimaryNetworkType$inboundSchema, - metadata: ValidatorActivityMetadata$inboundSchema, -}); - -/** @internal */ -export type ValidatorActivityRequest$Outbound = { - eventType: string; - url: string; - name?: string | undefined; - description?: string | undefined; - network: string; - metadata: ValidatorActivityMetadata$Outbound; -}; - -/** @internal */ -export const ValidatorActivityRequest$outboundSchema: z.ZodType< - ValidatorActivityRequest$Outbound, - z.ZodTypeDef, - ValidatorActivityRequest -> = z.object({ - eventType: ValidatorActivityRequestEventType$outboundSchema, - url: z.string(), - name: z.string().optional(), - description: z.string().optional(), - network: PrimaryNetworkType$outboundSchema, - metadata: ValidatorActivityMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityRequest$ { - /** @deprecated use `ValidatorActivityRequest$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityRequest$inboundSchema; - /** @deprecated use `ValidatorActivityRequest$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityRequest$outboundSchema; - /** @deprecated use `ValidatorActivityRequest$Outbound` instead. */ - export type Outbound = ValidatorActivityRequest$Outbound; -} - -export function validatorActivityRequestToJSON( - validatorActivityRequest: ValidatorActivityRequest, -): string { - return JSON.stringify( - ValidatorActivityRequest$outboundSchema.parse(validatorActivityRequest), - ); -} - -export function validatorActivityRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorActivityRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorActivityRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/components/validatoractivityresponse.ts b/webhooks/src/models/components/validatoractivityresponse.ts deleted file mode 100644 index f5a149a2..00000000 --- a/webhooks/src/models/components/validatoractivityresponse.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - ValidatorActivityEventType, - ValidatorActivityEventType$inboundSchema, - ValidatorActivityEventType$outboundSchema, -} from "./validatoractivityeventtype.js"; -import { - ValidatorActivityMetadata, - ValidatorActivityMetadata$inboundSchema, - ValidatorActivityMetadata$Outbound, - ValidatorActivityMetadata$outboundSchema, -} from "./validatoractivitymetadata.js"; -import { - WebhookStatusType, - WebhookStatusType$inboundSchema, - WebhookStatusType$outboundSchema, -} from "./webhookstatustype.js"; - -export type ValidatorActivityResponse = { - id: string; - url: string; - chainId: string; - status: WebhookStatusType; - createdAt: number; - name: string; - description: string; - eventType: ValidatorActivityEventType; - metadata: ValidatorActivityMetadata; -}; - -/** @internal */ -export const ValidatorActivityResponse$inboundSchema: z.ZodType< - ValidatorActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$inboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: ValidatorActivityEventType$inboundSchema, - metadata: ValidatorActivityMetadata$inboundSchema, -}); - -/** @internal */ -export type ValidatorActivityResponse$Outbound = { - id: string; - url: string; - chainId: string; - status: string; - createdAt: number; - name: string; - description: string; - eventType: string; - metadata: ValidatorActivityMetadata$Outbound; -}; - -/** @internal */ -export const ValidatorActivityResponse$outboundSchema: z.ZodType< - ValidatorActivityResponse$Outbound, - z.ZodTypeDef, - ValidatorActivityResponse -> = z.object({ - id: z.string(), - url: z.string(), - chainId: z.string(), - status: WebhookStatusType$outboundSchema, - createdAt: z.number(), - name: z.string(), - description: z.string(), - eventType: ValidatorActivityEventType$outboundSchema, - metadata: ValidatorActivityMetadata$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivityResponse$ { - /** @deprecated use `ValidatorActivityResponse$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivityResponse$inboundSchema; - /** @deprecated use `ValidatorActivityResponse$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivityResponse$outboundSchema; - /** @deprecated use `ValidatorActivityResponse$Outbound` instead. */ - export type Outbound = ValidatorActivityResponse$Outbound; -} - -export function validatorActivityResponseToJSON( - validatorActivityResponse: ValidatorActivityResponse, -): string { - return JSON.stringify( - ValidatorActivityResponse$outboundSchema.parse(validatorActivityResponse), - ); -} - -export function validatorActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorActivityResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/validatoractivitysubevents.ts b/webhooks/src/models/components/validatoractivitysubevents.ts deleted file mode 100644 index c84bde83..00000000 --- a/webhooks/src/models/components/validatoractivitysubevents.ts +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export const ValidatorActivitySubEvent = { - ValidatorStake: "validator_stake", - DelegatorStake: "delegator_stake", - RewardDistribution: "reward_distribution", - L1ValidatorBalanceIncreased: "l1_validator_balance_increased", - L1ValidatorDisabled: "l1_validator_disabled", - L1ValidatorRemoved: "l1_validator_removed", - L1ValidatorBalanceThreshold: "l1_validator_balance_threshold", -} as const; -export type ValidatorActivitySubEvent = ClosedEnum< - typeof ValidatorActivitySubEvent ->; - -export type ValidatorActivitySubEvents = { - /** - * Array of validator activity sub-event types - */ - validatorActivitySubEvents: Array; -}; - -/** @internal */ -export const ValidatorActivitySubEvent$inboundSchema: z.ZodNativeEnum< - typeof ValidatorActivitySubEvent -> = z.nativeEnum(ValidatorActivitySubEvent); - -/** @internal */ -export const ValidatorActivitySubEvent$outboundSchema: z.ZodNativeEnum< - typeof ValidatorActivitySubEvent -> = ValidatorActivitySubEvent$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivitySubEvent$ { - /** @deprecated use `ValidatorActivitySubEvent$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivitySubEvent$inboundSchema; - /** @deprecated use `ValidatorActivitySubEvent$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivitySubEvent$outboundSchema; -} - -/** @internal */ -export const ValidatorActivitySubEvents$inboundSchema: z.ZodType< - ValidatorActivitySubEvents, - z.ZodTypeDef, - unknown -> = z.object({ - validatorActivitySubEvents: z.array(ValidatorActivitySubEvent$inboundSchema), -}); - -/** @internal */ -export type ValidatorActivitySubEvents$Outbound = { - validatorActivitySubEvents: Array; -}; - -/** @internal */ -export const ValidatorActivitySubEvents$outboundSchema: z.ZodType< - ValidatorActivitySubEvents$Outbound, - z.ZodTypeDef, - ValidatorActivitySubEvents -> = z.object({ - validatorActivitySubEvents: z.array(ValidatorActivitySubEvent$outboundSchema), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ValidatorActivitySubEvents$ { - /** @deprecated use `ValidatorActivitySubEvents$inboundSchema` instead. */ - export const inboundSchema = ValidatorActivitySubEvents$inboundSchema; - /** @deprecated use `ValidatorActivitySubEvents$outboundSchema` instead. */ - export const outboundSchema = ValidatorActivitySubEvents$outboundSchema; - /** @deprecated use `ValidatorActivitySubEvents$Outbound` instead. */ - export type Outbound = ValidatorActivitySubEvents$Outbound; -} - -export function validatorActivitySubEventsToJSON( - validatorActivitySubEvents: ValidatorActivitySubEvents, -): string { - return JSON.stringify( - ValidatorActivitySubEvents$outboundSchema.parse(validatorActivitySubEvents), - ); -} - -export function validatorActivitySubEventsFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ValidatorActivitySubEvents$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ValidatorActivitySubEvents' from JSON`, - ); -} diff --git a/webhooks/src/models/components/webhookaddressactivityresponse.ts b/webhooks/src/models/components/webhookaddressactivityresponse.ts deleted file mode 100644 index 530882a0..00000000 --- a/webhooks/src/models/components/webhookaddressactivityresponse.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - TransactionEvent, - TransactionEvent$inboundSchema, - TransactionEvent$Outbound, - TransactionEvent$outboundSchema, -} from "./transactionevent.js"; - -/** - * Event type - */ -export const WebhookAddressActivityResponseEventType = { - AddressActivity: "address_activity", -} as const; -/** - * Event type - */ -export type WebhookAddressActivityResponseEventType = ClosedEnum< - typeof WebhookAddressActivityResponseEventType ->; - -export type WebhookAddressActivityResponse = { - /** - * Webhook ID - */ - webhookId: string; - /** - * Event type - */ - eventType: WebhookAddressActivityResponseEventType; - /** - * Message ID - */ - messageId: string; - /** - * Event details - */ - event: TransactionEvent; -}; - -/** @internal */ -export const WebhookAddressActivityResponseEventType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(WebhookAddressActivityResponseEventType); - -/** @internal */ -export const WebhookAddressActivityResponseEventType$outboundSchema: - z.ZodNativeEnum = - WebhookAddressActivityResponseEventType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookAddressActivityResponseEventType$ { - /** @deprecated use `WebhookAddressActivityResponseEventType$inboundSchema` instead. */ - export const inboundSchema = - WebhookAddressActivityResponseEventType$inboundSchema; - /** @deprecated use `WebhookAddressActivityResponseEventType$outboundSchema` instead. */ - export const outboundSchema = - WebhookAddressActivityResponseEventType$outboundSchema; -} - -/** @internal */ -export const WebhookAddressActivityResponse$inboundSchema: z.ZodType< - WebhookAddressActivityResponse, - z.ZodTypeDef, - unknown -> = z.object({ - webhookId: z.string(), - eventType: WebhookAddressActivityResponseEventType$inboundSchema, - messageId: z.string(), - event: TransactionEvent$inboundSchema, -}); - -/** @internal */ -export type WebhookAddressActivityResponse$Outbound = { - webhookId: string; - eventType: string; - messageId: string; - event: TransactionEvent$Outbound; -}; - -/** @internal */ -export const WebhookAddressActivityResponse$outboundSchema: z.ZodType< - WebhookAddressActivityResponse$Outbound, - z.ZodTypeDef, - WebhookAddressActivityResponse -> = z.object({ - webhookId: z.string(), - eventType: WebhookAddressActivityResponseEventType$outboundSchema, - messageId: z.string(), - event: TransactionEvent$outboundSchema, -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookAddressActivityResponse$ { - /** @deprecated use `WebhookAddressActivityResponse$inboundSchema` instead. */ - export const inboundSchema = WebhookAddressActivityResponse$inboundSchema; - /** @deprecated use `WebhookAddressActivityResponse$outboundSchema` instead. */ - export const outboundSchema = WebhookAddressActivityResponse$outboundSchema; - /** @deprecated use `WebhookAddressActivityResponse$Outbound` instead. */ - export type Outbound = WebhookAddressActivityResponse$Outbound; -} - -export function webhookAddressActivityResponseToJSON( - webhookAddressActivityResponse: WebhookAddressActivityResponse, -): string { - return JSON.stringify( - WebhookAddressActivityResponse$outboundSchema.parse( - webhookAddressActivityResponse, - ), - ); -} - -export function webhookAddressActivityResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookAddressActivityResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookAddressActivityResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/components/webhookinternaltransaction.ts b/webhooks/src/models/components/webhookinternaltransaction.ts deleted file mode 100644 index 953bc534..00000000 --- a/webhooks/src/models/components/webhookinternaltransaction.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type WebhookInternalTransaction = { - /** - * Sender address - */ - from: string; - /** - * Recipient address - */ - to: string; - /** - * Internal transaction type - */ - internalTxType: string; - /** - * Value transferred - */ - value: string; - /** - * Gas used - */ - gasUsed: string; - /** - * Gas limit - */ - gasLimit: string; - /** - * Transaction hash - */ - transactionHash: string; -}; - -/** @internal */ -export const WebhookInternalTransaction$inboundSchema: z.ZodType< - WebhookInternalTransaction, - z.ZodTypeDef, - unknown -> = z.object({ - from: z.string(), - to: z.string(), - internalTxType: z.string(), - value: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - transactionHash: z.string(), -}); - -/** @internal */ -export type WebhookInternalTransaction$Outbound = { - from: string; - to: string; - internalTxType: string; - value: string; - gasUsed: string; - gasLimit: string; - transactionHash: string; -}; - -/** @internal */ -export const WebhookInternalTransaction$outboundSchema: z.ZodType< - WebhookInternalTransaction$Outbound, - z.ZodTypeDef, - WebhookInternalTransaction -> = z.object({ - from: z.string(), - to: z.string(), - internalTxType: z.string(), - value: z.string(), - gasUsed: z.string(), - gasLimit: z.string(), - transactionHash: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookInternalTransaction$ { - /** @deprecated use `WebhookInternalTransaction$inboundSchema` instead. */ - export const inboundSchema = WebhookInternalTransaction$inboundSchema; - /** @deprecated use `WebhookInternalTransaction$outboundSchema` instead. */ - export const outboundSchema = WebhookInternalTransaction$outboundSchema; - /** @deprecated use `WebhookInternalTransaction$Outbound` instead. */ - export type Outbound = WebhookInternalTransaction$Outbound; -} - -export function webhookInternalTransactionToJSON( - webhookInternalTransaction: WebhookInternalTransaction, -): string { - return JSON.stringify( - WebhookInternalTransaction$outboundSchema.parse(webhookInternalTransaction), - ); -} - -export function webhookInternalTransactionFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => WebhookInternalTransaction$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'WebhookInternalTransaction' from JSON`, - ); -} diff --git a/webhooks/src/models/components/webhookstatus.ts b/webhooks/src/models/components/webhookstatus.ts deleted file mode 100644 index d37f9990..00000000 --- a/webhooks/src/models/components/webhookstatus.ts +++ /dev/null @@ -1,33 +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 WebhookStatus = { - Active: "active", - Inactive: "inactive", -} as const; -export type WebhookStatus = ClosedEnum; - -/** @internal */ -export const WebhookStatus$inboundSchema: z.ZodNativeEnum< - typeof WebhookStatus -> = z.nativeEnum(WebhookStatus); - -/** @internal */ -export const WebhookStatus$outboundSchema: z.ZodNativeEnum< - typeof WebhookStatus -> = WebhookStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookStatus$ { - /** @deprecated use `WebhookStatus$inboundSchema` instead. */ - export const inboundSchema = WebhookStatus$inboundSchema; - /** @deprecated use `WebhookStatus$outboundSchema` instead. */ - export const outboundSchema = WebhookStatus$outboundSchema; -} diff --git a/webhooks/src/models/components/webhookstatustype.ts b/webhooks/src/models/components/webhookstatustype.ts deleted file mode 100644 index bcfe2c16..00000000 --- a/webhooks/src/models/components/webhookstatustype.ts +++ /dev/null @@ -1,33 +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 WebhookStatusType = { - Active: "active", - Inactive: "inactive", -} as const; -export type WebhookStatusType = ClosedEnum; - -/** @internal */ -export const WebhookStatusType$inboundSchema: z.ZodNativeEnum< - typeof WebhookStatusType -> = z.nativeEnum(WebhookStatusType); - -/** @internal */ -export const WebhookStatusType$outboundSchema: z.ZodNativeEnum< - typeof WebhookStatusType -> = WebhookStatusType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WebhookStatusType$ { - /** @deprecated use `WebhookStatusType$inboundSchema` instead. */ - export const inboundSchema = WebhookStatusType$inboundSchema; - /** @deprecated use `WebhookStatusType$outboundSchema` instead. */ - export const outboundSchema = WebhookStatusType$outboundSchema; -} diff --git a/webhooks/src/models/errors/avalancheapierror.ts b/webhooks/src/models/errors/avalancheapierror.ts deleted file mode 100644 index a744f7e9..00000000 --- a/webhooks/src/models/errors/avalancheapierror.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { AvalancheError } from "./avalancheerror.js"; - -/** The fallback error class if no more specific error class is matched */ -export class AvalancheAPIError extends AvalancheError { - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - if (message) { - message += `: `; - } - message += `Status ${httpMeta.response.status}`; - const contentType = httpMeta.response.headers.get("content-type") || `""`; - if (contentType !== "application/json") { - message += ` Content-Type ${ - contentType.includes(" ") ? `"${contentType}"` : contentType - }`; - } - const body = httpMeta.body || `""`; - message += body.length > 100 ? "\n" : ". "; - let bodyDisplay = body; - if (body.length > 10000) { - const truncated = body.substring(0, 10000); - const remaining = body.length - 10000; - bodyDisplay = `${truncated}...and ${remaining} more chars`; - } - message += `Body: ${bodyDisplay}`; - message = message.trim(); - super(message, httpMeta); - this.name = "AvalancheAPIError"; - } -} diff --git a/webhooks/src/models/errors/avalancheerror.ts b/webhooks/src/models/errors/avalancheerror.ts deleted file mode 100644 index 4ebd6912..00000000 --- a/webhooks/src/models/errors/avalancheerror.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** The base class for all HTTP error responses */ -export class AvalancheError extends Error { - /** HTTP status code */ - public readonly statusCode: number; - /** HTTP body */ - public readonly body: string; - /** HTTP headers */ - public readonly headers: Headers; - /** HTTP content type */ - public readonly contentType: string; - /** Raw response */ - public readonly rawResponse: Response; - - constructor( - message: string, - httpMeta: { - response: Response; - request: Request; - body: string; - }, - ) { - super(message); - this.statusCode = httpMeta.response.status; - this.body = httpMeta.body; - this.headers = httpMeta.response.headers; - this.contentType = httpMeta.response.headers.get("content-type") || ""; - this.rawResponse = httpMeta.response; - - this.name = "AvalancheError"; - } -} diff --git a/webhooks/src/models/errors/badgatewayerror.ts b/webhooks/src/models/errors/badgatewayerror.ts deleted file mode 100644 index 664399c5..00000000 --- a/webhooks/src/models/errors/badgatewayerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadGatewayMessage = string | Array; - -export type BadGatewayErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadGatewayError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadGatewayErrorData; - - constructor( - err: BadGatewayErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadGatewayError"; - } -} - -/** @internal */ -export const BadGatewayMessage$inboundSchema: z.ZodType< - BadGatewayMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadGatewayMessage$Outbound = string | Array; - -/** @internal */ -export const BadGatewayMessage$outboundSchema: z.ZodType< - BadGatewayMessage$Outbound, - z.ZodTypeDef, - BadGatewayMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayMessage$ { - /** @deprecated use `BadGatewayMessage$inboundSchema` instead. */ - export const inboundSchema = BadGatewayMessage$inboundSchema; - /** @deprecated use `BadGatewayMessage$outboundSchema` instead. */ - export const outboundSchema = BadGatewayMessage$outboundSchema; - /** @deprecated use `BadGatewayMessage$Outbound` instead. */ - export type Outbound = BadGatewayMessage$Outbound; -} - -export function badGatewayMessageToJSON( - badGatewayMessage: BadGatewayMessage, -): string { - return JSON.stringify( - BadGatewayMessage$outboundSchema.parse(badGatewayMessage), - ); -} - -export function badGatewayMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadGatewayMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadGatewayMessage' from JSON`, - ); -} - -/** @internal */ -export const BadGatewayError$inboundSchema: z.ZodType< - BadGatewayError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadGatewayError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadGatewayError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadGatewayError$outboundSchema: z.ZodType< - BadGatewayError$Outbound, - z.ZodTypeDef, - BadGatewayError -> = z.instanceof(BadGatewayError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadGatewayError$ { - /** @deprecated use `BadGatewayError$inboundSchema` instead. */ - export const inboundSchema = BadGatewayError$inboundSchema; - /** @deprecated use `BadGatewayError$outboundSchema` instead. */ - export const outboundSchema = BadGatewayError$outboundSchema; - /** @deprecated use `BadGatewayError$Outbound` instead. */ - export type Outbound = BadGatewayError$Outbound; -} diff --git a/webhooks/src/models/errors/badrequesterror.ts b/webhooks/src/models/errors/badrequesterror.ts deleted file mode 100644 index 6a622dd8..00000000 --- a/webhooks/src/models/errors/badrequesterror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type BadRequestMessage = string | Array; - -export type BadRequestErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class BadRequestError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: BadRequestErrorData; - - constructor( - err: BadRequestErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "BadRequestError"; - } -} - -/** @internal */ -export const BadRequestMessage$inboundSchema: z.ZodType< - BadRequestMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type BadRequestMessage$Outbound = string | Array; - -/** @internal */ -export const BadRequestMessage$outboundSchema: z.ZodType< - BadRequestMessage$Outbound, - z.ZodTypeDef, - BadRequestMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestMessage$ { - /** @deprecated use `BadRequestMessage$inboundSchema` instead. */ - export const inboundSchema = BadRequestMessage$inboundSchema; - /** @deprecated use `BadRequestMessage$outboundSchema` instead. */ - export const outboundSchema = BadRequestMessage$outboundSchema; - /** @deprecated use `BadRequestMessage$Outbound` instead. */ - export type Outbound = BadRequestMessage$Outbound; -} - -export function badRequestMessageToJSON( - badRequestMessage: BadRequestMessage, -): string { - return JSON.stringify( - BadRequestMessage$outboundSchema.parse(badRequestMessage), - ); -} - -export function badRequestMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => BadRequestMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'BadRequestMessage' from JSON`, - ); -} - -/** @internal */ -export const BadRequestError$inboundSchema: z.ZodType< - BadRequestError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new BadRequestError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type BadRequestError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const BadRequestError$outboundSchema: z.ZodType< - BadRequestError$Outbound, - z.ZodTypeDef, - BadRequestError -> = z.instanceof(BadRequestError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestError$ { - /** @deprecated use `BadRequestError$inboundSchema` instead. */ - export const inboundSchema = BadRequestError$inboundSchema; - /** @deprecated use `BadRequestError$outboundSchema` instead. */ - export const outboundSchema = BadRequestError$outboundSchema; - /** @deprecated use `BadRequestError$Outbound` instead. */ - export type Outbound = BadRequestError$Outbound; -} diff --git a/webhooks/src/models/errors/forbiddenerror.ts b/webhooks/src/models/errors/forbiddenerror.ts deleted file mode 100644 index c61d94bd..00000000 --- a/webhooks/src/models/errors/forbiddenerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ForbiddenMessage = string | Array; - -export type ForbiddenErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ForbiddenError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ForbiddenErrorData; - - constructor( - err: ForbiddenErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ForbiddenError"; - } -} - -/** @internal */ -export const ForbiddenMessage$inboundSchema: z.ZodType< - ForbiddenMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ForbiddenMessage$Outbound = string | Array; - -/** @internal */ -export const ForbiddenMessage$outboundSchema: z.ZodType< - ForbiddenMessage$Outbound, - z.ZodTypeDef, - ForbiddenMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenMessage$ { - /** @deprecated use `ForbiddenMessage$inboundSchema` instead. */ - export const inboundSchema = ForbiddenMessage$inboundSchema; - /** @deprecated use `ForbiddenMessage$outboundSchema` instead. */ - export const outboundSchema = ForbiddenMessage$outboundSchema; - /** @deprecated use `ForbiddenMessage$Outbound` instead. */ - export type Outbound = ForbiddenMessage$Outbound; -} - -export function forbiddenMessageToJSON( - forbiddenMessage: ForbiddenMessage, -): string { - return JSON.stringify( - ForbiddenMessage$outboundSchema.parse(forbiddenMessage), - ); -} - -export function forbiddenMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ForbiddenMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ForbiddenMessage' from JSON`, - ); -} - -/** @internal */ -export const ForbiddenError$inboundSchema: z.ZodType< - ForbiddenError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ForbiddenError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ForbiddenError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ForbiddenError$outboundSchema: z.ZodType< - ForbiddenError$Outbound, - z.ZodTypeDef, - ForbiddenError -> = z.instanceof(ForbiddenError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenError$ { - /** @deprecated use `ForbiddenError$inboundSchema` instead. */ - export const inboundSchema = ForbiddenError$inboundSchema; - /** @deprecated use `ForbiddenError$outboundSchema` instead. */ - export const outboundSchema = ForbiddenError$outboundSchema; - /** @deprecated use `ForbiddenError$Outbound` instead. */ - export type Outbound = ForbiddenError$Outbound; -} diff --git a/webhooks/src/models/errors/httpclienterrors.ts b/webhooks/src/models/errors/httpclienterrors.ts deleted file mode 100644 index b34f6121..00000000 --- a/webhooks/src/models/errors/httpclienterrors.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * Base class for all HTTP errors. - */ -export class HTTPClientError extends Error { - /** The underlying cause of the error. */ - override readonly cause: unknown; - override name = "HTTPClientError"; - constructor(message: string, opts?: { cause?: unknown }) { - let msg = message; - if (opts?.cause) { - msg += `: ${opts.cause}`; - } - - super(msg, opts); - // In older runtimes, the cause field would not have been assigned through - // the super() call. - if (typeof this.cause === "undefined") { - this.cause = opts?.cause; - } - } -} - -/** - * An error to capture unrecognised or unexpected errors when making HTTP calls. - */ -export class UnexpectedClientError extends HTTPClientError { - override name = "UnexpectedClientError"; -} - -/** - * An error that is raised when any inputs used to create a request are invalid. - */ -export class InvalidRequestError extends HTTPClientError { - override name = "InvalidRequestError"; -} - -/** - * An error that is raised when a HTTP request was aborted by the client error. - */ -export class RequestAbortedError extends HTTPClientError { - override readonly name = "RequestAbortedError"; -} - -/** - * An error that is raised when a HTTP request timed out due to an AbortSignal - * signal timeout. - */ -export class RequestTimeoutError extends HTTPClientError { - override readonly name = "RequestTimeoutError"; -} - -/** - * An error that is raised when a HTTP client is unable to make a request to - * a server. - */ -export class ConnectionError extends HTTPClientError { - override readonly name = "ConnectionError"; -} diff --git a/webhooks/src/models/errors/index.ts b/webhooks/src/models/errors/index.ts deleted file mode 100644 index a7ea0acc..00000000 --- a/webhooks/src/models/errors/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./avalancheapierror.js"; -export * from "./badgatewayerror.js"; -export * from "./badrequesterror.js"; -export * from "./forbiddenerror.js"; -export * from "./httpclienterrors.js"; -export * from "./internalservererror.js"; -export * from "./notfounderror.js"; -export * from "./responsevalidationerror.js"; -export * from "./sdkvalidationerror.js"; -export * from "./serviceunavailableerror.js"; -export * from "./toomanyrequestserror.js"; -export * from "./unauthorizederror.js"; diff --git a/webhooks/src/models/errors/internalservererror.ts b/webhooks/src/models/errors/internalservererror.ts deleted file mode 100644 index 97fc7853..00000000 --- a/webhooks/src/models/errors/internalservererror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type InternalServerErrorMessage = string | Array; - -export type InternalServerErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class InternalServerError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: InternalServerErrorData; - - constructor( - err: InternalServerErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "InternalServerError"; - } -} - -/** @internal */ -export const InternalServerErrorMessage$inboundSchema: z.ZodType< - InternalServerErrorMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type InternalServerErrorMessage$Outbound = string | Array; - -/** @internal */ -export const InternalServerErrorMessage$outboundSchema: z.ZodType< - InternalServerErrorMessage$Outbound, - z.ZodTypeDef, - InternalServerErrorMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorMessage$ { - /** @deprecated use `InternalServerErrorMessage$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorMessage$inboundSchema; - /** @deprecated use `InternalServerErrorMessage$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorMessage$outboundSchema; - /** @deprecated use `InternalServerErrorMessage$Outbound` instead. */ - export type Outbound = InternalServerErrorMessage$Outbound; -} - -export function internalServerErrorMessageToJSON( - internalServerErrorMessage: InternalServerErrorMessage, -): string { - return JSON.stringify( - InternalServerErrorMessage$outboundSchema.parse(internalServerErrorMessage), - ); -} - -export function internalServerErrorMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => InternalServerErrorMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'InternalServerErrorMessage' from JSON`, - ); -} - -/** @internal */ -export const InternalServerError$inboundSchema: z.ZodType< - InternalServerError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new InternalServerError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type InternalServerError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const InternalServerError$outboundSchema: z.ZodType< - InternalServerError$Outbound, - z.ZodTypeDef, - InternalServerError -> = z.instanceof(InternalServerError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerError$ { - /** @deprecated use `InternalServerError$inboundSchema` instead. */ - export const inboundSchema = InternalServerError$inboundSchema; - /** @deprecated use `InternalServerError$outboundSchema` instead. */ - export const outboundSchema = InternalServerError$outboundSchema; - /** @deprecated use `InternalServerError$Outbound` instead. */ - export type Outbound = InternalServerError$Outbound; -} diff --git a/webhooks/src/models/errors/notfounderror.ts b/webhooks/src/models/errors/notfounderror.ts deleted file mode 100644 index 52a68f66..00000000 --- a/webhooks/src/models/errors/notfounderror.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type NotFoundMessage = string | Array; - -export type NotFoundErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class NotFoundError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: NotFoundErrorData; - - constructor( - err: NotFoundErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "NotFoundError"; - } -} - -/** @internal */ -export const NotFoundMessage$inboundSchema: z.ZodType< - NotFoundMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type NotFoundMessage$Outbound = string | Array; - -/** @internal */ -export const NotFoundMessage$outboundSchema: z.ZodType< - NotFoundMessage$Outbound, - z.ZodTypeDef, - NotFoundMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundMessage$ { - /** @deprecated use `NotFoundMessage$inboundSchema` instead. */ - export const inboundSchema = NotFoundMessage$inboundSchema; - /** @deprecated use `NotFoundMessage$outboundSchema` instead. */ - export const outboundSchema = NotFoundMessage$outboundSchema; - /** @deprecated use `NotFoundMessage$Outbound` instead. */ - export type Outbound = NotFoundMessage$Outbound; -} - -export function notFoundMessageToJSON( - notFoundMessage: NotFoundMessage, -): string { - return JSON.stringify(NotFoundMessage$outboundSchema.parse(notFoundMessage)); -} - -export function notFoundMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => NotFoundMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'NotFoundMessage' from JSON`, - ); -} - -/** @internal */ -export const NotFoundError$inboundSchema: z.ZodType< - NotFoundError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new NotFoundError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type NotFoundError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const NotFoundError$outboundSchema: z.ZodType< - NotFoundError$Outbound, - z.ZodTypeDef, - NotFoundError -> = z.instanceof(NotFoundError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundError$ { - /** @deprecated use `NotFoundError$inboundSchema` instead. */ - export const inboundSchema = NotFoundError$inboundSchema; - /** @deprecated use `NotFoundError$outboundSchema` instead. */ - export const outboundSchema = NotFoundError$outboundSchema; - /** @deprecated use `NotFoundError$Outbound` instead. */ - export type Outbound = NotFoundError$Outbound; -} diff --git a/webhooks/src/models/errors/responsevalidationerror.ts b/webhooks/src/models/errors/responsevalidationerror.ts deleted file mode 100644 index d91ba996..00000000 --- a/webhooks/src/models/errors/responsevalidationerror.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { AvalancheError } from "./avalancheerror.js"; -import { formatZodError } from "./sdkvalidationerror.js"; - -export class ResponseValidationError extends AvalancheError { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - constructor( - message: string, - extra: { - response: Response; - request: Request; - body: string; - cause: unknown; - rawValue: unknown; - rawMessage: unknown; - }, - ) { - super(message, extra); - this.name = "ResponseValidationError"; - this.cause = extra.cause; - this.rawValue = extra.rawValue; - this.rawMessage = extra.rawMessage; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} diff --git a/webhooks/src/models/errors/sdkvalidationerror.ts b/webhooks/src/models/errors/sdkvalidationerror.ts deleted file mode 100644 index 37face8a..00000000 --- a/webhooks/src/models/errors/sdkvalidationerror.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export class SDKValidationError extends Error { - /** - * The raw value that failed validation. - */ - public readonly rawValue: unknown; - - /** - * The raw message that failed validation. - */ - public readonly rawMessage: unknown; - - // Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError` - static override [Symbol.hasInstance]( - instance: unknown, - ): instance is SDKValidationError { - if (!(instance instanceof Error)) return false; - if (!("rawValue" in instance)) return false; - if (!("rawMessage" in instance)) return false; - if (!("pretty" in instance)) return false; - if (typeof instance.pretty !== "function") return false; - return true; - } - - constructor(message: string, cause: unknown, rawValue: unknown) { - super(`${message}: ${cause}`); - this.name = "SDKValidationError"; - this.cause = cause; - this.rawValue = rawValue; - this.rawMessage = message; - } - - /** - * Return a pretty-formatted error message if the underlying validation error - * is a ZodError or some other recognized error type, otherwise return the - * default error message. - */ - public pretty(): string { - if (this.cause instanceof z.ZodError) { - return `${this.rawMessage}\n${formatZodError(this.cause)}`; - } else { - return this.toString(); - } - } -} - -export function formatZodError(err: z.ZodError, level = 0): string { - let pre = " ".repeat(level); - pre = level > 0 ? `│${pre}` : pre; - pre += " ".repeat(level); - - let message = ""; - const append = (str: string) => (message += `\n${pre}${str}`); - - const len = err.issues.length; - const headline = len === 1 ? `${len} issue found` : `${len} issues found`; - - if (len) { - append(`┌ ${headline}:`); - } - - for (const issue of err.issues) { - let path = issue.path.join("."); - path = path ? `.${path}` : ""; - append(`│ • [${path}]: ${issue.message} (${issue.code})`); - switch (issue.code) { - case "invalid_literal": - case "invalid_type": { - append(`│ Want: ${issue.expected}`); - append(`│ Got: ${issue.received}`); - break; - } - case "unrecognized_keys": { - append(`│ Keys: ${issue.keys.join(", ")}`); - break; - } - case "invalid_enum_value": { - append(`│ Allowed: ${issue.options.join(", ")}`); - append(`│ Got: ${issue.received}`); - break; - } - case "invalid_union_discriminator": { - append(`│ Allowed: ${issue.options.join(", ")}`); - break; - } - case "invalid_union": { - const len = issue.unionErrors.length; - append( - `│ ✖︎ Attemped to deserialize into one of ${len} union members:`, - ); - issue.unionErrors.forEach((err, i) => { - append(`│ ✖︎ Member ${i + 1} of ${len}`); - append(`${formatZodError(err, level + 1)}`); - }); - } - } - } - - if (err.issues.length) { - append(`└─*`); - } - - return message.slice(1); -} diff --git a/webhooks/src/models/errors/serviceunavailableerror.ts b/webhooks/src/models/errors/serviceunavailableerror.ts deleted file mode 100644 index 160912cd..00000000 --- a/webhooks/src/models/errors/serviceunavailableerror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type ServiceUnavailableMessage = string | Array; - -export type ServiceUnavailableErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class ServiceUnavailableError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: ServiceUnavailableErrorData; - - constructor( - err: ServiceUnavailableErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "ServiceUnavailableError"; - } -} - -/** @internal */ -export const ServiceUnavailableMessage$inboundSchema: z.ZodType< - ServiceUnavailableMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type ServiceUnavailableMessage$Outbound = string | Array; - -/** @internal */ -export const ServiceUnavailableMessage$outboundSchema: z.ZodType< - ServiceUnavailableMessage$Outbound, - z.ZodTypeDef, - ServiceUnavailableMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableMessage$ { - /** @deprecated use `ServiceUnavailableMessage$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableMessage$inboundSchema; - /** @deprecated use `ServiceUnavailableMessage$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableMessage$outboundSchema; - /** @deprecated use `ServiceUnavailableMessage$Outbound` instead. */ - export type Outbound = ServiceUnavailableMessage$Outbound; -} - -export function serviceUnavailableMessageToJSON( - serviceUnavailableMessage: ServiceUnavailableMessage, -): string { - return JSON.stringify( - ServiceUnavailableMessage$outboundSchema.parse(serviceUnavailableMessage), - ); -} - -export function serviceUnavailableMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ServiceUnavailableMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ServiceUnavailableMessage' from JSON`, - ); -} - -/** @internal */ -export const ServiceUnavailableError$inboundSchema: z.ZodType< - ServiceUnavailableError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new ServiceUnavailableError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type ServiceUnavailableError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const ServiceUnavailableError$outboundSchema: z.ZodType< - ServiceUnavailableError$Outbound, - z.ZodTypeDef, - ServiceUnavailableError -> = z.instanceof(ServiceUnavailableError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ServiceUnavailableError$ { - /** @deprecated use `ServiceUnavailableError$inboundSchema` instead. */ - export const inboundSchema = ServiceUnavailableError$inboundSchema; - /** @deprecated use `ServiceUnavailableError$outboundSchema` instead. */ - export const outboundSchema = ServiceUnavailableError$outboundSchema; - /** @deprecated use `ServiceUnavailableError$Outbound` instead. */ - export type Outbound = ServiceUnavailableError$Outbound; -} diff --git a/webhooks/src/models/errors/toomanyrequestserror.ts b/webhooks/src/models/errors/toomanyrequestserror.ts deleted file mode 100644 index ed150368..00000000 --- a/webhooks/src/models/errors/toomanyrequestserror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type TooManyRequestsMessage = string | Array; - -export type TooManyRequestsErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class TooManyRequestsError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: TooManyRequestsErrorData; - - constructor( - err: TooManyRequestsErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "TooManyRequestsError"; - } -} - -/** @internal */ -export const TooManyRequestsMessage$inboundSchema: z.ZodType< - TooManyRequestsMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type TooManyRequestsMessage$Outbound = string | Array; - -/** @internal */ -export const TooManyRequestsMessage$outboundSchema: z.ZodType< - TooManyRequestsMessage$Outbound, - z.ZodTypeDef, - TooManyRequestsMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsMessage$ { - /** @deprecated use `TooManyRequestsMessage$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsMessage$inboundSchema; - /** @deprecated use `TooManyRequestsMessage$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsMessage$outboundSchema; - /** @deprecated use `TooManyRequestsMessage$Outbound` instead. */ - export type Outbound = TooManyRequestsMessage$Outbound; -} - -export function tooManyRequestsMessageToJSON( - tooManyRequestsMessage: TooManyRequestsMessage, -): string { - return JSON.stringify( - TooManyRequestsMessage$outboundSchema.parse(tooManyRequestsMessage), - ); -} - -export function tooManyRequestsMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => TooManyRequestsMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'TooManyRequestsMessage' from JSON`, - ); -} - -/** @internal */ -export const TooManyRequestsError$inboundSchema: z.ZodType< - TooManyRequestsError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new TooManyRequestsError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type TooManyRequestsError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const TooManyRequestsError$outboundSchema: z.ZodType< - TooManyRequestsError$Outbound, - z.ZodTypeDef, - TooManyRequestsError -> = z.instanceof(TooManyRequestsError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TooManyRequestsError$ { - /** @deprecated use `TooManyRequestsError$inboundSchema` instead. */ - export const inboundSchema = TooManyRequestsError$inboundSchema; - /** @deprecated use `TooManyRequestsError$outboundSchema` instead. */ - export const outboundSchema = TooManyRequestsError$outboundSchema; - /** @deprecated use `TooManyRequestsError$Outbound` instead. */ - export type Outbound = TooManyRequestsError$Outbound; -} diff --git a/webhooks/src/models/errors/unauthorizederror.ts b/webhooks/src/models/errors/unauthorizederror.ts deleted file mode 100644 index 7e9e4b65..00000000 --- a/webhooks/src/models/errors/unauthorizederror.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { AvalancheError } from "./avalancheerror.js"; -import { SDKValidationError } from "./sdkvalidationerror.js"; - -/** - * The error message describing the reason for the exception - */ -export type UnauthorizedMessage = string | Array; - -export type UnauthorizedErrorData = { - /** - * The error message describing the reason for the exception - */ - message: string | Array; - /** - * The HTTP status code of the response - */ - statusCode: number; - /** - * The type of error - */ - error: string; -}; - -export class UnauthorizedError extends AvalancheError { - /** - * The type of error - */ - error: string; - - /** The original data that was passed to this error instance. */ - data$: UnauthorizedErrorData; - - constructor( - err: UnauthorizedErrorData, - httpMeta: { response: Response; request: Request; body: string }, - ) { - const message = "message" in err && typeof err.message === "string" - ? err.message - : `API error occurred: ${JSON.stringify(err)}`; - super(message, httpMeta); - this.data$ = err; - this.error = err.error; - - this.name = "UnauthorizedError"; - } -} - -/** @internal */ -export const UnauthorizedMessage$inboundSchema: z.ZodType< - UnauthorizedMessage, - z.ZodTypeDef, - unknown -> = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type UnauthorizedMessage$Outbound = string | Array; - -/** @internal */ -export const UnauthorizedMessage$outboundSchema: z.ZodType< - UnauthorizedMessage$Outbound, - z.ZodTypeDef, - UnauthorizedMessage -> = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedMessage$ { - /** @deprecated use `UnauthorizedMessage$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedMessage$inboundSchema; - /** @deprecated use `UnauthorizedMessage$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedMessage$outboundSchema; - /** @deprecated use `UnauthorizedMessage$Outbound` instead. */ - export type Outbound = UnauthorizedMessage$Outbound; -} - -export function unauthorizedMessageToJSON( - unauthorizedMessage: UnauthorizedMessage, -): string { - return JSON.stringify( - UnauthorizedMessage$outboundSchema.parse(unauthorizedMessage), - ); -} - -export function unauthorizedMessageFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UnauthorizedMessage$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UnauthorizedMessage' from JSON`, - ); -} - -/** @internal */ -export const UnauthorizedError$inboundSchema: z.ZodType< - UnauthorizedError, - z.ZodTypeDef, - unknown -> = z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - request$: z.instanceof(Request), - response$: z.instanceof(Response), - body$: z.string(), -}) - .transform((v) => { - return new UnauthorizedError(v, { - request: v.request$, - response: v.response$, - body: v.body$, - }); - }); - -/** @internal */ -export type UnauthorizedError$Outbound = { - message: string | Array; - statusCode: number; - error: string; -}; - -/** @internal */ -export const UnauthorizedError$outboundSchema: z.ZodType< - UnauthorizedError$Outbound, - z.ZodTypeDef, - UnauthorizedError -> = z.instanceof(UnauthorizedError) - .transform(v => v.data$) - .pipe(z.object({ - message: z.union([z.string(), z.array(z.string())]), - statusCode: z.number(), - error: z.string(), - })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedError$ { - /** @deprecated use `UnauthorizedError$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedError$inboundSchema; - /** @deprecated use `UnauthorizedError$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedError$outboundSchema; - /** @deprecated use `UnauthorizedError$Outbound` instead. */ - export type Outbound = UnauthorizedError$Outbound; -} diff --git a/webhooks/src/models/operations/addaddressestowebhook.ts b/webhooks/src/models/operations/addaddressestowebhook.ts deleted file mode 100644 index 067db8b3..00000000 --- a/webhooks/src/models/operations/addaddressestowebhook.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type AddAddressesToWebhookRequest = { - /** - * The webhook identifier. - */ - id: string; - addressesChangeRequest: components.AddressesChangeRequest; -}; - -/** @internal */ -export const AddAddressesToWebhookRequest$inboundSchema: z.ZodType< - AddAddressesToWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - AddressesChangeRequest: components.AddressesChangeRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AddressesChangeRequest": "addressesChangeRequest", - }); -}); - -/** @internal */ -export type AddAddressesToWebhookRequest$Outbound = { - id: string; - AddressesChangeRequest: components.AddressesChangeRequest$Outbound; -}; - -/** @internal */ -export const AddAddressesToWebhookRequest$outboundSchema: z.ZodType< - AddAddressesToWebhookRequest$Outbound, - z.ZodTypeDef, - AddAddressesToWebhookRequest -> = z.object({ - id: z.string(), - addressesChangeRequest: components.AddressesChangeRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - addressesChangeRequest: "AddressesChangeRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace AddAddressesToWebhookRequest$ { - /** @deprecated use `AddAddressesToWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = AddAddressesToWebhookRequest$inboundSchema; - /** @deprecated use `AddAddressesToWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = AddAddressesToWebhookRequest$outboundSchema; - /** @deprecated use `AddAddressesToWebhookRequest$Outbound` instead. */ - export type Outbound = AddAddressesToWebhookRequest$Outbound; -} - -export function addAddressesToWebhookRequestToJSON( - addAddressesToWebhookRequest: AddAddressesToWebhookRequest, -): string { - return JSON.stringify( - AddAddressesToWebhookRequest$outboundSchema.parse( - addAddressesToWebhookRequest, - ), - ); -} - -export function addAddressesToWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => AddAddressesToWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'AddAddressesToWebhookRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/createwebhook.ts b/webhooks/src/models/operations/createwebhook.ts deleted file mode 100644 index 41f1f5b7..00000000 --- a/webhooks/src/models/operations/createwebhook.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CreateWebhookRequest = - | components.PrimaryNetworkAddressActivityRequest - | components.EVMAddressActivityRequest - | components.ValidatorActivityRequest; - -/** - * Successful response - */ -export type CreateWebhookResponse = - | components.EVMAddressActivityResponse - | components.PrimaryNetworkAddressActivityResponse - | components.ValidatorActivityResponse; - -/** @internal */ -export const CreateWebhookRequest$inboundSchema: z.ZodType< - CreateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.union([ - components.PrimaryNetworkAddressActivityRequest$inboundSchema, - components.EVMAddressActivityRequest$inboundSchema, - components.ValidatorActivityRequest$inboundSchema, -]); - -/** @internal */ -export type CreateWebhookRequest$Outbound = - | components.PrimaryNetworkAddressActivityRequest$Outbound - | components.EVMAddressActivityRequest$Outbound - | components.ValidatorActivityRequest$Outbound; - -/** @internal */ -export const CreateWebhookRequest$outboundSchema: z.ZodType< - CreateWebhookRequest$Outbound, - z.ZodTypeDef, - CreateWebhookRequest -> = z.union([ - components.PrimaryNetworkAddressActivityRequest$outboundSchema, - components.EVMAddressActivityRequest$outboundSchema, - components.ValidatorActivityRequest$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWebhookRequest$ { - /** @deprecated use `CreateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = CreateWebhookRequest$inboundSchema; - /** @deprecated use `CreateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = CreateWebhookRequest$outboundSchema; - /** @deprecated use `CreateWebhookRequest$Outbound` instead. */ - export type Outbound = CreateWebhookRequest$Outbound; -} - -export function createWebhookRequestToJSON( - createWebhookRequest: CreateWebhookRequest, -): string { - return JSON.stringify( - CreateWebhookRequest$outboundSchema.parse(createWebhookRequest), - ); -} - -export function createWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateWebhookRequest' from JSON`, - ); -} - -/** @internal */ -export const CreateWebhookResponse$inboundSchema: z.ZodType< - CreateWebhookResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.EVMAddressActivityResponse$inboundSchema, - components.PrimaryNetworkAddressActivityResponse$inboundSchema, - components.ValidatorActivityResponse$inboundSchema, -]); - -/** @internal */ -export type CreateWebhookResponse$Outbound = - | components.EVMAddressActivityResponse$Outbound - | components.PrimaryNetworkAddressActivityResponse$Outbound - | components.ValidatorActivityResponse$Outbound; - -/** @internal */ -export const CreateWebhookResponse$outboundSchema: z.ZodType< - CreateWebhookResponse$Outbound, - z.ZodTypeDef, - CreateWebhookResponse -> = z.union([ - components.EVMAddressActivityResponse$outboundSchema, - components.PrimaryNetworkAddressActivityResponse$outboundSchema, - components.ValidatorActivityResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateWebhookResponse$ { - /** @deprecated use `CreateWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = CreateWebhookResponse$inboundSchema; - /** @deprecated use `CreateWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = CreateWebhookResponse$outboundSchema; - /** @deprecated use `CreateWebhookResponse$Outbound` instead. */ - export type Outbound = CreateWebhookResponse$Outbound; -} - -export function createWebhookResponseToJSON( - createWebhookResponse: CreateWebhookResponse, -): string { - return JSON.stringify( - CreateWebhookResponse$outboundSchema.parse(createWebhookResponse), - ); -} - -export function createWebhookResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CreateWebhookResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CreateWebhookResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/deactivatewebhook.ts b/webhooks/src/models/operations/deactivatewebhook.ts deleted file mode 100644 index ebcec97b..00000000 --- a/webhooks/src/models/operations/deactivatewebhook.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type DeactivateWebhookRequest = { - /** - * The webhook identifier. - */ - id: string; -}; - -/** - * Successful response - */ -export type DeactivateWebhookResponse = - | components.EVMAddressActivityResponse - | components.PrimaryNetworkAddressActivityResponse - | components.ValidatorActivityResponse; - -/** @internal */ -export const DeactivateWebhookRequest$inboundSchema: z.ZodType< - DeactivateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); - -/** @internal */ -export type DeactivateWebhookRequest$Outbound = { - id: string; -}; - -/** @internal */ -export const DeactivateWebhookRequest$outboundSchema: z.ZodType< - DeactivateWebhookRequest$Outbound, - z.ZodTypeDef, - DeactivateWebhookRequest -> = z.object({ - id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeactivateWebhookRequest$ { - /** @deprecated use `DeactivateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = DeactivateWebhookRequest$inboundSchema; - /** @deprecated use `DeactivateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = DeactivateWebhookRequest$outboundSchema; - /** @deprecated use `DeactivateWebhookRequest$Outbound` instead. */ - export type Outbound = DeactivateWebhookRequest$Outbound; -} - -export function deactivateWebhookRequestToJSON( - deactivateWebhookRequest: DeactivateWebhookRequest, -): string { - return JSON.stringify( - DeactivateWebhookRequest$outboundSchema.parse(deactivateWebhookRequest), - ); -} - -export function deactivateWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeactivateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeactivateWebhookRequest' from JSON`, - ); -} - -/** @internal */ -export const DeactivateWebhookResponse$inboundSchema: z.ZodType< - DeactivateWebhookResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.EVMAddressActivityResponse$inboundSchema, - components.PrimaryNetworkAddressActivityResponse$inboundSchema, - components.ValidatorActivityResponse$inboundSchema, -]); - -/** @internal */ -export type DeactivateWebhookResponse$Outbound = - | components.EVMAddressActivityResponse$Outbound - | components.PrimaryNetworkAddressActivityResponse$Outbound - | components.ValidatorActivityResponse$Outbound; - -/** @internal */ -export const DeactivateWebhookResponse$outboundSchema: z.ZodType< - DeactivateWebhookResponse$Outbound, - z.ZodTypeDef, - DeactivateWebhookResponse -> = z.union([ - components.EVMAddressActivityResponse$outboundSchema, - components.PrimaryNetworkAddressActivityResponse$outboundSchema, - components.ValidatorActivityResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeactivateWebhookResponse$ { - /** @deprecated use `DeactivateWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = DeactivateWebhookResponse$inboundSchema; - /** @deprecated use `DeactivateWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = DeactivateWebhookResponse$outboundSchema; - /** @deprecated use `DeactivateWebhookResponse$Outbound` instead. */ - export type Outbound = DeactivateWebhookResponse$Outbound; -} - -export function deactivateWebhookResponseToJSON( - deactivateWebhookResponse: DeactivateWebhookResponse, -): string { - return JSON.stringify( - DeactivateWebhookResponse$outboundSchema.parse(deactivateWebhookResponse), - ); -} - -export function deactivateWebhookResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => DeactivateWebhookResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'DeactivateWebhookResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/getaddressesfromwebhook.ts b/webhooks/src/models/operations/getaddressesfromwebhook.ts deleted file mode 100644 index 6c5dd848..00000000 --- a/webhooks/src/models/operations/getaddressesfromwebhook.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetAddressesFromWebhookRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * The webhook identifier. - */ - id: string; -}; - -export type GetAddressesFromWebhookResponse = { - result: components.ListWebhookAddressesResponse; -}; - -/** @internal */ -export const GetAddressesFromWebhookRequest$inboundSchema: z.ZodType< - GetAddressesFromWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - id: z.string(), -}); - -/** @internal */ -export type GetAddressesFromWebhookRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - id: string; -}; - -/** @internal */ -export const GetAddressesFromWebhookRequest$outboundSchema: z.ZodType< - GetAddressesFromWebhookRequest$Outbound, - z.ZodTypeDef, - GetAddressesFromWebhookRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesFromWebhookRequest$ { - /** @deprecated use `GetAddressesFromWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = GetAddressesFromWebhookRequest$inboundSchema; - /** @deprecated use `GetAddressesFromWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = GetAddressesFromWebhookRequest$outboundSchema; - /** @deprecated use `GetAddressesFromWebhookRequest$Outbound` instead. */ - export type Outbound = GetAddressesFromWebhookRequest$Outbound; -} - -export function getAddressesFromWebhookRequestToJSON( - getAddressesFromWebhookRequest: GetAddressesFromWebhookRequest, -): string { - return JSON.stringify( - GetAddressesFromWebhookRequest$outboundSchema.parse( - getAddressesFromWebhookRequest, - ), - ); -} - -export function getAddressesFromWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAddressesFromWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesFromWebhookRequest' from JSON`, - ); -} - -/** @internal */ -export const GetAddressesFromWebhookResponse$inboundSchema: z.ZodType< - GetAddressesFromWebhookResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListWebhookAddressesResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type GetAddressesFromWebhookResponse$Outbound = { - Result: components.ListWebhookAddressesResponse$Outbound; -}; - -/** @internal */ -export const GetAddressesFromWebhookResponse$outboundSchema: z.ZodType< - GetAddressesFromWebhookResponse$Outbound, - z.ZodTypeDef, - GetAddressesFromWebhookResponse -> = z.object({ - result: components.ListWebhookAddressesResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAddressesFromWebhookResponse$ { - /** @deprecated use `GetAddressesFromWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = GetAddressesFromWebhookResponse$inboundSchema; - /** @deprecated use `GetAddressesFromWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = GetAddressesFromWebhookResponse$outboundSchema; - /** @deprecated use `GetAddressesFromWebhookResponse$Outbound` instead. */ - export type Outbound = GetAddressesFromWebhookResponse$Outbound; -} - -export function getAddressesFromWebhookResponseToJSON( - getAddressesFromWebhookResponse: GetAddressesFromWebhookResponse, -): string { - return JSON.stringify( - GetAddressesFromWebhookResponse$outboundSchema.parse( - getAddressesFromWebhookResponse, - ), - ); -} - -export function getAddressesFromWebhookResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetAddressesFromWebhookResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetAddressesFromWebhookResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/getwebhook.ts b/webhooks/src/models/operations/getwebhook.ts deleted file mode 100644 index 8e662323..00000000 --- a/webhooks/src/models/operations/getwebhook.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetWebhookRequest = { - /** - * The webhook identifier. - */ - id: string; -}; - -/** - * Successful response - */ -export type GetWebhookResponse = - | components.EVMAddressActivityResponse - | components.PrimaryNetworkAddressActivityResponse - | components.ValidatorActivityResponse; - -/** @internal */ -export const GetWebhookRequest$inboundSchema: z.ZodType< - GetWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); - -/** @internal */ -export type GetWebhookRequest$Outbound = { - id: string; -}; - -/** @internal */ -export const GetWebhookRequest$outboundSchema: z.ZodType< - GetWebhookRequest$Outbound, - z.ZodTypeDef, - GetWebhookRequest -> = z.object({ - id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWebhookRequest$ { - /** @deprecated use `GetWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = GetWebhookRequest$inboundSchema; - /** @deprecated use `GetWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = GetWebhookRequest$outboundSchema; - /** @deprecated use `GetWebhookRequest$Outbound` instead. */ - export type Outbound = GetWebhookRequest$Outbound; -} - -export function getWebhookRequestToJSON( - getWebhookRequest: GetWebhookRequest, -): string { - return JSON.stringify( - GetWebhookRequest$outboundSchema.parse(getWebhookRequest), - ); -} - -export function getWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetWebhookRequest' from JSON`, - ); -} - -/** @internal */ -export const GetWebhookResponse$inboundSchema: z.ZodType< - GetWebhookResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.EVMAddressActivityResponse$inboundSchema, - components.PrimaryNetworkAddressActivityResponse$inboundSchema, - components.ValidatorActivityResponse$inboundSchema, -]); - -/** @internal */ -export type GetWebhookResponse$Outbound = - | components.EVMAddressActivityResponse$Outbound - | components.PrimaryNetworkAddressActivityResponse$Outbound - | components.ValidatorActivityResponse$Outbound; - -/** @internal */ -export const GetWebhookResponse$outboundSchema: z.ZodType< - GetWebhookResponse$Outbound, - z.ZodTypeDef, - GetWebhookResponse -> = z.union([ - components.EVMAddressActivityResponse$outboundSchema, - components.PrimaryNetworkAddressActivityResponse$outboundSchema, - components.ValidatorActivityResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetWebhookResponse$ { - /** @deprecated use `GetWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = GetWebhookResponse$inboundSchema; - /** @deprecated use `GetWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = GetWebhookResponse$outboundSchema; - /** @deprecated use `GetWebhookResponse$Outbound` instead. */ - export type Outbound = GetWebhookResponse$Outbound; -} - -export function getWebhookResponseToJSON( - getWebhookResponse: GetWebhookResponse, -): string { - return JSON.stringify( - GetWebhookResponse$outboundSchema.parse(getWebhookResponse), - ); -} - -export function getWebhookResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => GetWebhookResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetWebhookResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/index.ts b/webhooks/src/models/operations/index.ts deleted file mode 100644 index 810e9a52..00000000 --- a/webhooks/src/models/operations/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./addaddressestowebhook.js"; -export * from "./createwebhook.js"; -export * from "./deactivatewebhook.js"; -export * from "./getaddressesfromwebhook.js"; -export * from "./getwebhook.js"; -export * from "./listwebhooks.js"; -export * from "./removeaddressesfromwebhook.js"; -export * from "./updatewebhook.js"; diff --git a/webhooks/src/models/operations/listwebhooks.ts b/webhooks/src/models/operations/listwebhooks.ts deleted file mode 100644 index 64286fda..00000000 --- a/webhooks/src/models/operations/listwebhooks.ts +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type ListWebhooksRequest = { - /** - * A page token, received from a previous list call. Provide this to retrieve the subsequent page. - */ - pageToken?: string | undefined; - /** - * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. - */ - pageSize?: number | undefined; - /** - * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned. - */ - status?: components.WebhookStatus | undefined; -}; - -export type ListWebhooksResponse = { - result: components.ListWebhooksResponse; -}; - -/** @internal */ -export const ListWebhooksRequest$inboundSchema: z.ZodType< - ListWebhooksRequest, - z.ZodTypeDef, - unknown -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - status: components.WebhookStatus$inboundSchema.optional(), -}); - -/** @internal */ -export type ListWebhooksRequest$Outbound = { - pageToken?: string | undefined; - pageSize: number; - status?: string | undefined; -}; - -/** @internal */ -export const ListWebhooksRequest$outboundSchema: z.ZodType< - ListWebhooksRequest$Outbound, - z.ZodTypeDef, - ListWebhooksRequest -> = z.object({ - pageToken: z.string().optional(), - pageSize: z.number().int().default(10), - status: components.WebhookStatus$outboundSchema.optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListWebhooksRequest$ { - /** @deprecated use `ListWebhooksRequest$inboundSchema` instead. */ - export const inboundSchema = ListWebhooksRequest$inboundSchema; - /** @deprecated use `ListWebhooksRequest$outboundSchema` instead. */ - export const outboundSchema = ListWebhooksRequest$outboundSchema; - /** @deprecated use `ListWebhooksRequest$Outbound` instead. */ - export type Outbound = ListWebhooksRequest$Outbound; -} - -export function listWebhooksRequestToJSON( - listWebhooksRequest: ListWebhooksRequest, -): string { - return JSON.stringify( - ListWebhooksRequest$outboundSchema.parse(listWebhooksRequest), - ); -} - -export function listWebhooksRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListWebhooksRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListWebhooksRequest' from JSON`, - ); -} - -/** @internal */ -export const ListWebhooksResponse$inboundSchema: z.ZodType< - ListWebhooksResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: components.ListWebhooksResponse$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type ListWebhooksResponse$Outbound = { - Result: components.ListWebhooksResponse$Outbound; -}; - -/** @internal */ -export const ListWebhooksResponse$outboundSchema: z.ZodType< - ListWebhooksResponse$Outbound, - z.ZodTypeDef, - ListWebhooksResponse -> = z.object({ - result: components.ListWebhooksResponse$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ListWebhooksResponse$ { - /** @deprecated use `ListWebhooksResponse$inboundSchema` instead. */ - export const inboundSchema = ListWebhooksResponse$inboundSchema; - /** @deprecated use `ListWebhooksResponse$outboundSchema` instead. */ - export const outboundSchema = ListWebhooksResponse$outboundSchema; - /** @deprecated use `ListWebhooksResponse$Outbound` instead. */ - export type Outbound = ListWebhooksResponse$Outbound; -} - -export function listWebhooksResponseToJSON( - listWebhooksResponse: ListWebhooksResponse, -): string { - return JSON.stringify( - ListWebhooksResponse$outboundSchema.parse(listWebhooksResponse), - ); -} - -export function listWebhooksResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => ListWebhooksResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'ListWebhooksResponse' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/removeaddressesfromwebhook.ts b/webhooks/src/models/operations/removeaddressesfromwebhook.ts deleted file mode 100644 index 06972e4d..00000000 --- a/webhooks/src/models/operations/removeaddressesfromwebhook.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type RemoveAddressesFromWebhookRequest = { - /** - * The webhook identifier. - */ - id: string; - addressesChangeRequest: components.AddressesChangeRequest; -}; - -/** @internal */ -export const RemoveAddressesFromWebhookRequest$inboundSchema: z.ZodType< - RemoveAddressesFromWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - AddressesChangeRequest: components.AddressesChangeRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "AddressesChangeRequest": "addressesChangeRequest", - }); -}); - -/** @internal */ -export type RemoveAddressesFromWebhookRequest$Outbound = { - id: string; - AddressesChangeRequest: components.AddressesChangeRequest$Outbound; -}; - -/** @internal */ -export const RemoveAddressesFromWebhookRequest$outboundSchema: z.ZodType< - RemoveAddressesFromWebhookRequest$Outbound, - z.ZodTypeDef, - RemoveAddressesFromWebhookRequest -> = z.object({ - id: z.string(), - addressesChangeRequest: components.AddressesChangeRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - addressesChangeRequest: "AddressesChangeRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RemoveAddressesFromWebhookRequest$ { - /** @deprecated use `RemoveAddressesFromWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = RemoveAddressesFromWebhookRequest$inboundSchema; - /** @deprecated use `RemoveAddressesFromWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = - RemoveAddressesFromWebhookRequest$outboundSchema; - /** @deprecated use `RemoveAddressesFromWebhookRequest$Outbound` instead. */ - export type Outbound = RemoveAddressesFromWebhookRequest$Outbound; -} - -export function removeAddressesFromWebhookRequestToJSON( - removeAddressesFromWebhookRequest: RemoveAddressesFromWebhookRequest, -): string { - return JSON.stringify( - RemoveAddressesFromWebhookRequest$outboundSchema.parse( - removeAddressesFromWebhookRequest, - ), - ); -} - -export function removeAddressesFromWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RemoveAddressesFromWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RemoveAddressesFromWebhookRequest' from JSON`, - ); -} diff --git a/webhooks/src/models/operations/updatewebhook.ts b/webhooks/src/models/operations/updatewebhook.ts deleted file mode 100644 index eb9ff80c..00000000 --- a/webhooks/src/models/operations/updatewebhook.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type UpdateWebhookRequest = { - /** - * The webhook identifier. - */ - id: string; - updateWebhookRequest: components.UpdateWebhookRequest; -}; - -/** - * Successful response - */ -export type UpdateWebhookResponse = - | components.EVMAddressActivityResponse - | components.PrimaryNetworkAddressActivityResponse - | components.ValidatorActivityResponse; - -/** @internal */ -export const UpdateWebhookRequest$inboundSchema: z.ZodType< - UpdateWebhookRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - UpdateWebhookRequest: components.UpdateWebhookRequest$inboundSchema, -}).transform((v) => { - return remap$(v, { - "UpdateWebhookRequest": "updateWebhookRequest", - }); -}); - -/** @internal */ -export type UpdateWebhookRequest$Outbound = { - id: string; - UpdateWebhookRequest: components.UpdateWebhookRequest$Outbound; -}; - -/** @internal */ -export const UpdateWebhookRequest$outboundSchema: z.ZodType< - UpdateWebhookRequest$Outbound, - z.ZodTypeDef, - UpdateWebhookRequest -> = z.object({ - id: z.string(), - updateWebhookRequest: components.UpdateWebhookRequest$outboundSchema, -}).transform((v) => { - return remap$(v, { - updateWebhookRequest: "UpdateWebhookRequest", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWebhookRequest$ { - /** @deprecated use `UpdateWebhookRequest$inboundSchema` instead. */ - export const inboundSchema = UpdateWebhookRequest$inboundSchema; - /** @deprecated use `UpdateWebhookRequest$outboundSchema` instead. */ - export const outboundSchema = UpdateWebhookRequest$outboundSchema; - /** @deprecated use `UpdateWebhookRequest$Outbound` instead. */ - export type Outbound = UpdateWebhookRequest$Outbound; -} - -export function updateWebhookRequestToJSON( - updateWebhookRequest: UpdateWebhookRequest, -): string { - return JSON.stringify( - UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), - ); -} - -export function updateWebhookRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateWebhookRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateWebhookRequest' from JSON`, - ); -} - -/** @internal */ -export const UpdateWebhookResponse$inboundSchema: z.ZodType< - UpdateWebhookResponse, - z.ZodTypeDef, - unknown -> = z.union([ - components.EVMAddressActivityResponse$inboundSchema, - components.PrimaryNetworkAddressActivityResponse$inboundSchema, - components.ValidatorActivityResponse$inboundSchema, -]); - -/** @internal */ -export type UpdateWebhookResponse$Outbound = - | components.EVMAddressActivityResponse$Outbound - | components.PrimaryNetworkAddressActivityResponse$Outbound - | components.ValidatorActivityResponse$Outbound; - -/** @internal */ -export const UpdateWebhookResponse$outboundSchema: z.ZodType< - UpdateWebhookResponse$Outbound, - z.ZodTypeDef, - UpdateWebhookResponse -> = z.union([ - components.EVMAddressActivityResponse$outboundSchema, - components.PrimaryNetworkAddressActivityResponse$outboundSchema, - components.ValidatorActivityResponse$outboundSchema, -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UpdateWebhookResponse$ { - /** @deprecated use `UpdateWebhookResponse$inboundSchema` instead. */ - export const inboundSchema = UpdateWebhookResponse$inboundSchema; - /** @deprecated use `UpdateWebhookResponse$outboundSchema` instead. */ - export const outboundSchema = UpdateWebhookResponse$outboundSchema; - /** @deprecated use `UpdateWebhookResponse$Outbound` instead. */ - export type Outbound = UpdateWebhookResponse$Outbound; -} - -export function updateWebhookResponseToJSON( - updateWebhookResponse: UpdateWebhookResponse, -): string { - return JSON.stringify( - UpdateWebhookResponse$outboundSchema.parse(updateWebhookResponse), - ); -} - -export function updateWebhookResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => UpdateWebhookResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'UpdateWebhookResponse' from JSON`, - ); -} diff --git a/webhooks/src/sdk/addresses.ts b/webhooks/src/sdk/addresses.ts deleted file mode 100644 index 7a5cb6a4..00000000 --- a/webhooks/src/sdk/addresses.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksAddressesAdd } from "../funcs/webhooksAddressesAdd.js"; -import { webhooksAddressesList } from "../funcs/webhooksAddressesList.js"; -import { webhooksAddressesRemove } from "../funcs/webhooksAddressesRemove.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Addresses extends ClientSDK { - /** - * Add addresses to EVM activity webhook - * - * @remarks - * Add addresses to webhook. Only valid for EVM activity webhooks. - */ - async add( - request: operations.AddAddressesToWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksAddressesAdd( - this, - request, - options, - )); - } - - /** - * Remove addresses from EVM activity webhook - * - * @remarks - * Remove addresses from webhook. Only valid for EVM activity webhooks. - */ - async remove( - request: operations.RemoveAddressesFromWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksAddressesRemove( - this, - request, - options, - )); - } - - /** - * List adresses by EVM activity webhooks - * - * @remarks - * List adresses by webhook. Only valid for EVM activity webhooks. - */ - async list( - request: operations.GetAddressesFromWebhookRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(webhooksAddressesList( - this, - request, - options, - )); - } -} diff --git a/webhooks/src/sdk/index.ts b/webhooks/src/sdk/index.ts deleted file mode 100644 index ecac2264..00000000 --- a/webhooks/src/sdk/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export * from "./sdk.js"; diff --git a/webhooks/src/sdk/sdk.ts b/webhooks/src/sdk/sdk.ts deleted file mode 100644 index 9fc8220f..00000000 --- a/webhooks/src/sdk/sdk.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ClientSDK } from "../lib/sdks.js"; -import { Webhooks } from "./webhooks.js"; - -export class Avalanche extends ClientSDK { - private _webhooks?: Webhooks; - get webhooks(): Webhooks { - return (this._webhooks ??= new Webhooks(this._options)); - } -} diff --git a/webhooks/src/sdk/webhooks.ts b/webhooks/src/sdk/webhooks.ts deleted file mode 100644 index 7ac86e66..00000000 --- a/webhooks/src/sdk/webhooks.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { webhooksCreate } from "../funcs/webhooksCreate.js"; -import { webhooksDeactivate } from "../funcs/webhooksDeactivate.js"; -import { webhooksGenerateOrRotateSharedSecret } from "../funcs/webhooksGenerateOrRotateSharedSecret.js"; -import { webhooksGet } from "../funcs/webhooksGet.js"; -import { webhooksGetSharedSecret } from "../funcs/webhooksGetSharedSecret.js"; -import { webhooksHealthCheck } from "../funcs/webhooksHealthCheck.js"; -import { webhooksList } from "../funcs/webhooksList.js"; -import { webhooksUpdate } from "../funcs/webhooksUpdate.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; -import { Addresses } from "./addresses.js"; - -export class Webhooks extends ClientSDK { - private _addresses?: Addresses; - get addresses(): Addresses { - return (this._addresses ??= new Addresses(this._options)); - } - - /** - * Get the health of the service - * - * @remarks - * Check the health of the service. - */ - async healthCheck( - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksHealthCheck( - this, - options, - )); - } - - /** - * Create a webhook - * - * @remarks - * Create a new webhook. - */ - async create( - request: operations.CreateWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksCreate( - this, - request, - options, - )); - } - - /** - * List webhooks - * - * @remarks - * Lists webhooks for the user. - */ - async list( - request: operations.ListWebhooksRequest, - options?: RequestOptions, - ): Promise< - PageIterator - > { - return unwrapResultIterator(webhooksList( - this, - request, - options, - )); - } - - /** - * Get a webhook by ID - * - * @remarks - * Retrieves a webhook by ID. - */ - async get( - request: operations.GetWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksGet( - this, - request, - options, - )); - } - - /** - * Deactivate a webhook - * - * @remarks - * Deactivates a webhook by ID. - */ - async deactivate( - request: operations.DeactivateWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksDeactivate( - this, - request, - options, - )); - } - - /** - * Update a webhook - * - * @remarks - * Updates an existing webhook. - */ - async update( - request: operations.UpdateWebhookRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksUpdate( - this, - request, - options, - )); - } - - /** - * Generate or rotate a shared secret - * - * @remarks - * Generates a new shared secret or rotate an existing one. - */ - async generateOrRotateSharedSecret( - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksGenerateOrRotateSharedSecret( - this, - options, - )); - } - - /** - * Get a shared secret - * - * @remarks - * Get a previously generated shared secret. - */ - async getSharedSecret( - options?: RequestOptions, - ): Promise { - return unwrapAsync(webhooksGetSharedSecret( - this, - options, - )); - } -} diff --git a/webhooks/src/types/async.ts b/webhooks/src/types/async.ts deleted file mode 100644 index 689dba5d..00000000 --- a/webhooks/src/types/async.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type APICall = - | { - status: "complete"; - request: Request; - response: Response; - } - | { - status: "request-error"; - request: Request; - response?: undefined; - } - | { - status: "invalid"; - request?: undefined; - response?: undefined; - }; - -export class APIPromise implements Promise { - readonly #promise: Promise<[T, APICall]>; - readonly #unwrapped: Promise; - - readonly [Symbol.toStringTag] = "APIPromise"; - - constructor(p: [T, APICall] | Promise<[T, APICall]>) { - this.#promise = p instanceof Promise ? p : Promise.resolve(p); - this.#unwrapped = - p instanceof Promise - ? this.#promise.then(([value]) => value) - : Promise.resolve(p[0]); - } - - then( - onfulfilled?: - | ((value: T) => TResult1 | PromiseLike) - | null - | undefined, - onrejected?: - | ((reason: any) => TResult2 | PromiseLike) - | null - | undefined, - ): Promise { - return this.#promise.then( - onfulfilled ? ([value]) => onfulfilled(value) : void 0, - onrejected, - ); - } - - catch( - onrejected?: - | ((reason: any) => TResult | PromiseLike) - | null - | undefined, - ): Promise { - return this.#unwrapped.catch(onrejected); - } - - finally(onfinally?: (() => void) | null | undefined): Promise { - return this.#unwrapped.finally(onfinally); - } - - $inspect(): Promise<[T, APICall]> { - return this.#promise; - } -} diff --git a/webhooks/src/types/blobs.ts b/webhooks/src/types/blobs.ts deleted file mode 100644 index 4ce84602..00000000 --- a/webhooks/src/types/blobs.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); - -export function isBlobLike(val: unknown): val is Blob { - if (val instanceof Blob) { - return true; - } - - if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) { - return false; - } - - const name = val[Symbol.toStringTag]; - if (typeof name !== "string") { - return false; - } - if (name !== "Blob" && name !== "File") { - return false; - } - - return "stream" in val && typeof val.stream === "function"; -} diff --git a/webhooks/src/types/constdatetime.ts b/webhooks/src/types/constdatetime.ts deleted file mode 100644 index eeff4dde..00000000 --- a/webhooks/src/types/constdatetime.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export function constDateTime( - val: string, -): z.ZodType { - return z.custom((v) => { - return ( - typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() - ); - }, `Value must be equivalent to ${val}`); -} diff --git a/webhooks/src/types/enums.ts b/webhooks/src/types/enums.ts deleted file mode 100644 index 6fb6d910..00000000 --- a/webhooks/src/types/enums.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -declare const __brand: unique symbol; -export type Unrecognized = T & { [__brand]: "unrecognized" }; - -export function catchUnrecognizedEnum(value: T): Unrecognized { - return value as Unrecognized; -} - -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; diff --git a/webhooks/src/types/fp.ts b/webhooks/src/types/fp.ts deleted file mode 100644 index ccbe51ea..00000000 --- a/webhooks/src/types/fp.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -/** - * A monad that captures the result of a function call or an error if it was not - * successful. Railway programming, enabled by this type, can be a nicer - * alternative to traditional exception throwing because it allows functions to - * declare all _known_ errors with static types and then check for them - * exhaustively in application code. Thrown exception have a type of `unknown` - * and break out of regular control flow of programs making them harder to - * inspect and more verbose work with due to try-catch blocks. - */ -export type Result = - | { ok: true; value: T; error?: never } - | { ok: false; value?: never; error: E }; - -export function OK(value: V): Result { - return { ok: true, value }; -} - -export function ERR(error: E): Result { - return { ok: false, error }; -} - -/** - * unwrap is a convenience function for extracting a value from a result or - * throwing if there was an error. - */ -export function unwrap(r: Result): T { - if (!r.ok) { - throw r.error; - } - return r.value; -} - -/** - * unwrapAsync is a convenience function for resolving a value from a Promise - * of a result or rejecting if an error occurred. - */ -export async function unwrapAsync( - pr: Promise>, -): Promise { - const r = await pr; - if (!r.ok) { - throw r.error; - } - - return r.value; -} diff --git a/webhooks/src/types/index.ts b/webhooks/src/types/index.ts deleted file mode 100644 index 74ee06ce..00000000 --- a/webhooks/src/types/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; -export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; -export type { Result } from "./fp.js"; -export type { PageIterator, Paginator } from "./operations.js"; -export { createPageIterator } from "./operations.js"; -export { RFCDate } from "./rfcdate.js"; -export type { WebhookRecipient } from "./webhooks.js"; diff --git a/webhooks/src/types/operations.ts b/webhooks/src/types/operations.ts deleted file mode 100644 index beb81e10..00000000 --- a/webhooks/src/types/operations.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { Result } from "./fp.js"; - -export type Paginator = () => Promise }> | null; - -export type PageIterator = V & { - next: Paginator; - [Symbol.asyncIterator]: () => AsyncIterableIterator; - "~next"?: PageState | undefined; -}; - -export function createPageIterator( - page: V & { next: Paginator }, - halt: (v: V) => boolean, -): { - [Symbol.asyncIterator]: () => AsyncIterableIterator; -} { - return { - [Symbol.asyncIterator]: async function* paginator() { - yield page; - if (halt(page)) { - return; - } - - let p: typeof page | null = page; - for (p = await p.next(); p != null; p = await p.next()) { - yield p; - if (halt(p)) { - return; - } - } - }, - }; -} - -/** - * This utility create a special iterator that yields a single value and - * terminates. It is useful in paginated SDK functions that have early return - * paths when things go wrong. - */ -export function haltIterator( - v: V, -): PageIterator { - return { - ...v, - next: () => null, - [Symbol.asyncIterator]: async function* paginator() { - yield v; - }, - }; -} - -/** - * Converts an async iterator of `Result` into an async iterator of `V`. - * When error results occur, the underlying error value is thrown. - */ -export async function unwrapResultIterator( - iteratorPromise: Promise, PageState>>, -): Promise> { - const resultIter = await iteratorPromise; - - if (!resultIter.ok) { - throw resultIter.error; - } - - return { - ...resultIter.value, - next: unwrapPaginator(resultIter.next), - "~next": resultIter["~next"], - [Symbol.asyncIterator]: async function* paginator() { - for await (const page of resultIter) { - if (!page.ok) { - throw page.error; - } - yield page.value; - } - }, - }; -} - -function unwrapPaginator( - paginator: Paginator>, -): Paginator { - return () => { - const nextResult = paginator(); - if (nextResult == null) { - return null; - } - return nextResult.then((res) => { - if (!res.ok) { - throw res.error; - } - const out = { - ...res.value, - next: unwrapPaginator(res.next), - }; - return out; - }); - }; -} - -export const URL_OVERRIDE = Symbol("URL_OVERRIDE"); diff --git a/webhooks/src/types/rfcdate.ts b/webhooks/src/types/rfcdate.ts deleted file mode 100644 index c79b3f53..00000000 --- a/webhooks/src/types/rfcdate.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -const dateRE = /^\d{4}-\d{2}-\d{2}$/; - -export class RFCDate { - private serialized: string; - - /** - * Creates a new RFCDate instance using today's date. - */ - static today(): RFCDate { - return new RFCDate(new Date()); - } - - /** - * Creates a new RFCDate instance using the provided input. - * If a string is used then in must be in the format YYYY-MM-DD. - * - * @param date A Date object or a date string in YYYY-MM-DD format - * @example - * new RFCDate("2022-01-01") - * @example - * new RFCDate(new Date()) - */ - constructor(date: Date | string) { - if (typeof date === "string" && !dateRE.test(date)) { - throw new RangeError( - "RFCDate: date strings must be in the format YYYY-MM-DD: " + date, - ); - } - - const value = new Date(date); - if (isNaN(+value)) { - throw new RangeError("RFCDate: invalid date provided: " + date); - } - - this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length); - if (!dateRE.test(this.serialized)) { - throw new TypeError( - `RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`, - ); - } - } - - toJSON(): string { - return this.toString(); - } - - toString(): string { - return this.serialized; - } -} diff --git a/webhooks/src/types/streams.ts b/webhooks/src/types/streams.ts deleted file mode 100644 index a0163e7a..00000000 --- a/webhooks/src/types/streams.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export function isReadableStream( - val: unknown, -): val is ReadableStream { - if (typeof val !== "object" || val === null) { - return false; - } - - // Check for the presence of methods specific to ReadableStream - const stream = val as ReadableStream; - - // ReadableStream has methods like getReader, cancel, and tee - return ( - typeof stream.getReader === "function" && - typeof stream.cancel === "function" && - typeof stream.tee === "function" - ); -} diff --git a/webhooks/src/types/webhooks.ts b/webhooks/src/types/webhooks.ts deleted file mode 100644 index 9510d20c..00000000 --- a/webhooks/src/types/webhooks.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -export type WebhookRecipient = { - url: string; -}; diff --git a/webhooks/src/utils/index.ts b/webhooks/src/utils/index.ts deleted file mode 100644 index c8290d21..00000000 --- a/webhooks/src/utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./validateSignature.js"; \ No newline at end of file diff --git a/webhooks/src/utils/validateSignature.ts b/webhooks/src/utils/validateSignature.ts deleted file mode 100644 index e71e782d..00000000 --- a/webhooks/src/utils/validateSignature.ts +++ /dev/null @@ -1,11 +0,0 @@ -import crypto from 'crypto'; -import { canonicalize } from 'json-canonicalize'; - -export function validateSignature(signingSecret: any, signature: any, payload: any) { - const canonicalizedPayload = canonicalize(payload); - const hmac = crypto.createHmac('sha256', Buffer.from(signingSecret, 'hex')); - const digest = hmac.update(canonicalizedPayload).digest('base64'); - console.log("signature: ", signature); - console.log("digest", digest); - return signature === digest; -} \ No newline at end of file diff --git a/webhooks/tsconfig.json b/webhooks/tsconfig.json deleted file mode 100644 index 94d81a34..00000000 --- a/webhooks/tsconfig.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": ".tsbuildinfo", - "target": "ES2020", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "jsx": "react-jsx", - - "module": "Node16", - "moduleResolution": "Node16", - - "allowJs": true, - - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": ".", - - - // https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json - "strict": true, - "allowUnusedLabels": false, - "allowUnreachableCode": false, - "exactOptionalPropertyTypes": true, - "useUnknownInCatchVariables": true, - "noFallthroughCasesInSwitch": true, - "noImplicitOverride": true, - "noImplicitReturns": true, - "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "checkJs": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true - }, - "include": ["src"], - "exclude": ["node_modules"] -} From 75baa87ebd3737d47a8a10346d264675cc067cbe Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Sat, 9 Aug 2025 02:34:07 +0530 Subject: [PATCH 3/7] refactor: modify devtools sdk name to chainkit --- .github/ISSUE_TEMPLATE/bug_report.md | 5 +- .github/ISSUE_TEMPLATE/feature_request.md | 3 +- ...tion.yaml => chainkit_sdk_generation.yaml} | 6 +- ...publish.yaml => chainkit_sdk_publish.yaml} | 6 +- .github/workflows/sdk_generate_docs.yaml | 2 +- .speakeasy/workflow.lock | 154 +-- .speakeasy/workflow.yaml | 16 +- .vscode/settings.json | 2 + CHANGELOG.md | 4 +- CONTRIBUTING.md | 18 +- README.md | 28 +- .../.devcontainer/README.md | 0 .../.devcontainer/devcontainer.json | 0 {devtools => chainkit}/.devcontainer/setup.sh | 2 +- {devtools => chainkit}/.genignore | 0 {devtools => chainkit}/.gitattributes | 0 {devtools => chainkit}/.gitignore | 0 {devtools => chainkit}/.npmignore | 0 {devtools => chainkit}/.speakeasy/gen.lock | 10 +- {devtools => chainkit}/.speakeasy/gen.yaml | 4 +- {devtools => chainkit}/CONTRIBUTING.md | 0 {devtools => chainkit}/FUNCTIONS.md | 4 +- {devtools => chainkit}/README.md | 181 ++-- chainkit/RELEASES.md | 1 + {devtools => chainkit}/RUNTIMES.md | 0 {devtools => chainkit}/USAGE.md | 2 +- .../docs/lib/utils/retryconfig.md | 0 .../docs/models/components/accesslistdata.md | 2 +- .../components/activedelegatordetails.md | 2 +- .../activedelegatordetailsdelegationstatus.md | 2 +- .../components/activevalidatordetails.md | 2 +- .../activevalidatordetailsvalidationstatus.md | 2 +- .../components/addressactivityeventtype.md | 2 +- .../components/addressactivitymetadata.md | 2 +- .../docs/models/components/addressdetails.md | 2 +- .../components/addresseschangerequest.md | 2 +- .../components/aggregatedassetamount.md | 2 +- .../docs/models/components/apifeature.md | 2 +- .../docs/models/components/assetamount.md | 2 +- .../models/components/assetwithpriceinfo.md | 2 +- .../docs/models/components/balanceowner.md | 2 +- .../docs/models/components/blockchain.md | 2 +- .../components/blockchaingenesisdata.md | 2 +- .../docs/models/components/blockchainid.md | 2 +- .../docs/models/components/blockchainids.md | 2 +- .../docs/models/components/blockchaininfo.md | 2 +- .../components/blockchaininfogenesisdata.md | 2 +- .../docs/models/components/blscredentials.md | 2 +- .../models/components/cchainatomicbalances.md | 2 +- .../components/cchainexporttransaction.md | 2 +- .../cchainexporttransactiontxtype.md | 2 +- .../components/cchainimporttransaction.md | 2 +- .../cchainimporttransactiontxtype.md | 2 +- .../components/cchainsharedassetbalance.md | 2 +- .../docs/models/components/chain.md | 2 +- .../components/chainaddresschainidmap.md | 2 +- .../chainaddresschainidmaplistresponse.md | 2 +- .../docs/models/components/chaininfo.md | 2 +- .../components/chaininfoenabledfeature.md | 2 +- .../docs/models/components/chainmetric.md | 2 +- .../components/chainrollingwindowmetric.md | 2 +- .../chainrollingwindowmetricsvalue.md | 2 +- .../docs/models/components/chainstatus.md | 2 +- .../models/components/collectiblebalance.md | 0 .../models/components/commonbalancetype.md | 2 +- .../components/completeddelegatordetails.md | 2 +- ...mpleteddelegatordetailsdelegationstatus.md | 2 +- .../components/completedvalidatordetails.md | 2 +- ...mpletedvalidatordetailsvalidationstatus.md | 2 +- .../docs/models/components/contract.md | 20 +- .../components/contractdeploymentdetails.md | 2 +- .../createevmtransactionexportrequest.md | 2 +- ...eprimarynetworktransactionexportrequest.md | 2 +- .../docs/models/components/currencycode.md | 2 +- .../components/datalistchainsresponse.md | 2 +- .../models/components/delegationstatustype.md | 2 +- .../docs/models/components/delegator.md | 0 .../models/components/delegatorsdetails.md | 2 +- .../models/components/deliveredicmmessage.md | 2 +- .../components/deliveredicmmessagestatus.md | 2 +- .../deliveredsourcenotindexedicmmessage.md | 2 +- ...liveredsourcenotindexedicmmessagestatus.md | 2 +- ...iveredsourcenotindexedteleportermessage.md | 2 +- ...sourcenotindexedteleportermessagestatus.md | 2 +- .../components/deliveredteleportermessage.md | 2 +- .../deliveredteleportermessagestatus.md | 2 +- .../docs/models/components/erc1155contract.md | 2 +- .../components/erc1155contracterctype.md | 2 +- .../docs/models/components/erc1155token.md | 2 +- .../models/components/erc1155tokenbalance.md | 2 +- .../components/erc1155tokenbalanceerctype.md | 2 +- .../models/components/erc1155tokenerctype.md | 2 +- .../models/components/erc1155tokenmetadata.md | 2 +- .../docs/models/components/erc1155transfer.md | 2 +- .../components/erc1155transferdetails.md | 2 +- .../docs/models/components/erc20contract.md | 2 +- .../models/components/erc20contracterctype.md | 2 +- .../docs/models/components/erc20token.md | 2 +- .../models/components/erc20tokenbalance.md | 2 +- .../components/erc20tokenbalanceerctype.md | 2 +- .../models/components/erc20tokenerctype.md | 2 +- .../docs/models/components/erc20transfer.md | 2 +- .../models/components/erc20transferdetails.md | 2 +- .../docs/models/components/erc721contract.md | 2 +- .../components/erc721contracterctype.md | 2 +- .../docs/models/components/erc721token.md | 2 +- .../models/components/erc721tokenbalance.md | 2 +- .../components/erc721tokenbalanceerctype.md | 2 +- .../models/components/erc721tokenerctype.md | 2 +- .../models/components/erc721tokenmetadata.md | 2 +- .../docs/models/components/erc721transfer.md | 2 +- .../components/erc721transferdetails.md | 2 +- .../docs/models/components/erctoken.md | 2 +- .../docs/models/components/erctransfer.md | 2 +- .../components/evmaddressactivityrequest.md | 2 +- .../evmaddressactivityrequesteventtype.md | 2 +- .../evmaddressactivityrequestmetadata.md | 0 .../components/evmaddressactivityresponse.md | 2 +- .../docs/models/components/evmblock.md | 2 +- .../docs/models/components/evminput.md | 2 +- .../models/components/evmnetworkoptions.md | 2 +- .../models/components/evmoperationtype.md | 2 +- .../docs/models/components/evmoutput.md | 2 +- .../fullnativetransactiondetails.md | 2 +- .../docs/models/components/geolocation.md | 2 +- .../models/components/getchainresponse.md | 2 +- .../getchainresponseenabledfeature.md | 2 +- .../models/components/getevmblockresponse.md | 2 +- .../components/getnativebalanceresponse.md | 2 +- .../components/getnetworkdetailsresponse.md | 2 +- .../getprimarynetworkblockresponse.md | 2 +- .../components/gettransactionresponse.md | 2 +- .../models/components/globalparamnetwork.md | 2 +- .../models/components/healthcheckresultdto.md | 2 +- .../components/healthcheckresultdtostatus.md | 2 +- .../components/healthindicatorresultdto.md | 2 +- .../healthindicatorresultdtostatus.md | 2 +- .../models/components/historicalreward.md | 2 +- .../components/icmdestinationtransaction.md | 2 +- .../docs/models/components/icmreceipt.md | 2 +- .../models/components/icmrewarddetails.md | 2 +- .../components/icmrewarddetailserctype.md | 2 +- .../models/components/icmsourcetransaction.md | 2 +- .../docs/models/components/imageasset.md | 2 +- .../docs/models/components/includechain.md | 2 +- .../models/components/internaltransaction.md | 2 +- .../components/internaltransactiondetails.md | 2 +- .../components/internaltransactionopcall.md | 2 +- .../components/l1validatordetailsfull.md | 2 +- .../l1validatordetailsfullblscredentials.md | 2 +- .../l1validatordetailstransaction.md | 2 +- ...lidatordetailstransactionblscredentials.md | 2 +- .../components/l1validatormanagerdetails.md | 2 +- .../components/listaddresschainsresponse.md | 2 +- .../components/listblockchainsresponse.md | 2 +- .../listcchainatomicbalancesresponse.md | 2 +- .../listcchainatomictransactionsresponse.md | 2 +- ...inatomictransactionsresponsetransaction.md | 0 .../listcollectiblebalancesresponse.md | 2 +- .../components/listcontractsresponse.md | 2 +- .../listdelegatordetailsresponse.md | 2 +- .../components/listerc1155balancesresponse.md | 2 +- .../listerc1155transactionsresponse.md | 2 +- .../components/listerc20balancesresponse.md | 2 +- .../listerc20transactionsresponse.md | 2 +- .../components/listerc721balancesresponse.md | 2 +- .../listerc721transactionsresponse.md | 2 +- .../components/listevmblocksresponse.md | 2 +- .../listhistoricalrewardsresponse.md | 2 +- .../components/listicmmessagesresponse.md | 2 +- .../listicmmessagesresponsemessage.md | 34 +- .../listinternaltransactionsresponse.md | 2 +- .../components/listl1validatorsresponse.md | 2 +- .../listnativetransactionsresponse.md | 2 +- .../docs/models/components/listnfttokens.md | 2 +- .../components/listpchainbalancesresponse.md | 2 +- .../listpchaintransactionsresponse.md | 2 +- .../components/listpchainutxosresponse.md | 2 +- .../components/listpendingrewardsresponse.md | 2 +- .../listprimarynetworkblocksresponse.md | 2 +- .../models/components/listsubnetsresponse.md | 2 +- .../listteleportermessagesresponse.md | 2 +- .../listteleportermessagesresponsemessage.md | 0 .../listtransactiondetailsresponse.md | 2 +- .../components/listtransfersresponse.md | 2 +- .../models/components/listutxosresponse.md | 2 +- .../listvalidatordetailsresponse.md | 2 +- .../listwebhookaddressesresponse.md | 2 +- .../models/components/listwebhooksresponse.md | 2 +- .../components/listxchainbalancesresponse.md | 2 +- .../listxchaintransactionsresponse.md | 2 +- ...stxchaintransactionsresponsetransaction.md | 0 .../components/listxchainverticesresponse.md | 2 +- .../docs/models/components/log.md | 2 +- .../docs/models/components/logsformat.md | 2 +- .../models/components/logsformatmetadata.md | 2 +- .../docs/models/components/logsresponsedto.md | 2 +- .../models/components/lookingglassresponse.md | 2 +- .../docs/models/components/method.md | 2 +- .../docs/models/components/metric.md | 2 +- .../models/components/metricsapiresponse.md | 2 +- .../components/metricslistchainsresponse.md | 2 +- .../docs/models/components/metricsvalue.md | 2 +- .../docs/models/components/money.md | 2 +- .../models/components/nativetokenbalance.md | 2 +- .../models/components/nativetransaction.md | 2 +- .../docs/models/components/network.md | 2 +- .../docs/models/components/networkmetric.md | 2 +- .../docs/models/components/networktoken.md | 2 +- .../models/components/networktokendetails.md | 2 +- .../models/components/networktokeninfo.md | 2 +- .../docs/models/components/networktype.md | 2 +- .../models/components/nftholdersresponse.md | 2 +- .../components/nfttokenmetadatastatus.md | 2 +- .../docs/models/components/operationstatus.md | 2 +- .../models/components/operationstatuscode.md | 2 +- .../components/operationstatusresponse.md | 2 +- .../operationstatusresponsemetadata.md | 0 .../docs/models/components/operationtype.md | 2 +- .../models/components/pchainaddressdetails.md | 2 +- .../docs/models/components/pchainbalance.md | 2 +- .../docs/models/components/pchainid.md | 2 +- .../components/pchainlookingglassresponse.md | 2 +- .../models/components/pchainsharedasset.md | 2 +- .../models/components/pchaintransaction.md | 2 +- .../components/pchaintransactiontype.md | 2 +- .../docs/models/components/pchainutxo.md | 2 +- .../components/pendingdelegatordetails.md | 2 +- ...pendingdelegatordetailsdelegationstatus.md | 2 +- .../models/components/pendingicmmessage.md | 2 +- .../components/pendingicmmessagestatus.md | 2 +- .../docs/models/components/pendingreward.md | 2 +- .../components/pendingteleportermessage.md | 2 +- .../pendingteleportermessagestatus.md | 2 +- .../components/pendingvalidatordetails.md | 2 +- ...pendingvalidatordetailsvalidationstatus.md | 2 +- .../platformaddressactivitykeytype.md | 2 +- .../models/components/pricingproviders.md | 2 +- .../primarynetworkaddressactivityeventtype.md | 2 +- .../primarynetworkaddressactivitymetadata.md | 2 +- .../primarynetworkaddressactivityrequest.md | 2 +- ...ynetworkaddressactivityrequesteventtype.md | 2 +- ...rynetworkaddressactivityrequestmetadata.md | 0 .../primarynetworkaddressactivityresponse.md | 2 +- .../primarynetworkaddressactivitysubevents.md | 2 +- ...imarynetworkaddressactivitysubeventtype.md | 2 +- .../components/primarynetworkassetcap.md | 2 +- .../components/primarynetworkassettype.md | 2 +- .../primarynetworkbalancethresholdfilter.md | 2 +- .../models/components/primarynetworkblock.md | 2 +- .../components/primarynetworkchaininfo.md | 2 +- .../components/primarynetworkchainname.md | 2 +- .../components/primarynetworkoperationtype.md | 2 +- .../components/primarynetworkoptions.md | 2 +- .../models/components/primarynetworktxtype.md | 2 +- .../models/components/primarynetworktype.md | 2 +- .../docs/models/components/proposerdetails.md | 2 +- .../components/removedvalidatordetails.md | 2 +- ...removedvalidatordetailsvalidationstatus.md | 2 +- .../docs/models/components/requesttype.md | 2 +- .../docs/models/components/resourcelink.md | 2 +- .../models/components/resourcelinktype.md | 2 +- .../docs/models/components/rewards.md | 2 +- .../docs/models/components/rewardtype.md | 2 +- .../docs/models/components/richaddress.md | 2 +- .../rollingwindowmetricsapiresponse.md | 2 +- .../docs/models/components/rpcmetrics.md | 2 +- .../components/rpcusagemetricsgroupbyenum.md | 2 +- .../rpcusagemetricsvalueaggregated.md | 2 +- ...rpcusagemetricsvalueaggregatedgroupedby.md | 2 +- ...pcusagemetricsvalueaggregatedgroupvalue.md | 0 .../docs/models/components/security.md | 2 +- .../components/sharedsecretsresponse.md | 2 +- .../signatureaggregationresponse.md | 2 +- .../components/signatureaggregatorrequest.md | 2 +- .../docs/models/components/sortbyoption.md | 2 +- .../docs/models/components/sortorder.md | 2 +- .../models/components/stakingdistribution.md | 2 +- .../docs/models/components/subnet.md | 2 +- .../models/components/subnetownershipinfo.md | 2 +- .../subnetrpctimeintervalgranularity.md | 2 +- .../subnetrpcusagemetricsresponsedto.md | 2 +- .../teleporterchainmetricsapiresponse.md | 2 +- .../teleporterdestinationtransaction.md | 2 +- .../components/teleportermessageinfo.md | 2 +- .../models/components/teleportermetric.md | 2 +- .../components/teleportermetricsvalue.md | 2 +- .../models/components/teleporterreceipt.md | 2 +- .../components/teleporterrewarddetails.md | 2 +- .../teleporterrewarddetailserctype.md | 2 +- .../components/teleportersourcetransaction.md | 2 +- .../components/timeintervalgranularity.md | 2 +- .../timeintervalgranularityextended.md | 2 +- .../docs/models/components/token.md | 0 .../docs/models/components/tokenreputation.md | 2 +- .../docs/models/components/transaction.md | 2 +- .../models/components/transactiondetails.md | 2 +- .../components/transactiondirectiontype.md | 2 +- .../models/components/transactionevent.md | 2 +- .../components/transactionexportmetadata.md | 2 +- .../components/transactionmethodtype.md | 2 +- .../models/components/transactionstatus.md | 2 +- .../components/transactionvertexdetail.md | 2 +- .../docs/models/components/transfer.md | 0 .../docs/models/components/unknowncontract.md | 2 +- .../components/unknowncontracterctype.md | 2 +- .../models/components/updatewebhookrequest.md | 2 +- .../components/usagemetricsgroupbyenum.md | 2 +- .../components/usagemetricsresponsedto.md | 2 +- .../models/components/usagemetricsvaluedto.md | 2 +- .../usagemetricsvaluedtogroupedby.md | 2 +- .../usagemetricsvaluedtogroupvalue.md | 0 .../models/components/utilityaddresses.md | 2 +- .../docs/models/components/utxo.md | 2 +- .../docs/models/components/utxocredential.md | 2 +- .../docs/models/components/utxotype.md | 2 +- .../models/components/validationstatustype.md | 2 +- .../docs/models/components/validator.md | 0 .../components/validatoractivityeventtype.md | 2 +- .../components/validatoractivitykeytype.md | 2 +- .../components/validatoractivitymetadata.md | 2 +- .../components/validatoractivityrequest.md | 2 +- .../validatoractivityrequesteventtype.md | 2 +- .../validatoractivityrequestmetadata.md | 0 .../components/validatoractivityresponse.md | 2 +- .../components/validatoractivitysubevent.md | 2 +- .../components/validatoractivitysubevents.md | 2 +- .../components/validatorhealthdetails.md | 2 +- .../models/components/validatorsdetails.md | 2 +- .../docs/models/components/vmname.md | 2 +- .../docs/models/components/webhook.md | 0 .../webhookaddressactivityresponse.md | 2 +- ...webhookaddressactivityresponseeventtype.md | 2 +- .../components/webhookinternaltransaction.md | 2 +- .../docs/models/components/webhookstatus.md | 2 +- .../models/components/webhookstatustype.md | 2 +- .../models/components/xchainassetdetails.md | 2 +- .../docs/models/components/xchainbalances.md | 2 +- .../docs/models/components/xchainid.md | 2 +- .../components/xchainlineartransaction.md | 2 +- .../xchainlineartransactionchainformat.md | 2 +- .../components/xchainnonlineartransaction.md | 2 +- .../xchainnonlineartransactionchainformat.md | 2 +- .../components/xchainsharedassetbalance.md | 2 +- .../components/xchaintransactiontype.md | 2 +- .../docs/models/components/xchainvertex.md | 2 +- .../docs/models/errors/badgatewayerror.md | 2 +- .../docs/models/errors/badgatewaymessage.md | 0 .../docs/models/errors/badrequesterror.md | 2 +- .../docs/models/errors/badrequestmessage.md | 0 .../docs/models/errors/forbiddenerror.md | 2 +- .../docs/models/errors/forbiddenmessage.md | 0 .../docs/models/errors/internalservererror.md | 2 +- .../errors/internalservererrormessage.md | 0 .../docs/models/errors/notfounderror.md | 2 +- .../docs/models/errors/notfoundmessage.md | 0 .../models/errors/serviceunavailableerror.md | 2 +- .../errors/serviceunavailablemessage.md | 0 .../models/errors/toomanyrequestserror.md | 2 +- .../models/errors/toomanyrequestsmessage.md | 0 .../docs/models/errors/unauthorizederror.md | 2 +- .../docs/models/errors/unauthorizedmessage.md | 0 .../addaddressestowebhookrequest.md | 2 +- .../operations/aggregatesignaturesglobals.md | 2 +- .../operations/aggregatesignaturesrequest.md | 2 +- .../models/operations/createwebhookrequest.md | 0 .../operations/createwebhookresponse.md | 0 .../operations/deactivatewebhookrequest.md | 2 +- .../operations/deactivatewebhookresponse.md | 0 .../operations/getaddresschainsrequest.md | 2 +- .../getaddressesbybalanceovertimeglobals.md | 2 +- .../getaddressesbybalanceovertimerequest.md | 2 +- .../getaddressesbybalanceovertimeresponse.md | 2 +- .../getaddressesbybtcbbridgedrequest.md | 2 +- .../getaddressesbybtcbbridgedresponse.md | 2 +- .../getaddressesfromwebhookrequest.md | 2 +- .../getaddressesfromwebhookresponse.md | 2 +- .../getaggregatedsignaturesglobals.md | 2 +- .../getaggregatedsignaturesrequest.md | 2 +- .../models/operations/getapilogsrequest.md | 2 +- .../operations/getapilogsrequesttype.md | 2 +- .../models/operations/getapilogsresponse.md | 2 +- .../operations/getapiusagemetricsrequest.md | 2 +- .../getapiusagemetricsrequesttype.md | 2 +- .../operations/getassetdetailsglobals.md | 2 +- .../operations/getassetdetailsrequest.md | 2 +- .../getbalancesbyaddressesglobals.md | 2 +- .../getbalancesbyaddressesrequest.md | 2 +- .../getbalancesbyaddressesresponse.md | 0 .../models/operations/getblockbyidglobals.md | 2 +- .../models/operations/getblockbyidrequest.md | 2 +- .../operations/getblockchainbyidglobals.md | 2 +- .../operations/getblockchainbyidrequest.md | 2 +- .../docs/models/operations/getblockglobals.md | 2 +- .../docs/models/operations/getblockrequest.md | 2 +- .../docs/models/operations/getchainglobals.md | 2 +- .../getchainidsforaddressesglobals.md | 2 +- .../getchainidsforaddressesrequest.md | 2 +- .../models/operations/getchaininfoglobals.md | 2 +- .../models/operations/getchaininforequest.md | 2 +- .../docs/models/operations/getchainrequest.md | 2 +- .../operations/getcontractmetadataglobals.md | 2 +- .../operations/getcontractmetadatarequest.md | 2 +- .../operations/getcontractmetadataresponse.md | 20 +- .../getdeploymenttransactionglobals.md | 2 +- .../getdeploymenttransactionrequest.md | 2 +- .../operations/getevmchainmetricsglobals.md | 2 +- .../operations/getevmchainmetricsrequest.md | 2 +- .../operations/getevmchainmetricsresponse.md | 2 +- .../getevmchainrollingwindowmetricsglobals.md | 2 +- .../getevmchainrollingwindowmetricsrequest.md | 2 +- .../models/operations/geticmmessagerequest.md | 2 +- .../operations/geticmmessageresponse.md | 0 .../operations/getlatestblocksglobals.md | 2 +- .../operations/getlatestblocksrequest.md | 2 +- .../operations/getlatestblocksresponse.md | 2 +- .../operations/getmetricsbynodeidmetric.md | 2 +- .../operations/getmetricsbynodeidrequest.md | 2 +- .../operations/getmetricsbysubnetidmetric.md | 2 +- .../operations/getmetricsbysubnetidrequest.md | 2 +- .../getmetricsbyvalidationidmetric.md | 2 +- .../getmetricsbyvalidationidrequest.md | 2 +- .../operations/getnativebalanceglobals.md | 2 +- .../operations/getnativebalancerequest.md | 2 +- .../operations/getnetworkdetailsglobals.md | 2 +- .../operations/getnetworkdetailsrequest.md | 2 +- .../getnftholdersbycontractaddressglobals.md | 2 +- .../getnftholdersbycontractaddressrequest.md | 2 +- .../getnftholdersbycontractaddressresponse.md | 2 +- .../operations/getoperationresultrequest.md | 2 +- .../operations/getrpcusagemetricsrequest.md | 2 +- .../getsinglevalidatordetailsglobals.md | 2 +- .../getsinglevalidatordetailsrequest.md | 2 +- .../getsinglevalidatordetailsresponse.md | 2 +- .../operations/getstakingmetricsglobals.md | 2 +- .../operations/getstakingmetricsrequest.md | 2 +- .../operations/getstakingmetricsresponse.md | 2 +- .../models/operations/getsubnetbyidglobals.md | 2 +- .../models/operations/getsubnetbyidrequest.md | 2 +- .../getsubnetrpcusagemetricsrequest.md | 2 +- .../operations/getteleportermessagerequest.md | 2 +- .../getteleportermessageresponse.md | 0 .../getteleportermetricsbychainglobals.md | 2 +- .../getteleportermetricsbychainrequest.md | 2 +- .../operations/gettokendetailsglobals.md | 2 +- .../operations/gettokendetailsrequest.md | 2 +- .../operations/gettokendetailsresponse.md | 0 .../gettotall1validatormetricsmetric.md | 2 +- .../gettotall1validatormetricsrequest.md | 2 +- .../operations/gettransactionglobals.md | 2 +- .../operations/gettransactionrequest.md | 2 +- .../gettransactionsforblockglobals.md | 2 +- .../gettransactionsforblockrequest.md | 2 +- .../models/operations/gettxbyhashglobals.md | 2 +- .../models/operations/gettxbyhashrequest.md | 2 +- .../models/operations/gettxbyhashresponse.md | 0 .../operations/getutxosbyaddressesglobals.md | 2 +- .../operations/getutxosbyaddressesrequest.md | 2 +- .../operations/getutxosbyaddressesresponse.md | 2 +- .../getutxosbyaddressesresponsebody.md | 0 .../getvalidatorsbydaterangerequest.md | 2 +- .../getvalidatorsbydaterangeresponse.md | 2 +- .../operations/getvertexbyhashglobals.md | 2 +- .../operations/getvertexbyhashrequest.md | 2 +- .../operations/getvertexbyheightglobals.md | 2 +- .../operations/getvertexbyheightrequest.md | 2 +- .../operations/getvertexbyheightresponse.md | 2 +- .../models/operations/getwebhookrequest.md | 2 +- .../models/operations/getwebhookresponse.md | 0 ...rimarynetworkstakingtransactionsglobals.md | 2 +- ...rimarynetworkstakingtransactionsrequest.md | 2 +- ...imarynetworkstakingtransactionsresponse.md | 2 +- .../operations/listaddresschainsrequest.md | 2 +- .../operations/listalllatestblocksrequest.md | 2 +- .../operations/listalllatestblocksresponse.md | 2 +- .../listalllatesttransactionsrequest.md | 2 +- .../listalllatesttransactionsresponse.md | 2 +- .../listassettransactionsglobals.md | 2 +- .../listassettransactionsrequest.md | 2 +- .../listassettransactionsresponse.md | 2 +- .../operations/listblockchainsglobals.md | 2 +- .../operations/listblockchainsrequest.md | 2 +- .../operations/listblockchainsresponse.md | 2 +- .../models/operations/listchainsrequest.md | 2 +- .../models/operations/listchainsresponse.md | 2 +- .../listcollectiblebalancesglobals.md | 2 +- .../listcollectiblebalancesrequest.md | 2 +- .../listcollectiblebalancesresponse.md | 2 +- .../listcontractdeploymentsglobals.md | 2 +- .../listcontractdeploymentsrequest.md | 2 +- .../listcontractdeploymentsresponse.md | 2 +- .../operations/listdelegatorsglobals.md | 2 +- .../operations/listdelegatorsrequest.md | 2 +- .../operations/listdelegatorsresponse.md | 2 +- .../operations/listerc1155balancesglobals.md | 2 +- .../operations/listerc1155balancesrequest.md | 2 +- .../operations/listerc1155balancesresponse.md | 2 +- .../listerc1155transactionsglobals.md | 2 +- .../listerc1155transactionsrequest.md | 2 +- .../listerc1155transactionsresponse.md | 2 +- .../operations/listerc20balancesglobals.md | 2 +- .../operations/listerc20balancesrequest.md | 2 +- .../operations/listerc20balancesresponse.md | 2 +- .../listerc20transactionsglobals.md | 2 +- .../listerc20transactionsrequest.md | 2 +- .../listerc20transactionsresponse.md | 2 +- .../operations/listerc721balancesglobals.md | 2 +- .../operations/listerc721balancesrequest.md | 2 +- .../operations/listerc721balancesresponse.md | 2 +- .../listerc721transactionsglobals.md | 2 +- .../listerc721transactionsrequest.md | 2 +- .../listerc721transactionsresponse.md | 2 +- ...thistoricalprimarynetworkrewardsglobals.md | 2 +- ...thistoricalprimarynetworkrewardsrequest.md | 2 +- ...historicalprimarynetworkrewardsresponse.md | 2 +- .../listicmmessagesbyaddressrequest.md | 2 +- .../operations/listicmmessagesrequest.md | 2 +- .../operations/listicmmessagesresponse.md | 2 +- .../listinternaltransactionsglobals.md | 2 +- .../listinternaltransactionsrequest.md | 2 +- .../listinternaltransactionsresponse.md | 2 +- .../operations/listl1validatorsglobals.md | 2 +- .../operations/listl1validatorsrequest.md | 2 +- .../operations/listl1validatorsresponse.md | 2 +- .../listlatestblocksallchainsrequest.md | 2 +- .../listlatestblocksallchainsresponse.md | 2 +- .../listlatestprimarynetworkblocksglobals.md | 2 +- .../listlatestprimarynetworkblocksrequest.md | 2 +- .../listlatestprimarynetworkblocksresponse.md | 2 +- ...latestprimarynetworktransactionsglobals.md | 2 +- ...latestprimarynetworktransactionsrequest.md | 2 +- ...atestprimarynetworktransactionsresponse.md | 2 +- ...tprimarynetworktransactionsresponsebody.md | 0 .../listlatesttransactionsallchainsrequest.md | 2 +- ...listlatesttransactionsallchainsresponse.md | 2 +- .../listlatesttransactionsglobals.md | 2 +- .../listlatesttransactionsrequest.md | 2 +- .../listlatesttransactionsresponse.md | 2 +- .../listlatestxchainverticesglobals.md | 2 +- .../listlatestxchainverticesrequest.md | 2 +- .../listlatestxchainverticesresponse.md | 2 +- .../listnativetransactionsglobals.md | 2 +- .../listnativetransactionsrequest.md | 2 +- .../listnativetransactionsresponse.md | 2 +- ...listpendingprimarynetworkrewardsglobals.md | 2 +- ...listpendingprimarynetworkrewardsrequest.md | 2 +- ...istpendingprimarynetworkrewardsresponse.md | 2 +- ...listprimarynetworkblocksbynodeidglobals.md | 2 +- ...listprimarynetworkblocksbynodeidrequest.md | 2 +- ...istprimarynetworkblocksbynodeidresponse.md | 2 +- .../models/operations/listsubnetsglobals.md | 2 +- .../models/operations/listsubnetsrequest.md | 2 +- .../models/operations/listsubnetsresponse.md | 2 +- .../listteleportermessagesbyaddressrequest.md | 2 +- .../listteleportermessagesrequest.md | 2 +- .../listteleportermessagesresponse.md | 2 +- .../models/operations/listtokensglobals.md | 2 +- .../models/operations/listtokensrequest.md | 2 +- .../models/operations/listtokensresponse.md | 2 +- .../operations/listtransactionsglobals.md | 2 +- .../operations/listtransactionsrequest.md | 2 +- .../operations/listtransactionsresponse.md | 2 +- .../models/operations/listtransfersglobals.md | 2 +- .../models/operations/listtransfersrequest.md | 2 +- .../operations/listtransfersresponse.md | 2 +- .../operations/listvalidatorsglobals.md | 2 +- .../operations/listvalidatorsrequest.md | 2 +- .../operations/listvalidatorsresponse.md | 2 +- .../models/operations/listwebhooksrequest.md | 2 +- .../models/operations/listwebhooksresponse.md | 2 +- .../posttransactionexportjobrequest.md | 0 .../models/operations/reindexnftglobals.md | 2 +- .../models/operations/reindexnftrequest.md | 2 +- .../removeaddressesfromwebhookrequest.md | 2 +- .../operations/supportedchainsrequest.md | 2 +- .../models/operations/updatewebhookrequest.md | 2 +- .../operations/updatewebhookresponse.md | 0 .../docs/sdks/addressbalances/README.md | 30 +- .../docs/sdks/addresschains/README.md | 6 +- .../docs/sdks/addresscontracts/README.md | 6 +- .../docs/sdks/addresses/README.md | 18 +- .../docs/sdks/addresstransactions/README.md | 36 +- .../docs/sdks/avalanche/README.md | 0 .../docs/sdks/contracts/README.md | 18 +- .../docs/sdks/data/README.md | 6 +- .../docs/sdks/evmblocks/README.md | 24 +- .../docs/sdks/evmchains/README.md | 30 +- .../docs/sdks/evmtransactions/README.md | 18 +- .../docs/sdks/icm/README.md | 18 +- .../docs/sdks/l1validators/README.md | 24 +- .../docs/sdks/metrics/README.md | 6 +- .../docs/sdks/metricschains/README.md | 48 +- .../docs/sdks/networks/README.md | 6 +- .../docs/sdks/nfts/README.md | 18 +- .../docs/sdks/operations/README.md | 12 +- .../docs/sdks/primarynetwork/README.md | 66 +- .../sdks/primarynetworkbalances/README.md | 6 +- .../docs/sdks/primarynetworkblocks/README.md | 18 +- .../sdks/primarynetworktransactions/README.md | 24 +- .../docs/sdks/rewards/README.md | 12 +- .../docs/sdks/signatureaggregator/README.md | 12 +- .../docs/sdks/subnets/README.md | 6 +- .../docs/sdks/teleporter/README.md | 18 +- .../docs/sdks/usagemetrics/README.md | 24 +- .../docs/sdks/utxos/README.md | 6 +- .../docs/sdks/vertices/README.md | 18 +- .../docs/sdks/webhooks/README.md | 42 +- {devtools => chainkit}/eslint.config.mjs | 0 {devtools => chainkit}/examples/.env.template | 2 +- {devtools => chainkit}/examples/README.md | 4 +- .../examples/package-lock.json | 12 +- {devtools => chainkit}/examples/package.json | 4 +- .../examples/webhooksCreate.example.ts | 4 +- {devtools => chainkit}/jsr.json | 2 +- {devtools => chainkit}/overlays/overlay.yaml | 0 {devtools => chainkit}/package-lock.json | 8 +- {devtools => chainkit}/package.json | 21 +- {devtools => chainkit}/src/core.ts | 0 .../funcs/dataEvmAddressBalancesGetNative.ts | 0 .../dataEvmAddressBalancesListCollectibles.ts | 0 .../dataEvmAddressBalancesListErc1155.ts | 0 .../funcs/dataEvmAddressBalancesListErc20.ts | 0 .../funcs/dataEvmAddressBalancesListErc721.ts | 0 .../src/funcs/dataEvmAddressChainsList.ts | 0 .../dataEvmAddressContractsListDeployments.ts | 0 .../funcs/dataEvmAddressTransactionsList.ts | 0 .../dataEvmAddressTransactionsListErc1155.ts | 0 .../dataEvmAddressTransactionsListErc20.ts | 0 .../dataEvmAddressTransactionsListErc721.ts | 0 .../dataEvmAddressTransactionsListInternal.ts | 0 .../dataEvmAddressTransactionsListNative.ts | 0 .../src/funcs/dataEvmBlocksGet.ts | 0 .../src/funcs/dataEvmBlocksListLatest.ts | 0 .../funcs/dataEvmBlocksListLatestAllChains.ts | 0 .../funcs/dataEvmBlocksListTransactions.ts | 0 .../src/funcs/dataEvmChainsGet.ts | 0 .../funcs/dataEvmChainsGetAddressChains.ts | 0 .../src/funcs/dataEvmChainsList.ts | 0 .../funcs/dataEvmChainsListAllLatestBlocks.ts | 0 .../dataEvmChainsListAllLatestTransactions.ts | 0 ...ataEvmContractsGetDeploymentTransaction.ts | 0 .../src/funcs/dataEvmContractsGetMetadata.ts | 0 .../funcs/dataEvmContractsListTransfers.ts | 0 .../src/funcs/dataEvmTransactionsGet.ts | 0 .../funcs/dataEvmTransactionsListLatest.ts | 0 .../dataEvmTransactionsListLatestAllChains.ts | 0 .../src/funcs/dataHealthCheck.ts | 0 .../src/funcs/dataIcmGet.ts | 0 .../src/funcs/dataIcmList.ts | 0 .../src/funcs/dataIcmListByAddress.ts | 0 .../src/funcs/dataNftsGet.ts | 0 .../src/funcs/dataNftsList.ts | 0 .../src/funcs/dataNftsReindex.ts | 0 .../funcs/dataOperationsExportTransactions.ts | 0 .../src/funcs/dataOperationsGetResult.ts | 0 ...taPrimaryNetworkBalancesListByAddresses.ts | 0 .../src/funcs/dataPrimaryNetworkBlocksGet.ts | 0 .../dataPrimaryNetworkBlocksListByNodeId.ts | 0 .../dataPrimaryNetworkBlocksListLatest.ts | 0 .../dataPrimaryNetworkGetAssetDetails.ts | 0 .../dataPrimaryNetworkGetBlockchainById.ts | 0 ...taPrimaryNetworkGetChainIdsForAddresses.ts | 0 .../dataPrimaryNetworkGetNetworkDetails.ts | 0 .../funcs/dataPrimaryNetworkGetSubnetById.ts | 0 .../dataPrimaryNetworkGetValidatorDetails.ts | 0 .../dataPrimaryNetworkListBlockchains.ts | 0 .../funcs/dataPrimaryNetworkListDelegators.ts | 0 .../dataPrimaryNetworkListL1Validators.ts | 0 .../funcs/dataPrimaryNetworkListSubnets.ts | 0 .../funcs/dataPrimaryNetworkListValidators.ts | 0 ...maryNetworkRewardsListHistoricalRewards.ts | 0 ...PrimaryNetworkRewardsListPendingRewards.ts | 0 .../dataPrimaryNetworkTransactionsGet.ts | 0 ...ansactionsListActiveStakingTransactions.ts | 0 ...etworkTransactionsListAssetTransactions.ts | 0 ...ataPrimaryNetworkTransactionsListLatest.ts | 0 .../dataPrimaryNetworkUtxosListByAddresses.ts | 0 .../dataPrimaryNetworkVerticesGetByHash.ts | 0 .../dataPrimaryNetworkVerticesListByHeight.ts | 0 .../dataPrimaryNetworkVerticesListLatest.ts | 0 .../funcs/dataSignatureAggregatorAggregate.ts | 0 .../src/funcs/dataSignatureAggregatorGet.ts | 0 .../dataTeleporterGetTeleporterMessage.ts | 0 .../dataTeleporterListTeleporterMessages.ts | 0 ...leporterListTeleporterMessagesByAddress.ts | 0 .../src/funcs/dataUsageMetricsGetLogs.ts | 0 .../dataUsageMetricsGetRpcUsageMetrics.ts | 0 .../dataUsageMetricsGetSubnetRpcUsage.ts | 0 .../src/funcs/dataUsageMetricsGetUsage.ts | 0 .../src/funcs/metricsChainsGet.ts | 0 .../src/funcs/metricsChainsGetMetrics.ts | 0 .../metricsChainsGetRollingWindowMetrics.ts | 0 .../metricsChainsGetTeleporterMetrics.ts | 0 .../src/funcs/metricsChainsList.ts | 0 ...icsChainsListBTCbBridgersAboveThreshold.ts | 0 .../src/funcs/metricsChainsListNftHolders.ts | 0 ...icsChainsListTokenHoldersAboveThreshold.ts | 0 .../src/funcs/metricsHealthCheck.ts | 0 .../metricsL1ValidatorsGetMetricsByNodeId.ts | 0 ...metricsL1ValidatorsGetMetricsBySubnetId.ts | 0 ...icsL1ValidatorsGetMetricsByValidationId.ts | 0 .../funcs/metricsL1ValidatorsListMetrics.ts | 0 .../funcs/metricsNetworksGetStakingMetrics.ts | 0 .../src/funcs/metricsSubnetsGetValidators.ts | 0 .../src/funcs/webhooksAddressesAdd.ts | 0 .../src/funcs/webhooksAddressesList.ts | 0 .../src/funcs/webhooksAddressesRemove.ts | 0 .../src/funcs/webhooksCreate.ts | 0 .../src/funcs/webhooksDeactivate.ts | 0 .../webhooksGenerateOrRotateSharedSecret.ts | 0 .../src/funcs/webhooksGet.ts | 0 .../src/funcs/webhooksGetSharedSecret.ts | 0 .../src/funcs/webhooksList.ts | 0 .../src/funcs/webhooksUpdate.ts | 0 {devtools => chainkit}/src/hooks/hooks.ts | 0 {devtools => chainkit}/src/hooks/index.ts | 0 .../src/hooks/registration.ts | 0 {devtools => chainkit}/src/hooks/types.ts | 0 {devtools => chainkit}/src/index.extras.ts | 0 {devtools => chainkit}/src/index.ts | 0 {devtools => chainkit}/src/lib/base64.ts | 0 {devtools => chainkit}/src/lib/config.ts | 6 +- {devtools => chainkit}/src/lib/dlv.ts | 0 {devtools => chainkit}/src/lib/encodings.ts | 0 {devtools => chainkit}/src/lib/files.ts | 0 {devtools => chainkit}/src/lib/http.ts | 0 .../src/lib/is-plain-object.ts | 0 {devtools => chainkit}/src/lib/logger.ts | 0 {devtools => chainkit}/src/lib/matchers.ts | 0 {devtools => chainkit}/src/lib/primitives.ts | 0 {devtools => chainkit}/src/lib/retries.ts | 0 {devtools => chainkit}/src/lib/schemas.ts | 0 {devtools => chainkit}/src/lib/sdks.ts | 0 {devtools => chainkit}/src/lib/security.ts | 0 {devtools => chainkit}/src/lib/url.ts | 0 .../src/mcp-server/build.mts | 0 {devtools => chainkit}/src/mcp-server/cli.ts | 0 .../src/mcp-server/cli/start/command.ts | 0 .../src/mcp-server/cli/start/impl.ts | 0 .../src/mcp-server/console-logger.ts | 0 .../src/mcp-server/extensions.ts | 0 .../src/mcp-server/mcp-server.ts | 2 +- .../src/mcp-server/prompts.ts | 0 .../src/mcp-server/resources.ts | 0 .../src/mcp-server/scopes.ts | 0 .../src/mcp-server/server.ts | 2 +- .../src/mcp-server/shared.ts | 0 .../src/mcp-server/tools.ts | 0 .../tools/dataEvmAddressBalancesGetNative.ts | 0 .../dataEvmAddressBalancesListCollectibles.ts | 0 .../dataEvmAddressBalancesListErc1155.ts | 0 .../tools/dataEvmAddressBalancesListErc20.ts | 0 .../tools/dataEvmAddressBalancesListErc721.ts | 0 .../tools/dataEvmAddressChainsList.ts | 0 .../dataEvmAddressContractsListDeployments.ts | 0 .../tools/dataEvmAddressTransactionsList.ts | 0 .../dataEvmAddressTransactionsListErc1155.ts | 0 .../dataEvmAddressTransactionsListErc20.ts | 0 .../dataEvmAddressTransactionsListErc721.ts | 0 .../dataEvmAddressTransactionsListInternal.ts | 0 .../dataEvmAddressTransactionsListNative.ts | 0 .../src/mcp-server/tools/dataEvmBlocksGet.ts | 0 .../tools/dataEvmBlocksListLatest.ts | 0 .../tools/dataEvmBlocksListLatestAllChains.ts | 0 .../tools/dataEvmBlocksListTransactions.ts | 0 .../src/mcp-server/tools/dataEvmChainsGet.ts | 0 .../tools/dataEvmChainsGetAddressChains.ts | 0 .../src/mcp-server/tools/dataEvmChainsList.ts | 0 .../tools/dataEvmChainsListAllLatestBlocks.ts | 0 .../dataEvmChainsListAllLatestTransactions.ts | 0 ...ataEvmContractsGetDeploymentTransaction.ts | 0 .../tools/dataEvmContractsGetMetadata.ts | 0 .../tools/dataEvmContractsListTransfers.ts | 0 .../tools/dataEvmTransactionsGet.ts | 0 .../tools/dataEvmTransactionsListLatest.ts | 0 .../dataEvmTransactionsListLatestAllChains.ts | 0 .../src/mcp-server/tools/dataHealthCheck.ts | 0 .../src/mcp-server/tools/dataIcmGet.ts | 0 .../src/mcp-server/tools/dataIcmList.ts | 0 .../mcp-server/tools/dataIcmListByAddress.ts | 0 .../src/mcp-server/tools/dataNftsGet.ts | 0 .../src/mcp-server/tools/dataNftsList.ts | 0 .../src/mcp-server/tools/dataNftsReindex.ts | 0 .../tools/dataOperationsExportTransactions.ts | 0 .../tools/dataOperationsGetResult.ts | 0 ...taPrimaryNetworkBalancesListByAddresses.ts | 0 .../tools/dataPrimaryNetworkBlocksGet.ts | 0 .../dataPrimaryNetworkBlocksListByNodeId.ts | 0 .../dataPrimaryNetworkBlocksListLatest.ts | 0 .../dataPrimaryNetworkGetAssetDetails.ts | 0 .../dataPrimaryNetworkGetBlockchainById.ts | 0 ...taPrimaryNetworkGetChainIdsForAddresses.ts | 0 .../dataPrimaryNetworkGetNetworkDetails.ts | 0 .../tools/dataPrimaryNetworkGetSubnetById.ts | 0 .../dataPrimaryNetworkGetValidatorDetails.ts | 0 .../dataPrimaryNetworkListBlockchains.ts | 0 .../tools/dataPrimaryNetworkListDelegators.ts | 0 .../dataPrimaryNetworkListL1Validators.ts | 0 .../tools/dataPrimaryNetworkListSubnets.ts | 0 .../tools/dataPrimaryNetworkListValidators.ts | 0 ...maryNetworkRewardsListHistoricalRewards.ts | 0 ...PrimaryNetworkRewardsListPendingRewards.ts | 0 .../dataPrimaryNetworkTransactionsGet.ts | 0 ...ansactionsListActiveStakingTransactions.ts | 0 ...etworkTransactionsListAssetTransactions.ts | 0 ...ataPrimaryNetworkTransactionsListLatest.ts | 0 .../dataPrimaryNetworkUtxosListByAddresses.ts | 0 .../dataPrimaryNetworkVerticesGetByHash.ts | 0 .../dataPrimaryNetworkVerticesListByHeight.ts | 0 .../dataPrimaryNetworkVerticesListLatest.ts | 0 .../tools/dataSignatureAggregatorAggregate.ts | 0 .../tools/dataSignatureAggregatorGet.ts | 0 .../dataTeleporterGetTeleporterMessage.ts | 0 .../dataTeleporterListTeleporterMessages.ts | 0 ...leporterListTeleporterMessagesByAddress.ts | 0 .../tools/dataUsageMetricsGetLogs.ts | 0 .../dataUsageMetricsGetRpcUsageMetrics.ts | 0 .../dataUsageMetricsGetSubnetRpcUsage.ts | 0 .../tools/dataUsageMetricsGetUsage.ts | 0 .../src/mcp-server/tools/metricsChainsGet.ts | 0 .../tools/metricsChainsGetMetrics.ts | 0 .../metricsChainsGetRollingWindowMetrics.ts | 0 .../metricsChainsGetTeleporterMetrics.ts | 0 .../src/mcp-server/tools/metricsChainsList.ts | 0 ...icsChainsListBTCbBridgersAboveThreshold.ts | 0 .../tools/metricsChainsListNftHolders.ts | 0 ...icsChainsListTokenHoldersAboveThreshold.ts | 0 .../mcp-server/tools/metricsHealthCheck.ts | 0 .../metricsL1ValidatorsGetMetricsByNodeId.ts | 0 ...metricsL1ValidatorsGetMetricsBySubnetId.ts | 0 ...icsL1ValidatorsGetMetricsByValidationId.ts | 0 .../tools/metricsL1ValidatorsListMetrics.ts | 0 .../tools/metricsNetworksGetStakingMetrics.ts | 0 .../tools/metricsSubnetsGetValidators.ts | 0 .../mcp-server/tools/webhooksAddressesAdd.ts | 0 .../mcp-server/tools/webhooksAddressesList.ts | 0 .../tools/webhooksAddressesRemove.ts | 0 .../src/mcp-server/tools/webhooksCreate.ts | 0 .../mcp-server/tools/webhooksDeactivate.ts | 0 .../webhooksGenerateOrRotateSharedSecret.ts | 0 .../src/mcp-server/tools/webhooksGet.ts | 0 .../tools/webhooksGetSharedSecret.ts | 0 .../src/mcp-server/tools/webhooksList.ts | 0 .../src/mcp-server/tools/webhooksUpdate.ts | 0 .../src/models/components/accesslistdata.ts | 0 .../components/activedelegatordetails.ts | 0 .../components/activevalidatordetails.ts | 0 .../components/addressactivityeventtype.ts | 0 .../components/addressactivitymetadata.ts | 0 .../src/models/components/addressdetails.ts | 0 .../components/addresseschangerequest.ts | 0 .../components/aggregatedassetamount.ts | 0 .../src/models/components/apifeature.ts | 0 .../src/models/components/assetamount.ts | 0 .../models/components/assetwithpriceinfo.ts | 0 .../src/models/components/balanceowner.ts | 0 .../src/models/components/blockchain.ts | 0 .../src/models/components/blockchainid.ts | 0 .../src/models/components/blockchainids.ts | 0 .../src/models/components/blockchaininfo.ts | 0 .../src/models/components/blscredentials.ts | 0 .../models/components/cchainatomicbalances.ts | 0 .../components/cchainexporttransaction.ts | 0 .../components/cchainimporttransaction.ts | 0 .../components/cchainsharedassetbalance.ts | 0 .../src/models/components/chain.ts | 0 .../components/chainaddresschainidmap.ts | 0 .../chainaddresschainidmaplistresponse.ts | 0 .../src/models/components/chaininfo.ts | 0 .../src/models/components/chainmetric.ts | 0 .../components/chainrollingwindowmetric.ts | 0 .../chainrollingwindowmetricsvalue.ts | 0 .../src/models/components/chainstatus.ts | 0 .../models/components/commonbalancetype.ts | 0 .../components/completeddelegatordetails.ts | 0 .../components/completedvalidatordetails.ts | 0 .../components/contractdeploymentdetails.ts | 0 .../createevmtransactionexportrequest.ts | 0 ...eprimarynetworktransactionexportrequest.ts | 0 .../src/models/components/currencycode.ts | 0 .../components/datalistchainsresponse.ts | 0 .../models/components/delegationstatustype.ts | 0 .../models/components/delegatorsdetails.ts | 0 .../models/components/deliveredicmmessage.ts | 0 .../deliveredsourcenotindexedicmmessage.ts | 0 ...iveredsourcenotindexedteleportermessage.ts | 0 .../components/deliveredteleportermessage.ts | 0 .../src/models/components/erc1155contract.ts | 0 .../src/models/components/erc1155token.ts | 0 .../models/components/erc1155tokenbalance.ts | 0 .../models/components/erc1155tokenmetadata.ts | 0 .../src/models/components/erc1155transfer.ts | 0 .../components/erc1155transferdetails.ts | 0 .../src/models/components/erc20contract.ts | 0 .../src/models/components/erc20token.ts | 0 .../models/components/erc20tokenbalance.ts | 0 .../src/models/components/erc20transfer.ts | 0 .../models/components/erc20transferdetails.ts | 0 .../src/models/components/erc721contract.ts | 0 .../src/models/components/erc721token.ts | 0 .../models/components/erc721tokenbalance.ts | 0 .../models/components/erc721tokenmetadata.ts | 0 .../src/models/components/erc721transfer.ts | 0 .../components/erc721transferdetails.ts | 0 .../src/models/components/erctoken.ts | 0 .../src/models/components/erctransfer.ts | 0 .../components/evmaddressactivityrequest.ts | 0 .../components/evmaddressactivityresponse.ts | 0 .../src/models/components/evmblock.ts | 0 .../src/models/components/evminput.ts | 0 .../models/components/evmnetworkoptions.ts | 0 .../src/models/components/evmoperationtype.ts | 0 .../src/models/components/evmoutput.ts | 0 .../fullnativetransactiondetails.ts | 0 .../src/models/components/getchainresponse.ts | 0 .../models/components/getevmblockresponse.ts | 0 .../components/getnativebalanceresponse.ts | 0 .../components/getnetworkdetailsresponse.ts | 0 .../getprimarynetworkblockresponse.ts | 0 .../components/gettransactionresponse.ts | 0 .../models/components/globalparamnetwork.ts | 0 .../models/components/healthcheckresultdto.ts | 0 .../components/healthindicatorresultdto.ts | 0 .../src/models/components/historicalreward.ts | 0 .../components/icmdestinationtransaction.ts | 0 .../src/models/components/icmreceipt.ts | 0 .../src/models/components/icmrewarddetails.ts | 0 .../models/components/icmsourcetransaction.ts | 0 .../src/models/components/imageasset.ts | 0 .../src/models/components/index.ts | 0 .../models/components/internaltransaction.ts | 0 .../components/internaltransactiondetails.ts | 0 .../components/internaltransactionopcall.ts | 0 .../components/l1validatordetailsfull.ts | 0 .../l1validatordetailstransaction.ts | 0 .../components/l1validatormanagerdetails.ts | 0 .../components/listaddresschainsresponse.ts | 0 .../components/listblockchainsresponse.ts | 0 .../listcchainatomicbalancesresponse.ts | 0 .../listcchainatomictransactionsresponse.ts | 0 .../listcollectiblebalancesresponse.ts | 0 .../components/listcontractsresponse.ts | 0 .../listdelegatordetailsresponse.ts | 0 .../components/listerc1155balancesresponse.ts | 0 .../listerc1155transactionsresponse.ts | 0 .../components/listerc20balancesresponse.ts | 0 .../listerc20transactionsresponse.ts | 0 .../components/listerc721balancesresponse.ts | 0 .../listerc721transactionsresponse.ts | 0 .../components/listevmblocksresponse.ts | 0 .../listhistoricalrewardsresponse.ts | 0 .../components/listicmmessagesresponse.ts | 0 .../listinternaltransactionsresponse.ts | 0 .../components/listl1validatorsresponse.ts | 0 .../listnativetransactionsresponse.ts | 0 .../src/models/components/listnfttokens.ts | 0 .../components/listpchainbalancesresponse.ts | 0 .../listpchaintransactionsresponse.ts | 0 .../components/listpchainutxosresponse.ts | 0 .../components/listpendingrewardsresponse.ts | 0 .../listprimarynetworkblocksresponse.ts | 0 .../models/components/listsubnetsresponse.ts | 0 .../listteleportermessagesresponse.ts | 0 .../listtransactiondetailsresponse.ts | 0 .../components/listtransfersresponse.ts | 0 .../models/components/listutxosresponse.ts | 0 .../listvalidatordetailsresponse.ts | 0 .../listwebhookaddressesresponse.ts | 0 .../models/components/listwebhooksresponse.ts | 0 .../components/listxchainbalancesresponse.ts | 0 .../listxchaintransactionsresponse.ts | 0 .../components/listxchainverticesresponse.ts | 0 .../src/models/components/log.ts | 0 .../src/models/components/logsformat.ts | 0 .../models/components/logsformatmetadata.ts | 0 .../src/models/components/logsresponsedto.ts | 0 .../models/components/lookingglassresponse.ts | 0 .../src/models/components/method.ts | 0 .../src/models/components/metric.ts | 0 .../models/components/metricsapiresponse.ts | 0 .../components/metricslistchainsresponse.ts | 0 .../src/models/components/metricsvalue.ts | 0 .../src/models/components/money.ts | 0 .../models/components/nativetokenbalance.ts | 0 .../models/components/nativetransaction.ts | 0 .../src/models/components/network.ts | 0 .../src/models/components/networkmetric.ts | 0 .../src/models/components/networktoken.ts | 0 .../models/components/networktokendetails.ts | 0 .../src/models/components/networktokeninfo.ts | 0 .../src/models/components/networktype.ts | 0 .../models/components/nftholdersresponse.ts | 0 .../components/nfttokenmetadatastatus.ts | 0 .../src/models/components/operationstatus.ts | 0 .../models/components/operationstatuscode.ts | 0 .../components/operationstatusresponse.ts | 0 .../src/models/components/operationtype.ts | 0 .../models/components/pchainaddressdetails.ts | 0 .../src/models/components/pchainbalance.ts | 0 .../src/models/components/pchainid.ts | 0 .../components/pchainlookingglassresponse.ts | 0 .../models/components/pchainsharedasset.ts | 0 .../models/components/pchaintransaction.ts | 0 .../components/pchaintransactiontype.ts | 0 .../src/models/components/pchainutxo.ts | 0 .../components/pendingdelegatordetails.ts | 0 .../models/components/pendingicmmessage.ts | 0 .../src/models/components/pendingreward.ts | 0 .../components/pendingteleportermessage.ts | 0 .../components/pendingvalidatordetails.ts | 0 .../platformaddressactivitykeytype.ts | 0 .../src/models/components/pricingproviders.ts | 0 .../primarynetworkaddressactivityeventtype.ts | 0 .../primarynetworkaddressactivitymetadata.ts | 0 .../primarynetworkaddressactivityrequest.ts | 0 .../primarynetworkaddressactivityresponse.ts | 0 .../primarynetworkaddressactivitysubevents.ts | 0 ...imarynetworkaddressactivitysubeventtype.ts | 0 .../components/primarynetworkassetcap.ts | 0 .../components/primarynetworkassettype.ts | 0 .../primarynetworkbalancethresholdfilter.ts | 0 .../models/components/primarynetworkblock.ts | 0 .../components/primarynetworkchaininfo.ts | 0 .../components/primarynetworkchainname.ts | 0 .../components/primarynetworkoperationtype.ts | 0 .../components/primarynetworkoptions.ts | 0 .../models/components/primarynetworktxtype.ts | 0 .../models/components/primarynetworktype.ts | 0 .../src/models/components/proposerdetails.ts | 0 .../components/removedvalidatordetails.ts | 0 .../src/models/components/requesttype.ts | 0 .../src/models/components/resourcelink.ts | 0 .../src/models/components/resourcelinktype.ts | 0 .../src/models/components/rewards.ts | 0 .../src/models/components/rewardtype.ts | 0 .../src/models/components/richaddress.ts | 0 .../rollingwindowmetricsapiresponse.ts | 0 .../src/models/components/rpcmetrics.ts | 0 .../components/rpcusagemetricsgroupbyenum.ts | 0 .../rpcusagemetricsvalueaggregated.ts | 0 .../src/models/components/security.ts | 0 .../components/sharedsecretsresponse.ts | 0 .../signatureaggregationresponse.ts | 0 .../components/signatureaggregatorrequest.ts | 0 .../src/models/components/sortbyoption.ts | 0 .../src/models/components/sortorder.ts | 0 .../models/components/stakingdistribution.ts | 0 .../src/models/components/subnet.ts | 0 .../models/components/subnetownershipinfo.ts | 0 .../subnetrpctimeintervalgranularity.ts | 0 .../subnetrpcusagemetricsresponsedto.ts | 0 .../teleporterchainmetricsapiresponse.ts | 0 .../teleporterdestinationtransaction.ts | 0 .../components/teleportermessageinfo.ts | 0 .../src/models/components/teleportermetric.ts | 0 .../components/teleportermetricsvalue.ts | 0 .../models/components/teleporterreceipt.ts | 0 .../components/teleporterrewarddetails.ts | 0 .../components/teleportersourcetransaction.ts | 0 .../components/timeintervalgranularity.ts | 0 .../timeintervalgranularityextended.ts | 0 .../src/models/components/transaction.ts | 0 .../models/components/transactiondetails.ts | 0 .../components/transactiondirectiontype.ts | 0 .../src/models/components/transactionevent.ts | 0 .../components/transactionexportmetadata.ts | 0 .../components/transactionmethodtype.ts | 0 .../models/components/transactionstatus.ts | 0 .../components/transactionvertexdetail.ts | 0 .../src/models/components/unknowncontract.ts | 0 .../models/components/updatewebhookrequest.ts | 0 .../components/usagemetricsgroupbyenum.ts | 0 .../components/usagemetricsresponsedto.ts | 0 .../models/components/usagemetricsvaluedto.ts | 0 .../src/models/components/utilityaddresses.ts | 0 .../src/models/components/utxo.ts | 0 .../src/models/components/utxocredential.ts | 0 .../src/models/components/utxotype.ts | 0 .../models/components/validationstatustype.ts | 0 .../components/validatoractivityeventtype.ts | 0 .../components/validatoractivitykeytype.ts | 0 .../components/validatoractivitymetadata.ts | 0 .../components/validatoractivityrequest.ts | 0 .../components/validatoractivityresponse.ts | 0 .../components/validatoractivitysubevents.ts | 0 .../components/validatorhealthdetails.ts | 0 .../models/components/validatorsdetails.ts | 0 .../src/models/components/vmname.ts | 0 .../webhookaddressactivityresponse.ts | 0 .../components/webhookinternaltransaction.ts | 0 .../src/models/components/webhookstatus.ts | 0 .../models/components/webhookstatustype.ts | 0 .../models/components/xchainassetdetails.ts | 0 .../src/models/components/xchainbalances.ts | 0 .../src/models/components/xchainid.ts | 0 .../components/xchainlineartransaction.ts | 0 .../components/xchainnonlineartransaction.ts | 0 .../components/xchainsharedassetbalance.ts | 0 .../components/xchaintransactiontype.ts | 0 .../src/models/components/xchainvertex.ts | 0 .../src/models/errors/avalancheapierror.ts | 0 .../src/models/errors/avalancheerror.ts | 0 .../src/models/errors/badgatewayerror.ts | 0 .../src/models/errors/badrequesterror.ts | 0 .../src/models/errors/forbiddenerror.ts | 0 .../src/models/errors/httpclienterrors.ts | 0 .../src/models/errors/index.ts | 0 .../src/models/errors/internalservererror.ts | 0 .../src/models/errors/notfounderror.ts | 0 .../models/errors/responsevalidationerror.ts | 0 .../src/models/errors/sdkvalidationerror.ts | 0 .../models/errors/serviceunavailableerror.ts | 0 .../src/models/errors/toomanyrequestserror.ts | 0 .../src/models/errors/unauthorizederror.ts | 0 .../operations/addaddressestowebhook.ts | 0 .../models/operations/aggregatesignatures.ts | 0 .../src/models/operations/createwebhook.ts | 0 .../src/models/operations/datahealthcheck.ts | 0 .../models/operations/deactivatewebhook.ts | 0 .../generateorrotatesharedsecret.ts | 0 .../src/models/operations/getaddresschains.ts | 0 .../getaddressesbybalanceovertime.ts | 0 .../operations/getaddressesbybtcbbridged.ts | 0 .../operations/getaddressesfromwebhook.ts | 0 .../operations/getaggregatedsignatures.ts | 0 .../src/models/operations/getapilogs.ts | 0 .../models/operations/getapiusagemetrics.ts | 0 .../src/models/operations/getassetdetails.ts | 0 .../operations/getbalancesbyaddresses.ts | 0 .../src/models/operations/getblock.ts | 0 .../src/models/operations/getblockbyid.ts | 0 .../models/operations/getblockchainbyid.ts | 0 .../src/models/operations/getchain.ts | 0 .../operations/getchainidsforaddresses.ts | 0 .../src/models/operations/getchaininfo.ts | 0 .../models/operations/getcontractmetadata.ts | 0 .../operations/getdeploymenttransaction.ts | 0 .../models/operations/getevmchainmetrics.ts | 0 .../getevmchainrollingwindowmetrics.ts | 0 .../src/models/operations/geticmmessage.ts | 0 .../src/models/operations/getlatestblocks.ts | 0 .../models/operations/getmetricsbynodeid.ts | 0 .../models/operations/getmetricsbysubnetid.ts | 0 .../operations/getmetricsbyvalidationid.ts | 0 .../src/models/operations/getnativebalance.ts | 0 .../models/operations/getnetworkdetails.ts | 0 .../getnftholdersbycontractaddress.ts | 0 .../models/operations/getoperationresult.ts | 0 .../models/operations/getrpcusagemetrics.ts | 0 .../src/models/operations/getsharedsecret.ts | 0 .../operations/getsinglevalidatordetails.ts | 0 .../models/operations/getstakingmetrics.ts | 0 .../src/models/operations/getsubnetbyid.ts | 0 .../operations/getsubnetrpcusagemetrics.ts | 0 .../models/operations/getteleportermessage.ts | 0 .../operations/getteleportermetricsbychain.ts | 0 .../src/models/operations/gettokendetails.ts | 0 .../operations/gettotall1validatormetrics.ts | 0 .../src/models/operations/gettransaction.ts | 0 .../operations/gettransactionsforblock.ts | 0 .../src/models/operations/gettxbyhash.ts | 0 .../models/operations/getutxosbyaddresses.ts | 0 .../operations/getvalidatorsbydaterange.ts | 0 .../src/models/operations/getvertexbyhash.ts | 0 .../models/operations/getvertexbyheight.ts | 0 .../src/models/operations/getwebhook.ts | 0 .../src/models/operations/index.ts | 0 ...activeprimarynetworkstakingtransactions.ts | 0 .../models/operations/listaddresschains.ts | 0 .../models/operations/listalllatestblocks.ts | 0 .../operations/listalllatesttransactions.ts | 0 .../operations/listassettransactions.ts | 0 .../src/models/operations/listblockchains.ts | 0 .../src/models/operations/listchains.ts | 0 .../operations/listcollectiblebalances.ts | 0 .../operations/listcontractdeployments.ts | 0 .../src/models/operations/listdelegators.ts | 0 .../models/operations/listerc1155balances.ts | 0 .../operations/listerc1155transactions.ts | 0 .../models/operations/listerc20balances.ts | 0 .../operations/listerc20transactions.ts | 0 .../models/operations/listerc721balances.ts | 0 .../operations/listerc721transactions.ts | 0 .../listhistoricalprimarynetworkrewards.ts | 0 .../src/models/operations/listicmmessages.ts | 0 .../operations/listicmmessagesbyaddress.ts | 0 .../operations/listinternaltransactions.ts | 0 .../src/models/operations/listl1validators.ts | 0 .../operations/listlatestblocksallchains.ts | 0 .../listlatestprimarynetworkblocks.ts | 0 .../listlatestprimarynetworktransactions.ts | 0 .../operations/listlatesttransactions.ts | 0 .../listlatesttransactionsallchains.ts | 0 .../operations/listlatestxchainvertices.ts | 0 .../operations/listnativetransactions.ts | 0 .../listpendingprimarynetworkrewards.ts | 0 .../listprimarynetworkblocksbynodeid.ts | 0 .../src/models/operations/listsubnets.ts | 0 .../operations/listteleportermessages.ts | 0 .../listteleportermessagesbyaddress.ts | 0 .../src/models/operations/listtokens.ts | 0 .../src/models/operations/listtransactions.ts | 0 .../src/models/operations/listtransfers.ts | 0 .../src/models/operations/listvalidators.ts | 0 .../src/models/operations/listwebhooks.ts | 0 .../models/operations/metricshealthcheck.ts | 0 .../operations/posttransactionexportjob.ts | 0 .../src/models/operations/reindexnft.ts | 0 .../operations/removeaddressesfromwebhook.ts | 0 .../src/models/operations/supportedchains.ts | 0 .../src/models/operations/updatewebhook.ts | 0 {devtools => chainkit}/src/sdk/address.ts | 0 .../src/sdk/addressbalances.ts | 0 .../src/sdk/addresschains.ts | 0 .../src/sdk/addresscontracts.ts | 0 {devtools => chainkit}/src/sdk/addresses.ts | 0 .../src/sdk/addresstransactions.ts | 0 {devtools => chainkit}/src/sdk/contracts.ts | 0 {devtools => chainkit}/src/sdk/data.ts | 0 {devtools => chainkit}/src/sdk/evm.ts | 0 {devtools => chainkit}/src/sdk/evmblocks.ts | 0 {devtools => chainkit}/src/sdk/evmchains.ts | 0 .../src/sdk/evmtransactions.ts | 0 {devtools => chainkit}/src/sdk/icm.ts | 0 {devtools => chainkit}/src/sdk/index.ts | 0 .../src/sdk/l1validators.ts | 0 {devtools => chainkit}/src/sdk/metrics.ts | 0 .../src/sdk/metricschains.ts | 0 {devtools => chainkit}/src/sdk/networks.ts | 0 {devtools => chainkit}/src/sdk/nfts.ts | 0 {devtools => chainkit}/src/sdk/operations.ts | 0 .../src/sdk/primarynetwork.ts | 0 .../src/sdk/primarynetworkbalances.ts | 0 .../src/sdk/primarynetworkblocks.ts | 0 .../src/sdk/primarynetworktransactions.ts | 0 {devtools => chainkit}/src/sdk/rewards.ts | 0 {devtools => chainkit}/src/sdk/sdk.ts | 0 .../src/sdk/signatureaggregator.ts | 0 {devtools => chainkit}/src/sdk/subnets.ts | 0 {devtools => chainkit}/src/sdk/teleporter.ts | 0 .../src/sdk/usagemetrics.ts | 0 {devtools => chainkit}/src/sdk/utxos.ts | 0 {devtools => chainkit}/src/sdk/vertices.ts | 0 {devtools => chainkit}/src/sdk/webhooks.ts | 0 {devtools => chainkit}/src/types/async.ts | 0 {devtools => chainkit}/src/types/blobs.ts | 0 .../src/types/constdatetime.ts | 0 {devtools => chainkit}/src/types/enums.ts | 0 {devtools => chainkit}/src/types/fp.ts | 0 {devtools => chainkit}/src/types/index.ts | 0 .../src/types/operations.ts | 0 {devtools => chainkit}/src/types/rfcdate.ts | 0 {devtools => chainkit}/src/types/streams.ts | 0 {devtools => chainkit}/src/types/webhooks.ts | 0 {devtools => chainkit}/src/utils/index.ts | 0 .../src/utils/validateSignature.ts | 0 {devtools => chainkit}/tsconfig.json | 0 devtools/RELEASES.md | 91 -- .../.speakeasy/logs/naming.log | 877 ------------------ ...bump_sdk_version_and_update_release_doc.py | 30 +- scripts/generate_sdk_docs.py | 46 +- 1261 files changed, 1102 insertions(+), 2129 deletions(-) rename .github/workflows/{devtools_sdk_generation.yaml => chainkit_sdk_generation.yaml} (90%) rename .github/workflows/{devtools_sdk_publish.yaml => chainkit_sdk_publish.yaml} (83%) rename {devtools => chainkit}/.devcontainer/README.md (100%) rename {devtools => chainkit}/.devcontainer/devcontainer.json (100%) rename {devtools => chainkit}/.devcontainer/setup.sh (95%) rename {devtools => chainkit}/.genignore (100%) rename {devtools => chainkit}/.gitattributes (100%) rename {devtools => chainkit}/.gitignore (100%) rename {devtools => chainkit}/.npmignore (100%) rename {devtools => chainkit}/.speakeasy/gen.lock (99%) rename {devtools => chainkit}/.speakeasy/gen.yaml (96%) rename {devtools => chainkit}/CONTRIBUTING.md (100%) rename {devtools => chainkit}/FUNCTIONS.md (96%) rename {devtools => chainkit}/README.md (92%) create mode 100644 chainkit/RELEASES.md rename {devtools => chainkit}/RUNTIMES.md (100%) rename {devtools => chainkit}/USAGE.md (91%) rename {devtools => chainkit}/docs/lib/utils/retryconfig.md (100%) rename {devtools => chainkit}/docs/models/components/accesslistdata.md (94%) rename {devtools => chainkit}/docs/models/components/activedelegatordetails.md (98%) rename {devtools => chainkit}/docs/models/components/activedelegatordetailsdelegationstatus.md (87%) rename {devtools => chainkit}/docs/models/components/activevalidatordetails.md (99%) rename {devtools => chainkit}/docs/models/components/activevalidatordetailsvalidationstatus.md (87%) rename {devtools => chainkit}/docs/models/components/addressactivityeventtype.md (66%) rename {devtools => chainkit}/docs/models/components/addressactivitymetadata.md (98%) rename {devtools => chainkit}/docs/models/components/addressdetails.md (96%) rename {devtools => chainkit}/docs/models/components/addresseschangerequest.md (94%) rename {devtools => chainkit}/docs/models/components/aggregatedassetamount.md (98%) rename {devtools => chainkit}/docs/models/components/apifeature.md (72%) rename {devtools => chainkit}/docs/models/components/assetamount.md (98%) rename {devtools => chainkit}/docs/models/components/assetwithpriceinfo.md (99%) rename {devtools => chainkit}/docs/models/components/balanceowner.md (89%) rename {devtools => chainkit}/docs/models/components/blockchain.md (99%) rename {devtools => chainkit}/docs/models/components/blockchaingenesisdata.md (81%) rename {devtools => chainkit}/docs/models/components/blockchainid.md (86%) rename {devtools => chainkit}/docs/models/components/blockchainids.md (86%) rename {devtools => chainkit}/docs/models/components/blockchaininfo.md (98%) rename {devtools => chainkit}/docs/models/components/blockchaininfogenesisdata.md (84%) rename {devtools => chainkit}/docs/models/components/blscredentials.md (89%) rename {devtools => chainkit}/docs/models/components/cchainatomicbalances.md (96%) rename {devtools => chainkit}/docs/models/components/cchainexporttransaction.md (99%) rename {devtools => chainkit}/docs/models/components/cchainexporttransactiontxtype.md (67%) rename {devtools => chainkit}/docs/models/components/cchainimporttransaction.md (99%) rename {devtools => chainkit}/docs/models/components/cchainimporttransactiontxtype.md (67%) rename {devtools => chainkit}/docs/models/components/cchainsharedassetbalance.md (98%) rename {devtools => chainkit}/docs/models/components/chain.md (97%) rename {devtools => chainkit}/docs/models/components/chainaddresschainidmap.md (95%) rename {devtools => chainkit}/docs/models/components/chainaddresschainidmaplistresponse.md (97%) rename {devtools => chainkit}/docs/models/components/chaininfo.md (99%) rename {devtools => chainkit}/docs/models/components/chaininfoenabledfeature.md (76%) rename {devtools => chainkit}/docs/models/components/chainmetric.md (85%) rename {devtools => chainkit}/docs/models/components/chainrollingwindowmetric.md (74%) rename {devtools => chainkit}/docs/models/components/chainrollingwindowmetricsvalue.md (95%) rename {devtools => chainkit}/docs/models/components/chainstatus.md (86%) rename {devtools => chainkit}/docs/models/components/collectiblebalance.md (100%) rename {devtools => chainkit}/docs/models/components/commonbalancetype.md (85%) rename {devtools => chainkit}/docs/models/components/completeddelegatordetails.md (98%) rename {devtools => chainkit}/docs/models/components/completeddelegatordetailsdelegationstatus.md (86%) rename {devtools => chainkit}/docs/models/components/completedvalidatordetails.md (98%) rename {devtools => chainkit}/docs/models/components/completedvalidatordetailsvalidationstatus.md (86%) rename {devtools => chainkit}/docs/models/components/contract.md (100%) rename {devtools => chainkit}/docs/models/components/contractdeploymentdetails.md (97%) rename {devtools => chainkit}/docs/models/components/createevmtransactionexportrequest.md (99%) rename {devtools => chainkit}/docs/models/components/createprimarynetworktransactionexportrequest.md (99%) rename {devtools => chainkit}/docs/models/components/currencycode.md (80%) rename {devtools => chainkit}/docs/models/components/datalistchainsresponse.md (95%) rename {devtools => chainkit}/docs/models/components/delegationstatustype.md (74%) rename {devtools => chainkit}/docs/models/components/delegator.md (100%) rename {devtools => chainkit}/docs/models/components/delegatorsdetails.md (89%) rename {devtools => chainkit}/docs/models/components/deliveredicmmessage.md (99%) rename {devtools => chainkit}/docs/models/components/deliveredicmmessagestatus.md (64%) rename {devtools => chainkit}/docs/models/components/deliveredsourcenotindexedicmmessage.md (99%) rename {devtools => chainkit}/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md (88%) rename {devtools => chainkit}/docs/models/components/deliveredsourcenotindexedteleportermessage.md (99%) rename {devtools => chainkit}/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md (87%) rename {devtools => chainkit}/docs/models/components/deliveredteleportermessage.md (99%) rename {devtools => chainkit}/docs/models/components/deliveredteleportermessagestatus.md (88%) rename {devtools => chainkit}/docs/models/components/erc1155contract.md (99%) rename {devtools => chainkit}/docs/models/components/erc1155contracterctype.md (72%) rename {devtools => chainkit}/docs/models/components/erc1155token.md (98%) rename {devtools => chainkit}/docs/models/components/erc1155tokenbalance.md (98%) rename {devtools => chainkit}/docs/models/components/erc1155tokenbalanceerctype.md (64%) rename {devtools => chainkit}/docs/models/components/erc1155tokenerctype.md (71%) rename {devtools => chainkit}/docs/models/components/erc1155tokenmetadata.md (98%) rename {devtools => chainkit}/docs/models/components/erc1155transfer.md (98%) rename {devtools => chainkit}/docs/models/components/erc1155transferdetails.md (98%) rename {devtools => chainkit}/docs/models/components/erc20contract.md (99%) rename {devtools => chainkit}/docs/models/components/erc20contracterctype.md (71%) rename {devtools => chainkit}/docs/models/components/erc20token.md (99%) rename {devtools => chainkit}/docs/models/components/erc20tokenbalance.md (99%) rename {devtools => chainkit}/docs/models/components/erc20tokenbalanceerctype.md (63%) rename {devtools => chainkit}/docs/models/components/erc20tokenerctype.md (70%) rename {devtools => chainkit}/docs/models/components/erc20transfer.md (98%) rename {devtools => chainkit}/docs/models/components/erc20transferdetails.md (98%) rename {devtools => chainkit}/docs/models/components/erc721contract.md (99%) rename {devtools => chainkit}/docs/models/components/erc721contracterctype.md (72%) rename {devtools => chainkit}/docs/models/components/erc721token.md (98%) rename {devtools => chainkit}/docs/models/components/erc721tokenbalance.md (98%) rename {devtools => chainkit}/docs/models/components/erc721tokenbalanceerctype.md (64%) rename {devtools => chainkit}/docs/models/components/erc721tokenerctype.md (71%) rename {devtools => chainkit}/docs/models/components/erc721tokenmetadata.md (98%) rename {devtools => chainkit}/docs/models/components/erc721transfer.md (98%) rename {devtools => chainkit}/docs/models/components/erc721transferdetails.md (97%) rename {devtools => chainkit}/docs/models/components/erctoken.md (96%) rename {devtools => chainkit}/docs/models/components/erctransfer.md (98%) rename {devtools => chainkit}/docs/models/components/evmaddressactivityrequest.md (98%) rename {devtools => chainkit}/docs/models/components/evmaddressactivityrequesteventtype.md (88%) rename {devtools => chainkit}/docs/models/components/evmaddressactivityrequestmetadata.md (100%) rename {devtools => chainkit}/docs/models/components/evmaddressactivityresponse.md (98%) rename {devtools => chainkit}/docs/models/components/evmblock.md (98%) rename {devtools => chainkit}/docs/models/components/evminput.md (97%) rename {devtools => chainkit}/docs/models/components/evmnetworkoptions.md (90%) rename {devtools => chainkit}/docs/models/components/evmoperationtype.md (73%) rename {devtools => chainkit}/docs/models/components/evmoutput.md (96%) rename {devtools => chainkit}/docs/models/components/fullnativetransactiondetails.md (99%) rename {devtools => chainkit}/docs/models/components/geolocation.md (95%) rename {devtools => chainkit}/docs/models/components/getchainresponse.md (99%) rename {devtools => chainkit}/docs/models/components/getchainresponseenabledfeature.md (68%) rename {devtools => chainkit}/docs/models/components/getevmblockresponse.md (98%) rename {devtools => chainkit}/docs/models/components/getnativebalanceresponse.md (94%) rename {devtools => chainkit}/docs/models/components/getnetworkdetailsresponse.md (95%) rename {devtools => chainkit}/docs/models/components/getprimarynetworkblockresponse.md (98%) rename {devtools => chainkit}/docs/models/components/gettransactionresponse.md (99%) rename {devtools => chainkit}/docs/models/components/globalparamnetwork.md (73%) rename {devtools => chainkit}/docs/models/components/healthcheckresultdto.md (98%) rename {devtools => chainkit}/docs/models/components/healthcheckresultdtostatus.md (66%) rename {devtools => chainkit}/docs/models/components/healthindicatorresultdto.md (94%) rename {devtools => chainkit}/docs/models/components/healthindicatorresultdtostatus.md (68%) rename {devtools => chainkit}/docs/models/components/historicalreward.md (98%) rename {devtools => chainkit}/docs/models/components/icmdestinationtransaction.md (90%) rename {devtools => chainkit}/docs/models/components/icmreceipt.md (90%) rename {devtools => chainkit}/docs/models/components/icmrewarddetails.md (99%) rename {devtools => chainkit}/docs/models/components/icmrewarddetailserctype.md (72%) rename {devtools => chainkit}/docs/models/components/icmsourcetransaction.md (90%) rename {devtools => chainkit}/docs/models/components/imageasset.md (87%) rename {devtools => chainkit}/docs/models/components/includechain.md (86%) rename {devtools => chainkit}/docs/models/components/internaltransaction.md (99%) rename {devtools => chainkit}/docs/models/components/internaltransactiondetails.md (98%) rename {devtools => chainkit}/docs/models/components/internaltransactionopcall.md (73%) rename {devtools => chainkit}/docs/models/components/l1validatordetailsfull.md (99%) rename {devtools => chainkit}/docs/models/components/l1validatordetailsfullblscredentials.md (90%) rename {devtools => chainkit}/docs/models/components/l1validatordetailstransaction.md (98%) rename {devtools => chainkit}/docs/models/components/l1validatordetailstransactionblscredentials.md (89%) rename {devtools => chainkit}/docs/models/components/l1validatormanagerdetails.md (85%) rename {devtools => chainkit}/docs/models/components/listaddresschainsresponse.md (95%) rename {devtools => chainkit}/docs/models/components/listblockchainsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listcchainatomicbalancesresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listcchainatomictransactionsresponse.md (99%) rename {devtools => chainkit}/docs/models/components/listcchainatomictransactionsresponsetransaction.md (100%) rename {devtools => chainkit}/docs/models/components/listcollectiblebalancesresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listcontractsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listdelegatordetailsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listerc1155balancesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listerc1155transactionsresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listerc20balancesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listerc20transactionsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listerc721balancesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listerc721transactionsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listevmblocksresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listhistoricalrewardsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listicmmessagesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listicmmessagesresponsemessage.md (100%) rename {devtools => chainkit}/docs/models/components/listinternaltransactionsresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listl1validatorsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listnativetransactionsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listnfttokens.md (97%) rename {devtools => chainkit}/docs/models/components/listpchainbalancesresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listpchaintransactionsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listpchainutxosresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listpendingrewardsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listprimarynetworkblocksresponse.md (99%) rename {devtools => chainkit}/docs/models/components/listsubnetsresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listteleportermessagesresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listteleportermessagesresponsemessage.md (100%) rename {devtools => chainkit}/docs/models/components/listtransactiondetailsresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listtransfersresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listutxosresponse.md (98%) rename {devtools => chainkit}/docs/models/components/listvalidatordetailsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listwebhookaddressesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listwebhooksresponse.md (97%) rename {devtools => chainkit}/docs/models/components/listxchainbalancesresponse.md (95%) rename {devtools => chainkit}/docs/models/components/listxchaintransactionsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/listxchaintransactionsresponsetransaction.md (100%) rename {devtools => chainkit}/docs/models/components/listxchainverticesresponse.md (97%) rename {devtools => chainkit}/docs/models/components/log.md (98%) rename {devtools => chainkit}/docs/models/components/logsformat.md (98%) rename {devtools => chainkit}/docs/models/components/logsformatmetadata.md (95%) rename {devtools => chainkit}/docs/models/components/logsresponsedto.md (97%) rename {devtools => chainkit}/docs/models/components/lookingglassresponse.md (97%) rename {devtools => chainkit}/docs/models/components/method.md (98%) rename {devtools => chainkit}/docs/models/components/metric.md (95%) rename {devtools => chainkit}/docs/models/components/metricsapiresponse.md (97%) rename {devtools => chainkit}/docs/models/components/metricslistchainsresponse.md (96%) rename {devtools => chainkit}/docs/models/components/metricsvalue.md (97%) rename {devtools => chainkit}/docs/models/components/money.md (95%) rename {devtools => chainkit}/docs/models/components/nativetokenbalance.md (99%) rename {devtools => chainkit}/docs/models/components/nativetransaction.md (99%) rename {devtools => chainkit}/docs/models/components/network.md (69%) rename {devtools => chainkit}/docs/models/components/networkmetric.md (77%) rename {devtools => chainkit}/docs/models/components/networktoken.md (98%) rename {devtools => chainkit}/docs/models/components/networktokendetails.md (98%) rename {devtools => chainkit}/docs/models/components/networktokeninfo.md (94%) rename {devtools => chainkit}/docs/models/components/networktype.md (76%) rename {devtools => chainkit}/docs/models/components/nftholdersresponse.md (98%) rename {devtools => chainkit}/docs/models/components/nfttokenmetadatastatus.md (87%) rename {devtools => chainkit}/docs/models/components/operationstatus.md (75%) rename {devtools => chainkit}/docs/models/components/operationstatuscode.md (77%) rename {devtools => chainkit}/docs/models/components/operationstatusresponse.md (97%) rename {devtools => chainkit}/docs/models/components/operationstatusresponsemetadata.md (100%) rename {devtools => chainkit}/docs/models/components/operationtype.md (83%) rename {devtools => chainkit}/docs/models/components/pchainaddressdetails.md (96%) rename {devtools => chainkit}/docs/models/components/pchainbalance.md (99%) rename {devtools => chainkit}/docs/models/components/pchainid.md (72%) rename {devtools => chainkit}/docs/models/components/pchainlookingglassresponse.md (96%) rename {devtools => chainkit}/docs/models/components/pchainsharedasset.md (98%) rename {devtools => chainkit}/docs/models/components/pchaintransaction.md (99%) rename {devtools => chainkit}/docs/models/components/pchaintransactiontype.md (90%) rename {devtools => chainkit}/docs/models/components/pchainutxo.md (99%) rename {devtools => chainkit}/docs/models/components/pendingdelegatordetails.md (99%) rename {devtools => chainkit}/docs/models/components/pendingdelegatordetailsdelegationstatus.md (86%) rename {devtools => chainkit}/docs/models/components/pendingicmmessage.md (99%) rename {devtools => chainkit}/docs/models/components/pendingicmmessagestatus.md (72%) rename {devtools => chainkit}/docs/models/components/pendingreward.md (98%) rename {devtools => chainkit}/docs/models/components/pendingteleportermessage.md (99%) rename {devtools => chainkit}/docs/models/components/pendingteleportermessagestatus.md (64%) rename {devtools => chainkit}/docs/models/components/pendingvalidatordetails.md (98%) rename {devtools => chainkit}/docs/models/components/pendingvalidatordetailsvalidationstatus.md (86%) rename {devtools => chainkit}/docs/models/components/platformaddressactivitykeytype.md (71%) rename {devtools => chainkit}/docs/models/components/pricingproviders.md (85%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivityeventtype.md (89%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivitymetadata.md (99%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivityrequest.md (99%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivityrequesteventtype.md (87%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivityrequestmetadata.md (100%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivityresponse.md (99%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivitysubevents.md (98%) rename {devtools => chainkit}/docs/models/components/primarynetworkaddressactivitysubeventtype.md (90%) rename {devtools => chainkit}/docs/models/components/primarynetworkassetcap.md (78%) rename {devtools => chainkit}/docs/models/components/primarynetworkassettype.md (77%) rename {devtools => chainkit}/docs/models/components/primarynetworkbalancethresholdfilter.md (97%) rename {devtools => chainkit}/docs/models/components/primarynetworkblock.md (98%) rename {devtools => chainkit}/docs/models/components/primarynetworkchaininfo.md (96%) rename {devtools => chainkit}/docs/models/components/primarynetworkchainname.md (75%) rename {devtools => chainkit}/docs/models/components/primarynetworkoperationtype.md (77%) rename {devtools => chainkit}/docs/models/components/primarynetworkoptions.md (96%) rename {devtools => chainkit}/docs/models/components/primarynetworktxtype.md (91%) rename {devtools => chainkit}/docs/models/components/primarynetworktype.md (71%) rename {devtools => chainkit}/docs/models/components/proposerdetails.md (92%) rename {devtools => chainkit}/docs/models/components/removedvalidatordetails.md (99%) rename {devtools => chainkit}/docs/models/components/removedvalidatordetailsvalidationstatus.md (86%) rename {devtools => chainkit}/docs/models/components/requesttype.md (73%) rename {devtools => chainkit}/docs/models/components/resourcelink.md (95%) rename {devtools => chainkit}/docs/models/components/resourcelinktype.md (85%) rename {devtools => chainkit}/docs/models/components/rewards.md (92%) rename {devtools => chainkit}/docs/models/components/rewardtype.md (72%) rename {devtools => chainkit}/docs/models/components/richaddress.md (98%) rename {devtools => chainkit}/docs/models/components/rollingwindowmetricsapiresponse.md (98%) rename {devtools => chainkit}/docs/models/components/rpcmetrics.md (96%) rename {devtools => chainkit}/docs/models/components/rpcusagemetricsgroupbyenum.md (69%) rename {devtools => chainkit}/docs/models/components/rpcusagemetricsvalueaggregated.md (98%) rename {devtools => chainkit}/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md (91%) rename {devtools => chainkit}/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md (100%) rename {devtools => chainkit}/docs/models/components/security.md (84%) rename {devtools => chainkit}/docs/models/components/sharedsecretsresponse.md (86%) rename {devtools => chainkit}/docs/models/components/signatureaggregationresponse.md (99%) rename {devtools => chainkit}/docs/models/components/signatureaggregatorrequest.md (99%) rename {devtools => chainkit}/docs/models/components/sortbyoption.md (78%) rename {devtools => chainkit}/docs/models/components/sortorder.md (67%) rename {devtools => chainkit}/docs/models/components/stakingdistribution.md (95%) rename {devtools => chainkit}/docs/models/components/subnet.md (99%) rename {devtools => chainkit}/docs/models/components/subnetownershipinfo.md (97%) rename {devtools => chainkit}/docs/models/components/subnetrpctimeintervalgranularity.md (89%) rename {devtools => chainkit}/docs/models/components/subnetrpcusagemetricsresponsedto.md (98%) rename {devtools => chainkit}/docs/models/components/teleporterchainmetricsapiresponse.md (97%) rename {devtools => chainkit}/docs/models/components/teleporterdestinationtransaction.md (96%) rename {devtools => chainkit}/docs/models/components/teleportermessageinfo.md (97%) rename {devtools => chainkit}/docs/models/components/teleportermetric.md (79%) rename {devtools => chainkit}/docs/models/components/teleportermetricsvalue.md (91%) rename {devtools => chainkit}/docs/models/components/teleporterreceipt.md (90%) rename {devtools => chainkit}/docs/models/components/teleporterrewarddetails.md (99%) rename {devtools => chainkit}/docs/models/components/teleporterrewarddetailserctype.md (63%) rename {devtools => chainkit}/docs/models/components/teleportersourcetransaction.md (87%) rename {devtools => chainkit}/docs/models/components/timeintervalgranularity.md (75%) rename {devtools => chainkit}/docs/models/components/timeintervalgranularityextended.md (90%) rename {devtools => chainkit}/docs/models/components/token.md (100%) rename {devtools => chainkit}/docs/models/components/tokenreputation.md (88%) rename {devtools => chainkit}/docs/models/components/transaction.md (99%) rename {devtools => chainkit}/docs/models/components/transactiondetails.md (99%) rename {devtools => chainkit}/docs/models/components/transactiondirectiontype.md (70%) rename {devtools => chainkit}/docs/models/components/transactionevent.md (98%) rename {devtools => chainkit}/docs/models/components/transactionexportmetadata.md (98%) rename {devtools => chainkit}/docs/models/components/transactionmethodtype.md (87%) rename {devtools => chainkit}/docs/models/components/transactionstatus.md (72%) rename {devtools => chainkit}/docs/models/components/transactionvertexdetail.md (96%) rename {devtools => chainkit}/docs/models/components/transfer.md (100%) rename {devtools => chainkit}/docs/models/components/unknowncontract.md (99%) rename {devtools => chainkit}/docs/models/components/unknowncontracterctype.md (72%) rename {devtools => chainkit}/docs/models/components/updatewebhookrequest.md (98%) rename {devtools => chainkit}/docs/models/components/usagemetricsgroupbyenum.md (78%) rename {devtools => chainkit}/docs/models/components/usagemetricsresponsedto.md (96%) rename {devtools => chainkit}/docs/models/components/usagemetricsvaluedto.md (98%) rename {devtools => chainkit}/docs/models/components/usagemetricsvaluedtogroupedby.md (75%) rename {devtools => chainkit}/docs/models/components/usagemetricsvaluedtogroupvalue.md (100%) rename {devtools => chainkit}/docs/models/components/utilityaddresses.md (85%) rename {devtools => chainkit}/docs/models/components/utxo.md (99%) rename {devtools => chainkit}/docs/models/components/utxocredential.md (97%) rename {devtools => chainkit}/docs/models/components/utxotype.md (75%) rename {devtools => chainkit}/docs/models/components/validationstatustype.md (75%) rename {devtools => chainkit}/docs/models/components/validator.md (100%) rename {devtools => chainkit}/docs/models/components/validatoractivityeventtype.md (67%) rename {devtools => chainkit}/docs/models/components/validatoractivitykeytype.md (72%) rename {devtools => chainkit}/docs/models/components/validatoractivitymetadata.md (98%) rename {devtools => chainkit}/docs/models/components/validatoractivityrequest.md (97%) rename {devtools => chainkit}/docs/models/components/validatoractivityrequesteventtype.md (89%) rename {devtools => chainkit}/docs/models/components/validatoractivityrequestmetadata.md (100%) rename {devtools => chainkit}/docs/models/components/validatoractivityresponse.md (98%) rename {devtools => chainkit}/docs/models/components/validatoractivitysubevent.md (80%) rename {devtools => chainkit}/docs/models/components/validatoractivitysubevents.md (93%) rename {devtools => chainkit}/docs/models/components/validatorhealthdetails.md (96%) rename {devtools => chainkit}/docs/models/components/validatorsdetails.md (97%) rename {devtools => chainkit}/docs/models/components/vmname.md (68%) rename {devtools => chainkit}/docs/models/components/webhook.md (100%) rename {devtools => chainkit}/docs/models/components/webhookaddressactivityresponse.md (98%) rename {devtools => chainkit}/docs/models/components/webhookaddressactivityresponseeventtype.md (88%) rename {devtools => chainkit}/docs/models/components/webhookinternaltransaction.md (97%) rename {devtools => chainkit}/docs/models/components/webhookstatus.md (70%) rename {devtools => chainkit}/docs/models/components/webhookstatustype.md (72%) rename {devtools => chainkit}/docs/models/components/xchainassetdetails.md (98%) rename {devtools => chainkit}/docs/models/components/xchainbalances.md (97%) rename {devtools => chainkit}/docs/models/components/xchainid.md (78%) rename {devtools => chainkit}/docs/models/components/xchainlineartransaction.md (99%) rename {devtools => chainkit}/docs/models/components/xchainlineartransactionchainformat.md (90%) rename {devtools => chainkit}/docs/models/components/xchainnonlineartransaction.md (99%) rename {devtools => chainkit}/docs/models/components/xchainnonlineartransactionchainformat.md (90%) rename {devtools => chainkit}/docs/models/components/xchainsharedassetbalance.md (98%) rename {devtools => chainkit}/docs/models/components/xchaintransactiontype.md (80%) rename {devtools => chainkit}/docs/models/components/xchainvertex.md (94%) rename {devtools => chainkit}/docs/models/errors/badgatewayerror.md (96%) rename {devtools => chainkit}/docs/models/errors/badgatewaymessage.md (100%) rename {devtools => chainkit}/docs/models/errors/badrequesterror.md (96%) rename {devtools => chainkit}/docs/models/errors/badrequestmessage.md (100%) rename {devtools => chainkit}/docs/models/errors/forbiddenerror.md (96%) rename {devtools => chainkit}/docs/models/errors/forbiddenmessage.md (100%) rename {devtools => chainkit}/docs/models/errors/internalservererror.md (96%) rename {devtools => chainkit}/docs/models/errors/internalservererrormessage.md (100%) rename {devtools => chainkit}/docs/models/errors/notfounderror.md (96%) rename {devtools => chainkit}/docs/models/errors/notfoundmessage.md (100%) rename {devtools => chainkit}/docs/models/errors/serviceunavailableerror.md (96%) rename {devtools => chainkit}/docs/models/errors/serviceunavailablemessage.md (100%) rename {devtools => chainkit}/docs/models/errors/toomanyrequestserror.md (96%) rename {devtools => chainkit}/docs/models/errors/toomanyrequestsmessage.md (100%) rename {devtools => chainkit}/docs/models/errors/unauthorizederror.md (96%) rename {devtools => chainkit}/docs/models/errors/unauthorizedmessage.md (100%) rename {devtools => chainkit}/docs/models/operations/addaddressestowebhookrequest.md (95%) rename {devtools => chainkit}/docs/models/operations/aggregatesignaturesglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/aggregatesignaturesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/createwebhookrequest.md (100%) rename {devtools => chainkit}/docs/models/operations/createwebhookresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/deactivatewebhookrequest.md (89%) rename {devtools => chainkit}/docs/models/operations/deactivatewebhookresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getaddresschainsrequest.md (93%) rename {devtools => chainkit}/docs/models/operations/getaddressesbybalanceovertimeglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/getaddressesbybalanceovertimerequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getaddressesbybalanceovertimeresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/getaddressesbybtcbbridgedrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getaddressesbybtcbbridgedresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/getaddressesfromwebhookrequest.md (96%) rename {devtools => chainkit}/docs/models/operations/getaddressesfromwebhookresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/getaggregatedsignaturesglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/getaggregatedsignaturesrequest.md (95%) rename {devtools => chainkit}/docs/models/operations/getapilogsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getapilogsrequesttype.md (75%) rename {devtools => chainkit}/docs/models/operations/getapilogsresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/getapiusagemetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getapiusagemetricsrequesttype.md (68%) rename {devtools => chainkit}/docs/models/operations/getassetdetailsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/getassetdetailsrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getbalancesbyaddressesglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/getbalancesbyaddressesrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getbalancesbyaddressesresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getblockbyidglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/getblockbyidrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getblockchainbyidglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getblockchainbyidrequest.md (95%) rename {devtools => chainkit}/docs/models/operations/getblockglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getblockrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getchainglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getchainidsforaddressesglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/getchainidsforaddressesrequest.md (96%) rename {devtools => chainkit}/docs/models/operations/getchaininfoglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getchaininforequest.md (96%) rename {devtools => chainkit}/docs/models/operations/getchainrequest.md (95%) rename {devtools => chainkit}/docs/models/operations/getcontractmetadataglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/getcontractmetadatarequest.md (96%) rename {devtools => chainkit}/docs/models/operations/getcontractmetadataresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getdeploymenttransactionglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/getdeploymenttransactionrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getevmchainmetricsglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/getevmchainmetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getevmchainmetricsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/getevmchainrollingwindowmetricsglobals.md (96%) rename {devtools => chainkit}/docs/models/operations/getevmchainrollingwindowmetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/geticmmessagerequest.md (95%) rename {devtools => chainkit}/docs/models/operations/geticmmessageresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getlatestblocksglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getlatestblocksrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getlatestblocksresponse.md (96%) rename {devtools => chainkit}/docs/models/operations/getmetricsbynodeidmetric.md (75%) rename {devtools => chainkit}/docs/models/operations/getmetricsbynodeidrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getmetricsbysubnetidmetric.md (76%) rename {devtools => chainkit}/docs/models/operations/getmetricsbysubnetidrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getmetricsbyvalidationidmetric.md (74%) rename {devtools => chainkit}/docs/models/operations/getmetricsbyvalidationidrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getnativebalanceglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getnativebalancerequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getnetworkdetailsglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getnetworkdetailsrequest.md (93%) rename {devtools => chainkit}/docs/models/operations/getnftholdersbycontractaddressglobals.md (96%) rename {devtools => chainkit}/docs/models/operations/getnftholdersbycontractaddressrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getnftholdersbycontractaddressresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/getoperationresultrequest.md (89%) rename {devtools => chainkit}/docs/models/operations/getrpcusagemetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getsinglevalidatordetailsglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/getsinglevalidatordetailsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getsinglevalidatordetailsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/getstakingmetricsglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getstakingmetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getstakingmetricsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/getsubnetbyidglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/getsubnetbyidrequest.md (96%) rename {devtools => chainkit}/docs/models/operations/getsubnetrpcusagemetricsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getteleportermessagerequest.md (93%) rename {devtools => chainkit}/docs/models/operations/getteleportermessageresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getteleportermetricsbychainglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/getteleportermetricsbychainrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/gettokendetailsglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/gettokendetailsrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/gettokendetailsresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/gettotall1validatormetricsmetric.md (92%) rename {devtools => chainkit}/docs/models/operations/gettotall1validatormetricsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/gettransactionglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/gettransactionrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/gettransactionsforblockglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/gettransactionsforblockrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/gettxbyhashglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/gettxbyhashrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/gettxbyhashresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/getutxosbyaddressesglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/getutxosbyaddressesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getutxosbyaddressesresponse.md (90%) rename {devtools => chainkit}/docs/models/operations/getutxosbyaddressesresponsebody.md (100%) rename {devtools => chainkit}/docs/models/operations/getvalidatorsbydaterangerequest.md (99%) rename {devtools => chainkit}/docs/models/operations/getvalidatorsbydaterangeresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/getvertexbyhashglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/getvertexbyhashrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/getvertexbyheightglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/getvertexbyheightrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/getvertexbyheightresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/getwebhookrequest.md (92%) rename {devtools => chainkit}/docs/models/operations/getwebhookresponse.md (100%) rename {devtools => chainkit}/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md (96%) rename {devtools => chainkit}/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/listaddresschainsrequest.md (90%) rename {devtools => chainkit}/docs/models/operations/listalllatestblocksrequest.md (96%) rename {devtools => chainkit}/docs/models/operations/listalllatestblocksresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/listalllatesttransactionsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listalllatesttransactionsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/listassettransactionsglobals.md (93%) rename {devtools => chainkit}/docs/models/operations/listassettransactionsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listassettransactionsresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/listblockchainsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/listblockchainsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listblockchainsresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listchainsrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/listchainsresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listcollectiblebalancesglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listcollectiblebalancesrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/listcollectiblebalancesresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listcontractdeploymentsglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listcontractdeploymentsrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/listcontractdeploymentsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/listdelegatorsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/listdelegatorsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listdelegatorsresponse.md (96%) rename {devtools => chainkit}/docs/models/operations/listerc1155balancesglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/listerc1155balancesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc1155balancesresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listerc1155transactionsglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listerc1155transactionsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc1155transactionsresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc20balancesglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/listerc20balancesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc20balancesresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listerc20transactionsglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/listerc20transactionsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc20transactionsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/listerc721balancesglobals.md (92%) rename {devtools => chainkit}/docs/models/operations/listerc721balancesrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/listerc721balancesresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listerc721transactionsglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listerc721transactionsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listerc721transactionsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/listicmmessagesbyaddressrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listicmmessagesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listicmmessagesresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listinternaltransactionsglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listinternaltransactionsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listinternaltransactionsresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listl1validatorsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/listl1validatorsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listl1validatorsresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listlatestblocksallchainsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listlatestblocksallchainsresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworkblocksglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworkblocksrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworkblocksresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworktransactionsglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworktransactionsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworktransactionsresponse.md (96%) rename {devtools => chainkit}/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md (100%) rename {devtools => chainkit}/docs/models/operations/listlatesttransactionsallchainsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listlatesttransactionsallchainsresponse.md (97%) rename {devtools => chainkit}/docs/models/operations/listlatesttransactionsglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listlatesttransactionsrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/listlatesttransactionsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/listlatestxchainverticesglobals.md (98%) rename {devtools => chainkit}/docs/models/operations/listlatestxchainverticesrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listlatestxchainverticesresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listnativetransactionsglobals.md (91%) rename {devtools => chainkit}/docs/models/operations/listnativetransactionsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listnativetransactionsresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/listpendingprimarynetworkrewardsglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listpendingprimarynetworkrewardsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listpendingprimarynetworkrewardsresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md (97%) rename {devtools => chainkit}/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md (98%) rename {devtools => chainkit}/docs/models/operations/listsubnetsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/listsubnetsrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listsubnetsresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/listteleportermessagesbyaddressrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listteleportermessagesrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listteleportermessagesresponse.md (93%) rename {devtools => chainkit}/docs/models/operations/listtokensglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/listtokensrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listtokensresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listtransactionsglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/listtransactionsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listtransactionsresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/listtransfersglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/listtransfersrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listtransfersresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listvalidatorsglobals.md (95%) rename {devtools => chainkit}/docs/models/operations/listvalidatorsrequest.md (99%) rename {devtools => chainkit}/docs/models/operations/listvalidatorsresponse.md (95%) rename {devtools => chainkit}/docs/models/operations/listwebhooksrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/listwebhooksresponse.md (94%) rename {devtools => chainkit}/docs/models/operations/posttransactionexportjobrequest.md (100%) rename {devtools => chainkit}/docs/models/operations/reindexnftglobals.md (94%) rename {devtools => chainkit}/docs/models/operations/reindexnftrequest.md (97%) rename {devtools => chainkit}/docs/models/operations/removeaddressesfromwebhookrequest.md (98%) rename {devtools => chainkit}/docs/models/operations/supportedchainsrequest.md (95%) rename {devtools => chainkit}/docs/models/operations/updatewebhookrequest.md (96%) rename {devtools => chainkit}/docs/models/operations/updatewebhookresponse.md (100%) rename {devtools => chainkit}/docs/sdks/addressbalances/README.md (97%) rename {devtools => chainkit}/docs/sdks/addresschains/README.md (97%) rename {devtools => chainkit}/docs/sdks/addresscontracts/README.md (97%) rename {devtools => chainkit}/docs/sdks/addresses/README.md (97%) rename {devtools => chainkit}/docs/sdks/addresstransactions/README.md (97%) rename {devtools => chainkit}/docs/sdks/avalanche/README.md (100%) rename {devtools => chainkit}/docs/sdks/contracts/README.md (97%) rename {devtools => chainkit}/docs/sdks/data/README.md (97%) rename {devtools => chainkit}/docs/sdks/evmblocks/README.md (97%) rename {devtools => chainkit}/docs/sdks/evmchains/README.md (97%) rename {devtools => chainkit}/docs/sdks/evmtransactions/README.md (97%) rename {devtools => chainkit}/docs/sdks/icm/README.md (97%) rename {devtools => chainkit}/docs/sdks/l1validators/README.md (97%) rename {devtools => chainkit}/docs/sdks/metrics/README.md (97%) rename {devtools => chainkit}/docs/sdks/metricschains/README.md (97%) rename {devtools => chainkit}/docs/sdks/networks/README.md (97%) rename {devtools => chainkit}/docs/sdks/nfts/README.md (97%) rename {devtools => chainkit}/docs/sdks/operations/README.md (97%) rename {devtools => chainkit}/docs/sdks/primarynetwork/README.md (97%) rename {devtools => chainkit}/docs/sdks/primarynetworkbalances/README.md (97%) rename {devtools => chainkit}/docs/sdks/primarynetworkblocks/README.md (97%) rename {devtools => chainkit}/docs/sdks/primarynetworktransactions/README.md (97%) rename {devtools => chainkit}/docs/sdks/rewards/README.md (97%) rename {devtools => chainkit}/docs/sdks/signatureaggregator/README.md (98%) rename {devtools => chainkit}/docs/sdks/subnets/README.md (97%) rename {devtools => chainkit}/docs/sdks/teleporter/README.md (97%) rename {devtools => chainkit}/docs/sdks/usagemetrics/README.md (97%) rename {devtools => chainkit}/docs/sdks/utxos/README.md (97%) rename {devtools => chainkit}/docs/sdks/vertices/README.md (97%) rename {devtools => chainkit}/docs/sdks/webhooks/README.md (97%) rename {devtools => chainkit}/eslint.config.mjs (100%) rename {devtools => chainkit}/examples/.env.template (66%) rename {devtools => chainkit}/examples/README.md (87%) rename {devtools => chainkit}/examples/package-lock.json (98%) rename {devtools => chainkit}/examples/package.json (80%) rename {devtools => chainkit}/examples/webhooksCreate.example.ts (87%) rename {devtools => chainkit}/jsr.json (94%) rename {devtools => chainkit}/overlays/overlay.yaml (100%) rename {devtools => chainkit}/package-lock.json (99%) rename {devtools => chainkit}/package.json (87%) rename {devtools => chainkit}/src/core.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressBalancesGetNative.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressBalancesListCollectibles.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressBalancesListErc1155.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressBalancesListErc20.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressBalancesListErc721.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressChainsList.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressContractsListDeployments.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsList.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsListErc1155.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsListErc20.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsListErc721.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsListInternal.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmAddressTransactionsListNative.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmBlocksGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmBlocksListLatest.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmBlocksListLatestAllChains.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmBlocksListTransactions.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmChainsGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmChainsGetAddressChains.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmChainsList.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmChainsListAllLatestBlocks.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmChainsListAllLatestTransactions.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmContractsGetDeploymentTransaction.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmContractsGetMetadata.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmContractsListTransfers.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmTransactionsGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmTransactionsListLatest.ts (100%) rename {devtools => chainkit}/src/funcs/dataEvmTransactionsListLatestAllChains.ts (100%) rename {devtools => chainkit}/src/funcs/dataHealthCheck.ts (100%) rename {devtools => chainkit}/src/funcs/dataIcmGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataIcmList.ts (100%) rename {devtools => chainkit}/src/funcs/dataIcmListByAddress.ts (100%) rename {devtools => chainkit}/src/funcs/dataNftsGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataNftsList.ts (100%) rename {devtools => chainkit}/src/funcs/dataNftsReindex.ts (100%) rename {devtools => chainkit}/src/funcs/dataOperationsExportTransactions.ts (100%) rename {devtools => chainkit}/src/funcs/dataOperationsGetResult.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkBlocksGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkBlocksListLatest.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetAssetDetails.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetBlockchainById.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetSubnetById.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkListBlockchains.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkListDelegators.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkListL1Validators.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkListSubnets.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkListValidators.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkTransactionsGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts (100%) rename {devtools => chainkit}/src/funcs/dataPrimaryNetworkVerticesListLatest.ts (100%) rename {devtools => chainkit}/src/funcs/dataSignatureAggregatorAggregate.ts (100%) rename {devtools => chainkit}/src/funcs/dataSignatureAggregatorGet.ts (100%) rename {devtools => chainkit}/src/funcs/dataTeleporterGetTeleporterMessage.ts (100%) rename {devtools => chainkit}/src/funcs/dataTeleporterListTeleporterMessages.ts (100%) rename {devtools => chainkit}/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts (100%) rename {devtools => chainkit}/src/funcs/dataUsageMetricsGetLogs.ts (100%) rename {devtools => chainkit}/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts (100%) rename {devtools => chainkit}/src/funcs/dataUsageMetricsGetUsage.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsGet.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsGetMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsGetRollingWindowMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsGetTeleporterMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsList.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsListNftHolders.ts (100%) rename {devtools => chainkit}/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts (100%) rename {devtools => chainkit}/src/funcs/metricsHealthCheck.ts (100%) rename {devtools => chainkit}/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts (100%) rename {devtools => chainkit}/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts (100%) rename {devtools => chainkit}/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts (100%) rename {devtools => chainkit}/src/funcs/metricsL1ValidatorsListMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/metricsNetworksGetStakingMetrics.ts (100%) rename {devtools => chainkit}/src/funcs/metricsSubnetsGetValidators.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksAddressesAdd.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksAddressesList.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksAddressesRemove.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksCreate.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksDeactivate.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksGenerateOrRotateSharedSecret.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksGet.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksGetSharedSecret.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksList.ts (100%) rename {devtools => chainkit}/src/funcs/webhooksUpdate.ts (100%) rename {devtools => chainkit}/src/hooks/hooks.ts (100%) rename {devtools => chainkit}/src/hooks/index.ts (100%) rename {devtools => chainkit}/src/hooks/registration.ts (100%) rename {devtools => chainkit}/src/hooks/types.ts (100%) rename {devtools => chainkit}/src/index.extras.ts (100%) rename {devtools => chainkit}/src/index.ts (100%) rename {devtools => chainkit}/src/lib/base64.ts (100%) rename {devtools => chainkit}/src/lib/config.ts (93%) rename {devtools => chainkit}/src/lib/dlv.ts (100%) rename {devtools => chainkit}/src/lib/encodings.ts (100%) rename {devtools => chainkit}/src/lib/files.ts (100%) rename {devtools => chainkit}/src/lib/http.ts (100%) rename {devtools => chainkit}/src/lib/is-plain-object.ts (100%) rename {devtools => chainkit}/src/lib/logger.ts (100%) rename {devtools => chainkit}/src/lib/matchers.ts (100%) rename {devtools => chainkit}/src/lib/primitives.ts (100%) rename {devtools => chainkit}/src/lib/retries.ts (100%) rename {devtools => chainkit}/src/lib/schemas.ts (100%) rename {devtools => chainkit}/src/lib/sdks.ts (100%) rename {devtools => chainkit}/src/lib/security.ts (100%) rename {devtools => chainkit}/src/lib/url.ts (100%) rename {devtools => chainkit}/src/mcp-server/build.mts (100%) rename {devtools => chainkit}/src/mcp-server/cli.ts (100%) rename {devtools => chainkit}/src/mcp-server/cli/start/command.ts (100%) rename {devtools => chainkit}/src/mcp-server/cli/start/impl.ts (100%) rename {devtools => chainkit}/src/mcp-server/console-logger.ts (100%) rename {devtools => chainkit}/src/mcp-server/extensions.ts (100%) rename {devtools => chainkit}/src/mcp-server/mcp-server.ts (94%) rename {devtools => chainkit}/src/mcp-server/prompts.ts (100%) rename {devtools => chainkit}/src/mcp-server/resources.ts (100%) rename {devtools => chainkit}/src/mcp-server/scopes.ts (100%) rename {devtools => chainkit}/src/mcp-server/server.ts (99%) rename {devtools => chainkit}/src/mcp-server/shared.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressChainsList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmBlocksGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmBlocksListLatest.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmBlocksListTransactions.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmChainsGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmChainsList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmContractsGetMetadata.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmContractsListTransfers.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmTransactionsGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmTransactionsListLatest.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataHealthCheck.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataIcmGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataIcmList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataIcmListByAddress.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataNftsGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataNftsList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataNftsReindex.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataOperationsExportTransactions.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataOperationsGetResult.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataSignatureAggregatorGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataUsageMetricsGetLogs.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/dataUsageMetricsGetUsage.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsGetMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsListNftHolders.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsHealthCheck.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/metricsSubnetsGetValidators.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksAddressesAdd.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksAddressesList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksAddressesRemove.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksCreate.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksDeactivate.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksGet.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksGetSharedSecret.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksList.ts (100%) rename {devtools => chainkit}/src/mcp-server/tools/webhooksUpdate.ts (100%) rename {devtools => chainkit}/src/models/components/accesslistdata.ts (100%) rename {devtools => chainkit}/src/models/components/activedelegatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/activevalidatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/addressactivityeventtype.ts (100%) rename {devtools => chainkit}/src/models/components/addressactivitymetadata.ts (100%) rename {devtools => chainkit}/src/models/components/addressdetails.ts (100%) rename {devtools => chainkit}/src/models/components/addresseschangerequest.ts (100%) rename {devtools => chainkit}/src/models/components/aggregatedassetamount.ts (100%) rename {devtools => chainkit}/src/models/components/apifeature.ts (100%) rename {devtools => chainkit}/src/models/components/assetamount.ts (100%) rename {devtools => chainkit}/src/models/components/assetwithpriceinfo.ts (100%) rename {devtools => chainkit}/src/models/components/balanceowner.ts (100%) rename {devtools => chainkit}/src/models/components/blockchain.ts (100%) rename {devtools => chainkit}/src/models/components/blockchainid.ts (100%) rename {devtools => chainkit}/src/models/components/blockchainids.ts (100%) rename {devtools => chainkit}/src/models/components/blockchaininfo.ts (100%) rename {devtools => chainkit}/src/models/components/blscredentials.ts (100%) rename {devtools => chainkit}/src/models/components/cchainatomicbalances.ts (100%) rename {devtools => chainkit}/src/models/components/cchainexporttransaction.ts (100%) rename {devtools => chainkit}/src/models/components/cchainimporttransaction.ts (100%) rename {devtools => chainkit}/src/models/components/cchainsharedassetbalance.ts (100%) rename {devtools => chainkit}/src/models/components/chain.ts (100%) rename {devtools => chainkit}/src/models/components/chainaddresschainidmap.ts (100%) rename {devtools => chainkit}/src/models/components/chainaddresschainidmaplistresponse.ts (100%) rename {devtools => chainkit}/src/models/components/chaininfo.ts (100%) rename {devtools => chainkit}/src/models/components/chainmetric.ts (100%) rename {devtools => chainkit}/src/models/components/chainrollingwindowmetric.ts (100%) rename {devtools => chainkit}/src/models/components/chainrollingwindowmetricsvalue.ts (100%) rename {devtools => chainkit}/src/models/components/chainstatus.ts (100%) rename {devtools => chainkit}/src/models/components/commonbalancetype.ts (100%) rename {devtools => chainkit}/src/models/components/completeddelegatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/completedvalidatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/contractdeploymentdetails.ts (100%) rename {devtools => chainkit}/src/models/components/createevmtransactionexportrequest.ts (100%) rename {devtools => chainkit}/src/models/components/createprimarynetworktransactionexportrequest.ts (100%) rename {devtools => chainkit}/src/models/components/currencycode.ts (100%) rename {devtools => chainkit}/src/models/components/datalistchainsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/delegationstatustype.ts (100%) rename {devtools => chainkit}/src/models/components/delegatorsdetails.ts (100%) rename {devtools => chainkit}/src/models/components/deliveredicmmessage.ts (100%) rename {devtools => chainkit}/src/models/components/deliveredsourcenotindexedicmmessage.ts (100%) rename {devtools => chainkit}/src/models/components/deliveredsourcenotindexedteleportermessage.ts (100%) rename {devtools => chainkit}/src/models/components/deliveredteleportermessage.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155contract.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155token.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155tokenbalance.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155tokenmetadata.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155transfer.ts (100%) rename {devtools => chainkit}/src/models/components/erc1155transferdetails.ts (100%) rename {devtools => chainkit}/src/models/components/erc20contract.ts (100%) rename {devtools => chainkit}/src/models/components/erc20token.ts (100%) rename {devtools => chainkit}/src/models/components/erc20tokenbalance.ts (100%) rename {devtools => chainkit}/src/models/components/erc20transfer.ts (100%) rename {devtools => chainkit}/src/models/components/erc20transferdetails.ts (100%) rename {devtools => chainkit}/src/models/components/erc721contract.ts (100%) rename {devtools => chainkit}/src/models/components/erc721token.ts (100%) rename {devtools => chainkit}/src/models/components/erc721tokenbalance.ts (100%) rename {devtools => chainkit}/src/models/components/erc721tokenmetadata.ts (100%) rename {devtools => chainkit}/src/models/components/erc721transfer.ts (100%) rename {devtools => chainkit}/src/models/components/erc721transferdetails.ts (100%) rename {devtools => chainkit}/src/models/components/erctoken.ts (100%) rename {devtools => chainkit}/src/models/components/erctransfer.ts (100%) rename {devtools => chainkit}/src/models/components/evmaddressactivityrequest.ts (100%) rename {devtools => chainkit}/src/models/components/evmaddressactivityresponse.ts (100%) rename {devtools => chainkit}/src/models/components/evmblock.ts (100%) rename {devtools => chainkit}/src/models/components/evminput.ts (100%) rename {devtools => chainkit}/src/models/components/evmnetworkoptions.ts (100%) rename {devtools => chainkit}/src/models/components/evmoperationtype.ts (100%) rename {devtools => chainkit}/src/models/components/evmoutput.ts (100%) rename {devtools => chainkit}/src/models/components/fullnativetransactiondetails.ts (100%) rename {devtools => chainkit}/src/models/components/getchainresponse.ts (100%) rename {devtools => chainkit}/src/models/components/getevmblockresponse.ts (100%) rename {devtools => chainkit}/src/models/components/getnativebalanceresponse.ts (100%) rename {devtools => chainkit}/src/models/components/getnetworkdetailsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/getprimarynetworkblockresponse.ts (100%) rename {devtools => chainkit}/src/models/components/gettransactionresponse.ts (100%) rename {devtools => chainkit}/src/models/components/globalparamnetwork.ts (100%) rename {devtools => chainkit}/src/models/components/healthcheckresultdto.ts (100%) rename {devtools => chainkit}/src/models/components/healthindicatorresultdto.ts (100%) rename {devtools => chainkit}/src/models/components/historicalreward.ts (100%) rename {devtools => chainkit}/src/models/components/icmdestinationtransaction.ts (100%) rename {devtools => chainkit}/src/models/components/icmreceipt.ts (100%) rename {devtools => chainkit}/src/models/components/icmrewarddetails.ts (100%) rename {devtools => chainkit}/src/models/components/icmsourcetransaction.ts (100%) rename {devtools => chainkit}/src/models/components/imageasset.ts (100%) rename {devtools => chainkit}/src/models/components/index.ts (100%) rename {devtools => chainkit}/src/models/components/internaltransaction.ts (100%) rename {devtools => chainkit}/src/models/components/internaltransactiondetails.ts (100%) rename {devtools => chainkit}/src/models/components/internaltransactionopcall.ts (100%) rename {devtools => chainkit}/src/models/components/l1validatordetailsfull.ts (100%) rename {devtools => chainkit}/src/models/components/l1validatordetailstransaction.ts (100%) rename {devtools => chainkit}/src/models/components/l1validatormanagerdetails.ts (100%) rename {devtools => chainkit}/src/models/components/listaddresschainsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listblockchainsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listcchainatomicbalancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listcchainatomictransactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listcollectiblebalancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listcontractsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listdelegatordetailsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc1155balancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc1155transactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc20balancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc20transactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc721balancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listerc721transactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listevmblocksresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listhistoricalrewardsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listicmmessagesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listinternaltransactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listl1validatorsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listnativetransactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listnfttokens.ts (100%) rename {devtools => chainkit}/src/models/components/listpchainbalancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listpchaintransactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listpchainutxosresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listpendingrewardsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listprimarynetworkblocksresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listsubnetsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listteleportermessagesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listtransactiondetailsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listtransfersresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listutxosresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listvalidatordetailsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listwebhookaddressesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listwebhooksresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listxchainbalancesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listxchaintransactionsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/listxchainverticesresponse.ts (100%) rename {devtools => chainkit}/src/models/components/log.ts (100%) rename {devtools => chainkit}/src/models/components/logsformat.ts (100%) rename {devtools => chainkit}/src/models/components/logsformatmetadata.ts (100%) rename {devtools => chainkit}/src/models/components/logsresponsedto.ts (100%) rename {devtools => chainkit}/src/models/components/lookingglassresponse.ts (100%) rename {devtools => chainkit}/src/models/components/method.ts (100%) rename {devtools => chainkit}/src/models/components/metric.ts (100%) rename {devtools => chainkit}/src/models/components/metricsapiresponse.ts (100%) rename {devtools => chainkit}/src/models/components/metricslistchainsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/metricsvalue.ts (100%) rename {devtools => chainkit}/src/models/components/money.ts (100%) rename {devtools => chainkit}/src/models/components/nativetokenbalance.ts (100%) rename {devtools => chainkit}/src/models/components/nativetransaction.ts (100%) rename {devtools => chainkit}/src/models/components/network.ts (100%) rename {devtools => chainkit}/src/models/components/networkmetric.ts (100%) rename {devtools => chainkit}/src/models/components/networktoken.ts (100%) rename {devtools => chainkit}/src/models/components/networktokendetails.ts (100%) rename {devtools => chainkit}/src/models/components/networktokeninfo.ts (100%) rename {devtools => chainkit}/src/models/components/networktype.ts (100%) rename {devtools => chainkit}/src/models/components/nftholdersresponse.ts (100%) rename {devtools => chainkit}/src/models/components/nfttokenmetadatastatus.ts (100%) rename {devtools => chainkit}/src/models/components/operationstatus.ts (100%) rename {devtools => chainkit}/src/models/components/operationstatuscode.ts (100%) rename {devtools => chainkit}/src/models/components/operationstatusresponse.ts (100%) rename {devtools => chainkit}/src/models/components/operationtype.ts (100%) rename {devtools => chainkit}/src/models/components/pchainaddressdetails.ts (100%) rename {devtools => chainkit}/src/models/components/pchainbalance.ts (100%) rename {devtools => chainkit}/src/models/components/pchainid.ts (100%) rename {devtools => chainkit}/src/models/components/pchainlookingglassresponse.ts (100%) rename {devtools => chainkit}/src/models/components/pchainsharedasset.ts (100%) rename {devtools => chainkit}/src/models/components/pchaintransaction.ts (100%) rename {devtools => chainkit}/src/models/components/pchaintransactiontype.ts (100%) rename {devtools => chainkit}/src/models/components/pchainutxo.ts (100%) rename {devtools => chainkit}/src/models/components/pendingdelegatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/pendingicmmessage.ts (100%) rename {devtools => chainkit}/src/models/components/pendingreward.ts (100%) rename {devtools => chainkit}/src/models/components/pendingteleportermessage.ts (100%) rename {devtools => chainkit}/src/models/components/pendingvalidatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/platformaddressactivitykeytype.ts (100%) rename {devtools => chainkit}/src/models/components/pricingproviders.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivityeventtype.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivitymetadata.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivityrequest.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivityresponse.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivitysubevents.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkaddressactivitysubeventtype.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkassetcap.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkassettype.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkbalancethresholdfilter.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkblock.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkchaininfo.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkchainname.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkoperationtype.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworkoptions.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworktxtype.ts (100%) rename {devtools => chainkit}/src/models/components/primarynetworktype.ts (100%) rename {devtools => chainkit}/src/models/components/proposerdetails.ts (100%) rename {devtools => chainkit}/src/models/components/removedvalidatordetails.ts (100%) rename {devtools => chainkit}/src/models/components/requesttype.ts (100%) rename {devtools => chainkit}/src/models/components/resourcelink.ts (100%) rename {devtools => chainkit}/src/models/components/resourcelinktype.ts (100%) rename {devtools => chainkit}/src/models/components/rewards.ts (100%) rename {devtools => chainkit}/src/models/components/rewardtype.ts (100%) rename {devtools => chainkit}/src/models/components/richaddress.ts (100%) rename {devtools => chainkit}/src/models/components/rollingwindowmetricsapiresponse.ts (100%) rename {devtools => chainkit}/src/models/components/rpcmetrics.ts (100%) rename {devtools => chainkit}/src/models/components/rpcusagemetricsgroupbyenum.ts (100%) rename {devtools => chainkit}/src/models/components/rpcusagemetricsvalueaggregated.ts (100%) rename {devtools => chainkit}/src/models/components/security.ts (100%) rename {devtools => chainkit}/src/models/components/sharedsecretsresponse.ts (100%) rename {devtools => chainkit}/src/models/components/signatureaggregationresponse.ts (100%) rename {devtools => chainkit}/src/models/components/signatureaggregatorrequest.ts (100%) rename {devtools => chainkit}/src/models/components/sortbyoption.ts (100%) rename {devtools => chainkit}/src/models/components/sortorder.ts (100%) rename {devtools => chainkit}/src/models/components/stakingdistribution.ts (100%) rename {devtools => chainkit}/src/models/components/subnet.ts (100%) rename {devtools => chainkit}/src/models/components/subnetownershipinfo.ts (100%) rename {devtools => chainkit}/src/models/components/subnetrpctimeintervalgranularity.ts (100%) rename {devtools => chainkit}/src/models/components/subnetrpcusagemetricsresponsedto.ts (100%) rename {devtools => chainkit}/src/models/components/teleporterchainmetricsapiresponse.ts (100%) rename {devtools => chainkit}/src/models/components/teleporterdestinationtransaction.ts (100%) rename {devtools => chainkit}/src/models/components/teleportermessageinfo.ts (100%) rename {devtools => chainkit}/src/models/components/teleportermetric.ts (100%) rename {devtools => chainkit}/src/models/components/teleportermetricsvalue.ts (100%) rename {devtools => chainkit}/src/models/components/teleporterreceipt.ts (100%) rename {devtools => chainkit}/src/models/components/teleporterrewarddetails.ts (100%) rename {devtools => chainkit}/src/models/components/teleportersourcetransaction.ts (100%) rename {devtools => chainkit}/src/models/components/timeintervalgranularity.ts (100%) rename {devtools => chainkit}/src/models/components/timeintervalgranularityextended.ts (100%) rename {devtools => chainkit}/src/models/components/transaction.ts (100%) rename {devtools => chainkit}/src/models/components/transactiondetails.ts (100%) rename {devtools => chainkit}/src/models/components/transactiondirectiontype.ts (100%) rename {devtools => chainkit}/src/models/components/transactionevent.ts (100%) rename {devtools => chainkit}/src/models/components/transactionexportmetadata.ts (100%) rename {devtools => chainkit}/src/models/components/transactionmethodtype.ts (100%) rename {devtools => chainkit}/src/models/components/transactionstatus.ts (100%) rename {devtools => chainkit}/src/models/components/transactionvertexdetail.ts (100%) rename {devtools => chainkit}/src/models/components/unknowncontract.ts (100%) rename {devtools => chainkit}/src/models/components/updatewebhookrequest.ts (100%) rename {devtools => chainkit}/src/models/components/usagemetricsgroupbyenum.ts (100%) rename {devtools => chainkit}/src/models/components/usagemetricsresponsedto.ts (100%) rename {devtools => chainkit}/src/models/components/usagemetricsvaluedto.ts (100%) rename {devtools => chainkit}/src/models/components/utilityaddresses.ts (100%) rename {devtools => chainkit}/src/models/components/utxo.ts (100%) rename {devtools => chainkit}/src/models/components/utxocredential.ts (100%) rename {devtools => chainkit}/src/models/components/utxotype.ts (100%) rename {devtools => chainkit}/src/models/components/validationstatustype.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivityeventtype.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivitykeytype.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivitymetadata.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivityrequest.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivityresponse.ts (100%) rename {devtools => chainkit}/src/models/components/validatoractivitysubevents.ts (100%) rename {devtools => chainkit}/src/models/components/validatorhealthdetails.ts (100%) rename {devtools => chainkit}/src/models/components/validatorsdetails.ts (100%) rename {devtools => chainkit}/src/models/components/vmname.ts (100%) rename {devtools => chainkit}/src/models/components/webhookaddressactivityresponse.ts (100%) rename {devtools => chainkit}/src/models/components/webhookinternaltransaction.ts (100%) rename {devtools => chainkit}/src/models/components/webhookstatus.ts (100%) rename {devtools => chainkit}/src/models/components/webhookstatustype.ts (100%) rename {devtools => chainkit}/src/models/components/xchainassetdetails.ts (100%) rename {devtools => chainkit}/src/models/components/xchainbalances.ts (100%) rename {devtools => chainkit}/src/models/components/xchainid.ts (100%) rename {devtools => chainkit}/src/models/components/xchainlineartransaction.ts (100%) rename {devtools => chainkit}/src/models/components/xchainnonlineartransaction.ts (100%) rename {devtools => chainkit}/src/models/components/xchainsharedassetbalance.ts (100%) rename {devtools => chainkit}/src/models/components/xchaintransactiontype.ts (100%) rename {devtools => chainkit}/src/models/components/xchainvertex.ts (100%) rename {devtools => chainkit}/src/models/errors/avalancheapierror.ts (100%) rename {devtools => chainkit}/src/models/errors/avalancheerror.ts (100%) rename {devtools => chainkit}/src/models/errors/badgatewayerror.ts (100%) rename {devtools => chainkit}/src/models/errors/badrequesterror.ts (100%) rename {devtools => chainkit}/src/models/errors/forbiddenerror.ts (100%) rename {devtools => chainkit}/src/models/errors/httpclienterrors.ts (100%) rename {devtools => chainkit}/src/models/errors/index.ts (100%) rename {devtools => chainkit}/src/models/errors/internalservererror.ts (100%) rename {devtools => chainkit}/src/models/errors/notfounderror.ts (100%) rename {devtools => chainkit}/src/models/errors/responsevalidationerror.ts (100%) rename {devtools => chainkit}/src/models/errors/sdkvalidationerror.ts (100%) rename {devtools => chainkit}/src/models/errors/serviceunavailableerror.ts (100%) rename {devtools => chainkit}/src/models/errors/toomanyrequestserror.ts (100%) rename {devtools => chainkit}/src/models/errors/unauthorizederror.ts (100%) rename {devtools => chainkit}/src/models/operations/addaddressestowebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/aggregatesignatures.ts (100%) rename {devtools => chainkit}/src/models/operations/createwebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/datahealthcheck.ts (100%) rename {devtools => chainkit}/src/models/operations/deactivatewebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/generateorrotatesharedsecret.ts (100%) rename {devtools => chainkit}/src/models/operations/getaddresschains.ts (100%) rename {devtools => chainkit}/src/models/operations/getaddressesbybalanceovertime.ts (100%) rename {devtools => chainkit}/src/models/operations/getaddressesbybtcbbridged.ts (100%) rename {devtools => chainkit}/src/models/operations/getaddressesfromwebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/getaggregatedsignatures.ts (100%) rename {devtools => chainkit}/src/models/operations/getapilogs.ts (100%) rename {devtools => chainkit}/src/models/operations/getapiusagemetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/getassetdetails.ts (100%) rename {devtools => chainkit}/src/models/operations/getbalancesbyaddresses.ts (100%) rename {devtools => chainkit}/src/models/operations/getblock.ts (100%) rename {devtools => chainkit}/src/models/operations/getblockbyid.ts (100%) rename {devtools => chainkit}/src/models/operations/getblockchainbyid.ts (100%) rename {devtools => chainkit}/src/models/operations/getchain.ts (100%) rename {devtools => chainkit}/src/models/operations/getchainidsforaddresses.ts (100%) rename {devtools => chainkit}/src/models/operations/getchaininfo.ts (100%) rename {devtools => chainkit}/src/models/operations/getcontractmetadata.ts (100%) rename {devtools => chainkit}/src/models/operations/getdeploymenttransaction.ts (100%) rename {devtools => chainkit}/src/models/operations/getevmchainmetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/getevmchainrollingwindowmetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/geticmmessage.ts (100%) rename {devtools => chainkit}/src/models/operations/getlatestblocks.ts (100%) rename {devtools => chainkit}/src/models/operations/getmetricsbynodeid.ts (100%) rename {devtools => chainkit}/src/models/operations/getmetricsbysubnetid.ts (100%) rename {devtools => chainkit}/src/models/operations/getmetricsbyvalidationid.ts (100%) rename {devtools => chainkit}/src/models/operations/getnativebalance.ts (100%) rename {devtools => chainkit}/src/models/operations/getnetworkdetails.ts (100%) rename {devtools => chainkit}/src/models/operations/getnftholdersbycontractaddress.ts (100%) rename {devtools => chainkit}/src/models/operations/getoperationresult.ts (100%) rename {devtools => chainkit}/src/models/operations/getrpcusagemetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/getsharedsecret.ts (100%) rename {devtools => chainkit}/src/models/operations/getsinglevalidatordetails.ts (100%) rename {devtools => chainkit}/src/models/operations/getstakingmetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/getsubnetbyid.ts (100%) rename {devtools => chainkit}/src/models/operations/getsubnetrpcusagemetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/getteleportermessage.ts (100%) rename {devtools => chainkit}/src/models/operations/getteleportermetricsbychain.ts (100%) rename {devtools => chainkit}/src/models/operations/gettokendetails.ts (100%) rename {devtools => chainkit}/src/models/operations/gettotall1validatormetrics.ts (100%) rename {devtools => chainkit}/src/models/operations/gettransaction.ts (100%) rename {devtools => chainkit}/src/models/operations/gettransactionsforblock.ts (100%) rename {devtools => chainkit}/src/models/operations/gettxbyhash.ts (100%) rename {devtools => chainkit}/src/models/operations/getutxosbyaddresses.ts (100%) rename {devtools => chainkit}/src/models/operations/getvalidatorsbydaterange.ts (100%) rename {devtools => chainkit}/src/models/operations/getvertexbyhash.ts (100%) rename {devtools => chainkit}/src/models/operations/getvertexbyheight.ts (100%) rename {devtools => chainkit}/src/models/operations/getwebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/index.ts (100%) rename {devtools => chainkit}/src/models/operations/listactiveprimarynetworkstakingtransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listaddresschains.ts (100%) rename {devtools => chainkit}/src/models/operations/listalllatestblocks.ts (100%) rename {devtools => chainkit}/src/models/operations/listalllatesttransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listassettransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listblockchains.ts (100%) rename {devtools => chainkit}/src/models/operations/listchains.ts (100%) rename {devtools => chainkit}/src/models/operations/listcollectiblebalances.ts (100%) rename {devtools => chainkit}/src/models/operations/listcontractdeployments.ts (100%) rename {devtools => chainkit}/src/models/operations/listdelegators.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc1155balances.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc1155transactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc20balances.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc20transactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc721balances.ts (100%) rename {devtools => chainkit}/src/models/operations/listerc721transactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listhistoricalprimarynetworkrewards.ts (100%) rename {devtools => chainkit}/src/models/operations/listicmmessages.ts (100%) rename {devtools => chainkit}/src/models/operations/listicmmessagesbyaddress.ts (100%) rename {devtools => chainkit}/src/models/operations/listinternaltransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listl1validators.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatestblocksallchains.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatestprimarynetworkblocks.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatestprimarynetworktransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatesttransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatesttransactionsallchains.ts (100%) rename {devtools => chainkit}/src/models/operations/listlatestxchainvertices.ts (100%) rename {devtools => chainkit}/src/models/operations/listnativetransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listpendingprimarynetworkrewards.ts (100%) rename {devtools => chainkit}/src/models/operations/listprimarynetworkblocksbynodeid.ts (100%) rename {devtools => chainkit}/src/models/operations/listsubnets.ts (100%) rename {devtools => chainkit}/src/models/operations/listteleportermessages.ts (100%) rename {devtools => chainkit}/src/models/operations/listteleportermessagesbyaddress.ts (100%) rename {devtools => chainkit}/src/models/operations/listtokens.ts (100%) rename {devtools => chainkit}/src/models/operations/listtransactions.ts (100%) rename {devtools => chainkit}/src/models/operations/listtransfers.ts (100%) rename {devtools => chainkit}/src/models/operations/listvalidators.ts (100%) rename {devtools => chainkit}/src/models/operations/listwebhooks.ts (100%) rename {devtools => chainkit}/src/models/operations/metricshealthcheck.ts (100%) rename {devtools => chainkit}/src/models/operations/posttransactionexportjob.ts (100%) rename {devtools => chainkit}/src/models/operations/reindexnft.ts (100%) rename {devtools => chainkit}/src/models/operations/removeaddressesfromwebhook.ts (100%) rename {devtools => chainkit}/src/models/operations/supportedchains.ts (100%) rename {devtools => chainkit}/src/models/operations/updatewebhook.ts (100%) rename {devtools => chainkit}/src/sdk/address.ts (100%) rename {devtools => chainkit}/src/sdk/addressbalances.ts (100%) rename {devtools => chainkit}/src/sdk/addresschains.ts (100%) rename {devtools => chainkit}/src/sdk/addresscontracts.ts (100%) rename {devtools => chainkit}/src/sdk/addresses.ts (100%) rename {devtools => chainkit}/src/sdk/addresstransactions.ts (100%) rename {devtools => chainkit}/src/sdk/contracts.ts (100%) rename {devtools => chainkit}/src/sdk/data.ts (100%) rename {devtools => chainkit}/src/sdk/evm.ts (100%) rename {devtools => chainkit}/src/sdk/evmblocks.ts (100%) rename {devtools => chainkit}/src/sdk/evmchains.ts (100%) rename {devtools => chainkit}/src/sdk/evmtransactions.ts (100%) rename {devtools => chainkit}/src/sdk/icm.ts (100%) rename {devtools => chainkit}/src/sdk/index.ts (100%) rename {devtools => chainkit}/src/sdk/l1validators.ts (100%) rename {devtools => chainkit}/src/sdk/metrics.ts (100%) rename {devtools => chainkit}/src/sdk/metricschains.ts (100%) rename {devtools => chainkit}/src/sdk/networks.ts (100%) rename {devtools => chainkit}/src/sdk/nfts.ts (100%) rename {devtools => chainkit}/src/sdk/operations.ts (100%) rename {devtools => chainkit}/src/sdk/primarynetwork.ts (100%) rename {devtools => chainkit}/src/sdk/primarynetworkbalances.ts (100%) rename {devtools => chainkit}/src/sdk/primarynetworkblocks.ts (100%) rename {devtools => chainkit}/src/sdk/primarynetworktransactions.ts (100%) rename {devtools => chainkit}/src/sdk/rewards.ts (100%) rename {devtools => chainkit}/src/sdk/sdk.ts (100%) rename {devtools => chainkit}/src/sdk/signatureaggregator.ts (100%) rename {devtools => chainkit}/src/sdk/subnets.ts (100%) rename {devtools => chainkit}/src/sdk/teleporter.ts (100%) rename {devtools => chainkit}/src/sdk/usagemetrics.ts (100%) rename {devtools => chainkit}/src/sdk/utxos.ts (100%) rename {devtools => chainkit}/src/sdk/vertices.ts (100%) rename {devtools => chainkit}/src/sdk/webhooks.ts (100%) rename {devtools => chainkit}/src/types/async.ts (100%) rename {devtools => chainkit}/src/types/blobs.ts (100%) rename {devtools => chainkit}/src/types/constdatetime.ts (100%) rename {devtools => chainkit}/src/types/enums.ts (100%) rename {devtools => chainkit}/src/types/fp.ts (100%) rename {devtools => chainkit}/src/types/index.ts (100%) rename {devtools => chainkit}/src/types/operations.ts (100%) rename {devtools => chainkit}/src/types/rfcdate.ts (100%) rename {devtools => chainkit}/src/types/streams.ts (100%) rename {devtools => chainkit}/src/types/webhooks.ts (100%) rename {devtools => chainkit}/src/utils/index.ts (100%) rename {devtools => chainkit}/src/utils/validateSignature.ts (100%) rename {devtools => chainkit}/tsconfig.json (100%) delete mode 100644 devtools/RELEASES.md delete mode 100644 devtools/speakeasyusagegen/.speakeasy/logs/naming.log diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c523272e..9c8562f8 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -16,7 +16,8 @@ assignees: '' - [ ] `@avalanche-sdk/client` (Core RPC functionality) -- [ ] `@avalanche-sdk/devtools` (Development tools and utilities) +- [ ] `@avalanche-sdk/data` (Data analytics and historical data) +- [ ] `@avalanche-sdk/chainkit` (All Data, Metrics and Webhooks API support) - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) - [ ] Documentation @@ -81,7 +82,7 @@ assignees: '' { "@avalanche-sdk/client": "0.0.4-alpha.10", - "@avalanche-sdk/devtools": "0.2.1", + "@avalanche-sdk/chainkit": "0.2.2", "@avalanche-sdk/interchain": "0.0.1-alpha.1", "@avalanche-sdk/sdk": "1.3.0", } diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 58127d0c..3bb2a8d6 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -16,8 +16,7 @@ assignees: '' - [ ] `@avalanche-sdk/client` (Core RPC functionality) -- [ ] `@avalanche-sdk/data` (Data analytics and historical data) -- [ ] `@avalanche-sdk/devtools` (Development tools and utilities) +- [ ] `@avalanche-sdk/chainkit` (All Data, Metrics and Webhooks API support) - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) - [ ] `@avalanche-sdk/metrics` (Network metrics and monitoring) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) diff --git a/.github/workflows/devtools_sdk_generation.yaml b/.github/workflows/chainkit_sdk_generation.yaml similarity index 90% rename from .github/workflows/devtools_sdk_generation.yaml rename to .github/workflows/chainkit_sdk_generation.yaml index b7998272..42a6201f 100644 --- a/.github/workflows/devtools_sdk_generation.yaml +++ b/.github/workflows/chainkit_sdk_generation.yaml @@ -1,4 +1,4 @@ -name: Generate Devtools SDK +name: Generate ChainKit SDK permissions: checks: write contents: write @@ -18,13 +18,13 @@ permissions: schedule: - cron: 30 18 * * * jobs: - generate_devtools_sdk: + generate_chainkit_sdk: uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: force: ${{ github.event.inputs.force }} mode: pr set_version: ${{ github.event.inputs.set_version }} - target: devtools-sdk + target: chainkit-sdk secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} npm_token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/devtools_sdk_publish.yaml b/.github/workflows/chainkit_sdk_publish.yaml similarity index 83% rename from .github/workflows/devtools_sdk_publish.yaml rename to .github/workflows/chainkit_sdk_publish.yaml index b8e351a8..b18bdfdc 100644 --- a/.github/workflows/devtools_sdk_publish.yaml +++ b/.github/workflows/chainkit_sdk_publish.yaml @@ -1,4 +1,4 @@ -name: Publish Devtools SDK +name: Publish ChainKit SDK permissions: checks: write contents: write @@ -9,9 +9,9 @@ permissions: branches: - main paths: - - devtools/RELEASES.md + - chainkit/RELEASES.md jobs: - publish_devtools_sdk: + publish_chainkit_sdk: uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/sdk_generate_docs.yaml b/.github/workflows/sdk_generate_docs.yaml index e2f3120a..626af9bf 100644 --- a/.github/workflows/sdk_generate_docs.yaml +++ b/.github/workflows/sdk_generate_docs.yaml @@ -5,7 +5,7 @@ name: Generate SDK Docs branches: - main paths: - - devtools/RELEASES.md + - chainkit/RELEASES.md workflow_dispatch: # Allows manual triggering from GitHub Actions permissions: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 71e6798c..619d731f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,159 +1,43 @@ -speakeasyVersion: 1.598.2 +speakeasyVersion: 1.600.2 sources: - data-source: - sourceNamespace: avalanche-sdk-data-typescript - sourceRevisionDigest: sha256:c792081798068b290365f34d8260c725a3fc8b21fbd29bee4d138b26b039924e - sourceBlobDigest: sha256:2148c2ffe68732a9227a87fa96eff44710c3ef27501c2036e84f8809e2ced5a5 + chainkit-source: + sourceNamespace: avalanche-sdk-chainkit-typescript + sourceRevisionDigest: sha256:9c3c1c9bededfb64c85c874865db9b8bf4621b0aa65f9a5bf4abababe387ec24 + sourceBlobDigest: sha256:214dff750535e03d96c20a978cfa47a413d04c88d47f996ae148473b45c669df tags: - latest - - speakeasy-sdk-regen-1754505903 - - 1.0.0 - devtools-source: - sourceNamespace: avalanche-sdk-devtools-typescript - sourceRevisionDigest: sha256:b4f1a31e1e21059d077232a7cb4f8ef1f77b5ff88fe7dde795d2e576f6cb68ed - sourceBlobDigest: sha256:0ecd1a04976d32bcfa1940cbf80a15793bf778f6134ab718a4ecc70c15f840d0 - tags: - - latest - - speakeasy-sdk-regen-1754419361 - - 1.0.0 - metrics-source: - sourceNamespace: avalanche-sdk-metrics-typescript - sourceRevisionDigest: sha256:faad3b1fcc9d848d72808beb7bbc53e4fccc7e82b17701fdc9c93874aed55264 - sourceBlobDigest: sha256:087b853f5d79fc9f4ea4457e76054eb44d72a27de770ef1cfe76b192c0a532a2 - tags: - - latest - - speakeasy-sdk-regen-1754505752 - - 1.0.0 - webhooks-source: - sourceNamespace: avalanche-sdk-webhooks-typescript - sourceRevisionDigest: sha256:a243a6c417686cc0d74eff745b675a100037d32af228bdfe4f3f9f99a9a5a1eb - sourceBlobDigest: sha256:ffaa2f386cd834d338af7b35e9098351f5efbaa356ff27791447b566316cfe5e - tags: - - latest - - speakeasy-sdk-regen-1754419634 - 1.0.0 targets: - avalanche: - source: metrics-source - sourceNamespace: avalanche-sdk-metrics-typescript - sourceRevisionDigest: sha256:a03cf954b8a9ab411af917229e651e87630a12703271f87b13a84eb915444486 - sourceBlobDigest: sha256:fb4668172f91d4f38dc51bc8bc7c0bee11c924c63c8aba6d22d9b4d66302acb1 - codeSamplesNamespace: avalanche-sdk-metrics-typescript-code-samples - codeSamplesRevisionDigest: sha256:14d9f387e3c309a88f573d5775768b039b089c94117ac33ac188d0b9066898cd - data-sdk: - source: data-source - sourceNamespace: avalanche-sdk-data-typescript - sourceRevisionDigest: sha256:c792081798068b290365f34d8260c725a3fc8b21fbd29bee4d138b26b039924e - sourceBlobDigest: sha256:2148c2ffe68732a9227a87fa96eff44710c3ef27501c2036e84f8809e2ced5a5 - codeSamplesNamespace: avalanche-sdk-data-typescript-code-samples - codeSamplesRevisionDigest: sha256:8f593f99cb1f1ce88d0b5653c1e21637136219d96e87a5f4bd776bc7a253e76e - devtools-sdk: - source: devtools-source - sourceNamespace: avalanche-sdk-devtools-typescript - sourceRevisionDigest: sha256:b4f1a31e1e21059d077232a7cb4f8ef1f77b5ff88fe7dde795d2e576f6cb68ed - sourceBlobDigest: sha256:0ecd1a04976d32bcfa1940cbf80a15793bf778f6134ab718a4ecc70c15f840d0 - codeSamplesNamespace: avalanche-sdk-devtools-typescript-code-samples - codeSamplesRevisionDigest: sha256:4c52107d66a24d94cfea729d754cd18a2556f2137d72b93400bf7e620b2b8ba5 - metrics-sdk: - source: metrics-source - sourceNamespace: avalanche-sdk-metrics-typescript - sourceRevisionDigest: sha256:faad3b1fcc9d848d72808beb7bbc53e4fccc7e82b17701fdc9c93874aed55264 - sourceBlobDigest: sha256:087b853f5d79fc9f4ea4457e76054eb44d72a27de770ef1cfe76b192c0a532a2 - codeSamplesNamespace: avalanche-sdk-metrics-typescript-code-samples - codeSamplesRevisionDigest: sha256:39dc73d86f74b525e745c3b4757d873071b634a270708b93bb81a4d70250ff07 - webhooks-sdk: - source: webhooks-source - sourceNamespace: avalanche-sdk-webhooks-typescript - sourceRevisionDigest: sha256:a243a6c417686cc0d74eff745b675a100037d32af228bdfe4f3f9f99a9a5a1eb - sourceBlobDigest: sha256:ffaa2f386cd834d338af7b35e9098351f5efbaa356ff27791447b566316cfe5e - codeSamplesNamespace: avalanche-sdk-webhooks-typescript-code-samples - codeSamplesRevisionDigest: sha256:ff2a6308271cbaa3c2c43be62bbea2709fb7ea0cb6f47cf9896701a560d2d0cd + chainkit-sdk: + source: chainkit-source + sourceNamespace: avalanche-sdk-chainkit-typescript + sourceRevisionDigest: sha256:9c3c1c9bededfb64c85c874865db9b8bf4621b0aa65f9a5bf4abababe387ec24 + sourceBlobDigest: sha256:214dff750535e03d96c20a978cfa47a413d04c88d47f996ae148473b45c669df + codeSamplesNamespace: avalanche-sdk-chainkit-typescript-code-samples + codeSamplesRevisionDigest: sha256:a51e4cdad495293f61143fc8c375227f127fe8e92affcfd273ac63428a4e78a7 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: - data-source: - inputs: - - location: https://glacier-api.avax.network/api-json - overlays: - - location: data/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-data-typescript - devtools-source: + chainkit-source: inputs: - location: https://popsicle-api.avax.network/api-json - location: https://glacier-api.avax.network/api-json overlays: - - location: devtools/overlays/overlay.yaml + - location: chainkit/overlays/overlay.yaml registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-devtools-typescript - metrics-source: - inputs: - - location: https://popsicle-api.avax.network/api-json - overlays: - - location: metrics/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript - webhooks-source: - inputs: - - location: https://glacier-api.avax.network/api-json - overlays: - - location: webhooks/overlays/overlay.yaml - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript + location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-chainkit-typescript targets: - data-sdk: - target: typescript - source: data-source - output: data - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-data-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false - devtools-sdk: - target: typescript - source: devtools-source - output: devtools - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-devtools-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false - metrics-sdk: - target: typescript - source: metrics-source - output: metrics - publish: - npm: - token: $npm_token - codeSamples: - registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript-code-samples - langOverride: javascript - labelOverride: - fixedValue: JavaScript - blocking: false - webhooks-sdk: + chainkit-sdk: target: typescript - source: webhooks-source - output: webhooks + source: chainkit-source + output: chainkit publish: npm: token: $npm_token codeSamples: registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript-code-samples + location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-chainkit-typescript-code-samples langOverride: javascript labelOverride: fixedValue: JavaScript diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 21ad2e7d..b37f8aee 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -1,26 +1,26 @@ workflowVersion: 1.0.0 speakeasyVersion: latest sources: - devtools-source: + chainkit-source: inputs: - location: https://popsicle-api.avax.network/api-json - location: https://glacier-api.avax.network/api-json overlays: - - location: devtools/overlays/overlay.yaml + - location: chainkit/overlays/overlay.yaml registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-devtools-typescript + location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-chainkit-typescript targets: - devtools-sdk: + chainkit-sdk: target: typescript - source: devtools-source - output: devtools + source: chainkit-source + output: chainkit publish: npm: token: $npm_token codeSamples: registry: - location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-devtools-typescript-code-samples + location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-chainkit-typescript-code-samples langOverride: javascript labelOverride: fixedValue: JavaScript - blocking: false \ No newline at end of file + blocking: false diff --git a/.vscode/settings.json b/.vscode/settings.json index 318e4bf1..a55c5a06 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,9 +8,11 @@ "Bech", "cChain", "ccip", + "chainkit", "delegators", "deployless", "Indicies", + "Interchain", "Keccak", "labelhash", "locktime", diff --git a/CHANGELOG.md b/CHANGELOG.md index 685f2a1b..bb66255c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,10 @@ Initial release with multiple packages in monorepo structure: -- Add `@avalanche-sdk/sdk` package - Main SDK combining client and devtools functionality +- Add `@avalanche-sdk/sdk` package - Main SDK combining client and chainkit functionality - Add `@avalanche-sdk/client` package - Core RPC client with C-Chain, P-Chain, and X-Chain support - Add `@avalanche-sdk/interchain` package - ICM/ICTT messaging and Teleporter integration -- Add `@avalanche-sdk/devtools` package - Development tools and utilities +- Add `@avalanche-sdk/chainkit` package - Add TypeScript support across all packages - Add comprehensive documentation - Add Code of Conduct diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c001864a..5bcf9635 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,22 +53,23 @@ We welcome pull requests! Here's how to contribute code: This is a monorepo containing multiple packages. To get started: 1. Clone the repository: + ```bash git clone https://github.com/ava-labs/avalanche-sdk-typescript.git cd avalanche-sdk-typescript ``` - 2. Navigate to the package you want to work on: + ```bash - cd client # or data, devtools, sdk, etc. + cd client # or data, chainkit, sdk, etc. ``` - 3. Install dependencies: + ```bash npm install ``` - 4. Build the package: + ```bash npm run build:all ``` @@ -76,12 +77,9 @@ This is a monorepo containing multiple packages. To get started: ### Package Structure - **client/** - Core Avalanche client SDK -- **data/** - Data API SDK (contains generated code) -- **devtools/** - Development tools (contains generated code) -- **sdk/** - Main SDK package combining client and devtools +- **chainkit/** - Development tools (contains generated code) +- **sdk/** - Main SDK package combining client and chainkit - **interchain/** - Interchain messaging SDK -- **metrics/** - Metrics SDK (contains generated code) -- **webhooks/** - Webhooks SDK (contains generated code) **Note:** Some packages contain generated code. For these packages, we do not accept direct changes to the generated files. Instead, please report issues and we'll address them in the upstream source. @@ -107,6 +105,7 @@ footer ``` Types: + - **feat**: New feature - **fix**: Bug fix - **docs**: Documentation changes @@ -116,6 +115,7 @@ Types: - **chore**: Maintenance tasks Example: + ``` feat(client): add support for subnet validation diff --git a/README.md b/README.md index 26be44c9..4f00931e 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Avalanche SDK TypeScript provides a complete set of tools and libraries for deve | SDK | Description | |-----|-------------| | `@avalanche-sdk/client` | Direct blockchain interaction - transactions, wallets, RPC calls | -| `@avalanche-sdk/devtools` | Complete suite: Data, Metrics and Webhooks API | +| `@avalanche-sdk/chainkit` | Complete suite: Data, Metrics and Webhooks API | | `@avalanche-sdk/interchain` | Send messages between Avalanche L1s using ICM/Teleporter | -| `@avalanche-sdk/sdk` | Complete suite: Devtools + Client | +| `@avalanche-sdk/sdk` | Complete suite: ChainKit + Client | ## 📊 Package Status @@ -37,7 +37,7 @@ Avalanche SDK TypeScript provides a complete set of tools and libraries for deve | Package | Version | Status | npm | |---------|---------|--------|-----| | `@avalanche-sdk/sdk` | 1.3.0 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/sdk)](https://www.npmjs.com/package/@avalanche-sdk/sdk) | -| `@avalanche-sdk/devtools` | 0.2.1 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/devtools)](https://www.npmjs.com/package/@avalanche-sdk/devtools) | +| `@avalanche-sdk/chainkit` | 0.2.1 | **Stable** | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/chainkit)](https://www.npmjs.com/package/@avalanche-sdk/chainkit) | | `@avalanche-sdk/client` | 0.0.4-alpha.10 | Alpha | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/client)](https://www.npmjs.com/package/@avalanche-sdk/client) | | `@avalanche-sdk/interchain` | 0.0.1-alpha.1 | Alpha | [![npm](https://img.shields.io/npm/v/@avalanche-sdk/interchain)](https://www.npmjs.com/package/@avalanche-sdk/interchain) | @@ -59,7 +59,7 @@ The main Avalanche client SDK for interacting with Avalanche nodes and building - Add validators and delegators - Create subnets and blockchains, convert subnets to L1s -### [DevTools SDK](./devtools/) +### [ChainKit SDK](./chainkit/) Combined SDK with full typed coverage of Avalanche Data (Glacier) and Metrics APIs. **Features:** @@ -87,7 +87,6 @@ SDK providing a unified experience of all the SDKs **Features:** - **Complete API Coverage** - All P-Chain, X-Chain, and C-Chain APIs from Client SDK - **Data Analytics** - Historical transaction data and blockchain analytics from Data SDK -- **Development Tools** - Testing frameworks, debugging tools, and utilities from DevTools SDK - **Cross-Chain Operations** - Interchain communication and bridge functionality from Interchain SDK - **Network Metrics** - Performance monitoring and validator statistics from Metrics SDK - **Real-Time Events** - Webhook management and event streaming from Webhooks SDK @@ -122,7 +121,7 @@ pnpm add @avalanche-sdk/sdk # Install only what you need npm install @avalanche-sdk/client # Core RPC functionality npm install @avalanche-sdk/interchain # Cross-chain messaging -npm install @avalanche-sdk/devtools # Development tools +npm install @avalanche-sdk/chainkit # Development tools ``` ### Quick Examples @@ -217,24 +216,18 @@ await icmClient.sendMessage({ Each SDK includes comprehensive documentation: - **[Client SDK Documentation](./client/README.md)** - Complete API reference and usage examples -- **[Data SDK Documentation](./data/README.md)** - Data access and analytics guide -- **[DevTools SDK Documentation](./devtools/README.md)** - Development utilities guide +- **[ChainKit SDK Documentation](./chainkit/README.md)** - Development utilities guide - **[Interchain SDK Documentation](./interchain/README.md)** - Cross-chain development guide -- **[Metrics SDK Documentation](./metrics/README.md)** - Metrics and monitoring guide - **[SDK Documentation](./sdk/README.md)** - Unified SDK -- **[Webhooks SDK Documentation](./webhooks/README.md)** - Real-time events guide ## Examples Each SDK includes practical examples demonstrating common use cases: - **Client SDK Examples** - [View Examples](./client/examples/) -- **Data SDK Examples** - [View Examples](./data/examples/) -- **DevTools SDK Examples** - [View Examples](./devtools/examples/) +- **ChainKit SDK Examples** - [View Examples](./chainkit/examples/) - **Interchain SDK Examples** - [View Examples](./interchain/examples/) -- **Metrics SDK Examples** - [View Examples](./metrics/examples/) - **Core SDK Examples** - [View Examples](./sdk/examples/) -- **Webhooks SDK Examples** - [View Examples](./webhooks/examples/) ## Architecture @@ -243,12 +236,9 @@ The Avalanche SDK TypeScript suite is designed with modularity in mind: ``` avalanche-sdk-typescript/ ├── client/ # Main client SDK -├── data/ # Data access SDK -├── devtools/ # Development tools +├── chainkit/ # Development tools ├── interchain/ # Cross-chain SDK -├── metrics/ # Metrics and monitoring -├── sdk/ # Unified SDK -└── webhooks/ # Real-time events +└── sdk/ # Unified SDK ``` Each SDK is: diff --git a/devtools/.devcontainer/README.md b/chainkit/.devcontainer/README.md similarity index 100% rename from devtools/.devcontainer/README.md rename to chainkit/.devcontainer/README.md diff --git a/devtools/.devcontainer/devcontainer.json b/chainkit/.devcontainer/devcontainer.json similarity index 100% rename from devtools/.devcontainer/devcontainer.json rename to chainkit/.devcontainer/devcontainer.json diff --git a/devtools/.devcontainer/setup.sh b/chainkit/.devcontainer/setup.sh similarity index 95% rename from devtools/.devcontainer/setup.sh rename to chainkit/.devcontainer/setup.sh index 3772639b..020480c4 100644 --- a/devtools/.devcontainer/setup.sh +++ b/chainkit/.devcontainer/setup.sh @@ -10,7 +10,7 @@ mkdir samples npm install npm install -g ts-node npm link -npm link @avalanche-sdk/devtools +npm link @avalanche-sdk/chainkit TS_CONFIG_CONTENT=$(cat < -

@avalanche-sdk/devtools

+

@avalanche-sdk/chainkit

- The Avalanche Devtools SDK is a powerful and flexible toolset designed to simplify the integration with Avalanche's suite of blockchain services. + The Avalanche ChainKit SDK is a powerful and flexible toolset designed to simplify the integration with Avalanche's suite of blockchain services.

Currently, this SDK is focused on providing robust support for Data, Metrics and Webhooks APIs. @@ -12,27 +12,32 @@ + ## Summary Data, Metrics, and Webhooks API: The Avalanche API suite offers powerful tools for real-time and historical blockchain data. The Webhooks API enables instant monitoring of on-chain events, including smart contract activity, NFT transfers, and wallet transactions, with customizable filters and secure notifications. The Metrics API (Beta) provides analytics on blockchain activity, while the Data API (Beta) delivers multi-chain data for Avalanche and Ethereum, including transaction history, token balances, and metadata. These APIs empower developers to build dynamic web3 applications with real-time insights and seamless integration. + + ## Table of Contents + - * [SDK Installation](#sdk-installation) - * [Requirements](#requirements) - * [SDK Example Usage](#sdk-example-usage) - * [Authentication](#authentication) - * [Available Resources and Operations](#available-resources-and-operations) - * [Standalone functions](#standalone-functions) - * [Global Parameters](#global-parameters) - * [Pagination](#pagination) - * [Retries](#retries) - * [Error Handling](#error-handling) - * [Server Selection](#server-selection) - * [Custom HTTP Client](#custom-http-client) - * [Debugging](#debugging) + +* [SDK Installation](#sdk-installation) +* [Requirements](#requirements) +* [SDK Example Usage](#sdk-example-usage) +* [Authentication](#authentication) +* [Available Resources and Operations](#available-resources-and-operations) +* [Standalone functions](#standalone-functions) +* [Global Parameters](#global-parameters) +* [Pagination](#pagination) +* [Retries](#retries) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Custom HTTP Client](#custom-http-client) +* [Debugging](#debugging) * [Development](#development) * [Maturity](#maturity) * [Contributions](#contributions) @@ -40,6 +45,7 @@ Data, Metrics, and Webhooks API: The Avalanche API suite offers powerful tools f + ## SDK Installation The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers. @@ -47,25 +53,25 @@ The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https ### NPM ```bash -npm add @avalanche-sdk/devtools +npm add @avalanche-sdk/chainkit ``` ### PNPM ```bash -pnpm add @avalanche-sdk/devtools +pnpm add @avalanche-sdk/chainkit ``` ### Bun ```bash -bun add @avalanche-sdk/devtools +bun add @avalanche-sdk/chainkit ``` ### Yarn ```bash -yarn add @avalanche-sdk/devtools zod +yarn add @avalanche-sdk/chainkit zod # Note that Yarn does not install peer dependencies automatically. You will need # to install zod as shown above. @@ -74,7 +80,6 @@ yarn add @avalanche-sdk/devtools zod > [!NOTE] > This package is published with CommonJS and ES Modules (ESM) support. - ### Model Context Protocol (MCP) Server This SDK is also an installable MCP server where the various SDK methods are @@ -93,7 +98,7 @@ Add the following server definition to your `claude_desktop_config.json` file: "Avalanche": { "command": "npx", "args": [ - "-y", "--package", "@avalanche-sdk/devtools", + "-y", "--package", "@avalanche-sdk/chainkit", "--", "mcp", "start", "--api-key", "...", @@ -118,7 +123,7 @@ Create a `.cursor/mcp.json` file in your project root with the following content "Avalanche": { "command": "npx", "args": [ - "-y", "--package", "@avalanche-sdk/devtools", + "-y", "--package", "@avalanche-sdk/chainkit", "--", "mcp", "start", "--api-key", "...", @@ -142,7 +147,6 @@ chmod +x mcp-server If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`. - ```json { "mcpServers": { @@ -159,23 +163,27 @@ If the repo is a private repo you must add your Github PAT to download a release For a full list of server arguments, run: ```sh -npx -y --package @avalanche-sdk/devtools -- mcp start --help +npx -y --package @avalanche-sdk/chainkit -- mcp start --help ``` + + ## Requirements For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md). + + ## SDK Example Usage ### Example ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -200,22 +208,25 @@ async function run() { run(); ``` + + ## Authentication ### Per-Client Security Schemes This SDK supports the following security scheme globally: -| Name | Type | Scheme | -| -------- | ------ | ------- | +| Name | Type | Scheme | +| ---------- | ------ | ------- | | `apiKey` | apiKey | API key | To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example: + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ apiKey: "", @@ -230,15 +241,16 @@ async function run() { run(); ``` + + ## Available Resources and Operations

Available methods - ### [data](docs/sdks/data/README.md) * [healthCheck](docs/sdks/data/README.md#healthcheck) - Get the health of the service @@ -281,13 +293,15 @@ run(); * [get](docs/sdks/evmchains/README.md#get) - Get chain information * [~~getAddressChains~~](docs/sdks/evmchains/README.md#getaddresschains) - **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . ⚠️ **Deprecated** + * [~~listAllLatestTransactions~~](docs/sdks/evmchains/README.md#listalllatesttransactions) - **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . ⚠️ **Deprecated** + * [~~listAllLatestBlocks~~](docs/sdks/evmchains/README.md#listalllatestblocks) - **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . ⚠️ **Deprecated** #### [data.evm.contracts](docs/sdks/contracts/README.md) @@ -373,13 +387,15 @@ run(); * [~~getTeleporterMessage~~](docs/sdks/teleporter/README.md#getteleportermessage) - **[Deprecated]** Gets a teleporter message by message ID. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . ⚠️ **Deprecated** + * [~~listTeleporterMessages~~](docs/sdks/teleporter/README.md#listteleportermessages) - **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . ⚠️ **Deprecated** + * [~~listTeleporterMessagesByAddress~~](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress) - **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . ⚠️ **Deprecated** #### [data.usageMetrics](docs/sdks/usagemetrics/README.md) @@ -388,7 +404,7 @@ run(); * [getSubnetRpcUsage](docs/sdks/usagemetrics/README.md#getsubnetrpcusage) - Get usage metrics for the Subnet RPC * [~~getRpcUsageMetrics~~](docs/sdks/usagemetrics/README.md#getrpcusagemetrics) - **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. ⚠️ **Deprecated** ### [metrics](docs/sdks/metrics/README.md) @@ -440,6 +456,7 @@ run(); + ## Standalone functions All the methods listed above are available as standalone functions. These @@ -545,37 +562,43 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`webhooksUpdate`](docs/sdks/webhooks/README.md#update) - Update a webhook - ~~[`dataEvmChainsGetAddressChains`](docs/sdks/evmchains/README.md#getaddresschains)~~ - **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes. -⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataEvmChainsListAllLatestBlocks`](docs/sdks/evmchains/README.md#listalllatestblocks)~~ - **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network. -⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataEvmChainsListAllLatestTransactions`](docs/sdks/evmchains/README.md#listalllatesttransactions)~~ - **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status. -⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataTeleporterGetTeleporterMessage`](docs/sdks/teleporter/README.md#getteleportermessage)~~ - **[Deprecated]** Gets a teleporter message by message ID. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataTeleporterListTeleporterMessages`](docs/sdks/teleporter/README.md#listteleportermessages)~~ - **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataTeleporterListTeleporterMessagesByAddress`](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress)~~ - **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order. -⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** . ⚠️ **Deprecated** + - ~~[`dataUsageMetricsGetRpcUsageMetrics`](docs/sdks/usagemetrics/README.md#getrpcusagemetrics)~~ - **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity. -⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. :warning: **Deprecated** +⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**. ⚠️ **Deprecated**
+ ## Global Parameters Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. For example, you can set `chainId` to `"43114"` at SDK initialization and then you do not have to pass the same value on calls to operations like `list`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - ### Available Globals The following global parameters are available. @@ -588,7 +611,7 @@ The following global parameters are available. ### Example ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -608,22 +631,22 @@ async function run() { run(); ``` + + ## Pagination Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned response object will also be an -async iterable that can be consumed using the [`for await...of`][for-await-of] +async iterable that can be consumed using the syntax. -[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of - Here's an example of one such pagination call: ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -640,16 +663,19 @@ async function run() { run(); ``` + + ## Retries Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK. To change the default retry strategy for a single API call, simply provide a retryConfig object to the call: + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -675,8 +701,9 @@ run(); ``` If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization: + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ retryConfig: { @@ -700,26 +727,29 @@ async function run() { run(); ``` + + ## Error Handling [`AvalancheError`](./src/models/errors/avalancheerror.ts) is the base class for all HTTP error responses. It has the following properties: -| Property | Type | Description | -| ------------------- | ---------- | --------------------------------------------------------------------------------------- | -| `error.message` | `string` | Error message | -| `error.statusCode` | `number` | HTTP response status code eg `404` | -| `error.headers` | `Headers` | HTTP response headers | -| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | -| `error.rawResponse` | `Response` | Raw HTTP response | -| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). | +| Property | Type | Description | +| --------------------- | ------------ | ----------------------------------------------------------------------------------- | +| `error.message` | `string` | Error message | +| `error.statusCode` | `number` | HTTP response status code eg `404` | +| `error.headers` | `Headers` | HTTP response headers | +| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. | +| `error.rawResponse` | `Response` | Raw HTTP response | +| `error.data$` | | Optional. Some errors may contain structured data.[See Error Classes](#error-classes). | ### Example + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; -import * as errors from "@avalanche-sdk/devtools/models/errors"; +import { Avalanche } from "@avalanche-sdk/chainkit"; +import * as errors from "@avalanche-sdk/chainkit/models/errors"; const avalanche = new Avalanche({ chainId: "43114", @@ -754,7 +784,9 @@ run(); ``` ### Error Classes + **Primary errors:** + * [`AvalancheError`](./src/models/errors/avalancheerror.ts): The base class for HTTP error responses. * [`BadRequestError`](./src/models/errors/badrequesterror.ts): Bad requests generally mean the client has passed invalid or malformed parameters. Error messages in the response could help in evaluating the error. Status code `400`. * [`UnauthorizedError`](./src/models/errors/unauthorizederror.ts): When a client attempts to access resources that require authorization credentials but the client lacks proper authentication in the request, the server responds with 401. Status code `401`. @@ -770,27 +802,30 @@ run();
**Network errors:** + * [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server. * [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal. * [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client. * [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid. * [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error. - **Inherit from [`AvalancheError`](./src/models/errors/avalancheerror.ts)**: + * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. + ## Server Selection ### Override Server URL Per-Client The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example: + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ serverURL: "https://glacier-api.avax.network", @@ -809,8 +844,9 @@ run(); ### Override Server URL Per-Operation The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example: + ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -825,9 +861,11 @@ async function run() { run(); ``` + + ## Custom HTTP Client The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native @@ -845,8 +883,8 @@ custom header and a timeout to requests and how to use the `"requestError"` hook to log errors: ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; -import { HTTPClient } from "@avalanche-sdk/devtools/lib/http"; +import { Avalanche } from "@avalanche-sdk/chainkit"; +import { HTTPClient } from "@avalanche-sdk/chainkit/lib/http"; const httpClient = new HTTPClient({ // fetcher takes a function that has the same signature as native `fetch`. @@ -874,9 +912,11 @@ httpClient.addHook("requestError", (error, request) => { const sdk = new Avalanche({ httpClient }); ``` + + ## Debugging You can setup your SDK to emit debug logs for SDK requests and responses. @@ -887,10 +927,11 @@ You can pass a logger that matches `console`'s interface as an SDK option. > Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const sdk = new Avalanche({ debugLogger: console }); ``` + @@ -905,5 +946,7 @@ looking for the latest version. ## Contributions -While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. -We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. \ No newline at end of file +While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. +We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. + +[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of diff --git a/chainkit/RELEASES.md b/chainkit/RELEASES.md new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/chainkit/RELEASES.md @@ -0,0 +1 @@ + diff --git a/devtools/RUNTIMES.md b/chainkit/RUNTIMES.md similarity index 100% rename from devtools/RUNTIMES.md rename to chainkit/RUNTIMES.md diff --git a/devtools/USAGE.md b/chainkit/USAGE.md similarity index 91% rename from devtools/USAGE.md rename to chainkit/USAGE.md index cca895d5..16b57f8e 100644 --- a/devtools/USAGE.md +++ b/chainkit/USAGE.md @@ -1,6 +1,6 @@ ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); diff --git a/devtools/docs/lib/utils/retryconfig.md b/chainkit/docs/lib/utils/retryconfig.md similarity index 100% rename from devtools/docs/lib/utils/retryconfig.md rename to chainkit/docs/lib/utils/retryconfig.md diff --git a/devtools/docs/models/components/accesslistdata.md b/chainkit/docs/models/components/accesslistdata.md similarity index 94% rename from devtools/docs/models/components/accesslistdata.md rename to chainkit/docs/models/components/accesslistdata.md index fd45cccc..28919dd4 100644 --- a/devtools/docs/models/components/accesslistdata.md +++ b/chainkit/docs/models/components/accesslistdata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AccessListData } from "@avalanche-sdk/devtools/models/components"; +import { AccessListData } from "@avalanche-sdk/chainkit/models/components"; let value: AccessListData = { accessAddresses: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", diff --git a/devtools/docs/models/components/activedelegatordetails.md b/chainkit/docs/models/components/activedelegatordetails.md similarity index 98% rename from devtools/docs/models/components/activedelegatordetails.md rename to chainkit/docs/models/components/activedelegatordetails.md index 546846be..1e5c27e5 100644 --- a/devtools/docs/models/components/activedelegatordetails.md +++ b/chainkit/docs/models/components/activedelegatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ActiveDelegatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { ActiveDelegatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ActiveDelegatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/activedelegatordetailsdelegationstatus.md b/chainkit/docs/models/components/activedelegatordetailsdelegationstatus.md similarity index 87% rename from devtools/docs/models/components/activedelegatordetailsdelegationstatus.md rename to chainkit/docs/models/components/activedelegatordetailsdelegationstatus.md index a86e26e9..54795d70 100644 --- a/devtools/docs/models/components/activedelegatordetailsdelegationstatus.md +++ b/chainkit/docs/models/components/activedelegatordetailsdelegationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ActiveDelegatorDetailsDelegationStatus } from "@avalanche-sdk/devtools/models/components"; +import { ActiveDelegatorDetailsDelegationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: ActiveDelegatorDetailsDelegationStatus = "active"; ``` diff --git a/devtools/docs/models/components/activevalidatordetails.md b/chainkit/docs/models/components/activevalidatordetails.md similarity index 99% rename from devtools/docs/models/components/activevalidatordetails.md rename to chainkit/docs/models/components/activevalidatordetails.md index 34a9d4c8..4d7952fd 100644 --- a/devtools/docs/models/components/activevalidatordetails.md +++ b/chainkit/docs/models/components/activevalidatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ActiveValidatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { ActiveValidatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ActiveValidatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/activevalidatordetailsvalidationstatus.md b/chainkit/docs/models/components/activevalidatordetailsvalidationstatus.md similarity index 87% rename from devtools/docs/models/components/activevalidatordetailsvalidationstatus.md rename to chainkit/docs/models/components/activevalidatordetailsvalidationstatus.md index 54939da6..b5e7931f 100644 --- a/devtools/docs/models/components/activevalidatordetailsvalidationstatus.md +++ b/chainkit/docs/models/components/activevalidatordetailsvalidationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ActiveValidatorDetailsValidationStatus } from "@avalanche-sdk/devtools/models/components"; +import { ActiveValidatorDetailsValidationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: ActiveValidatorDetailsValidationStatus = "active"; ``` diff --git a/devtools/docs/models/components/addressactivityeventtype.md b/chainkit/docs/models/components/addressactivityeventtype.md similarity index 66% rename from devtools/docs/models/components/addressactivityeventtype.md rename to chainkit/docs/models/components/addressactivityeventtype.md index 3509da06..8e770760 100644 --- a/devtools/docs/models/components/addressactivityeventtype.md +++ b/chainkit/docs/models/components/addressactivityeventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddressActivityEventType } from "@avalanche-sdk/devtools/models/components"; +import { AddressActivityEventType } from "@avalanche-sdk/chainkit/models/components"; let value: AddressActivityEventType = "address_activity"; ``` diff --git a/devtools/docs/models/components/addressactivitymetadata.md b/chainkit/docs/models/components/addressactivitymetadata.md similarity index 98% rename from devtools/docs/models/components/addressactivitymetadata.md rename to chainkit/docs/models/components/addressactivitymetadata.md index cb09e43b..043e1faf 100644 --- a/devtools/docs/models/components/addressactivitymetadata.md +++ b/chainkit/docs/models/components/addressactivitymetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddressActivityMetadata } from "@avalanche-sdk/devtools/models/components"; +import { AddressActivityMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: AddressActivityMetadata = { eventSignatures: [ diff --git a/devtools/docs/models/components/addressdetails.md b/chainkit/docs/models/components/addressdetails.md similarity index 96% rename from devtools/docs/models/components/addressdetails.md rename to chainkit/docs/models/components/addressdetails.md index 77297c99..5f86e3a8 100644 --- a/devtools/docs/models/components/addressdetails.md +++ b/chainkit/docs/models/components/addressdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddressDetails } from "@avalanche-sdk/devtools/models/components"; +import { AddressDetails } from "@avalanche-sdk/chainkit/models/components"; let value: AddressDetails = { address: "0x1234567890abcdef1234567890abcdef123456789", diff --git a/devtools/docs/models/components/addresseschangerequest.md b/chainkit/docs/models/components/addresseschangerequest.md similarity index 94% rename from devtools/docs/models/components/addresseschangerequest.md rename to chainkit/docs/models/components/addresseschangerequest.md index efc34700..eb0e334e 100644 --- a/devtools/docs/models/components/addresseschangerequest.md +++ b/chainkit/docs/models/components/addresseschangerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddressesChangeRequest } from "@avalanche-sdk/devtools/models/components"; +import { AddressesChangeRequest } from "@avalanche-sdk/chainkit/models/components"; let value: AddressesChangeRequest = { addresses: [ diff --git a/devtools/docs/models/components/aggregatedassetamount.md b/chainkit/docs/models/components/aggregatedassetamount.md similarity index 98% rename from devtools/docs/models/components/aggregatedassetamount.md rename to chainkit/docs/models/components/aggregatedassetamount.md index 750307e0..fa5eae71 100644 --- a/devtools/docs/models/components/aggregatedassetamount.md +++ b/chainkit/docs/models/components/aggregatedassetamount.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AggregatedAssetAmount } from "@avalanche-sdk/devtools/models/components"; +import { AggregatedAssetAmount } from "@avalanche-sdk/chainkit/models/components"; let value: AggregatedAssetAmount = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/apifeature.md b/chainkit/docs/models/components/apifeature.md similarity index 72% rename from devtools/docs/models/components/apifeature.md rename to chainkit/docs/models/components/apifeature.md index fc9c94c5..a51b3b7f 100644 --- a/devtools/docs/models/components/apifeature.md +++ b/chainkit/docs/models/components/apifeature.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ApiFeature } from "@avalanche-sdk/devtools/models/components"; +import { ApiFeature } from "@avalanche-sdk/chainkit/models/components"; let value: ApiFeature = "nftIndexing"; ``` diff --git a/devtools/docs/models/components/assetamount.md b/chainkit/docs/models/components/assetamount.md similarity index 98% rename from devtools/docs/models/components/assetamount.md rename to chainkit/docs/models/components/assetamount.md index ff307257..20e010d7 100644 --- a/devtools/docs/models/components/assetamount.md +++ b/chainkit/docs/models/components/assetamount.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AssetAmount } from "@avalanche-sdk/devtools/models/components"; +import { AssetAmount } from "@avalanche-sdk/chainkit/models/components"; let value: AssetAmount = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/assetwithpriceinfo.md b/chainkit/docs/models/components/assetwithpriceinfo.md similarity index 99% rename from devtools/docs/models/components/assetwithpriceinfo.md rename to chainkit/docs/models/components/assetwithpriceinfo.md index b4c6778d..1576e2a3 100644 --- a/devtools/docs/models/components/assetwithpriceinfo.md +++ b/chainkit/docs/models/components/assetwithpriceinfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AssetWithPriceInfo } from "@avalanche-sdk/devtools/models/components"; +import { AssetWithPriceInfo } from "@avalanche-sdk/chainkit/models/components"; let value: AssetWithPriceInfo = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/balanceowner.md b/chainkit/docs/models/components/balanceowner.md similarity index 89% rename from devtools/docs/models/components/balanceowner.md rename to chainkit/docs/models/components/balanceowner.md index fad64089..037f9c14 100644 --- a/devtools/docs/models/components/balanceowner.md +++ b/chainkit/docs/models/components/balanceowner.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BalanceOwner } from "@avalanche-sdk/devtools/models/components"; +import { BalanceOwner } from "@avalanche-sdk/chainkit/models/components"; let value: BalanceOwner = { addresses: [ diff --git a/devtools/docs/models/components/blockchain.md b/chainkit/docs/models/components/blockchain.md similarity index 99% rename from devtools/docs/models/components/blockchain.md rename to chainkit/docs/models/components/blockchain.md index 371f5fd9..c4c48d77 100644 --- a/devtools/docs/models/components/blockchain.md +++ b/chainkit/docs/models/components/blockchain.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Blockchain } from "@avalanche-sdk/devtools/models/components"; +import { Blockchain } from "@avalanche-sdk/chainkit/models/components"; let value: Blockchain = { createBlockTimestamp: 9906.3, diff --git a/devtools/docs/models/components/blockchaingenesisdata.md b/chainkit/docs/models/components/blockchaingenesisdata.md similarity index 81% rename from devtools/docs/models/components/blockchaingenesisdata.md rename to chainkit/docs/models/components/blockchaingenesisdata.md index 5b84253c..d9515db9 100644 --- a/devtools/docs/models/components/blockchaingenesisdata.md +++ b/chainkit/docs/models/components/blockchaingenesisdata.md @@ -5,7 +5,7 @@ The genesis data of the blockchain. ## Example Usage ```typescript -import { BlockchainGenesisData } from "@avalanche-sdk/devtools/models/components"; +import { BlockchainGenesisData } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainGenesisData = {}; ``` diff --git a/devtools/docs/models/components/blockchainid.md b/chainkit/docs/models/components/blockchainid.md similarity index 86% rename from devtools/docs/models/components/blockchainid.md rename to chainkit/docs/models/components/blockchainid.md index d77c12ab..b34149bc 100644 --- a/devtools/docs/models/components/blockchainid.md +++ b/chainkit/docs/models/components/blockchainid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BlockchainId } from "@avalanche-sdk/devtools/models/components"; +import { BlockchainId } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainId = "p-chain"; ``` diff --git a/devtools/docs/models/components/blockchainids.md b/chainkit/docs/models/components/blockchainids.md similarity index 86% rename from devtools/docs/models/components/blockchainids.md rename to chainkit/docs/models/components/blockchainids.md index 6e0b04a7..14ad1a9d 100644 --- a/devtools/docs/models/components/blockchainids.md +++ b/chainkit/docs/models/components/blockchainids.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BlockchainIds } from "@avalanche-sdk/devtools/models/components"; +import { BlockchainIds } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainIds = "11111111111111111111111111111111LpoYY"; ``` diff --git a/devtools/docs/models/components/blockchaininfo.md b/chainkit/docs/models/components/blockchaininfo.md similarity index 98% rename from devtools/docs/models/components/blockchaininfo.md rename to chainkit/docs/models/components/blockchaininfo.md index d7646843..8c8e1345 100644 --- a/devtools/docs/models/components/blockchaininfo.md +++ b/chainkit/docs/models/components/blockchaininfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BlockchainInfo } from "@avalanche-sdk/devtools/models/components"; +import { BlockchainInfo } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainInfo = { chainName: "", diff --git a/devtools/docs/models/components/blockchaininfogenesisdata.md b/chainkit/docs/models/components/blockchaininfogenesisdata.md similarity index 84% rename from devtools/docs/models/components/blockchaininfogenesisdata.md rename to chainkit/docs/models/components/blockchaininfogenesisdata.md index 27a9365a..bb70d530 100644 --- a/devtools/docs/models/components/blockchaininfogenesisdata.md +++ b/chainkit/docs/models/components/blockchaininfogenesisdata.md @@ -5,7 +5,7 @@ The genesis data of the blockchain. Present for CreateChainTx. EVM based chains ## Example Usage ```typescript -import { BlockchainInfoGenesisData } from "@avalanche-sdk/devtools/models/components"; +import { BlockchainInfoGenesisData } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainInfoGenesisData = {}; ``` diff --git a/devtools/docs/models/components/blscredentials.md b/chainkit/docs/models/components/blscredentials.md similarity index 89% rename from devtools/docs/models/components/blscredentials.md rename to chainkit/docs/models/components/blscredentials.md index 3f8dedb4..54d12a68 100644 --- a/devtools/docs/models/components/blscredentials.md +++ b/chainkit/docs/models/components/blscredentials.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BlsCredentials } from "@avalanche-sdk/devtools/models/components"; +import { BlsCredentials } from "@avalanche-sdk/chainkit/models/components"; let value: BlsCredentials = { publicKey: "", diff --git a/devtools/docs/models/components/cchainatomicbalances.md b/chainkit/docs/models/components/cchainatomicbalances.md similarity index 96% rename from devtools/docs/models/components/cchainatomicbalances.md rename to chainkit/docs/models/components/cchainatomicbalances.md index 58d253f7..dba6e7bc 100644 --- a/devtools/docs/models/components/cchainatomicbalances.md +++ b/chainkit/docs/models/components/cchainatomicbalances.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CChainAtomicBalances } from "@avalanche-sdk/devtools/models/components"; +import { CChainAtomicBalances } from "@avalanche-sdk/chainkit/models/components"; let value: CChainAtomicBalances = { atomicMemoryUnlocked: [ diff --git a/devtools/docs/models/components/cchainexporttransaction.md b/chainkit/docs/models/components/cchainexporttransaction.md similarity index 99% rename from devtools/docs/models/components/cchainexporttransaction.md rename to chainkit/docs/models/components/cchainexporttransaction.md index 4542d3f1..125a6f17 100644 --- a/devtools/docs/models/components/cchainexporttransaction.md +++ b/chainkit/docs/models/components/cchainexporttransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CChainExportTransaction } from "@avalanche-sdk/devtools/models/components"; +import { CChainExportTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: CChainExportTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", diff --git a/devtools/docs/models/components/cchainexporttransactiontxtype.md b/chainkit/docs/models/components/cchainexporttransactiontxtype.md similarity index 67% rename from devtools/docs/models/components/cchainexporttransactiontxtype.md rename to chainkit/docs/models/components/cchainexporttransactiontxtype.md index 22a18bba..e960e90c 100644 --- a/devtools/docs/models/components/cchainexporttransactiontxtype.md +++ b/chainkit/docs/models/components/cchainexporttransactiontxtype.md @@ -5,7 +5,7 @@ Type of transaction. ## Example Usage ```typescript -import { CChainExportTransactionTxType } from "@avalanche-sdk/devtools/models/components"; +import { CChainExportTransactionTxType } from "@avalanche-sdk/chainkit/models/components"; let value: CChainExportTransactionTxType = "ExportTx"; ``` diff --git a/devtools/docs/models/components/cchainimporttransaction.md b/chainkit/docs/models/components/cchainimporttransaction.md similarity index 99% rename from devtools/docs/models/components/cchainimporttransaction.md rename to chainkit/docs/models/components/cchainimporttransaction.md index f49871e5..a4a69e30 100644 --- a/devtools/docs/models/components/cchainimporttransaction.md +++ b/chainkit/docs/models/components/cchainimporttransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CChainImportTransaction } from "@avalanche-sdk/devtools/models/components"; +import { CChainImportTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: CChainImportTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", diff --git a/devtools/docs/models/components/cchainimporttransactiontxtype.md b/chainkit/docs/models/components/cchainimporttransactiontxtype.md similarity index 67% rename from devtools/docs/models/components/cchainimporttransactiontxtype.md rename to chainkit/docs/models/components/cchainimporttransactiontxtype.md index ebb3cade..ea6dfcb2 100644 --- a/devtools/docs/models/components/cchainimporttransactiontxtype.md +++ b/chainkit/docs/models/components/cchainimporttransactiontxtype.md @@ -5,7 +5,7 @@ Type of transaction. ## Example Usage ```typescript -import { CChainImportTransactionTxType } from "@avalanche-sdk/devtools/models/components"; +import { CChainImportTransactionTxType } from "@avalanche-sdk/chainkit/models/components"; let value: CChainImportTransactionTxType = "ImportTx"; ``` diff --git a/devtools/docs/models/components/cchainsharedassetbalance.md b/chainkit/docs/models/components/cchainsharedassetbalance.md similarity index 98% rename from devtools/docs/models/components/cchainsharedassetbalance.md rename to chainkit/docs/models/components/cchainsharedassetbalance.md index 54f077f5..c4950230 100644 --- a/devtools/docs/models/components/cchainsharedassetbalance.md +++ b/chainkit/docs/models/components/cchainsharedassetbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CChainSharedAssetBalance } from "@avalanche-sdk/devtools/models/components"; +import { CChainSharedAssetBalance } from "@avalanche-sdk/chainkit/models/components"; let value: CChainSharedAssetBalance = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/chain.md b/chainkit/docs/models/components/chain.md similarity index 97% rename from devtools/docs/models/components/chain.md rename to chainkit/docs/models/components/chain.md index 7f7703eb..b5cd35a2 100644 --- a/devtools/docs/models/components/chain.md +++ b/chainkit/docs/models/components/chain.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Chain } from "@avalanche-sdk/devtools/models/components"; +import { Chain } from "@avalanche-sdk/chainkit/models/components"; let value: Chain = { evmChainId: 43114, diff --git a/devtools/docs/models/components/chainaddresschainidmap.md b/chainkit/docs/models/components/chainaddresschainidmap.md similarity index 95% rename from devtools/docs/models/components/chainaddresschainidmap.md rename to chainkit/docs/models/components/chainaddresschainidmap.md index dc617744..9ee4c9bb 100644 --- a/devtools/docs/models/components/chainaddresschainidmap.md +++ b/chainkit/docs/models/components/chainaddresschainidmap.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainAddressChainIdMap } from "@avalanche-sdk/devtools/models/components"; +import { ChainAddressChainIdMap } from "@avalanche-sdk/chainkit/models/components"; let value: ChainAddressChainIdMap = { address: "52144 Wendy Hills", diff --git a/devtools/docs/models/components/chainaddresschainidmaplistresponse.md b/chainkit/docs/models/components/chainaddresschainidmaplistresponse.md similarity index 97% rename from devtools/docs/models/components/chainaddresschainidmaplistresponse.md rename to chainkit/docs/models/components/chainaddresschainidmaplistresponse.md index 1468e69c..95d3928e 100644 --- a/devtools/docs/models/components/chainaddresschainidmaplistresponse.md +++ b/chainkit/docs/models/components/chainaddresschainidmaplistresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainAddressChainIdMapListResponse } from "@avalanche-sdk/devtools/models/components"; +import { ChainAddressChainIdMapListResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ChainAddressChainIdMapListResponse = { addresses: [], diff --git a/devtools/docs/models/components/chaininfo.md b/chainkit/docs/models/components/chaininfo.md similarity index 99% rename from devtools/docs/models/components/chaininfo.md rename to chainkit/docs/models/components/chaininfo.md index e058809b..0ed665f0 100644 --- a/devtools/docs/models/components/chaininfo.md +++ b/chainkit/docs/models/components/chaininfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainInfo } from "@avalanche-sdk/devtools/models/components"; +import { ChainInfo } from "@avalanche-sdk/chainkit/models/components"; let value: ChainInfo = { chainId: "", diff --git a/devtools/docs/models/components/chaininfoenabledfeature.md b/chainkit/docs/models/components/chaininfoenabledfeature.md similarity index 76% rename from devtools/docs/models/components/chaininfoenabledfeature.md rename to chainkit/docs/models/components/chaininfoenabledfeature.md index 51eb72d8..f82a20e7 100644 --- a/devtools/docs/models/components/chaininfoenabledfeature.md +++ b/chainkit/docs/models/components/chaininfoenabledfeature.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainInfoEnabledFeature } from "@avalanche-sdk/devtools/models/components"; +import { ChainInfoEnabledFeature } from "@avalanche-sdk/chainkit/models/components"; let value: ChainInfoEnabledFeature = "nftIndexing"; ``` diff --git a/devtools/docs/models/components/chainmetric.md b/chainkit/docs/models/components/chainmetric.md similarity index 85% rename from devtools/docs/models/components/chainmetric.md rename to chainkit/docs/models/components/chainmetric.md index b801b29a..def626cc 100644 --- a/devtools/docs/models/components/chainmetric.md +++ b/chainkit/docs/models/components/chainmetric.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainMetric } from "@avalanche-sdk/devtools/models/components"; +import { ChainMetric } from "@avalanche-sdk/chainkit/models/components"; let value: ChainMetric = "activeAddresses"; ``` diff --git a/devtools/docs/models/components/chainrollingwindowmetric.md b/chainkit/docs/models/components/chainrollingwindowmetric.md similarity index 74% rename from devtools/docs/models/components/chainrollingwindowmetric.md rename to chainkit/docs/models/components/chainrollingwindowmetric.md index 64923dbe..7a3034f8 100644 --- a/devtools/docs/models/components/chainrollingwindowmetric.md +++ b/chainkit/docs/models/components/chainrollingwindowmetric.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainRollingWindowMetric } from "@avalanche-sdk/devtools/models/components"; +import { ChainRollingWindowMetric } from "@avalanche-sdk/chainkit/models/components"; let value: ChainRollingWindowMetric = "txCount"; ``` diff --git a/devtools/docs/models/components/chainrollingwindowmetricsvalue.md b/chainkit/docs/models/components/chainrollingwindowmetricsvalue.md similarity index 95% rename from devtools/docs/models/components/chainrollingwindowmetricsvalue.md rename to chainkit/docs/models/components/chainrollingwindowmetricsvalue.md index 3df68bb0..4113a2fd 100644 --- a/devtools/docs/models/components/chainrollingwindowmetricsvalue.md +++ b/chainkit/docs/models/components/chainrollingwindowmetricsvalue.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ChainRollingWindowMetricsValue } from "@avalanche-sdk/devtools/models/components"; +import { ChainRollingWindowMetricsValue } from "@avalanche-sdk/chainkit/models/components"; let value: ChainRollingWindowMetricsValue = { lastHour: 9866.7, diff --git a/devtools/docs/models/components/chainstatus.md b/chainkit/docs/models/components/chainstatus.md similarity index 86% rename from devtools/docs/models/components/chainstatus.md rename to chainkit/docs/models/components/chainstatus.md index 6fd2cbb5..365f7c97 100644 --- a/devtools/docs/models/components/chainstatus.md +++ b/chainkit/docs/models/components/chainstatus.md @@ -5,7 +5,7 @@ Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for seve ## Example Usage ```typescript -import { ChainStatus } from "@avalanche-sdk/devtools/models/components"; +import { ChainStatus } from "@avalanche-sdk/chainkit/models/components"; let value: ChainStatus = "UNAVAILABLE"; ``` diff --git a/devtools/docs/models/components/collectiblebalance.md b/chainkit/docs/models/components/collectiblebalance.md similarity index 100% rename from devtools/docs/models/components/collectiblebalance.md rename to chainkit/docs/models/components/collectiblebalance.md diff --git a/devtools/docs/models/components/commonbalancetype.md b/chainkit/docs/models/components/commonbalancetype.md similarity index 85% rename from devtools/docs/models/components/commonbalancetype.md rename to chainkit/docs/models/components/commonbalancetype.md index e7f36b0d..f6527a24 100644 --- a/devtools/docs/models/components/commonbalancetype.md +++ b/chainkit/docs/models/components/commonbalancetype.md @@ -5,7 +5,7 @@ Type of balance to monitor ## Example Usage ```typescript -import { CommonBalanceType } from "@avalanche-sdk/devtools/models/components"; +import { CommonBalanceType } from "@avalanche-sdk/chainkit/models/components"; let value: CommonBalanceType = "atomicMemoryUnlocked"; ``` diff --git a/devtools/docs/models/components/completeddelegatordetails.md b/chainkit/docs/models/components/completeddelegatordetails.md similarity index 98% rename from devtools/docs/models/components/completeddelegatordetails.md rename to chainkit/docs/models/components/completeddelegatordetails.md index 43d1d9df..84388a0a 100644 --- a/devtools/docs/models/components/completeddelegatordetails.md +++ b/chainkit/docs/models/components/completeddelegatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CompletedDelegatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { CompletedDelegatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: CompletedDelegatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/completeddelegatordetailsdelegationstatus.md b/chainkit/docs/models/components/completeddelegatordetailsdelegationstatus.md similarity index 86% rename from devtools/docs/models/components/completeddelegatordetailsdelegationstatus.md rename to chainkit/docs/models/components/completeddelegatordetailsdelegationstatus.md index b0b810c4..b7ed5065 100644 --- a/devtools/docs/models/components/completeddelegatordetailsdelegationstatus.md +++ b/chainkit/docs/models/components/completeddelegatordetailsdelegationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CompletedDelegatorDetailsDelegationStatus } from "@avalanche-sdk/devtools/models/components"; +import { CompletedDelegatorDetailsDelegationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: CompletedDelegatorDetailsDelegationStatus = "completed"; ``` diff --git a/devtools/docs/models/components/completedvalidatordetails.md b/chainkit/docs/models/components/completedvalidatordetails.md similarity index 98% rename from devtools/docs/models/components/completedvalidatordetails.md rename to chainkit/docs/models/components/completedvalidatordetails.md index 577c169b..d47fccac 100644 --- a/devtools/docs/models/components/completedvalidatordetails.md +++ b/chainkit/docs/models/components/completedvalidatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CompletedValidatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { CompletedValidatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: CompletedValidatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/completedvalidatordetailsvalidationstatus.md b/chainkit/docs/models/components/completedvalidatordetailsvalidationstatus.md similarity index 86% rename from devtools/docs/models/components/completedvalidatordetailsvalidationstatus.md rename to chainkit/docs/models/components/completedvalidatordetailsvalidationstatus.md index 63d3c1b5..d1af586e 100644 --- a/devtools/docs/models/components/completedvalidatordetailsvalidationstatus.md +++ b/chainkit/docs/models/components/completedvalidatordetailsvalidationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CompletedValidatorDetailsValidationStatus } from "@avalanche-sdk/devtools/models/components"; +import { CompletedValidatorDetailsValidationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: CompletedValidatorDetailsValidationStatus = "completed"; ``` diff --git a/devtools/docs/models/components/contract.md b/chainkit/docs/models/components/contract.md similarity index 100% rename from devtools/docs/models/components/contract.md rename to chainkit/docs/models/components/contract.md index 646e2e27..efd6a4e8 100644 --- a/devtools/docs/models/components/contract.md +++ b/chainkit/docs/models/components/contract.md @@ -3,37 +3,37 @@ ## Supported Types -### `components.Erc721Contract` +### `components.Erc20Contract` ```typescript -const value: components.Erc721Contract = { +const value: components.Erc20Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-721", + ercType: "ERC-20", symbol: "WAVAX", + decimals: 18, }; ``` -### `components.Erc1155Contract` +### `components.Erc721Contract` ```typescript -const value: components.Erc1155Contract = { +const value: components.Erc721Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", + ercType: "ERC-721", symbol: "WAVAX", }; ``` -### `components.Erc20Contract` +### `components.Erc1155Contract` ```typescript -const value: components.Erc20Contract = { +const value: components.Erc1155Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-20", + ercType: "ERC-1155", symbol: "WAVAX", - decimals: 18, }; ``` diff --git a/devtools/docs/models/components/contractdeploymentdetails.md b/chainkit/docs/models/components/contractdeploymentdetails.md similarity index 97% rename from devtools/docs/models/components/contractdeploymentdetails.md rename to chainkit/docs/models/components/contractdeploymentdetails.md index 61b9986d..d8bee8b4 100644 --- a/devtools/docs/models/components/contractdeploymentdetails.md +++ b/chainkit/docs/models/components/contractdeploymentdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ContractDeploymentDetails } from "@avalanche-sdk/devtools/models/components"; +import { ContractDeploymentDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ContractDeploymentDetails = { txHash: "", diff --git a/devtools/docs/models/components/createevmtransactionexportrequest.md b/chainkit/docs/models/components/createevmtransactionexportrequest.md similarity index 99% rename from devtools/docs/models/components/createevmtransactionexportrequest.md rename to chainkit/docs/models/components/createevmtransactionexportrequest.md index 67444da5..9a36416c 100644 --- a/devtools/docs/models/components/createevmtransactionexportrequest.md +++ b/chainkit/docs/models/components/createevmtransactionexportrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreateEvmTransactionExportRequest } from "@avalanche-sdk/devtools/models/components"; +import { CreateEvmTransactionExportRequest } from "@avalanche-sdk/chainkit/models/components"; let value: CreateEvmTransactionExportRequest = { type: "TRANSACTION_EXPORT_EVM", diff --git a/devtools/docs/models/components/createprimarynetworktransactionexportrequest.md b/chainkit/docs/models/components/createprimarynetworktransactionexportrequest.md similarity index 99% rename from devtools/docs/models/components/createprimarynetworktransactionexportrequest.md rename to chainkit/docs/models/components/createprimarynetworktransactionexportrequest.md index 3e4fd8e1..1bac57fe 100644 --- a/devtools/docs/models/components/createprimarynetworktransactionexportrequest.md +++ b/chainkit/docs/models/components/createprimarynetworktransactionexportrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { CreatePrimaryNetworkTransactionExportRequest } from "@avalanche-sdk/devtools/models/components"; +import { CreatePrimaryNetworkTransactionExportRequest } from "@avalanche-sdk/chainkit/models/components"; let value: CreatePrimaryNetworkTransactionExportRequest = { type: "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE", diff --git a/devtools/docs/models/components/currencycode.md b/chainkit/docs/models/components/currencycode.md similarity index 80% rename from devtools/docs/models/components/currencycode.md rename to chainkit/docs/models/components/currencycode.md index 474ffda9..80646215 100644 --- a/devtools/docs/models/components/currencycode.md +++ b/chainkit/docs/models/components/currencycode.md @@ -5,7 +5,7 @@ ISO 4217 currency code. ## Example Usage ```typescript -import { CurrencyCode } from "@avalanche-sdk/devtools/models/components"; +import { CurrencyCode } from "@avalanche-sdk/chainkit/models/components"; let value: CurrencyCode = "usd"; ``` diff --git a/devtools/docs/models/components/datalistchainsresponse.md b/chainkit/docs/models/components/datalistchainsresponse.md similarity index 95% rename from devtools/docs/models/components/datalistchainsresponse.md rename to chainkit/docs/models/components/datalistchainsresponse.md index 95e7e221..3fcf408e 100644 --- a/devtools/docs/models/components/datalistchainsresponse.md +++ b/chainkit/docs/models/components/datalistchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DataListChainsResponse } from "@avalanche-sdk/devtools/models/components"; +import { DataListChainsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: DataListChainsResponse = { chains: [ diff --git a/devtools/docs/models/components/delegationstatustype.md b/chainkit/docs/models/components/delegationstatustype.md similarity index 74% rename from devtools/docs/models/components/delegationstatustype.md rename to chainkit/docs/models/components/delegationstatustype.md index a9884aee..3dee7299 100644 --- a/devtools/docs/models/components/delegationstatustype.md +++ b/chainkit/docs/models/components/delegationstatustype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DelegationStatusType } from "@avalanche-sdk/devtools/models/components"; +import { DelegationStatusType } from "@avalanche-sdk/chainkit/models/components"; let value: DelegationStatusType = "completed"; ``` diff --git a/devtools/docs/models/components/delegator.md b/chainkit/docs/models/components/delegator.md similarity index 100% rename from devtools/docs/models/components/delegator.md rename to chainkit/docs/models/components/delegator.md diff --git a/devtools/docs/models/components/delegatorsdetails.md b/chainkit/docs/models/components/delegatorsdetails.md similarity index 89% rename from devtools/docs/models/components/delegatorsdetails.md rename to chainkit/docs/models/components/delegatorsdetails.md index 6078e263..6876c63f 100644 --- a/devtools/docs/models/components/delegatorsdetails.md +++ b/chainkit/docs/models/components/delegatorsdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DelegatorsDetails } from "@avalanche-sdk/devtools/models/components"; +import { DelegatorsDetails } from "@avalanche-sdk/chainkit/models/components"; let value: DelegatorsDetails = { delegatorCount: 7517.48, diff --git a/devtools/docs/models/components/deliveredicmmessage.md b/chainkit/docs/models/components/deliveredicmmessage.md similarity index 99% rename from devtools/docs/models/components/deliveredicmmessage.md rename to chainkit/docs/models/components/deliveredicmmessage.md index 41bef06f..85edbf16 100644 --- a/devtools/docs/models/components/deliveredicmmessage.md +++ b/chainkit/docs/models/components/deliveredicmmessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredIcmMessage } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredIcmMessage } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredIcmMessage = { messageId: "", diff --git a/devtools/docs/models/components/deliveredicmmessagestatus.md b/chainkit/docs/models/components/deliveredicmmessagestatus.md similarity index 64% rename from devtools/docs/models/components/deliveredicmmessagestatus.md rename to chainkit/docs/models/components/deliveredicmmessagestatus.md index c878b85a..ce24f986 100644 --- a/devtools/docs/models/components/deliveredicmmessagestatus.md +++ b/chainkit/docs/models/components/deliveredicmmessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredIcmMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredIcmMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredIcmMessageStatus = "delivered"; ``` diff --git a/devtools/docs/models/components/deliveredsourcenotindexedicmmessage.md b/chainkit/docs/models/components/deliveredsourcenotindexedicmmessage.md similarity index 99% rename from devtools/docs/models/components/deliveredsourcenotindexedicmmessage.md rename to chainkit/docs/models/components/deliveredsourcenotindexedicmmessage.md index a1ec7f9d..52d4e8da 100644 --- a/devtools/docs/models/components/deliveredsourcenotindexedicmmessage.md +++ b/chainkit/docs/models/components/deliveredsourcenotindexedicmmessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredSourceNotIndexedIcmMessage } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredSourceNotIndexedIcmMessage } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredSourceNotIndexedIcmMessage = { messageId: "", diff --git a/devtools/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md b/chainkit/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md similarity index 88% rename from devtools/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md rename to chainkit/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md index c01f7060..11bc07f6 100644 --- a/devtools/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md +++ b/chainkit/docs/models/components/deliveredsourcenotindexedicmmessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredSourceNotIndexedIcmMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredSourceNotIndexedIcmMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredSourceNotIndexedIcmMessageStatus = "delivered_source_not_indexed"; diff --git a/devtools/docs/models/components/deliveredsourcenotindexedteleportermessage.md b/chainkit/docs/models/components/deliveredsourcenotindexedteleportermessage.md similarity index 99% rename from devtools/docs/models/components/deliveredsourcenotindexedteleportermessage.md rename to chainkit/docs/models/components/deliveredsourcenotindexedteleportermessage.md index c2bd7287..87eba0dc 100644 --- a/devtools/docs/models/components/deliveredsourcenotindexedteleportermessage.md +++ b/chainkit/docs/models/components/deliveredsourcenotindexedteleportermessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredSourceNotIndexedTeleporterMessage } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredSourceNotIndexedTeleporterMessage } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredSourceNotIndexedTeleporterMessage = { messageId: "", diff --git a/devtools/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md b/chainkit/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md similarity index 87% rename from devtools/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md rename to chainkit/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md index 8d4f69cd..a817a03f 100644 --- a/devtools/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md +++ b/chainkit/docs/models/components/deliveredsourcenotindexedteleportermessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredSourceNotIndexedTeleporterMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredSourceNotIndexedTeleporterMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredSourceNotIndexedTeleporterMessageStatus = "delivered_source_not_indexed"; diff --git a/devtools/docs/models/components/deliveredteleportermessage.md b/chainkit/docs/models/components/deliveredteleportermessage.md similarity index 99% rename from devtools/docs/models/components/deliveredteleportermessage.md rename to chainkit/docs/models/components/deliveredteleportermessage.md index c0428374..05c86d6d 100644 --- a/devtools/docs/models/components/deliveredteleportermessage.md +++ b/chainkit/docs/models/components/deliveredteleportermessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredTeleporterMessage } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredTeleporterMessage } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredTeleporterMessage = { messageId: "", diff --git a/devtools/docs/models/components/deliveredteleportermessagestatus.md b/chainkit/docs/models/components/deliveredteleportermessagestatus.md similarity index 88% rename from devtools/docs/models/components/deliveredteleportermessagestatus.md rename to chainkit/docs/models/components/deliveredteleportermessagestatus.md index fc83dbce..ac53648d 100644 --- a/devtools/docs/models/components/deliveredteleportermessagestatus.md +++ b/chainkit/docs/models/components/deliveredteleportermessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeliveredTeleporterMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { DeliveredTeleporterMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: DeliveredTeleporterMessageStatus = "delivered"; ``` diff --git a/devtools/docs/models/components/erc1155contract.md b/chainkit/docs/models/components/erc1155contract.md similarity index 99% rename from devtools/docs/models/components/erc1155contract.md rename to chainkit/docs/models/components/erc1155contract.md index 9468780f..f6221054 100644 --- a/devtools/docs/models/components/erc1155contract.md +++ b/chainkit/docs/models/components/erc1155contract.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155Contract } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155Contract } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155Contract = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/erc1155contracterctype.md b/chainkit/docs/models/components/erc1155contracterctype.md similarity index 72% rename from devtools/docs/models/components/erc1155contracterctype.md rename to chainkit/docs/models/components/erc1155contracterctype.md index 97e8825c..c6219880 100644 --- a/devtools/docs/models/components/erc1155contracterctype.md +++ b/chainkit/docs/models/components/erc1155contracterctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155ContractErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155ContractErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155ContractErcType = "ERC-1155"; ``` diff --git a/devtools/docs/models/components/erc1155token.md b/chainkit/docs/models/components/erc1155token.md similarity index 98% rename from devtools/docs/models/components/erc1155token.md rename to chainkit/docs/models/components/erc1155token.md index 2142f0fe..b270f866 100644 --- a/devtools/docs/models/components/erc1155token.md +++ b/chainkit/docs/models/components/erc1155token.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155Token } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155Token } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155Token = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc1155tokenbalance.md b/chainkit/docs/models/components/erc1155tokenbalance.md similarity index 98% rename from devtools/docs/models/components/erc1155tokenbalance.md rename to chainkit/docs/models/components/erc1155tokenbalance.md index 35babfab..c96041b2 100644 --- a/devtools/docs/models/components/erc1155tokenbalance.md +++ b/chainkit/docs/models/components/erc1155tokenbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155TokenBalance } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155TokenBalance } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155TokenBalance = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc1155tokenbalanceerctype.md b/chainkit/docs/models/components/erc1155tokenbalanceerctype.md similarity index 64% rename from devtools/docs/models/components/erc1155tokenbalanceerctype.md rename to chainkit/docs/models/components/erc1155tokenbalanceerctype.md index 26042369..a9b4b049 100644 --- a/devtools/docs/models/components/erc1155tokenbalanceerctype.md +++ b/chainkit/docs/models/components/erc1155tokenbalanceerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155TokenBalanceErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155TokenBalanceErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155TokenBalanceErcType = "ERC-1155"; ``` diff --git a/devtools/docs/models/components/erc1155tokenerctype.md b/chainkit/docs/models/components/erc1155tokenerctype.md similarity index 71% rename from devtools/docs/models/components/erc1155tokenerctype.md rename to chainkit/docs/models/components/erc1155tokenerctype.md index 48145a6b..93ad28d1 100644 --- a/devtools/docs/models/components/erc1155tokenerctype.md +++ b/chainkit/docs/models/components/erc1155tokenerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155TokenErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155TokenErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155TokenErcType = "ERC-1155"; ``` diff --git a/devtools/docs/models/components/erc1155tokenmetadata.md b/chainkit/docs/models/components/erc1155tokenmetadata.md similarity index 98% rename from devtools/docs/models/components/erc1155tokenmetadata.md rename to chainkit/docs/models/components/erc1155tokenmetadata.md index 53dad388..7e020761 100644 --- a/devtools/docs/models/components/erc1155tokenmetadata.md +++ b/chainkit/docs/models/components/erc1155tokenmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155TokenMetadata } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155TokenMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155TokenMetadata = { indexStatus: "THROTTLED_TOKEN_URI", diff --git a/devtools/docs/models/components/erc1155transfer.md b/chainkit/docs/models/components/erc1155transfer.md similarity index 98% rename from devtools/docs/models/components/erc1155transfer.md rename to chainkit/docs/models/components/erc1155transfer.md index 3777c91a..33aa9e25 100644 --- a/devtools/docs/models/components/erc1155transfer.md +++ b/chainkit/docs/models/components/erc1155transfer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155Transfer } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155Transfer } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155Transfer = { blockNumber: "339", diff --git a/devtools/docs/models/components/erc1155transferdetails.md b/chainkit/docs/models/components/erc1155transferdetails.md similarity index 98% rename from devtools/docs/models/components/erc1155transferdetails.md rename to chainkit/docs/models/components/erc1155transferdetails.md index daa57e9a..31e5d37a 100644 --- a/devtools/docs/models/components/erc1155transferdetails.md +++ b/chainkit/docs/models/components/erc1155transferdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc1155TransferDetails } from "@avalanche-sdk/devtools/models/components"; +import { Erc1155TransferDetails } from "@avalanche-sdk/chainkit/models/components"; let value: Erc1155TransferDetails = { from: { diff --git a/devtools/docs/models/components/erc20contract.md b/chainkit/docs/models/components/erc20contract.md similarity index 99% rename from devtools/docs/models/components/erc20contract.md rename to chainkit/docs/models/components/erc20contract.md index 59cd8382..650ddf4f 100644 --- a/devtools/docs/models/components/erc20contract.md +++ b/chainkit/docs/models/components/erc20contract.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20Contract } from "@avalanche-sdk/devtools/models/components"; +import { Erc20Contract } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20Contract = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/erc20contracterctype.md b/chainkit/docs/models/components/erc20contracterctype.md similarity index 71% rename from devtools/docs/models/components/erc20contracterctype.md rename to chainkit/docs/models/components/erc20contracterctype.md index 0ff59ae2..e7eec21c 100644 --- a/devtools/docs/models/components/erc20contracterctype.md +++ b/chainkit/docs/models/components/erc20contracterctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20ContractErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc20ContractErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20ContractErcType = "ERC-20"; ``` diff --git a/devtools/docs/models/components/erc20token.md b/chainkit/docs/models/components/erc20token.md similarity index 99% rename from devtools/docs/models/components/erc20token.md rename to chainkit/docs/models/components/erc20token.md index 0859b832..4f02ac1e 100644 --- a/devtools/docs/models/components/erc20token.md +++ b/chainkit/docs/models/components/erc20token.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20Token } from "@avalanche-sdk/devtools/models/components"; +import { Erc20Token } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20Token = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc20tokenbalance.md b/chainkit/docs/models/components/erc20tokenbalance.md similarity index 99% rename from devtools/docs/models/components/erc20tokenbalance.md rename to chainkit/docs/models/components/erc20tokenbalance.md index e4f11737..263eea4b 100644 --- a/devtools/docs/models/components/erc20tokenbalance.md +++ b/chainkit/docs/models/components/erc20tokenbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20TokenBalance } from "@avalanche-sdk/devtools/models/components"; +import { Erc20TokenBalance } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20TokenBalance = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc20tokenbalanceerctype.md b/chainkit/docs/models/components/erc20tokenbalanceerctype.md similarity index 63% rename from devtools/docs/models/components/erc20tokenbalanceerctype.md rename to chainkit/docs/models/components/erc20tokenbalanceerctype.md index ebee6871..a32f276f 100644 --- a/devtools/docs/models/components/erc20tokenbalanceerctype.md +++ b/chainkit/docs/models/components/erc20tokenbalanceerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20TokenBalanceErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc20TokenBalanceErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20TokenBalanceErcType = "ERC-20"; ``` diff --git a/devtools/docs/models/components/erc20tokenerctype.md b/chainkit/docs/models/components/erc20tokenerctype.md similarity index 70% rename from devtools/docs/models/components/erc20tokenerctype.md rename to chainkit/docs/models/components/erc20tokenerctype.md index e67fa796..fe9b83fc 100644 --- a/devtools/docs/models/components/erc20tokenerctype.md +++ b/chainkit/docs/models/components/erc20tokenerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20TokenErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc20TokenErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20TokenErcType = "ERC-20"; ``` diff --git a/devtools/docs/models/components/erc20transfer.md b/chainkit/docs/models/components/erc20transfer.md similarity index 98% rename from devtools/docs/models/components/erc20transfer.md rename to chainkit/docs/models/components/erc20transfer.md index dd0c3e4f..24ad5019 100644 --- a/devtools/docs/models/components/erc20transfer.md +++ b/chainkit/docs/models/components/erc20transfer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20Transfer } from "@avalanche-sdk/devtools/models/components"; +import { Erc20Transfer } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20Transfer = { blockNumber: "339", diff --git a/devtools/docs/models/components/erc20transferdetails.md b/chainkit/docs/models/components/erc20transferdetails.md similarity index 98% rename from devtools/docs/models/components/erc20transferdetails.md rename to chainkit/docs/models/components/erc20transferdetails.md index b1f06105..5fe8848f 100644 --- a/devtools/docs/models/components/erc20transferdetails.md +++ b/chainkit/docs/models/components/erc20transferdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc20TransferDetails } from "@avalanche-sdk/devtools/models/components"; +import { Erc20TransferDetails } from "@avalanche-sdk/chainkit/models/components"; let value: Erc20TransferDetails = { from: { diff --git a/devtools/docs/models/components/erc721contract.md b/chainkit/docs/models/components/erc721contract.md similarity index 99% rename from devtools/docs/models/components/erc721contract.md rename to chainkit/docs/models/components/erc721contract.md index 602ffb99..409dca36 100644 --- a/devtools/docs/models/components/erc721contract.md +++ b/chainkit/docs/models/components/erc721contract.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721Contract } from "@avalanche-sdk/devtools/models/components"; +import { Erc721Contract } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721Contract = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/erc721contracterctype.md b/chainkit/docs/models/components/erc721contracterctype.md similarity index 72% rename from devtools/docs/models/components/erc721contracterctype.md rename to chainkit/docs/models/components/erc721contracterctype.md index 03ae3dd3..73a4e9a1 100644 --- a/devtools/docs/models/components/erc721contracterctype.md +++ b/chainkit/docs/models/components/erc721contracterctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721ContractErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc721ContractErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721ContractErcType = "ERC-721"; ``` diff --git a/devtools/docs/models/components/erc721token.md b/chainkit/docs/models/components/erc721token.md similarity index 98% rename from devtools/docs/models/components/erc721token.md rename to chainkit/docs/models/components/erc721token.md index f384e05f..d2019c1b 100644 --- a/devtools/docs/models/components/erc721token.md +++ b/chainkit/docs/models/components/erc721token.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721Token } from "@avalanche-sdk/devtools/models/components"; +import { Erc721Token } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721Token = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc721tokenbalance.md b/chainkit/docs/models/components/erc721tokenbalance.md similarity index 98% rename from devtools/docs/models/components/erc721tokenbalance.md rename to chainkit/docs/models/components/erc721tokenbalance.md index e0994660..d3a8ac48 100644 --- a/devtools/docs/models/components/erc721tokenbalance.md +++ b/chainkit/docs/models/components/erc721tokenbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721TokenBalance } from "@avalanche-sdk/devtools/models/components"; +import { Erc721TokenBalance } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721TokenBalance = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/erc721tokenbalanceerctype.md b/chainkit/docs/models/components/erc721tokenbalanceerctype.md similarity index 64% rename from devtools/docs/models/components/erc721tokenbalanceerctype.md rename to chainkit/docs/models/components/erc721tokenbalanceerctype.md index 306fee5e..91fc3ede 100644 --- a/devtools/docs/models/components/erc721tokenbalanceerctype.md +++ b/chainkit/docs/models/components/erc721tokenbalanceerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721TokenBalanceErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc721TokenBalanceErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721TokenBalanceErcType = "ERC-721"; ``` diff --git a/devtools/docs/models/components/erc721tokenerctype.md b/chainkit/docs/models/components/erc721tokenerctype.md similarity index 71% rename from devtools/docs/models/components/erc721tokenerctype.md rename to chainkit/docs/models/components/erc721tokenerctype.md index 0bca18c4..6327a136 100644 --- a/devtools/docs/models/components/erc721tokenerctype.md +++ b/chainkit/docs/models/components/erc721tokenerctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721TokenErcType } from "@avalanche-sdk/devtools/models/components"; +import { Erc721TokenErcType } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721TokenErcType = "ERC-721"; ``` diff --git a/devtools/docs/models/components/erc721tokenmetadata.md b/chainkit/docs/models/components/erc721tokenmetadata.md similarity index 98% rename from devtools/docs/models/components/erc721tokenmetadata.md rename to chainkit/docs/models/components/erc721tokenmetadata.md index 65c1ca80..a9639c68 100644 --- a/devtools/docs/models/components/erc721tokenmetadata.md +++ b/chainkit/docs/models/components/erc721tokenmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721TokenMetadata } from "@avalanche-sdk/devtools/models/components"; +import { Erc721TokenMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721TokenMetadata = { indexStatus: "INVALID_TOKEN_URI_SCHEME", diff --git a/devtools/docs/models/components/erc721transfer.md b/chainkit/docs/models/components/erc721transfer.md similarity index 98% rename from devtools/docs/models/components/erc721transfer.md rename to chainkit/docs/models/components/erc721transfer.md index da5db627..7a19411a 100644 --- a/devtools/docs/models/components/erc721transfer.md +++ b/chainkit/docs/models/components/erc721transfer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721Transfer } from "@avalanche-sdk/devtools/models/components"; +import { Erc721Transfer } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721Transfer = { blockNumber: "339", diff --git a/devtools/docs/models/components/erc721transferdetails.md b/chainkit/docs/models/components/erc721transferdetails.md similarity index 97% rename from devtools/docs/models/components/erc721transferdetails.md rename to chainkit/docs/models/components/erc721transferdetails.md index 54702c37..d2c979db 100644 --- a/devtools/docs/models/components/erc721transferdetails.md +++ b/chainkit/docs/models/components/erc721transferdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Erc721TransferDetails } from "@avalanche-sdk/devtools/models/components"; +import { Erc721TransferDetails } from "@avalanche-sdk/chainkit/models/components"; let value: Erc721TransferDetails = { from: { diff --git a/devtools/docs/models/components/erctoken.md b/chainkit/docs/models/components/erctoken.md similarity index 96% rename from devtools/docs/models/components/erctoken.md rename to chainkit/docs/models/components/erctoken.md index 54e444ad..7901fd01 100644 --- a/devtools/docs/models/components/erctoken.md +++ b/chainkit/docs/models/components/erctoken.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ERCToken } from "@avalanche-sdk/devtools/models/components"; +import { ERCToken } from "@avalanche-sdk/chainkit/models/components"; let value: ERCToken = { address: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7", diff --git a/devtools/docs/models/components/erctransfer.md b/chainkit/docs/models/components/erctransfer.md similarity index 98% rename from devtools/docs/models/components/erctransfer.md rename to chainkit/docs/models/components/erctransfer.md index 5217581e..f9813f19 100644 --- a/devtools/docs/models/components/erctransfer.md +++ b/chainkit/docs/models/components/erctransfer.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ERCTransfer } from "@avalanche-sdk/devtools/models/components"; +import { ERCTransfer } from "@avalanche-sdk/chainkit/models/components"; let value: ERCTransfer = { transactionHash: diff --git a/devtools/docs/models/components/evmaddressactivityrequest.md b/chainkit/docs/models/components/evmaddressactivityrequest.md similarity index 98% rename from devtools/docs/models/components/evmaddressactivityrequest.md rename to chainkit/docs/models/components/evmaddressactivityrequest.md index a1cc424d..2f3615a5 100644 --- a/devtools/docs/models/components/evmaddressactivityrequest.md +++ b/chainkit/docs/models/components/evmaddressactivityrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMAddressActivityRequest } from "@avalanche-sdk/devtools/models/components"; +import { EVMAddressActivityRequest } from "@avalanche-sdk/chainkit/models/components"; let value: EVMAddressActivityRequest = { eventType: "address_activity", diff --git a/devtools/docs/models/components/evmaddressactivityrequesteventtype.md b/chainkit/docs/models/components/evmaddressactivityrequesteventtype.md similarity index 88% rename from devtools/docs/models/components/evmaddressactivityrequesteventtype.md rename to chainkit/docs/models/components/evmaddressactivityrequesteventtype.md index 5ff1152e..12e813c1 100644 --- a/devtools/docs/models/components/evmaddressactivityrequesteventtype.md +++ b/chainkit/docs/models/components/evmaddressactivityrequesteventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMAddressActivityRequestEventType } from "@avalanche-sdk/devtools/models/components"; +import { EVMAddressActivityRequestEventType } from "@avalanche-sdk/chainkit/models/components"; let value: EVMAddressActivityRequestEventType = "address_activity"; ``` diff --git a/devtools/docs/models/components/evmaddressactivityrequestmetadata.md b/chainkit/docs/models/components/evmaddressactivityrequestmetadata.md similarity index 100% rename from devtools/docs/models/components/evmaddressactivityrequestmetadata.md rename to chainkit/docs/models/components/evmaddressactivityrequestmetadata.md diff --git a/devtools/docs/models/components/evmaddressactivityresponse.md b/chainkit/docs/models/components/evmaddressactivityresponse.md similarity index 98% rename from devtools/docs/models/components/evmaddressactivityresponse.md rename to chainkit/docs/models/components/evmaddressactivityresponse.md index a992abb1..3c76747e 100644 --- a/devtools/docs/models/components/evmaddressactivityresponse.md +++ b/chainkit/docs/models/components/evmaddressactivityresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMAddressActivityResponse } from "@avalanche-sdk/devtools/models/components"; +import { EVMAddressActivityResponse } from "@avalanche-sdk/chainkit/models/components"; let value: EVMAddressActivityResponse = { id: "", diff --git a/devtools/docs/models/components/evmblock.md b/chainkit/docs/models/components/evmblock.md similarity index 98% rename from devtools/docs/models/components/evmblock.md rename to chainkit/docs/models/components/evmblock.md index 80dca64c..dac9797d 100644 --- a/devtools/docs/models/components/evmblock.md +++ b/chainkit/docs/models/components/evmblock.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EvmBlock } from "@avalanche-sdk/devtools/models/components"; +import { EvmBlock } from "@avalanche-sdk/chainkit/models/components"; let value: EvmBlock = { chainId: "43114", diff --git a/devtools/docs/models/components/evminput.md b/chainkit/docs/models/components/evminput.md similarity index 97% rename from devtools/docs/models/components/evminput.md rename to chainkit/docs/models/components/evminput.md index 2aba2565..02d85502 100644 --- a/devtools/docs/models/components/evminput.md +++ b/chainkit/docs/models/components/evminput.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMInput } from "@avalanche-sdk/devtools/models/components"; +import { EVMInput } from "@avalanche-sdk/chainkit/models/components"; let value: EVMInput = { fromAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", diff --git a/devtools/docs/models/components/evmnetworkoptions.md b/chainkit/docs/models/components/evmnetworkoptions.md similarity index 90% rename from devtools/docs/models/components/evmnetworkoptions.md rename to chainkit/docs/models/components/evmnetworkoptions.md index 5c44f869..ffb67b9a 100644 --- a/devtools/docs/models/components/evmnetworkoptions.md +++ b/chainkit/docs/models/components/evmnetworkoptions.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EvmNetworkOptions } from "@avalanche-sdk/devtools/models/components"; +import { EvmNetworkOptions } from "@avalanche-sdk/chainkit/models/components"; let value: EvmNetworkOptions = { addresses: [], diff --git a/devtools/docs/models/components/evmoperationtype.md b/chainkit/docs/models/components/evmoperationtype.md similarity index 73% rename from devtools/docs/models/components/evmoperationtype.md rename to chainkit/docs/models/components/evmoperationtype.md index e511cada..92a34b70 100644 --- a/devtools/docs/models/components/evmoperationtype.md +++ b/chainkit/docs/models/components/evmoperationtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMOperationType } from "@avalanche-sdk/devtools/models/components"; +import { EVMOperationType } from "@avalanche-sdk/chainkit/models/components"; let value: EVMOperationType = "TRANSACTION_EXPORT_EVM"; ``` diff --git a/devtools/docs/models/components/evmoutput.md b/chainkit/docs/models/components/evmoutput.md similarity index 96% rename from devtools/docs/models/components/evmoutput.md rename to chainkit/docs/models/components/evmoutput.md index dc9cabb0..190028e8 100644 --- a/devtools/docs/models/components/evmoutput.md +++ b/chainkit/docs/models/components/evmoutput.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { EVMOutput } from "@avalanche-sdk/devtools/models/components"; +import { EVMOutput } from "@avalanche-sdk/chainkit/models/components"; let value: EVMOutput = { toAddress: "0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c", diff --git a/devtools/docs/models/components/fullnativetransactiondetails.md b/chainkit/docs/models/components/fullnativetransactiondetails.md similarity index 99% rename from devtools/docs/models/components/fullnativetransactiondetails.md rename to chainkit/docs/models/components/fullnativetransactiondetails.md index 27799bd5..d9b0de7f 100644 --- a/devtools/docs/models/components/fullnativetransactiondetails.md +++ b/chainkit/docs/models/components/fullnativetransactiondetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { FullNativeTransactionDetails } from "@avalanche-sdk/devtools/models/components"; +import { FullNativeTransactionDetails } from "@avalanche-sdk/chainkit/models/components"; let value: FullNativeTransactionDetails = { blockNumber: "339", diff --git a/devtools/docs/models/components/geolocation.md b/chainkit/docs/models/components/geolocation.md similarity index 95% rename from devtools/docs/models/components/geolocation.md rename to chainkit/docs/models/components/geolocation.md index fa2b6355..9e3c4964 100644 --- a/devtools/docs/models/components/geolocation.md +++ b/chainkit/docs/models/components/geolocation.md @@ -5,7 +5,7 @@ The geographical location of the validator node, if available. ## Example Usage ```typescript -import { Geolocation } from "@avalanche-sdk/devtools/models/components"; +import { Geolocation } from "@avalanche-sdk/chainkit/models/components"; let value: Geolocation = { city: "Antelope", diff --git a/devtools/docs/models/components/getchainresponse.md b/chainkit/docs/models/components/getchainresponse.md similarity index 99% rename from devtools/docs/models/components/getchainresponse.md rename to chainkit/docs/models/components/getchainresponse.md index fbf7e611..3819bae9 100644 --- a/devtools/docs/models/components/getchainresponse.md +++ b/chainkit/docs/models/components/getchainresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetChainResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetChainResponse = { chainId: "", diff --git a/devtools/docs/models/components/getchainresponseenabledfeature.md b/chainkit/docs/models/components/getchainresponseenabledfeature.md similarity index 68% rename from devtools/docs/models/components/getchainresponseenabledfeature.md rename to chainkit/docs/models/components/getchainresponseenabledfeature.md index 4e3d37b3..12164dff 100644 --- a/devtools/docs/models/components/getchainresponseenabledfeature.md +++ b/chainkit/docs/models/components/getchainresponseenabledfeature.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainResponseEnabledFeature } from "@avalanche-sdk/devtools/models/components"; +import { GetChainResponseEnabledFeature } from "@avalanche-sdk/chainkit/models/components"; let value: GetChainResponseEnabledFeature = "teleporter"; ``` diff --git a/devtools/docs/models/components/getevmblockresponse.md b/chainkit/docs/models/components/getevmblockresponse.md similarity index 98% rename from devtools/docs/models/components/getevmblockresponse.md rename to chainkit/docs/models/components/getevmblockresponse.md index 4ca99da2..40d1428b 100644 --- a/devtools/docs/models/components/getevmblockresponse.md +++ b/chainkit/docs/models/components/getevmblockresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmBlockResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetEvmBlockResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetEvmBlockResponse = { chainId: "43114", diff --git a/devtools/docs/models/components/getnativebalanceresponse.md b/chainkit/docs/models/components/getnativebalanceresponse.md similarity index 94% rename from devtools/docs/models/components/getnativebalanceresponse.md rename to chainkit/docs/models/components/getnativebalanceresponse.md index b91ad5ee..22c30d6a 100644 --- a/devtools/docs/models/components/getnativebalanceresponse.md +++ b/chainkit/docs/models/components/getnativebalanceresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNativeBalanceResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetNativeBalanceResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetNativeBalanceResponse = { nativeTokenBalance: { diff --git a/devtools/docs/models/components/getnetworkdetailsresponse.md b/chainkit/docs/models/components/getnetworkdetailsresponse.md similarity index 95% rename from devtools/docs/models/components/getnetworkdetailsresponse.md rename to chainkit/docs/models/components/getnetworkdetailsresponse.md index 5c64d035..b2e4b819 100644 --- a/devtools/docs/models/components/getnetworkdetailsresponse.md +++ b/chainkit/docs/models/components/getnetworkdetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNetworkDetailsResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetNetworkDetailsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetNetworkDetailsResponse = { validatorDetails: { diff --git a/devtools/docs/models/components/getprimarynetworkblockresponse.md b/chainkit/docs/models/components/getprimarynetworkblockresponse.md similarity index 98% rename from devtools/docs/models/components/getprimarynetworkblockresponse.md rename to chainkit/docs/models/components/getprimarynetworkblockresponse.md index 6e07fec2..8463414b 100644 --- a/devtools/docs/models/components/getprimarynetworkblockresponse.md +++ b/chainkit/docs/models/components/getprimarynetworkblockresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetPrimaryNetworkBlockResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetPrimaryNetworkBlockResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetPrimaryNetworkBlockResponse = { blockNumber: "", diff --git a/devtools/docs/models/components/gettransactionresponse.md b/chainkit/docs/models/components/gettransactionresponse.md similarity index 99% rename from devtools/docs/models/components/gettransactionresponse.md rename to chainkit/docs/models/components/gettransactionresponse.md index f8094876..d5756036 100644 --- a/devtools/docs/models/components/gettransactionresponse.md +++ b/chainkit/docs/models/components/gettransactionresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransactionResponse } from "@avalanche-sdk/devtools/models/components"; +import { GetTransactionResponse } from "@avalanche-sdk/chainkit/models/components"; let value: GetTransactionResponse = { erc20Transfers: [ diff --git a/devtools/docs/models/components/globalparamnetwork.md b/chainkit/docs/models/components/globalparamnetwork.md similarity index 73% rename from devtools/docs/models/components/globalparamnetwork.md rename to chainkit/docs/models/components/globalparamnetwork.md index 56d28203..ead19016 100644 --- a/devtools/docs/models/components/globalparamnetwork.md +++ b/chainkit/docs/models/components/globalparamnetwork.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GlobalParamNetwork } from "@avalanche-sdk/devtools/models/components"; +import { GlobalParamNetwork } from "@avalanche-sdk/chainkit/models/components"; let value: GlobalParamNetwork = "mainnet"; ``` diff --git a/devtools/docs/models/components/healthcheckresultdto.md b/chainkit/docs/models/components/healthcheckresultdto.md similarity index 98% rename from devtools/docs/models/components/healthcheckresultdto.md rename to chainkit/docs/models/components/healthcheckresultdto.md index d78305e9..11f499d7 100644 --- a/devtools/docs/models/components/healthcheckresultdto.md +++ b/chainkit/docs/models/components/healthcheckresultdto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { HealthCheckResultDto } from "@avalanche-sdk/devtools/models/components"; +import { HealthCheckResultDto } from "@avalanche-sdk/chainkit/models/components"; let value: HealthCheckResultDto = { info: { diff --git a/devtools/docs/models/components/healthcheckresultdtostatus.md b/chainkit/docs/models/components/healthcheckresultdtostatus.md similarity index 66% rename from devtools/docs/models/components/healthcheckresultdtostatus.md rename to chainkit/docs/models/components/healthcheckresultdtostatus.md index 9065f620..41ea197d 100644 --- a/devtools/docs/models/components/healthcheckresultdtostatus.md +++ b/chainkit/docs/models/components/healthcheckresultdtostatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { HealthCheckResultDtoStatus } from "@avalanche-sdk/devtools/models/components"; +import { HealthCheckResultDtoStatus } from "@avalanche-sdk/chainkit/models/components"; let value: HealthCheckResultDtoStatus = "error"; ``` diff --git a/devtools/docs/models/components/healthindicatorresultdto.md b/chainkit/docs/models/components/healthindicatorresultdto.md similarity index 94% rename from devtools/docs/models/components/healthindicatorresultdto.md rename to chainkit/docs/models/components/healthindicatorresultdto.md index 790b30a2..78ea7baa 100644 --- a/devtools/docs/models/components/healthindicatorresultdto.md +++ b/chainkit/docs/models/components/healthindicatorresultdto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { HealthIndicatorResultDto } from "@avalanche-sdk/devtools/models/components"; +import { HealthIndicatorResultDto } from "@avalanche-sdk/chainkit/models/components"; let value: HealthIndicatorResultDto = {}; ``` diff --git a/devtools/docs/models/components/healthindicatorresultdtostatus.md b/chainkit/docs/models/components/healthindicatorresultdtostatus.md similarity index 68% rename from devtools/docs/models/components/healthindicatorresultdtostatus.md rename to chainkit/docs/models/components/healthindicatorresultdtostatus.md index 50e8ad13..1ffeaa0d 100644 --- a/devtools/docs/models/components/healthindicatorresultdtostatus.md +++ b/chainkit/docs/models/components/healthindicatorresultdtostatus.md @@ -5,7 +5,7 @@ Status of the health indicator. ## Example Usage ```typescript -import { HealthIndicatorResultDtoStatus } from "@avalanche-sdk/devtools/models/components"; +import { HealthIndicatorResultDtoStatus } from "@avalanche-sdk/chainkit/models/components"; let value: HealthIndicatorResultDtoStatus = "down"; ``` diff --git a/devtools/docs/models/components/historicalreward.md b/chainkit/docs/models/components/historicalreward.md similarity index 98% rename from devtools/docs/models/components/historicalreward.md rename to chainkit/docs/models/components/historicalreward.md index 0fe2ecd5..4d4d6d96 100644 --- a/devtools/docs/models/components/historicalreward.md +++ b/chainkit/docs/models/components/historicalreward.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { HistoricalReward } from "@avalanche-sdk/devtools/models/components"; +import { HistoricalReward } from "@avalanche-sdk/chainkit/models/components"; let value: HistoricalReward = { addresses: [ diff --git a/devtools/docs/models/components/icmdestinationtransaction.md b/chainkit/docs/models/components/icmdestinationtransaction.md similarity index 90% rename from devtools/docs/models/components/icmdestinationtransaction.md rename to chainkit/docs/models/components/icmdestinationtransaction.md index b3b8bdf8..ea9eecdd 100644 --- a/devtools/docs/models/components/icmdestinationtransaction.md +++ b/chainkit/docs/models/components/icmdestinationtransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IcmDestinationTransaction } from "@avalanche-sdk/devtools/models/components"; +import { IcmDestinationTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: IcmDestinationTransaction = { txHash: "", diff --git a/devtools/docs/models/components/icmreceipt.md b/chainkit/docs/models/components/icmreceipt.md similarity index 90% rename from devtools/docs/models/components/icmreceipt.md rename to chainkit/docs/models/components/icmreceipt.md index b9ff8951..58ecada0 100644 --- a/devtools/docs/models/components/icmreceipt.md +++ b/chainkit/docs/models/components/icmreceipt.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IcmReceipt } from "@avalanche-sdk/devtools/models/components"; +import { IcmReceipt } from "@avalanche-sdk/chainkit/models/components"; let value: IcmReceipt = { receivedMessageNonce: "", diff --git a/devtools/docs/models/components/icmrewarddetails.md b/chainkit/docs/models/components/icmrewarddetails.md similarity index 99% rename from devtools/docs/models/components/icmrewarddetails.md rename to chainkit/docs/models/components/icmrewarddetails.md index 5c893f07..60c8d0ca 100644 --- a/devtools/docs/models/components/icmrewarddetails.md +++ b/chainkit/docs/models/components/icmrewarddetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IcmRewardDetails } from "@avalanche-sdk/devtools/models/components"; +import { IcmRewardDetails } from "@avalanche-sdk/chainkit/models/components"; let value: IcmRewardDetails = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/icmrewarddetailserctype.md b/chainkit/docs/models/components/icmrewarddetailserctype.md similarity index 72% rename from devtools/docs/models/components/icmrewarddetailserctype.md rename to chainkit/docs/models/components/icmrewarddetailserctype.md index 3ad619a9..a9434cbf 100644 --- a/devtools/docs/models/components/icmrewarddetailserctype.md +++ b/chainkit/docs/models/components/icmrewarddetailserctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IcmRewardDetailsErcType } from "@avalanche-sdk/devtools/models/components"; +import { IcmRewardDetailsErcType } from "@avalanche-sdk/chainkit/models/components"; let value: IcmRewardDetailsErcType = "ERC-20"; ``` diff --git a/devtools/docs/models/components/icmsourcetransaction.md b/chainkit/docs/models/components/icmsourcetransaction.md similarity index 90% rename from devtools/docs/models/components/icmsourcetransaction.md rename to chainkit/docs/models/components/icmsourcetransaction.md index c2ac4bc3..3edd293c 100644 --- a/devtools/docs/models/components/icmsourcetransaction.md +++ b/chainkit/docs/models/components/icmsourcetransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IcmSourceTransaction } from "@avalanche-sdk/devtools/models/components"; +import { IcmSourceTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: IcmSourceTransaction = { txHash: "", diff --git a/devtools/docs/models/components/imageasset.md b/chainkit/docs/models/components/imageasset.md similarity index 87% rename from devtools/docs/models/components/imageasset.md rename to chainkit/docs/models/components/imageasset.md index b07b5ea0..98afa6fe 100644 --- a/devtools/docs/models/components/imageasset.md +++ b/chainkit/docs/models/components/imageasset.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ImageAsset } from "@avalanche-sdk/devtools/models/components"; +import { ImageAsset } from "@avalanche-sdk/chainkit/models/components"; let value: ImageAsset = {}; ``` diff --git a/devtools/docs/models/components/includechain.md b/chainkit/docs/models/components/includechain.md similarity index 86% rename from devtools/docs/models/components/includechain.md rename to chainkit/docs/models/components/includechain.md index f8043cd5..25b16cf2 100644 --- a/devtools/docs/models/components/includechain.md +++ b/chainkit/docs/models/components/includechain.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { IncludeChain } from "@avalanche-sdk/devtools/models/components"; +import { IncludeChain } from "@avalanche-sdk/chainkit/models/components"; let value: IncludeChain = "p-chain"; ``` diff --git a/devtools/docs/models/components/internaltransaction.md b/chainkit/docs/models/components/internaltransaction.md similarity index 99% rename from devtools/docs/models/components/internaltransaction.md rename to chainkit/docs/models/components/internaltransaction.md index 60b5264a..8a756116 100644 --- a/devtools/docs/models/components/internaltransaction.md +++ b/chainkit/docs/models/components/internaltransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalTransaction } from "@avalanche-sdk/devtools/models/components"; +import { InternalTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: InternalTransaction = { blockNumber: "339", diff --git a/devtools/docs/models/components/internaltransactiondetails.md b/chainkit/docs/models/components/internaltransactiondetails.md similarity index 98% rename from devtools/docs/models/components/internaltransactiondetails.md rename to chainkit/docs/models/components/internaltransactiondetails.md index b50bdc1a..e4e266e9 100644 --- a/devtools/docs/models/components/internaltransactiondetails.md +++ b/chainkit/docs/models/components/internaltransactiondetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalTransactionDetails } from "@avalanche-sdk/devtools/models/components"; +import { InternalTransactionDetails } from "@avalanche-sdk/chainkit/models/components"; let value: InternalTransactionDetails = { from: { diff --git a/devtools/docs/models/components/internaltransactionopcall.md b/chainkit/docs/models/components/internaltransactionopcall.md similarity index 73% rename from devtools/docs/models/components/internaltransactionopcall.md rename to chainkit/docs/models/components/internaltransactionopcall.md index 8a3fe2ec..47c349ed 100644 --- a/devtools/docs/models/components/internaltransactionopcall.md +++ b/chainkit/docs/models/components/internaltransactionopcall.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalTransactionOpCall } from "@avalanche-sdk/devtools/models/components"; +import { InternalTransactionOpCall } from "@avalanche-sdk/chainkit/models/components"; let value: InternalTransactionOpCall = "STATICCALL"; ``` diff --git a/devtools/docs/models/components/l1validatordetailsfull.md b/chainkit/docs/models/components/l1validatordetailsfull.md similarity index 99% rename from devtools/docs/models/components/l1validatordetailsfull.md rename to chainkit/docs/models/components/l1validatordetailsfull.md index 044f3943..69e2adf4 100644 --- a/devtools/docs/models/components/l1validatordetailsfull.md +++ b/chainkit/docs/models/components/l1validatordetailsfull.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { L1ValidatorDetailsFull } from "@avalanche-sdk/devtools/models/components"; +import { L1ValidatorDetailsFull } from "@avalanche-sdk/chainkit/models/components"; let value: L1ValidatorDetailsFull = { validationId: "", diff --git a/devtools/docs/models/components/l1validatordetailsfullblscredentials.md b/chainkit/docs/models/components/l1validatordetailsfullblscredentials.md similarity index 90% rename from devtools/docs/models/components/l1validatordetailsfullblscredentials.md rename to chainkit/docs/models/components/l1validatordetailsfullblscredentials.md index 82a77891..575ac226 100644 --- a/devtools/docs/models/components/l1validatordetailsfullblscredentials.md +++ b/chainkit/docs/models/components/l1validatordetailsfullblscredentials.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { L1ValidatorDetailsFullBlsCredentials } from "@avalanche-sdk/devtools/models/components"; +import { L1ValidatorDetailsFullBlsCredentials } from "@avalanche-sdk/chainkit/models/components"; let value: L1ValidatorDetailsFullBlsCredentials = {}; ``` diff --git a/devtools/docs/models/components/l1validatordetailstransaction.md b/chainkit/docs/models/components/l1validatordetailstransaction.md similarity index 98% rename from devtools/docs/models/components/l1validatordetailstransaction.md rename to chainkit/docs/models/components/l1validatordetailstransaction.md index 181bd5b0..2a527edb 100644 --- a/devtools/docs/models/components/l1validatordetailstransaction.md +++ b/chainkit/docs/models/components/l1validatordetailstransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { L1ValidatorDetailsTransaction } from "@avalanche-sdk/devtools/models/components"; +import { L1ValidatorDetailsTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: L1ValidatorDetailsTransaction = { validationId: "", diff --git a/devtools/docs/models/components/l1validatordetailstransactionblscredentials.md b/chainkit/docs/models/components/l1validatordetailstransactionblscredentials.md similarity index 89% rename from devtools/docs/models/components/l1validatordetailstransactionblscredentials.md rename to chainkit/docs/models/components/l1validatordetailstransactionblscredentials.md index 36fab3ab..d20def11 100644 --- a/devtools/docs/models/components/l1validatordetailstransactionblscredentials.md +++ b/chainkit/docs/models/components/l1validatordetailstransactionblscredentials.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { L1ValidatorDetailsTransactionBlsCredentials } from "@avalanche-sdk/devtools/models/components"; +import { L1ValidatorDetailsTransactionBlsCredentials } from "@avalanche-sdk/chainkit/models/components"; let value: L1ValidatorDetailsTransactionBlsCredentials = {}; ``` diff --git a/devtools/docs/models/components/l1validatormanagerdetails.md b/chainkit/docs/models/components/l1validatormanagerdetails.md similarity index 85% rename from devtools/docs/models/components/l1validatormanagerdetails.md rename to chainkit/docs/models/components/l1validatormanagerdetails.md index 3665ce7f..8e5c34c3 100644 --- a/devtools/docs/models/components/l1validatormanagerdetails.md +++ b/chainkit/docs/models/components/l1validatormanagerdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { L1ValidatorManagerDetails } from "@avalanche-sdk/devtools/models/components"; +import { L1ValidatorManagerDetails } from "@avalanche-sdk/chainkit/models/components"; let value: L1ValidatorManagerDetails = { blockchainId: "", diff --git a/devtools/docs/models/components/listaddresschainsresponse.md b/chainkit/docs/models/components/listaddresschainsresponse.md similarity index 95% rename from devtools/docs/models/components/listaddresschainsresponse.md rename to chainkit/docs/models/components/listaddresschainsresponse.md index 560062bc..21101b71 100644 --- a/devtools/docs/models/components/listaddresschainsresponse.md +++ b/chainkit/docs/models/components/listaddresschainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAddressChainsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListAddressChainsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListAddressChainsResponse = { indexedChains: [ diff --git a/devtools/docs/models/components/listblockchainsresponse.md b/chainkit/docs/models/components/listblockchainsresponse.md similarity index 97% rename from devtools/docs/models/components/listblockchainsresponse.md rename to chainkit/docs/models/components/listblockchainsresponse.md index 16c9ad15..9e868d92 100644 --- a/devtools/docs/models/components/listblockchainsresponse.md +++ b/chainkit/docs/models/components/listblockchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListBlockchainsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListBlockchainsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListBlockchainsResponse = { blockchains: [], diff --git a/devtools/docs/models/components/listcchainatomicbalancesresponse.md b/chainkit/docs/models/components/listcchainatomicbalancesresponse.md similarity index 98% rename from devtools/docs/models/components/listcchainatomicbalancesresponse.md rename to chainkit/docs/models/components/listcchainatomicbalancesresponse.md index 62d157e0..ca531ed9 100644 --- a/devtools/docs/models/components/listcchainatomicbalancesresponse.md +++ b/chainkit/docs/models/components/listcchainatomicbalancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCChainAtomicBalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListCChainAtomicBalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListCChainAtomicBalancesResponse = { balances: { diff --git a/devtools/docs/models/components/listcchainatomictransactionsresponse.md b/chainkit/docs/models/components/listcchainatomictransactionsresponse.md similarity index 99% rename from devtools/docs/models/components/listcchainatomictransactionsresponse.md rename to chainkit/docs/models/components/listcchainatomictransactionsresponse.md index c9f29869..f6bd3ece 100644 --- a/devtools/docs/models/components/listcchainatomictransactionsresponse.md +++ b/chainkit/docs/models/components/listcchainatomictransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCChainAtomicTransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListCChainAtomicTransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListCChainAtomicTransactionsResponse = { transactions: [ diff --git a/devtools/docs/models/components/listcchainatomictransactionsresponsetransaction.md b/chainkit/docs/models/components/listcchainatomictransactionsresponsetransaction.md similarity index 100% rename from devtools/docs/models/components/listcchainatomictransactionsresponsetransaction.md rename to chainkit/docs/models/components/listcchainatomictransactionsresponsetransaction.md diff --git a/devtools/docs/models/components/listcollectiblebalancesresponse.md b/chainkit/docs/models/components/listcollectiblebalancesresponse.md similarity index 98% rename from devtools/docs/models/components/listcollectiblebalancesresponse.md rename to chainkit/docs/models/components/listcollectiblebalancesresponse.md index 94d82c20..6f1c687b 100644 --- a/devtools/docs/models/components/listcollectiblebalancesresponse.md +++ b/chainkit/docs/models/components/listcollectiblebalancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCollectibleBalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListCollectibleBalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListCollectibleBalancesResponse = { collectibleBalances: [], diff --git a/devtools/docs/models/components/listcontractsresponse.md b/chainkit/docs/models/components/listcontractsresponse.md similarity index 97% rename from devtools/docs/models/components/listcontractsresponse.md rename to chainkit/docs/models/components/listcontractsresponse.md index 6254d1b8..7eae339e 100644 --- a/devtools/docs/models/components/listcontractsresponse.md +++ b/chainkit/docs/models/components/listcontractsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListContractsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListContractsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListContractsResponse = { contracts: [ diff --git a/devtools/docs/models/components/listdelegatordetailsresponse.md b/chainkit/docs/models/components/listdelegatordetailsresponse.md similarity index 96% rename from devtools/docs/models/components/listdelegatordetailsresponse.md rename to chainkit/docs/models/components/listdelegatordetailsresponse.md index 052e7875..0584b64f 100644 --- a/devtools/docs/models/components/listdelegatordetailsresponse.md +++ b/chainkit/docs/models/components/listdelegatordetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDelegatorDetailsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListDelegatorDetailsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListDelegatorDetailsResponse = { delegators: [ diff --git a/devtools/docs/models/components/listerc1155balancesresponse.md b/chainkit/docs/models/components/listerc1155balancesresponse.md similarity index 97% rename from devtools/docs/models/components/listerc1155balancesresponse.md rename to chainkit/docs/models/components/listerc1155balancesresponse.md index 1ea39eeb..4ea36ddb 100644 --- a/devtools/docs/models/components/listerc1155balancesresponse.md +++ b/chainkit/docs/models/components/listerc1155balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155BalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc1155BalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc1155BalancesResponse = { nativeTokenBalance: { diff --git a/devtools/docs/models/components/listerc1155transactionsresponse.md b/chainkit/docs/models/components/listerc1155transactionsresponse.md similarity index 98% rename from devtools/docs/models/components/listerc1155transactionsresponse.md rename to chainkit/docs/models/components/listerc1155transactionsresponse.md index 8d0f11f7..a09eacbb 100644 --- a/devtools/docs/models/components/listerc1155transactionsresponse.md +++ b/chainkit/docs/models/components/listerc1155transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155TransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc1155TransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc1155TransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listerc20balancesresponse.md b/chainkit/docs/models/components/listerc20balancesresponse.md similarity index 97% rename from devtools/docs/models/components/listerc20balancesresponse.md rename to chainkit/docs/models/components/listerc20balancesresponse.md index 35494a47..28d1056b 100644 --- a/devtools/docs/models/components/listerc20balancesresponse.md +++ b/chainkit/docs/models/components/listerc20balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20BalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc20BalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc20BalancesResponse = { nativeTokenBalance: { diff --git a/devtools/docs/models/components/listerc20transactionsresponse.md b/chainkit/docs/models/components/listerc20transactionsresponse.md similarity index 96% rename from devtools/docs/models/components/listerc20transactionsresponse.md rename to chainkit/docs/models/components/listerc20transactionsresponse.md index 39e5d368..6d16aa0e 100644 --- a/devtools/docs/models/components/listerc20transactionsresponse.md +++ b/chainkit/docs/models/components/listerc20transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20TransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc20TransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc20TransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listerc721balancesresponse.md b/chainkit/docs/models/components/listerc721balancesresponse.md similarity index 97% rename from devtools/docs/models/components/listerc721balancesresponse.md rename to chainkit/docs/models/components/listerc721balancesresponse.md index c2d2d32f..17ad98ae 100644 --- a/devtools/docs/models/components/listerc721balancesresponse.md +++ b/chainkit/docs/models/components/listerc721balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721BalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc721BalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc721BalancesResponse = { nativeTokenBalance: { diff --git a/devtools/docs/models/components/listerc721transactionsresponse.md b/chainkit/docs/models/components/listerc721transactionsresponse.md similarity index 96% rename from devtools/docs/models/components/listerc721transactionsresponse.md rename to chainkit/docs/models/components/listerc721transactionsresponse.md index f47e4bc4..33339c3a 100644 --- a/devtools/docs/models/components/listerc721transactionsresponse.md +++ b/chainkit/docs/models/components/listerc721transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721TransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListErc721TransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListErc721TransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listevmblocksresponse.md b/chainkit/docs/models/components/listevmblocksresponse.md similarity index 97% rename from devtools/docs/models/components/listevmblocksresponse.md rename to chainkit/docs/models/components/listevmblocksresponse.md index 5a358acf..e1bc3507 100644 --- a/devtools/docs/models/components/listevmblocksresponse.md +++ b/chainkit/docs/models/components/listevmblocksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListEvmBlocksResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListEvmBlocksResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListEvmBlocksResponse = { blocks: [], diff --git a/devtools/docs/models/components/listhistoricalrewardsresponse.md b/chainkit/docs/models/components/listhistoricalrewardsresponse.md similarity index 97% rename from devtools/docs/models/components/listhistoricalrewardsresponse.md rename to chainkit/docs/models/components/listhistoricalrewardsresponse.md index 1914d719..b96cacdc 100644 --- a/devtools/docs/models/components/listhistoricalrewardsresponse.md +++ b/chainkit/docs/models/components/listhistoricalrewardsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHistoricalRewardsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListHistoricalRewardsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListHistoricalRewardsResponse = { historicalRewards: [ diff --git a/devtools/docs/models/components/listicmmessagesresponse.md b/chainkit/docs/models/components/listicmmessagesresponse.md similarity index 97% rename from devtools/docs/models/components/listicmmessagesresponse.md rename to chainkit/docs/models/components/listicmmessagesresponse.md index 6c0f32c7..53a57f5a 100644 --- a/devtools/docs/models/components/listicmmessagesresponse.md +++ b/chainkit/docs/models/components/listicmmessagesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListIcmMessagesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListIcmMessagesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListIcmMessagesResponse = { messages: [], diff --git a/devtools/docs/models/components/listicmmessagesresponsemessage.md b/chainkit/docs/models/components/listicmmessagesresponsemessage.md similarity index 100% rename from devtools/docs/models/components/listicmmessagesresponsemessage.md rename to chainkit/docs/models/components/listicmmessagesresponsemessage.md index a3b31c6b..af41e97f 100644 --- a/devtools/docs/models/components/listicmmessagesresponsemessage.md +++ b/chainkit/docs/models/components/listicmmessagesresponsemessage.md @@ -3,10 +3,10 @@ ## Supported Types -### `components.DeliveredIcmMessage` +### `components.PendingIcmMessage` ```typescript -const value: components.DeliveredIcmMessage = { +const value: components.PendingIcmMessage = { messageId: "", icmContractAddress: "", sourceBlockchainId: "", @@ -16,9 +16,9 @@ const value: components.DeliveredIcmMessage = { messageNonce: "", from: "", to: "", - messageExecuted: true, + messageExecuted: false, receipts: [], - receiptDelivered: true, + receiptDelivered: false, rewardDetails: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", @@ -38,21 +38,14 @@ const value: components.DeliveredIcmMessage = { timestamp: 6459.73, gasSpent: "", }, - destinationTransaction: { - txHash: "", - timestamp: 8250.11, - gasSpent: "", - rewardRedeemer: "", - delivererAddress: "", - }, - status: "delivered", + status: "pending", }; ``` -### `components.PendingIcmMessage` +### `components.DeliveredIcmMessage` ```typescript -const value: components.PendingIcmMessage = { +const value: components.DeliveredIcmMessage = { messageId: "", icmContractAddress: "", sourceBlockchainId: "", @@ -62,9 +55,9 @@ const value: components.PendingIcmMessage = { messageNonce: "", from: "", to: "", - messageExecuted: false, + messageExecuted: true, receipts: [], - receiptDelivered: false, + receiptDelivered: true, rewardDetails: { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", name: "Wrapped AVAX", @@ -84,7 +77,14 @@ const value: components.PendingIcmMessage = { timestamp: 6459.73, gasSpent: "", }, - status: "pending", + destinationTransaction: { + txHash: "", + timestamp: 8250.11, + gasSpent: "", + rewardRedeemer: "", + delivererAddress: "", + }, + status: "delivered", }; ``` diff --git a/devtools/docs/models/components/listinternaltransactionsresponse.md b/chainkit/docs/models/components/listinternaltransactionsresponse.md similarity index 98% rename from devtools/docs/models/components/listinternaltransactionsresponse.md rename to chainkit/docs/models/components/listinternaltransactionsresponse.md index 49d27f3c..be75ac83 100644 --- a/devtools/docs/models/components/listinternaltransactionsresponse.md +++ b/chainkit/docs/models/components/listinternaltransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListInternalTransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListInternalTransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListInternalTransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listl1validatorsresponse.md b/chainkit/docs/models/components/listl1validatorsresponse.md similarity index 97% rename from devtools/docs/models/components/listl1validatorsresponse.md rename to chainkit/docs/models/components/listl1validatorsresponse.md index 134f08a7..231488f1 100644 --- a/devtools/docs/models/components/listl1validatorsresponse.md +++ b/chainkit/docs/models/components/listl1validatorsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListL1ValidatorsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListL1ValidatorsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListL1ValidatorsResponse = { validators: [ diff --git a/devtools/docs/models/components/listnativetransactionsresponse.md b/chainkit/docs/models/components/listnativetransactionsresponse.md similarity index 96% rename from devtools/docs/models/components/listnativetransactionsresponse.md rename to chainkit/docs/models/components/listnativetransactionsresponse.md index 73cc8a56..ba7d5910 100644 --- a/devtools/docs/models/components/listnativetransactionsresponse.md +++ b/chainkit/docs/models/components/listnativetransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListNativeTransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListNativeTransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListNativeTransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listnfttokens.md b/chainkit/docs/models/components/listnfttokens.md similarity index 97% rename from devtools/docs/models/components/listnfttokens.md rename to chainkit/docs/models/components/listnfttokens.md index ac5da5bc..a0837d97 100644 --- a/devtools/docs/models/components/listnfttokens.md +++ b/chainkit/docs/models/components/listnfttokens.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListNftTokens } from "@avalanche-sdk/devtools/models/components"; +import { ListNftTokens } from "@avalanche-sdk/chainkit/models/components"; let value: ListNftTokens = { tokens: [ diff --git a/devtools/docs/models/components/listpchainbalancesresponse.md b/chainkit/docs/models/components/listpchainbalancesresponse.md similarity index 96% rename from devtools/docs/models/components/listpchainbalancesresponse.md rename to chainkit/docs/models/components/listpchainbalancesresponse.md index 9f5a8dac..634918ca 100644 --- a/devtools/docs/models/components/listpchainbalancesresponse.md +++ b/chainkit/docs/models/components/listpchainbalancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPChainBalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListPChainBalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListPChainBalancesResponse = { balances: { diff --git a/devtools/docs/models/components/listpchaintransactionsresponse.md b/chainkit/docs/models/components/listpchaintransactionsresponse.md similarity index 97% rename from devtools/docs/models/components/listpchaintransactionsresponse.md rename to chainkit/docs/models/components/listpchaintransactionsresponse.md index b349aec0..95548777 100644 --- a/devtools/docs/models/components/listpchaintransactionsresponse.md +++ b/chainkit/docs/models/components/listpchaintransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPChainTransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListPChainTransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListPChainTransactionsResponse = { transactions: [ diff --git a/devtools/docs/models/components/listpchainutxosresponse.md b/chainkit/docs/models/components/listpchainutxosresponse.md similarity index 98% rename from devtools/docs/models/components/listpchainutxosresponse.md rename to chainkit/docs/models/components/listpchainutxosresponse.md index 6cf04a7c..6bb2a0f7 100644 --- a/devtools/docs/models/components/listpchainutxosresponse.md +++ b/chainkit/docs/models/components/listpchainutxosresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPChainUtxosResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListPChainUtxosResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListPChainUtxosResponse = { utxos: [ diff --git a/devtools/docs/models/components/listpendingrewardsresponse.md b/chainkit/docs/models/components/listpendingrewardsresponse.md similarity index 97% rename from devtools/docs/models/components/listpendingrewardsresponse.md rename to chainkit/docs/models/components/listpendingrewardsresponse.md index e843aa76..c7c3086d 100644 --- a/devtools/docs/models/components/listpendingrewardsresponse.md +++ b/chainkit/docs/models/components/listpendingrewardsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPendingRewardsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListPendingRewardsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListPendingRewardsResponse = { pendingRewards: [ diff --git a/devtools/docs/models/components/listprimarynetworkblocksresponse.md b/chainkit/docs/models/components/listprimarynetworkblocksresponse.md similarity index 99% rename from devtools/docs/models/components/listprimarynetworkblocksresponse.md rename to chainkit/docs/models/components/listprimarynetworkblocksresponse.md index 2530b6fb..3ea80b80 100644 --- a/devtools/docs/models/components/listprimarynetworkblocksresponse.md +++ b/chainkit/docs/models/components/listprimarynetworkblocksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPrimaryNetworkBlocksResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListPrimaryNetworkBlocksResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListPrimaryNetworkBlocksResponse = { blocks: [], diff --git a/devtools/docs/models/components/listsubnetsresponse.md b/chainkit/docs/models/components/listsubnetsresponse.md similarity index 97% rename from devtools/docs/models/components/listsubnetsresponse.md rename to chainkit/docs/models/components/listsubnetsresponse.md index aafa9bc0..44f7d513 100644 --- a/devtools/docs/models/components/listsubnetsresponse.md +++ b/chainkit/docs/models/components/listsubnetsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSubnetsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListSubnetsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListSubnetsResponse = { subnets: [], diff --git a/devtools/docs/models/components/listteleportermessagesresponse.md b/chainkit/docs/models/components/listteleportermessagesresponse.md similarity index 96% rename from devtools/docs/models/components/listteleportermessagesresponse.md rename to chainkit/docs/models/components/listteleportermessagesresponse.md index 69c1f64f..92237336 100644 --- a/devtools/docs/models/components/listteleportermessagesresponse.md +++ b/chainkit/docs/models/components/listteleportermessagesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTeleporterMessagesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListTeleporterMessagesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListTeleporterMessagesResponse = { messages: [], diff --git a/devtools/docs/models/components/listteleportermessagesresponsemessage.md b/chainkit/docs/models/components/listteleportermessagesresponsemessage.md similarity index 100% rename from devtools/docs/models/components/listteleportermessagesresponsemessage.md rename to chainkit/docs/models/components/listteleportermessagesresponsemessage.md diff --git a/devtools/docs/models/components/listtransactiondetailsresponse.md b/chainkit/docs/models/components/listtransactiondetailsresponse.md similarity index 98% rename from devtools/docs/models/components/listtransactiondetailsresponse.md rename to chainkit/docs/models/components/listtransactiondetailsresponse.md index 2d50ac8d..9e6765f5 100644 --- a/devtools/docs/models/components/listtransactiondetailsresponse.md +++ b/chainkit/docs/models/components/listtransactiondetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransactionDetailsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListTransactionDetailsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListTransactionDetailsResponse = { transactions: [ diff --git a/devtools/docs/models/components/listtransfersresponse.md b/chainkit/docs/models/components/listtransfersresponse.md similarity index 97% rename from devtools/docs/models/components/listtransfersresponse.md rename to chainkit/docs/models/components/listtransfersresponse.md index 2916a566..f838da63 100644 --- a/devtools/docs/models/components/listtransfersresponse.md +++ b/chainkit/docs/models/components/listtransfersresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransfersResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListTransfersResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListTransfersResponse = { transfers: [], diff --git a/devtools/docs/models/components/listutxosresponse.md b/chainkit/docs/models/components/listutxosresponse.md similarity index 98% rename from devtools/docs/models/components/listutxosresponse.md rename to chainkit/docs/models/components/listutxosresponse.md index de45d3ac..dea3e820 100644 --- a/devtools/docs/models/components/listutxosresponse.md +++ b/chainkit/docs/models/components/listutxosresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListUtxosResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListUtxosResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListUtxosResponse = { utxos: [ diff --git a/devtools/docs/models/components/listvalidatordetailsresponse.md b/chainkit/docs/models/components/listvalidatordetailsresponse.md similarity index 96% rename from devtools/docs/models/components/listvalidatordetailsresponse.md rename to chainkit/docs/models/components/listvalidatordetailsresponse.md index 93b55d3b..c19206c1 100644 --- a/devtools/docs/models/components/listvalidatordetailsresponse.md +++ b/chainkit/docs/models/components/listvalidatordetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListValidatorDetailsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListValidatorDetailsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListValidatorDetailsResponse = { validators: [], diff --git a/devtools/docs/models/components/listwebhookaddressesresponse.md b/chainkit/docs/models/components/listwebhookaddressesresponse.md similarity index 97% rename from devtools/docs/models/components/listwebhookaddressesresponse.md rename to chainkit/docs/models/components/listwebhookaddressesresponse.md index 480b53a2..3b74133d 100644 --- a/devtools/docs/models/components/listwebhookaddressesresponse.md +++ b/chainkit/docs/models/components/listwebhookaddressesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListWebhookAddressesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListWebhookAddressesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListWebhookAddressesResponse = { addresses: [ diff --git a/devtools/docs/models/components/listwebhooksresponse.md b/chainkit/docs/models/components/listwebhooksresponse.md similarity index 97% rename from devtools/docs/models/components/listwebhooksresponse.md rename to chainkit/docs/models/components/listwebhooksresponse.md index e17b7718..0a2ce85b 100644 --- a/devtools/docs/models/components/listwebhooksresponse.md +++ b/chainkit/docs/models/components/listwebhooksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListWebhooksResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListWebhooksResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListWebhooksResponse = { webhooks: [], diff --git a/devtools/docs/models/components/listxchainbalancesresponse.md b/chainkit/docs/models/components/listxchainbalancesresponse.md similarity index 95% rename from devtools/docs/models/components/listxchainbalancesresponse.md rename to chainkit/docs/models/components/listxchainbalancesresponse.md index c6b6629a..deaf9fb0 100644 --- a/devtools/docs/models/components/listxchainbalancesresponse.md +++ b/chainkit/docs/models/components/listxchainbalancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListXChainBalancesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListXChainBalancesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListXChainBalancesResponse = { balances: { diff --git a/devtools/docs/models/components/listxchaintransactionsresponse.md b/chainkit/docs/models/components/listxchaintransactionsresponse.md similarity index 96% rename from devtools/docs/models/components/listxchaintransactionsresponse.md rename to chainkit/docs/models/components/listxchaintransactionsresponse.md index 470b1bf4..00ef8b56 100644 --- a/devtools/docs/models/components/listxchaintransactionsresponse.md +++ b/chainkit/docs/models/components/listxchaintransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListXChainTransactionsResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListXChainTransactionsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListXChainTransactionsResponse = { transactions: [], diff --git a/devtools/docs/models/components/listxchaintransactionsresponsetransaction.md b/chainkit/docs/models/components/listxchaintransactionsresponsetransaction.md similarity index 100% rename from devtools/docs/models/components/listxchaintransactionsresponsetransaction.md rename to chainkit/docs/models/components/listxchaintransactionsresponsetransaction.md diff --git a/devtools/docs/models/components/listxchainverticesresponse.md b/chainkit/docs/models/components/listxchainverticesresponse.md similarity index 97% rename from devtools/docs/models/components/listxchainverticesresponse.md rename to chainkit/docs/models/components/listxchainverticesresponse.md index 3248aa39..a5290b53 100644 --- a/devtools/docs/models/components/listxchainverticesresponse.md +++ b/chainkit/docs/models/components/listxchainverticesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListXChainVerticesResponse } from "@avalanche-sdk/devtools/models/components"; +import { ListXChainVerticesResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ListXChainVerticesResponse = { vertices: [ diff --git a/devtools/docs/models/components/log.md b/chainkit/docs/models/components/log.md similarity index 98% rename from devtools/docs/models/components/log.md rename to chainkit/docs/models/components/log.md index 45a5f9a3..1889f381 100644 --- a/devtools/docs/models/components/log.md +++ b/chainkit/docs/models/components/log.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Log } from "@avalanche-sdk/devtools/models/components"; +import { Log } from "@avalanche-sdk/chainkit/models/components"; let value: Log = { address: "0x54C800d2331E10467143911aabCa092d68bF4166", diff --git a/devtools/docs/models/components/logsformat.md b/chainkit/docs/models/components/logsformat.md similarity index 98% rename from devtools/docs/models/components/logsformat.md rename to chainkit/docs/models/components/logsformat.md index 22a362a8..06380c4f 100644 --- a/devtools/docs/models/components/logsformat.md +++ b/chainkit/docs/models/components/logsformat.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogsFormat } from "@avalanche-sdk/devtools/models/components"; +import { LogsFormat } from "@avalanche-sdk/chainkit/models/components"; let value: LogsFormat = { orgId: "", diff --git a/devtools/docs/models/components/logsformatmetadata.md b/chainkit/docs/models/components/logsformatmetadata.md similarity index 95% rename from devtools/docs/models/components/logsformatmetadata.md rename to chainkit/docs/models/components/logsformatmetadata.md index bb0ecff7..379e52cd 100644 --- a/devtools/docs/models/components/logsformatmetadata.md +++ b/chainkit/docs/models/components/logsformatmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogsFormatMetadata } from "@avalanche-sdk/devtools/models/components"; +import { LogsFormatMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: LogsFormatMetadata = { ipAddress: "6096:abfc:d0e7:8753:846d:4ace:cf2a:e4bb", diff --git a/devtools/docs/models/components/logsresponsedto.md b/chainkit/docs/models/components/logsresponsedto.md similarity index 97% rename from devtools/docs/models/components/logsresponsedto.md rename to chainkit/docs/models/components/logsresponsedto.md index 1a164631..acf42681 100644 --- a/devtools/docs/models/components/logsresponsedto.md +++ b/chainkit/docs/models/components/logsresponsedto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LogsResponseDTO } from "@avalanche-sdk/devtools/models/components"; +import { LogsResponseDTO } from "@avalanche-sdk/chainkit/models/components"; let value: LogsResponseDTO = { orgId: "", diff --git a/devtools/docs/models/components/lookingglassresponse.md b/chainkit/docs/models/components/lookingglassresponse.md similarity index 97% rename from devtools/docs/models/components/lookingglassresponse.md rename to chainkit/docs/models/components/lookingglassresponse.md index 524f0301..94fcca4d 100644 --- a/devtools/docs/models/components/lookingglassresponse.md +++ b/chainkit/docs/models/components/lookingglassresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { LookingGlassResponse } from "@avalanche-sdk/devtools/models/components"; +import { LookingGlassResponse } from "@avalanche-sdk/chainkit/models/components"; let value: LookingGlassResponse = { addresses: [ diff --git a/devtools/docs/models/components/method.md b/chainkit/docs/models/components/method.md similarity index 98% rename from devtools/docs/models/components/method.md rename to chainkit/docs/models/components/method.md index 84083c07..6529b5b0 100644 --- a/devtools/docs/models/components/method.md +++ b/chainkit/docs/models/components/method.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Method } from "@avalanche-sdk/devtools/models/components"; +import { Method } from "@avalanche-sdk/chainkit/models/components"; let value: Method = { callType: "NATIVE_TRANSFER", diff --git a/devtools/docs/models/components/metric.md b/chainkit/docs/models/components/metric.md similarity index 95% rename from devtools/docs/models/components/metric.md rename to chainkit/docs/models/components/metric.md index 9a32dd6b..c9d923ad 100644 --- a/devtools/docs/models/components/metric.md +++ b/chainkit/docs/models/components/metric.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Metric } from "@avalanche-sdk/devtools/models/components"; +import { Metric } from "@avalanche-sdk/chainkit/models/components"; let value: Metric = { timestamp: 8029.57, diff --git a/devtools/docs/models/components/metricsapiresponse.md b/chainkit/docs/models/components/metricsapiresponse.md similarity index 97% rename from devtools/docs/models/components/metricsapiresponse.md rename to chainkit/docs/models/components/metricsapiresponse.md index 1cfd9b20..d81d8c40 100644 --- a/devtools/docs/models/components/metricsapiresponse.md +++ b/chainkit/docs/models/components/metricsapiresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MetricsApiResponse } from "@avalanche-sdk/devtools/models/components"; +import { MetricsApiResponse } from "@avalanche-sdk/chainkit/models/components"; let value: MetricsApiResponse = { results: [ diff --git a/devtools/docs/models/components/metricslistchainsresponse.md b/chainkit/docs/models/components/metricslistchainsresponse.md similarity index 96% rename from devtools/docs/models/components/metricslistchainsresponse.md rename to chainkit/docs/models/components/metricslistchainsresponse.md index 932c77be..d5a8526d 100644 --- a/devtools/docs/models/components/metricslistchainsresponse.md +++ b/chainkit/docs/models/components/metricslistchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MetricsListChainsResponse } from "@avalanche-sdk/devtools/models/components"; +import { MetricsListChainsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: MetricsListChainsResponse = { chains: [ diff --git a/devtools/docs/models/components/metricsvalue.md b/chainkit/docs/models/components/metricsvalue.md similarity index 97% rename from devtools/docs/models/components/metricsvalue.md rename to chainkit/docs/models/components/metricsvalue.md index 02e18d41..bde122e3 100644 --- a/devtools/docs/models/components/metricsvalue.md +++ b/chainkit/docs/models/components/metricsvalue.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { MetricsValue } from "@avalanche-sdk/devtools/models/components"; +import { MetricsValue } from "@avalanche-sdk/chainkit/models/components"; let value: MetricsValue = { value: 5945.62, diff --git a/devtools/docs/models/components/money.md b/chainkit/docs/models/components/money.md similarity index 95% rename from devtools/docs/models/components/money.md rename to chainkit/docs/models/components/money.md index 0d5f7615..84fcb63b 100644 --- a/devtools/docs/models/components/money.md +++ b/chainkit/docs/models/components/money.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Money } from "@avalanche-sdk/devtools/models/components"; +import { Money } from "@avalanche-sdk/chainkit/models/components"; let value: Money = { currencyCode: "usd", diff --git a/devtools/docs/models/components/nativetokenbalance.md b/chainkit/docs/models/components/nativetokenbalance.md similarity index 99% rename from devtools/docs/models/components/nativetokenbalance.md rename to chainkit/docs/models/components/nativetokenbalance.md index ca326bd1..ee98a064 100644 --- a/devtools/docs/models/components/nativetokenbalance.md +++ b/chainkit/docs/models/components/nativetokenbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NativeTokenBalance } from "@avalanche-sdk/devtools/models/components"; +import { NativeTokenBalance } from "@avalanche-sdk/chainkit/models/components"; let value: NativeTokenBalance = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/nativetransaction.md b/chainkit/docs/models/components/nativetransaction.md similarity index 99% rename from devtools/docs/models/components/nativetransaction.md rename to chainkit/docs/models/components/nativetransaction.md index 3d8e5bfb..dc5f7b65 100644 --- a/devtools/docs/models/components/nativetransaction.md +++ b/chainkit/docs/models/components/nativetransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NativeTransaction } from "@avalanche-sdk/devtools/models/components"; +import { NativeTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: NativeTransaction = { blockNumber: "339", diff --git a/devtools/docs/models/components/network.md b/chainkit/docs/models/components/network.md similarity index 69% rename from devtools/docs/models/components/network.md rename to chainkit/docs/models/components/network.md index 651cd78d..d869d977 100644 --- a/devtools/docs/models/components/network.md +++ b/chainkit/docs/models/components/network.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Network } from "@avalanche-sdk/devtools/models/components"; +import { Network } from "@avalanche-sdk/chainkit/models/components"; let value: Network = "mainnet"; ``` diff --git a/devtools/docs/models/components/networkmetric.md b/chainkit/docs/models/components/networkmetric.md similarity index 77% rename from devtools/docs/models/components/networkmetric.md rename to chainkit/docs/models/components/networkmetric.md index 5303b542..1f5e51c0 100644 --- a/devtools/docs/models/components/networkmetric.md +++ b/chainkit/docs/models/components/networkmetric.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NetworkMetric } from "@avalanche-sdk/devtools/models/components"; +import { NetworkMetric } from "@avalanche-sdk/chainkit/models/components"; let value: NetworkMetric = "validatorCount"; ``` diff --git a/devtools/docs/models/components/networktoken.md b/chainkit/docs/models/components/networktoken.md similarity index 98% rename from devtools/docs/models/components/networktoken.md rename to chainkit/docs/models/components/networktoken.md index d88cd381..dfca0d60 100644 --- a/devtools/docs/models/components/networktoken.md +++ b/chainkit/docs/models/components/networktoken.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NetworkToken } from "@avalanche-sdk/devtools/models/components"; +import { NetworkToken } from "@avalanche-sdk/chainkit/models/components"; let value: NetworkToken = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/networktokendetails.md b/chainkit/docs/models/components/networktokendetails.md similarity index 98% rename from devtools/docs/models/components/networktokendetails.md rename to chainkit/docs/models/components/networktokendetails.md index dee2f0ce..21592736 100644 --- a/devtools/docs/models/components/networktokendetails.md +++ b/chainkit/docs/models/components/networktokendetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NetworkTokenDetails } from "@avalanche-sdk/devtools/models/components"; +import { NetworkTokenDetails } from "@avalanche-sdk/chainkit/models/components"; let value: NetworkTokenDetails = { networkToken: { diff --git a/devtools/docs/models/components/networktokeninfo.md b/chainkit/docs/models/components/networktokeninfo.md similarity index 94% rename from devtools/docs/models/components/networktokeninfo.md rename to chainkit/docs/models/components/networktokeninfo.md index 3ddff544..c9579f15 100644 --- a/devtools/docs/models/components/networktokeninfo.md +++ b/chainkit/docs/models/components/networktokeninfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NetworkTokenInfo } from "@avalanche-sdk/devtools/models/components"; +import { NetworkTokenInfo } from "@avalanche-sdk/chainkit/models/components"; let value: NetworkTokenInfo = { tokenName: "TetherToken", diff --git a/devtools/docs/models/components/networktype.md b/chainkit/docs/models/components/networktype.md similarity index 76% rename from devtools/docs/models/components/networktype.md rename to chainkit/docs/models/components/networktype.md index 110350dc..c0a17cea 100644 --- a/devtools/docs/models/components/networktype.md +++ b/chainkit/docs/models/components/networktype.md @@ -5,7 +5,7 @@ Network on which this blockchain or subnet is created on. ## Example Usage ```typescript -import { NetworkType } from "@avalanche-sdk/devtools/models/components"; +import { NetworkType } from "@avalanche-sdk/chainkit/models/components"; let value: NetworkType = "testnet"; ``` diff --git a/devtools/docs/models/components/nftholdersresponse.md b/chainkit/docs/models/components/nftholdersresponse.md similarity index 98% rename from devtools/docs/models/components/nftholdersresponse.md rename to chainkit/docs/models/components/nftholdersresponse.md index bf295962..3f83d48d 100644 --- a/devtools/docs/models/components/nftholdersresponse.md +++ b/chainkit/docs/models/components/nftholdersresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NftHoldersResponse } from "@avalanche-sdk/devtools/models/components"; +import { NftHoldersResponse } from "@avalanche-sdk/chainkit/models/components"; let value: NftHoldersResponse = { addresses: [ diff --git a/devtools/docs/models/components/nfttokenmetadatastatus.md b/chainkit/docs/models/components/nfttokenmetadatastatus.md similarity index 87% rename from devtools/docs/models/components/nfttokenmetadatastatus.md rename to chainkit/docs/models/components/nfttokenmetadatastatus.md index 31044953..e3a86da0 100644 --- a/devtools/docs/models/components/nfttokenmetadatastatus.md +++ b/chainkit/docs/models/components/nfttokenmetadatastatus.md @@ -5,7 +5,7 @@ The metadata indexing status of the nft. ## Example Usage ```typescript -import { NftTokenMetadataStatus } from "@avalanche-sdk/devtools/models/components"; +import { NftTokenMetadataStatus } from "@avalanche-sdk/chainkit/models/components"; let value: NftTokenMetadataStatus = "UNREACHABLE_TOKEN_URI"; ``` diff --git a/devtools/docs/models/components/operationstatus.md b/chainkit/docs/models/components/operationstatus.md similarity index 75% rename from devtools/docs/models/components/operationstatus.md rename to chainkit/docs/models/components/operationstatus.md index 8a89d2fe..65f6b4d2 100644 --- a/devtools/docs/models/components/operationstatus.md +++ b/chainkit/docs/models/components/operationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { OperationStatus } from "@avalanche-sdk/devtools/models/components"; +import { OperationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: OperationStatus = "COMPLETED"; ``` diff --git a/devtools/docs/models/components/operationstatuscode.md b/chainkit/docs/models/components/operationstatuscode.md similarity index 77% rename from devtools/docs/models/components/operationstatuscode.md rename to chainkit/docs/models/components/operationstatuscode.md index b85858f5..98577a2c 100644 --- a/devtools/docs/models/components/operationstatuscode.md +++ b/chainkit/docs/models/components/operationstatuscode.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { OperationStatusCode } from "@avalanche-sdk/devtools/models/components"; +import { OperationStatusCode } from "@avalanche-sdk/chainkit/models/components"; let value: OperationStatusCode = "ErrInvalidRequest"; ``` diff --git a/devtools/docs/models/components/operationstatusresponse.md b/chainkit/docs/models/components/operationstatusresponse.md similarity index 97% rename from devtools/docs/models/components/operationstatusresponse.md rename to chainkit/docs/models/components/operationstatusresponse.md index 56fd643b..b980c85f 100644 --- a/devtools/docs/models/components/operationstatusresponse.md +++ b/chainkit/docs/models/components/operationstatusresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { OperationStatusResponse } from "@avalanche-sdk/devtools/models/components"; +import { OperationStatusResponse } from "@avalanche-sdk/chainkit/models/components"; let value: OperationStatusResponse = { operationId: "", diff --git a/devtools/docs/models/components/operationstatusresponsemetadata.md b/chainkit/docs/models/components/operationstatusresponsemetadata.md similarity index 100% rename from devtools/docs/models/components/operationstatusresponsemetadata.md rename to chainkit/docs/models/components/operationstatusresponsemetadata.md diff --git a/devtools/docs/models/components/operationtype.md b/chainkit/docs/models/components/operationtype.md similarity index 83% rename from devtools/docs/models/components/operationtype.md rename to chainkit/docs/models/components/operationtype.md index b8a5b191..93d66370 100644 --- a/devtools/docs/models/components/operationtype.md +++ b/chainkit/docs/models/components/operationtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { OperationType } from "@avalanche-sdk/devtools/models/components"; +import { OperationType } from "@avalanche-sdk/chainkit/models/components"; let value: OperationType = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"; ``` diff --git a/devtools/docs/models/components/pchainaddressdetails.md b/chainkit/docs/models/components/pchainaddressdetails.md similarity index 96% rename from devtools/docs/models/components/pchainaddressdetails.md rename to chainkit/docs/models/components/pchainaddressdetails.md index 06cb599b..a4d48c2d 100644 --- a/devtools/docs/models/components/pchainaddressdetails.md +++ b/chainkit/docs/models/components/pchainaddressdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainAddressDetails } from "@avalanche-sdk/devtools/models/components"; +import { PChainAddressDetails } from "@avalanche-sdk/chainkit/models/components"; let value: PChainAddressDetails = { addresses: [ diff --git a/devtools/docs/models/components/pchainbalance.md b/chainkit/docs/models/components/pchainbalance.md similarity index 99% rename from devtools/docs/models/components/pchainbalance.md rename to chainkit/docs/models/components/pchainbalance.md index 3a5d3d2c..a1310d29 100644 --- a/devtools/docs/models/components/pchainbalance.md +++ b/chainkit/docs/models/components/pchainbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainBalance } from "@avalanche-sdk/devtools/models/components"; +import { PChainBalance } from "@avalanche-sdk/chainkit/models/components"; let value: PChainBalance = { unlockedUnstaked: [ diff --git a/devtools/docs/models/components/pchainid.md b/chainkit/docs/models/components/pchainid.md similarity index 72% rename from devtools/docs/models/components/pchainid.md rename to chainkit/docs/models/components/pchainid.md index b25535fc..cba4c836 100644 --- a/devtools/docs/models/components/pchainid.md +++ b/chainkit/docs/models/components/pchainid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainId } from "@avalanche-sdk/devtools/models/components"; +import { PChainId } from "@avalanche-sdk/chainkit/models/components"; let value: PChainId = "p-chain"; ``` diff --git a/devtools/docs/models/components/pchainlookingglassresponse.md b/chainkit/docs/models/components/pchainlookingglassresponse.md similarity index 96% rename from devtools/docs/models/components/pchainlookingglassresponse.md rename to chainkit/docs/models/components/pchainlookingglassresponse.md index 93984e8b..e8e4d1a2 100644 --- a/devtools/docs/models/components/pchainlookingglassresponse.md +++ b/chainkit/docs/models/components/pchainlookingglassresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainLookingGlassResponse } from "@avalanche-sdk/devtools/models/components"; +import { PChainLookingGlassResponse } from "@avalanche-sdk/chainkit/models/components"; let value: PChainLookingGlassResponse = { addresses: [ diff --git a/devtools/docs/models/components/pchainsharedasset.md b/chainkit/docs/models/components/pchainsharedasset.md similarity index 98% rename from devtools/docs/models/components/pchainsharedasset.md rename to chainkit/docs/models/components/pchainsharedasset.md index ecd0e9d6..c604e2b3 100644 --- a/devtools/docs/models/components/pchainsharedasset.md +++ b/chainkit/docs/models/components/pchainsharedasset.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainSharedAsset } from "@avalanche-sdk/devtools/models/components"; +import { PChainSharedAsset } from "@avalanche-sdk/chainkit/models/components"; let value: PChainSharedAsset = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/pchaintransaction.md b/chainkit/docs/models/components/pchaintransaction.md similarity index 99% rename from devtools/docs/models/components/pchaintransaction.md rename to chainkit/docs/models/components/pchaintransaction.md index 8278f6b1..87338e36 100644 --- a/devtools/docs/models/components/pchaintransaction.md +++ b/chainkit/docs/models/components/pchaintransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainTransaction } from "@avalanche-sdk/devtools/models/components"; +import { PChainTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: PChainTransaction = { txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", diff --git a/devtools/docs/models/components/pchaintransactiontype.md b/chainkit/docs/models/components/pchaintransactiontype.md similarity index 90% rename from devtools/docs/models/components/pchaintransactiontype.md rename to chainkit/docs/models/components/pchaintransactiontype.md index 6d87e191..87088fa0 100644 --- a/devtools/docs/models/components/pchaintransactiontype.md +++ b/chainkit/docs/models/components/pchaintransactiontype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainTransactionType } from "@avalanche-sdk/devtools/models/components"; +import { PChainTransactionType } from "@avalanche-sdk/chainkit/models/components"; let value: PChainTransactionType = "AddValidatorTx"; ``` diff --git a/devtools/docs/models/components/pchainutxo.md b/chainkit/docs/models/components/pchainutxo.md similarity index 99% rename from devtools/docs/models/components/pchainutxo.md rename to chainkit/docs/models/components/pchainutxo.md index 37fc3bbe..9cc654d3 100644 --- a/devtools/docs/models/components/pchainutxo.md +++ b/chainkit/docs/models/components/pchainutxo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PChainUtxo } from "@avalanche-sdk/devtools/models/components"; +import { PChainUtxo } from "@avalanche-sdk/chainkit/models/components"; let value: PChainUtxo = { addresses: [ diff --git a/devtools/docs/models/components/pendingdelegatordetails.md b/chainkit/docs/models/components/pendingdelegatordetails.md similarity index 99% rename from devtools/docs/models/components/pendingdelegatordetails.md rename to chainkit/docs/models/components/pendingdelegatordetails.md index 1ac6b763..63d91dcd 100644 --- a/devtools/docs/models/components/pendingdelegatordetails.md +++ b/chainkit/docs/models/components/pendingdelegatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingDelegatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { PendingDelegatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: PendingDelegatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/pendingdelegatordetailsdelegationstatus.md b/chainkit/docs/models/components/pendingdelegatordetailsdelegationstatus.md similarity index 86% rename from devtools/docs/models/components/pendingdelegatordetailsdelegationstatus.md rename to chainkit/docs/models/components/pendingdelegatordetailsdelegationstatus.md index b7f79d32..63444f2d 100644 --- a/devtools/docs/models/components/pendingdelegatordetailsdelegationstatus.md +++ b/chainkit/docs/models/components/pendingdelegatordetailsdelegationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingDelegatorDetailsDelegationStatus } from "@avalanche-sdk/devtools/models/components"; +import { PendingDelegatorDetailsDelegationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: PendingDelegatorDetailsDelegationStatus = "pending"; ``` diff --git a/devtools/docs/models/components/pendingicmmessage.md b/chainkit/docs/models/components/pendingicmmessage.md similarity index 99% rename from devtools/docs/models/components/pendingicmmessage.md rename to chainkit/docs/models/components/pendingicmmessage.md index 6a49fe57..a8c4a4e5 100644 --- a/devtools/docs/models/components/pendingicmmessage.md +++ b/chainkit/docs/models/components/pendingicmmessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingIcmMessage } from "@avalanche-sdk/devtools/models/components"; +import { PendingIcmMessage } from "@avalanche-sdk/chainkit/models/components"; let value: PendingIcmMessage = { messageId: "", diff --git a/devtools/docs/models/components/pendingicmmessagestatus.md b/chainkit/docs/models/components/pendingicmmessagestatus.md similarity index 72% rename from devtools/docs/models/components/pendingicmmessagestatus.md rename to chainkit/docs/models/components/pendingicmmessagestatus.md index d1eb5776..5a86a325 100644 --- a/devtools/docs/models/components/pendingicmmessagestatus.md +++ b/chainkit/docs/models/components/pendingicmmessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingIcmMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { PendingIcmMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: PendingIcmMessageStatus = "pending"; ``` diff --git a/devtools/docs/models/components/pendingreward.md b/chainkit/docs/models/components/pendingreward.md similarity index 98% rename from devtools/docs/models/components/pendingreward.md rename to chainkit/docs/models/components/pendingreward.md index 0e7981c6..1ed72640 100644 --- a/devtools/docs/models/components/pendingreward.md +++ b/chainkit/docs/models/components/pendingreward.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingReward } from "@avalanche-sdk/devtools/models/components"; +import { PendingReward } from "@avalanche-sdk/chainkit/models/components"; let value: PendingReward = { addresses: [ diff --git a/devtools/docs/models/components/pendingteleportermessage.md b/chainkit/docs/models/components/pendingteleportermessage.md similarity index 99% rename from devtools/docs/models/components/pendingteleportermessage.md rename to chainkit/docs/models/components/pendingteleportermessage.md index 7fdd2e03..a0116603 100644 --- a/devtools/docs/models/components/pendingteleportermessage.md +++ b/chainkit/docs/models/components/pendingteleportermessage.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingTeleporterMessage } from "@avalanche-sdk/devtools/models/components"; +import { PendingTeleporterMessage } from "@avalanche-sdk/chainkit/models/components"; let value: PendingTeleporterMessage = { messageId: "", diff --git a/devtools/docs/models/components/pendingteleportermessagestatus.md b/chainkit/docs/models/components/pendingteleportermessagestatus.md similarity index 64% rename from devtools/docs/models/components/pendingteleportermessagestatus.md rename to chainkit/docs/models/components/pendingteleportermessagestatus.md index 8d31bad4..ef766a41 100644 --- a/devtools/docs/models/components/pendingteleportermessagestatus.md +++ b/chainkit/docs/models/components/pendingteleportermessagestatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingTeleporterMessageStatus } from "@avalanche-sdk/devtools/models/components"; +import { PendingTeleporterMessageStatus } from "@avalanche-sdk/chainkit/models/components"; let value: PendingTeleporterMessageStatus = "pending"; ``` diff --git a/devtools/docs/models/components/pendingvalidatordetails.md b/chainkit/docs/models/components/pendingvalidatordetails.md similarity index 98% rename from devtools/docs/models/components/pendingvalidatordetails.md rename to chainkit/docs/models/components/pendingvalidatordetails.md index 4f35dab3..a5de9ab1 100644 --- a/devtools/docs/models/components/pendingvalidatordetails.md +++ b/chainkit/docs/models/components/pendingvalidatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingValidatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { PendingValidatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: PendingValidatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/pendingvalidatordetailsvalidationstatus.md b/chainkit/docs/models/components/pendingvalidatordetailsvalidationstatus.md similarity index 86% rename from devtools/docs/models/components/pendingvalidatordetailsvalidationstatus.md rename to chainkit/docs/models/components/pendingvalidatordetailsvalidationstatus.md index eb547c4b..e20c323f 100644 --- a/devtools/docs/models/components/pendingvalidatordetailsvalidationstatus.md +++ b/chainkit/docs/models/components/pendingvalidatordetailsvalidationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PendingValidatorDetailsValidationStatus } from "@avalanche-sdk/devtools/models/components"; +import { PendingValidatorDetailsValidationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: PendingValidatorDetailsValidationStatus = "pending"; ``` diff --git a/devtools/docs/models/components/platformaddressactivitykeytype.md b/chainkit/docs/models/components/platformaddressactivitykeytype.md similarity index 71% rename from devtools/docs/models/components/platformaddressactivitykeytype.md rename to chainkit/docs/models/components/platformaddressactivitykeytype.md index b1126c2b..479440d4 100644 --- a/devtools/docs/models/components/platformaddressactivitykeytype.md +++ b/chainkit/docs/models/components/platformaddressactivitykeytype.md @@ -5,7 +5,7 @@ The type of key to monitor for the address activity event type. ## Example Usage ```typescript -import { PlatformAddressActivityKeyType } from "@avalanche-sdk/devtools/models/components"; +import { PlatformAddressActivityKeyType } from "@avalanche-sdk/chainkit/models/components"; let value: PlatformAddressActivityKeyType = "addresses"; ``` diff --git a/devtools/docs/models/components/pricingproviders.md b/chainkit/docs/models/components/pricingproviders.md similarity index 85% rename from devtools/docs/models/components/pricingproviders.md rename to chainkit/docs/models/components/pricingproviders.md index 2ca0e73a..050bc3e2 100644 --- a/devtools/docs/models/components/pricingproviders.md +++ b/chainkit/docs/models/components/pricingproviders.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PricingProviders } from "@avalanche-sdk/devtools/models/components"; +import { PricingProviders } from "@avalanche-sdk/chainkit/models/components"; let value: PricingProviders = {}; ``` diff --git a/devtools/docs/models/components/primarynetworkaddressactivityeventtype.md b/chainkit/docs/models/components/primarynetworkaddressactivityeventtype.md similarity index 89% rename from devtools/docs/models/components/primarynetworkaddressactivityeventtype.md rename to chainkit/docs/models/components/primarynetworkaddressactivityeventtype.md index 60329dcd..7d35e788 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivityeventtype.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivityeventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivityEventType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivityEventType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivityEventType = "primary_network_address_activity"; diff --git a/devtools/docs/models/components/primarynetworkaddressactivitymetadata.md b/chainkit/docs/models/components/primarynetworkaddressactivitymetadata.md similarity index 99% rename from devtools/docs/models/components/primarynetworkaddressactivitymetadata.md rename to chainkit/docs/models/components/primarynetworkaddressactivitymetadata.md index e24f2d3e..b9f59659 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivitymetadata.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivitymetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivityMetadata } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivityMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivityMetadata = { eventSignatures: [ diff --git a/devtools/docs/models/components/primarynetworkaddressactivityrequest.md b/chainkit/docs/models/components/primarynetworkaddressactivityrequest.md similarity index 99% rename from devtools/docs/models/components/primarynetworkaddressactivityrequest.md rename to chainkit/docs/models/components/primarynetworkaddressactivityrequest.md index 5843bcd3..8bc416b7 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivityrequest.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivityrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivityRequest } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivityRequest } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivityRequest = { eventType: "primary_network_address_activity", diff --git a/devtools/docs/models/components/primarynetworkaddressactivityrequesteventtype.md b/chainkit/docs/models/components/primarynetworkaddressactivityrequesteventtype.md similarity index 87% rename from devtools/docs/models/components/primarynetworkaddressactivityrequesteventtype.md rename to chainkit/docs/models/components/primarynetworkaddressactivityrequesteventtype.md index 5eea53a9..666ff4de 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivityrequesteventtype.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivityrequesteventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivityRequestEventType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivityRequestEventType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivityRequestEventType = "primary_network_address_activity"; diff --git a/devtools/docs/models/components/primarynetworkaddressactivityrequestmetadata.md b/chainkit/docs/models/components/primarynetworkaddressactivityrequestmetadata.md similarity index 100% rename from devtools/docs/models/components/primarynetworkaddressactivityrequestmetadata.md rename to chainkit/docs/models/components/primarynetworkaddressactivityrequestmetadata.md diff --git a/devtools/docs/models/components/primarynetworkaddressactivityresponse.md b/chainkit/docs/models/components/primarynetworkaddressactivityresponse.md similarity index 99% rename from devtools/docs/models/components/primarynetworkaddressactivityresponse.md rename to chainkit/docs/models/components/primarynetworkaddressactivityresponse.md index 4d2dcdab..a03aa245 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivityresponse.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivityresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivityResponse } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivityResponse } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivityResponse = { id: "", diff --git a/devtools/docs/models/components/primarynetworkaddressactivitysubevents.md b/chainkit/docs/models/components/primarynetworkaddressactivitysubevents.md similarity index 98% rename from devtools/docs/models/components/primarynetworkaddressactivitysubevents.md rename to chainkit/docs/models/components/primarynetworkaddressactivitysubevents.md index 4adeb2f5..747738f3 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivitysubevents.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivitysubevents.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkAddressActivitySubEvents } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivitySubEvents } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivitySubEvents = { addressActivitySubEvents: [ diff --git a/devtools/docs/models/components/primarynetworkaddressactivitysubeventtype.md b/chainkit/docs/models/components/primarynetworkaddressactivitysubeventtype.md similarity index 90% rename from devtools/docs/models/components/primarynetworkaddressactivitysubeventtype.md rename to chainkit/docs/models/components/primarynetworkaddressactivitysubeventtype.md index 8a44cf6a..a6a74f04 100644 --- a/devtools/docs/models/components/primarynetworkaddressactivitysubeventtype.md +++ b/chainkit/docs/models/components/primarynetworkaddressactivitysubeventtype.md @@ -5,7 +5,7 @@ Array of address activity sub-event types ## Example Usage ```typescript -import { PrimaryNetworkAddressActivitySubEventType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAddressActivitySubEventType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAddressActivitySubEventType = "reward_distribution"; ``` diff --git a/devtools/docs/models/components/primarynetworkassetcap.md b/chainkit/docs/models/components/primarynetworkassetcap.md similarity index 78% rename from devtools/docs/models/components/primarynetworkassetcap.md rename to chainkit/docs/models/components/primarynetworkassetcap.md index 9ef4b340..6f7d17c7 100644 --- a/devtools/docs/models/components/primarynetworkassetcap.md +++ b/chainkit/docs/models/components/primarynetworkassetcap.md @@ -5,7 +5,7 @@ Cap represents if an asset is a variable or fixed cap asset. ## Example Usage ```typescript -import { PrimaryNetworkAssetCap } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAssetCap } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAssetCap = "fixed"; ``` diff --git a/devtools/docs/models/components/primarynetworkassettype.md b/chainkit/docs/models/components/primarynetworkassettype.md similarity index 77% rename from devtools/docs/models/components/primarynetworkassettype.md rename to chainkit/docs/models/components/primarynetworkassettype.md index c931b74f..5945ebed 100644 --- a/devtools/docs/models/components/primarynetworkassettype.md +++ b/chainkit/docs/models/components/primarynetworkassettype.md @@ -5,7 +5,7 @@ Type of asset like SECP256K1 or NFT. ## Example Usage ```typescript -import { PrimaryNetworkAssetType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkAssetType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkAssetType = "nft"; ``` diff --git a/devtools/docs/models/components/primarynetworkbalancethresholdfilter.md b/chainkit/docs/models/components/primarynetworkbalancethresholdfilter.md similarity index 97% rename from devtools/docs/models/components/primarynetworkbalancethresholdfilter.md rename to chainkit/docs/models/components/primarynetworkbalancethresholdfilter.md index 951e344e..464e4dc4 100644 --- a/devtools/docs/models/components/primarynetworkbalancethresholdfilter.md +++ b/chainkit/docs/models/components/primarynetworkbalancethresholdfilter.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkBalanceThresholdFilter } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkBalanceThresholdFilter } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkBalanceThresholdFilter = { balanceType: "unlockedStaked", diff --git a/devtools/docs/models/components/primarynetworkblock.md b/chainkit/docs/models/components/primarynetworkblock.md similarity index 98% rename from devtools/docs/models/components/primarynetworkblock.md rename to chainkit/docs/models/components/primarynetworkblock.md index be686537..20e28803 100644 --- a/devtools/docs/models/components/primarynetworkblock.md +++ b/chainkit/docs/models/components/primarynetworkblock.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkBlock } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkBlock } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkBlock = { blockNumber: "", diff --git a/devtools/docs/models/components/primarynetworkchaininfo.md b/chainkit/docs/models/components/primarynetworkchaininfo.md similarity index 96% rename from devtools/docs/models/components/primarynetworkchaininfo.md rename to chainkit/docs/models/components/primarynetworkchaininfo.md index d7cd2c61..29235327 100644 --- a/devtools/docs/models/components/primarynetworkchaininfo.md +++ b/chainkit/docs/models/components/primarynetworkchaininfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkChainInfo } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkChainInfo } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkChainInfo = { chainName: "c-chain", diff --git a/devtools/docs/models/components/primarynetworkchainname.md b/chainkit/docs/models/components/primarynetworkchainname.md similarity index 75% rename from devtools/docs/models/components/primarynetworkchainname.md rename to chainkit/docs/models/components/primarynetworkchainname.md index 32344665..b26596e7 100644 --- a/devtools/docs/models/components/primarynetworkchainname.md +++ b/chainkit/docs/models/components/primarynetworkchainname.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkChainName } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkChainName } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkChainName = "x-chain"; ``` diff --git a/devtools/docs/models/components/primarynetworkoperationtype.md b/chainkit/docs/models/components/primarynetworkoperationtype.md similarity index 77% rename from devtools/docs/models/components/primarynetworkoperationtype.md rename to chainkit/docs/models/components/primarynetworkoperationtype.md index c0262986..7f89814b 100644 --- a/devtools/docs/models/components/primarynetworkoperationtype.md +++ b/chainkit/docs/models/components/primarynetworkoperationtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkOperationType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkOperationType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkOperationType = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"; diff --git a/devtools/docs/models/components/primarynetworkoptions.md b/chainkit/docs/models/components/primarynetworkoptions.md similarity index 96% rename from devtools/docs/models/components/primarynetworkoptions.md rename to chainkit/docs/models/components/primarynetworkoptions.md index 290ada19..9a8b7ec5 100644 --- a/devtools/docs/models/components/primarynetworkoptions.md +++ b/chainkit/docs/models/components/primarynetworkoptions.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkOptions } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkOptions } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkOptions = { includeChains: [ diff --git a/devtools/docs/models/components/primarynetworktxtype.md b/chainkit/docs/models/components/primarynetworktxtype.md similarity index 91% rename from devtools/docs/models/components/primarynetworktxtype.md rename to chainkit/docs/models/components/primarynetworktxtype.md index 6e5871de..eda037aa 100644 --- a/devtools/docs/models/components/primarynetworktxtype.md +++ b/chainkit/docs/models/components/primarynetworktxtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkTxType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkTxType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkTxType = "AdvanceTimeTx"; ``` diff --git a/devtools/docs/models/components/primarynetworktype.md b/chainkit/docs/models/components/primarynetworktype.md similarity index 71% rename from devtools/docs/models/components/primarynetworktype.md rename to chainkit/docs/models/components/primarynetworktype.md index 2436c250..60652ec6 100644 --- a/devtools/docs/models/components/primarynetworktype.md +++ b/chainkit/docs/models/components/primarynetworktype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { PrimaryNetworkType } from "@avalanche-sdk/devtools/models/components"; +import { PrimaryNetworkType } from "@avalanche-sdk/chainkit/models/components"; let value: PrimaryNetworkType = "fuji"; ``` diff --git a/devtools/docs/models/components/proposerdetails.md b/chainkit/docs/models/components/proposerdetails.md similarity index 92% rename from devtools/docs/models/components/proposerdetails.md rename to chainkit/docs/models/components/proposerdetails.md index 858d50fd..0732d7e3 100644 --- a/devtools/docs/models/components/proposerdetails.md +++ b/chainkit/docs/models/components/proposerdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ProposerDetails } from "@avalanche-sdk/devtools/models/components"; +import { ProposerDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ProposerDetails = {}; ``` diff --git a/devtools/docs/models/components/removedvalidatordetails.md b/chainkit/docs/models/components/removedvalidatordetails.md similarity index 99% rename from devtools/docs/models/components/removedvalidatordetails.md rename to chainkit/docs/models/components/removedvalidatordetails.md index 47e6ff09..c3d1eff2 100644 --- a/devtools/docs/models/components/removedvalidatordetails.md +++ b/chainkit/docs/models/components/removedvalidatordetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemovedValidatorDetails } from "@avalanche-sdk/devtools/models/components"; +import { RemovedValidatorDetails } from "@avalanche-sdk/chainkit/models/components"; let value: RemovedValidatorDetails = { txHash: "", diff --git a/devtools/docs/models/components/removedvalidatordetailsvalidationstatus.md b/chainkit/docs/models/components/removedvalidatordetailsvalidationstatus.md similarity index 86% rename from devtools/docs/models/components/removedvalidatordetailsvalidationstatus.md rename to chainkit/docs/models/components/removedvalidatordetailsvalidationstatus.md index ff46a13e..7489aea1 100644 --- a/devtools/docs/models/components/removedvalidatordetailsvalidationstatus.md +++ b/chainkit/docs/models/components/removedvalidatordetailsvalidationstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemovedValidatorDetailsValidationStatus } from "@avalanche-sdk/devtools/models/components"; +import { RemovedValidatorDetailsValidationStatus } from "@avalanche-sdk/chainkit/models/components"; let value: RemovedValidatorDetailsValidationStatus = "removed"; ``` diff --git a/devtools/docs/models/components/requesttype.md b/chainkit/docs/models/components/requesttype.md similarity index 73% rename from devtools/docs/models/components/requesttype.md rename to chainkit/docs/models/components/requesttype.md index ef15aacf..21151fcc 100644 --- a/devtools/docs/models/components/requesttype.md +++ b/chainkit/docs/models/components/requesttype.md @@ -5,7 +5,7 @@ The type of request made by the client. ## Example Usage ```typescript -import { RequestType } from "@avalanche-sdk/devtools/models/components"; +import { RequestType } from "@avalanche-sdk/chainkit/models/components"; let value: RequestType = "data"; ``` diff --git a/devtools/docs/models/components/resourcelink.md b/chainkit/docs/models/components/resourcelink.md similarity index 95% rename from devtools/docs/models/components/resourcelink.md rename to chainkit/docs/models/components/resourcelink.md index 0041e127..74382349 100644 --- a/devtools/docs/models/components/resourcelink.md +++ b/chainkit/docs/models/components/resourcelink.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResourceLink } from "@avalanche-sdk/devtools/models/components"; +import { ResourceLink } from "@avalanche-sdk/chainkit/models/components"; let value: ResourceLink = { type: "Twitter", diff --git a/devtools/docs/models/components/resourcelinktype.md b/chainkit/docs/models/components/resourcelinktype.md similarity index 85% rename from devtools/docs/models/components/resourcelinktype.md rename to chainkit/docs/models/components/resourcelinktype.md index 24ee0df5..6ed7f8cf 100644 --- a/devtools/docs/models/components/resourcelinktype.md +++ b/chainkit/docs/models/components/resourcelinktype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ResourceLinkType } from "@avalanche-sdk/devtools/models/components"; +import { ResourceLinkType } from "@avalanche-sdk/chainkit/models/components"; let value: ResourceLinkType = "Telegram"; ``` diff --git a/devtools/docs/models/components/rewards.md b/chainkit/docs/models/components/rewards.md similarity index 92% rename from devtools/docs/models/components/rewards.md rename to chainkit/docs/models/components/rewards.md index 9b9a41f5..1b1c5f52 100644 --- a/devtools/docs/models/components/rewards.md +++ b/chainkit/docs/models/components/rewards.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Rewards } from "@avalanche-sdk/devtools/models/components"; +import { Rewards } from "@avalanche-sdk/chainkit/models/components"; let value: Rewards = { validationRewardAmount: "", diff --git a/devtools/docs/models/components/rewardtype.md b/chainkit/docs/models/components/rewardtype.md similarity index 72% rename from devtools/docs/models/components/rewardtype.md rename to chainkit/docs/models/components/rewardtype.md index c4e59f03..ca85d065 100644 --- a/devtools/docs/models/components/rewardtype.md +++ b/chainkit/docs/models/components/rewardtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RewardType } from "@avalanche-sdk/devtools/models/components"; +import { RewardType } from "@avalanche-sdk/chainkit/models/components"; let value: RewardType = "VALIDATOR_FEE"; ``` diff --git a/devtools/docs/models/components/richaddress.md b/chainkit/docs/models/components/richaddress.md similarity index 98% rename from devtools/docs/models/components/richaddress.md rename to chainkit/docs/models/components/richaddress.md index 6f51b837..875303cd 100644 --- a/devtools/docs/models/components/richaddress.md +++ b/chainkit/docs/models/components/richaddress.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RichAddress } from "@avalanche-sdk/devtools/models/components"; +import { RichAddress } from "@avalanche-sdk/chainkit/models/components"; let value: RichAddress = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/rollingwindowmetricsapiresponse.md b/chainkit/docs/models/components/rollingwindowmetricsapiresponse.md similarity index 98% rename from devtools/docs/models/components/rollingwindowmetricsapiresponse.md rename to chainkit/docs/models/components/rollingwindowmetricsapiresponse.md index 760a3a05..c7ee17ba 100644 --- a/devtools/docs/models/components/rollingwindowmetricsapiresponse.md +++ b/chainkit/docs/models/components/rollingwindowmetricsapiresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RollingWindowMetricsApiResponse } from "@avalanche-sdk/devtools/models/components"; +import { RollingWindowMetricsApiResponse } from "@avalanche-sdk/chainkit/models/components"; let value: RollingWindowMetricsApiResponse = { result: { diff --git a/devtools/docs/models/components/rpcmetrics.md b/chainkit/docs/models/components/rpcmetrics.md similarity index 96% rename from devtools/docs/models/components/rpcmetrics.md rename to chainkit/docs/models/components/rpcmetrics.md index cbb0ae3e..d6195cbe 100644 --- a/devtools/docs/models/components/rpcmetrics.md +++ b/chainkit/docs/models/components/rpcmetrics.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RpcMetrics } from "@avalanche-sdk/devtools/models/components"; +import { RpcMetrics } from "@avalanche-sdk/chainkit/models/components"; let value: RpcMetrics = { timestamp: 1158.29, diff --git a/devtools/docs/models/components/rpcusagemetricsgroupbyenum.md b/chainkit/docs/models/components/rpcusagemetricsgroupbyenum.md similarity index 69% rename from devtools/docs/models/components/rpcusagemetricsgroupbyenum.md rename to chainkit/docs/models/components/rpcusagemetricsgroupbyenum.md index d13f5bb6..0fabdea5 100644 --- a/devtools/docs/models/components/rpcusagemetricsgroupbyenum.md +++ b/chainkit/docs/models/components/rpcusagemetricsgroupbyenum.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RpcUsageMetricsGroupByEnum } from "@avalanche-sdk/devtools/models/components"; +import { RpcUsageMetricsGroupByEnum } from "@avalanche-sdk/chainkit/models/components"; let value: RpcUsageMetricsGroupByEnum = "rpcMethod"; ``` diff --git a/devtools/docs/models/components/rpcusagemetricsvalueaggregated.md b/chainkit/docs/models/components/rpcusagemetricsvalueaggregated.md similarity index 98% rename from devtools/docs/models/components/rpcusagemetricsvalueaggregated.md rename to chainkit/docs/models/components/rpcusagemetricsvalueaggregated.md index 0cc43163..359a04d4 100644 --- a/devtools/docs/models/components/rpcusagemetricsvalueaggregated.md +++ b/chainkit/docs/models/components/rpcusagemetricsvalueaggregated.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RpcUsageMetricsValueAggregated } from "@avalanche-sdk/devtools/models/components"; +import { RpcUsageMetricsValueAggregated } from "@avalanche-sdk/chainkit/models/components"; let value: RpcUsageMetricsValueAggregated = { totalRequests: 5754.46, diff --git a/devtools/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md b/chainkit/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md similarity index 91% rename from devtools/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md rename to chainkit/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md index 960bda2a..d7eea94f 100644 --- a/devtools/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md +++ b/chainkit/docs/models/components/rpcusagemetricsvalueaggregatedgroupedby.md @@ -5,7 +5,7 @@ Column name used for data aggregation ## Example Usage ```typescript -import { RpcUsageMetricsValueAggregatedGroupedBy } from "@avalanche-sdk/devtools/models/components"; +import { RpcUsageMetricsValueAggregatedGroupedBy } from "@avalanche-sdk/chainkit/models/components"; let value: RpcUsageMetricsValueAggregatedGroupedBy = "rlBypassToken"; ``` diff --git a/devtools/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md b/chainkit/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md similarity index 100% rename from devtools/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md rename to chainkit/docs/models/components/rpcusagemetricsvalueaggregatedgroupvalue.md diff --git a/devtools/docs/models/components/security.md b/chainkit/docs/models/components/security.md similarity index 84% rename from devtools/docs/models/components/security.md rename to chainkit/docs/models/components/security.md index dfcc1812..e2d19ab8 100644 --- a/devtools/docs/models/components/security.md +++ b/chainkit/docs/models/components/security.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Security } from "@avalanche-sdk/devtools/models/components"; +import { Security } from "@avalanche-sdk/chainkit/models/components"; let value: Security = {}; ``` diff --git a/devtools/docs/models/components/sharedsecretsresponse.md b/chainkit/docs/models/components/sharedsecretsresponse.md similarity index 86% rename from devtools/docs/models/components/sharedsecretsresponse.md rename to chainkit/docs/models/components/sharedsecretsresponse.md index 2f86185b..5c1c4ca7 100644 --- a/devtools/docs/models/components/sharedsecretsresponse.md +++ b/chainkit/docs/models/components/sharedsecretsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SharedSecretsResponse } from "@avalanche-sdk/devtools/models/components"; +import { SharedSecretsResponse } from "@avalanche-sdk/chainkit/models/components"; let value: SharedSecretsResponse = { secret: "", diff --git a/devtools/docs/models/components/signatureaggregationresponse.md b/chainkit/docs/models/components/signatureaggregationresponse.md similarity index 99% rename from devtools/docs/models/components/signatureaggregationresponse.md rename to chainkit/docs/models/components/signatureaggregationresponse.md index 41354277..4e5219a6 100644 --- a/devtools/docs/models/components/signatureaggregationresponse.md +++ b/chainkit/docs/models/components/signatureaggregationresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SignatureAggregationResponse } from "@avalanche-sdk/devtools/models/components"; +import { SignatureAggregationResponse } from "@avalanche-sdk/chainkit/models/components"; let value: SignatureAggregationResponse = { signedMessage: diff --git a/devtools/docs/models/components/signatureaggregatorrequest.md b/chainkit/docs/models/components/signatureaggregatorrequest.md similarity index 99% rename from devtools/docs/models/components/signatureaggregatorrequest.md rename to chainkit/docs/models/components/signatureaggregatorrequest.md index b8cb580d..4372036f 100644 --- a/devtools/docs/models/components/signatureaggregatorrequest.md +++ b/chainkit/docs/models/components/signatureaggregatorrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SignatureAggregatorRequest } from "@avalanche-sdk/devtools/models/components"; +import { SignatureAggregatorRequest } from "@avalanche-sdk/chainkit/models/components"; let value: SignatureAggregatorRequest = { message: diff --git a/devtools/docs/models/components/sortbyoption.md b/chainkit/docs/models/components/sortbyoption.md similarity index 78% rename from devtools/docs/models/components/sortbyoption.md rename to chainkit/docs/models/components/sortbyoption.md index a2b1e23d..b35dfa19 100644 --- a/devtools/docs/models/components/sortbyoption.md +++ b/chainkit/docs/models/components/sortbyoption.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SortByOption } from "@avalanche-sdk/devtools/models/components"; +import { SortByOption } from "@avalanche-sdk/chainkit/models/components"; let value: SortByOption = "delegationCapacity"; ``` diff --git a/devtools/docs/models/components/sortorder.md b/chainkit/docs/models/components/sortorder.md similarity index 67% rename from devtools/docs/models/components/sortorder.md rename to chainkit/docs/models/components/sortorder.md index aa5c7a38..7e8beb40 100644 --- a/devtools/docs/models/components/sortorder.md +++ b/chainkit/docs/models/components/sortorder.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SortOrder } from "@avalanche-sdk/devtools/models/components"; +import { SortOrder } from "@avalanche-sdk/chainkit/models/components"; let value: SortOrder = "asc"; ``` diff --git a/devtools/docs/models/components/stakingdistribution.md b/chainkit/docs/models/components/stakingdistribution.md similarity index 95% rename from devtools/docs/models/components/stakingdistribution.md rename to chainkit/docs/models/components/stakingdistribution.md index f4f302ce..170a05ea 100644 --- a/devtools/docs/models/components/stakingdistribution.md +++ b/chainkit/docs/models/components/stakingdistribution.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { StakingDistribution } from "@avalanche-sdk/devtools/models/components"; +import { StakingDistribution } from "@avalanche-sdk/chainkit/models/components"; let value: StakingDistribution = { version: "", diff --git a/devtools/docs/models/components/subnet.md b/chainkit/docs/models/components/subnet.md similarity index 99% rename from devtools/docs/models/components/subnet.md rename to chainkit/docs/models/components/subnet.md index 67c6e982..80fa63b8 100644 --- a/devtools/docs/models/components/subnet.md +++ b/chainkit/docs/models/components/subnet.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Subnet } from "@avalanche-sdk/devtools/models/components"; +import { Subnet } from "@avalanche-sdk/chainkit/models/components"; let value: Subnet = { createBlockTimestamp: 1836.04, diff --git a/devtools/docs/models/components/subnetownershipinfo.md b/chainkit/docs/models/components/subnetownershipinfo.md similarity index 97% rename from devtools/docs/models/components/subnetownershipinfo.md rename to chainkit/docs/models/components/subnetownershipinfo.md index 7a0c7c30..813b94ff 100644 --- a/devtools/docs/models/components/subnetownershipinfo.md +++ b/chainkit/docs/models/components/subnetownershipinfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SubnetOwnershipInfo } from "@avalanche-sdk/devtools/models/components"; +import { SubnetOwnershipInfo } from "@avalanche-sdk/chainkit/models/components"; let value: SubnetOwnershipInfo = { locktime: 0, diff --git a/devtools/docs/models/components/subnetrpctimeintervalgranularity.md b/chainkit/docs/models/components/subnetrpctimeintervalgranularity.md similarity index 89% rename from devtools/docs/models/components/subnetrpctimeintervalgranularity.md rename to chainkit/docs/models/components/subnetrpctimeintervalgranularity.md index 0f9499fc..f17f5802 100644 --- a/devtools/docs/models/components/subnetrpctimeintervalgranularity.md +++ b/chainkit/docs/models/components/subnetrpctimeintervalgranularity.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SubnetRpcTimeIntervalGranularity } from "@avalanche-sdk/devtools/models/components"; +import { SubnetRpcTimeIntervalGranularity } from "@avalanche-sdk/chainkit/models/components"; let value: SubnetRpcTimeIntervalGranularity = "daily"; ``` diff --git a/devtools/docs/models/components/subnetrpcusagemetricsresponsedto.md b/chainkit/docs/models/components/subnetrpcusagemetricsresponsedto.md similarity index 98% rename from devtools/docs/models/components/subnetrpcusagemetricsresponsedto.md rename to chainkit/docs/models/components/subnetrpcusagemetricsresponsedto.md index 149e19d2..4172119b 100644 --- a/devtools/docs/models/components/subnetrpcusagemetricsresponsedto.md +++ b/chainkit/docs/models/components/subnetrpcusagemetricsresponsedto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SubnetRpcUsageMetricsResponseDTO } from "@avalanche-sdk/devtools/models/components"; +import { SubnetRpcUsageMetricsResponseDTO } from "@avalanche-sdk/chainkit/models/components"; let value: SubnetRpcUsageMetricsResponseDTO = { aggregateDuration: "", diff --git a/devtools/docs/models/components/teleporterchainmetricsapiresponse.md b/chainkit/docs/models/components/teleporterchainmetricsapiresponse.md similarity index 97% rename from devtools/docs/models/components/teleporterchainmetricsapiresponse.md rename to chainkit/docs/models/components/teleporterchainmetricsapiresponse.md index 9ec132d1..a909bdd9 100644 --- a/devtools/docs/models/components/teleporterchainmetricsapiresponse.md +++ b/chainkit/docs/models/components/teleporterchainmetricsapiresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterChainMetricsApiResponse } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterChainMetricsApiResponse } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterChainMetricsApiResponse = { result: { diff --git a/devtools/docs/models/components/teleporterdestinationtransaction.md b/chainkit/docs/models/components/teleporterdestinationtransaction.md similarity index 96% rename from devtools/docs/models/components/teleporterdestinationtransaction.md rename to chainkit/docs/models/components/teleporterdestinationtransaction.md index c066fdea..f9132753 100644 --- a/devtools/docs/models/components/teleporterdestinationtransaction.md +++ b/chainkit/docs/models/components/teleporterdestinationtransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterDestinationTransaction } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterDestinationTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterDestinationTransaction = { txHash: "", diff --git a/devtools/docs/models/components/teleportermessageinfo.md b/chainkit/docs/models/components/teleportermessageinfo.md similarity index 97% rename from devtools/docs/models/components/teleportermessageinfo.md rename to chainkit/docs/models/components/teleportermessageinfo.md index b75577f4..4d7927ab 100644 --- a/devtools/docs/models/components/teleportermessageinfo.md +++ b/chainkit/docs/models/components/teleportermessageinfo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterMessageInfo } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterMessageInfo } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterMessageInfo = { teleporterMessageId: "", diff --git a/devtools/docs/models/components/teleportermetric.md b/chainkit/docs/models/components/teleportermetric.md similarity index 79% rename from devtools/docs/models/components/teleportermetric.md rename to chainkit/docs/models/components/teleportermetric.md index d3000976..55cd75b2 100644 --- a/devtools/docs/models/components/teleportermetric.md +++ b/chainkit/docs/models/components/teleportermetric.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterMetric } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterMetric } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterMetric = "teleporterSourceTxnCount"; ``` diff --git a/devtools/docs/models/components/teleportermetricsvalue.md b/chainkit/docs/models/components/teleportermetricsvalue.md similarity index 91% rename from devtools/docs/models/components/teleportermetricsvalue.md rename to chainkit/docs/models/components/teleportermetricsvalue.md index 768b53f5..c1d9d9fc 100644 --- a/devtools/docs/models/components/teleportermetricsvalue.md +++ b/chainkit/docs/models/components/teleportermetricsvalue.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterMetricsValue } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterMetricsValue } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterMetricsValue = { value: 6365.16, diff --git a/devtools/docs/models/components/teleporterreceipt.md b/chainkit/docs/models/components/teleporterreceipt.md similarity index 90% rename from devtools/docs/models/components/teleporterreceipt.md rename to chainkit/docs/models/components/teleporterreceipt.md index e6f3a463..6b39bbd7 100644 --- a/devtools/docs/models/components/teleporterreceipt.md +++ b/chainkit/docs/models/components/teleporterreceipt.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterReceipt } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterReceipt } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterReceipt = { receivedMessageNonce: "", diff --git a/devtools/docs/models/components/teleporterrewarddetails.md b/chainkit/docs/models/components/teleporterrewarddetails.md similarity index 99% rename from devtools/docs/models/components/teleporterrewarddetails.md rename to chainkit/docs/models/components/teleporterrewarddetails.md index a09c7d53..cca2d2fe 100644 --- a/devtools/docs/models/components/teleporterrewarddetails.md +++ b/chainkit/docs/models/components/teleporterrewarddetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterRewardDetails } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterRewardDetails } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterRewardDetails = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/components/teleporterrewarddetailserctype.md b/chainkit/docs/models/components/teleporterrewarddetailserctype.md similarity index 63% rename from devtools/docs/models/components/teleporterrewarddetailserctype.md rename to chainkit/docs/models/components/teleporterrewarddetailserctype.md index 0c279aed..641bcea0 100644 --- a/devtools/docs/models/components/teleporterrewarddetailserctype.md +++ b/chainkit/docs/models/components/teleporterrewarddetailserctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterRewardDetailsErcType } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterRewardDetailsErcType } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterRewardDetailsErcType = "ERC-20"; ``` diff --git a/devtools/docs/models/components/teleportersourcetransaction.md b/chainkit/docs/models/components/teleportersourcetransaction.md similarity index 87% rename from devtools/docs/models/components/teleportersourcetransaction.md rename to chainkit/docs/models/components/teleportersourcetransaction.md index ba507929..fb0b7dfc 100644 --- a/devtools/docs/models/components/teleportersourcetransaction.md +++ b/chainkit/docs/models/components/teleportersourcetransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TeleporterSourceTransaction } from "@avalanche-sdk/devtools/models/components"; +import { TeleporterSourceTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: TeleporterSourceTransaction = { txHash: "", diff --git a/devtools/docs/models/components/timeintervalgranularity.md b/chainkit/docs/models/components/timeintervalgranularity.md similarity index 75% rename from devtools/docs/models/components/timeintervalgranularity.md rename to chainkit/docs/models/components/timeintervalgranularity.md index f7f3c7ff..84aff1ec 100644 --- a/devtools/docs/models/components/timeintervalgranularity.md +++ b/chainkit/docs/models/components/timeintervalgranularity.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TimeIntervalGranularity } from "@avalanche-sdk/devtools/models/components"; +import { TimeIntervalGranularity } from "@avalanche-sdk/chainkit/models/components"; let value: TimeIntervalGranularity = "day"; ``` diff --git a/devtools/docs/models/components/timeintervalgranularityextended.md b/chainkit/docs/models/components/timeintervalgranularityextended.md similarity index 90% rename from devtools/docs/models/components/timeintervalgranularityextended.md rename to chainkit/docs/models/components/timeintervalgranularityextended.md index 890f335b..7fccc2d1 100644 --- a/devtools/docs/models/components/timeintervalgranularityextended.md +++ b/chainkit/docs/models/components/timeintervalgranularityextended.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TimeIntervalGranularityExtended } from "@avalanche-sdk/devtools/models/components"; +import { TimeIntervalGranularityExtended } from "@avalanche-sdk/chainkit/models/components"; let value: TimeIntervalGranularityExtended = "daily"; ``` diff --git a/devtools/docs/models/components/token.md b/chainkit/docs/models/components/token.md similarity index 100% rename from devtools/docs/models/components/token.md rename to chainkit/docs/models/components/token.md diff --git a/devtools/docs/models/components/tokenreputation.md b/chainkit/docs/models/components/tokenreputation.md similarity index 88% rename from devtools/docs/models/components/tokenreputation.md rename to chainkit/docs/models/components/tokenreputation.md index a465cdba..98a8cced 100644 --- a/devtools/docs/models/components/tokenreputation.md +++ b/chainkit/docs/models/components/tokenreputation.md @@ -5,7 +5,7 @@ Indicates the reputation of the token based on a security analysis. 'Benign' sug ## Example Usage ```typescript -import { TokenReputation } from "@avalanche-sdk/devtools/models/components"; +import { TokenReputation } from "@avalanche-sdk/chainkit/models/components"; let value: TokenReputation = "Malicious"; ``` diff --git a/devtools/docs/models/components/transaction.md b/chainkit/docs/models/components/transaction.md similarity index 99% rename from devtools/docs/models/components/transaction.md rename to chainkit/docs/models/components/transaction.md index fce7adcb..0b428a72 100644 --- a/devtools/docs/models/components/transaction.md +++ b/chainkit/docs/models/components/transaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Transaction } from "@avalanche-sdk/devtools/models/components"; +import { Transaction } from "@avalanche-sdk/chainkit/models/components"; let value: Transaction = { blockHash: diff --git a/devtools/docs/models/components/transactiondetails.md b/chainkit/docs/models/components/transactiondetails.md similarity index 99% rename from devtools/docs/models/components/transactiondetails.md rename to chainkit/docs/models/components/transactiondetails.md index 2d4a0501..80879906 100644 --- a/devtools/docs/models/components/transactiondetails.md +++ b/chainkit/docs/models/components/transactiondetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionDetails } from "@avalanche-sdk/devtools/models/components"; +import { TransactionDetails } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionDetails = { nativeTransaction: { diff --git a/devtools/docs/models/components/transactiondirectiontype.md b/chainkit/docs/models/components/transactiondirectiontype.md similarity index 70% rename from devtools/docs/models/components/transactiondirectiontype.md rename to chainkit/docs/models/components/transactiondirectiontype.md index ce5a738f..54880178 100644 --- a/devtools/docs/models/components/transactiondirectiontype.md +++ b/chainkit/docs/models/components/transactiondirectiontype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionDirectionType } from "@avalanche-sdk/devtools/models/components"; +import { TransactionDirectionType } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionDirectionType = "SOURCE_TRANSACTION"; ``` diff --git a/devtools/docs/models/components/transactionevent.md b/chainkit/docs/models/components/transactionevent.md similarity index 98% rename from devtools/docs/models/components/transactionevent.md rename to chainkit/docs/models/components/transactionevent.md index 7b7be01d..f5936686 100644 --- a/devtools/docs/models/components/transactionevent.md +++ b/chainkit/docs/models/components/transactionevent.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionEvent } from "@avalanche-sdk/devtools/models/components"; +import { TransactionEvent } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionEvent = { transaction: { diff --git a/devtools/docs/models/components/transactionexportmetadata.md b/chainkit/docs/models/components/transactionexportmetadata.md similarity index 98% rename from devtools/docs/models/components/transactionexportmetadata.md rename to chainkit/docs/models/components/transactionexportmetadata.md index 1923d0cc..65d8e8c0 100644 --- a/devtools/docs/models/components/transactionexportmetadata.md +++ b/chainkit/docs/models/components/transactionexportmetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionExportMetadata } from "@avalanche-sdk/devtools/models/components"; +import { TransactionExportMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionExportMetadata = {}; ``` diff --git a/devtools/docs/models/components/transactionmethodtype.md b/chainkit/docs/models/components/transactionmethodtype.md similarity index 87% rename from devtools/docs/models/components/transactionmethodtype.md rename to chainkit/docs/models/components/transactionmethodtype.md index 3ae29fd3..388fdc2c 100644 --- a/devtools/docs/models/components/transactionmethodtype.md +++ b/chainkit/docs/models/components/transactionmethodtype.md @@ -5,7 +5,7 @@ The contract call type. NATIVE_TRANSFER indicates a transfer of the native token ## Example Usage ```typescript -import { TransactionMethodType } from "@avalanche-sdk/devtools/models/components"; +import { TransactionMethodType } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionMethodType = "NATIVE_TRANSFER"; ``` diff --git a/devtools/docs/models/components/transactionstatus.md b/chainkit/docs/models/components/transactionstatus.md similarity index 72% rename from devtools/docs/models/components/transactionstatus.md rename to chainkit/docs/models/components/transactionstatus.md index d7b8498d..7494c110 100644 --- a/devtools/docs/models/components/transactionstatus.md +++ b/chainkit/docs/models/components/transactionstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionStatus } from "@avalanche-sdk/devtools/models/components"; +import { TransactionStatus } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionStatus = "success"; ``` diff --git a/devtools/docs/models/components/transactionvertexdetail.md b/chainkit/docs/models/components/transactionvertexdetail.md similarity index 96% rename from devtools/docs/models/components/transactionvertexdetail.md rename to chainkit/docs/models/components/transactionvertexdetail.md index 177c34e0..68b1a7a7 100644 --- a/devtools/docs/models/components/transactionvertexdetail.md +++ b/chainkit/docs/models/components/transactionvertexdetail.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TransactionVertexDetail } from "@avalanche-sdk/devtools/models/components"; +import { TransactionVertexDetail } from "@avalanche-sdk/chainkit/models/components"; let value: TransactionVertexDetail = { hash: "82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S", diff --git a/devtools/docs/models/components/transfer.md b/chainkit/docs/models/components/transfer.md similarity index 100% rename from devtools/docs/models/components/transfer.md rename to chainkit/docs/models/components/transfer.md diff --git a/devtools/docs/models/components/unknowncontract.md b/chainkit/docs/models/components/unknowncontract.md similarity index 99% rename from devtools/docs/models/components/unknowncontract.md rename to chainkit/docs/models/components/unknowncontract.md index 1c3f1123..dbc66061 100644 --- a/devtools/docs/models/components/unknowncontract.md +++ b/chainkit/docs/models/components/unknowncontract.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnknownContract } from "@avalanche-sdk/devtools/models/components"; +import { UnknownContract } from "@avalanche-sdk/chainkit/models/components"; let value: UnknownContract = { name: "Wrapped AVAX", diff --git a/devtools/docs/models/components/unknowncontracterctype.md b/chainkit/docs/models/components/unknowncontracterctype.md similarity index 72% rename from devtools/docs/models/components/unknowncontracterctype.md rename to chainkit/docs/models/components/unknowncontracterctype.md index 5802994c..ca7dc114 100644 --- a/devtools/docs/models/components/unknowncontracterctype.md +++ b/chainkit/docs/models/components/unknowncontracterctype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnknownContractErcType } from "@avalanche-sdk/devtools/models/components"; +import { UnknownContractErcType } from "@avalanche-sdk/chainkit/models/components"; let value: UnknownContractErcType = "UNKNOWN"; ``` diff --git a/devtools/docs/models/components/updatewebhookrequest.md b/chainkit/docs/models/components/updatewebhookrequest.md similarity index 98% rename from devtools/docs/models/components/updatewebhookrequest.md rename to chainkit/docs/models/components/updatewebhookrequest.md index 29a3872f..e4e0f770 100644 --- a/devtools/docs/models/components/updatewebhookrequest.md +++ b/chainkit/docs/models/components/updatewebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateWebhookRequest } from "@avalanche-sdk/devtools/models/components"; +import { UpdateWebhookRequest } from "@avalanche-sdk/chainkit/models/components"; let value: UpdateWebhookRequest = {}; ``` diff --git a/devtools/docs/models/components/usagemetricsgroupbyenum.md b/chainkit/docs/models/components/usagemetricsgroupbyenum.md similarity index 78% rename from devtools/docs/models/components/usagemetricsgroupbyenum.md rename to chainkit/docs/models/components/usagemetricsgroupbyenum.md index 41cdccbf..4c9aab96 100644 --- a/devtools/docs/models/components/usagemetricsgroupbyenum.md +++ b/chainkit/docs/models/components/usagemetricsgroupbyenum.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UsageMetricsGroupByEnum } from "@avalanche-sdk/devtools/models/components"; +import { UsageMetricsGroupByEnum } from "@avalanche-sdk/chainkit/models/components"; let value: UsageMetricsGroupByEnum = "requestPath"; ``` diff --git a/devtools/docs/models/components/usagemetricsresponsedto.md b/chainkit/docs/models/components/usagemetricsresponsedto.md similarity index 96% rename from devtools/docs/models/components/usagemetricsresponsedto.md rename to chainkit/docs/models/components/usagemetricsresponsedto.md index 0737c952..15f45201 100644 --- a/devtools/docs/models/components/usagemetricsresponsedto.md +++ b/chainkit/docs/models/components/usagemetricsresponsedto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UsageMetricsResponseDTO } from "@avalanche-sdk/devtools/models/components"; +import { UsageMetricsResponseDTO } from "@avalanche-sdk/chainkit/models/components"; let value: UsageMetricsResponseDTO = { aggregateDuration: "", diff --git a/devtools/docs/models/components/usagemetricsvaluedto.md b/chainkit/docs/models/components/usagemetricsvaluedto.md similarity index 98% rename from devtools/docs/models/components/usagemetricsvaluedto.md rename to chainkit/docs/models/components/usagemetricsvaluedto.md index b671723f..396912a1 100644 --- a/devtools/docs/models/components/usagemetricsvaluedto.md +++ b/chainkit/docs/models/components/usagemetricsvaluedto.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UsageMetricsValueDTO } from "@avalanche-sdk/devtools/models/components"; +import { UsageMetricsValueDTO } from "@avalanche-sdk/chainkit/models/components"; let value: UsageMetricsValueDTO = { groupedBy: "responseCode", diff --git a/devtools/docs/models/components/usagemetricsvaluedtogroupedby.md b/chainkit/docs/models/components/usagemetricsvaluedtogroupedby.md similarity index 75% rename from devtools/docs/models/components/usagemetricsvaluedtogroupedby.md rename to chainkit/docs/models/components/usagemetricsvaluedtogroupedby.md index e6bd91ad..83452a00 100644 --- a/devtools/docs/models/components/usagemetricsvaluedtogroupedby.md +++ b/chainkit/docs/models/components/usagemetricsvaluedtogroupedby.md @@ -5,7 +5,7 @@ Column name used for data aggregation ## Example Usage ```typescript -import { UsageMetricsValueDTOGroupedBy } from "@avalanche-sdk/devtools/models/components"; +import { UsageMetricsValueDTOGroupedBy } from "@avalanche-sdk/chainkit/models/components"; let value: UsageMetricsValueDTOGroupedBy = "responseCode"; ``` diff --git a/devtools/docs/models/components/usagemetricsvaluedtogroupvalue.md b/chainkit/docs/models/components/usagemetricsvaluedtogroupvalue.md similarity index 100% rename from devtools/docs/models/components/usagemetricsvaluedtogroupvalue.md rename to chainkit/docs/models/components/usagemetricsvaluedtogroupvalue.md diff --git a/devtools/docs/models/components/utilityaddresses.md b/chainkit/docs/models/components/utilityaddresses.md similarity index 85% rename from devtools/docs/models/components/utilityaddresses.md rename to chainkit/docs/models/components/utilityaddresses.md index b87e0d26..fc67138f 100644 --- a/devtools/docs/models/components/utilityaddresses.md +++ b/chainkit/docs/models/components/utilityaddresses.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UtilityAddresses } from "@avalanche-sdk/devtools/models/components"; +import { UtilityAddresses } from "@avalanche-sdk/chainkit/models/components"; let value: UtilityAddresses = {}; ``` diff --git a/devtools/docs/models/components/utxo.md b/chainkit/docs/models/components/utxo.md similarity index 99% rename from devtools/docs/models/components/utxo.md rename to chainkit/docs/models/components/utxo.md index f6109590..7be7dce7 100644 --- a/devtools/docs/models/components/utxo.md +++ b/chainkit/docs/models/components/utxo.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { Utxo } from "@avalanche-sdk/devtools/models/components"; +import { Utxo } from "@avalanche-sdk/chainkit/models/components"; let value: Utxo = { addresses: [ diff --git a/devtools/docs/models/components/utxocredential.md b/chainkit/docs/models/components/utxocredential.md similarity index 97% rename from devtools/docs/models/components/utxocredential.md rename to chainkit/docs/models/components/utxocredential.md index 2e2158fc..75955e10 100644 --- a/devtools/docs/models/components/utxocredential.md +++ b/chainkit/docs/models/components/utxocredential.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UtxoCredential } from "@avalanche-sdk/devtools/models/components"; +import { UtxoCredential } from "@avalanche-sdk/chainkit/models/components"; let value: UtxoCredential = { signature: diff --git a/devtools/docs/models/components/utxotype.md b/chainkit/docs/models/components/utxotype.md similarity index 75% rename from devtools/docs/models/components/utxotype.md rename to chainkit/docs/models/components/utxotype.md index 713e091a..8c81304a 100644 --- a/devtools/docs/models/components/utxotype.md +++ b/chainkit/docs/models/components/utxotype.md @@ -5,7 +5,7 @@ Indicates whether the UTXO is staked or transferable ## Example Usage ```typescript -import { UtxoType } from "@avalanche-sdk/devtools/models/components"; +import { UtxoType } from "@avalanche-sdk/chainkit/models/components"; let value: UtxoType = "TRANSFER"; ``` diff --git a/devtools/docs/models/components/validationstatustype.md b/chainkit/docs/models/components/validationstatustype.md similarity index 75% rename from devtools/docs/models/components/validationstatustype.md rename to chainkit/docs/models/components/validationstatustype.md index 621a51f9..17f3c12a 100644 --- a/devtools/docs/models/components/validationstatustype.md +++ b/chainkit/docs/models/components/validationstatustype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidationStatusType } from "@avalanche-sdk/devtools/models/components"; +import { ValidationStatusType } from "@avalanche-sdk/chainkit/models/components"; let value: ValidationStatusType = "completed"; ``` diff --git a/devtools/docs/models/components/validator.md b/chainkit/docs/models/components/validator.md similarity index 100% rename from devtools/docs/models/components/validator.md rename to chainkit/docs/models/components/validator.md diff --git a/devtools/docs/models/components/validatoractivityeventtype.md b/chainkit/docs/models/components/validatoractivityeventtype.md similarity index 67% rename from devtools/docs/models/components/validatoractivityeventtype.md rename to chainkit/docs/models/components/validatoractivityeventtype.md index 92b37843..aa12a57a 100644 --- a/devtools/docs/models/components/validatoractivityeventtype.md +++ b/chainkit/docs/models/components/validatoractivityeventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivityEventType } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityEventType } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityEventType = "validator_activity"; ``` diff --git a/devtools/docs/models/components/validatoractivitykeytype.md b/chainkit/docs/models/components/validatoractivitykeytype.md similarity index 72% rename from devtools/docs/models/components/validatoractivitykeytype.md rename to chainkit/docs/models/components/validatoractivitykeytype.md index b462f085..18a5273a 100644 --- a/devtools/docs/models/components/validatoractivitykeytype.md +++ b/chainkit/docs/models/components/validatoractivitykeytype.md @@ -5,7 +5,7 @@ The type of key to monitor for the validator activity event type. ## Example Usage ```typescript -import { ValidatorActivityKeyType } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityKeyType } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityKeyType = "nodeId"; ``` diff --git a/devtools/docs/models/components/validatoractivitymetadata.md b/chainkit/docs/models/components/validatoractivitymetadata.md similarity index 98% rename from devtools/docs/models/components/validatoractivitymetadata.md rename to chainkit/docs/models/components/validatoractivitymetadata.md index cd4d6d1b..5e120479 100644 --- a/devtools/docs/models/components/validatoractivitymetadata.md +++ b/chainkit/docs/models/components/validatoractivitymetadata.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivityMetadata } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityMetadata } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityMetadata = { eventSignatures: [ diff --git a/devtools/docs/models/components/validatoractivityrequest.md b/chainkit/docs/models/components/validatoractivityrequest.md similarity index 97% rename from devtools/docs/models/components/validatoractivityrequest.md rename to chainkit/docs/models/components/validatoractivityrequest.md index 14709072..819c5d4b 100644 --- a/devtools/docs/models/components/validatoractivityrequest.md +++ b/chainkit/docs/models/components/validatoractivityrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivityRequest } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityRequest } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityRequest = { eventType: "validator_activity", diff --git a/devtools/docs/models/components/validatoractivityrequesteventtype.md b/chainkit/docs/models/components/validatoractivityrequesteventtype.md similarity index 89% rename from devtools/docs/models/components/validatoractivityrequesteventtype.md rename to chainkit/docs/models/components/validatoractivityrequesteventtype.md index ec97b92c..5358454e 100644 --- a/devtools/docs/models/components/validatoractivityrequesteventtype.md +++ b/chainkit/docs/models/components/validatoractivityrequesteventtype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivityRequestEventType } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityRequestEventType } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityRequestEventType = "validator_activity"; ``` diff --git a/devtools/docs/models/components/validatoractivityrequestmetadata.md b/chainkit/docs/models/components/validatoractivityrequestmetadata.md similarity index 100% rename from devtools/docs/models/components/validatoractivityrequestmetadata.md rename to chainkit/docs/models/components/validatoractivityrequestmetadata.md diff --git a/devtools/docs/models/components/validatoractivityresponse.md b/chainkit/docs/models/components/validatoractivityresponse.md similarity index 98% rename from devtools/docs/models/components/validatoractivityresponse.md rename to chainkit/docs/models/components/validatoractivityresponse.md index c71d133d..29f660aa 100644 --- a/devtools/docs/models/components/validatoractivityresponse.md +++ b/chainkit/docs/models/components/validatoractivityresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivityResponse } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivityResponse } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivityResponse = { id: "", diff --git a/devtools/docs/models/components/validatoractivitysubevent.md b/chainkit/docs/models/components/validatoractivitysubevent.md similarity index 80% rename from devtools/docs/models/components/validatoractivitysubevent.md rename to chainkit/docs/models/components/validatoractivitysubevent.md index 4709c85d..2bc0f9fe 100644 --- a/devtools/docs/models/components/validatoractivitysubevent.md +++ b/chainkit/docs/models/components/validatoractivitysubevent.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivitySubEvent } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivitySubEvent } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivitySubEvent = "l1_validator_balance_threshold"; ``` diff --git a/devtools/docs/models/components/validatoractivitysubevents.md b/chainkit/docs/models/components/validatoractivitysubevents.md similarity index 93% rename from devtools/docs/models/components/validatoractivitysubevents.md rename to chainkit/docs/models/components/validatoractivitysubevents.md index 8cb997dd..08cd26ab 100644 --- a/devtools/docs/models/components/validatoractivitysubevents.md +++ b/chainkit/docs/models/components/validatoractivitysubevents.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorActivitySubEvents } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorActivitySubEvents } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorActivitySubEvents = { validatorActivitySubEvents: [], diff --git a/devtools/docs/models/components/validatorhealthdetails.md b/chainkit/docs/models/components/validatorhealthdetails.md similarity index 96% rename from devtools/docs/models/components/validatorhealthdetails.md rename to chainkit/docs/models/components/validatorhealthdetails.md index db47dd03..42d85c29 100644 --- a/devtools/docs/models/components/validatorhealthdetails.md +++ b/chainkit/docs/models/components/validatorhealthdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorHealthDetails } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorHealthDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorHealthDetails = { reachabilityPercent: 2996.22, diff --git a/devtools/docs/models/components/validatorsdetails.md b/chainkit/docs/models/components/validatorsdetails.md similarity index 97% rename from devtools/docs/models/components/validatorsdetails.md rename to chainkit/docs/models/components/validatorsdetails.md index 34e3958c..2f89565a 100644 --- a/devtools/docs/models/components/validatorsdetails.md +++ b/chainkit/docs/models/components/validatorsdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ValidatorsDetails } from "@avalanche-sdk/devtools/models/components"; +import { ValidatorsDetails } from "@avalanche-sdk/chainkit/models/components"; let value: ValidatorsDetails = { validatorCount: 4440.38, diff --git a/devtools/docs/models/components/vmname.md b/chainkit/docs/models/components/vmname.md similarity index 68% rename from devtools/docs/models/components/vmname.md rename to chainkit/docs/models/components/vmname.md index a6aa99ab..b0f6d9cb 100644 --- a/devtools/docs/models/components/vmname.md +++ b/chainkit/docs/models/components/vmname.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { VmName } from "@avalanche-sdk/devtools/models/components"; +import { VmName } from "@avalanche-sdk/chainkit/models/components"; let value: VmName = "EVM"; ``` diff --git a/devtools/docs/models/components/webhook.md b/chainkit/docs/models/components/webhook.md similarity index 100% rename from devtools/docs/models/components/webhook.md rename to chainkit/docs/models/components/webhook.md diff --git a/devtools/docs/models/components/webhookaddressactivityresponse.md b/chainkit/docs/models/components/webhookaddressactivityresponse.md similarity index 98% rename from devtools/docs/models/components/webhookaddressactivityresponse.md rename to chainkit/docs/models/components/webhookaddressactivityresponse.md index dc0e0c21..d4795bd4 100644 --- a/devtools/docs/models/components/webhookaddressactivityresponse.md +++ b/chainkit/docs/models/components/webhookaddressactivityresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WebhookAddressActivityResponse } from "@avalanche-sdk/devtools/models/components"; +import { WebhookAddressActivityResponse } from "@avalanche-sdk/chainkit/models/components"; let value: WebhookAddressActivityResponse = { webhookId: "401da7d9-d6d7-46c8-b431-72ff1e1543f4", diff --git a/devtools/docs/models/components/webhookaddressactivityresponseeventtype.md b/chainkit/docs/models/components/webhookaddressactivityresponseeventtype.md similarity index 88% rename from devtools/docs/models/components/webhookaddressactivityresponseeventtype.md rename to chainkit/docs/models/components/webhookaddressactivityresponseeventtype.md index 559f37dd..f92a962a 100644 --- a/devtools/docs/models/components/webhookaddressactivityresponseeventtype.md +++ b/chainkit/docs/models/components/webhookaddressactivityresponseeventtype.md @@ -5,7 +5,7 @@ Event type ## Example Usage ```typescript -import { WebhookAddressActivityResponseEventType } from "@avalanche-sdk/devtools/models/components"; +import { WebhookAddressActivityResponseEventType } from "@avalanche-sdk/chainkit/models/components"; let value: WebhookAddressActivityResponseEventType = "address_activity"; ``` diff --git a/devtools/docs/models/components/webhookinternaltransaction.md b/chainkit/docs/models/components/webhookinternaltransaction.md similarity index 97% rename from devtools/docs/models/components/webhookinternaltransaction.md rename to chainkit/docs/models/components/webhookinternaltransaction.md index e039cbb4..5760e88d 100644 --- a/devtools/docs/models/components/webhookinternaltransaction.md +++ b/chainkit/docs/models/components/webhookinternaltransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WebhookInternalTransaction } from "@avalanche-sdk/devtools/models/components"; +import { WebhookInternalTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: WebhookInternalTransaction = { from: "0x737F6b0b8A04e8462d0fC7076451298F0dA9a972", diff --git a/devtools/docs/models/components/webhookstatus.md b/chainkit/docs/models/components/webhookstatus.md similarity index 70% rename from devtools/docs/models/components/webhookstatus.md rename to chainkit/docs/models/components/webhookstatus.md index 716b4213..44ed81b5 100644 --- a/devtools/docs/models/components/webhookstatus.md +++ b/chainkit/docs/models/components/webhookstatus.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WebhookStatus } from "@avalanche-sdk/devtools/models/components"; +import { WebhookStatus } from "@avalanche-sdk/chainkit/models/components"; let value: WebhookStatus = "active"; ``` diff --git a/devtools/docs/models/components/webhookstatustype.md b/chainkit/docs/models/components/webhookstatustype.md similarity index 72% rename from devtools/docs/models/components/webhookstatustype.md rename to chainkit/docs/models/components/webhookstatustype.md index 58c158e6..a07ee03a 100644 --- a/devtools/docs/models/components/webhookstatustype.md +++ b/chainkit/docs/models/components/webhookstatustype.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { WebhookStatusType } from "@avalanche-sdk/devtools/models/components"; +import { WebhookStatusType } from "@avalanche-sdk/chainkit/models/components"; let value: WebhookStatusType = "inactive"; ``` diff --git a/devtools/docs/models/components/xchainassetdetails.md b/chainkit/docs/models/components/xchainassetdetails.md similarity index 98% rename from devtools/docs/models/components/xchainassetdetails.md rename to chainkit/docs/models/components/xchainassetdetails.md index ae4dc9cf..928a4c74 100644 --- a/devtools/docs/models/components/xchainassetdetails.md +++ b/chainkit/docs/models/components/xchainassetdetails.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainAssetDetails } from "@avalanche-sdk/devtools/models/components"; +import { XChainAssetDetails } from "@avalanche-sdk/chainkit/models/components"; let value: XChainAssetDetails = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/xchainbalances.md b/chainkit/docs/models/components/xchainbalances.md similarity index 97% rename from devtools/docs/models/components/xchainbalances.md rename to chainkit/docs/models/components/xchainbalances.md index 05ded5eb..01956139 100644 --- a/devtools/docs/models/components/xchainbalances.md +++ b/chainkit/docs/models/components/xchainbalances.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainBalances } from "@avalanche-sdk/devtools/models/components"; +import { XChainBalances } from "@avalanche-sdk/chainkit/models/components"; let value: XChainBalances = { locked: [], diff --git a/devtools/docs/models/components/xchainid.md b/chainkit/docs/models/components/xchainid.md similarity index 78% rename from devtools/docs/models/components/xchainid.md rename to chainkit/docs/models/components/xchainid.md index def64a98..65fc04aa 100644 --- a/devtools/docs/models/components/xchainid.md +++ b/chainkit/docs/models/components/xchainid.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainId } from "@avalanche-sdk/devtools/models/components"; +import { XChainId } from "@avalanche-sdk/chainkit/models/components"; let value: XChainId = "x-chain"; ``` diff --git a/devtools/docs/models/components/xchainlineartransaction.md b/chainkit/docs/models/components/xchainlineartransaction.md similarity index 99% rename from devtools/docs/models/components/xchainlineartransaction.md rename to chainkit/docs/models/components/xchainlineartransaction.md index 530cc66f..11324243 100644 --- a/devtools/docs/models/components/xchainlineartransaction.md +++ b/chainkit/docs/models/components/xchainlineartransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainLinearTransaction } from "@avalanche-sdk/devtools/models/components"; +import { XChainLinearTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: XChainLinearTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", diff --git a/devtools/docs/models/components/xchainlineartransactionchainformat.md b/chainkit/docs/models/components/xchainlineartransactionchainformat.md similarity index 90% rename from devtools/docs/models/components/xchainlineartransactionchainformat.md rename to chainkit/docs/models/components/xchainlineartransactionchainformat.md index 2e31a470..89afd40a 100644 --- a/devtools/docs/models/components/xchainlineartransactionchainformat.md +++ b/chainkit/docs/models/components/xchainlineartransactionchainformat.md @@ -5,7 +5,7 @@ Represents chain format this transaction is included in. ## Example Usage ```typescript -import { XChainLinearTransactionChainFormat } from "@avalanche-sdk/devtools/models/components"; +import { XChainLinearTransactionChainFormat } from "@avalanche-sdk/chainkit/models/components"; let value: XChainLinearTransactionChainFormat = "non-linear"; ``` diff --git a/devtools/docs/models/components/xchainnonlineartransaction.md b/chainkit/docs/models/components/xchainnonlineartransaction.md similarity index 99% rename from devtools/docs/models/components/xchainnonlineartransaction.md rename to chainkit/docs/models/components/xchainnonlineartransaction.md index fdb08711..2f59b5db 100644 --- a/devtools/docs/models/components/xchainnonlineartransaction.md +++ b/chainkit/docs/models/components/xchainnonlineartransaction.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainNonLinearTransaction } from "@avalanche-sdk/devtools/models/components"; +import { XChainNonLinearTransaction } from "@avalanche-sdk/chainkit/models/components"; let value: XChainNonLinearTransaction = { txHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c", diff --git a/devtools/docs/models/components/xchainnonlineartransactionchainformat.md b/chainkit/docs/models/components/xchainnonlineartransactionchainformat.md similarity index 90% rename from devtools/docs/models/components/xchainnonlineartransactionchainformat.md rename to chainkit/docs/models/components/xchainnonlineartransactionchainformat.md index eaf94e33..3c05f0d1 100644 --- a/devtools/docs/models/components/xchainnonlineartransactionchainformat.md +++ b/chainkit/docs/models/components/xchainnonlineartransactionchainformat.md @@ -5,7 +5,7 @@ Represents chain format this transaction is included in. ## Example Usage ```typescript -import { XChainNonLinearTransactionChainFormat } from "@avalanche-sdk/devtools/models/components"; +import { XChainNonLinearTransactionChainFormat } from "@avalanche-sdk/chainkit/models/components"; let value: XChainNonLinearTransactionChainFormat = "non-linear"; ``` diff --git a/devtools/docs/models/components/xchainsharedassetbalance.md b/chainkit/docs/models/components/xchainsharedassetbalance.md similarity index 98% rename from devtools/docs/models/components/xchainsharedassetbalance.md rename to chainkit/docs/models/components/xchainsharedassetbalance.md index 8e6c9a5a..35ab0421 100644 --- a/devtools/docs/models/components/xchainsharedassetbalance.md +++ b/chainkit/docs/models/components/xchainsharedassetbalance.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainSharedAssetBalance } from "@avalanche-sdk/devtools/models/components"; +import { XChainSharedAssetBalance } from "@avalanche-sdk/chainkit/models/components"; let value: XChainSharedAssetBalance = { assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof", diff --git a/devtools/docs/models/components/xchaintransactiontype.md b/chainkit/docs/models/components/xchaintransactiontype.md similarity index 80% rename from devtools/docs/models/components/xchaintransactiontype.md rename to chainkit/docs/models/components/xchaintransactiontype.md index 0eb6f886..8a5a049f 100644 --- a/devtools/docs/models/components/xchaintransactiontype.md +++ b/chainkit/docs/models/components/xchaintransactiontype.md @@ -5,7 +5,7 @@ Type of transaction. ## Example Usage ```typescript -import { XChainTransactionType } from "@avalanche-sdk/devtools/models/components"; +import { XChainTransactionType } from "@avalanche-sdk/chainkit/models/components"; let value: XChainTransactionType = "ImportTx"; ``` diff --git a/devtools/docs/models/components/xchainvertex.md b/chainkit/docs/models/components/xchainvertex.md similarity index 94% rename from devtools/docs/models/components/xchainvertex.md rename to chainkit/docs/models/components/xchainvertex.md index e7ce2410..8eb16594 100644 --- a/devtools/docs/models/components/xchainvertex.md +++ b/chainkit/docs/models/components/xchainvertex.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { XChainVertex } from "@avalanche-sdk/devtools/models/components"; +import { XChainVertex } from "@avalanche-sdk/chainkit/models/components"; let value: XChainVertex = { vertexHash: "", diff --git a/devtools/docs/models/errors/badgatewayerror.md b/chainkit/docs/models/errors/badgatewayerror.md similarity index 96% rename from devtools/docs/models/errors/badgatewayerror.md rename to chainkit/docs/models/errors/badgatewayerror.md index 487308fa..b8539484 100644 --- a/devtools/docs/models/errors/badgatewayerror.md +++ b/chainkit/docs/models/errors/badgatewayerror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BadGatewayError } from "@avalanche-sdk/devtools/models/errors"; +import { BadGatewayError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/badgatewaymessage.md b/chainkit/docs/models/errors/badgatewaymessage.md similarity index 100% rename from devtools/docs/models/errors/badgatewaymessage.md rename to chainkit/docs/models/errors/badgatewaymessage.md diff --git a/devtools/docs/models/errors/badrequesterror.md b/chainkit/docs/models/errors/badrequesterror.md similarity index 96% rename from devtools/docs/models/errors/badrequesterror.md rename to chainkit/docs/models/errors/badrequesterror.md index 633a763f..fbe7c296 100644 --- a/devtools/docs/models/errors/badrequesterror.md +++ b/chainkit/docs/models/errors/badrequesterror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { BadRequestError } from "@avalanche-sdk/devtools/models/errors"; +import { BadRequestError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/badrequestmessage.md b/chainkit/docs/models/errors/badrequestmessage.md similarity index 100% rename from devtools/docs/models/errors/badrequestmessage.md rename to chainkit/docs/models/errors/badrequestmessage.md diff --git a/devtools/docs/models/errors/forbiddenerror.md b/chainkit/docs/models/errors/forbiddenerror.md similarity index 96% rename from devtools/docs/models/errors/forbiddenerror.md rename to chainkit/docs/models/errors/forbiddenerror.md index e5f32018..c772f76a 100644 --- a/devtools/docs/models/errors/forbiddenerror.md +++ b/chainkit/docs/models/errors/forbiddenerror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ForbiddenError } from "@avalanche-sdk/devtools/models/errors"; +import { ForbiddenError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/forbiddenmessage.md b/chainkit/docs/models/errors/forbiddenmessage.md similarity index 100% rename from devtools/docs/models/errors/forbiddenmessage.md rename to chainkit/docs/models/errors/forbiddenmessage.md diff --git a/devtools/docs/models/errors/internalservererror.md b/chainkit/docs/models/errors/internalservererror.md similarity index 96% rename from devtools/docs/models/errors/internalservererror.md rename to chainkit/docs/models/errors/internalservererror.md index 5642ecbd..acab58be 100644 --- a/devtools/docs/models/errors/internalservererror.md +++ b/chainkit/docs/models/errors/internalservererror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { InternalServerError } from "@avalanche-sdk/devtools/models/errors"; +import { InternalServerError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/internalservererrormessage.md b/chainkit/docs/models/errors/internalservererrormessage.md similarity index 100% rename from devtools/docs/models/errors/internalservererrormessage.md rename to chainkit/docs/models/errors/internalservererrormessage.md diff --git a/devtools/docs/models/errors/notfounderror.md b/chainkit/docs/models/errors/notfounderror.md similarity index 96% rename from devtools/docs/models/errors/notfounderror.md rename to chainkit/docs/models/errors/notfounderror.md index 74a34509..f81ba8ff 100644 --- a/devtools/docs/models/errors/notfounderror.md +++ b/chainkit/docs/models/errors/notfounderror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { NotFoundError } from "@avalanche-sdk/devtools/models/errors"; +import { NotFoundError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/notfoundmessage.md b/chainkit/docs/models/errors/notfoundmessage.md similarity index 100% rename from devtools/docs/models/errors/notfoundmessage.md rename to chainkit/docs/models/errors/notfoundmessage.md diff --git a/devtools/docs/models/errors/serviceunavailableerror.md b/chainkit/docs/models/errors/serviceunavailableerror.md similarity index 96% rename from devtools/docs/models/errors/serviceunavailableerror.md rename to chainkit/docs/models/errors/serviceunavailableerror.md index 9a1cc9f6..0146cde5 100644 --- a/devtools/docs/models/errors/serviceunavailableerror.md +++ b/chainkit/docs/models/errors/serviceunavailableerror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ServiceUnavailableError } from "@avalanche-sdk/devtools/models/errors"; +import { ServiceUnavailableError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/serviceunavailablemessage.md b/chainkit/docs/models/errors/serviceunavailablemessage.md similarity index 100% rename from devtools/docs/models/errors/serviceunavailablemessage.md rename to chainkit/docs/models/errors/serviceunavailablemessage.md diff --git a/devtools/docs/models/errors/toomanyrequestserror.md b/chainkit/docs/models/errors/toomanyrequestserror.md similarity index 96% rename from devtools/docs/models/errors/toomanyrequestserror.md rename to chainkit/docs/models/errors/toomanyrequestserror.md index bef877b2..450c018e 100644 --- a/devtools/docs/models/errors/toomanyrequestserror.md +++ b/chainkit/docs/models/errors/toomanyrequestserror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { TooManyRequestsError } from "@avalanche-sdk/devtools/models/errors"; +import { TooManyRequestsError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/toomanyrequestsmessage.md b/chainkit/docs/models/errors/toomanyrequestsmessage.md similarity index 100% rename from devtools/docs/models/errors/toomanyrequestsmessage.md rename to chainkit/docs/models/errors/toomanyrequestsmessage.md diff --git a/devtools/docs/models/errors/unauthorizederror.md b/chainkit/docs/models/errors/unauthorizederror.md similarity index 96% rename from devtools/docs/models/errors/unauthorizederror.md rename to chainkit/docs/models/errors/unauthorizederror.md index 657de40f..38965619 100644 --- a/devtools/docs/models/errors/unauthorizederror.md +++ b/chainkit/docs/models/errors/unauthorizederror.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UnauthorizedError } from "@avalanche-sdk/devtools/models/errors"; +import { UnauthorizedError } from "@avalanche-sdk/chainkit/models/errors"; // No examples available for this model ``` diff --git a/devtools/docs/models/errors/unauthorizedmessage.md b/chainkit/docs/models/errors/unauthorizedmessage.md similarity index 100% rename from devtools/docs/models/errors/unauthorizedmessage.md rename to chainkit/docs/models/errors/unauthorizedmessage.md diff --git a/devtools/docs/models/operations/addaddressestowebhookrequest.md b/chainkit/docs/models/operations/addaddressestowebhookrequest.md similarity index 95% rename from devtools/docs/models/operations/addaddressestowebhookrequest.md rename to chainkit/docs/models/operations/addaddressestowebhookrequest.md index dac42f45..c656ca55 100644 --- a/devtools/docs/models/operations/addaddressestowebhookrequest.md +++ b/chainkit/docs/models/operations/addaddressestowebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AddAddressesToWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { AddAddressesToWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: AddAddressesToWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/aggregatesignaturesglobals.md b/chainkit/docs/models/operations/aggregatesignaturesglobals.md similarity index 93% rename from devtools/docs/models/operations/aggregatesignaturesglobals.md rename to chainkit/docs/models/operations/aggregatesignaturesglobals.md index 6d621775..e00523df 100644 --- a/devtools/docs/models/operations/aggregatesignaturesglobals.md +++ b/chainkit/docs/models/operations/aggregatesignaturesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AggregateSignaturesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { AggregateSignaturesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: AggregateSignaturesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/aggregatesignaturesrequest.md b/chainkit/docs/models/operations/aggregatesignaturesrequest.md similarity index 98% rename from devtools/docs/models/operations/aggregatesignaturesrequest.md rename to chainkit/docs/models/operations/aggregatesignaturesrequest.md index 3fc7ebe9..0499b07c 100644 --- a/devtools/docs/models/operations/aggregatesignaturesrequest.md +++ b/chainkit/docs/models/operations/aggregatesignaturesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { AggregateSignaturesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { AggregateSignaturesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: AggregateSignaturesRequest = { signatureAggregatorRequest: { diff --git a/devtools/docs/models/operations/createwebhookrequest.md b/chainkit/docs/models/operations/createwebhookrequest.md similarity index 100% rename from devtools/docs/models/operations/createwebhookrequest.md rename to chainkit/docs/models/operations/createwebhookrequest.md diff --git a/devtools/docs/models/operations/createwebhookresponse.md b/chainkit/docs/models/operations/createwebhookresponse.md similarity index 100% rename from devtools/docs/models/operations/createwebhookresponse.md rename to chainkit/docs/models/operations/createwebhookresponse.md diff --git a/devtools/docs/models/operations/deactivatewebhookrequest.md b/chainkit/docs/models/operations/deactivatewebhookrequest.md similarity index 89% rename from devtools/docs/models/operations/deactivatewebhookrequest.md rename to chainkit/docs/models/operations/deactivatewebhookrequest.md index 7584116e..d3692d4a 100644 --- a/devtools/docs/models/operations/deactivatewebhookrequest.md +++ b/chainkit/docs/models/operations/deactivatewebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { DeactivateWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { DeactivateWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: DeactivateWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/deactivatewebhookresponse.md b/chainkit/docs/models/operations/deactivatewebhookresponse.md similarity index 100% rename from devtools/docs/models/operations/deactivatewebhookresponse.md rename to chainkit/docs/models/operations/deactivatewebhookresponse.md diff --git a/devtools/docs/models/operations/getaddresschainsrequest.md b/chainkit/docs/models/operations/getaddresschainsrequest.md similarity index 93% rename from devtools/docs/models/operations/getaddresschainsrequest.md rename to chainkit/docs/models/operations/getaddresschainsrequest.md index d6284376..f7e660f7 100644 --- a/devtools/docs/models/operations/getaddresschainsrequest.md +++ b/chainkit/docs/models/operations/getaddresschainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressChainsRequest = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/operations/getaddressesbybalanceovertimeglobals.md b/chainkit/docs/models/operations/getaddressesbybalanceovertimeglobals.md similarity index 97% rename from devtools/docs/models/operations/getaddressesbybalanceovertimeglobals.md rename to chainkit/docs/models/operations/getaddressesbybalanceovertimeglobals.md index 0a297eb6..a8f22002 100644 --- a/devtools/docs/models/operations/getaddressesbybalanceovertimeglobals.md +++ b/chainkit/docs/models/operations/getaddressesbybalanceovertimeglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesByBalanceOverTimeGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesByBalanceOverTimeGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesByBalanceOverTimeGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getaddressesbybalanceovertimerequest.md b/chainkit/docs/models/operations/getaddressesbybalanceovertimerequest.md similarity index 99% rename from devtools/docs/models/operations/getaddressesbybalanceovertimerequest.md rename to chainkit/docs/models/operations/getaddressesbybalanceovertimerequest.md index 9e6fb42e..e355d937 100644 --- a/devtools/docs/models/operations/getaddressesbybalanceovertimerequest.md +++ b/chainkit/docs/models/operations/getaddressesbybalanceovertimerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesByBalanceOverTimeRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesByBalanceOverTimeRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesByBalanceOverTimeRequest = { threshold: "1000000", diff --git a/devtools/docs/models/operations/getaddressesbybalanceovertimeresponse.md b/chainkit/docs/models/operations/getaddressesbybalanceovertimeresponse.md similarity index 97% rename from devtools/docs/models/operations/getaddressesbybalanceovertimeresponse.md rename to chainkit/docs/models/operations/getaddressesbybalanceovertimeresponse.md index f0290a13..b1c6cfc8 100644 --- a/devtools/docs/models/operations/getaddressesbybalanceovertimeresponse.md +++ b/chainkit/docs/models/operations/getaddressesbybalanceovertimeresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesByBalanceOverTimeResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesByBalanceOverTimeResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesByBalanceOverTimeResponse = { result: { diff --git a/devtools/docs/models/operations/getaddressesbybtcbbridgedrequest.md b/chainkit/docs/models/operations/getaddressesbybtcbbridgedrequest.md similarity index 98% rename from devtools/docs/models/operations/getaddressesbybtcbbridgedrequest.md rename to chainkit/docs/models/operations/getaddressesbybtcbbridgedrequest.md index 1fea8843..d705bc79 100644 --- a/devtools/docs/models/operations/getaddressesbybtcbbridgedrequest.md +++ b/chainkit/docs/models/operations/getaddressesbybtcbbridgedrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesByBtcbBridgedRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesByBtcbBridgedRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesByBtcbBridgedRequest = { threshold: "1000000", diff --git a/devtools/docs/models/operations/getaddressesbybtcbbridgedresponse.md b/chainkit/docs/models/operations/getaddressesbybtcbbridgedresponse.md similarity index 97% rename from devtools/docs/models/operations/getaddressesbybtcbbridgedresponse.md rename to chainkit/docs/models/operations/getaddressesbybtcbbridgedresponse.md index 76c3bb10..90577582 100644 --- a/devtools/docs/models/operations/getaddressesbybtcbbridgedresponse.md +++ b/chainkit/docs/models/operations/getaddressesbybtcbbridgedresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesByBtcbBridgedResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesByBtcbBridgedResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesByBtcbBridgedResponse = { result: { diff --git a/devtools/docs/models/operations/getaddressesfromwebhookrequest.md b/chainkit/docs/models/operations/getaddressesfromwebhookrequest.md similarity index 96% rename from devtools/docs/models/operations/getaddressesfromwebhookrequest.md rename to chainkit/docs/models/operations/getaddressesfromwebhookrequest.md index 0e5cfa6d..2f44931e 100644 --- a/devtools/docs/models/operations/getaddressesfromwebhookrequest.md +++ b/chainkit/docs/models/operations/getaddressesfromwebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesFromWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesFromWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesFromWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/getaddressesfromwebhookresponse.md b/chainkit/docs/models/operations/getaddressesfromwebhookresponse.md similarity index 98% rename from devtools/docs/models/operations/getaddressesfromwebhookresponse.md rename to chainkit/docs/models/operations/getaddressesfromwebhookresponse.md index b2691106..0975e586 100644 --- a/devtools/docs/models/operations/getaddressesfromwebhookresponse.md +++ b/chainkit/docs/models/operations/getaddressesfromwebhookresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAddressesFromWebhookResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetAddressesFromWebhookResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAddressesFromWebhookResponse = { result: { diff --git a/devtools/docs/models/operations/getaggregatedsignaturesglobals.md b/chainkit/docs/models/operations/getaggregatedsignaturesglobals.md similarity index 93% rename from devtools/docs/models/operations/getaggregatedsignaturesglobals.md rename to chainkit/docs/models/operations/getaggregatedsignaturesglobals.md index 36894752..d8b690ea 100644 --- a/devtools/docs/models/operations/getaggregatedsignaturesglobals.md +++ b/chainkit/docs/models/operations/getaggregatedsignaturesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAggregatedSignaturesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetAggregatedSignaturesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAggregatedSignaturesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getaggregatedsignaturesrequest.md b/chainkit/docs/models/operations/getaggregatedsignaturesrequest.md similarity index 95% rename from devtools/docs/models/operations/getaggregatedsignaturesrequest.md rename to chainkit/docs/models/operations/getaggregatedsignaturesrequest.md index ea7e3466..4acc4f56 100644 --- a/devtools/docs/models/operations/getaggregatedsignaturesrequest.md +++ b/chainkit/docs/models/operations/getaggregatedsignaturesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAggregatedSignaturesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAggregatedSignaturesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAggregatedSignaturesRequest = { txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP", diff --git a/devtools/docs/models/operations/getapilogsrequest.md b/chainkit/docs/models/operations/getapilogsrequest.md similarity index 99% rename from devtools/docs/models/operations/getapilogsrequest.md rename to chainkit/docs/models/operations/getapilogsrequest.md index 670a2e91..0f1296f0 100644 --- a/devtools/docs/models/operations/getapilogsrequest.md +++ b/chainkit/docs/models/operations/getapilogsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetApiLogsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetApiLogsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetApiLogsRequest = { startTimestamp: 1739507200, diff --git a/devtools/docs/models/operations/getapilogsrequesttype.md b/chainkit/docs/models/operations/getapilogsrequesttype.md similarity index 75% rename from devtools/docs/models/operations/getapilogsrequesttype.md rename to chainkit/docs/models/operations/getapilogsrequesttype.md index ad285097..ea00c445 100644 --- a/devtools/docs/models/operations/getapilogsrequesttype.md +++ b/chainkit/docs/models/operations/getapilogsrequesttype.md @@ -5,7 +5,7 @@ Filter data by request type. ## Example Usage ```typescript -import { GetApiLogsRequestType } from "@avalanche-sdk/devtools/models/operations"; +import { GetApiLogsRequestType } from "@avalanche-sdk/chainkit/models/operations"; let value: GetApiLogsRequestType = "data"; ``` diff --git a/devtools/docs/models/operations/getapilogsresponse.md b/chainkit/docs/models/operations/getapilogsresponse.md similarity index 94% rename from devtools/docs/models/operations/getapilogsresponse.md rename to chainkit/docs/models/operations/getapilogsresponse.md index f82c5d80..cbf35671 100644 --- a/devtools/docs/models/operations/getapilogsresponse.md +++ b/chainkit/docs/models/operations/getapilogsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetApiLogsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetApiLogsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetApiLogsResponse = { result: { diff --git a/devtools/docs/models/operations/getapiusagemetricsrequest.md b/chainkit/docs/models/operations/getapiusagemetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/getapiusagemetricsrequest.md rename to chainkit/docs/models/operations/getapiusagemetricsrequest.md index d1d5a5ea..c3bcba20 100644 --- a/devtools/docs/models/operations/getapiusagemetricsrequest.md +++ b/chainkit/docs/models/operations/getapiusagemetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetApiUsageMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetApiUsageMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetApiUsageMetricsRequest = { startTimestamp: 1739507200, diff --git a/devtools/docs/models/operations/getapiusagemetricsrequesttype.md b/chainkit/docs/models/operations/getapiusagemetricsrequesttype.md similarity index 68% rename from devtools/docs/models/operations/getapiusagemetricsrequesttype.md rename to chainkit/docs/models/operations/getapiusagemetricsrequesttype.md index 94cbb5a9..a1af803d 100644 --- a/devtools/docs/models/operations/getapiusagemetricsrequesttype.md +++ b/chainkit/docs/models/operations/getapiusagemetricsrequesttype.md @@ -5,7 +5,7 @@ Filter data by request type. ## Example Usage ```typescript -import { GetApiUsageMetricsRequestType } from "@avalanche-sdk/devtools/models/operations"; +import { GetApiUsageMetricsRequestType } from "@avalanche-sdk/chainkit/models/operations"; let value: GetApiUsageMetricsRequestType = "data"; ``` diff --git a/devtools/docs/models/operations/getassetdetailsglobals.md b/chainkit/docs/models/operations/getassetdetailsglobals.md similarity index 95% rename from devtools/docs/models/operations/getassetdetailsglobals.md rename to chainkit/docs/models/operations/getassetdetailsglobals.md index 4bbe98f4..c568a6b0 100644 --- a/devtools/docs/models/operations/getassetdetailsglobals.md +++ b/chainkit/docs/models/operations/getassetdetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAssetDetailsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetAssetDetailsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAssetDetailsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getassetdetailsrequest.md b/chainkit/docs/models/operations/getassetdetailsrequest.md similarity index 97% rename from devtools/docs/models/operations/getassetdetailsrequest.md rename to chainkit/docs/models/operations/getassetdetailsrequest.md index 21a722d7..5fadac64 100644 --- a/devtools/docs/models/operations/getassetdetailsrequest.md +++ b/chainkit/docs/models/operations/getassetdetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetAssetDetailsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetAssetDetailsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetAssetDetailsRequest = { blockchainId: "x-chain", diff --git a/devtools/docs/models/operations/getbalancesbyaddressesglobals.md b/chainkit/docs/models/operations/getbalancesbyaddressesglobals.md similarity index 93% rename from devtools/docs/models/operations/getbalancesbyaddressesglobals.md rename to chainkit/docs/models/operations/getbalancesbyaddressesglobals.md index 71027430..696a424c 100644 --- a/devtools/docs/models/operations/getbalancesbyaddressesglobals.md +++ b/chainkit/docs/models/operations/getbalancesbyaddressesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBalancesByAddressesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetBalancesByAddressesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBalancesByAddressesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getbalancesbyaddressesrequest.md b/chainkit/docs/models/operations/getbalancesbyaddressesrequest.md similarity index 97% rename from devtools/docs/models/operations/getbalancesbyaddressesrequest.md rename to chainkit/docs/models/operations/getbalancesbyaddressesrequest.md index ddcb3e52..3de2082f 100644 --- a/devtools/docs/models/operations/getbalancesbyaddressesrequest.md +++ b/chainkit/docs/models/operations/getbalancesbyaddressesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBalancesByAddressesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetBalancesByAddressesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBalancesByAddressesRequest = { blockTimestamp: 1599696000, diff --git a/devtools/docs/models/operations/getbalancesbyaddressesresponse.md b/chainkit/docs/models/operations/getbalancesbyaddressesresponse.md similarity index 100% rename from devtools/docs/models/operations/getbalancesbyaddressesresponse.md rename to chainkit/docs/models/operations/getbalancesbyaddressesresponse.md diff --git a/devtools/docs/models/operations/getblockbyidglobals.md b/chainkit/docs/models/operations/getblockbyidglobals.md similarity index 95% rename from devtools/docs/models/operations/getblockbyidglobals.md rename to chainkit/docs/models/operations/getblockbyidglobals.md index 5cbb08de..7dda9eb8 100644 --- a/devtools/docs/models/operations/getblockbyidglobals.md +++ b/chainkit/docs/models/operations/getblockbyidglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockByIdGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockByIdGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockByIdGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getblockbyidrequest.md b/chainkit/docs/models/operations/getblockbyidrequest.md similarity index 97% rename from devtools/docs/models/operations/getblockbyidrequest.md rename to chainkit/docs/models/operations/getblockbyidrequest.md index b70d8a31..84f86b6c 100644 --- a/devtools/docs/models/operations/getblockbyidrequest.md +++ b/chainkit/docs/models/operations/getblockbyidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockByIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockByIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockByIdRequest = { blockchainId: "p-chain", diff --git a/devtools/docs/models/operations/getblockchainbyidglobals.md b/chainkit/docs/models/operations/getblockchainbyidglobals.md similarity index 94% rename from devtools/docs/models/operations/getblockchainbyidglobals.md rename to chainkit/docs/models/operations/getblockchainbyidglobals.md index e74b855f..bf938997 100644 --- a/devtools/docs/models/operations/getblockchainbyidglobals.md +++ b/chainkit/docs/models/operations/getblockchainbyidglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockchainByIdGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockchainByIdGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockchainByIdGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getblockchainbyidrequest.md b/chainkit/docs/models/operations/getblockchainbyidrequest.md similarity index 95% rename from devtools/docs/models/operations/getblockchainbyidrequest.md rename to chainkit/docs/models/operations/getblockchainbyidrequest.md index 49df5d5a..13631551 100644 --- a/devtools/docs/models/operations/getblockchainbyidrequest.md +++ b/chainkit/docs/models/operations/getblockchainbyidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockchainByIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockchainByIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockchainByIdRequest = { blockchainId: "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", diff --git a/devtools/docs/models/operations/getblockglobals.md b/chainkit/docs/models/operations/getblockglobals.md similarity index 94% rename from devtools/docs/models/operations/getblockglobals.md rename to chainkit/docs/models/operations/getblockglobals.md index 992f555f..78924d7f 100644 --- a/devtools/docs/models/operations/getblockglobals.md +++ b/chainkit/docs/models/operations/getblockglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getblockrequest.md b/chainkit/docs/models/operations/getblockrequest.md similarity index 97% rename from devtools/docs/models/operations/getblockrequest.md rename to chainkit/docs/models/operations/getblockrequest.md index d3ed7d73..054bdf83 100644 --- a/devtools/docs/models/operations/getblockrequest.md +++ b/chainkit/docs/models/operations/getblockrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetBlockRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetBlockRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetBlockRequest = { blockId: "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c", diff --git a/devtools/docs/models/operations/getchainglobals.md b/chainkit/docs/models/operations/getchainglobals.md similarity index 94% rename from devtools/docs/models/operations/getchainglobals.md rename to chainkit/docs/models/operations/getchainglobals.md index 1855fb41..43ac3999 100644 --- a/devtools/docs/models/operations/getchainglobals.md +++ b/chainkit/docs/models/operations/getchainglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getchainidsforaddressesglobals.md b/chainkit/docs/models/operations/getchainidsforaddressesglobals.md similarity index 93% rename from devtools/docs/models/operations/getchainidsforaddressesglobals.md rename to chainkit/docs/models/operations/getchainidsforaddressesglobals.md index 6c1da15a..150fe552 100644 --- a/devtools/docs/models/operations/getchainidsforaddressesglobals.md +++ b/chainkit/docs/models/operations/getchainidsforaddressesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainIdsForAddressesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainIdsForAddressesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainIdsForAddressesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getchainidsforaddressesrequest.md b/chainkit/docs/models/operations/getchainidsforaddressesrequest.md similarity index 96% rename from devtools/docs/models/operations/getchainidsforaddressesrequest.md rename to chainkit/docs/models/operations/getchainidsforaddressesrequest.md index 2a4a0296..63f497f0 100644 --- a/devtools/docs/models/operations/getchainidsforaddressesrequest.md +++ b/chainkit/docs/models/operations/getchainidsforaddressesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainIdsForAddressesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainIdsForAddressesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainIdsForAddressesRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/getchaininfoglobals.md b/chainkit/docs/models/operations/getchaininfoglobals.md similarity index 94% rename from devtools/docs/models/operations/getchaininfoglobals.md rename to chainkit/docs/models/operations/getchaininfoglobals.md index 272b4b2f..5b6e0910 100644 --- a/devtools/docs/models/operations/getchaininfoglobals.md +++ b/chainkit/docs/models/operations/getchaininfoglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainInfoGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainInfoGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainInfoGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getchaininforequest.md b/chainkit/docs/models/operations/getchaininforequest.md similarity index 96% rename from devtools/docs/models/operations/getchaininforequest.md rename to chainkit/docs/models/operations/getchaininforequest.md index 9faab3ed..deed1fe1 100644 --- a/devtools/docs/models/operations/getchaininforequest.md +++ b/chainkit/docs/models/operations/getchaininforequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainInfoRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainInfoRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainInfoRequest = {}; ``` diff --git a/devtools/docs/models/operations/getchainrequest.md b/chainkit/docs/models/operations/getchainrequest.md similarity index 95% rename from devtools/docs/models/operations/getchainrequest.md rename to chainkit/docs/models/operations/getchainrequest.md index e5e69d22..d51ad230 100644 --- a/devtools/docs/models/operations/getchainrequest.md +++ b/chainkit/docs/models/operations/getchainrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetChainRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetChainRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetChainRequest = {}; ``` diff --git a/devtools/docs/models/operations/getcontractmetadataglobals.md b/chainkit/docs/models/operations/getcontractmetadataglobals.md similarity index 92% rename from devtools/docs/models/operations/getcontractmetadataglobals.md rename to chainkit/docs/models/operations/getcontractmetadataglobals.md index c0297a48..32bbd158 100644 --- a/devtools/docs/models/operations/getcontractmetadataglobals.md +++ b/chainkit/docs/models/operations/getcontractmetadataglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetContractMetadataGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetContractMetadataGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetContractMetadataGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getcontractmetadatarequest.md b/chainkit/docs/models/operations/getcontractmetadatarequest.md similarity index 96% rename from devtools/docs/models/operations/getcontractmetadatarequest.md rename to chainkit/docs/models/operations/getcontractmetadatarequest.md index 95467e8d..fc927bb2 100644 --- a/devtools/docs/models/operations/getcontractmetadatarequest.md +++ b/chainkit/docs/models/operations/getcontractmetadatarequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetContractMetadataRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetContractMetadataRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetContractMetadataRequest = { address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", diff --git a/devtools/docs/models/operations/getcontractmetadataresponse.md b/chainkit/docs/models/operations/getcontractmetadataresponse.md similarity index 100% rename from devtools/docs/models/operations/getcontractmetadataresponse.md rename to chainkit/docs/models/operations/getcontractmetadataresponse.md index c41ce055..e4fdbf1d 100644 --- a/devtools/docs/models/operations/getcontractmetadataresponse.md +++ b/chainkit/docs/models/operations/getcontractmetadataresponse.md @@ -5,37 +5,37 @@ Successful response ## Supported Types -### `components.Erc20Contract` +### `components.Erc721Contract` ```typescript -const value: components.Erc20Contract = { +const value: components.Erc721Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-20", + ercType: "ERC-721", symbol: "WAVAX", - decimals: 18, }; ``` -### `components.Erc721Contract` +### `components.Erc1155Contract` ```typescript -const value: components.Erc721Contract = { +const value: components.Erc1155Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-721", + ercType: "ERC-1155", symbol: "WAVAX", }; ``` -### `components.Erc1155Contract` +### `components.Erc20Contract` ```typescript -const value: components.Erc1155Contract = { +const value: components.Erc20Contract = { name: "Wrapped AVAX", address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", - ercType: "ERC-1155", + ercType: "ERC-20", symbol: "WAVAX", + decimals: 18, }; ``` diff --git a/devtools/docs/models/operations/getdeploymenttransactionglobals.md b/chainkit/docs/models/operations/getdeploymenttransactionglobals.md similarity index 97% rename from devtools/docs/models/operations/getdeploymenttransactionglobals.md rename to chainkit/docs/models/operations/getdeploymenttransactionglobals.md index ea5a402a..babe986a 100644 --- a/devtools/docs/models/operations/getdeploymenttransactionglobals.md +++ b/chainkit/docs/models/operations/getdeploymenttransactionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDeploymentTransactionGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetDeploymentTransactionGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetDeploymentTransactionGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getdeploymenttransactionrequest.md b/chainkit/docs/models/operations/getdeploymenttransactionrequest.md similarity index 99% rename from devtools/docs/models/operations/getdeploymenttransactionrequest.md rename to chainkit/docs/models/operations/getdeploymenttransactionrequest.md index a2503813..3c03e0f4 100644 --- a/devtools/docs/models/operations/getdeploymenttransactionrequest.md +++ b/chainkit/docs/models/operations/getdeploymenttransactionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetDeploymentTransactionRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetDeploymentTransactionRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetDeploymentTransactionRequest = { address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", diff --git a/devtools/docs/models/operations/getevmchainmetricsglobals.md b/chainkit/docs/models/operations/getevmchainmetricsglobals.md similarity index 92% rename from devtools/docs/models/operations/getevmchainmetricsglobals.md rename to chainkit/docs/models/operations/getevmchainmetricsglobals.md index 1182a33e..055a56b2 100644 --- a/devtools/docs/models/operations/getevmchainmetricsglobals.md +++ b/chainkit/docs/models/operations/getevmchainmetricsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmChainMetricsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetEvmChainMetricsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetEvmChainMetricsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getevmchainmetricsrequest.md b/chainkit/docs/models/operations/getevmchainmetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/getevmchainmetricsrequest.md rename to chainkit/docs/models/operations/getevmchainmetricsrequest.md index 0734d05d..3cca87d2 100644 --- a/devtools/docs/models/operations/getevmchainmetricsrequest.md +++ b/chainkit/docs/models/operations/getevmchainmetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmChainMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetEvmChainMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetEvmChainMetricsRequest = { metric: "activeAddresses", diff --git a/devtools/docs/models/operations/getevmchainmetricsresponse.md b/chainkit/docs/models/operations/getevmchainmetricsresponse.md similarity index 93% rename from devtools/docs/models/operations/getevmchainmetricsresponse.md rename to chainkit/docs/models/operations/getevmchainmetricsresponse.md index dde55898..55fdcd76 100644 --- a/devtools/docs/models/operations/getevmchainmetricsresponse.md +++ b/chainkit/docs/models/operations/getevmchainmetricsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmChainMetricsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetEvmChainMetricsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetEvmChainMetricsResponse = { result: { diff --git a/devtools/docs/models/operations/getevmchainrollingwindowmetricsglobals.md b/chainkit/docs/models/operations/getevmchainrollingwindowmetricsglobals.md similarity index 96% rename from devtools/docs/models/operations/getevmchainrollingwindowmetricsglobals.md rename to chainkit/docs/models/operations/getevmchainrollingwindowmetricsglobals.md index e1353d6d..88f516ff 100644 --- a/devtools/docs/models/operations/getevmchainrollingwindowmetricsglobals.md +++ b/chainkit/docs/models/operations/getevmchainrollingwindowmetricsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmChainRollingWindowMetricsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetEvmChainRollingWindowMetricsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetEvmChainRollingWindowMetricsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getevmchainrollingwindowmetricsrequest.md b/chainkit/docs/models/operations/getevmchainrollingwindowmetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/getevmchainrollingwindowmetricsrequest.md rename to chainkit/docs/models/operations/getevmchainrollingwindowmetricsrequest.md index 17ce1937..07044ddb 100644 --- a/devtools/docs/models/operations/getevmchainrollingwindowmetricsrequest.md +++ b/chainkit/docs/models/operations/getevmchainrollingwindowmetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetEvmChainRollingWindowMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetEvmChainRollingWindowMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetEvmChainRollingWindowMetricsRequest = { metric: "txCount", diff --git a/devtools/docs/models/operations/geticmmessagerequest.md b/chainkit/docs/models/operations/geticmmessagerequest.md similarity index 95% rename from devtools/docs/models/operations/geticmmessagerequest.md rename to chainkit/docs/models/operations/geticmmessagerequest.md index 56c2eb59..eeea2d33 100644 --- a/devtools/docs/models/operations/geticmmessagerequest.md +++ b/chainkit/docs/models/operations/geticmmessagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetIcmMessageRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetIcmMessageRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetIcmMessageRequest = { messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", diff --git a/devtools/docs/models/operations/geticmmessageresponse.md b/chainkit/docs/models/operations/geticmmessageresponse.md similarity index 100% rename from devtools/docs/models/operations/geticmmessageresponse.md rename to chainkit/docs/models/operations/geticmmessageresponse.md diff --git a/devtools/docs/models/operations/getlatestblocksglobals.md b/chainkit/docs/models/operations/getlatestblocksglobals.md similarity index 94% rename from devtools/docs/models/operations/getlatestblocksglobals.md rename to chainkit/docs/models/operations/getlatestblocksglobals.md index 84b43040..b166a7d9 100644 --- a/devtools/docs/models/operations/getlatestblocksglobals.md +++ b/chainkit/docs/models/operations/getlatestblocksglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLatestBlocksGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetLatestBlocksGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetLatestBlocksGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getlatestblocksrequest.md b/chainkit/docs/models/operations/getlatestblocksrequest.md similarity index 97% rename from devtools/docs/models/operations/getlatestblocksrequest.md rename to chainkit/docs/models/operations/getlatestblocksrequest.md index 7da10e3b..1fdcce2f 100644 --- a/devtools/docs/models/operations/getlatestblocksrequest.md +++ b/chainkit/docs/models/operations/getlatestblocksrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLatestBlocksRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetLatestBlocksRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetLatestBlocksRequest = {}; ``` diff --git a/devtools/docs/models/operations/getlatestblocksresponse.md b/chainkit/docs/models/operations/getlatestblocksresponse.md similarity index 96% rename from devtools/docs/models/operations/getlatestblocksresponse.md rename to chainkit/docs/models/operations/getlatestblocksresponse.md index d3a1aea7..146b2a72 100644 --- a/devtools/docs/models/operations/getlatestblocksresponse.md +++ b/chainkit/docs/models/operations/getlatestblocksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetLatestBlocksResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetLatestBlocksResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetLatestBlocksResponse = { result: { diff --git a/devtools/docs/models/operations/getmetricsbynodeidmetric.md b/chainkit/docs/models/operations/getmetricsbynodeidmetric.md similarity index 75% rename from devtools/docs/models/operations/getmetricsbynodeidmetric.md rename to chainkit/docs/models/operations/getmetricsbynodeidmetric.md index ba23b2f2..6ee6d627 100644 --- a/devtools/docs/models/operations/getmetricsbynodeidmetric.md +++ b/chainkit/docs/models/operations/getmetricsbynodeidmetric.md @@ -5,7 +5,7 @@ Which metric to fetch for given L1 validator(node) ID. ## Example Usage ```typescript -import { GetMetricsByNodeIdMetric } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsByNodeIdMetric } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsByNodeIdMetric = "perNodeDailyFeesPaid"; ``` diff --git a/devtools/docs/models/operations/getmetricsbynodeidrequest.md b/chainkit/docs/models/operations/getmetricsbynodeidrequest.md similarity index 97% rename from devtools/docs/models/operations/getmetricsbynodeidrequest.md rename to chainkit/docs/models/operations/getmetricsbynodeidrequest.md index d674b3a5..a339cb1d 100644 --- a/devtools/docs/models/operations/getmetricsbynodeidrequest.md +++ b/chainkit/docs/models/operations/getmetricsbynodeidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetricsByNodeIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsByNodeIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsByNodeIdRequest = { metric: "perNodeDailyFeesPaid", diff --git a/devtools/docs/models/operations/getmetricsbysubnetidmetric.md b/chainkit/docs/models/operations/getmetricsbysubnetidmetric.md similarity index 76% rename from devtools/docs/models/operations/getmetricsbysubnetidmetric.md rename to chainkit/docs/models/operations/getmetricsbysubnetidmetric.md index 622c9e6e..f73a7bcd 100644 --- a/devtools/docs/models/operations/getmetricsbysubnetidmetric.md +++ b/chainkit/docs/models/operations/getmetricsbysubnetidmetric.md @@ -5,7 +5,7 @@ Which metric to fetch for given subnet ID. ## Example Usage ```typescript -import { GetMetricsBySubnetIdMetric } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsBySubnetIdMetric } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsBySubnetIdMetric = "perSubnetDailyFeesPaid"; ``` diff --git a/devtools/docs/models/operations/getmetricsbysubnetidrequest.md b/chainkit/docs/models/operations/getmetricsbysubnetidrequest.md similarity index 97% rename from devtools/docs/models/operations/getmetricsbysubnetidrequest.md rename to chainkit/docs/models/operations/getmetricsbysubnetidrequest.md index 51433538..16e467f3 100644 --- a/devtools/docs/models/operations/getmetricsbysubnetidrequest.md +++ b/chainkit/docs/models/operations/getmetricsbysubnetidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetricsBySubnetIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsBySubnetIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsBySubnetIdRequest = { metric: "perSubnetDailyFeesPaid", diff --git a/devtools/docs/models/operations/getmetricsbyvalidationidmetric.md b/chainkit/docs/models/operations/getmetricsbyvalidationidmetric.md similarity index 74% rename from devtools/docs/models/operations/getmetricsbyvalidationidmetric.md rename to chainkit/docs/models/operations/getmetricsbyvalidationidmetric.md index 2a79887d..67916fa8 100644 --- a/devtools/docs/models/operations/getmetricsbyvalidationidmetric.md +++ b/chainkit/docs/models/operations/getmetricsbyvalidationidmetric.md @@ -5,7 +5,7 @@ Which metric to fetch for given L1 validation ID. ## Example Usage ```typescript -import { GetMetricsByValidationIdMetric } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsByValidationIdMetric } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsByValidationIdMetric = "validationFeesDaily"; ``` diff --git a/devtools/docs/models/operations/getmetricsbyvalidationidrequest.md b/chainkit/docs/models/operations/getmetricsbyvalidationidrequest.md similarity index 99% rename from devtools/docs/models/operations/getmetricsbyvalidationidrequest.md rename to chainkit/docs/models/operations/getmetricsbyvalidationidrequest.md index 8f1f605f..e98067d5 100644 --- a/devtools/docs/models/operations/getmetricsbyvalidationidrequest.md +++ b/chainkit/docs/models/operations/getmetricsbyvalidationidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetMetricsByValidationIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetMetricsByValidationIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetMetricsByValidationIdRequest = { l1ValidationId: "2YYCZGHjqnbw1MzQ5fGrTp3SjqUu8y1J1xeW4yuhdXe4LoUVVG", diff --git a/devtools/docs/models/operations/getnativebalanceglobals.md b/chainkit/docs/models/operations/getnativebalanceglobals.md similarity index 94% rename from devtools/docs/models/operations/getnativebalanceglobals.md rename to chainkit/docs/models/operations/getnativebalanceglobals.md index 27338d7e..0db71cc4 100644 --- a/devtools/docs/models/operations/getnativebalanceglobals.md +++ b/chainkit/docs/models/operations/getnativebalanceglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNativeBalanceGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetNativeBalanceGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNativeBalanceGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getnativebalancerequest.md b/chainkit/docs/models/operations/getnativebalancerequest.md similarity index 98% rename from devtools/docs/models/operations/getnativebalancerequest.md rename to chainkit/docs/models/operations/getnativebalancerequest.md index 69556422..69c11e53 100644 --- a/devtools/docs/models/operations/getnativebalancerequest.md +++ b/chainkit/docs/models/operations/getnativebalancerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNativeBalanceRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetNativeBalanceRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNativeBalanceRequest = { blockNumber: "6479329", diff --git a/devtools/docs/models/operations/getnetworkdetailsglobals.md b/chainkit/docs/models/operations/getnetworkdetailsglobals.md similarity index 94% rename from devtools/docs/models/operations/getnetworkdetailsglobals.md rename to chainkit/docs/models/operations/getnetworkdetailsglobals.md index 24145695..a52579ec 100644 --- a/devtools/docs/models/operations/getnetworkdetailsglobals.md +++ b/chainkit/docs/models/operations/getnetworkdetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNetworkDetailsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetNetworkDetailsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNetworkDetailsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getnetworkdetailsrequest.md b/chainkit/docs/models/operations/getnetworkdetailsrequest.md similarity index 93% rename from devtools/docs/models/operations/getnetworkdetailsrequest.md rename to chainkit/docs/models/operations/getnetworkdetailsrequest.md index b8e69e32..a752fa49 100644 --- a/devtools/docs/models/operations/getnetworkdetailsrequest.md +++ b/chainkit/docs/models/operations/getnetworkdetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNetworkDetailsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetNetworkDetailsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNetworkDetailsRequest = {}; ``` diff --git a/devtools/docs/models/operations/getnftholdersbycontractaddressglobals.md b/chainkit/docs/models/operations/getnftholdersbycontractaddressglobals.md similarity index 96% rename from devtools/docs/models/operations/getnftholdersbycontractaddressglobals.md rename to chainkit/docs/models/operations/getnftholdersbycontractaddressglobals.md index af3d17d0..69af8d75 100644 --- a/devtools/docs/models/operations/getnftholdersbycontractaddressglobals.md +++ b/chainkit/docs/models/operations/getnftholdersbycontractaddressglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNftHoldersByContractAddressGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetNftHoldersByContractAddressGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNftHoldersByContractAddressGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getnftholdersbycontractaddressrequest.md b/chainkit/docs/models/operations/getnftholdersbycontractaddressrequest.md similarity index 98% rename from devtools/docs/models/operations/getnftholdersbycontractaddressrequest.md rename to chainkit/docs/models/operations/getnftholdersbycontractaddressrequest.md index d445f67f..b629363c 100644 --- a/devtools/docs/models/operations/getnftholdersbycontractaddressrequest.md +++ b/chainkit/docs/models/operations/getnftholdersbycontractaddressrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNftHoldersByContractAddressRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetNftHoldersByContractAddressRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNftHoldersByContractAddressRequest = { pageSize: 10, diff --git a/devtools/docs/models/operations/getnftholdersbycontractaddressresponse.md b/chainkit/docs/models/operations/getnftholdersbycontractaddressresponse.md similarity index 97% rename from devtools/docs/models/operations/getnftholdersbycontractaddressresponse.md rename to chainkit/docs/models/operations/getnftholdersbycontractaddressresponse.md index bb5912f6..f08ad542 100644 --- a/devtools/docs/models/operations/getnftholdersbycontractaddressresponse.md +++ b/chainkit/docs/models/operations/getnftholdersbycontractaddressresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetNftHoldersByContractAddressResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetNftHoldersByContractAddressResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetNftHoldersByContractAddressResponse = { result: { diff --git a/devtools/docs/models/operations/getoperationresultrequest.md b/chainkit/docs/models/operations/getoperationresultrequest.md similarity index 89% rename from devtools/docs/models/operations/getoperationresultrequest.md rename to chainkit/docs/models/operations/getoperationresultrequest.md index 1c819891..b1b2c729 100644 --- a/devtools/docs/models/operations/getoperationresultrequest.md +++ b/chainkit/docs/models/operations/getoperationresultrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetOperationResultRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetOperationResultRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetOperationResultRequest = { operationId: "aa22054a-cb7c-4a4e-9b83-59f2ede74138", diff --git a/devtools/docs/models/operations/getrpcusagemetricsrequest.md b/chainkit/docs/models/operations/getrpcusagemetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/getrpcusagemetricsrequest.md rename to chainkit/docs/models/operations/getrpcusagemetricsrequest.md index f3fa3ca3..452898d2 100644 --- a/devtools/docs/models/operations/getrpcusagemetricsrequest.md +++ b/chainkit/docs/models/operations/getrpcusagemetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetRpcUsageMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetRpcUsageMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetRpcUsageMetricsRequest = { timeInterval: "daily", diff --git a/devtools/docs/models/operations/getsinglevalidatordetailsglobals.md b/chainkit/docs/models/operations/getsinglevalidatordetailsglobals.md similarity index 97% rename from devtools/docs/models/operations/getsinglevalidatordetailsglobals.md rename to chainkit/docs/models/operations/getsinglevalidatordetailsglobals.md index ad1896de..79cabf3e 100644 --- a/devtools/docs/models/operations/getsinglevalidatordetailsglobals.md +++ b/chainkit/docs/models/operations/getsinglevalidatordetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSingleValidatorDetailsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetSingleValidatorDetailsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSingleValidatorDetailsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getsinglevalidatordetailsrequest.md b/chainkit/docs/models/operations/getsinglevalidatordetailsrequest.md similarity index 99% rename from devtools/docs/models/operations/getsinglevalidatordetailsrequest.md rename to chainkit/docs/models/operations/getsinglevalidatordetailsrequest.md index 1a910605..6a0bbc84 100644 --- a/devtools/docs/models/operations/getsinglevalidatordetailsrequest.md +++ b/chainkit/docs/models/operations/getsinglevalidatordetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSingleValidatorDetailsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetSingleValidatorDetailsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSingleValidatorDetailsRequest = { nodeId: "NodeID-111111111111111111116DBWJs", diff --git a/devtools/docs/models/operations/getsinglevalidatordetailsresponse.md b/chainkit/docs/models/operations/getsinglevalidatordetailsresponse.md similarity index 97% rename from devtools/docs/models/operations/getsinglevalidatordetailsresponse.md rename to chainkit/docs/models/operations/getsinglevalidatordetailsresponse.md index b3993fac..6b87302d 100644 --- a/devtools/docs/models/operations/getsinglevalidatordetailsresponse.md +++ b/chainkit/docs/models/operations/getsinglevalidatordetailsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSingleValidatorDetailsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetSingleValidatorDetailsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSingleValidatorDetailsResponse = { result: { diff --git a/devtools/docs/models/operations/getstakingmetricsglobals.md b/chainkit/docs/models/operations/getstakingmetricsglobals.md similarity index 94% rename from devtools/docs/models/operations/getstakingmetricsglobals.md rename to chainkit/docs/models/operations/getstakingmetricsglobals.md index 9a8f9a0f..7a6fcda4 100644 --- a/devtools/docs/models/operations/getstakingmetricsglobals.md +++ b/chainkit/docs/models/operations/getstakingmetricsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStakingMetricsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetStakingMetricsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetStakingMetricsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getstakingmetricsrequest.md b/chainkit/docs/models/operations/getstakingmetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/getstakingmetricsrequest.md rename to chainkit/docs/models/operations/getstakingmetricsrequest.md index 668dddf1..921705c8 100644 --- a/devtools/docs/models/operations/getstakingmetricsrequest.md +++ b/chainkit/docs/models/operations/getstakingmetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStakingMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetStakingMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetStakingMetricsRequest = { metric: "validatorCount", diff --git a/devtools/docs/models/operations/getstakingmetricsresponse.md b/chainkit/docs/models/operations/getstakingmetricsresponse.md similarity index 93% rename from devtools/docs/models/operations/getstakingmetricsresponse.md rename to chainkit/docs/models/operations/getstakingmetricsresponse.md index 99f0b804..9f28e296 100644 --- a/devtools/docs/models/operations/getstakingmetricsresponse.md +++ b/chainkit/docs/models/operations/getstakingmetricsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetStakingMetricsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetStakingMetricsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetStakingMetricsResponse = { result: { diff --git a/devtools/docs/models/operations/getsubnetbyidglobals.md b/chainkit/docs/models/operations/getsubnetbyidglobals.md similarity index 95% rename from devtools/docs/models/operations/getsubnetbyidglobals.md rename to chainkit/docs/models/operations/getsubnetbyidglobals.md index 321435d8..c77f73d9 100644 --- a/devtools/docs/models/operations/getsubnetbyidglobals.md +++ b/chainkit/docs/models/operations/getsubnetbyidglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSubnetByIdGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetSubnetByIdGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSubnetByIdGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getsubnetbyidrequest.md b/chainkit/docs/models/operations/getsubnetbyidrequest.md similarity index 96% rename from devtools/docs/models/operations/getsubnetbyidrequest.md rename to chainkit/docs/models/operations/getsubnetbyidrequest.md index 0a86b60b..39e5d6a8 100644 --- a/devtools/docs/models/operations/getsubnetbyidrequest.md +++ b/chainkit/docs/models/operations/getsubnetbyidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSubnetByIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetSubnetByIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSubnetByIdRequest = { subnetId: "11111111111111111111111111111111LpoYY", diff --git a/devtools/docs/models/operations/getsubnetrpcusagemetricsrequest.md b/chainkit/docs/models/operations/getsubnetrpcusagemetricsrequest.md similarity index 99% rename from devtools/docs/models/operations/getsubnetrpcusagemetricsrequest.md rename to chainkit/docs/models/operations/getsubnetrpcusagemetricsrequest.md index 1795aa45..ad3e451c 100644 --- a/devtools/docs/models/operations/getsubnetrpcusagemetricsrequest.md +++ b/chainkit/docs/models/operations/getsubnetrpcusagemetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetSubnetRpcUsageMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetSubnetRpcUsageMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetSubnetRpcUsageMetricsRequest = { timeInterval: "daily", diff --git a/devtools/docs/models/operations/getteleportermessagerequest.md b/chainkit/docs/models/operations/getteleportermessagerequest.md similarity index 93% rename from devtools/docs/models/operations/getteleportermessagerequest.md rename to chainkit/docs/models/operations/getteleportermessagerequest.md index 374578e6..faa08ddf 100644 --- a/devtools/docs/models/operations/getteleportermessagerequest.md +++ b/chainkit/docs/models/operations/getteleportermessagerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTeleporterMessageRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTeleporterMessageRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTeleporterMessageRequest = { messageId: "acf1c8b06f9aec48e9fcbefbbe576ae8a7ca3b327fcae111396e7cc99956674d", diff --git a/devtools/docs/models/operations/getteleportermessageresponse.md b/chainkit/docs/models/operations/getteleportermessageresponse.md similarity index 100% rename from devtools/docs/models/operations/getteleportermessageresponse.md rename to chainkit/docs/models/operations/getteleportermessageresponse.md diff --git a/devtools/docs/models/operations/getteleportermetricsbychainglobals.md b/chainkit/docs/models/operations/getteleportermetricsbychainglobals.md similarity index 97% rename from devtools/docs/models/operations/getteleportermetricsbychainglobals.md rename to chainkit/docs/models/operations/getteleportermetricsbychainglobals.md index 5e6f700c..8c573981 100644 --- a/devtools/docs/models/operations/getteleportermetricsbychainglobals.md +++ b/chainkit/docs/models/operations/getteleportermetricsbychainglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTeleporterMetricsByChainGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetTeleporterMetricsByChainGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTeleporterMetricsByChainGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/getteleportermetricsbychainrequest.md b/chainkit/docs/models/operations/getteleportermetricsbychainrequest.md similarity index 98% rename from devtools/docs/models/operations/getteleportermetricsbychainrequest.md rename to chainkit/docs/models/operations/getteleportermetricsbychainrequest.md index f967dd14..f69fe096 100644 --- a/devtools/docs/models/operations/getteleportermetricsbychainrequest.md +++ b/chainkit/docs/models/operations/getteleportermetricsbychainrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTeleporterMetricsByChainRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTeleporterMetricsByChainRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTeleporterMetricsByChainRequest = { metric: "teleporterSourceTxnCount", diff --git a/devtools/docs/models/operations/gettokendetailsglobals.md b/chainkit/docs/models/operations/gettokendetailsglobals.md similarity index 94% rename from devtools/docs/models/operations/gettokendetailsglobals.md rename to chainkit/docs/models/operations/gettokendetailsglobals.md index 78abe17d..a74fb650 100644 --- a/devtools/docs/models/operations/gettokendetailsglobals.md +++ b/chainkit/docs/models/operations/gettokendetailsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetTokenDetailsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTokenDetailsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/gettokendetailsrequest.md b/chainkit/docs/models/operations/gettokendetailsrequest.md similarity index 97% rename from devtools/docs/models/operations/gettokendetailsrequest.md rename to chainkit/docs/models/operations/gettokendetailsrequest.md index 5fa0f285..420d5365 100644 --- a/devtools/docs/models/operations/gettokendetailsrequest.md +++ b/chainkit/docs/models/operations/gettokendetailsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTokenDetailsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTokenDetailsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTokenDetailsRequest = { address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", diff --git a/devtools/docs/models/operations/gettokendetailsresponse.md b/chainkit/docs/models/operations/gettokendetailsresponse.md similarity index 100% rename from devtools/docs/models/operations/gettokendetailsresponse.md rename to chainkit/docs/models/operations/gettokendetailsresponse.md diff --git a/devtools/docs/models/operations/gettotall1validatormetricsmetric.md b/chainkit/docs/models/operations/gettotall1validatormetricsmetric.md similarity index 92% rename from devtools/docs/models/operations/gettotall1validatormetricsmetric.md rename to chainkit/docs/models/operations/gettotall1validatormetricsmetric.md index 11a89e0f..a0dfc4c4 100644 --- a/devtools/docs/models/operations/gettotall1validatormetricsmetric.md +++ b/chainkit/docs/models/operations/gettotall1validatormetricsmetric.md @@ -5,7 +5,7 @@ Which network level metric to fetch for L1 validator. ## Example Usage ```typescript -import { GetTotalL1ValidatorMetricsMetric } from "@avalanche-sdk/devtools/models/operations"; +import { GetTotalL1ValidatorMetricsMetric } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTotalL1ValidatorMetricsMetric = "totalValidatorFeesDaily"; ``` diff --git a/devtools/docs/models/operations/gettotall1validatormetricsrequest.md b/chainkit/docs/models/operations/gettotall1validatormetricsrequest.md similarity index 98% rename from devtools/docs/models/operations/gettotall1validatormetricsrequest.md rename to chainkit/docs/models/operations/gettotall1validatormetricsrequest.md index ecf4d6ce..d24e84b5 100644 --- a/devtools/docs/models/operations/gettotall1validatormetricsrequest.md +++ b/chainkit/docs/models/operations/gettotall1validatormetricsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTotalL1ValidatorMetricsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTotalL1ValidatorMetricsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTotalL1ValidatorMetricsRequest = { metric: "totalValidatorFeesDaily", diff --git a/devtools/docs/models/operations/gettransactionglobals.md b/chainkit/docs/models/operations/gettransactionglobals.md similarity index 94% rename from devtools/docs/models/operations/gettransactionglobals.md rename to chainkit/docs/models/operations/gettransactionglobals.md index b4cdc68e..1fb68d0f 100644 --- a/devtools/docs/models/operations/gettransactionglobals.md +++ b/chainkit/docs/models/operations/gettransactionglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransactionGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetTransactionGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTransactionGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/gettransactionrequest.md b/chainkit/docs/models/operations/gettransactionrequest.md similarity index 97% rename from devtools/docs/models/operations/gettransactionrequest.md rename to chainkit/docs/models/operations/gettransactionrequest.md index 8210426e..65dbd91c 100644 --- a/devtools/docs/models/operations/gettransactionrequest.md +++ b/chainkit/docs/models/operations/gettransactionrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransactionRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTransactionRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTransactionRequest = { txHash: "0x8bf584d7b14b92a32a339872a66b134a70ba3ba7c305823f348db6f860253f45", diff --git a/devtools/docs/models/operations/gettransactionsforblockglobals.md b/chainkit/docs/models/operations/gettransactionsforblockglobals.md similarity index 91% rename from devtools/docs/models/operations/gettransactionsforblockglobals.md rename to chainkit/docs/models/operations/gettransactionsforblockglobals.md index 01a08cd5..3b503d48 100644 --- a/devtools/docs/models/operations/gettransactionsforblockglobals.md +++ b/chainkit/docs/models/operations/gettransactionsforblockglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransactionsForBlockGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetTransactionsForBlockGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTransactionsForBlockGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/gettransactionsforblockrequest.md b/chainkit/docs/models/operations/gettransactionsforblockrequest.md similarity index 97% rename from devtools/docs/models/operations/gettransactionsforblockrequest.md rename to chainkit/docs/models/operations/gettransactionsforblockrequest.md index 2d69ede8..fa6fda41 100644 --- a/devtools/docs/models/operations/gettransactionsforblockrequest.md +++ b/chainkit/docs/models/operations/gettransactionsforblockrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTransactionsForBlockRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTransactionsForBlockRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTransactionsForBlockRequest = { pageSize: 10, diff --git a/devtools/docs/models/operations/gettxbyhashglobals.md b/chainkit/docs/models/operations/gettxbyhashglobals.md similarity index 95% rename from devtools/docs/models/operations/gettxbyhashglobals.md rename to chainkit/docs/models/operations/gettxbyhashglobals.md index 029375fb..8ee7043c 100644 --- a/devtools/docs/models/operations/gettxbyhashglobals.md +++ b/chainkit/docs/models/operations/gettxbyhashglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTxByHashGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetTxByHashGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTxByHashGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/gettxbyhashrequest.md b/chainkit/docs/models/operations/gettxbyhashrequest.md similarity index 97% rename from devtools/docs/models/operations/gettxbyhashrequest.md rename to chainkit/docs/models/operations/gettxbyhashrequest.md index 6a41d755..ddec164b 100644 --- a/devtools/docs/models/operations/gettxbyhashrequest.md +++ b/chainkit/docs/models/operations/gettxbyhashrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetTxByHashRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetTxByHashRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetTxByHashRequest = { blockchainId: "p-chain", diff --git a/devtools/docs/models/operations/gettxbyhashresponse.md b/chainkit/docs/models/operations/gettxbyhashresponse.md similarity index 100% rename from devtools/docs/models/operations/gettxbyhashresponse.md rename to chainkit/docs/models/operations/gettxbyhashresponse.md diff --git a/devtools/docs/models/operations/getutxosbyaddressesglobals.md b/chainkit/docs/models/operations/getutxosbyaddressesglobals.md similarity index 93% rename from devtools/docs/models/operations/getutxosbyaddressesglobals.md rename to chainkit/docs/models/operations/getutxosbyaddressesglobals.md index 2f7227f3..18c327f7 100644 --- a/devtools/docs/models/operations/getutxosbyaddressesglobals.md +++ b/chainkit/docs/models/operations/getutxosbyaddressesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUtxosByAddressesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetUtxosByAddressesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetUtxosByAddressesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getutxosbyaddressesrequest.md b/chainkit/docs/models/operations/getutxosbyaddressesrequest.md similarity index 98% rename from devtools/docs/models/operations/getutxosbyaddressesrequest.md rename to chainkit/docs/models/operations/getutxosbyaddressesrequest.md index 8ca34384..d303ca20 100644 --- a/devtools/docs/models/operations/getutxosbyaddressesrequest.md +++ b/chainkit/docs/models/operations/getutxosbyaddressesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUtxosByAddressesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetUtxosByAddressesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetUtxosByAddressesRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/getutxosbyaddressesresponse.md b/chainkit/docs/models/operations/getutxosbyaddressesresponse.md similarity index 90% rename from devtools/docs/models/operations/getutxosbyaddressesresponse.md rename to chainkit/docs/models/operations/getutxosbyaddressesresponse.md index aa76bf0f..e6e51925 100644 --- a/devtools/docs/models/operations/getutxosbyaddressesresponse.md +++ b/chainkit/docs/models/operations/getutxosbyaddressesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetUtxosByAddressesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetUtxosByAddressesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetUtxosByAddressesResponse = { result: { diff --git a/devtools/docs/models/operations/getutxosbyaddressesresponsebody.md b/chainkit/docs/models/operations/getutxosbyaddressesresponsebody.md similarity index 100% rename from devtools/docs/models/operations/getutxosbyaddressesresponsebody.md rename to chainkit/docs/models/operations/getutxosbyaddressesresponsebody.md diff --git a/devtools/docs/models/operations/getvalidatorsbydaterangerequest.md b/chainkit/docs/models/operations/getvalidatorsbydaterangerequest.md similarity index 99% rename from devtools/docs/models/operations/getvalidatorsbydaterangerequest.md rename to chainkit/docs/models/operations/getvalidatorsbydaterangerequest.md index d7b74757..65da4b2c 100644 --- a/devtools/docs/models/operations/getvalidatorsbydaterangerequest.md +++ b/chainkit/docs/models/operations/getvalidatorsbydaterangerequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetValidatorsByDateRangeRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetValidatorsByDateRangeRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetValidatorsByDateRangeRequest = { startTimestamp: 1689541049, diff --git a/devtools/docs/models/operations/getvalidatorsbydaterangeresponse.md b/chainkit/docs/models/operations/getvalidatorsbydaterangeresponse.md similarity index 97% rename from devtools/docs/models/operations/getvalidatorsbydaterangeresponse.md rename to chainkit/docs/models/operations/getvalidatorsbydaterangeresponse.md index 3aa5eb5b..d1be2ca9 100644 --- a/devtools/docs/models/operations/getvalidatorsbydaterangeresponse.md +++ b/chainkit/docs/models/operations/getvalidatorsbydaterangeresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetValidatorsByDateRangeResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetValidatorsByDateRangeResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetValidatorsByDateRangeResponse = { result: { diff --git a/devtools/docs/models/operations/getvertexbyhashglobals.md b/chainkit/docs/models/operations/getvertexbyhashglobals.md similarity index 95% rename from devtools/docs/models/operations/getvertexbyhashglobals.md rename to chainkit/docs/models/operations/getvertexbyhashglobals.md index aeebfe48..8788b981 100644 --- a/devtools/docs/models/operations/getvertexbyhashglobals.md +++ b/chainkit/docs/models/operations/getvertexbyhashglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetVertexByHashGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetVertexByHashGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetVertexByHashGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getvertexbyhashrequest.md b/chainkit/docs/models/operations/getvertexbyhashrequest.md similarity index 97% rename from devtools/docs/models/operations/getvertexbyhashrequest.md rename to chainkit/docs/models/operations/getvertexbyhashrequest.md index d2b32c3e..41a243fd 100644 --- a/devtools/docs/models/operations/getvertexbyhashrequest.md +++ b/chainkit/docs/models/operations/getvertexbyhashrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetVertexByHashRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetVertexByHashRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetVertexByHashRequest = { vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr", diff --git a/devtools/docs/models/operations/getvertexbyheightglobals.md b/chainkit/docs/models/operations/getvertexbyheightglobals.md similarity index 94% rename from devtools/docs/models/operations/getvertexbyheightglobals.md rename to chainkit/docs/models/operations/getvertexbyheightglobals.md index 9077667d..f83e217b 100644 --- a/devtools/docs/models/operations/getvertexbyheightglobals.md +++ b/chainkit/docs/models/operations/getvertexbyheightglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetVertexByHeightGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { GetVertexByHeightGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: GetVertexByHeightGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/getvertexbyheightrequest.md b/chainkit/docs/models/operations/getvertexbyheightrequest.md similarity index 98% rename from devtools/docs/models/operations/getvertexbyheightrequest.md rename to chainkit/docs/models/operations/getvertexbyheightrequest.md index ab3c012e..122ec9d4 100644 --- a/devtools/docs/models/operations/getvertexbyheightrequest.md +++ b/chainkit/docs/models/operations/getvertexbyheightrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetVertexByHeightRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetVertexByHeightRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetVertexByHeightRequest = { vertexHeight: 123, diff --git a/devtools/docs/models/operations/getvertexbyheightresponse.md b/chainkit/docs/models/operations/getvertexbyheightresponse.md similarity index 94% rename from devtools/docs/models/operations/getvertexbyheightresponse.md rename to chainkit/docs/models/operations/getvertexbyheightresponse.md index f7391b9c..6d221c9c 100644 --- a/devtools/docs/models/operations/getvertexbyheightresponse.md +++ b/chainkit/docs/models/operations/getvertexbyheightresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetVertexByHeightResponse } from "@avalanche-sdk/devtools/models/operations"; +import { GetVertexByHeightResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: GetVertexByHeightResponse = { result: { diff --git a/devtools/docs/models/operations/getwebhookrequest.md b/chainkit/docs/models/operations/getwebhookrequest.md similarity index 92% rename from devtools/docs/models/operations/getwebhookrequest.md rename to chainkit/docs/models/operations/getwebhookrequest.md index 8e1955ae..5caf479e 100644 --- a/devtools/docs/models/operations/getwebhookrequest.md +++ b/chainkit/docs/models/operations/getwebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { GetWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { GetWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: GetWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/getwebhookresponse.md b/chainkit/docs/models/operations/getwebhookresponse.md similarity index 100% rename from devtools/docs/models/operations/getwebhookresponse.md rename to chainkit/docs/models/operations/getwebhookresponse.md diff --git a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md similarity index 96% rename from devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md rename to chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md index d9656800..e45b0daa 100644 --- a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md +++ b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListActivePrimaryNetworkStakingTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListActivePrimaryNetworkStakingTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListActivePrimaryNetworkStakingTransactionsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md similarity index 99% rename from devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md rename to chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md index 3d9169e7..3860b630 100644 --- a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md +++ b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListActivePrimaryNetworkStakingTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListActivePrimaryNetworkStakingTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListActivePrimaryNetworkStakingTransactionsRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md similarity index 97% rename from devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md rename to chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md index 83d2d63f..07ee58a1 100644 --- a/devtools/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md +++ b/chainkit/docs/models/operations/listactiveprimarynetworkstakingtransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListActivePrimaryNetworkStakingTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListActivePrimaryNetworkStakingTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListActivePrimaryNetworkStakingTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listaddresschainsrequest.md b/chainkit/docs/models/operations/listaddresschainsrequest.md similarity index 90% rename from devtools/docs/models/operations/listaddresschainsrequest.md rename to chainkit/docs/models/operations/listaddresschainsrequest.md index b788925a..e58f8763 100644 --- a/devtools/docs/models/operations/listaddresschainsrequest.md +++ b/chainkit/docs/models/operations/listaddresschainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAddressChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListAddressChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAddressChainsRequest = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/operations/listalllatestblocksrequest.md b/chainkit/docs/models/operations/listalllatestblocksrequest.md similarity index 96% rename from devtools/docs/models/operations/listalllatestblocksrequest.md rename to chainkit/docs/models/operations/listalllatestblocksrequest.md index 0b16bedb..4700b1ca 100644 --- a/devtools/docs/models/operations/listalllatestblocksrequest.md +++ b/chainkit/docs/models/operations/listalllatestblocksrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAllLatestBlocksRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListAllLatestBlocksRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAllLatestBlocksRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/listalllatestblocksresponse.md b/chainkit/docs/models/operations/listalllatestblocksresponse.md similarity index 94% rename from devtools/docs/models/operations/listalllatestblocksresponse.md rename to chainkit/docs/models/operations/listalllatestblocksresponse.md index b902f682..0ae2952b 100644 --- a/devtools/docs/models/operations/listalllatestblocksresponse.md +++ b/chainkit/docs/models/operations/listalllatestblocksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAllLatestBlocksResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListAllLatestBlocksResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAllLatestBlocksResponse = { result: { diff --git a/devtools/docs/models/operations/listalllatesttransactionsrequest.md b/chainkit/docs/models/operations/listalllatesttransactionsrequest.md similarity index 99% rename from devtools/docs/models/operations/listalllatesttransactionsrequest.md rename to chainkit/docs/models/operations/listalllatesttransactionsrequest.md index 612a52be..fa15d4c3 100644 --- a/devtools/docs/models/operations/listalllatesttransactionsrequest.md +++ b/chainkit/docs/models/operations/listalllatesttransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAllLatestTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListAllLatestTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAllLatestTransactionsRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/listalllatesttransactionsresponse.md b/chainkit/docs/models/operations/listalllatesttransactionsresponse.md similarity index 97% rename from devtools/docs/models/operations/listalllatesttransactionsresponse.md rename to chainkit/docs/models/operations/listalllatesttransactionsresponse.md index e00dc544..e3c3ce8f 100644 --- a/devtools/docs/models/operations/listalllatesttransactionsresponse.md +++ b/chainkit/docs/models/operations/listalllatesttransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAllLatestTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListAllLatestTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAllLatestTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listassettransactionsglobals.md b/chainkit/docs/models/operations/listassettransactionsglobals.md similarity index 93% rename from devtools/docs/models/operations/listassettransactionsglobals.md rename to chainkit/docs/models/operations/listassettransactionsglobals.md index 7912a3a5..a0b29fca 100644 --- a/devtools/docs/models/operations/listassettransactionsglobals.md +++ b/chainkit/docs/models/operations/listassettransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAssetTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListAssetTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAssetTransactionsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listassettransactionsrequest.md b/chainkit/docs/models/operations/listassettransactionsrequest.md similarity index 98% rename from devtools/docs/models/operations/listassettransactionsrequest.md rename to chainkit/docs/models/operations/listassettransactionsrequest.md index cdecbeaa..e3ee12a1 100644 --- a/devtools/docs/models/operations/listassettransactionsrequest.md +++ b/chainkit/docs/models/operations/listassettransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAssetTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListAssetTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAssetTransactionsRequest = { txTypes: [ diff --git a/devtools/docs/models/operations/listassettransactionsresponse.md b/chainkit/docs/models/operations/listassettransactionsresponse.md similarity index 94% rename from devtools/docs/models/operations/listassettransactionsresponse.md rename to chainkit/docs/models/operations/listassettransactionsresponse.md index 0fab9569..508f01ab 100644 --- a/devtools/docs/models/operations/listassettransactionsresponse.md +++ b/chainkit/docs/models/operations/listassettransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListAssetTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListAssetTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListAssetTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listblockchainsglobals.md b/chainkit/docs/models/operations/listblockchainsglobals.md similarity index 95% rename from devtools/docs/models/operations/listblockchainsglobals.md rename to chainkit/docs/models/operations/listblockchainsglobals.md index 1671e1ba..eed2ef4b 100644 --- a/devtools/docs/models/operations/listblockchainsglobals.md +++ b/chainkit/docs/models/operations/listblockchainsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListBlockchainsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListBlockchainsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListBlockchainsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listblockchainsrequest.md b/chainkit/docs/models/operations/listblockchainsrequest.md similarity index 98% rename from devtools/docs/models/operations/listblockchainsrequest.md rename to chainkit/docs/models/operations/listblockchainsrequest.md index acfecda5..d26b3334 100644 --- a/devtools/docs/models/operations/listblockchainsrequest.md +++ b/chainkit/docs/models/operations/listblockchainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListBlockchainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListBlockchainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListBlockchainsRequest = { pageSize: 10, diff --git a/devtools/docs/models/operations/listblockchainsresponse.md b/chainkit/docs/models/operations/listblockchainsresponse.md similarity index 95% rename from devtools/docs/models/operations/listblockchainsresponse.md rename to chainkit/docs/models/operations/listblockchainsresponse.md index 2795b75a..0fab38d3 100644 --- a/devtools/docs/models/operations/listblockchainsresponse.md +++ b/chainkit/docs/models/operations/listblockchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListBlockchainsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListBlockchainsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListBlockchainsResponse = { result: { diff --git a/devtools/docs/models/operations/listchainsrequest.md b/chainkit/docs/models/operations/listchainsrequest.md similarity index 97% rename from devtools/docs/models/operations/listchainsrequest.md rename to chainkit/docs/models/operations/listchainsrequest.md index c898e194..f4fbf702 100644 --- a/devtools/docs/models/operations/listchainsrequest.md +++ b/chainkit/docs/models/operations/listchainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListChainsRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/listchainsresponse.md b/chainkit/docs/models/operations/listchainsresponse.md similarity index 95% rename from devtools/docs/models/operations/listchainsresponse.md rename to chainkit/docs/models/operations/listchainsresponse.md index 583d7c3c..ebe4a4dc 100644 --- a/devtools/docs/models/operations/listchainsresponse.md +++ b/chainkit/docs/models/operations/listchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListChainsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListChainsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListChainsResponse = { result: { diff --git a/devtools/docs/models/operations/listcollectiblebalancesglobals.md b/chainkit/docs/models/operations/listcollectiblebalancesglobals.md similarity index 91% rename from devtools/docs/models/operations/listcollectiblebalancesglobals.md rename to chainkit/docs/models/operations/listcollectiblebalancesglobals.md index 1768d034..aebe9510 100644 --- a/devtools/docs/models/operations/listcollectiblebalancesglobals.md +++ b/chainkit/docs/models/operations/listcollectiblebalancesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCollectibleBalancesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListCollectibleBalancesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListCollectibleBalancesGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listcollectiblebalancesrequest.md b/chainkit/docs/models/operations/listcollectiblebalancesrequest.md similarity index 97% rename from devtools/docs/models/operations/listcollectiblebalancesrequest.md rename to chainkit/docs/models/operations/listcollectiblebalancesrequest.md index 4c42b256..a8444549 100644 --- a/devtools/docs/models/operations/listcollectiblebalancesrequest.md +++ b/chainkit/docs/models/operations/listcollectiblebalancesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCollectibleBalancesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListCollectibleBalancesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListCollectibleBalancesRequest = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/operations/listcollectiblebalancesresponse.md b/chainkit/docs/models/operations/listcollectiblebalancesresponse.md similarity index 98% rename from devtools/docs/models/operations/listcollectiblebalancesresponse.md rename to chainkit/docs/models/operations/listcollectiblebalancesresponse.md index dc0e3f10..42025871 100644 --- a/devtools/docs/models/operations/listcollectiblebalancesresponse.md +++ b/chainkit/docs/models/operations/listcollectiblebalancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListCollectibleBalancesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListCollectibleBalancesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListCollectibleBalancesResponse = { result: { diff --git a/devtools/docs/models/operations/listcontractdeploymentsglobals.md b/chainkit/docs/models/operations/listcontractdeploymentsglobals.md similarity index 91% rename from devtools/docs/models/operations/listcontractdeploymentsglobals.md rename to chainkit/docs/models/operations/listcontractdeploymentsglobals.md index 394f8807..4313a575 100644 --- a/devtools/docs/models/operations/listcontractdeploymentsglobals.md +++ b/chainkit/docs/models/operations/listcontractdeploymentsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListContractDeploymentsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListContractDeploymentsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListContractDeploymentsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listcontractdeploymentsrequest.md b/chainkit/docs/models/operations/listcontractdeploymentsrequest.md similarity index 97% rename from devtools/docs/models/operations/listcontractdeploymentsrequest.md rename to chainkit/docs/models/operations/listcontractdeploymentsrequest.md index d05b415e..2ab7367e 100644 --- a/devtools/docs/models/operations/listcontractdeploymentsrequest.md +++ b/chainkit/docs/models/operations/listcontractdeploymentsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListContractDeploymentsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListContractDeploymentsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListContractDeploymentsRequest = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/operations/listcontractdeploymentsresponse.md b/chainkit/docs/models/operations/listcontractdeploymentsresponse.md similarity index 97% rename from devtools/docs/models/operations/listcontractdeploymentsresponse.md rename to chainkit/docs/models/operations/listcontractdeploymentsresponse.md index 42704817..c3c91562 100644 --- a/devtools/docs/models/operations/listcontractdeploymentsresponse.md +++ b/chainkit/docs/models/operations/listcontractdeploymentsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListContractDeploymentsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListContractDeploymentsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListContractDeploymentsResponse = { result: { diff --git a/devtools/docs/models/operations/listdelegatorsglobals.md b/chainkit/docs/models/operations/listdelegatorsglobals.md similarity index 95% rename from devtools/docs/models/operations/listdelegatorsglobals.md rename to chainkit/docs/models/operations/listdelegatorsglobals.md index 2ff6198b..2bdd1640 100644 --- a/devtools/docs/models/operations/listdelegatorsglobals.md +++ b/chainkit/docs/models/operations/listdelegatorsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDelegatorsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListDelegatorsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListDelegatorsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listdelegatorsrequest.md b/chainkit/docs/models/operations/listdelegatorsrequest.md similarity index 99% rename from devtools/docs/models/operations/listdelegatorsrequest.md rename to chainkit/docs/models/operations/listdelegatorsrequest.md index e339e926..38de8792 100644 --- a/devtools/docs/models/operations/listdelegatorsrequest.md +++ b/chainkit/docs/models/operations/listdelegatorsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDelegatorsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListDelegatorsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListDelegatorsRequest = { rewardAddresses: diff --git a/devtools/docs/models/operations/listdelegatorsresponse.md b/chainkit/docs/models/operations/listdelegatorsresponse.md similarity index 96% rename from devtools/docs/models/operations/listdelegatorsresponse.md rename to chainkit/docs/models/operations/listdelegatorsresponse.md index 45432a07..eebcca86 100644 --- a/devtools/docs/models/operations/listdelegatorsresponse.md +++ b/chainkit/docs/models/operations/listdelegatorsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListDelegatorsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListDelegatorsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListDelegatorsResponse = { result: { diff --git a/devtools/docs/models/operations/listerc1155balancesglobals.md b/chainkit/docs/models/operations/listerc1155balancesglobals.md similarity index 92% rename from devtools/docs/models/operations/listerc1155balancesglobals.md rename to chainkit/docs/models/operations/listerc1155balancesglobals.md index 4e6baa82..0417cb3a 100644 --- a/devtools/docs/models/operations/listerc1155balancesglobals.md +++ b/chainkit/docs/models/operations/listerc1155balancesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155BalancesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155BalancesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155BalancesGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc1155balancesrequest.md b/chainkit/docs/models/operations/listerc1155balancesrequest.md similarity index 98% rename from devtools/docs/models/operations/listerc1155balancesrequest.md rename to chainkit/docs/models/operations/listerc1155balancesrequest.md index 0a238ada..8913f107 100644 --- a/devtools/docs/models/operations/listerc1155balancesrequest.md +++ b/chainkit/docs/models/operations/listerc1155balancesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155BalancesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155BalancesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155BalancesRequest = { blockNumber: "6479329", diff --git a/devtools/docs/models/operations/listerc1155balancesresponse.md b/chainkit/docs/models/operations/listerc1155balancesresponse.md similarity index 95% rename from devtools/docs/models/operations/listerc1155balancesresponse.md rename to chainkit/docs/models/operations/listerc1155balancesresponse.md index 10ed1df1..7e741070 100644 --- a/devtools/docs/models/operations/listerc1155balancesresponse.md +++ b/chainkit/docs/models/operations/listerc1155balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155BalancesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155BalancesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155BalancesResponse = { result: { diff --git a/devtools/docs/models/operations/listerc1155transactionsglobals.md b/chainkit/docs/models/operations/listerc1155transactionsglobals.md similarity index 91% rename from devtools/docs/models/operations/listerc1155transactionsglobals.md rename to chainkit/docs/models/operations/listerc1155transactionsglobals.md index 36d8e3dc..4ae32f1a 100644 --- a/devtools/docs/models/operations/listerc1155transactionsglobals.md +++ b/chainkit/docs/models/operations/listerc1155transactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155TransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155TransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155TransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc1155transactionsrequest.md b/chainkit/docs/models/operations/listerc1155transactionsrequest.md similarity index 98% rename from devtools/docs/models/operations/listerc1155transactionsrequest.md rename to chainkit/docs/models/operations/listerc1155transactionsrequest.md index cac942c9..7ab6b0b8 100644 --- a/devtools/docs/models/operations/listerc1155transactionsrequest.md +++ b/chainkit/docs/models/operations/listerc1155transactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155TransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155TransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155TransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listerc1155transactionsresponse.md b/chainkit/docs/models/operations/listerc1155transactionsresponse.md similarity index 98% rename from devtools/docs/models/operations/listerc1155transactionsresponse.md rename to chainkit/docs/models/operations/listerc1155transactionsresponse.md index 59657458..2f4ae8b2 100644 --- a/devtools/docs/models/operations/listerc1155transactionsresponse.md +++ b/chainkit/docs/models/operations/listerc1155transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc1155TransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc1155TransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc1155TransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listerc20balancesglobals.md b/chainkit/docs/models/operations/listerc20balancesglobals.md similarity index 92% rename from devtools/docs/models/operations/listerc20balancesglobals.md rename to chainkit/docs/models/operations/listerc20balancesglobals.md index e8e02fde..b6d6696b 100644 --- a/devtools/docs/models/operations/listerc20balancesglobals.md +++ b/chainkit/docs/models/operations/listerc20balancesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20BalancesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20BalancesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20BalancesGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc20balancesrequest.md b/chainkit/docs/models/operations/listerc20balancesrequest.md similarity index 98% rename from devtools/docs/models/operations/listerc20balancesrequest.md rename to chainkit/docs/models/operations/listerc20balancesrequest.md index 2badade9..b41e1e90 100644 --- a/devtools/docs/models/operations/listerc20balancesrequest.md +++ b/chainkit/docs/models/operations/listerc20balancesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20BalancesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20BalancesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20BalancesRequest = { blockNumber: "6479329", diff --git a/devtools/docs/models/operations/listerc20balancesresponse.md b/chainkit/docs/models/operations/listerc20balancesresponse.md similarity index 95% rename from devtools/docs/models/operations/listerc20balancesresponse.md rename to chainkit/docs/models/operations/listerc20balancesresponse.md index 2d6d4481..ea629ad6 100644 --- a/devtools/docs/models/operations/listerc20balancesresponse.md +++ b/chainkit/docs/models/operations/listerc20balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20BalancesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20BalancesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20BalancesResponse = { result: { diff --git a/devtools/docs/models/operations/listerc20transactionsglobals.md b/chainkit/docs/models/operations/listerc20transactionsglobals.md similarity index 92% rename from devtools/docs/models/operations/listerc20transactionsglobals.md rename to chainkit/docs/models/operations/listerc20transactionsglobals.md index d191e7c9..69339bcc 100644 --- a/devtools/docs/models/operations/listerc20transactionsglobals.md +++ b/chainkit/docs/models/operations/listerc20transactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20TransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20TransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20TransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc20transactionsrequest.md b/chainkit/docs/models/operations/listerc20transactionsrequest.md similarity index 98% rename from devtools/docs/models/operations/listerc20transactionsrequest.md rename to chainkit/docs/models/operations/listerc20transactionsrequest.md index 8931c312..354d6dd9 100644 --- a/devtools/docs/models/operations/listerc20transactionsrequest.md +++ b/chainkit/docs/models/operations/listerc20transactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20TransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20TransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20TransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listerc20transactionsresponse.md b/chainkit/docs/models/operations/listerc20transactionsresponse.md similarity index 93% rename from devtools/docs/models/operations/listerc20transactionsresponse.md rename to chainkit/docs/models/operations/listerc20transactionsresponse.md index bb82b7ff..a7848f00 100644 --- a/devtools/docs/models/operations/listerc20transactionsresponse.md +++ b/chainkit/docs/models/operations/listerc20transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc20TransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc20TransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc20TransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listerc721balancesglobals.md b/chainkit/docs/models/operations/listerc721balancesglobals.md similarity index 92% rename from devtools/docs/models/operations/listerc721balancesglobals.md rename to chainkit/docs/models/operations/listerc721balancesglobals.md index 679f6afd..08eb9421 100644 --- a/devtools/docs/models/operations/listerc721balancesglobals.md +++ b/chainkit/docs/models/operations/listerc721balancesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721BalancesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721BalancesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721BalancesGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc721balancesrequest.md b/chainkit/docs/models/operations/listerc721balancesrequest.md similarity index 97% rename from devtools/docs/models/operations/listerc721balancesrequest.md rename to chainkit/docs/models/operations/listerc721balancesrequest.md index 2cc417d7..90f498d1 100644 --- a/devtools/docs/models/operations/listerc721balancesrequest.md +++ b/chainkit/docs/models/operations/listerc721balancesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721BalancesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721BalancesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721BalancesRequest = { address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F", diff --git a/devtools/docs/models/operations/listerc721balancesresponse.md b/chainkit/docs/models/operations/listerc721balancesresponse.md similarity index 95% rename from devtools/docs/models/operations/listerc721balancesresponse.md rename to chainkit/docs/models/operations/listerc721balancesresponse.md index 67564771..09e1e956 100644 --- a/devtools/docs/models/operations/listerc721balancesresponse.md +++ b/chainkit/docs/models/operations/listerc721balancesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721BalancesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721BalancesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721BalancesResponse = { result: { diff --git a/devtools/docs/models/operations/listerc721transactionsglobals.md b/chainkit/docs/models/operations/listerc721transactionsglobals.md similarity index 91% rename from devtools/docs/models/operations/listerc721transactionsglobals.md rename to chainkit/docs/models/operations/listerc721transactionsglobals.md index 04105f90..7f950dc3 100644 --- a/devtools/docs/models/operations/listerc721transactionsglobals.md +++ b/chainkit/docs/models/operations/listerc721transactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721TransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721TransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721TransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listerc721transactionsrequest.md b/chainkit/docs/models/operations/listerc721transactionsrequest.md similarity index 98% rename from devtools/docs/models/operations/listerc721transactionsrequest.md rename to chainkit/docs/models/operations/listerc721transactionsrequest.md index 520001b1..da2ae0a1 100644 --- a/devtools/docs/models/operations/listerc721transactionsrequest.md +++ b/chainkit/docs/models/operations/listerc721transactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721TransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721TransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721TransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listerc721transactionsresponse.md b/chainkit/docs/models/operations/listerc721transactionsresponse.md similarity index 93% rename from devtools/docs/models/operations/listerc721transactionsresponse.md rename to chainkit/docs/models/operations/listerc721transactionsresponse.md index b26107fe..cb42fde1 100644 --- a/devtools/docs/models/operations/listerc721transactionsresponse.md +++ b/chainkit/docs/models/operations/listerc721transactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListErc721TransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListErc721TransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListErc721TransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md similarity index 97% rename from devtools/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md rename to chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md index b79d4896..dd4231c0 100644 --- a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md +++ b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHistoricalPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListHistoricalPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListHistoricalPrimaryNetworkRewardsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md similarity index 99% rename from devtools/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md rename to chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md index 94fc3a3a..2d5ca027 100644 --- a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md +++ b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHistoricalPrimaryNetworkRewardsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListHistoricalPrimaryNetworkRewardsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListHistoricalPrimaryNetworkRewardsRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md similarity index 97% rename from devtools/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md rename to chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md index de878403..a16347d1 100644 --- a/devtools/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md +++ b/chainkit/docs/models/operations/listhistoricalprimarynetworkrewardsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListHistoricalPrimaryNetworkRewardsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListHistoricalPrimaryNetworkRewardsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListHistoricalPrimaryNetworkRewardsResponse = { result: { diff --git a/devtools/docs/models/operations/listicmmessagesbyaddressrequest.md b/chainkit/docs/models/operations/listicmmessagesbyaddressrequest.md similarity index 99% rename from devtools/docs/models/operations/listicmmessagesbyaddressrequest.md rename to chainkit/docs/models/operations/listicmmessagesbyaddressrequest.md index 902022ff..3325153d 100644 --- a/devtools/docs/models/operations/listicmmessagesbyaddressrequest.md +++ b/chainkit/docs/models/operations/listicmmessagesbyaddressrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListIcmMessagesByAddressRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListIcmMessagesByAddressRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListIcmMessagesByAddressRequest = { address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", diff --git a/devtools/docs/models/operations/listicmmessagesrequest.md b/chainkit/docs/models/operations/listicmmessagesrequest.md similarity index 98% rename from devtools/docs/models/operations/listicmmessagesrequest.md rename to chainkit/docs/models/operations/listicmmessagesrequest.md index 0e337c80..4fd0f716 100644 --- a/devtools/docs/models/operations/listicmmessagesrequest.md +++ b/chainkit/docs/models/operations/listicmmessagesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListIcmMessagesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListIcmMessagesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListIcmMessagesRequest = { sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", diff --git a/devtools/docs/models/operations/listicmmessagesresponse.md b/chainkit/docs/models/operations/listicmmessagesresponse.md similarity index 95% rename from devtools/docs/models/operations/listicmmessagesresponse.md rename to chainkit/docs/models/operations/listicmmessagesresponse.md index 4259e29e..6f2bf95d 100644 --- a/devtools/docs/models/operations/listicmmessagesresponse.md +++ b/chainkit/docs/models/operations/listicmmessagesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListIcmMessagesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListIcmMessagesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListIcmMessagesResponse = { result: { diff --git a/devtools/docs/models/operations/listinternaltransactionsglobals.md b/chainkit/docs/models/operations/listinternaltransactionsglobals.md similarity index 97% rename from devtools/docs/models/operations/listinternaltransactionsglobals.md rename to chainkit/docs/models/operations/listinternaltransactionsglobals.md index 7e4e6774..46890582 100644 --- a/devtools/docs/models/operations/listinternaltransactionsglobals.md +++ b/chainkit/docs/models/operations/listinternaltransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListInternalTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListInternalTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListInternalTransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listinternaltransactionsrequest.md b/chainkit/docs/models/operations/listinternaltransactionsrequest.md similarity index 99% rename from devtools/docs/models/operations/listinternaltransactionsrequest.md rename to chainkit/docs/models/operations/listinternaltransactionsrequest.md index 8cb0749c..6241153d 100644 --- a/devtools/docs/models/operations/listinternaltransactionsrequest.md +++ b/chainkit/docs/models/operations/listinternaltransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListInternalTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListInternalTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListInternalTransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listinternaltransactionsresponse.md b/chainkit/docs/models/operations/listinternaltransactionsresponse.md similarity index 98% rename from devtools/docs/models/operations/listinternaltransactionsresponse.md rename to chainkit/docs/models/operations/listinternaltransactionsresponse.md index 49616aa2..80d96d1d 100644 --- a/devtools/docs/models/operations/listinternaltransactionsresponse.md +++ b/chainkit/docs/models/operations/listinternaltransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListInternalTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListInternalTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListInternalTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listl1validatorsglobals.md b/chainkit/docs/models/operations/listl1validatorsglobals.md similarity index 95% rename from devtools/docs/models/operations/listl1validatorsglobals.md rename to chainkit/docs/models/operations/listl1validatorsglobals.md index 0b2e431d..10df5b03 100644 --- a/devtools/docs/models/operations/listl1validatorsglobals.md +++ b/chainkit/docs/models/operations/listl1validatorsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListL1ValidatorsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListL1ValidatorsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListL1ValidatorsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listl1validatorsrequest.md b/chainkit/docs/models/operations/listl1validatorsrequest.md similarity index 98% rename from devtools/docs/models/operations/listl1validatorsrequest.md rename to chainkit/docs/models/operations/listl1validatorsrequest.md index 4a9f878e..a79db65d 100644 --- a/devtools/docs/models/operations/listl1validatorsrequest.md +++ b/chainkit/docs/models/operations/listl1validatorsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListL1ValidatorsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListL1ValidatorsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListL1ValidatorsRequest = { l1ValidationId: "BsSpTd1SDvdhaoYAuKJvRj1WnoRyu8mAuMZeuz9g7brGj6KhX", diff --git a/devtools/docs/models/operations/listl1validatorsresponse.md b/chainkit/docs/models/operations/listl1validatorsresponse.md similarity index 95% rename from devtools/docs/models/operations/listl1validatorsresponse.md rename to chainkit/docs/models/operations/listl1validatorsresponse.md index 72c75c73..b9b3fbb6 100644 --- a/devtools/docs/models/operations/listl1validatorsresponse.md +++ b/chainkit/docs/models/operations/listl1validatorsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListL1ValidatorsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListL1ValidatorsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListL1ValidatorsResponse = { result: { diff --git a/devtools/docs/models/operations/listlatestblocksallchainsrequest.md b/chainkit/docs/models/operations/listlatestblocksallchainsrequest.md similarity index 98% rename from devtools/docs/models/operations/listlatestblocksallchainsrequest.md rename to chainkit/docs/models/operations/listlatestblocksallchainsrequest.md index 5bfccad3..e58b188e 100644 --- a/devtools/docs/models/operations/listlatestblocksallchainsrequest.md +++ b/chainkit/docs/models/operations/listlatestblocksallchainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestBlocksAllChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestBlocksAllChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestBlocksAllChainsRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/listlatestblocksallchainsresponse.md b/chainkit/docs/models/operations/listlatestblocksallchainsresponse.md similarity index 98% rename from devtools/docs/models/operations/listlatestblocksallchainsresponse.md rename to chainkit/docs/models/operations/listlatestblocksallchainsresponse.md index e6b3c7dd..74a5e200 100644 --- a/devtools/docs/models/operations/listlatestblocksallchainsresponse.md +++ b/chainkit/docs/models/operations/listlatestblocksallchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestBlocksAllChainsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestBlocksAllChainsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestBlocksAllChainsResponse = { result: { diff --git a/devtools/docs/models/operations/listlatestprimarynetworkblocksglobals.md b/chainkit/docs/models/operations/listlatestprimarynetworkblocksglobals.md similarity index 97% rename from devtools/docs/models/operations/listlatestprimarynetworkblocksglobals.md rename to chainkit/docs/models/operations/listlatestprimarynetworkblocksglobals.md index 63e5e08c..47596e0b 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworkblocksglobals.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworkblocksglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkBlocksGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkBlocksGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkBlocksGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listlatestprimarynetworkblocksrequest.md b/chainkit/docs/models/operations/listlatestprimarynetworkblocksrequest.md similarity index 99% rename from devtools/docs/models/operations/listlatestprimarynetworkblocksrequest.md rename to chainkit/docs/models/operations/listlatestprimarynetworkblocksrequest.md index e8ef8dd9..1f3cb15e 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworkblocksrequest.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworkblocksrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkBlocksRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkBlocksRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkBlocksRequest = { startTimestamp: 1689541049, diff --git a/devtools/docs/models/operations/listlatestprimarynetworkblocksresponse.md b/chainkit/docs/models/operations/listlatestprimarynetworkblocksresponse.md similarity index 98% rename from devtools/docs/models/operations/listlatestprimarynetworkblocksresponse.md rename to chainkit/docs/models/operations/listlatestprimarynetworkblocksresponse.md index a1ffd69f..e1a21b0d 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworkblocksresponse.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworkblocksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkBlocksResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkBlocksResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkBlocksResponse = { result: { diff --git a/devtools/docs/models/operations/listlatestprimarynetworktransactionsglobals.md b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsglobals.md similarity index 97% rename from devtools/docs/models/operations/listlatestprimarynetworktransactionsglobals.md rename to chainkit/docs/models/operations/listlatestprimarynetworktransactionsglobals.md index f257ea15..20b33940 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworktransactionsglobals.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkTransactionsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listlatestprimarynetworktransactionsrequest.md b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsrequest.md similarity index 99% rename from devtools/docs/models/operations/listlatestprimarynetworktransactionsrequest.md rename to chainkit/docs/models/operations/listlatestprimarynetworktransactionsrequest.md index 9346b0ac..e55eeda4 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworktransactionsrequest.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkTransactionsRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/listlatestprimarynetworktransactionsresponse.md b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponse.md similarity index 96% rename from devtools/docs/models/operations/listlatestprimarynetworktransactionsresponse.md rename to chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponse.md index ce965ad7..895770ef 100644 --- a/devtools/docs/models/operations/listlatestprimarynetworktransactionsresponse.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestPrimaryNetworkTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestPrimaryNetworkTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestPrimaryNetworkTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md similarity index 100% rename from devtools/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md rename to chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md diff --git a/devtools/docs/models/operations/listlatesttransactionsallchainsrequest.md b/chainkit/docs/models/operations/listlatesttransactionsallchainsrequest.md similarity index 98% rename from devtools/docs/models/operations/listlatesttransactionsallchainsrequest.md rename to chainkit/docs/models/operations/listlatesttransactionsallchainsrequest.md index a07f3fba..cc5c1a07 100644 --- a/devtools/docs/models/operations/listlatesttransactionsallchainsrequest.md +++ b/chainkit/docs/models/operations/listlatesttransactionsallchainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestTransactionsAllChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestTransactionsAllChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestTransactionsAllChainsRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/listlatesttransactionsallchainsresponse.md b/chainkit/docs/models/operations/listlatesttransactionsallchainsresponse.md similarity index 97% rename from devtools/docs/models/operations/listlatesttransactionsallchainsresponse.md rename to chainkit/docs/models/operations/listlatesttransactionsallchainsresponse.md index 567fe905..1bc96a7e 100644 --- a/devtools/docs/models/operations/listlatesttransactionsallchainsresponse.md +++ b/chainkit/docs/models/operations/listlatesttransactionsallchainsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestTransactionsAllChainsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestTransactionsAllChainsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestTransactionsAllChainsResponse = { result: { diff --git a/devtools/docs/models/operations/listlatesttransactionsglobals.md b/chainkit/docs/models/operations/listlatesttransactionsglobals.md similarity index 91% rename from devtools/docs/models/operations/listlatesttransactionsglobals.md rename to chainkit/docs/models/operations/listlatesttransactionsglobals.md index 2d6cc766..6082a2e3 100644 --- a/devtools/docs/models/operations/listlatesttransactionsglobals.md +++ b/chainkit/docs/models/operations/listlatesttransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestTransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listlatesttransactionsrequest.md b/chainkit/docs/models/operations/listlatesttransactionsrequest.md similarity index 97% rename from devtools/docs/models/operations/listlatesttransactionsrequest.md rename to chainkit/docs/models/operations/listlatesttransactionsrequest.md index 17cf6293..0bcdf38b 100644 --- a/devtools/docs/models/operations/listlatesttransactionsrequest.md +++ b/chainkit/docs/models/operations/listlatesttransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestTransactionsRequest = {}; ``` diff --git a/devtools/docs/models/operations/listlatesttransactionsresponse.md b/chainkit/docs/models/operations/listlatesttransactionsresponse.md similarity index 93% rename from devtools/docs/models/operations/listlatesttransactionsresponse.md rename to chainkit/docs/models/operations/listlatesttransactionsresponse.md index 5237ad20..0b149590 100644 --- a/devtools/docs/models/operations/listlatesttransactionsresponse.md +++ b/chainkit/docs/models/operations/listlatesttransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listlatestxchainverticesglobals.md b/chainkit/docs/models/operations/listlatestxchainverticesglobals.md similarity index 98% rename from devtools/docs/models/operations/listlatestxchainverticesglobals.md rename to chainkit/docs/models/operations/listlatestxchainverticesglobals.md index 18caf675..1516646c 100644 --- a/devtools/docs/models/operations/listlatestxchainverticesglobals.md +++ b/chainkit/docs/models/operations/listlatestxchainverticesglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestXChainVerticesGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestXChainVerticesGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestXChainVerticesGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listlatestxchainverticesrequest.md b/chainkit/docs/models/operations/listlatestxchainverticesrequest.md similarity index 99% rename from devtools/docs/models/operations/listlatestxchainverticesrequest.md rename to chainkit/docs/models/operations/listlatestxchainverticesrequest.md index 6b40711c..1473e411 100644 --- a/devtools/docs/models/operations/listlatestxchainverticesrequest.md +++ b/chainkit/docs/models/operations/listlatestxchainverticesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestXChainVerticesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestXChainVerticesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestXChainVerticesRequest = { blockchainId: "x-chain", diff --git a/devtools/docs/models/operations/listlatestxchainverticesresponse.md b/chainkit/docs/models/operations/listlatestxchainverticesresponse.md similarity index 98% rename from devtools/docs/models/operations/listlatestxchainverticesresponse.md rename to chainkit/docs/models/operations/listlatestxchainverticesresponse.md index 0ba42cba..ca663226 100644 --- a/devtools/docs/models/operations/listlatestxchainverticesresponse.md +++ b/chainkit/docs/models/operations/listlatestxchainverticesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListLatestXChainVerticesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListLatestXChainVerticesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListLatestXChainVerticesResponse = { result: { diff --git a/devtools/docs/models/operations/listnativetransactionsglobals.md b/chainkit/docs/models/operations/listnativetransactionsglobals.md similarity index 91% rename from devtools/docs/models/operations/listnativetransactionsglobals.md rename to chainkit/docs/models/operations/listnativetransactionsglobals.md index f669d601..e80c28a5 100644 --- a/devtools/docs/models/operations/listnativetransactionsglobals.md +++ b/chainkit/docs/models/operations/listnativetransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListNativeTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListNativeTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListNativeTransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listnativetransactionsrequest.md b/chainkit/docs/models/operations/listnativetransactionsrequest.md similarity index 98% rename from devtools/docs/models/operations/listnativetransactionsrequest.md rename to chainkit/docs/models/operations/listnativetransactionsrequest.md index 0424e9c8..9659659b 100644 --- a/devtools/docs/models/operations/listnativetransactionsrequest.md +++ b/chainkit/docs/models/operations/listnativetransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListNativeTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListNativeTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListNativeTransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listnativetransactionsresponse.md b/chainkit/docs/models/operations/listnativetransactionsresponse.md similarity index 93% rename from devtools/docs/models/operations/listnativetransactionsresponse.md rename to chainkit/docs/models/operations/listnativetransactionsresponse.md index cba6f1fd..5b412ed1 100644 --- a/devtools/docs/models/operations/listnativetransactionsresponse.md +++ b/chainkit/docs/models/operations/listnativetransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListNativeTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListNativeTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListNativeTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listpendingprimarynetworkrewardsglobals.md b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsglobals.md similarity index 97% rename from devtools/docs/models/operations/listpendingprimarynetworkrewardsglobals.md rename to chainkit/docs/models/operations/listpendingprimarynetworkrewardsglobals.md index 3a92d1ff..2493b4f6 100644 --- a/devtools/docs/models/operations/listpendingprimarynetworkrewardsglobals.md +++ b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPendingPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListPendingPrimaryNetworkRewardsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPendingPrimaryNetworkRewardsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listpendingprimarynetworkrewardsrequest.md b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsrequest.md similarity index 99% rename from devtools/docs/models/operations/listpendingprimarynetworkrewardsrequest.md rename to chainkit/docs/models/operations/listpendingprimarynetworkrewardsrequest.md index cc8ee255..c4a5721d 100644 --- a/devtools/docs/models/operations/listpendingprimarynetworkrewardsrequest.md +++ b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPendingPrimaryNetworkRewardsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListPendingPrimaryNetworkRewardsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPendingPrimaryNetworkRewardsRequest = { addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg", diff --git a/devtools/docs/models/operations/listpendingprimarynetworkrewardsresponse.md b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsresponse.md similarity index 98% rename from devtools/docs/models/operations/listpendingprimarynetworkrewardsresponse.md rename to chainkit/docs/models/operations/listpendingprimarynetworkrewardsresponse.md index 82c36085..4bd80ac4 100644 --- a/devtools/docs/models/operations/listpendingprimarynetworkrewardsresponse.md +++ b/chainkit/docs/models/operations/listpendingprimarynetworkrewardsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPendingPrimaryNetworkRewardsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListPendingPrimaryNetworkRewardsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPendingPrimaryNetworkRewardsResponse = { result: { diff --git a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md similarity index 97% rename from devtools/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md rename to chainkit/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md index e108999e..66ed4cc7 100644 --- a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md +++ b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPrimaryNetworkBlocksByNodeIdGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListPrimaryNetworkBlocksByNodeIdGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPrimaryNetworkBlocksByNodeIdGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md similarity index 99% rename from devtools/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md rename to chainkit/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md index 137ba9c9..61b54ed8 100644 --- a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md +++ b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPrimaryNetworkBlocksByNodeIdRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListPrimaryNetworkBlocksByNodeIdRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPrimaryNetworkBlocksByNodeIdRequest = { startTimestamp: 1689541049, diff --git a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md similarity index 98% rename from devtools/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md rename to chainkit/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md index a623ae6d..79b2cad3 100644 --- a/devtools/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md +++ b/chainkit/docs/models/operations/listprimarynetworkblocksbynodeidresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListPrimaryNetworkBlocksByNodeIdResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListPrimaryNetworkBlocksByNodeIdResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListPrimaryNetworkBlocksByNodeIdResponse = { result: { diff --git a/devtools/docs/models/operations/listsubnetsglobals.md b/chainkit/docs/models/operations/listsubnetsglobals.md similarity index 95% rename from devtools/docs/models/operations/listsubnetsglobals.md rename to chainkit/docs/models/operations/listsubnetsglobals.md index eaf257aa..5de746aa 100644 --- a/devtools/docs/models/operations/listsubnetsglobals.md +++ b/chainkit/docs/models/operations/listsubnetsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSubnetsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListSubnetsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListSubnetsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listsubnetsrequest.md b/chainkit/docs/models/operations/listsubnetsrequest.md similarity index 98% rename from devtools/docs/models/operations/listsubnetsrequest.md rename to chainkit/docs/models/operations/listsubnetsrequest.md index 7010c245..00a6633e 100644 --- a/devtools/docs/models/operations/listsubnetsrequest.md +++ b/chainkit/docs/models/operations/listsubnetsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSubnetsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListSubnetsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListSubnetsRequest = { pageSize: 10, diff --git a/devtools/docs/models/operations/listsubnetsresponse.md b/chainkit/docs/models/operations/listsubnetsresponse.md similarity index 94% rename from devtools/docs/models/operations/listsubnetsresponse.md rename to chainkit/docs/models/operations/listsubnetsresponse.md index b393eed4..057ac8a8 100644 --- a/devtools/docs/models/operations/listsubnetsresponse.md +++ b/chainkit/docs/models/operations/listsubnetsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListSubnetsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListSubnetsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListSubnetsResponse = { result: { diff --git a/devtools/docs/models/operations/listteleportermessagesbyaddressrequest.md b/chainkit/docs/models/operations/listteleportermessagesbyaddressrequest.md similarity index 98% rename from devtools/docs/models/operations/listteleportermessagesbyaddressrequest.md rename to chainkit/docs/models/operations/listteleportermessagesbyaddressrequest.md index 6dc1e4f9..ec450c5a 100644 --- a/devtools/docs/models/operations/listteleportermessagesbyaddressrequest.md +++ b/chainkit/docs/models/operations/listteleportermessagesbyaddressrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTeleporterMessagesByAddressRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListTeleporterMessagesByAddressRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTeleporterMessagesByAddressRequest = { address: "0x8578AE7723751446B196bD5124e1bF57B40EB7Bc", diff --git a/devtools/docs/models/operations/listteleportermessagesrequest.md b/chainkit/docs/models/operations/listteleportermessagesrequest.md similarity index 98% rename from devtools/docs/models/operations/listteleportermessagesrequest.md rename to chainkit/docs/models/operations/listteleportermessagesrequest.md index e9f868a3..e6df5bc1 100644 --- a/devtools/docs/models/operations/listteleportermessagesrequest.md +++ b/chainkit/docs/models/operations/listteleportermessagesrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTeleporterMessagesRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListTeleporterMessagesRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTeleporterMessagesRequest = { sourceBlockchainId: "2D8RG4UpSXbPbvPCAWppNJyqTG2i2CAXSkTgmTBBvs7GKNZjsY", diff --git a/devtools/docs/models/operations/listteleportermessagesresponse.md b/chainkit/docs/models/operations/listteleportermessagesresponse.md similarity index 93% rename from devtools/docs/models/operations/listteleportermessagesresponse.md rename to chainkit/docs/models/operations/listteleportermessagesresponse.md index 0eb3ef7c..f5baa40b 100644 --- a/devtools/docs/models/operations/listteleportermessagesresponse.md +++ b/chainkit/docs/models/operations/listteleportermessagesresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTeleporterMessagesResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListTeleporterMessagesResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTeleporterMessagesResponse = { result: { diff --git a/devtools/docs/models/operations/listtokensglobals.md b/chainkit/docs/models/operations/listtokensglobals.md similarity index 94% rename from devtools/docs/models/operations/listtokensglobals.md rename to chainkit/docs/models/operations/listtokensglobals.md index 2dffb77e..0d0022e9 100644 --- a/devtools/docs/models/operations/listtokensglobals.md +++ b/chainkit/docs/models/operations/listtokensglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTokensGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListTokensGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTokensGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listtokensrequest.md b/chainkit/docs/models/operations/listtokensrequest.md similarity index 98% rename from devtools/docs/models/operations/listtokensrequest.md rename to chainkit/docs/models/operations/listtokensrequest.md index 6cab6232..a457800c 100644 --- a/devtools/docs/models/operations/listtokensrequest.md +++ b/chainkit/docs/models/operations/listtokensrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTokensRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListTokensRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTokensRequest = { address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", diff --git a/devtools/docs/models/operations/listtokensresponse.md b/chainkit/docs/models/operations/listtokensresponse.md similarity index 95% rename from devtools/docs/models/operations/listtokensresponse.md rename to chainkit/docs/models/operations/listtokensresponse.md index 7d9f075f..f4bf2b3b 100644 --- a/devtools/docs/models/operations/listtokensresponse.md +++ b/chainkit/docs/models/operations/listtokensresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTokensResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListTokensResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTokensResponse = { result: { diff --git a/devtools/docs/models/operations/listtransactionsglobals.md b/chainkit/docs/models/operations/listtransactionsglobals.md similarity index 94% rename from devtools/docs/models/operations/listtransactionsglobals.md rename to chainkit/docs/models/operations/listtransactionsglobals.md index 08769ed0..71a103f9 100644 --- a/devtools/docs/models/operations/listtransactionsglobals.md +++ b/chainkit/docs/models/operations/listtransactionsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransactionsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransactionsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransactionsGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listtransactionsrequest.md b/chainkit/docs/models/operations/listtransactionsrequest.md similarity index 99% rename from devtools/docs/models/operations/listtransactionsrequest.md rename to chainkit/docs/models/operations/listtransactionsrequest.md index 5d891dab..04a524a7 100644 --- a/devtools/docs/models/operations/listtransactionsrequest.md +++ b/chainkit/docs/models/operations/listtransactionsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransactionsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransactionsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransactionsRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listtransactionsresponse.md b/chainkit/docs/models/operations/listtransactionsresponse.md similarity index 94% rename from devtools/docs/models/operations/listtransactionsresponse.md rename to chainkit/docs/models/operations/listtransactionsresponse.md index 0f28bc8c..da27b7c5 100644 --- a/devtools/docs/models/operations/listtransactionsresponse.md +++ b/chainkit/docs/models/operations/listtransactionsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransactionsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransactionsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransactionsResponse = { result: { diff --git a/devtools/docs/models/operations/listtransfersglobals.md b/chainkit/docs/models/operations/listtransfersglobals.md similarity index 94% rename from devtools/docs/models/operations/listtransfersglobals.md rename to chainkit/docs/models/operations/listtransfersglobals.md index b1762ba2..e20100fd 100644 --- a/devtools/docs/models/operations/listtransfersglobals.md +++ b/chainkit/docs/models/operations/listtransfersglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransfersGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransfersGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransfersGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/listtransfersrequest.md b/chainkit/docs/models/operations/listtransfersrequest.md similarity index 98% rename from devtools/docs/models/operations/listtransfersrequest.md rename to chainkit/docs/models/operations/listtransfersrequest.md index 980e359f..355cd58f 100644 --- a/devtools/docs/models/operations/listtransfersrequest.md +++ b/chainkit/docs/models/operations/listtransfersrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransfersRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransfersRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransfersRequest = { startBlock: 6479329, diff --git a/devtools/docs/models/operations/listtransfersresponse.md b/chainkit/docs/models/operations/listtransfersresponse.md similarity index 95% rename from devtools/docs/models/operations/listtransfersresponse.md rename to chainkit/docs/models/operations/listtransfersresponse.md index 3bd9df2a..4b2ee58e 100644 --- a/devtools/docs/models/operations/listtransfersresponse.md +++ b/chainkit/docs/models/operations/listtransfersresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListTransfersResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListTransfersResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListTransfersResponse = { result: { diff --git a/devtools/docs/models/operations/listvalidatorsglobals.md b/chainkit/docs/models/operations/listvalidatorsglobals.md similarity index 95% rename from devtools/docs/models/operations/listvalidatorsglobals.md rename to chainkit/docs/models/operations/listvalidatorsglobals.md index a9a7e586..3644f2ec 100644 --- a/devtools/docs/models/operations/listvalidatorsglobals.md +++ b/chainkit/docs/models/operations/listvalidatorsglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListValidatorsGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ListValidatorsGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ListValidatorsGlobals = { network: "mainnet", diff --git a/devtools/docs/models/operations/listvalidatorsrequest.md b/chainkit/docs/models/operations/listvalidatorsrequest.md similarity index 99% rename from devtools/docs/models/operations/listvalidatorsrequest.md rename to chainkit/docs/models/operations/listvalidatorsrequest.md index 17c109de..80191a88 100644 --- a/devtools/docs/models/operations/listvalidatorsrequest.md +++ b/chainkit/docs/models/operations/listvalidatorsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListValidatorsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListValidatorsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListValidatorsRequest = { nodeIds: diff --git a/devtools/docs/models/operations/listvalidatorsresponse.md b/chainkit/docs/models/operations/listvalidatorsresponse.md similarity index 95% rename from devtools/docs/models/operations/listvalidatorsresponse.md rename to chainkit/docs/models/operations/listvalidatorsresponse.md index 276cf9d9..004b98db 100644 --- a/devtools/docs/models/operations/listvalidatorsresponse.md +++ b/chainkit/docs/models/operations/listvalidatorsresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListValidatorsResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListValidatorsResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListValidatorsResponse = { result: { diff --git a/devtools/docs/models/operations/listwebhooksrequest.md b/chainkit/docs/models/operations/listwebhooksrequest.md similarity index 98% rename from devtools/docs/models/operations/listwebhooksrequest.md rename to chainkit/docs/models/operations/listwebhooksrequest.md index e58ce515..ca83de90 100644 --- a/devtools/docs/models/operations/listwebhooksrequest.md +++ b/chainkit/docs/models/operations/listwebhooksrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListWebhooksRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ListWebhooksRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ListWebhooksRequest = { status: "active", diff --git a/devtools/docs/models/operations/listwebhooksresponse.md b/chainkit/docs/models/operations/listwebhooksresponse.md similarity index 94% rename from devtools/docs/models/operations/listwebhooksresponse.md rename to chainkit/docs/models/operations/listwebhooksresponse.md index 45daf8ad..512869fb 100644 --- a/devtools/docs/models/operations/listwebhooksresponse.md +++ b/chainkit/docs/models/operations/listwebhooksresponse.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ListWebhooksResponse } from "@avalanche-sdk/devtools/models/operations"; +import { ListWebhooksResponse } from "@avalanche-sdk/chainkit/models/operations"; let value: ListWebhooksResponse = { result: { diff --git a/devtools/docs/models/operations/posttransactionexportjobrequest.md b/chainkit/docs/models/operations/posttransactionexportjobrequest.md similarity index 100% rename from devtools/docs/models/operations/posttransactionexportjobrequest.md rename to chainkit/docs/models/operations/posttransactionexportjobrequest.md diff --git a/devtools/docs/models/operations/reindexnftglobals.md b/chainkit/docs/models/operations/reindexnftglobals.md similarity index 94% rename from devtools/docs/models/operations/reindexnftglobals.md rename to chainkit/docs/models/operations/reindexnftglobals.md index d50d01c7..f4301ca1 100644 --- a/devtools/docs/models/operations/reindexnftglobals.md +++ b/chainkit/docs/models/operations/reindexnftglobals.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReindexNftGlobals } from "@avalanche-sdk/devtools/models/operations"; +import { ReindexNftGlobals } from "@avalanche-sdk/chainkit/models/operations"; let value: ReindexNftGlobals = { chainId: "43114", diff --git a/devtools/docs/models/operations/reindexnftrequest.md b/chainkit/docs/models/operations/reindexnftrequest.md similarity index 97% rename from devtools/docs/models/operations/reindexnftrequest.md rename to chainkit/docs/models/operations/reindexnftrequest.md index 98cadcfd..633a34c3 100644 --- a/devtools/docs/models/operations/reindexnftrequest.md +++ b/chainkit/docs/models/operations/reindexnftrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { ReindexNftRequest } from "@avalanche-sdk/devtools/models/operations"; +import { ReindexNftRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: ReindexNftRequest = { address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E", diff --git a/devtools/docs/models/operations/removeaddressesfromwebhookrequest.md b/chainkit/docs/models/operations/removeaddressesfromwebhookrequest.md similarity index 98% rename from devtools/docs/models/operations/removeaddressesfromwebhookrequest.md rename to chainkit/docs/models/operations/removeaddressesfromwebhookrequest.md index 2711ba1a..fc76fcf1 100644 --- a/devtools/docs/models/operations/removeaddressesfromwebhookrequest.md +++ b/chainkit/docs/models/operations/removeaddressesfromwebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { RemoveAddressesFromWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { RemoveAddressesFromWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: RemoveAddressesFromWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/supportedchainsrequest.md b/chainkit/docs/models/operations/supportedchainsrequest.md similarity index 95% rename from devtools/docs/models/operations/supportedchainsrequest.md rename to chainkit/docs/models/operations/supportedchainsrequest.md index 265abb51..ea60bd66 100644 --- a/devtools/docs/models/operations/supportedchainsrequest.md +++ b/chainkit/docs/models/operations/supportedchainsrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { SupportedChainsRequest } from "@avalanche-sdk/devtools/models/operations"; +import { SupportedChainsRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: SupportedChainsRequest = { network: "mainnet", diff --git a/devtools/docs/models/operations/updatewebhookrequest.md b/chainkit/docs/models/operations/updatewebhookrequest.md similarity index 96% rename from devtools/docs/models/operations/updatewebhookrequest.md rename to chainkit/docs/models/operations/updatewebhookrequest.md index 4ac29156..08f9195f 100644 --- a/devtools/docs/models/operations/updatewebhookrequest.md +++ b/chainkit/docs/models/operations/updatewebhookrequest.md @@ -3,7 +3,7 @@ ## Example Usage ```typescript -import { UpdateWebhookRequest } from "@avalanche-sdk/devtools/models/operations"; +import { UpdateWebhookRequest } from "@avalanche-sdk/chainkit/models/operations"; let value: UpdateWebhookRequest = { id: "f33de69c-d13b-4691-908f-870d6e2e6b04", diff --git a/devtools/docs/models/operations/updatewebhookresponse.md b/chainkit/docs/models/operations/updatewebhookresponse.md similarity index 100% rename from devtools/docs/models/operations/updatewebhookresponse.md rename to chainkit/docs/models/operations/updatewebhookresponse.md diff --git a/devtools/docs/sdks/addressbalances/README.md b/chainkit/docs/sdks/addressbalances/README.md similarity index 97% rename from devtools/docs/sdks/addressbalances/README.md rename to chainkit/docs/sdks/addressbalances/README.md index 6e76f51a..db9c0852 100644 --- a/devtools/docs/sdks/addressbalances/README.md +++ b/chainkit/docs/sdks/addressbalances/README.md @@ -21,7 +21,7 @@ Balance at a given block can be retrieved with the `blockNumber` parameter. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -45,8 +45,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressBalancesGetNative } from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesGetNative.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressBalancesGetNative } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesGetNative.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -111,7 +111,7 @@ Balance for specific contracts can be retrieved with the `contractAddresses` par ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -138,8 +138,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressBalancesListErc20 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc20.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressBalancesListErc20 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc20.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -205,7 +205,7 @@ Balance for a specific contract can be retrieved with the `contractAddress` para ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -230,8 +230,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressBalancesListErc721 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc721.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressBalancesListErc721 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc721.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -297,7 +297,7 @@ Balance for a specific contract can be retrieved with the `contractAddress` para ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -323,8 +323,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressBalancesListErc1155 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc1155.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressBalancesListErc1155 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc1155.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -389,7 +389,7 @@ Balance for a specific contract can be retrieved with the `contractAddress` para ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -414,8 +414,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressBalancesListCollectibles } from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListCollectibles.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressBalancesListCollectibles } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListCollectibles.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/addresschains/README.md b/chainkit/docs/sdks/addresschains/README.md similarity index 97% rename from devtools/docs/sdks/addresschains/README.md rename to chainkit/docs/sdks/addresschains/README.md index cd2bc8c7..0487e057 100644 --- a/devtools/docs/sdks/addresschains/README.md +++ b/chainkit/docs/sdks/addresschains/README.md @@ -15,7 +15,7 @@ Lists the chains where the specified address has participated in transactions o ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -35,8 +35,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressChainsList } from "@avalanche-sdk/devtools/funcs/dataEvmAddressChainsList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressChainsList } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressChainsList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/addresscontracts/README.md b/chainkit/docs/sdks/addresscontracts/README.md similarity index 97% rename from devtools/docs/sdks/addresscontracts/README.md rename to chainkit/docs/sdks/addresscontracts/README.md index b629f07b..9c8d05f5 100644 --- a/devtools/docs/sdks/addresscontracts/README.md +++ b/chainkit/docs/sdks/addresscontracts/README.md @@ -15,7 +15,7 @@ Lists all contracts deployed by the given address. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -39,8 +39,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressContractsListDeployments } from "@avalanche-sdk/devtools/funcs/dataEvmAddressContractsListDeployments.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressContractsListDeployments } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressContractsListDeployments.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/addresses/README.md b/chainkit/docs/sdks/addresses/README.md similarity index 97% rename from devtools/docs/sdks/addresses/README.md rename to chainkit/docs/sdks/addresses/README.md index cd69c0d6..1c7c1c85 100644 --- a/devtools/docs/sdks/addresses/README.md +++ b/chainkit/docs/sdks/addresses/README.md @@ -17,7 +17,7 @@ List adresses by webhook. Only valid for EVM activity webhooks. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -39,8 +39,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksAddressesList } from "@avalanche-sdk/devtools/funcs/webhooksAddressesList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksAddressesList } from "@avalanche-sdk/chainkit/funcs/webhooksAddressesList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -99,7 +99,7 @@ Remove addresses from webhook. Only valid for EVM activity webhooks. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -124,8 +124,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksAddressesRemove } from "@avalanche-sdk/devtools/funcs/webhooksAddressesRemove.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksAddressesRemove } from "@avalanche-sdk/chainkit/funcs/webhooksAddressesRemove.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -187,7 +187,7 @@ Add addresses to webhook. Only valid for EVM activity webhooks. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -212,8 +212,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksAddressesAdd } from "@avalanche-sdk/devtools/funcs/webhooksAddressesAdd.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksAddressesAdd } from "@avalanche-sdk/chainkit/funcs/webhooksAddressesAdd.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/addresstransactions/README.md b/chainkit/docs/sdks/addresstransactions/README.md similarity index 97% rename from devtools/docs/sdks/addresstransactions/README.md rename to chainkit/docs/sdks/addresstransactions/README.md index 45826f74..dd51964c 100644 --- a/devtools/docs/sdks/addresstransactions/README.md +++ b/chainkit/docs/sdks/addresstransactions/README.md @@ -22,7 +22,7 @@ Filterable by block ranges. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -49,8 +49,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsList } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsList } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -114,7 +114,7 @@ Lists native transactions for an address. Filterable by block range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -140,8 +140,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsListNative } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListNative.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsListNative } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListNative.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -204,7 +204,7 @@ Lists ERC-20 transfers for an address. Filterable by block range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -230,8 +230,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsListErc20 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc20.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsListErc20 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc20.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -294,7 +294,7 @@ Lists ERC-721 transfers for an address. Filterable by block range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -320,8 +320,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsListErc721 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc721.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsListErc721 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc721.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -384,7 +384,7 @@ Lists ERC-1155 transfers for an address. Filterable by block range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -410,8 +410,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsListErc1155 } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc1155.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsListErc1155 } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc1155.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -476,7 +476,7 @@ Note that the internal transactions list only contains `CALL` or `CALLCODE` tran ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -502,8 +502,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmAddressTransactionsListInternal } from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListInternal.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmAddressTransactionsListInternal } from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListInternal.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/avalanche/README.md b/chainkit/docs/sdks/avalanche/README.md similarity index 100% rename from devtools/docs/sdks/avalanche/README.md rename to chainkit/docs/sdks/avalanche/README.md diff --git a/devtools/docs/sdks/contracts/README.md b/chainkit/docs/sdks/contracts/README.md similarity index 97% rename from devtools/docs/sdks/contracts/README.md rename to chainkit/docs/sdks/contracts/README.md index 79a309ea..bcee442f 100644 --- a/devtools/docs/sdks/contracts/README.md +++ b/chainkit/docs/sdks/contracts/README.md @@ -17,7 +17,7 @@ If the address is a smart contract, returns the transaction in which it was depl ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -40,8 +40,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmContractsGetDeploymentTransaction } from "@avalanche-sdk/devtools/funcs/dataEvmContractsGetDeploymentTransaction.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmContractsGetDeploymentTransaction } from "@avalanche-sdk/chainkit/funcs/dataEvmContractsGetDeploymentTransaction.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -101,7 +101,7 @@ Gets metadata about the contract at the given address. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -123,8 +123,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmContractsGetMetadata } from "@avalanche-sdk/devtools/funcs/dataEvmContractsGetMetadata.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmContractsGetMetadata } from "@avalanche-sdk/chainkit/funcs/dataEvmContractsGetMetadata.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -183,7 +183,7 @@ Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -209,8 +209,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmContractsListTransfers } from "@avalanche-sdk/devtools/funcs/dataEvmContractsListTransfers.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmContractsListTransfers } from "@avalanche-sdk/chainkit/funcs/dataEvmContractsListTransfers.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/data/README.md b/chainkit/docs/sdks/data/README.md similarity index 97% rename from devtools/docs/sdks/data/README.md rename to chainkit/docs/sdks/data/README.md index 81116dbc..32ea28ba 100644 --- a/devtools/docs/sdks/data/README.md +++ b/chainkit/docs/sdks/data/README.md @@ -15,7 +15,7 @@ Check the health of the service. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -33,8 +33,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataHealthCheck } from "@avalanche-sdk/devtools/funcs/dataHealthCheck.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataHealthCheck } from "@avalanche-sdk/chainkit/funcs/dataHealthCheck.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/evmblocks/README.md b/chainkit/docs/sdks/evmblocks/README.md similarity index 97% rename from devtools/docs/sdks/evmblocks/README.md rename to chainkit/docs/sdks/evmblocks/README.md index 4dba99ba..eba65dcd 100644 --- a/devtools/docs/sdks/evmblocks/README.md +++ b/chainkit/docs/sdks/evmblocks/README.md @@ -18,7 +18,7 @@ Lists the most recent blocks from all supported EVM-compatible chains. The resu ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -40,8 +40,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmBlocksListLatestAllChains } from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListLatestAllChains.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmBlocksListLatestAllChains } from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListLatestAllChains.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -100,7 +100,7 @@ Lists the latest indexed blocks on the EVM-compatible chain sorted in descending ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -122,8 +122,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmBlocksListLatest } from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListLatest.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmBlocksListLatest } from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListLatest.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -182,7 +182,7 @@ Gets the details of an individual block on the EVM-compatible chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -204,8 +204,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmBlocksGet } from "@avalanche-sdk/devtools/funcs/dataEvmBlocksGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmBlocksGet } from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -264,7 +264,7 @@ Lists the transactions that occured in a given block. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -287,8 +287,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmBlocksListTransactions } from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListTransactions.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmBlocksListTransactions } from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListTransactions.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/evmchains/README.md b/chainkit/docs/sdks/evmchains/README.md similarity index 97% rename from devtools/docs/sdks/evmchains/README.md rename to chainkit/docs/sdks/evmchains/README.md index 57fdbcf2..d0034b29 100644 --- a/devtools/docs/sdks/evmchains/README.md +++ b/chainkit/docs/sdks/evmchains/README.md @@ -25,7 +25,7 @@ Lists the AvaCloud supported EVM-compatible chains. Filterable by network. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -46,8 +46,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmChainsList } from "@avalanche-sdk/devtools/funcs/dataEvmChainsList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmChainsList } from "@avalanche-sdk/chainkit/funcs/dataEvmChainsList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -105,7 +105,7 @@ Gets chain information for the EVM-compatible chain if supported by AvaCloud. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -125,8 +125,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmChainsGet } from "@avalanche-sdk/devtools/funcs/dataEvmChainsGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmChainsGet } from "@avalanche-sdk/chainkit/funcs/dataEvmChainsGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -187,7 +187,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -207,8 +207,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmChainsGetAddressChains } from "@avalanche-sdk/devtools/funcs/dataEvmChainsGetAddressChains.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmChainsGetAddressChains } from "@avalanche-sdk/chainkit/funcs/dataEvmChainsGetAddressChains.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -269,7 +269,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -291,8 +291,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmChainsListAllLatestTransactions } from "@avalanche-sdk/devtools/funcs/dataEvmChainsListAllLatestTransactions.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmChainsListAllLatestTransactions } from "@avalanche-sdk/chainkit/funcs/dataEvmChainsListAllLatestTransactions.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -355,7 +355,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -377,8 +377,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmChainsListAllLatestBlocks } from "@avalanche-sdk/devtools/funcs/dataEvmChainsListAllLatestBlocks.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmChainsListAllLatestBlocks } from "@avalanche-sdk/chainkit/funcs/dataEvmChainsListAllLatestBlocks.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/evmtransactions/README.md b/chainkit/docs/sdks/evmtransactions/README.md similarity index 97% rename from devtools/docs/sdks/evmtransactions/README.md rename to chainkit/docs/sdks/evmtransactions/README.md index 50dd5b1e..f3d52577 100644 --- a/devtools/docs/sdks/evmtransactions/README.md +++ b/chainkit/docs/sdks/evmtransactions/README.md @@ -17,7 +17,7 @@ Lists the most recent transactions from all supported EVM-compatible chains. Th ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -39,8 +39,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmTransactionsListLatestAllChains } from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsListLatestAllChains.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmTransactionsListLatestAllChains } from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsListLatestAllChains.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -99,7 +99,7 @@ Gets the details of a single transaction. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -121,8 +121,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmTransactionsGet } from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmTransactionsGet } from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -181,7 +181,7 @@ Lists the latest transactions. Filterable by status. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -203,8 +203,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataEvmTransactionsListLatest } from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsListLatest.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataEvmTransactionsListLatest } from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsListLatest.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/icm/README.md b/chainkit/docs/sdks/icm/README.md similarity index 97% rename from devtools/docs/sdks/icm/README.md rename to chainkit/docs/sdks/icm/README.md index 058a2891..9726b2fb 100644 --- a/devtools/docs/sdks/icm/README.md +++ b/chainkit/docs/sdks/icm/README.md @@ -17,7 +17,7 @@ Gets an ICM message by teleporter message ID. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -37,8 +37,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataIcmGet } from "@avalanche-sdk/devtools/funcs/dataIcmGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataIcmGet } from "@avalanche-sdk/chainkit/funcs/dataIcmGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -95,7 +95,7 @@ Lists ICM messages. Ordered by timestamp in descending order. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -121,8 +121,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataIcmList } from "@avalanche-sdk/devtools/funcs/dataIcmList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataIcmList } from "@avalanche-sdk/chainkit/funcs/dataIcmList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -185,7 +185,7 @@ Lists ICM messages by address. Ordered by timestamp in descending order. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -206,8 +206,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataIcmListByAddress } from "@avalanche-sdk/devtools/funcs/dataIcmListByAddress.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataIcmListByAddress } from "@avalanche-sdk/chainkit/funcs/dataIcmListByAddress.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/l1validators/README.md b/chainkit/docs/sdks/l1validators/README.md similarity index 97% rename from devtools/docs/sdks/l1validators/README.md rename to chainkit/docs/sdks/l1validators/README.md index b676b605..7caa10e7 100644 --- a/devtools/docs/sdks/l1validators/README.md +++ b/chainkit/docs/sdks/l1validators/README.md @@ -18,7 +18,7 @@ Get given metric's value for all validators. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -40,8 +40,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsL1ValidatorsListMetrics } from "@avalanche-sdk/devtools/funcs/metricsL1ValidatorsListMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsL1ValidatorsListMetrics } from "@avalanche-sdk/chainkit/funcs/metricsL1ValidatorsListMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -100,7 +100,7 @@ Get given metric values for a given validation id with or without a timestamp ra ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -123,8 +123,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsL1ValidatorsGetMetricsByValidationId } from "@avalanche-sdk/devtools/funcs/metricsL1ValidatorsGetMetricsByValidationId.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsL1ValidatorsGetMetricsByValidationId } from "@avalanche-sdk/chainkit/funcs/metricsL1ValidatorsGetMetricsByValidationId.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -184,7 +184,7 @@ Get given metric values for a given node id with or without a timestamp range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -207,8 +207,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsL1ValidatorsGetMetricsByNodeId } from "@avalanche-sdk/devtools/funcs/metricsL1ValidatorsGetMetricsByNodeId.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsL1ValidatorsGetMetricsByNodeId } from "@avalanche-sdk/chainkit/funcs/metricsL1ValidatorsGetMetricsByNodeId.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -268,7 +268,7 @@ Get given metric values for a given subnet ID with or without a timestamp range. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -291,8 +291,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsL1ValidatorsGetMetricsBySubnetId } from "@avalanche-sdk/devtools/funcs/metricsL1ValidatorsGetMetricsBySubnetId.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsL1ValidatorsGetMetricsBySubnetId } from "@avalanche-sdk/chainkit/funcs/metricsL1ValidatorsGetMetricsBySubnetId.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/metrics/README.md b/chainkit/docs/sdks/metrics/README.md similarity index 97% rename from devtools/docs/sdks/metrics/README.md rename to chainkit/docs/sdks/metrics/README.md index a2be9558..20e61bf0 100644 --- a/devtools/docs/sdks/metrics/README.md +++ b/chainkit/docs/sdks/metrics/README.md @@ -15,7 +15,7 @@ Check the health of the service. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -33,8 +33,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsHealthCheck } from "@avalanche-sdk/devtools/funcs/metricsHealthCheck.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsHealthCheck } from "@avalanche-sdk/chainkit/funcs/metricsHealthCheck.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/metricschains/README.md b/chainkit/docs/sdks/metricschains/README.md similarity index 97% rename from devtools/docs/sdks/metricschains/README.md rename to chainkit/docs/sdks/metricschains/README.md index 9ba1a2ff..2d295311 100644 --- a/devtools/docs/sdks/metricschains/README.md +++ b/chainkit/docs/sdks/metricschains/README.md @@ -22,7 +22,7 @@ Get a list of Metrics API supported blockchains. This endpoint is paginated and ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -44,8 +44,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsList } from "@avalanche-sdk/devtools/funcs/metricsChainsList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsList } from "@avalanche-sdk/chainkit/funcs/metricsChainsList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -104,7 +104,7 @@ Get chain information for Metrics API supported blockchain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -124,8 +124,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsGet } from "@avalanche-sdk/devtools/funcs/metricsChainsGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsGet } from "@avalanche-sdk/chainkit/funcs/metricsChainsGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -216,7 +216,7 @@ All metrics are updated several times every hour. Each metric data point has a ` ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -244,8 +244,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsGetMetrics } from "@avalanche-sdk/devtools/funcs/metricsChainsGetMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsGetMetrics } from "@avalanche-sdk/chainkit/funcs/metricsChainsGetMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -310,7 +310,7 @@ Gets teleporter metrics for an EVM chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -332,8 +332,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsGetTeleporterMetrics } from "@avalanche-sdk/devtools/funcs/metricsChainsGetTeleporterMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsGetTeleporterMetrics } from "@avalanche-sdk/chainkit/funcs/metricsChainsGetTeleporterMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -392,7 +392,7 @@ Gets the rolling window metrics for an EVM chain for the last hour, day, month, ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -414,8 +414,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsGetRollingWindowMetrics } from "@avalanche-sdk/devtools/funcs/metricsChainsGetRollingWindowMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsGetRollingWindowMetrics } from "@avalanche-sdk/chainkit/funcs/metricsChainsGetRollingWindowMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -474,7 +474,7 @@ Get list of NFT holders and number of NFTs held by contract address. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -499,8 +499,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsListNftHolders } from "@avalanche-sdk/devtools/funcs/metricsChainsListNftHolders.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsListNftHolders } from "@avalanche-sdk/chainkit/funcs/metricsChainsListNftHolders.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -562,7 +562,7 @@ Get list of addresses and their latest balances that have held more than a certa ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -590,8 +590,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsListTokenHoldersAboveThreshold } from "@avalanche-sdk/devtools/funcs/metricsChainsListTokenHoldersAboveThreshold.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsListTokenHoldersAboveThreshold } from "@avalanche-sdk/chainkit/funcs/metricsChainsListTokenHoldersAboveThreshold.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -656,7 +656,7 @@ Get list of addresses and their net bridged amounts that have bridged more than ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -679,8 +679,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsChainsListBTCbBridgersAboveThreshold } from "@avalanche-sdk/devtools/funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsChainsListBTCbBridgersAboveThreshold } from "@avalanche-sdk/chainkit/funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/networks/README.md b/chainkit/docs/sdks/networks/README.md similarity index 97% rename from devtools/docs/sdks/networks/README.md rename to chainkit/docs/sdks/networks/README.md index 1e7977fa..08607f5d 100644 --- a/devtools/docs/sdks/networks/README.md +++ b/chainkit/docs/sdks/networks/README.md @@ -15,7 +15,7 @@ Gets staking metrics for a given subnet. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -42,8 +42,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsNetworksGetStakingMetrics } from "@avalanche-sdk/devtools/funcs/metricsNetworksGetStakingMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsNetworksGetStakingMetrics } from "@avalanche-sdk/chainkit/funcs/metricsNetworksGetStakingMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/nfts/README.md b/chainkit/docs/sdks/nfts/README.md similarity index 97% rename from devtools/docs/sdks/nfts/README.md rename to chainkit/docs/sdks/nfts/README.md index 2be6b380..2adc5791 100644 --- a/devtools/docs/sdks/nfts/README.md +++ b/chainkit/docs/sdks/nfts/README.md @@ -17,7 +17,7 @@ Triggers reindexing of token metadata for an NFT token. Reindexing can only be c ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -40,8 +40,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataNftsReindex } from "@avalanche-sdk/devtools/funcs/dataNftsReindex.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataNftsReindex } from "@avalanche-sdk/chainkit/funcs/dataNftsReindex.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -101,7 +101,7 @@ Lists tokens for an NFT contract. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -125,8 +125,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataNftsList } from "@avalanche-sdk/devtools/funcs/dataNftsList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataNftsList } from "@avalanche-sdk/chainkit/funcs/dataNftsList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -187,7 +187,7 @@ Gets token details for a specific token of an NFT contract. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ chainId: "43114", @@ -210,8 +210,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataNftsGet } from "@avalanche-sdk/devtools/funcs/dataNftsGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataNftsGet } from "@avalanche-sdk/chainkit/funcs/dataNftsGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/operations/README.md b/chainkit/docs/sdks/operations/README.md similarity index 97% rename from devtools/docs/sdks/operations/README.md rename to chainkit/docs/sdks/operations/README.md index fd583d4a..921d3401 100644 --- a/devtools/docs/sdks/operations/README.md +++ b/chainkit/docs/sdks/operations/README.md @@ -16,7 +16,7 @@ Gets operation details for the given operation id. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -36,8 +36,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataOperationsGetResult } from "@avalanche-sdk/devtools/funcs/dataOperationsGetResult.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataOperationsGetResult } from "@avalanche-sdk/chainkit/funcs/dataOperationsGetResult.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -96,7 +96,7 @@ The transaction export operation runs asynchronously in the background. The stat ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -123,8 +123,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataOperationsExportTransactions } from "@avalanche-sdk/devtools/funcs/dataOperationsExportTransactions.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataOperationsExportTransactions } from "@avalanche-sdk/chainkit/funcs/dataOperationsExportTransactions.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/primarynetwork/README.md b/chainkit/docs/sdks/primarynetwork/README.md similarity index 97% rename from devtools/docs/sdks/primarynetwork/README.md rename to chainkit/docs/sdks/primarynetwork/README.md index fa091f73..7c6817ae 100644 --- a/devtools/docs/sdks/primarynetwork/README.md +++ b/chainkit/docs/sdks/primarynetwork/README.md @@ -25,7 +25,7 @@ Gets asset details corresponding to the given asset id on the X-Chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -48,8 +48,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetAssetDetails } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetAssetDetails.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetAssetDetails } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetAssetDetails.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -109,7 +109,7 @@ Returns Primary Network chains that each address has touched in the form of an a ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -131,8 +131,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetChainIdsForAddresses } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetChainIdsForAddresses } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -191,7 +191,7 @@ Gets network details such as validator and delegator stats. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -211,8 +211,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetNetworkDetails } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetNetworkDetails.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetNetworkDetails } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetNetworkDetails.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -269,7 +269,7 @@ Lists all blockchains registered on the network. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -294,8 +294,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkListBlockchains } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListBlockchains.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkListBlockchains } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListBlockchains.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -357,7 +357,7 @@ Get details of the blockchain registered on the network. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -379,8 +379,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetBlockchainById } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetBlockchainById.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetBlockchainById } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetBlockchainById.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -439,7 +439,7 @@ Lists all subnets registered on the network. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -464,8 +464,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkListSubnets } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListSubnets.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkListSubnets } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListSubnets.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -527,7 +527,7 @@ Get details of the Subnet registered on the network. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -549,8 +549,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetSubnetById } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetSubnetById.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetSubnetById } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetSubnetById.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -609,7 +609,7 @@ Lists details for validators. By default, returns details for all validators. T ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -644,8 +644,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkListValidators } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListValidators.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkListValidators } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListValidators.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -717,7 +717,7 @@ List validator details for a single validator. Filterable by validation status. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -743,8 +743,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkGetValidatorDetails } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetValidatorDetails.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkGetValidatorDetails } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetValidatorDetails.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -807,7 +807,7 @@ Lists details for delegators. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -834,8 +834,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkListDelegators } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListDelegators.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkListDelegators } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListDelegators.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -899,7 +899,7 @@ Lists details for L1 validators. By default, returns details for all active L1 v ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -925,8 +925,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkListL1Validators } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListL1Validators.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkListL1Validators } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListL1Validators.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/primarynetworkbalances/README.md b/chainkit/docs/sdks/primarynetworkbalances/README.md similarity index 97% rename from devtools/docs/sdks/primarynetworkbalances/README.md rename to chainkit/docs/sdks/primarynetworkbalances/README.md index 789d12f3..b0c0fa00 100644 --- a/devtools/docs/sdks/primarynetworkbalances/README.md +++ b/chainkit/docs/sdks/primarynetworkbalances/README.md @@ -17,7 +17,7 @@ C-Chain balances returned are only the shared atomic memory balance. For EVM bal ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -41,8 +41,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkBalancesListByAddresses } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBalancesListByAddresses.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkBalancesListByAddresses } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBalancesListByAddresses.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/primarynetworkblocks/README.md b/chainkit/docs/sdks/primarynetworkblocks/README.md similarity index 97% rename from devtools/docs/sdks/primarynetworkblocks/README.md rename to chainkit/docs/sdks/primarynetworkblocks/README.md index 0d92e9fb..7f012a00 100644 --- a/devtools/docs/sdks/primarynetworkblocks/README.md +++ b/chainkit/docs/sdks/primarynetworkblocks/README.md @@ -17,7 +17,7 @@ Gets a block by block height or block hash on one of the Primary Network chains. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -40,8 +40,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkBlocksGet } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkBlocksGet } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -101,7 +101,7 @@ Lists the latest blocks proposed by a given NodeID on one of the Primary Network ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -128,8 +128,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkBlocksListByNodeId } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksListByNodeId.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkBlocksListByNodeId } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksListByNodeId.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -193,7 +193,7 @@ Lists latest blocks on one of the Primary Network chains. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -219,8 +219,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkBlocksListLatest } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksListLatest.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkBlocksListLatest } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksListLatest.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/primarynetworktransactions/README.md b/chainkit/docs/sdks/primarynetworktransactions/README.md similarity index 97% rename from devtools/docs/sdks/primarynetworktransactions/README.md rename to chainkit/docs/sdks/primarynetworktransactions/README.md index bf2e168d..bcfc35f5 100644 --- a/devtools/docs/sdks/primarynetworktransactions/README.md +++ b/chainkit/docs/sdks/primarynetworktransactions/README.md @@ -18,7 +18,7 @@ Gets the details of a single transaction on one of the Primary Network chains. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -41,8 +41,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkTransactionsGet } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkTransactionsGet } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -108,7 +108,7 @@ Given that each transaction may return a large number of UTXO objects, bounded o ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -139,8 +139,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkTransactionsListLatest } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListLatest.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkTransactionsListLatest } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListLatest.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -208,7 +208,7 @@ Lists active staking transactions on the P-Chain for the supplied addresses. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -239,8 +239,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkTransactionsListActiveStakingTransactions } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -308,7 +308,7 @@ Lists asset transactions corresponding to the given asset id on the X-Chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -338,8 +338,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkTransactionsListAssetTransactions } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkTransactionsListAssetTransactions } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/rewards/README.md b/chainkit/docs/sdks/rewards/README.md similarity index 97% rename from devtools/docs/sdks/rewards/README.md rename to chainkit/docs/sdks/rewards/README.md index 0b68a6c3..c6108fa6 100644 --- a/devtools/docs/sdks/rewards/README.md +++ b/chainkit/docs/sdks/rewards/README.md @@ -16,7 +16,7 @@ Lists pending rewards on the Primary Network for the supplied addresses. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -42,8 +42,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkRewardsListPendingRewards } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkRewardsListPendingRewards } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -106,7 +106,7 @@ Lists historical rewards on the Primary Network for the supplied addresses. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -133,8 +133,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkRewardsListHistoricalRewards } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkRewardsListHistoricalRewards } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/signatureaggregator/README.md b/chainkit/docs/sdks/signatureaggregator/README.md similarity index 98% rename from devtools/docs/sdks/signatureaggregator/README.md rename to chainkit/docs/sdks/signatureaggregator/README.md index 062182b8..069b4efb 100644 --- a/devtools/docs/sdks/signatureaggregator/README.md +++ b/chainkit/docs/sdks/signatureaggregator/README.md @@ -16,7 +16,7 @@ Aggregates Signatures for a Warp message from Subnet validators. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -43,8 +43,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataSignatureAggregatorAggregate } from "@avalanche-sdk/devtools/funcs/dataSignatureAggregatorAggregate.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataSignatureAggregatorAggregate } from "@avalanche-sdk/chainkit/funcs/dataSignatureAggregatorAggregate.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -108,7 +108,7 @@ Get Aggregated Signatures for a P-Chain L1 related Warp Message. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -130,8 +130,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataSignatureAggregatorGet } from "@avalanche-sdk/devtools/funcs/dataSignatureAggregatorGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataSignatureAggregatorGet } from "@avalanche-sdk/chainkit/funcs/dataSignatureAggregatorGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/subnets/README.md b/chainkit/docs/sdks/subnets/README.md similarity index 97% rename from devtools/docs/sdks/subnets/README.md rename to chainkit/docs/sdks/subnets/README.md index 1d8688ac..147483b7 100644 --- a/devtools/docs/sdks/subnets/README.md +++ b/chainkit/docs/sdks/subnets/README.md @@ -15,7 +15,7 @@ Get list of addresses and AddValidatorTx timestamps set to receive awards for va ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -41,8 +41,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { metricsSubnetsGetValidators } from "@avalanche-sdk/devtools/funcs/metricsSubnetsGetValidators.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { metricsSubnetsGetValidators } from "@avalanche-sdk/chainkit/funcs/metricsSubnetsGetValidators.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/teleporter/README.md b/chainkit/docs/sdks/teleporter/README.md similarity index 97% rename from devtools/docs/sdks/teleporter/README.md rename to chainkit/docs/sdks/teleporter/README.md index 084d3d9f..488fef92 100644 --- a/devtools/docs/sdks/teleporter/README.md +++ b/chainkit/docs/sdks/teleporter/README.md @@ -27,7 +27,7 @@ ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -47,8 +47,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataTeleporterGetTeleporterMessage } from "@avalanche-sdk/devtools/funcs/dataTeleporterGetTeleporterMessage.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataTeleporterGetTeleporterMessage } from "@avalanche-sdk/chainkit/funcs/dataTeleporterGetTeleporterMessage.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -109,7 +109,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -135,8 +135,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataTeleporterListTeleporterMessages } from "@avalanche-sdk/devtools/funcs/dataTeleporterListTeleporterMessages.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataTeleporterListTeleporterMessages } from "@avalanche-sdk/chainkit/funcs/dataTeleporterListTeleporterMessages.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -203,7 +203,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -224,8 +224,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataTeleporterListTeleporterMessagesByAddress } from "@avalanche-sdk/devtools/funcs/dataTeleporterListTeleporterMessagesByAddress.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataTeleporterListTeleporterMessagesByAddress } from "@avalanche-sdk/chainkit/funcs/dataTeleporterListTeleporterMessagesByAddress.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/usagemetrics/README.md b/chainkit/docs/sdks/usagemetrics/README.md similarity index 97% rename from devtools/docs/sdks/usagemetrics/README.md rename to chainkit/docs/sdks/usagemetrics/README.md index 8cfc06d3..629ecec5 100644 --- a/devtools/docs/sdks/usagemetrics/README.md +++ b/chainkit/docs/sdks/usagemetrics/README.md @@ -20,7 +20,7 @@ Gets metrics for Data API usage over a specified time interval aggregated at the ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -43,8 +43,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataUsageMetricsGetUsage } from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetUsage.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataUsageMetricsGetUsage } from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetUsage.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -104,7 +104,7 @@ Gets logs for requests made by client over a specified time interval for a speci ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -127,8 +127,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataUsageMetricsGetLogs } from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetLogs.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataUsageMetricsGetLogs } from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetLogs.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -188,7 +188,7 @@ Gets metrics for public Subnet RPC usage over a specified time interval aggregat ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -211,8 +211,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataUsageMetricsGetSubnetRpcUsage } from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetSubnetRpcUsage.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataUsageMetricsGetSubnetRpcUsage } from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetSubnetRpcUsage.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -276,7 +276,7 @@ run(); ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -299,8 +299,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataUsageMetricsGetRpcUsageMetrics } from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataUsageMetricsGetRpcUsageMetrics } from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/utxos/README.md b/chainkit/docs/sdks/utxos/README.md similarity index 97% rename from devtools/docs/sdks/utxos/README.md rename to chainkit/docs/sdks/utxos/README.md index f2873964..a1632a6d 100644 --- a/devtools/docs/sdks/utxos/README.md +++ b/chainkit/docs/sdks/utxos/README.md @@ -15,7 +15,7 @@ Lists UTXOs on one of the Primary Network chains for the supplied addresses. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -41,8 +41,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkUtxosListByAddresses } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkUtxosListByAddresses.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkUtxosListByAddresses } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkUtxosListByAddresses.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/vertices/README.md b/chainkit/docs/sdks/vertices/README.md similarity index 97% rename from devtools/docs/sdks/vertices/README.md rename to chainkit/docs/sdks/vertices/README.md index e50eeeb5..29441283 100644 --- a/devtools/docs/sdks/vertices/README.md +++ b/chainkit/docs/sdks/vertices/README.md @@ -17,7 +17,7 @@ Lists latest vertices on the X-Chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -41,8 +41,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkVerticesListLatest } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesListLatest.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkVerticesListLatest } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesListLatest.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -103,7 +103,7 @@ Gets a single vertex on the X-Chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -126,8 +126,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkVerticesGetByHash } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesGetByHash.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkVerticesGetByHash } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesGetByHash.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -187,7 +187,7 @@ Lists vertices at the given vertex height on the X-Chain. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", @@ -213,8 +213,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { dataPrimaryNetworkVerticesListByHeight } from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesListByHeight.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataPrimaryNetworkVerticesListByHeight } from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesListByHeight.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/docs/sdks/webhooks/README.md b/chainkit/docs/sdks/webhooks/README.md similarity index 97% rename from devtools/docs/sdks/webhooks/README.md rename to chainkit/docs/sdks/webhooks/README.md index 15a71507..65a18066 100644 --- a/devtools/docs/sdks/webhooks/README.md +++ b/chainkit/docs/sdks/webhooks/README.md @@ -21,7 +21,7 @@ Lists webhooks for the user. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -43,8 +43,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksList } from "@avalanche-sdk/devtools/funcs/webhooksList.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksList } from "@avalanche-sdk/chainkit/funcs/webhooksList.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -103,7 +103,7 @@ Create a new webhook. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -133,8 +133,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksCreate } from "@avalanche-sdk/devtools/funcs/webhooksCreate.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksCreate } from "@avalanche-sdk/chainkit/funcs/webhooksCreate.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -201,7 +201,7 @@ Retrieves a webhook by ID. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -221,8 +221,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksGet } from "@avalanche-sdk/devtools/funcs/webhooksGet.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksGet } from "@avalanche-sdk/chainkit/funcs/webhooksGet.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -279,7 +279,7 @@ Deactivates a webhook by ID. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -299,8 +299,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksDeactivate } from "@avalanche-sdk/devtools/funcs/webhooksDeactivate.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksDeactivate } from "@avalanche-sdk/chainkit/funcs/webhooksDeactivate.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -357,7 +357,7 @@ Updates an existing webhook. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -378,8 +378,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksUpdate } from "@avalanche-sdk/devtools/funcs/webhooksUpdate.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksUpdate } from "@avalanche-sdk/chainkit/funcs/webhooksUpdate.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -437,7 +437,7 @@ Generates a new shared secret or rotate an existing one. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -455,8 +455,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksGenerateOrRotateSharedSecret } from "@avalanche-sdk/devtools/funcs/webhooksGenerateOrRotateSharedSecret.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksGenerateOrRotateSharedSecret } from "@avalanche-sdk/chainkit/funcs/webhooksGenerateOrRotateSharedSecret.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -510,7 +510,7 @@ Get a previously generated shared secret. ```typescript -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); @@ -528,8 +528,8 @@ run(); The standalone function version of this method: ```typescript -import { AvalancheCore } from "@avalanche-sdk/devtools/core.js"; -import { webhooksGetSharedSecret } from "@avalanche-sdk/devtools/funcs/webhooksGetSharedSecret.js"; +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { webhooksGetSharedSecret } from "@avalanche-sdk/chainkit/funcs/webhooksGetSharedSecret.js"; // Use `AvalancheCore` for best tree-shaking performance. // You can create one instance of it to use across an application. diff --git a/devtools/eslint.config.mjs b/chainkit/eslint.config.mjs similarity index 100% rename from devtools/eslint.config.mjs rename to chainkit/eslint.config.mjs diff --git a/devtools/examples/.env.template b/chainkit/examples/.env.template similarity index 66% rename from devtools/examples/.env.template rename to chainkit/examples/.env.template index 72831020..3a8447d8 100644 --- a/devtools/examples/.env.template +++ b/chainkit/examples/.env.template @@ -1,3 +1,3 @@ -# @avalanche-sdk/devtools SDK Environment Variables +# @avalanche-sdk/chainkit SDK Environment Variables # Copy this file to .env and fill in your actual values # DO NOT commit the .env file to version control diff --git a/devtools/examples/README.md b/chainkit/examples/README.md similarity index 87% rename from devtools/examples/README.md rename to chainkit/examples/README.md index 241cb145..fdd55383 100644 --- a/devtools/examples/README.md +++ b/chainkit/examples/README.md @@ -1,6 +1,6 @@ -# @avalanche-sdk/devtools Examples +# @avalanche-sdk/chainkit Examples -This directory contains example scripts demonstrating how to use the @avalanche-sdk/devtools SDK. +This directory contains example scripts demonstrating how to use the @avalanche-sdk/chainkit SDK. ## Prerequisites diff --git a/devtools/examples/package-lock.json b/chainkit/examples/package-lock.json similarity index 98% rename from devtools/examples/package-lock.json rename to chainkit/examples/package-lock.json index 600e4776..ea7fba20 100644 --- a/devtools/examples/package-lock.json +++ b/chainkit/examples/package-lock.json @@ -1,14 +1,14 @@ { - "name": "@avalanche-sdk/devtools-examples", + "name": "@avalanche-sdk/chainkit-examples", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@avalanche-sdk/devtools-examples", + "name": "@avalanche-sdk/chainkit-examples", "version": "1.0.0", "dependencies": { - "@avalanche-sdk/devtools": "file:.." + "@avalanche-sdk/chainkit": "file:.." }, "devDependencies": { "@types/node": "^20.0.0", @@ -17,8 +17,8 @@ } }, "..": { - "name": "@avalanche-sdk/devtools", - "version": "0.2.2", + "name": "@avalanche-sdk/chainkit", + "version": "0.2.3", "dependencies": { "json-canonicalize": "^1.0.6", "zod": "^3.20.0" @@ -50,7 +50,7 @@ } } }, - "node_modules/@avalanche-sdk/devtools": { + "node_modules/@avalanche-sdk/chainkit": { "resolved": "..", "link": true }, diff --git a/devtools/examples/package.json b/chainkit/examples/package.json similarity index 80% rename from devtools/examples/package.json rename to chainkit/examples/package.json index 92a9bc43..4b3f885e 100644 --- a/devtools/examples/package.json +++ b/chainkit/examples/package.json @@ -1,5 +1,5 @@ { - "name": "@avalanche-sdk/devtools-examples", + "name": "@avalanche-sdk/chainkit-examples", "version": "1.0.0", "private": true, "scripts": { @@ -13,6 +13,6 @@ "tsx": "^4.19.2" }, "dependencies": { - "@avalanche-sdk/devtools": "file:.." + "@avalanche-sdk/chainkit": "file:.." } } \ No newline at end of file diff --git a/devtools/examples/webhooksCreate.example.ts b/chainkit/examples/webhooksCreate.example.ts similarity index 87% rename from devtools/examples/webhooksCreate.example.ts rename to chainkit/examples/webhooksCreate.example.ts index cb026bd5..a2280c37 100644 --- a/devtools/examples/webhooksCreate.example.ts +++ b/chainkit/examples/webhooksCreate.example.ts @@ -5,13 +5,13 @@ import dotenv from "dotenv"; dotenv.config(); /** - * Example usage of the @avalanche-sdk/devtools SDK + * Example usage of the @avalanche-sdk/chainkit SDK * * To run this example from the examples directory: * npm run build && npx tsx webhooksCreate.ts */ -import { Avalanche } from "@avalanche-sdk/devtools"; +import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); diff --git a/devtools/jsr.json b/chainkit/jsr.json similarity index 94% rename from devtools/jsr.json rename to chainkit/jsr.json index ab1a8a0a..c0d46755 100644 --- a/devtools/jsr.json +++ b/chainkit/jsr.json @@ -1,7 +1,7 @@ { - "name": "@avalanche-sdk/devtools", + "name": "@avalanche-sdk/chainkit", "version": "0.0.1", "exports": { ".": "./src/index.ts", diff --git a/devtools/overlays/overlay.yaml b/chainkit/overlays/overlay.yaml similarity index 100% rename from devtools/overlays/overlay.yaml rename to chainkit/overlays/overlay.yaml diff --git a/devtools/package-lock.json b/chainkit/package-lock.json similarity index 99% rename from devtools/package-lock.json rename to chainkit/package-lock.json index c72150b1..ba31db09 100644 --- a/devtools/package-lock.json +++ b/chainkit/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@avalanche-sdk/devtools", - "version": "0.2.2", + "name": "@avalanche-sdk/chainkit", + "version": "0.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@avalanche-sdk/devtools", - "version": "0.2.2", + "name": "@avalanche-sdk/chainkit", + "version": "0.2.3", "dependencies": { "json-canonicalize": "^1.0.6", "zod": "^3.20.0" diff --git a/devtools/package.json b/chainkit/package.json similarity index 87% rename from devtools/package.json rename to chainkit/package.json index b38f92f0..b8b24824 100644 --- a/devtools/package.json +++ b/chainkit/package.json @@ -1,15 +1,14 @@ { - "name": "@avalanche-sdk/devtools", - "version": "0.2.2", + "name": "@avalanche-sdk/chainkit", + "version": "0.2.3", "author": "Avacloud", - "license": "BSD-3-Clause", "type": "module", "bin": { "mcp": "bin/mcp-server.js" }, "tshy": { "sourceDialects": [ - "@avalanche-sdk/devtools/source" + "@avalanche-sdk/chainkit/source" ], "exports": { ".": "./src/index.ts", @@ -64,7 +63,7 @@ "exports": { ".": { "import": { - "@avalanche-sdk/devtools/source": "./src/index.ts", + "@avalanche-sdk/chainkit/source": "./src/index.ts", "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, @@ -76,7 +75,7 @@ "./package.json": "./package.json", "./types": { "import": { - "@avalanche-sdk/devtools/source": "./src/types/index.ts", + "@avalanche-sdk/chainkit/source": "./src/types/index.ts", "types": "./dist/esm/types/index.d.ts", "default": "./dist/esm/types/index.js" }, @@ -87,7 +86,7 @@ }, "./models/errors": { "import": { - "@avalanche-sdk/devtools/source": "./src/models/errors/index.ts", + "@avalanche-sdk/chainkit/source": "./src/models/errors/index.ts", "types": "./dist/esm/models/errors/index.d.ts", "default": "./dist/esm/models/errors/index.js" }, @@ -98,7 +97,7 @@ }, "./models/components": { "import": { - "@avalanche-sdk/devtools/source": "./src/models/components/index.ts", + "@avalanche-sdk/chainkit/source": "./src/models/components/index.ts", "types": "./dist/esm/models/components/index.d.ts", "default": "./dist/esm/models/components/index.js" }, @@ -109,7 +108,7 @@ }, "./models/operations": { "import": { - "@avalanche-sdk/devtools/source": "./src/models/operations/index.ts", + "@avalanche-sdk/chainkit/source": "./src/models/operations/index.ts", "types": "./dist/esm/models/operations/index.d.ts", "default": "./dist/esm/models/operations/index.js" }, @@ -120,7 +119,7 @@ }, "./*.js": { "import": { - "@avalanche-sdk/devtools/source": "./src/*.ts", + "@avalanche-sdk/chainkit/source": "./src/*.ts", "types": "./dist/esm/*.d.ts", "default": "./dist/esm/*.js" }, @@ -131,7 +130,7 @@ }, "./*": { "import": { - "@avalanche-sdk/devtools/source": "./src/*.ts", + "@avalanche-sdk/chainkit/source": "./src/*.ts", "types": "./dist/esm/*.d.ts", "default": "./dist/esm/*.js" }, diff --git a/devtools/src/core.ts b/chainkit/src/core.ts similarity index 100% rename from devtools/src/core.ts rename to chainkit/src/core.ts diff --git a/devtools/src/funcs/dataEvmAddressBalancesGetNative.ts b/chainkit/src/funcs/dataEvmAddressBalancesGetNative.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressBalancesGetNative.ts rename to chainkit/src/funcs/dataEvmAddressBalancesGetNative.ts diff --git a/devtools/src/funcs/dataEvmAddressBalancesListCollectibles.ts b/chainkit/src/funcs/dataEvmAddressBalancesListCollectibles.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressBalancesListCollectibles.ts rename to chainkit/src/funcs/dataEvmAddressBalancesListCollectibles.ts diff --git a/devtools/src/funcs/dataEvmAddressBalancesListErc1155.ts b/chainkit/src/funcs/dataEvmAddressBalancesListErc1155.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressBalancesListErc1155.ts rename to chainkit/src/funcs/dataEvmAddressBalancesListErc1155.ts diff --git a/devtools/src/funcs/dataEvmAddressBalancesListErc20.ts b/chainkit/src/funcs/dataEvmAddressBalancesListErc20.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressBalancesListErc20.ts rename to chainkit/src/funcs/dataEvmAddressBalancesListErc20.ts diff --git a/devtools/src/funcs/dataEvmAddressBalancesListErc721.ts b/chainkit/src/funcs/dataEvmAddressBalancesListErc721.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressBalancesListErc721.ts rename to chainkit/src/funcs/dataEvmAddressBalancesListErc721.ts diff --git a/devtools/src/funcs/dataEvmAddressChainsList.ts b/chainkit/src/funcs/dataEvmAddressChainsList.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressChainsList.ts rename to chainkit/src/funcs/dataEvmAddressChainsList.ts diff --git a/devtools/src/funcs/dataEvmAddressContractsListDeployments.ts b/chainkit/src/funcs/dataEvmAddressContractsListDeployments.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressContractsListDeployments.ts rename to chainkit/src/funcs/dataEvmAddressContractsListDeployments.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsList.ts b/chainkit/src/funcs/dataEvmAddressTransactionsList.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsList.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsList.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsListErc1155.ts b/chainkit/src/funcs/dataEvmAddressTransactionsListErc1155.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsListErc1155.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsListErc1155.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsListErc20.ts b/chainkit/src/funcs/dataEvmAddressTransactionsListErc20.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsListErc20.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsListErc20.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsListErc721.ts b/chainkit/src/funcs/dataEvmAddressTransactionsListErc721.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsListErc721.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsListErc721.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsListInternal.ts b/chainkit/src/funcs/dataEvmAddressTransactionsListInternal.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsListInternal.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsListInternal.ts diff --git a/devtools/src/funcs/dataEvmAddressTransactionsListNative.ts b/chainkit/src/funcs/dataEvmAddressTransactionsListNative.ts similarity index 100% rename from devtools/src/funcs/dataEvmAddressTransactionsListNative.ts rename to chainkit/src/funcs/dataEvmAddressTransactionsListNative.ts diff --git a/devtools/src/funcs/dataEvmBlocksGet.ts b/chainkit/src/funcs/dataEvmBlocksGet.ts similarity index 100% rename from devtools/src/funcs/dataEvmBlocksGet.ts rename to chainkit/src/funcs/dataEvmBlocksGet.ts diff --git a/devtools/src/funcs/dataEvmBlocksListLatest.ts b/chainkit/src/funcs/dataEvmBlocksListLatest.ts similarity index 100% rename from devtools/src/funcs/dataEvmBlocksListLatest.ts rename to chainkit/src/funcs/dataEvmBlocksListLatest.ts diff --git a/devtools/src/funcs/dataEvmBlocksListLatestAllChains.ts b/chainkit/src/funcs/dataEvmBlocksListLatestAllChains.ts similarity index 100% rename from devtools/src/funcs/dataEvmBlocksListLatestAllChains.ts rename to chainkit/src/funcs/dataEvmBlocksListLatestAllChains.ts diff --git a/devtools/src/funcs/dataEvmBlocksListTransactions.ts b/chainkit/src/funcs/dataEvmBlocksListTransactions.ts similarity index 100% rename from devtools/src/funcs/dataEvmBlocksListTransactions.ts rename to chainkit/src/funcs/dataEvmBlocksListTransactions.ts diff --git a/devtools/src/funcs/dataEvmChainsGet.ts b/chainkit/src/funcs/dataEvmChainsGet.ts similarity index 100% rename from devtools/src/funcs/dataEvmChainsGet.ts rename to chainkit/src/funcs/dataEvmChainsGet.ts diff --git a/devtools/src/funcs/dataEvmChainsGetAddressChains.ts b/chainkit/src/funcs/dataEvmChainsGetAddressChains.ts similarity index 100% rename from devtools/src/funcs/dataEvmChainsGetAddressChains.ts rename to chainkit/src/funcs/dataEvmChainsGetAddressChains.ts diff --git a/devtools/src/funcs/dataEvmChainsList.ts b/chainkit/src/funcs/dataEvmChainsList.ts similarity index 100% rename from devtools/src/funcs/dataEvmChainsList.ts rename to chainkit/src/funcs/dataEvmChainsList.ts diff --git a/devtools/src/funcs/dataEvmChainsListAllLatestBlocks.ts b/chainkit/src/funcs/dataEvmChainsListAllLatestBlocks.ts similarity index 100% rename from devtools/src/funcs/dataEvmChainsListAllLatestBlocks.ts rename to chainkit/src/funcs/dataEvmChainsListAllLatestBlocks.ts diff --git a/devtools/src/funcs/dataEvmChainsListAllLatestTransactions.ts b/chainkit/src/funcs/dataEvmChainsListAllLatestTransactions.ts similarity index 100% rename from devtools/src/funcs/dataEvmChainsListAllLatestTransactions.ts rename to chainkit/src/funcs/dataEvmChainsListAllLatestTransactions.ts diff --git a/devtools/src/funcs/dataEvmContractsGetDeploymentTransaction.ts b/chainkit/src/funcs/dataEvmContractsGetDeploymentTransaction.ts similarity index 100% rename from devtools/src/funcs/dataEvmContractsGetDeploymentTransaction.ts rename to chainkit/src/funcs/dataEvmContractsGetDeploymentTransaction.ts diff --git a/devtools/src/funcs/dataEvmContractsGetMetadata.ts b/chainkit/src/funcs/dataEvmContractsGetMetadata.ts similarity index 100% rename from devtools/src/funcs/dataEvmContractsGetMetadata.ts rename to chainkit/src/funcs/dataEvmContractsGetMetadata.ts diff --git a/devtools/src/funcs/dataEvmContractsListTransfers.ts b/chainkit/src/funcs/dataEvmContractsListTransfers.ts similarity index 100% rename from devtools/src/funcs/dataEvmContractsListTransfers.ts rename to chainkit/src/funcs/dataEvmContractsListTransfers.ts diff --git a/devtools/src/funcs/dataEvmTransactionsGet.ts b/chainkit/src/funcs/dataEvmTransactionsGet.ts similarity index 100% rename from devtools/src/funcs/dataEvmTransactionsGet.ts rename to chainkit/src/funcs/dataEvmTransactionsGet.ts diff --git a/devtools/src/funcs/dataEvmTransactionsListLatest.ts b/chainkit/src/funcs/dataEvmTransactionsListLatest.ts similarity index 100% rename from devtools/src/funcs/dataEvmTransactionsListLatest.ts rename to chainkit/src/funcs/dataEvmTransactionsListLatest.ts diff --git a/devtools/src/funcs/dataEvmTransactionsListLatestAllChains.ts b/chainkit/src/funcs/dataEvmTransactionsListLatestAllChains.ts similarity index 100% rename from devtools/src/funcs/dataEvmTransactionsListLatestAllChains.ts rename to chainkit/src/funcs/dataEvmTransactionsListLatestAllChains.ts diff --git a/devtools/src/funcs/dataHealthCheck.ts b/chainkit/src/funcs/dataHealthCheck.ts similarity index 100% rename from devtools/src/funcs/dataHealthCheck.ts rename to chainkit/src/funcs/dataHealthCheck.ts diff --git a/devtools/src/funcs/dataIcmGet.ts b/chainkit/src/funcs/dataIcmGet.ts similarity index 100% rename from devtools/src/funcs/dataIcmGet.ts rename to chainkit/src/funcs/dataIcmGet.ts diff --git a/devtools/src/funcs/dataIcmList.ts b/chainkit/src/funcs/dataIcmList.ts similarity index 100% rename from devtools/src/funcs/dataIcmList.ts rename to chainkit/src/funcs/dataIcmList.ts diff --git a/devtools/src/funcs/dataIcmListByAddress.ts b/chainkit/src/funcs/dataIcmListByAddress.ts similarity index 100% rename from devtools/src/funcs/dataIcmListByAddress.ts rename to chainkit/src/funcs/dataIcmListByAddress.ts diff --git a/devtools/src/funcs/dataNftsGet.ts b/chainkit/src/funcs/dataNftsGet.ts similarity index 100% rename from devtools/src/funcs/dataNftsGet.ts rename to chainkit/src/funcs/dataNftsGet.ts diff --git a/devtools/src/funcs/dataNftsList.ts b/chainkit/src/funcs/dataNftsList.ts similarity index 100% rename from devtools/src/funcs/dataNftsList.ts rename to chainkit/src/funcs/dataNftsList.ts diff --git a/devtools/src/funcs/dataNftsReindex.ts b/chainkit/src/funcs/dataNftsReindex.ts similarity index 100% rename from devtools/src/funcs/dataNftsReindex.ts rename to chainkit/src/funcs/dataNftsReindex.ts diff --git a/devtools/src/funcs/dataOperationsExportTransactions.ts b/chainkit/src/funcs/dataOperationsExportTransactions.ts similarity index 100% rename from devtools/src/funcs/dataOperationsExportTransactions.ts rename to chainkit/src/funcs/dataOperationsExportTransactions.ts diff --git a/devtools/src/funcs/dataOperationsGetResult.ts b/chainkit/src/funcs/dataOperationsGetResult.ts similarity index 100% rename from devtools/src/funcs/dataOperationsGetResult.ts rename to chainkit/src/funcs/dataOperationsGetResult.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts b/chainkit/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts rename to chainkit/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkBlocksGet.ts b/chainkit/src/funcs/dataPrimaryNetworkBlocksGet.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkBlocksGet.ts rename to chainkit/src/funcs/dataPrimaryNetworkBlocksGet.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts b/chainkit/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts rename to chainkit/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkBlocksListLatest.ts b/chainkit/src/funcs/dataPrimaryNetworkBlocksListLatest.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkBlocksListLatest.ts rename to chainkit/src/funcs/dataPrimaryNetworkBlocksListLatest.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetAssetDetails.ts b/chainkit/src/funcs/dataPrimaryNetworkGetAssetDetails.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetAssetDetails.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetAssetDetails.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetBlockchainById.ts b/chainkit/src/funcs/dataPrimaryNetworkGetBlockchainById.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetBlockchainById.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetBlockchainById.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts b/chainkit/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts b/chainkit/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetSubnetById.ts b/chainkit/src/funcs/dataPrimaryNetworkGetSubnetById.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetSubnetById.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetSubnetById.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts b/chainkit/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts rename to chainkit/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkListBlockchains.ts b/chainkit/src/funcs/dataPrimaryNetworkListBlockchains.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkListBlockchains.ts rename to chainkit/src/funcs/dataPrimaryNetworkListBlockchains.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkListDelegators.ts b/chainkit/src/funcs/dataPrimaryNetworkListDelegators.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkListDelegators.ts rename to chainkit/src/funcs/dataPrimaryNetworkListDelegators.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkListL1Validators.ts b/chainkit/src/funcs/dataPrimaryNetworkListL1Validators.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkListL1Validators.ts rename to chainkit/src/funcs/dataPrimaryNetworkListL1Validators.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkListSubnets.ts b/chainkit/src/funcs/dataPrimaryNetworkListSubnets.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkListSubnets.ts rename to chainkit/src/funcs/dataPrimaryNetworkListSubnets.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkListValidators.ts b/chainkit/src/funcs/dataPrimaryNetworkListValidators.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkListValidators.ts rename to chainkit/src/funcs/dataPrimaryNetworkListValidators.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts b/chainkit/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts rename to chainkit/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts b/chainkit/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts rename to chainkit/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkTransactionsGet.ts b/chainkit/src/funcs/dataPrimaryNetworkTransactionsGet.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkTransactionsGet.ts rename to chainkit/src/funcs/dataPrimaryNetworkTransactionsGet.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts b/chainkit/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts rename to chainkit/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts b/chainkit/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts rename to chainkit/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts b/chainkit/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts rename to chainkit/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts b/chainkit/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts rename to chainkit/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts b/chainkit/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts rename to chainkit/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts b/chainkit/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts rename to chainkit/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts diff --git a/devtools/src/funcs/dataPrimaryNetworkVerticesListLatest.ts b/chainkit/src/funcs/dataPrimaryNetworkVerticesListLatest.ts similarity index 100% rename from devtools/src/funcs/dataPrimaryNetworkVerticesListLatest.ts rename to chainkit/src/funcs/dataPrimaryNetworkVerticesListLatest.ts diff --git a/devtools/src/funcs/dataSignatureAggregatorAggregate.ts b/chainkit/src/funcs/dataSignatureAggregatorAggregate.ts similarity index 100% rename from devtools/src/funcs/dataSignatureAggregatorAggregate.ts rename to chainkit/src/funcs/dataSignatureAggregatorAggregate.ts diff --git a/devtools/src/funcs/dataSignatureAggregatorGet.ts b/chainkit/src/funcs/dataSignatureAggregatorGet.ts similarity index 100% rename from devtools/src/funcs/dataSignatureAggregatorGet.ts rename to chainkit/src/funcs/dataSignatureAggregatorGet.ts diff --git a/devtools/src/funcs/dataTeleporterGetTeleporterMessage.ts b/chainkit/src/funcs/dataTeleporterGetTeleporterMessage.ts similarity index 100% rename from devtools/src/funcs/dataTeleporterGetTeleporterMessage.ts rename to chainkit/src/funcs/dataTeleporterGetTeleporterMessage.ts diff --git a/devtools/src/funcs/dataTeleporterListTeleporterMessages.ts b/chainkit/src/funcs/dataTeleporterListTeleporterMessages.ts similarity index 100% rename from devtools/src/funcs/dataTeleporterListTeleporterMessages.ts rename to chainkit/src/funcs/dataTeleporterListTeleporterMessages.ts diff --git a/devtools/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts b/chainkit/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts similarity index 100% rename from devtools/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts rename to chainkit/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts diff --git a/devtools/src/funcs/dataUsageMetricsGetLogs.ts b/chainkit/src/funcs/dataUsageMetricsGetLogs.ts similarity index 100% rename from devtools/src/funcs/dataUsageMetricsGetLogs.ts rename to chainkit/src/funcs/dataUsageMetricsGetLogs.ts diff --git a/devtools/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts b/chainkit/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts similarity index 100% rename from devtools/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts rename to chainkit/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts diff --git a/devtools/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts b/chainkit/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts similarity index 100% rename from devtools/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts rename to chainkit/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts diff --git a/devtools/src/funcs/dataUsageMetricsGetUsage.ts b/chainkit/src/funcs/dataUsageMetricsGetUsage.ts similarity index 100% rename from devtools/src/funcs/dataUsageMetricsGetUsage.ts rename to chainkit/src/funcs/dataUsageMetricsGetUsage.ts diff --git a/devtools/src/funcs/metricsChainsGet.ts b/chainkit/src/funcs/metricsChainsGet.ts similarity index 100% rename from devtools/src/funcs/metricsChainsGet.ts rename to chainkit/src/funcs/metricsChainsGet.ts diff --git a/devtools/src/funcs/metricsChainsGetMetrics.ts b/chainkit/src/funcs/metricsChainsGetMetrics.ts similarity index 100% rename from devtools/src/funcs/metricsChainsGetMetrics.ts rename to chainkit/src/funcs/metricsChainsGetMetrics.ts diff --git a/devtools/src/funcs/metricsChainsGetRollingWindowMetrics.ts b/chainkit/src/funcs/metricsChainsGetRollingWindowMetrics.ts similarity index 100% rename from devtools/src/funcs/metricsChainsGetRollingWindowMetrics.ts rename to chainkit/src/funcs/metricsChainsGetRollingWindowMetrics.ts diff --git a/devtools/src/funcs/metricsChainsGetTeleporterMetrics.ts b/chainkit/src/funcs/metricsChainsGetTeleporterMetrics.ts similarity index 100% rename from devtools/src/funcs/metricsChainsGetTeleporterMetrics.ts rename to chainkit/src/funcs/metricsChainsGetTeleporterMetrics.ts diff --git a/devtools/src/funcs/metricsChainsList.ts b/chainkit/src/funcs/metricsChainsList.ts similarity index 100% rename from devtools/src/funcs/metricsChainsList.ts rename to chainkit/src/funcs/metricsChainsList.ts diff --git a/devtools/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts b/chainkit/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts similarity index 100% rename from devtools/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts rename to chainkit/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts diff --git a/devtools/src/funcs/metricsChainsListNftHolders.ts b/chainkit/src/funcs/metricsChainsListNftHolders.ts similarity index 100% rename from devtools/src/funcs/metricsChainsListNftHolders.ts rename to chainkit/src/funcs/metricsChainsListNftHolders.ts diff --git a/devtools/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts b/chainkit/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts similarity index 100% rename from devtools/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts rename to chainkit/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts diff --git a/devtools/src/funcs/metricsHealthCheck.ts b/chainkit/src/funcs/metricsHealthCheck.ts similarity index 100% rename from devtools/src/funcs/metricsHealthCheck.ts rename to chainkit/src/funcs/metricsHealthCheck.ts diff --git a/devtools/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts b/chainkit/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts similarity index 100% rename from devtools/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts rename to chainkit/src/funcs/metricsL1ValidatorsGetMetricsByNodeId.ts diff --git a/devtools/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts b/chainkit/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts similarity index 100% rename from devtools/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts rename to chainkit/src/funcs/metricsL1ValidatorsGetMetricsBySubnetId.ts diff --git a/devtools/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts b/chainkit/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts similarity index 100% rename from devtools/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts rename to chainkit/src/funcs/metricsL1ValidatorsGetMetricsByValidationId.ts diff --git a/devtools/src/funcs/metricsL1ValidatorsListMetrics.ts b/chainkit/src/funcs/metricsL1ValidatorsListMetrics.ts similarity index 100% rename from devtools/src/funcs/metricsL1ValidatorsListMetrics.ts rename to chainkit/src/funcs/metricsL1ValidatorsListMetrics.ts diff --git a/devtools/src/funcs/metricsNetworksGetStakingMetrics.ts b/chainkit/src/funcs/metricsNetworksGetStakingMetrics.ts similarity index 100% rename from devtools/src/funcs/metricsNetworksGetStakingMetrics.ts rename to chainkit/src/funcs/metricsNetworksGetStakingMetrics.ts diff --git a/devtools/src/funcs/metricsSubnetsGetValidators.ts b/chainkit/src/funcs/metricsSubnetsGetValidators.ts similarity index 100% rename from devtools/src/funcs/metricsSubnetsGetValidators.ts rename to chainkit/src/funcs/metricsSubnetsGetValidators.ts diff --git a/devtools/src/funcs/webhooksAddressesAdd.ts b/chainkit/src/funcs/webhooksAddressesAdd.ts similarity index 100% rename from devtools/src/funcs/webhooksAddressesAdd.ts rename to chainkit/src/funcs/webhooksAddressesAdd.ts diff --git a/devtools/src/funcs/webhooksAddressesList.ts b/chainkit/src/funcs/webhooksAddressesList.ts similarity index 100% rename from devtools/src/funcs/webhooksAddressesList.ts rename to chainkit/src/funcs/webhooksAddressesList.ts diff --git a/devtools/src/funcs/webhooksAddressesRemove.ts b/chainkit/src/funcs/webhooksAddressesRemove.ts similarity index 100% rename from devtools/src/funcs/webhooksAddressesRemove.ts rename to chainkit/src/funcs/webhooksAddressesRemove.ts diff --git a/devtools/src/funcs/webhooksCreate.ts b/chainkit/src/funcs/webhooksCreate.ts similarity index 100% rename from devtools/src/funcs/webhooksCreate.ts rename to chainkit/src/funcs/webhooksCreate.ts diff --git a/devtools/src/funcs/webhooksDeactivate.ts b/chainkit/src/funcs/webhooksDeactivate.ts similarity index 100% rename from devtools/src/funcs/webhooksDeactivate.ts rename to chainkit/src/funcs/webhooksDeactivate.ts diff --git a/devtools/src/funcs/webhooksGenerateOrRotateSharedSecret.ts b/chainkit/src/funcs/webhooksGenerateOrRotateSharedSecret.ts similarity index 100% rename from devtools/src/funcs/webhooksGenerateOrRotateSharedSecret.ts rename to chainkit/src/funcs/webhooksGenerateOrRotateSharedSecret.ts diff --git a/devtools/src/funcs/webhooksGet.ts b/chainkit/src/funcs/webhooksGet.ts similarity index 100% rename from devtools/src/funcs/webhooksGet.ts rename to chainkit/src/funcs/webhooksGet.ts diff --git a/devtools/src/funcs/webhooksGetSharedSecret.ts b/chainkit/src/funcs/webhooksGetSharedSecret.ts similarity index 100% rename from devtools/src/funcs/webhooksGetSharedSecret.ts rename to chainkit/src/funcs/webhooksGetSharedSecret.ts diff --git a/devtools/src/funcs/webhooksList.ts b/chainkit/src/funcs/webhooksList.ts similarity index 100% rename from devtools/src/funcs/webhooksList.ts rename to chainkit/src/funcs/webhooksList.ts diff --git a/devtools/src/funcs/webhooksUpdate.ts b/chainkit/src/funcs/webhooksUpdate.ts similarity index 100% rename from devtools/src/funcs/webhooksUpdate.ts rename to chainkit/src/funcs/webhooksUpdate.ts diff --git a/devtools/src/hooks/hooks.ts b/chainkit/src/hooks/hooks.ts similarity index 100% rename from devtools/src/hooks/hooks.ts rename to chainkit/src/hooks/hooks.ts diff --git a/devtools/src/hooks/index.ts b/chainkit/src/hooks/index.ts similarity index 100% rename from devtools/src/hooks/index.ts rename to chainkit/src/hooks/index.ts diff --git a/devtools/src/hooks/registration.ts b/chainkit/src/hooks/registration.ts similarity index 100% rename from devtools/src/hooks/registration.ts rename to chainkit/src/hooks/registration.ts diff --git a/devtools/src/hooks/types.ts b/chainkit/src/hooks/types.ts similarity index 100% rename from devtools/src/hooks/types.ts rename to chainkit/src/hooks/types.ts diff --git a/devtools/src/index.extras.ts b/chainkit/src/index.extras.ts similarity index 100% rename from devtools/src/index.extras.ts rename to chainkit/src/index.extras.ts diff --git a/devtools/src/index.ts b/chainkit/src/index.ts similarity index 100% rename from devtools/src/index.ts rename to chainkit/src/index.ts diff --git a/devtools/src/lib/base64.ts b/chainkit/src/lib/base64.ts similarity index 100% rename from devtools/src/lib/base64.ts rename to chainkit/src/lib/base64.ts diff --git a/devtools/src/lib/config.ts b/chainkit/src/lib/config.ts similarity index 93% rename from devtools/src/lib/config.ts rename to chainkit/src/lib/config.ts index b19fd998..b2069a23 100644 --- a/devtools/src/lib/config.ts +++ b/chainkit/src/lib/config.ts @@ -72,8 +72,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "0.2.2", - genVersion: "2.674.3", + sdkVersion: "0.2.3", + genVersion: "2.677.3", userAgent: - "speakeasy-sdk/typescript 0.2.2 2.674.3 1.0.0 @avalanche-sdk/devtools", + "speakeasy-sdk/typescript 0.2.3 2.677.3 1.0.0 @avalanche-sdk/chainkit", } as const; diff --git a/devtools/src/lib/dlv.ts b/chainkit/src/lib/dlv.ts similarity index 100% rename from devtools/src/lib/dlv.ts rename to chainkit/src/lib/dlv.ts diff --git a/devtools/src/lib/encodings.ts b/chainkit/src/lib/encodings.ts similarity index 100% rename from devtools/src/lib/encodings.ts rename to chainkit/src/lib/encodings.ts diff --git a/devtools/src/lib/files.ts b/chainkit/src/lib/files.ts similarity index 100% rename from devtools/src/lib/files.ts rename to chainkit/src/lib/files.ts diff --git a/devtools/src/lib/http.ts b/chainkit/src/lib/http.ts similarity index 100% rename from devtools/src/lib/http.ts rename to chainkit/src/lib/http.ts diff --git a/devtools/src/lib/is-plain-object.ts b/chainkit/src/lib/is-plain-object.ts similarity index 100% rename from devtools/src/lib/is-plain-object.ts rename to chainkit/src/lib/is-plain-object.ts diff --git a/devtools/src/lib/logger.ts b/chainkit/src/lib/logger.ts similarity index 100% rename from devtools/src/lib/logger.ts rename to chainkit/src/lib/logger.ts diff --git a/devtools/src/lib/matchers.ts b/chainkit/src/lib/matchers.ts similarity index 100% rename from devtools/src/lib/matchers.ts rename to chainkit/src/lib/matchers.ts diff --git a/devtools/src/lib/primitives.ts b/chainkit/src/lib/primitives.ts similarity index 100% rename from devtools/src/lib/primitives.ts rename to chainkit/src/lib/primitives.ts diff --git a/devtools/src/lib/retries.ts b/chainkit/src/lib/retries.ts similarity index 100% rename from devtools/src/lib/retries.ts rename to chainkit/src/lib/retries.ts diff --git a/devtools/src/lib/schemas.ts b/chainkit/src/lib/schemas.ts similarity index 100% rename from devtools/src/lib/schemas.ts rename to chainkit/src/lib/schemas.ts diff --git a/devtools/src/lib/sdks.ts b/chainkit/src/lib/sdks.ts similarity index 100% rename from devtools/src/lib/sdks.ts rename to chainkit/src/lib/sdks.ts diff --git a/devtools/src/lib/security.ts b/chainkit/src/lib/security.ts similarity index 100% rename from devtools/src/lib/security.ts rename to chainkit/src/lib/security.ts diff --git a/devtools/src/lib/url.ts b/chainkit/src/lib/url.ts similarity index 100% rename from devtools/src/lib/url.ts rename to chainkit/src/lib/url.ts diff --git a/devtools/src/mcp-server/build.mts b/chainkit/src/mcp-server/build.mts similarity index 100% rename from devtools/src/mcp-server/build.mts rename to chainkit/src/mcp-server/build.mts diff --git a/devtools/src/mcp-server/cli.ts b/chainkit/src/mcp-server/cli.ts similarity index 100% rename from devtools/src/mcp-server/cli.ts rename to chainkit/src/mcp-server/cli.ts diff --git a/devtools/src/mcp-server/cli/start/command.ts b/chainkit/src/mcp-server/cli/start/command.ts similarity index 100% rename from devtools/src/mcp-server/cli/start/command.ts rename to chainkit/src/mcp-server/cli/start/command.ts diff --git a/devtools/src/mcp-server/cli/start/impl.ts b/chainkit/src/mcp-server/cli/start/impl.ts similarity index 100% rename from devtools/src/mcp-server/cli/start/impl.ts rename to chainkit/src/mcp-server/cli/start/impl.ts diff --git a/devtools/src/mcp-server/console-logger.ts b/chainkit/src/mcp-server/console-logger.ts similarity index 100% rename from devtools/src/mcp-server/console-logger.ts rename to chainkit/src/mcp-server/console-logger.ts diff --git a/devtools/src/mcp-server/extensions.ts b/chainkit/src/mcp-server/extensions.ts similarity index 100% rename from devtools/src/mcp-server/extensions.ts rename to chainkit/src/mcp-server/extensions.ts diff --git a/devtools/src/mcp-server/mcp-server.ts b/chainkit/src/mcp-server/mcp-server.ts similarity index 94% rename from devtools/src/mcp-server/mcp-server.ts rename to chainkit/src/mcp-server/mcp-server.ts index 9305c64e..43776bed 100644 --- a/devtools/src/mcp-server/mcp-server.ts +++ b/chainkit/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.2.2", + currentVersion: "0.2.3", }, }); diff --git a/devtools/src/mcp-server/prompts.ts b/chainkit/src/mcp-server/prompts.ts similarity index 100% rename from devtools/src/mcp-server/prompts.ts rename to chainkit/src/mcp-server/prompts.ts diff --git a/devtools/src/mcp-server/resources.ts b/chainkit/src/mcp-server/resources.ts similarity index 100% rename from devtools/src/mcp-server/resources.ts rename to chainkit/src/mcp-server/resources.ts diff --git a/devtools/src/mcp-server/scopes.ts b/chainkit/src/mcp-server/scopes.ts similarity index 100% rename from devtools/src/mcp-server/scopes.ts rename to chainkit/src/mcp-server/scopes.ts diff --git a/devtools/src/mcp-server/server.ts b/chainkit/src/mcp-server/server.ts similarity index 99% rename from devtools/src/mcp-server/server.ts rename to chainkit/src/mcp-server/server.ts index 3f51ca5c..80d61a46 100644 --- a/devtools/src/mcp-server/server.ts +++ b/chainkit/src/mcp-server/server.ts @@ -122,7 +122,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Avalanche", - version: "0.2.2", + version: "0.2.3", }); const client = new AvalancheCore({ diff --git a/devtools/src/mcp-server/shared.ts b/chainkit/src/mcp-server/shared.ts similarity index 100% rename from devtools/src/mcp-server/shared.ts rename to chainkit/src/mcp-server/shared.ts diff --git a/devtools/src/mcp-server/tools.ts b/chainkit/src/mcp-server/tools.ts similarity index 100% rename from devtools/src/mcp-server/tools.ts rename to chainkit/src/mcp-server/tools.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts b/chainkit/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressBalancesGetNative.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts b/chainkit/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressBalancesListCollectibles.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts b/chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc1155.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts b/chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc20.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts b/chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressBalancesListErc721.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressChainsList.ts b/chainkit/src/mcp-server/tools/dataEvmAddressChainsList.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressChainsList.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressChainsList.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts b/chainkit/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressContractsListDeployments.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsList.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsList.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsList.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsList.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc1155.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc20.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListErc721.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListInternal.ts diff --git a/devtools/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts b/chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts rename to chainkit/src/mcp-server/tools/dataEvmAddressTransactionsListNative.ts diff --git a/devtools/src/mcp-server/tools/dataEvmBlocksGet.ts b/chainkit/src/mcp-server/tools/dataEvmBlocksGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmBlocksGet.ts rename to chainkit/src/mcp-server/tools/dataEvmBlocksGet.ts diff --git a/devtools/src/mcp-server/tools/dataEvmBlocksListLatest.ts b/chainkit/src/mcp-server/tools/dataEvmBlocksListLatest.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmBlocksListLatest.ts rename to chainkit/src/mcp-server/tools/dataEvmBlocksListLatest.ts diff --git a/devtools/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts b/chainkit/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts rename to chainkit/src/mcp-server/tools/dataEvmBlocksListLatestAllChains.ts diff --git a/devtools/src/mcp-server/tools/dataEvmBlocksListTransactions.ts b/chainkit/src/mcp-server/tools/dataEvmBlocksListTransactions.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmBlocksListTransactions.ts rename to chainkit/src/mcp-server/tools/dataEvmBlocksListTransactions.ts diff --git a/devtools/src/mcp-server/tools/dataEvmChainsGet.ts b/chainkit/src/mcp-server/tools/dataEvmChainsGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmChainsGet.ts rename to chainkit/src/mcp-server/tools/dataEvmChainsGet.ts diff --git a/devtools/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts b/chainkit/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts rename to chainkit/src/mcp-server/tools/dataEvmChainsGetAddressChains.ts diff --git a/devtools/src/mcp-server/tools/dataEvmChainsList.ts b/chainkit/src/mcp-server/tools/dataEvmChainsList.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmChainsList.ts rename to chainkit/src/mcp-server/tools/dataEvmChainsList.ts diff --git a/devtools/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts b/chainkit/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts rename to chainkit/src/mcp-server/tools/dataEvmChainsListAllLatestBlocks.ts diff --git a/devtools/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts b/chainkit/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts rename to chainkit/src/mcp-server/tools/dataEvmChainsListAllLatestTransactions.ts diff --git a/devtools/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts b/chainkit/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts rename to chainkit/src/mcp-server/tools/dataEvmContractsGetDeploymentTransaction.ts diff --git a/devtools/src/mcp-server/tools/dataEvmContractsGetMetadata.ts b/chainkit/src/mcp-server/tools/dataEvmContractsGetMetadata.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmContractsGetMetadata.ts rename to chainkit/src/mcp-server/tools/dataEvmContractsGetMetadata.ts diff --git a/devtools/src/mcp-server/tools/dataEvmContractsListTransfers.ts b/chainkit/src/mcp-server/tools/dataEvmContractsListTransfers.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmContractsListTransfers.ts rename to chainkit/src/mcp-server/tools/dataEvmContractsListTransfers.ts diff --git a/devtools/src/mcp-server/tools/dataEvmTransactionsGet.ts b/chainkit/src/mcp-server/tools/dataEvmTransactionsGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmTransactionsGet.ts rename to chainkit/src/mcp-server/tools/dataEvmTransactionsGet.ts diff --git a/devtools/src/mcp-server/tools/dataEvmTransactionsListLatest.ts b/chainkit/src/mcp-server/tools/dataEvmTransactionsListLatest.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmTransactionsListLatest.ts rename to chainkit/src/mcp-server/tools/dataEvmTransactionsListLatest.ts diff --git a/devtools/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts b/chainkit/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts rename to chainkit/src/mcp-server/tools/dataEvmTransactionsListLatestAllChains.ts diff --git a/devtools/src/mcp-server/tools/dataHealthCheck.ts b/chainkit/src/mcp-server/tools/dataHealthCheck.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataHealthCheck.ts rename to chainkit/src/mcp-server/tools/dataHealthCheck.ts diff --git a/devtools/src/mcp-server/tools/dataIcmGet.ts b/chainkit/src/mcp-server/tools/dataIcmGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataIcmGet.ts rename to chainkit/src/mcp-server/tools/dataIcmGet.ts diff --git a/devtools/src/mcp-server/tools/dataIcmList.ts b/chainkit/src/mcp-server/tools/dataIcmList.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataIcmList.ts rename to chainkit/src/mcp-server/tools/dataIcmList.ts diff --git a/devtools/src/mcp-server/tools/dataIcmListByAddress.ts b/chainkit/src/mcp-server/tools/dataIcmListByAddress.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataIcmListByAddress.ts rename to chainkit/src/mcp-server/tools/dataIcmListByAddress.ts diff --git a/devtools/src/mcp-server/tools/dataNftsGet.ts b/chainkit/src/mcp-server/tools/dataNftsGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataNftsGet.ts rename to chainkit/src/mcp-server/tools/dataNftsGet.ts diff --git a/devtools/src/mcp-server/tools/dataNftsList.ts b/chainkit/src/mcp-server/tools/dataNftsList.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataNftsList.ts rename to chainkit/src/mcp-server/tools/dataNftsList.ts diff --git a/devtools/src/mcp-server/tools/dataNftsReindex.ts b/chainkit/src/mcp-server/tools/dataNftsReindex.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataNftsReindex.ts rename to chainkit/src/mcp-server/tools/dataNftsReindex.ts diff --git a/devtools/src/mcp-server/tools/dataOperationsExportTransactions.ts b/chainkit/src/mcp-server/tools/dataOperationsExportTransactions.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataOperationsExportTransactions.ts rename to chainkit/src/mcp-server/tools/dataOperationsExportTransactions.ts diff --git a/devtools/src/mcp-server/tools/dataOperationsGetResult.ts b/chainkit/src/mcp-server/tools/dataOperationsGetResult.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataOperationsGetResult.ts rename to chainkit/src/mcp-server/tools/dataOperationsGetResult.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkBalancesListByAddresses.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksGet.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksListByNodeId.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkBlocksListLatest.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetAssetDetails.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetBlockchainById.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetChainIdsForAddresses.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetNetworkDetails.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetSubnetById.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkGetValidatorDetails.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkListBlockchains.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkListDelegators.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkListL1Validators.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkListSubnets.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkListValidators.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkRewardsListHistoricalRewards.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkRewardsListPendingRewards.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsGet.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListAssetTransactions.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkTransactionsListLatest.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkUtxosListByAddresses.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesGetByHash.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesListByHeight.ts diff --git a/devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts b/chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts rename to chainkit/src/mcp-server/tools/dataPrimaryNetworkVerticesListLatest.ts diff --git a/devtools/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts b/chainkit/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts rename to chainkit/src/mcp-server/tools/dataSignatureAggregatorAggregate.ts diff --git a/devtools/src/mcp-server/tools/dataSignatureAggregatorGet.ts b/chainkit/src/mcp-server/tools/dataSignatureAggregatorGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataSignatureAggregatorGet.ts rename to chainkit/src/mcp-server/tools/dataSignatureAggregatorGet.ts diff --git a/devtools/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts b/chainkit/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts rename to chainkit/src/mcp-server/tools/dataTeleporterGetTeleporterMessage.ts diff --git a/devtools/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts b/chainkit/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts rename to chainkit/src/mcp-server/tools/dataTeleporterListTeleporterMessages.ts diff --git a/devtools/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts b/chainkit/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts rename to chainkit/src/mcp-server/tools/dataTeleporterListTeleporterMessagesByAddress.ts diff --git a/devtools/src/mcp-server/tools/dataUsageMetricsGetLogs.ts b/chainkit/src/mcp-server/tools/dataUsageMetricsGetLogs.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataUsageMetricsGetLogs.ts rename to chainkit/src/mcp-server/tools/dataUsageMetricsGetLogs.ts diff --git a/devtools/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts b/chainkit/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts rename to chainkit/src/mcp-server/tools/dataUsageMetricsGetRpcUsageMetrics.ts diff --git a/devtools/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts b/chainkit/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts rename to chainkit/src/mcp-server/tools/dataUsageMetricsGetSubnetRpcUsage.ts diff --git a/devtools/src/mcp-server/tools/dataUsageMetricsGetUsage.ts b/chainkit/src/mcp-server/tools/dataUsageMetricsGetUsage.ts similarity index 100% rename from devtools/src/mcp-server/tools/dataUsageMetricsGetUsage.ts rename to chainkit/src/mcp-server/tools/dataUsageMetricsGetUsage.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsGet.ts b/chainkit/src/mcp-server/tools/metricsChainsGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsGet.ts rename to chainkit/src/mcp-server/tools/metricsChainsGet.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsGetMetrics.ts b/chainkit/src/mcp-server/tools/metricsChainsGetMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsGetMetrics.ts rename to chainkit/src/mcp-server/tools/metricsChainsGetMetrics.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts b/chainkit/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts rename to chainkit/src/mcp-server/tools/metricsChainsGetRollingWindowMetrics.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts b/chainkit/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts rename to chainkit/src/mcp-server/tools/metricsChainsGetTeleporterMetrics.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsList.ts b/chainkit/src/mcp-server/tools/metricsChainsList.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsList.ts rename to chainkit/src/mcp-server/tools/metricsChainsList.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts b/chainkit/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts rename to chainkit/src/mcp-server/tools/metricsChainsListBTCbBridgersAboveThreshold.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsListNftHolders.ts b/chainkit/src/mcp-server/tools/metricsChainsListNftHolders.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsListNftHolders.ts rename to chainkit/src/mcp-server/tools/metricsChainsListNftHolders.ts diff --git a/devtools/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts b/chainkit/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts rename to chainkit/src/mcp-server/tools/metricsChainsListTokenHoldersAboveThreshold.ts diff --git a/devtools/src/mcp-server/tools/metricsHealthCheck.ts b/chainkit/src/mcp-server/tools/metricsHealthCheck.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsHealthCheck.ts rename to chainkit/src/mcp-server/tools/metricsHealthCheck.ts diff --git a/devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts b/chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts rename to chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByNodeId.ts diff --git a/devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts b/chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts rename to chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsBySubnetId.ts diff --git a/devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts b/chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts rename to chainkit/src/mcp-server/tools/metricsL1ValidatorsGetMetricsByValidationId.ts diff --git a/devtools/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts b/chainkit/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts rename to chainkit/src/mcp-server/tools/metricsL1ValidatorsListMetrics.ts diff --git a/devtools/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts b/chainkit/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts rename to chainkit/src/mcp-server/tools/metricsNetworksGetStakingMetrics.ts diff --git a/devtools/src/mcp-server/tools/metricsSubnetsGetValidators.ts b/chainkit/src/mcp-server/tools/metricsSubnetsGetValidators.ts similarity index 100% rename from devtools/src/mcp-server/tools/metricsSubnetsGetValidators.ts rename to chainkit/src/mcp-server/tools/metricsSubnetsGetValidators.ts diff --git a/devtools/src/mcp-server/tools/webhooksAddressesAdd.ts b/chainkit/src/mcp-server/tools/webhooksAddressesAdd.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksAddressesAdd.ts rename to chainkit/src/mcp-server/tools/webhooksAddressesAdd.ts diff --git a/devtools/src/mcp-server/tools/webhooksAddressesList.ts b/chainkit/src/mcp-server/tools/webhooksAddressesList.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksAddressesList.ts rename to chainkit/src/mcp-server/tools/webhooksAddressesList.ts diff --git a/devtools/src/mcp-server/tools/webhooksAddressesRemove.ts b/chainkit/src/mcp-server/tools/webhooksAddressesRemove.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksAddressesRemove.ts rename to chainkit/src/mcp-server/tools/webhooksAddressesRemove.ts diff --git a/devtools/src/mcp-server/tools/webhooksCreate.ts b/chainkit/src/mcp-server/tools/webhooksCreate.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksCreate.ts rename to chainkit/src/mcp-server/tools/webhooksCreate.ts diff --git a/devtools/src/mcp-server/tools/webhooksDeactivate.ts b/chainkit/src/mcp-server/tools/webhooksDeactivate.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksDeactivate.ts rename to chainkit/src/mcp-server/tools/webhooksDeactivate.ts diff --git a/devtools/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts b/chainkit/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts rename to chainkit/src/mcp-server/tools/webhooksGenerateOrRotateSharedSecret.ts diff --git a/devtools/src/mcp-server/tools/webhooksGet.ts b/chainkit/src/mcp-server/tools/webhooksGet.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksGet.ts rename to chainkit/src/mcp-server/tools/webhooksGet.ts diff --git a/devtools/src/mcp-server/tools/webhooksGetSharedSecret.ts b/chainkit/src/mcp-server/tools/webhooksGetSharedSecret.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksGetSharedSecret.ts rename to chainkit/src/mcp-server/tools/webhooksGetSharedSecret.ts diff --git a/devtools/src/mcp-server/tools/webhooksList.ts b/chainkit/src/mcp-server/tools/webhooksList.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksList.ts rename to chainkit/src/mcp-server/tools/webhooksList.ts diff --git a/devtools/src/mcp-server/tools/webhooksUpdate.ts b/chainkit/src/mcp-server/tools/webhooksUpdate.ts similarity index 100% rename from devtools/src/mcp-server/tools/webhooksUpdate.ts rename to chainkit/src/mcp-server/tools/webhooksUpdate.ts diff --git a/devtools/src/models/components/accesslistdata.ts b/chainkit/src/models/components/accesslistdata.ts similarity index 100% rename from devtools/src/models/components/accesslistdata.ts rename to chainkit/src/models/components/accesslistdata.ts diff --git a/devtools/src/models/components/activedelegatordetails.ts b/chainkit/src/models/components/activedelegatordetails.ts similarity index 100% rename from devtools/src/models/components/activedelegatordetails.ts rename to chainkit/src/models/components/activedelegatordetails.ts diff --git a/devtools/src/models/components/activevalidatordetails.ts b/chainkit/src/models/components/activevalidatordetails.ts similarity index 100% rename from devtools/src/models/components/activevalidatordetails.ts rename to chainkit/src/models/components/activevalidatordetails.ts diff --git a/devtools/src/models/components/addressactivityeventtype.ts b/chainkit/src/models/components/addressactivityeventtype.ts similarity index 100% rename from devtools/src/models/components/addressactivityeventtype.ts rename to chainkit/src/models/components/addressactivityeventtype.ts diff --git a/devtools/src/models/components/addressactivitymetadata.ts b/chainkit/src/models/components/addressactivitymetadata.ts similarity index 100% rename from devtools/src/models/components/addressactivitymetadata.ts rename to chainkit/src/models/components/addressactivitymetadata.ts diff --git a/devtools/src/models/components/addressdetails.ts b/chainkit/src/models/components/addressdetails.ts similarity index 100% rename from devtools/src/models/components/addressdetails.ts rename to chainkit/src/models/components/addressdetails.ts diff --git a/devtools/src/models/components/addresseschangerequest.ts b/chainkit/src/models/components/addresseschangerequest.ts similarity index 100% rename from devtools/src/models/components/addresseschangerequest.ts rename to chainkit/src/models/components/addresseschangerequest.ts diff --git a/devtools/src/models/components/aggregatedassetamount.ts b/chainkit/src/models/components/aggregatedassetamount.ts similarity index 100% rename from devtools/src/models/components/aggregatedassetamount.ts rename to chainkit/src/models/components/aggregatedassetamount.ts diff --git a/devtools/src/models/components/apifeature.ts b/chainkit/src/models/components/apifeature.ts similarity index 100% rename from devtools/src/models/components/apifeature.ts rename to chainkit/src/models/components/apifeature.ts diff --git a/devtools/src/models/components/assetamount.ts b/chainkit/src/models/components/assetamount.ts similarity index 100% rename from devtools/src/models/components/assetamount.ts rename to chainkit/src/models/components/assetamount.ts diff --git a/devtools/src/models/components/assetwithpriceinfo.ts b/chainkit/src/models/components/assetwithpriceinfo.ts similarity index 100% rename from devtools/src/models/components/assetwithpriceinfo.ts rename to chainkit/src/models/components/assetwithpriceinfo.ts diff --git a/devtools/src/models/components/balanceowner.ts b/chainkit/src/models/components/balanceowner.ts similarity index 100% rename from devtools/src/models/components/balanceowner.ts rename to chainkit/src/models/components/balanceowner.ts diff --git a/devtools/src/models/components/blockchain.ts b/chainkit/src/models/components/blockchain.ts similarity index 100% rename from devtools/src/models/components/blockchain.ts rename to chainkit/src/models/components/blockchain.ts diff --git a/devtools/src/models/components/blockchainid.ts b/chainkit/src/models/components/blockchainid.ts similarity index 100% rename from devtools/src/models/components/blockchainid.ts rename to chainkit/src/models/components/blockchainid.ts diff --git a/devtools/src/models/components/blockchainids.ts b/chainkit/src/models/components/blockchainids.ts similarity index 100% rename from devtools/src/models/components/blockchainids.ts rename to chainkit/src/models/components/blockchainids.ts diff --git a/devtools/src/models/components/blockchaininfo.ts b/chainkit/src/models/components/blockchaininfo.ts similarity index 100% rename from devtools/src/models/components/blockchaininfo.ts rename to chainkit/src/models/components/blockchaininfo.ts diff --git a/devtools/src/models/components/blscredentials.ts b/chainkit/src/models/components/blscredentials.ts similarity index 100% rename from devtools/src/models/components/blscredentials.ts rename to chainkit/src/models/components/blscredentials.ts diff --git a/devtools/src/models/components/cchainatomicbalances.ts b/chainkit/src/models/components/cchainatomicbalances.ts similarity index 100% rename from devtools/src/models/components/cchainatomicbalances.ts rename to chainkit/src/models/components/cchainatomicbalances.ts diff --git a/devtools/src/models/components/cchainexporttransaction.ts b/chainkit/src/models/components/cchainexporttransaction.ts similarity index 100% rename from devtools/src/models/components/cchainexporttransaction.ts rename to chainkit/src/models/components/cchainexporttransaction.ts diff --git a/devtools/src/models/components/cchainimporttransaction.ts b/chainkit/src/models/components/cchainimporttransaction.ts similarity index 100% rename from devtools/src/models/components/cchainimporttransaction.ts rename to chainkit/src/models/components/cchainimporttransaction.ts diff --git a/devtools/src/models/components/cchainsharedassetbalance.ts b/chainkit/src/models/components/cchainsharedassetbalance.ts similarity index 100% rename from devtools/src/models/components/cchainsharedassetbalance.ts rename to chainkit/src/models/components/cchainsharedassetbalance.ts diff --git a/devtools/src/models/components/chain.ts b/chainkit/src/models/components/chain.ts similarity index 100% rename from devtools/src/models/components/chain.ts rename to chainkit/src/models/components/chain.ts diff --git a/devtools/src/models/components/chainaddresschainidmap.ts b/chainkit/src/models/components/chainaddresschainidmap.ts similarity index 100% rename from devtools/src/models/components/chainaddresschainidmap.ts rename to chainkit/src/models/components/chainaddresschainidmap.ts diff --git a/devtools/src/models/components/chainaddresschainidmaplistresponse.ts b/chainkit/src/models/components/chainaddresschainidmaplistresponse.ts similarity index 100% rename from devtools/src/models/components/chainaddresschainidmaplistresponse.ts rename to chainkit/src/models/components/chainaddresschainidmaplistresponse.ts diff --git a/devtools/src/models/components/chaininfo.ts b/chainkit/src/models/components/chaininfo.ts similarity index 100% rename from devtools/src/models/components/chaininfo.ts rename to chainkit/src/models/components/chaininfo.ts diff --git a/devtools/src/models/components/chainmetric.ts b/chainkit/src/models/components/chainmetric.ts similarity index 100% rename from devtools/src/models/components/chainmetric.ts rename to chainkit/src/models/components/chainmetric.ts diff --git a/devtools/src/models/components/chainrollingwindowmetric.ts b/chainkit/src/models/components/chainrollingwindowmetric.ts similarity index 100% rename from devtools/src/models/components/chainrollingwindowmetric.ts rename to chainkit/src/models/components/chainrollingwindowmetric.ts diff --git a/devtools/src/models/components/chainrollingwindowmetricsvalue.ts b/chainkit/src/models/components/chainrollingwindowmetricsvalue.ts similarity index 100% rename from devtools/src/models/components/chainrollingwindowmetricsvalue.ts rename to chainkit/src/models/components/chainrollingwindowmetricsvalue.ts diff --git a/devtools/src/models/components/chainstatus.ts b/chainkit/src/models/components/chainstatus.ts similarity index 100% rename from devtools/src/models/components/chainstatus.ts rename to chainkit/src/models/components/chainstatus.ts diff --git a/devtools/src/models/components/commonbalancetype.ts b/chainkit/src/models/components/commonbalancetype.ts similarity index 100% rename from devtools/src/models/components/commonbalancetype.ts rename to chainkit/src/models/components/commonbalancetype.ts diff --git a/devtools/src/models/components/completeddelegatordetails.ts b/chainkit/src/models/components/completeddelegatordetails.ts similarity index 100% rename from devtools/src/models/components/completeddelegatordetails.ts rename to chainkit/src/models/components/completeddelegatordetails.ts diff --git a/devtools/src/models/components/completedvalidatordetails.ts b/chainkit/src/models/components/completedvalidatordetails.ts similarity index 100% rename from devtools/src/models/components/completedvalidatordetails.ts rename to chainkit/src/models/components/completedvalidatordetails.ts diff --git a/devtools/src/models/components/contractdeploymentdetails.ts b/chainkit/src/models/components/contractdeploymentdetails.ts similarity index 100% rename from devtools/src/models/components/contractdeploymentdetails.ts rename to chainkit/src/models/components/contractdeploymentdetails.ts diff --git a/devtools/src/models/components/createevmtransactionexportrequest.ts b/chainkit/src/models/components/createevmtransactionexportrequest.ts similarity index 100% rename from devtools/src/models/components/createevmtransactionexportrequest.ts rename to chainkit/src/models/components/createevmtransactionexportrequest.ts diff --git a/devtools/src/models/components/createprimarynetworktransactionexportrequest.ts b/chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts similarity index 100% rename from devtools/src/models/components/createprimarynetworktransactionexportrequest.ts rename to chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts diff --git a/devtools/src/models/components/currencycode.ts b/chainkit/src/models/components/currencycode.ts similarity index 100% rename from devtools/src/models/components/currencycode.ts rename to chainkit/src/models/components/currencycode.ts diff --git a/devtools/src/models/components/datalistchainsresponse.ts b/chainkit/src/models/components/datalistchainsresponse.ts similarity index 100% rename from devtools/src/models/components/datalistchainsresponse.ts rename to chainkit/src/models/components/datalistchainsresponse.ts diff --git a/devtools/src/models/components/delegationstatustype.ts b/chainkit/src/models/components/delegationstatustype.ts similarity index 100% rename from devtools/src/models/components/delegationstatustype.ts rename to chainkit/src/models/components/delegationstatustype.ts diff --git a/devtools/src/models/components/delegatorsdetails.ts b/chainkit/src/models/components/delegatorsdetails.ts similarity index 100% rename from devtools/src/models/components/delegatorsdetails.ts rename to chainkit/src/models/components/delegatorsdetails.ts diff --git a/devtools/src/models/components/deliveredicmmessage.ts b/chainkit/src/models/components/deliveredicmmessage.ts similarity index 100% rename from devtools/src/models/components/deliveredicmmessage.ts rename to chainkit/src/models/components/deliveredicmmessage.ts diff --git a/devtools/src/models/components/deliveredsourcenotindexedicmmessage.ts b/chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts similarity index 100% rename from devtools/src/models/components/deliveredsourcenotindexedicmmessage.ts rename to chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts diff --git a/devtools/src/models/components/deliveredsourcenotindexedteleportermessage.ts b/chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts similarity index 100% rename from devtools/src/models/components/deliveredsourcenotindexedteleportermessage.ts rename to chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts diff --git a/devtools/src/models/components/deliveredteleportermessage.ts b/chainkit/src/models/components/deliveredteleportermessage.ts similarity index 100% rename from devtools/src/models/components/deliveredteleportermessage.ts rename to chainkit/src/models/components/deliveredteleportermessage.ts diff --git a/devtools/src/models/components/erc1155contract.ts b/chainkit/src/models/components/erc1155contract.ts similarity index 100% rename from devtools/src/models/components/erc1155contract.ts rename to chainkit/src/models/components/erc1155contract.ts diff --git a/devtools/src/models/components/erc1155token.ts b/chainkit/src/models/components/erc1155token.ts similarity index 100% rename from devtools/src/models/components/erc1155token.ts rename to chainkit/src/models/components/erc1155token.ts diff --git a/devtools/src/models/components/erc1155tokenbalance.ts b/chainkit/src/models/components/erc1155tokenbalance.ts similarity index 100% rename from devtools/src/models/components/erc1155tokenbalance.ts rename to chainkit/src/models/components/erc1155tokenbalance.ts diff --git a/devtools/src/models/components/erc1155tokenmetadata.ts b/chainkit/src/models/components/erc1155tokenmetadata.ts similarity index 100% rename from devtools/src/models/components/erc1155tokenmetadata.ts rename to chainkit/src/models/components/erc1155tokenmetadata.ts diff --git a/devtools/src/models/components/erc1155transfer.ts b/chainkit/src/models/components/erc1155transfer.ts similarity index 100% rename from devtools/src/models/components/erc1155transfer.ts rename to chainkit/src/models/components/erc1155transfer.ts diff --git a/devtools/src/models/components/erc1155transferdetails.ts b/chainkit/src/models/components/erc1155transferdetails.ts similarity index 100% rename from devtools/src/models/components/erc1155transferdetails.ts rename to chainkit/src/models/components/erc1155transferdetails.ts diff --git a/devtools/src/models/components/erc20contract.ts b/chainkit/src/models/components/erc20contract.ts similarity index 100% rename from devtools/src/models/components/erc20contract.ts rename to chainkit/src/models/components/erc20contract.ts diff --git a/devtools/src/models/components/erc20token.ts b/chainkit/src/models/components/erc20token.ts similarity index 100% rename from devtools/src/models/components/erc20token.ts rename to chainkit/src/models/components/erc20token.ts diff --git a/devtools/src/models/components/erc20tokenbalance.ts b/chainkit/src/models/components/erc20tokenbalance.ts similarity index 100% rename from devtools/src/models/components/erc20tokenbalance.ts rename to chainkit/src/models/components/erc20tokenbalance.ts diff --git a/devtools/src/models/components/erc20transfer.ts b/chainkit/src/models/components/erc20transfer.ts similarity index 100% rename from devtools/src/models/components/erc20transfer.ts rename to chainkit/src/models/components/erc20transfer.ts diff --git a/devtools/src/models/components/erc20transferdetails.ts b/chainkit/src/models/components/erc20transferdetails.ts similarity index 100% rename from devtools/src/models/components/erc20transferdetails.ts rename to chainkit/src/models/components/erc20transferdetails.ts diff --git a/devtools/src/models/components/erc721contract.ts b/chainkit/src/models/components/erc721contract.ts similarity index 100% rename from devtools/src/models/components/erc721contract.ts rename to chainkit/src/models/components/erc721contract.ts diff --git a/devtools/src/models/components/erc721token.ts b/chainkit/src/models/components/erc721token.ts similarity index 100% rename from devtools/src/models/components/erc721token.ts rename to chainkit/src/models/components/erc721token.ts diff --git a/devtools/src/models/components/erc721tokenbalance.ts b/chainkit/src/models/components/erc721tokenbalance.ts similarity index 100% rename from devtools/src/models/components/erc721tokenbalance.ts rename to chainkit/src/models/components/erc721tokenbalance.ts diff --git a/devtools/src/models/components/erc721tokenmetadata.ts b/chainkit/src/models/components/erc721tokenmetadata.ts similarity index 100% rename from devtools/src/models/components/erc721tokenmetadata.ts rename to chainkit/src/models/components/erc721tokenmetadata.ts diff --git a/devtools/src/models/components/erc721transfer.ts b/chainkit/src/models/components/erc721transfer.ts similarity index 100% rename from devtools/src/models/components/erc721transfer.ts rename to chainkit/src/models/components/erc721transfer.ts diff --git a/devtools/src/models/components/erc721transferdetails.ts b/chainkit/src/models/components/erc721transferdetails.ts similarity index 100% rename from devtools/src/models/components/erc721transferdetails.ts rename to chainkit/src/models/components/erc721transferdetails.ts diff --git a/devtools/src/models/components/erctoken.ts b/chainkit/src/models/components/erctoken.ts similarity index 100% rename from devtools/src/models/components/erctoken.ts rename to chainkit/src/models/components/erctoken.ts diff --git a/devtools/src/models/components/erctransfer.ts b/chainkit/src/models/components/erctransfer.ts similarity index 100% rename from devtools/src/models/components/erctransfer.ts rename to chainkit/src/models/components/erctransfer.ts diff --git a/devtools/src/models/components/evmaddressactivityrequest.ts b/chainkit/src/models/components/evmaddressactivityrequest.ts similarity index 100% rename from devtools/src/models/components/evmaddressactivityrequest.ts rename to chainkit/src/models/components/evmaddressactivityrequest.ts diff --git a/devtools/src/models/components/evmaddressactivityresponse.ts b/chainkit/src/models/components/evmaddressactivityresponse.ts similarity index 100% rename from devtools/src/models/components/evmaddressactivityresponse.ts rename to chainkit/src/models/components/evmaddressactivityresponse.ts diff --git a/devtools/src/models/components/evmblock.ts b/chainkit/src/models/components/evmblock.ts similarity index 100% rename from devtools/src/models/components/evmblock.ts rename to chainkit/src/models/components/evmblock.ts diff --git a/devtools/src/models/components/evminput.ts b/chainkit/src/models/components/evminput.ts similarity index 100% rename from devtools/src/models/components/evminput.ts rename to chainkit/src/models/components/evminput.ts diff --git a/devtools/src/models/components/evmnetworkoptions.ts b/chainkit/src/models/components/evmnetworkoptions.ts similarity index 100% rename from devtools/src/models/components/evmnetworkoptions.ts rename to chainkit/src/models/components/evmnetworkoptions.ts diff --git a/devtools/src/models/components/evmoperationtype.ts b/chainkit/src/models/components/evmoperationtype.ts similarity index 100% rename from devtools/src/models/components/evmoperationtype.ts rename to chainkit/src/models/components/evmoperationtype.ts diff --git a/devtools/src/models/components/evmoutput.ts b/chainkit/src/models/components/evmoutput.ts similarity index 100% rename from devtools/src/models/components/evmoutput.ts rename to chainkit/src/models/components/evmoutput.ts diff --git a/devtools/src/models/components/fullnativetransactiondetails.ts b/chainkit/src/models/components/fullnativetransactiondetails.ts similarity index 100% rename from devtools/src/models/components/fullnativetransactiondetails.ts rename to chainkit/src/models/components/fullnativetransactiondetails.ts diff --git a/devtools/src/models/components/getchainresponse.ts b/chainkit/src/models/components/getchainresponse.ts similarity index 100% rename from devtools/src/models/components/getchainresponse.ts rename to chainkit/src/models/components/getchainresponse.ts diff --git a/devtools/src/models/components/getevmblockresponse.ts b/chainkit/src/models/components/getevmblockresponse.ts similarity index 100% rename from devtools/src/models/components/getevmblockresponse.ts rename to chainkit/src/models/components/getevmblockresponse.ts diff --git a/devtools/src/models/components/getnativebalanceresponse.ts b/chainkit/src/models/components/getnativebalanceresponse.ts similarity index 100% rename from devtools/src/models/components/getnativebalanceresponse.ts rename to chainkit/src/models/components/getnativebalanceresponse.ts diff --git a/devtools/src/models/components/getnetworkdetailsresponse.ts b/chainkit/src/models/components/getnetworkdetailsresponse.ts similarity index 100% rename from devtools/src/models/components/getnetworkdetailsresponse.ts rename to chainkit/src/models/components/getnetworkdetailsresponse.ts diff --git a/devtools/src/models/components/getprimarynetworkblockresponse.ts b/chainkit/src/models/components/getprimarynetworkblockresponse.ts similarity index 100% rename from devtools/src/models/components/getprimarynetworkblockresponse.ts rename to chainkit/src/models/components/getprimarynetworkblockresponse.ts diff --git a/devtools/src/models/components/gettransactionresponse.ts b/chainkit/src/models/components/gettransactionresponse.ts similarity index 100% rename from devtools/src/models/components/gettransactionresponse.ts rename to chainkit/src/models/components/gettransactionresponse.ts diff --git a/devtools/src/models/components/globalparamnetwork.ts b/chainkit/src/models/components/globalparamnetwork.ts similarity index 100% rename from devtools/src/models/components/globalparamnetwork.ts rename to chainkit/src/models/components/globalparamnetwork.ts diff --git a/devtools/src/models/components/healthcheckresultdto.ts b/chainkit/src/models/components/healthcheckresultdto.ts similarity index 100% rename from devtools/src/models/components/healthcheckresultdto.ts rename to chainkit/src/models/components/healthcheckresultdto.ts diff --git a/devtools/src/models/components/healthindicatorresultdto.ts b/chainkit/src/models/components/healthindicatorresultdto.ts similarity index 100% rename from devtools/src/models/components/healthindicatorresultdto.ts rename to chainkit/src/models/components/healthindicatorresultdto.ts diff --git a/devtools/src/models/components/historicalreward.ts b/chainkit/src/models/components/historicalreward.ts similarity index 100% rename from devtools/src/models/components/historicalreward.ts rename to chainkit/src/models/components/historicalreward.ts diff --git a/devtools/src/models/components/icmdestinationtransaction.ts b/chainkit/src/models/components/icmdestinationtransaction.ts similarity index 100% rename from devtools/src/models/components/icmdestinationtransaction.ts rename to chainkit/src/models/components/icmdestinationtransaction.ts diff --git a/devtools/src/models/components/icmreceipt.ts b/chainkit/src/models/components/icmreceipt.ts similarity index 100% rename from devtools/src/models/components/icmreceipt.ts rename to chainkit/src/models/components/icmreceipt.ts diff --git a/devtools/src/models/components/icmrewarddetails.ts b/chainkit/src/models/components/icmrewarddetails.ts similarity index 100% rename from devtools/src/models/components/icmrewarddetails.ts rename to chainkit/src/models/components/icmrewarddetails.ts diff --git a/devtools/src/models/components/icmsourcetransaction.ts b/chainkit/src/models/components/icmsourcetransaction.ts similarity index 100% rename from devtools/src/models/components/icmsourcetransaction.ts rename to chainkit/src/models/components/icmsourcetransaction.ts diff --git a/devtools/src/models/components/imageasset.ts b/chainkit/src/models/components/imageasset.ts similarity index 100% rename from devtools/src/models/components/imageasset.ts rename to chainkit/src/models/components/imageasset.ts diff --git a/devtools/src/models/components/index.ts b/chainkit/src/models/components/index.ts similarity index 100% rename from devtools/src/models/components/index.ts rename to chainkit/src/models/components/index.ts diff --git a/devtools/src/models/components/internaltransaction.ts b/chainkit/src/models/components/internaltransaction.ts similarity index 100% rename from devtools/src/models/components/internaltransaction.ts rename to chainkit/src/models/components/internaltransaction.ts diff --git a/devtools/src/models/components/internaltransactiondetails.ts b/chainkit/src/models/components/internaltransactiondetails.ts similarity index 100% rename from devtools/src/models/components/internaltransactiondetails.ts rename to chainkit/src/models/components/internaltransactiondetails.ts diff --git a/devtools/src/models/components/internaltransactionopcall.ts b/chainkit/src/models/components/internaltransactionopcall.ts similarity index 100% rename from devtools/src/models/components/internaltransactionopcall.ts rename to chainkit/src/models/components/internaltransactionopcall.ts diff --git a/devtools/src/models/components/l1validatordetailsfull.ts b/chainkit/src/models/components/l1validatordetailsfull.ts similarity index 100% rename from devtools/src/models/components/l1validatordetailsfull.ts rename to chainkit/src/models/components/l1validatordetailsfull.ts diff --git a/devtools/src/models/components/l1validatordetailstransaction.ts b/chainkit/src/models/components/l1validatordetailstransaction.ts similarity index 100% rename from devtools/src/models/components/l1validatordetailstransaction.ts rename to chainkit/src/models/components/l1validatordetailstransaction.ts diff --git a/devtools/src/models/components/l1validatormanagerdetails.ts b/chainkit/src/models/components/l1validatormanagerdetails.ts similarity index 100% rename from devtools/src/models/components/l1validatormanagerdetails.ts rename to chainkit/src/models/components/l1validatormanagerdetails.ts diff --git a/devtools/src/models/components/listaddresschainsresponse.ts b/chainkit/src/models/components/listaddresschainsresponse.ts similarity index 100% rename from devtools/src/models/components/listaddresschainsresponse.ts rename to chainkit/src/models/components/listaddresschainsresponse.ts diff --git a/devtools/src/models/components/listblockchainsresponse.ts b/chainkit/src/models/components/listblockchainsresponse.ts similarity index 100% rename from devtools/src/models/components/listblockchainsresponse.ts rename to chainkit/src/models/components/listblockchainsresponse.ts diff --git a/devtools/src/models/components/listcchainatomicbalancesresponse.ts b/chainkit/src/models/components/listcchainatomicbalancesresponse.ts similarity index 100% rename from devtools/src/models/components/listcchainatomicbalancesresponse.ts rename to chainkit/src/models/components/listcchainatomicbalancesresponse.ts diff --git a/devtools/src/models/components/listcchainatomictransactionsresponse.ts b/chainkit/src/models/components/listcchainatomictransactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listcchainatomictransactionsresponse.ts rename to chainkit/src/models/components/listcchainatomictransactionsresponse.ts diff --git a/devtools/src/models/components/listcollectiblebalancesresponse.ts b/chainkit/src/models/components/listcollectiblebalancesresponse.ts similarity index 100% rename from devtools/src/models/components/listcollectiblebalancesresponse.ts rename to chainkit/src/models/components/listcollectiblebalancesresponse.ts diff --git a/devtools/src/models/components/listcontractsresponse.ts b/chainkit/src/models/components/listcontractsresponse.ts similarity index 100% rename from devtools/src/models/components/listcontractsresponse.ts rename to chainkit/src/models/components/listcontractsresponse.ts diff --git a/devtools/src/models/components/listdelegatordetailsresponse.ts b/chainkit/src/models/components/listdelegatordetailsresponse.ts similarity index 100% rename from devtools/src/models/components/listdelegatordetailsresponse.ts rename to chainkit/src/models/components/listdelegatordetailsresponse.ts diff --git a/devtools/src/models/components/listerc1155balancesresponse.ts b/chainkit/src/models/components/listerc1155balancesresponse.ts similarity index 100% rename from devtools/src/models/components/listerc1155balancesresponse.ts rename to chainkit/src/models/components/listerc1155balancesresponse.ts diff --git a/devtools/src/models/components/listerc1155transactionsresponse.ts b/chainkit/src/models/components/listerc1155transactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listerc1155transactionsresponse.ts rename to chainkit/src/models/components/listerc1155transactionsresponse.ts diff --git a/devtools/src/models/components/listerc20balancesresponse.ts b/chainkit/src/models/components/listerc20balancesresponse.ts similarity index 100% rename from devtools/src/models/components/listerc20balancesresponse.ts rename to chainkit/src/models/components/listerc20balancesresponse.ts diff --git a/devtools/src/models/components/listerc20transactionsresponse.ts b/chainkit/src/models/components/listerc20transactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listerc20transactionsresponse.ts rename to chainkit/src/models/components/listerc20transactionsresponse.ts diff --git a/devtools/src/models/components/listerc721balancesresponse.ts b/chainkit/src/models/components/listerc721balancesresponse.ts similarity index 100% rename from devtools/src/models/components/listerc721balancesresponse.ts rename to chainkit/src/models/components/listerc721balancesresponse.ts diff --git a/devtools/src/models/components/listerc721transactionsresponse.ts b/chainkit/src/models/components/listerc721transactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listerc721transactionsresponse.ts rename to chainkit/src/models/components/listerc721transactionsresponse.ts diff --git a/devtools/src/models/components/listevmblocksresponse.ts b/chainkit/src/models/components/listevmblocksresponse.ts similarity index 100% rename from devtools/src/models/components/listevmblocksresponse.ts rename to chainkit/src/models/components/listevmblocksresponse.ts diff --git a/devtools/src/models/components/listhistoricalrewardsresponse.ts b/chainkit/src/models/components/listhistoricalrewardsresponse.ts similarity index 100% rename from devtools/src/models/components/listhistoricalrewardsresponse.ts rename to chainkit/src/models/components/listhistoricalrewardsresponse.ts diff --git a/devtools/src/models/components/listicmmessagesresponse.ts b/chainkit/src/models/components/listicmmessagesresponse.ts similarity index 100% rename from devtools/src/models/components/listicmmessagesresponse.ts rename to chainkit/src/models/components/listicmmessagesresponse.ts diff --git a/devtools/src/models/components/listinternaltransactionsresponse.ts b/chainkit/src/models/components/listinternaltransactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listinternaltransactionsresponse.ts rename to chainkit/src/models/components/listinternaltransactionsresponse.ts diff --git a/devtools/src/models/components/listl1validatorsresponse.ts b/chainkit/src/models/components/listl1validatorsresponse.ts similarity index 100% rename from devtools/src/models/components/listl1validatorsresponse.ts rename to chainkit/src/models/components/listl1validatorsresponse.ts diff --git a/devtools/src/models/components/listnativetransactionsresponse.ts b/chainkit/src/models/components/listnativetransactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listnativetransactionsresponse.ts rename to chainkit/src/models/components/listnativetransactionsresponse.ts diff --git a/devtools/src/models/components/listnfttokens.ts b/chainkit/src/models/components/listnfttokens.ts similarity index 100% rename from devtools/src/models/components/listnfttokens.ts rename to chainkit/src/models/components/listnfttokens.ts diff --git a/devtools/src/models/components/listpchainbalancesresponse.ts b/chainkit/src/models/components/listpchainbalancesresponse.ts similarity index 100% rename from devtools/src/models/components/listpchainbalancesresponse.ts rename to chainkit/src/models/components/listpchainbalancesresponse.ts diff --git a/devtools/src/models/components/listpchaintransactionsresponse.ts b/chainkit/src/models/components/listpchaintransactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listpchaintransactionsresponse.ts rename to chainkit/src/models/components/listpchaintransactionsresponse.ts diff --git a/devtools/src/models/components/listpchainutxosresponse.ts b/chainkit/src/models/components/listpchainutxosresponse.ts similarity index 100% rename from devtools/src/models/components/listpchainutxosresponse.ts rename to chainkit/src/models/components/listpchainutxosresponse.ts diff --git a/devtools/src/models/components/listpendingrewardsresponse.ts b/chainkit/src/models/components/listpendingrewardsresponse.ts similarity index 100% rename from devtools/src/models/components/listpendingrewardsresponse.ts rename to chainkit/src/models/components/listpendingrewardsresponse.ts diff --git a/devtools/src/models/components/listprimarynetworkblocksresponse.ts b/chainkit/src/models/components/listprimarynetworkblocksresponse.ts similarity index 100% rename from devtools/src/models/components/listprimarynetworkblocksresponse.ts rename to chainkit/src/models/components/listprimarynetworkblocksresponse.ts diff --git a/devtools/src/models/components/listsubnetsresponse.ts b/chainkit/src/models/components/listsubnetsresponse.ts similarity index 100% rename from devtools/src/models/components/listsubnetsresponse.ts rename to chainkit/src/models/components/listsubnetsresponse.ts diff --git a/devtools/src/models/components/listteleportermessagesresponse.ts b/chainkit/src/models/components/listteleportermessagesresponse.ts similarity index 100% rename from devtools/src/models/components/listteleportermessagesresponse.ts rename to chainkit/src/models/components/listteleportermessagesresponse.ts diff --git a/devtools/src/models/components/listtransactiondetailsresponse.ts b/chainkit/src/models/components/listtransactiondetailsresponse.ts similarity index 100% rename from devtools/src/models/components/listtransactiondetailsresponse.ts rename to chainkit/src/models/components/listtransactiondetailsresponse.ts diff --git a/devtools/src/models/components/listtransfersresponse.ts b/chainkit/src/models/components/listtransfersresponse.ts similarity index 100% rename from devtools/src/models/components/listtransfersresponse.ts rename to chainkit/src/models/components/listtransfersresponse.ts diff --git a/devtools/src/models/components/listutxosresponse.ts b/chainkit/src/models/components/listutxosresponse.ts similarity index 100% rename from devtools/src/models/components/listutxosresponse.ts rename to chainkit/src/models/components/listutxosresponse.ts diff --git a/devtools/src/models/components/listvalidatordetailsresponse.ts b/chainkit/src/models/components/listvalidatordetailsresponse.ts similarity index 100% rename from devtools/src/models/components/listvalidatordetailsresponse.ts rename to chainkit/src/models/components/listvalidatordetailsresponse.ts diff --git a/devtools/src/models/components/listwebhookaddressesresponse.ts b/chainkit/src/models/components/listwebhookaddressesresponse.ts similarity index 100% rename from devtools/src/models/components/listwebhookaddressesresponse.ts rename to chainkit/src/models/components/listwebhookaddressesresponse.ts diff --git a/devtools/src/models/components/listwebhooksresponse.ts b/chainkit/src/models/components/listwebhooksresponse.ts similarity index 100% rename from devtools/src/models/components/listwebhooksresponse.ts rename to chainkit/src/models/components/listwebhooksresponse.ts diff --git a/devtools/src/models/components/listxchainbalancesresponse.ts b/chainkit/src/models/components/listxchainbalancesresponse.ts similarity index 100% rename from devtools/src/models/components/listxchainbalancesresponse.ts rename to chainkit/src/models/components/listxchainbalancesresponse.ts diff --git a/devtools/src/models/components/listxchaintransactionsresponse.ts b/chainkit/src/models/components/listxchaintransactionsresponse.ts similarity index 100% rename from devtools/src/models/components/listxchaintransactionsresponse.ts rename to chainkit/src/models/components/listxchaintransactionsresponse.ts diff --git a/devtools/src/models/components/listxchainverticesresponse.ts b/chainkit/src/models/components/listxchainverticesresponse.ts similarity index 100% rename from devtools/src/models/components/listxchainverticesresponse.ts rename to chainkit/src/models/components/listxchainverticesresponse.ts diff --git a/devtools/src/models/components/log.ts b/chainkit/src/models/components/log.ts similarity index 100% rename from devtools/src/models/components/log.ts rename to chainkit/src/models/components/log.ts diff --git a/devtools/src/models/components/logsformat.ts b/chainkit/src/models/components/logsformat.ts similarity index 100% rename from devtools/src/models/components/logsformat.ts rename to chainkit/src/models/components/logsformat.ts diff --git a/devtools/src/models/components/logsformatmetadata.ts b/chainkit/src/models/components/logsformatmetadata.ts similarity index 100% rename from devtools/src/models/components/logsformatmetadata.ts rename to chainkit/src/models/components/logsformatmetadata.ts diff --git a/devtools/src/models/components/logsresponsedto.ts b/chainkit/src/models/components/logsresponsedto.ts similarity index 100% rename from devtools/src/models/components/logsresponsedto.ts rename to chainkit/src/models/components/logsresponsedto.ts diff --git a/devtools/src/models/components/lookingglassresponse.ts b/chainkit/src/models/components/lookingglassresponse.ts similarity index 100% rename from devtools/src/models/components/lookingglassresponse.ts rename to chainkit/src/models/components/lookingglassresponse.ts diff --git a/devtools/src/models/components/method.ts b/chainkit/src/models/components/method.ts similarity index 100% rename from devtools/src/models/components/method.ts rename to chainkit/src/models/components/method.ts diff --git a/devtools/src/models/components/metric.ts b/chainkit/src/models/components/metric.ts similarity index 100% rename from devtools/src/models/components/metric.ts rename to chainkit/src/models/components/metric.ts diff --git a/devtools/src/models/components/metricsapiresponse.ts b/chainkit/src/models/components/metricsapiresponse.ts similarity index 100% rename from devtools/src/models/components/metricsapiresponse.ts rename to chainkit/src/models/components/metricsapiresponse.ts diff --git a/devtools/src/models/components/metricslistchainsresponse.ts b/chainkit/src/models/components/metricslistchainsresponse.ts similarity index 100% rename from devtools/src/models/components/metricslistchainsresponse.ts rename to chainkit/src/models/components/metricslistchainsresponse.ts diff --git a/devtools/src/models/components/metricsvalue.ts b/chainkit/src/models/components/metricsvalue.ts similarity index 100% rename from devtools/src/models/components/metricsvalue.ts rename to chainkit/src/models/components/metricsvalue.ts diff --git a/devtools/src/models/components/money.ts b/chainkit/src/models/components/money.ts similarity index 100% rename from devtools/src/models/components/money.ts rename to chainkit/src/models/components/money.ts diff --git a/devtools/src/models/components/nativetokenbalance.ts b/chainkit/src/models/components/nativetokenbalance.ts similarity index 100% rename from devtools/src/models/components/nativetokenbalance.ts rename to chainkit/src/models/components/nativetokenbalance.ts diff --git a/devtools/src/models/components/nativetransaction.ts b/chainkit/src/models/components/nativetransaction.ts similarity index 100% rename from devtools/src/models/components/nativetransaction.ts rename to chainkit/src/models/components/nativetransaction.ts diff --git a/devtools/src/models/components/network.ts b/chainkit/src/models/components/network.ts similarity index 100% rename from devtools/src/models/components/network.ts rename to chainkit/src/models/components/network.ts diff --git a/devtools/src/models/components/networkmetric.ts b/chainkit/src/models/components/networkmetric.ts similarity index 100% rename from devtools/src/models/components/networkmetric.ts rename to chainkit/src/models/components/networkmetric.ts diff --git a/devtools/src/models/components/networktoken.ts b/chainkit/src/models/components/networktoken.ts similarity index 100% rename from devtools/src/models/components/networktoken.ts rename to chainkit/src/models/components/networktoken.ts diff --git a/devtools/src/models/components/networktokendetails.ts b/chainkit/src/models/components/networktokendetails.ts similarity index 100% rename from devtools/src/models/components/networktokendetails.ts rename to chainkit/src/models/components/networktokendetails.ts diff --git a/devtools/src/models/components/networktokeninfo.ts b/chainkit/src/models/components/networktokeninfo.ts similarity index 100% rename from devtools/src/models/components/networktokeninfo.ts rename to chainkit/src/models/components/networktokeninfo.ts diff --git a/devtools/src/models/components/networktype.ts b/chainkit/src/models/components/networktype.ts similarity index 100% rename from devtools/src/models/components/networktype.ts rename to chainkit/src/models/components/networktype.ts diff --git a/devtools/src/models/components/nftholdersresponse.ts b/chainkit/src/models/components/nftholdersresponse.ts similarity index 100% rename from devtools/src/models/components/nftholdersresponse.ts rename to chainkit/src/models/components/nftholdersresponse.ts diff --git a/devtools/src/models/components/nfttokenmetadatastatus.ts b/chainkit/src/models/components/nfttokenmetadatastatus.ts similarity index 100% rename from devtools/src/models/components/nfttokenmetadatastatus.ts rename to chainkit/src/models/components/nfttokenmetadatastatus.ts diff --git a/devtools/src/models/components/operationstatus.ts b/chainkit/src/models/components/operationstatus.ts similarity index 100% rename from devtools/src/models/components/operationstatus.ts rename to chainkit/src/models/components/operationstatus.ts diff --git a/devtools/src/models/components/operationstatuscode.ts b/chainkit/src/models/components/operationstatuscode.ts similarity index 100% rename from devtools/src/models/components/operationstatuscode.ts rename to chainkit/src/models/components/operationstatuscode.ts diff --git a/devtools/src/models/components/operationstatusresponse.ts b/chainkit/src/models/components/operationstatusresponse.ts similarity index 100% rename from devtools/src/models/components/operationstatusresponse.ts rename to chainkit/src/models/components/operationstatusresponse.ts diff --git a/devtools/src/models/components/operationtype.ts b/chainkit/src/models/components/operationtype.ts similarity index 100% rename from devtools/src/models/components/operationtype.ts rename to chainkit/src/models/components/operationtype.ts diff --git a/devtools/src/models/components/pchainaddressdetails.ts b/chainkit/src/models/components/pchainaddressdetails.ts similarity index 100% rename from devtools/src/models/components/pchainaddressdetails.ts rename to chainkit/src/models/components/pchainaddressdetails.ts diff --git a/devtools/src/models/components/pchainbalance.ts b/chainkit/src/models/components/pchainbalance.ts similarity index 100% rename from devtools/src/models/components/pchainbalance.ts rename to chainkit/src/models/components/pchainbalance.ts diff --git a/devtools/src/models/components/pchainid.ts b/chainkit/src/models/components/pchainid.ts similarity index 100% rename from devtools/src/models/components/pchainid.ts rename to chainkit/src/models/components/pchainid.ts diff --git a/devtools/src/models/components/pchainlookingglassresponse.ts b/chainkit/src/models/components/pchainlookingglassresponse.ts similarity index 100% rename from devtools/src/models/components/pchainlookingglassresponse.ts rename to chainkit/src/models/components/pchainlookingglassresponse.ts diff --git a/devtools/src/models/components/pchainsharedasset.ts b/chainkit/src/models/components/pchainsharedasset.ts similarity index 100% rename from devtools/src/models/components/pchainsharedasset.ts rename to chainkit/src/models/components/pchainsharedasset.ts diff --git a/devtools/src/models/components/pchaintransaction.ts b/chainkit/src/models/components/pchaintransaction.ts similarity index 100% rename from devtools/src/models/components/pchaintransaction.ts rename to chainkit/src/models/components/pchaintransaction.ts diff --git a/devtools/src/models/components/pchaintransactiontype.ts b/chainkit/src/models/components/pchaintransactiontype.ts similarity index 100% rename from devtools/src/models/components/pchaintransactiontype.ts rename to chainkit/src/models/components/pchaintransactiontype.ts diff --git a/devtools/src/models/components/pchainutxo.ts b/chainkit/src/models/components/pchainutxo.ts similarity index 100% rename from devtools/src/models/components/pchainutxo.ts rename to chainkit/src/models/components/pchainutxo.ts diff --git a/devtools/src/models/components/pendingdelegatordetails.ts b/chainkit/src/models/components/pendingdelegatordetails.ts similarity index 100% rename from devtools/src/models/components/pendingdelegatordetails.ts rename to chainkit/src/models/components/pendingdelegatordetails.ts diff --git a/devtools/src/models/components/pendingicmmessage.ts b/chainkit/src/models/components/pendingicmmessage.ts similarity index 100% rename from devtools/src/models/components/pendingicmmessage.ts rename to chainkit/src/models/components/pendingicmmessage.ts diff --git a/devtools/src/models/components/pendingreward.ts b/chainkit/src/models/components/pendingreward.ts similarity index 100% rename from devtools/src/models/components/pendingreward.ts rename to chainkit/src/models/components/pendingreward.ts diff --git a/devtools/src/models/components/pendingteleportermessage.ts b/chainkit/src/models/components/pendingteleportermessage.ts similarity index 100% rename from devtools/src/models/components/pendingteleportermessage.ts rename to chainkit/src/models/components/pendingteleportermessage.ts diff --git a/devtools/src/models/components/pendingvalidatordetails.ts b/chainkit/src/models/components/pendingvalidatordetails.ts similarity index 100% rename from devtools/src/models/components/pendingvalidatordetails.ts rename to chainkit/src/models/components/pendingvalidatordetails.ts diff --git a/devtools/src/models/components/platformaddressactivitykeytype.ts b/chainkit/src/models/components/platformaddressactivitykeytype.ts similarity index 100% rename from devtools/src/models/components/platformaddressactivitykeytype.ts rename to chainkit/src/models/components/platformaddressactivitykeytype.ts diff --git a/devtools/src/models/components/pricingproviders.ts b/chainkit/src/models/components/pricingproviders.ts similarity index 100% rename from devtools/src/models/components/pricingproviders.ts rename to chainkit/src/models/components/pricingproviders.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivityeventtype.ts b/chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivityeventtype.ts rename to chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivitymetadata.ts b/chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivitymetadata.ts rename to chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivityrequest.ts b/chainkit/src/models/components/primarynetworkaddressactivityrequest.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivityrequest.ts rename to chainkit/src/models/components/primarynetworkaddressactivityrequest.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivityresponse.ts b/chainkit/src/models/components/primarynetworkaddressactivityresponse.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivityresponse.ts rename to chainkit/src/models/components/primarynetworkaddressactivityresponse.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivitysubevents.ts b/chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivitysubevents.ts rename to chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts diff --git a/devtools/src/models/components/primarynetworkaddressactivitysubeventtype.ts b/chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts similarity index 100% rename from devtools/src/models/components/primarynetworkaddressactivitysubeventtype.ts rename to chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts diff --git a/devtools/src/models/components/primarynetworkassetcap.ts b/chainkit/src/models/components/primarynetworkassetcap.ts similarity index 100% rename from devtools/src/models/components/primarynetworkassetcap.ts rename to chainkit/src/models/components/primarynetworkassetcap.ts diff --git a/devtools/src/models/components/primarynetworkassettype.ts b/chainkit/src/models/components/primarynetworkassettype.ts similarity index 100% rename from devtools/src/models/components/primarynetworkassettype.ts rename to chainkit/src/models/components/primarynetworkassettype.ts diff --git a/devtools/src/models/components/primarynetworkbalancethresholdfilter.ts b/chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts similarity index 100% rename from devtools/src/models/components/primarynetworkbalancethresholdfilter.ts rename to chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts diff --git a/devtools/src/models/components/primarynetworkblock.ts b/chainkit/src/models/components/primarynetworkblock.ts similarity index 100% rename from devtools/src/models/components/primarynetworkblock.ts rename to chainkit/src/models/components/primarynetworkblock.ts diff --git a/devtools/src/models/components/primarynetworkchaininfo.ts b/chainkit/src/models/components/primarynetworkchaininfo.ts similarity index 100% rename from devtools/src/models/components/primarynetworkchaininfo.ts rename to chainkit/src/models/components/primarynetworkchaininfo.ts diff --git a/devtools/src/models/components/primarynetworkchainname.ts b/chainkit/src/models/components/primarynetworkchainname.ts similarity index 100% rename from devtools/src/models/components/primarynetworkchainname.ts rename to chainkit/src/models/components/primarynetworkchainname.ts diff --git a/devtools/src/models/components/primarynetworkoperationtype.ts b/chainkit/src/models/components/primarynetworkoperationtype.ts similarity index 100% rename from devtools/src/models/components/primarynetworkoperationtype.ts rename to chainkit/src/models/components/primarynetworkoperationtype.ts diff --git a/devtools/src/models/components/primarynetworkoptions.ts b/chainkit/src/models/components/primarynetworkoptions.ts similarity index 100% rename from devtools/src/models/components/primarynetworkoptions.ts rename to chainkit/src/models/components/primarynetworkoptions.ts diff --git a/devtools/src/models/components/primarynetworktxtype.ts b/chainkit/src/models/components/primarynetworktxtype.ts similarity index 100% rename from devtools/src/models/components/primarynetworktxtype.ts rename to chainkit/src/models/components/primarynetworktxtype.ts diff --git a/devtools/src/models/components/primarynetworktype.ts b/chainkit/src/models/components/primarynetworktype.ts similarity index 100% rename from devtools/src/models/components/primarynetworktype.ts rename to chainkit/src/models/components/primarynetworktype.ts diff --git a/devtools/src/models/components/proposerdetails.ts b/chainkit/src/models/components/proposerdetails.ts similarity index 100% rename from devtools/src/models/components/proposerdetails.ts rename to chainkit/src/models/components/proposerdetails.ts diff --git a/devtools/src/models/components/removedvalidatordetails.ts b/chainkit/src/models/components/removedvalidatordetails.ts similarity index 100% rename from devtools/src/models/components/removedvalidatordetails.ts rename to chainkit/src/models/components/removedvalidatordetails.ts diff --git a/devtools/src/models/components/requesttype.ts b/chainkit/src/models/components/requesttype.ts similarity index 100% rename from devtools/src/models/components/requesttype.ts rename to chainkit/src/models/components/requesttype.ts diff --git a/devtools/src/models/components/resourcelink.ts b/chainkit/src/models/components/resourcelink.ts similarity index 100% rename from devtools/src/models/components/resourcelink.ts rename to chainkit/src/models/components/resourcelink.ts diff --git a/devtools/src/models/components/resourcelinktype.ts b/chainkit/src/models/components/resourcelinktype.ts similarity index 100% rename from devtools/src/models/components/resourcelinktype.ts rename to chainkit/src/models/components/resourcelinktype.ts diff --git a/devtools/src/models/components/rewards.ts b/chainkit/src/models/components/rewards.ts similarity index 100% rename from devtools/src/models/components/rewards.ts rename to chainkit/src/models/components/rewards.ts diff --git a/devtools/src/models/components/rewardtype.ts b/chainkit/src/models/components/rewardtype.ts similarity index 100% rename from devtools/src/models/components/rewardtype.ts rename to chainkit/src/models/components/rewardtype.ts diff --git a/devtools/src/models/components/richaddress.ts b/chainkit/src/models/components/richaddress.ts similarity index 100% rename from devtools/src/models/components/richaddress.ts rename to chainkit/src/models/components/richaddress.ts diff --git a/devtools/src/models/components/rollingwindowmetricsapiresponse.ts b/chainkit/src/models/components/rollingwindowmetricsapiresponse.ts similarity index 100% rename from devtools/src/models/components/rollingwindowmetricsapiresponse.ts rename to chainkit/src/models/components/rollingwindowmetricsapiresponse.ts diff --git a/devtools/src/models/components/rpcmetrics.ts b/chainkit/src/models/components/rpcmetrics.ts similarity index 100% rename from devtools/src/models/components/rpcmetrics.ts rename to chainkit/src/models/components/rpcmetrics.ts diff --git a/devtools/src/models/components/rpcusagemetricsgroupbyenum.ts b/chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts similarity index 100% rename from devtools/src/models/components/rpcusagemetricsgroupbyenum.ts rename to chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts diff --git a/devtools/src/models/components/rpcusagemetricsvalueaggregated.ts b/chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts similarity index 100% rename from devtools/src/models/components/rpcusagemetricsvalueaggregated.ts rename to chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts diff --git a/devtools/src/models/components/security.ts b/chainkit/src/models/components/security.ts similarity index 100% rename from devtools/src/models/components/security.ts rename to chainkit/src/models/components/security.ts diff --git a/devtools/src/models/components/sharedsecretsresponse.ts b/chainkit/src/models/components/sharedsecretsresponse.ts similarity index 100% rename from devtools/src/models/components/sharedsecretsresponse.ts rename to chainkit/src/models/components/sharedsecretsresponse.ts diff --git a/devtools/src/models/components/signatureaggregationresponse.ts b/chainkit/src/models/components/signatureaggregationresponse.ts similarity index 100% rename from devtools/src/models/components/signatureaggregationresponse.ts rename to chainkit/src/models/components/signatureaggregationresponse.ts diff --git a/devtools/src/models/components/signatureaggregatorrequest.ts b/chainkit/src/models/components/signatureaggregatorrequest.ts similarity index 100% rename from devtools/src/models/components/signatureaggregatorrequest.ts rename to chainkit/src/models/components/signatureaggregatorrequest.ts diff --git a/devtools/src/models/components/sortbyoption.ts b/chainkit/src/models/components/sortbyoption.ts similarity index 100% rename from devtools/src/models/components/sortbyoption.ts rename to chainkit/src/models/components/sortbyoption.ts diff --git a/devtools/src/models/components/sortorder.ts b/chainkit/src/models/components/sortorder.ts similarity index 100% rename from devtools/src/models/components/sortorder.ts rename to chainkit/src/models/components/sortorder.ts diff --git a/devtools/src/models/components/stakingdistribution.ts b/chainkit/src/models/components/stakingdistribution.ts similarity index 100% rename from devtools/src/models/components/stakingdistribution.ts rename to chainkit/src/models/components/stakingdistribution.ts diff --git a/devtools/src/models/components/subnet.ts b/chainkit/src/models/components/subnet.ts similarity index 100% rename from devtools/src/models/components/subnet.ts rename to chainkit/src/models/components/subnet.ts diff --git a/devtools/src/models/components/subnetownershipinfo.ts b/chainkit/src/models/components/subnetownershipinfo.ts similarity index 100% rename from devtools/src/models/components/subnetownershipinfo.ts rename to chainkit/src/models/components/subnetownershipinfo.ts diff --git a/devtools/src/models/components/subnetrpctimeintervalgranularity.ts b/chainkit/src/models/components/subnetrpctimeintervalgranularity.ts similarity index 100% rename from devtools/src/models/components/subnetrpctimeintervalgranularity.ts rename to chainkit/src/models/components/subnetrpctimeintervalgranularity.ts diff --git a/devtools/src/models/components/subnetrpcusagemetricsresponsedto.ts b/chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts similarity index 100% rename from devtools/src/models/components/subnetrpcusagemetricsresponsedto.ts rename to chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts diff --git a/devtools/src/models/components/teleporterchainmetricsapiresponse.ts b/chainkit/src/models/components/teleporterchainmetricsapiresponse.ts similarity index 100% rename from devtools/src/models/components/teleporterchainmetricsapiresponse.ts rename to chainkit/src/models/components/teleporterchainmetricsapiresponse.ts diff --git a/devtools/src/models/components/teleporterdestinationtransaction.ts b/chainkit/src/models/components/teleporterdestinationtransaction.ts similarity index 100% rename from devtools/src/models/components/teleporterdestinationtransaction.ts rename to chainkit/src/models/components/teleporterdestinationtransaction.ts diff --git a/devtools/src/models/components/teleportermessageinfo.ts b/chainkit/src/models/components/teleportermessageinfo.ts similarity index 100% rename from devtools/src/models/components/teleportermessageinfo.ts rename to chainkit/src/models/components/teleportermessageinfo.ts diff --git a/devtools/src/models/components/teleportermetric.ts b/chainkit/src/models/components/teleportermetric.ts similarity index 100% rename from devtools/src/models/components/teleportermetric.ts rename to chainkit/src/models/components/teleportermetric.ts diff --git a/devtools/src/models/components/teleportermetricsvalue.ts b/chainkit/src/models/components/teleportermetricsvalue.ts similarity index 100% rename from devtools/src/models/components/teleportermetricsvalue.ts rename to chainkit/src/models/components/teleportermetricsvalue.ts diff --git a/devtools/src/models/components/teleporterreceipt.ts b/chainkit/src/models/components/teleporterreceipt.ts similarity index 100% rename from devtools/src/models/components/teleporterreceipt.ts rename to chainkit/src/models/components/teleporterreceipt.ts diff --git a/devtools/src/models/components/teleporterrewarddetails.ts b/chainkit/src/models/components/teleporterrewarddetails.ts similarity index 100% rename from devtools/src/models/components/teleporterrewarddetails.ts rename to chainkit/src/models/components/teleporterrewarddetails.ts diff --git a/devtools/src/models/components/teleportersourcetransaction.ts b/chainkit/src/models/components/teleportersourcetransaction.ts similarity index 100% rename from devtools/src/models/components/teleportersourcetransaction.ts rename to chainkit/src/models/components/teleportersourcetransaction.ts diff --git a/devtools/src/models/components/timeintervalgranularity.ts b/chainkit/src/models/components/timeintervalgranularity.ts similarity index 100% rename from devtools/src/models/components/timeintervalgranularity.ts rename to chainkit/src/models/components/timeintervalgranularity.ts diff --git a/devtools/src/models/components/timeintervalgranularityextended.ts b/chainkit/src/models/components/timeintervalgranularityextended.ts similarity index 100% rename from devtools/src/models/components/timeintervalgranularityextended.ts rename to chainkit/src/models/components/timeintervalgranularityextended.ts diff --git a/devtools/src/models/components/transaction.ts b/chainkit/src/models/components/transaction.ts similarity index 100% rename from devtools/src/models/components/transaction.ts rename to chainkit/src/models/components/transaction.ts diff --git a/devtools/src/models/components/transactiondetails.ts b/chainkit/src/models/components/transactiondetails.ts similarity index 100% rename from devtools/src/models/components/transactiondetails.ts rename to chainkit/src/models/components/transactiondetails.ts diff --git a/devtools/src/models/components/transactiondirectiontype.ts b/chainkit/src/models/components/transactiondirectiontype.ts similarity index 100% rename from devtools/src/models/components/transactiondirectiontype.ts rename to chainkit/src/models/components/transactiondirectiontype.ts diff --git a/devtools/src/models/components/transactionevent.ts b/chainkit/src/models/components/transactionevent.ts similarity index 100% rename from devtools/src/models/components/transactionevent.ts rename to chainkit/src/models/components/transactionevent.ts diff --git a/devtools/src/models/components/transactionexportmetadata.ts b/chainkit/src/models/components/transactionexportmetadata.ts similarity index 100% rename from devtools/src/models/components/transactionexportmetadata.ts rename to chainkit/src/models/components/transactionexportmetadata.ts diff --git a/devtools/src/models/components/transactionmethodtype.ts b/chainkit/src/models/components/transactionmethodtype.ts similarity index 100% rename from devtools/src/models/components/transactionmethodtype.ts rename to chainkit/src/models/components/transactionmethodtype.ts diff --git a/devtools/src/models/components/transactionstatus.ts b/chainkit/src/models/components/transactionstatus.ts similarity index 100% rename from devtools/src/models/components/transactionstatus.ts rename to chainkit/src/models/components/transactionstatus.ts diff --git a/devtools/src/models/components/transactionvertexdetail.ts b/chainkit/src/models/components/transactionvertexdetail.ts similarity index 100% rename from devtools/src/models/components/transactionvertexdetail.ts rename to chainkit/src/models/components/transactionvertexdetail.ts diff --git a/devtools/src/models/components/unknowncontract.ts b/chainkit/src/models/components/unknowncontract.ts similarity index 100% rename from devtools/src/models/components/unknowncontract.ts rename to chainkit/src/models/components/unknowncontract.ts diff --git a/devtools/src/models/components/updatewebhookrequest.ts b/chainkit/src/models/components/updatewebhookrequest.ts similarity index 100% rename from devtools/src/models/components/updatewebhookrequest.ts rename to chainkit/src/models/components/updatewebhookrequest.ts diff --git a/devtools/src/models/components/usagemetricsgroupbyenum.ts b/chainkit/src/models/components/usagemetricsgroupbyenum.ts similarity index 100% rename from devtools/src/models/components/usagemetricsgroupbyenum.ts rename to chainkit/src/models/components/usagemetricsgroupbyenum.ts diff --git a/devtools/src/models/components/usagemetricsresponsedto.ts b/chainkit/src/models/components/usagemetricsresponsedto.ts similarity index 100% rename from devtools/src/models/components/usagemetricsresponsedto.ts rename to chainkit/src/models/components/usagemetricsresponsedto.ts diff --git a/devtools/src/models/components/usagemetricsvaluedto.ts b/chainkit/src/models/components/usagemetricsvaluedto.ts similarity index 100% rename from devtools/src/models/components/usagemetricsvaluedto.ts rename to chainkit/src/models/components/usagemetricsvaluedto.ts diff --git a/devtools/src/models/components/utilityaddresses.ts b/chainkit/src/models/components/utilityaddresses.ts similarity index 100% rename from devtools/src/models/components/utilityaddresses.ts rename to chainkit/src/models/components/utilityaddresses.ts diff --git a/devtools/src/models/components/utxo.ts b/chainkit/src/models/components/utxo.ts similarity index 100% rename from devtools/src/models/components/utxo.ts rename to chainkit/src/models/components/utxo.ts diff --git a/devtools/src/models/components/utxocredential.ts b/chainkit/src/models/components/utxocredential.ts similarity index 100% rename from devtools/src/models/components/utxocredential.ts rename to chainkit/src/models/components/utxocredential.ts diff --git a/devtools/src/models/components/utxotype.ts b/chainkit/src/models/components/utxotype.ts similarity index 100% rename from devtools/src/models/components/utxotype.ts rename to chainkit/src/models/components/utxotype.ts diff --git a/devtools/src/models/components/validationstatustype.ts b/chainkit/src/models/components/validationstatustype.ts similarity index 100% rename from devtools/src/models/components/validationstatustype.ts rename to chainkit/src/models/components/validationstatustype.ts diff --git a/devtools/src/models/components/validatoractivityeventtype.ts b/chainkit/src/models/components/validatoractivityeventtype.ts similarity index 100% rename from devtools/src/models/components/validatoractivityeventtype.ts rename to chainkit/src/models/components/validatoractivityeventtype.ts diff --git a/devtools/src/models/components/validatoractivitykeytype.ts b/chainkit/src/models/components/validatoractivitykeytype.ts similarity index 100% rename from devtools/src/models/components/validatoractivitykeytype.ts rename to chainkit/src/models/components/validatoractivitykeytype.ts diff --git a/devtools/src/models/components/validatoractivitymetadata.ts b/chainkit/src/models/components/validatoractivitymetadata.ts similarity index 100% rename from devtools/src/models/components/validatoractivitymetadata.ts rename to chainkit/src/models/components/validatoractivitymetadata.ts diff --git a/devtools/src/models/components/validatoractivityrequest.ts b/chainkit/src/models/components/validatoractivityrequest.ts similarity index 100% rename from devtools/src/models/components/validatoractivityrequest.ts rename to chainkit/src/models/components/validatoractivityrequest.ts diff --git a/devtools/src/models/components/validatoractivityresponse.ts b/chainkit/src/models/components/validatoractivityresponse.ts similarity index 100% rename from devtools/src/models/components/validatoractivityresponse.ts rename to chainkit/src/models/components/validatoractivityresponse.ts diff --git a/devtools/src/models/components/validatoractivitysubevents.ts b/chainkit/src/models/components/validatoractivitysubevents.ts similarity index 100% rename from devtools/src/models/components/validatoractivitysubevents.ts rename to chainkit/src/models/components/validatoractivitysubevents.ts diff --git a/devtools/src/models/components/validatorhealthdetails.ts b/chainkit/src/models/components/validatorhealthdetails.ts similarity index 100% rename from devtools/src/models/components/validatorhealthdetails.ts rename to chainkit/src/models/components/validatorhealthdetails.ts diff --git a/devtools/src/models/components/validatorsdetails.ts b/chainkit/src/models/components/validatorsdetails.ts similarity index 100% rename from devtools/src/models/components/validatorsdetails.ts rename to chainkit/src/models/components/validatorsdetails.ts diff --git a/devtools/src/models/components/vmname.ts b/chainkit/src/models/components/vmname.ts similarity index 100% rename from devtools/src/models/components/vmname.ts rename to chainkit/src/models/components/vmname.ts diff --git a/devtools/src/models/components/webhookaddressactivityresponse.ts b/chainkit/src/models/components/webhookaddressactivityresponse.ts similarity index 100% rename from devtools/src/models/components/webhookaddressactivityresponse.ts rename to chainkit/src/models/components/webhookaddressactivityresponse.ts diff --git a/devtools/src/models/components/webhookinternaltransaction.ts b/chainkit/src/models/components/webhookinternaltransaction.ts similarity index 100% rename from devtools/src/models/components/webhookinternaltransaction.ts rename to chainkit/src/models/components/webhookinternaltransaction.ts diff --git a/devtools/src/models/components/webhookstatus.ts b/chainkit/src/models/components/webhookstatus.ts similarity index 100% rename from devtools/src/models/components/webhookstatus.ts rename to chainkit/src/models/components/webhookstatus.ts diff --git a/devtools/src/models/components/webhookstatustype.ts b/chainkit/src/models/components/webhookstatustype.ts similarity index 100% rename from devtools/src/models/components/webhookstatustype.ts rename to chainkit/src/models/components/webhookstatustype.ts diff --git a/devtools/src/models/components/xchainassetdetails.ts b/chainkit/src/models/components/xchainassetdetails.ts similarity index 100% rename from devtools/src/models/components/xchainassetdetails.ts rename to chainkit/src/models/components/xchainassetdetails.ts diff --git a/devtools/src/models/components/xchainbalances.ts b/chainkit/src/models/components/xchainbalances.ts similarity index 100% rename from devtools/src/models/components/xchainbalances.ts rename to chainkit/src/models/components/xchainbalances.ts diff --git a/devtools/src/models/components/xchainid.ts b/chainkit/src/models/components/xchainid.ts similarity index 100% rename from devtools/src/models/components/xchainid.ts rename to chainkit/src/models/components/xchainid.ts diff --git a/devtools/src/models/components/xchainlineartransaction.ts b/chainkit/src/models/components/xchainlineartransaction.ts similarity index 100% rename from devtools/src/models/components/xchainlineartransaction.ts rename to chainkit/src/models/components/xchainlineartransaction.ts diff --git a/devtools/src/models/components/xchainnonlineartransaction.ts b/chainkit/src/models/components/xchainnonlineartransaction.ts similarity index 100% rename from devtools/src/models/components/xchainnonlineartransaction.ts rename to chainkit/src/models/components/xchainnonlineartransaction.ts diff --git a/devtools/src/models/components/xchainsharedassetbalance.ts b/chainkit/src/models/components/xchainsharedassetbalance.ts similarity index 100% rename from devtools/src/models/components/xchainsharedassetbalance.ts rename to chainkit/src/models/components/xchainsharedassetbalance.ts diff --git a/devtools/src/models/components/xchaintransactiontype.ts b/chainkit/src/models/components/xchaintransactiontype.ts similarity index 100% rename from devtools/src/models/components/xchaintransactiontype.ts rename to chainkit/src/models/components/xchaintransactiontype.ts diff --git a/devtools/src/models/components/xchainvertex.ts b/chainkit/src/models/components/xchainvertex.ts similarity index 100% rename from devtools/src/models/components/xchainvertex.ts rename to chainkit/src/models/components/xchainvertex.ts diff --git a/devtools/src/models/errors/avalancheapierror.ts b/chainkit/src/models/errors/avalancheapierror.ts similarity index 100% rename from devtools/src/models/errors/avalancheapierror.ts rename to chainkit/src/models/errors/avalancheapierror.ts diff --git a/devtools/src/models/errors/avalancheerror.ts b/chainkit/src/models/errors/avalancheerror.ts similarity index 100% rename from devtools/src/models/errors/avalancheerror.ts rename to chainkit/src/models/errors/avalancheerror.ts diff --git a/devtools/src/models/errors/badgatewayerror.ts b/chainkit/src/models/errors/badgatewayerror.ts similarity index 100% rename from devtools/src/models/errors/badgatewayerror.ts rename to chainkit/src/models/errors/badgatewayerror.ts diff --git a/devtools/src/models/errors/badrequesterror.ts b/chainkit/src/models/errors/badrequesterror.ts similarity index 100% rename from devtools/src/models/errors/badrequesterror.ts rename to chainkit/src/models/errors/badrequesterror.ts diff --git a/devtools/src/models/errors/forbiddenerror.ts b/chainkit/src/models/errors/forbiddenerror.ts similarity index 100% rename from devtools/src/models/errors/forbiddenerror.ts rename to chainkit/src/models/errors/forbiddenerror.ts diff --git a/devtools/src/models/errors/httpclienterrors.ts b/chainkit/src/models/errors/httpclienterrors.ts similarity index 100% rename from devtools/src/models/errors/httpclienterrors.ts rename to chainkit/src/models/errors/httpclienterrors.ts diff --git a/devtools/src/models/errors/index.ts b/chainkit/src/models/errors/index.ts similarity index 100% rename from devtools/src/models/errors/index.ts rename to chainkit/src/models/errors/index.ts diff --git a/devtools/src/models/errors/internalservererror.ts b/chainkit/src/models/errors/internalservererror.ts similarity index 100% rename from devtools/src/models/errors/internalservererror.ts rename to chainkit/src/models/errors/internalservererror.ts diff --git a/devtools/src/models/errors/notfounderror.ts b/chainkit/src/models/errors/notfounderror.ts similarity index 100% rename from devtools/src/models/errors/notfounderror.ts rename to chainkit/src/models/errors/notfounderror.ts diff --git a/devtools/src/models/errors/responsevalidationerror.ts b/chainkit/src/models/errors/responsevalidationerror.ts similarity index 100% rename from devtools/src/models/errors/responsevalidationerror.ts rename to chainkit/src/models/errors/responsevalidationerror.ts diff --git a/devtools/src/models/errors/sdkvalidationerror.ts b/chainkit/src/models/errors/sdkvalidationerror.ts similarity index 100% rename from devtools/src/models/errors/sdkvalidationerror.ts rename to chainkit/src/models/errors/sdkvalidationerror.ts diff --git a/devtools/src/models/errors/serviceunavailableerror.ts b/chainkit/src/models/errors/serviceunavailableerror.ts similarity index 100% rename from devtools/src/models/errors/serviceunavailableerror.ts rename to chainkit/src/models/errors/serviceunavailableerror.ts diff --git a/devtools/src/models/errors/toomanyrequestserror.ts b/chainkit/src/models/errors/toomanyrequestserror.ts similarity index 100% rename from devtools/src/models/errors/toomanyrequestserror.ts rename to chainkit/src/models/errors/toomanyrequestserror.ts diff --git a/devtools/src/models/errors/unauthorizederror.ts b/chainkit/src/models/errors/unauthorizederror.ts similarity index 100% rename from devtools/src/models/errors/unauthorizederror.ts rename to chainkit/src/models/errors/unauthorizederror.ts diff --git a/devtools/src/models/operations/addaddressestowebhook.ts b/chainkit/src/models/operations/addaddressestowebhook.ts similarity index 100% rename from devtools/src/models/operations/addaddressestowebhook.ts rename to chainkit/src/models/operations/addaddressestowebhook.ts diff --git a/devtools/src/models/operations/aggregatesignatures.ts b/chainkit/src/models/operations/aggregatesignatures.ts similarity index 100% rename from devtools/src/models/operations/aggregatesignatures.ts rename to chainkit/src/models/operations/aggregatesignatures.ts diff --git a/devtools/src/models/operations/createwebhook.ts b/chainkit/src/models/operations/createwebhook.ts similarity index 100% rename from devtools/src/models/operations/createwebhook.ts rename to chainkit/src/models/operations/createwebhook.ts diff --git a/devtools/src/models/operations/datahealthcheck.ts b/chainkit/src/models/operations/datahealthcheck.ts similarity index 100% rename from devtools/src/models/operations/datahealthcheck.ts rename to chainkit/src/models/operations/datahealthcheck.ts diff --git a/devtools/src/models/operations/deactivatewebhook.ts b/chainkit/src/models/operations/deactivatewebhook.ts similarity index 100% rename from devtools/src/models/operations/deactivatewebhook.ts rename to chainkit/src/models/operations/deactivatewebhook.ts diff --git a/devtools/src/models/operations/generateorrotatesharedsecret.ts b/chainkit/src/models/operations/generateorrotatesharedsecret.ts similarity index 100% rename from devtools/src/models/operations/generateorrotatesharedsecret.ts rename to chainkit/src/models/operations/generateorrotatesharedsecret.ts diff --git a/devtools/src/models/operations/getaddresschains.ts b/chainkit/src/models/operations/getaddresschains.ts similarity index 100% rename from devtools/src/models/operations/getaddresschains.ts rename to chainkit/src/models/operations/getaddresschains.ts diff --git a/devtools/src/models/operations/getaddressesbybalanceovertime.ts b/chainkit/src/models/operations/getaddressesbybalanceovertime.ts similarity index 100% rename from devtools/src/models/operations/getaddressesbybalanceovertime.ts rename to chainkit/src/models/operations/getaddressesbybalanceovertime.ts diff --git a/devtools/src/models/operations/getaddressesbybtcbbridged.ts b/chainkit/src/models/operations/getaddressesbybtcbbridged.ts similarity index 100% rename from devtools/src/models/operations/getaddressesbybtcbbridged.ts rename to chainkit/src/models/operations/getaddressesbybtcbbridged.ts diff --git a/devtools/src/models/operations/getaddressesfromwebhook.ts b/chainkit/src/models/operations/getaddressesfromwebhook.ts similarity index 100% rename from devtools/src/models/operations/getaddressesfromwebhook.ts rename to chainkit/src/models/operations/getaddressesfromwebhook.ts diff --git a/devtools/src/models/operations/getaggregatedsignatures.ts b/chainkit/src/models/operations/getaggregatedsignatures.ts similarity index 100% rename from devtools/src/models/operations/getaggregatedsignatures.ts rename to chainkit/src/models/operations/getaggregatedsignatures.ts diff --git a/devtools/src/models/operations/getapilogs.ts b/chainkit/src/models/operations/getapilogs.ts similarity index 100% rename from devtools/src/models/operations/getapilogs.ts rename to chainkit/src/models/operations/getapilogs.ts diff --git a/devtools/src/models/operations/getapiusagemetrics.ts b/chainkit/src/models/operations/getapiusagemetrics.ts similarity index 100% rename from devtools/src/models/operations/getapiusagemetrics.ts rename to chainkit/src/models/operations/getapiusagemetrics.ts diff --git a/devtools/src/models/operations/getassetdetails.ts b/chainkit/src/models/operations/getassetdetails.ts similarity index 100% rename from devtools/src/models/operations/getassetdetails.ts rename to chainkit/src/models/operations/getassetdetails.ts diff --git a/devtools/src/models/operations/getbalancesbyaddresses.ts b/chainkit/src/models/operations/getbalancesbyaddresses.ts similarity index 100% rename from devtools/src/models/operations/getbalancesbyaddresses.ts rename to chainkit/src/models/operations/getbalancesbyaddresses.ts diff --git a/devtools/src/models/operations/getblock.ts b/chainkit/src/models/operations/getblock.ts similarity index 100% rename from devtools/src/models/operations/getblock.ts rename to chainkit/src/models/operations/getblock.ts diff --git a/devtools/src/models/operations/getblockbyid.ts b/chainkit/src/models/operations/getblockbyid.ts similarity index 100% rename from devtools/src/models/operations/getblockbyid.ts rename to chainkit/src/models/operations/getblockbyid.ts diff --git a/devtools/src/models/operations/getblockchainbyid.ts b/chainkit/src/models/operations/getblockchainbyid.ts similarity index 100% rename from devtools/src/models/operations/getblockchainbyid.ts rename to chainkit/src/models/operations/getblockchainbyid.ts diff --git a/devtools/src/models/operations/getchain.ts b/chainkit/src/models/operations/getchain.ts similarity index 100% rename from devtools/src/models/operations/getchain.ts rename to chainkit/src/models/operations/getchain.ts diff --git a/devtools/src/models/operations/getchainidsforaddresses.ts b/chainkit/src/models/operations/getchainidsforaddresses.ts similarity index 100% rename from devtools/src/models/operations/getchainidsforaddresses.ts rename to chainkit/src/models/operations/getchainidsforaddresses.ts diff --git a/devtools/src/models/operations/getchaininfo.ts b/chainkit/src/models/operations/getchaininfo.ts similarity index 100% rename from devtools/src/models/operations/getchaininfo.ts rename to chainkit/src/models/operations/getchaininfo.ts diff --git a/devtools/src/models/operations/getcontractmetadata.ts b/chainkit/src/models/operations/getcontractmetadata.ts similarity index 100% rename from devtools/src/models/operations/getcontractmetadata.ts rename to chainkit/src/models/operations/getcontractmetadata.ts diff --git a/devtools/src/models/operations/getdeploymenttransaction.ts b/chainkit/src/models/operations/getdeploymenttransaction.ts similarity index 100% rename from devtools/src/models/operations/getdeploymenttransaction.ts rename to chainkit/src/models/operations/getdeploymenttransaction.ts diff --git a/devtools/src/models/operations/getevmchainmetrics.ts b/chainkit/src/models/operations/getevmchainmetrics.ts similarity index 100% rename from devtools/src/models/operations/getevmchainmetrics.ts rename to chainkit/src/models/operations/getevmchainmetrics.ts diff --git a/devtools/src/models/operations/getevmchainrollingwindowmetrics.ts b/chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts similarity index 100% rename from devtools/src/models/operations/getevmchainrollingwindowmetrics.ts rename to chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts diff --git a/devtools/src/models/operations/geticmmessage.ts b/chainkit/src/models/operations/geticmmessage.ts similarity index 100% rename from devtools/src/models/operations/geticmmessage.ts rename to chainkit/src/models/operations/geticmmessage.ts diff --git a/devtools/src/models/operations/getlatestblocks.ts b/chainkit/src/models/operations/getlatestblocks.ts similarity index 100% rename from devtools/src/models/operations/getlatestblocks.ts rename to chainkit/src/models/operations/getlatestblocks.ts diff --git a/devtools/src/models/operations/getmetricsbynodeid.ts b/chainkit/src/models/operations/getmetricsbynodeid.ts similarity index 100% rename from devtools/src/models/operations/getmetricsbynodeid.ts rename to chainkit/src/models/operations/getmetricsbynodeid.ts diff --git a/devtools/src/models/operations/getmetricsbysubnetid.ts b/chainkit/src/models/operations/getmetricsbysubnetid.ts similarity index 100% rename from devtools/src/models/operations/getmetricsbysubnetid.ts rename to chainkit/src/models/operations/getmetricsbysubnetid.ts diff --git a/devtools/src/models/operations/getmetricsbyvalidationid.ts b/chainkit/src/models/operations/getmetricsbyvalidationid.ts similarity index 100% rename from devtools/src/models/operations/getmetricsbyvalidationid.ts rename to chainkit/src/models/operations/getmetricsbyvalidationid.ts diff --git a/devtools/src/models/operations/getnativebalance.ts b/chainkit/src/models/operations/getnativebalance.ts similarity index 100% rename from devtools/src/models/operations/getnativebalance.ts rename to chainkit/src/models/operations/getnativebalance.ts diff --git a/devtools/src/models/operations/getnetworkdetails.ts b/chainkit/src/models/operations/getnetworkdetails.ts similarity index 100% rename from devtools/src/models/operations/getnetworkdetails.ts rename to chainkit/src/models/operations/getnetworkdetails.ts diff --git a/devtools/src/models/operations/getnftholdersbycontractaddress.ts b/chainkit/src/models/operations/getnftholdersbycontractaddress.ts similarity index 100% rename from devtools/src/models/operations/getnftholdersbycontractaddress.ts rename to chainkit/src/models/operations/getnftholdersbycontractaddress.ts diff --git a/devtools/src/models/operations/getoperationresult.ts b/chainkit/src/models/operations/getoperationresult.ts similarity index 100% rename from devtools/src/models/operations/getoperationresult.ts rename to chainkit/src/models/operations/getoperationresult.ts diff --git a/devtools/src/models/operations/getrpcusagemetrics.ts b/chainkit/src/models/operations/getrpcusagemetrics.ts similarity index 100% rename from devtools/src/models/operations/getrpcusagemetrics.ts rename to chainkit/src/models/operations/getrpcusagemetrics.ts diff --git a/devtools/src/models/operations/getsharedsecret.ts b/chainkit/src/models/operations/getsharedsecret.ts similarity index 100% rename from devtools/src/models/operations/getsharedsecret.ts rename to chainkit/src/models/operations/getsharedsecret.ts diff --git a/devtools/src/models/operations/getsinglevalidatordetails.ts b/chainkit/src/models/operations/getsinglevalidatordetails.ts similarity index 100% rename from devtools/src/models/operations/getsinglevalidatordetails.ts rename to chainkit/src/models/operations/getsinglevalidatordetails.ts diff --git a/devtools/src/models/operations/getstakingmetrics.ts b/chainkit/src/models/operations/getstakingmetrics.ts similarity index 100% rename from devtools/src/models/operations/getstakingmetrics.ts rename to chainkit/src/models/operations/getstakingmetrics.ts diff --git a/devtools/src/models/operations/getsubnetbyid.ts b/chainkit/src/models/operations/getsubnetbyid.ts similarity index 100% rename from devtools/src/models/operations/getsubnetbyid.ts rename to chainkit/src/models/operations/getsubnetbyid.ts diff --git a/devtools/src/models/operations/getsubnetrpcusagemetrics.ts b/chainkit/src/models/operations/getsubnetrpcusagemetrics.ts similarity index 100% rename from devtools/src/models/operations/getsubnetrpcusagemetrics.ts rename to chainkit/src/models/operations/getsubnetrpcusagemetrics.ts diff --git a/devtools/src/models/operations/getteleportermessage.ts b/chainkit/src/models/operations/getteleportermessage.ts similarity index 100% rename from devtools/src/models/operations/getteleportermessage.ts rename to chainkit/src/models/operations/getteleportermessage.ts diff --git a/devtools/src/models/operations/getteleportermetricsbychain.ts b/chainkit/src/models/operations/getteleportermetricsbychain.ts similarity index 100% rename from devtools/src/models/operations/getteleportermetricsbychain.ts rename to chainkit/src/models/operations/getteleportermetricsbychain.ts diff --git a/devtools/src/models/operations/gettokendetails.ts b/chainkit/src/models/operations/gettokendetails.ts similarity index 100% rename from devtools/src/models/operations/gettokendetails.ts rename to chainkit/src/models/operations/gettokendetails.ts diff --git a/devtools/src/models/operations/gettotall1validatormetrics.ts b/chainkit/src/models/operations/gettotall1validatormetrics.ts similarity index 100% rename from devtools/src/models/operations/gettotall1validatormetrics.ts rename to chainkit/src/models/operations/gettotall1validatormetrics.ts diff --git a/devtools/src/models/operations/gettransaction.ts b/chainkit/src/models/operations/gettransaction.ts similarity index 100% rename from devtools/src/models/operations/gettransaction.ts rename to chainkit/src/models/operations/gettransaction.ts diff --git a/devtools/src/models/operations/gettransactionsforblock.ts b/chainkit/src/models/operations/gettransactionsforblock.ts similarity index 100% rename from devtools/src/models/operations/gettransactionsforblock.ts rename to chainkit/src/models/operations/gettransactionsforblock.ts diff --git a/devtools/src/models/operations/gettxbyhash.ts b/chainkit/src/models/operations/gettxbyhash.ts similarity index 100% rename from devtools/src/models/operations/gettxbyhash.ts rename to chainkit/src/models/operations/gettxbyhash.ts diff --git a/devtools/src/models/operations/getutxosbyaddresses.ts b/chainkit/src/models/operations/getutxosbyaddresses.ts similarity index 100% rename from devtools/src/models/operations/getutxosbyaddresses.ts rename to chainkit/src/models/operations/getutxosbyaddresses.ts diff --git a/devtools/src/models/operations/getvalidatorsbydaterange.ts b/chainkit/src/models/operations/getvalidatorsbydaterange.ts similarity index 100% rename from devtools/src/models/operations/getvalidatorsbydaterange.ts rename to chainkit/src/models/operations/getvalidatorsbydaterange.ts diff --git a/devtools/src/models/operations/getvertexbyhash.ts b/chainkit/src/models/operations/getvertexbyhash.ts similarity index 100% rename from devtools/src/models/operations/getvertexbyhash.ts rename to chainkit/src/models/operations/getvertexbyhash.ts diff --git a/devtools/src/models/operations/getvertexbyheight.ts b/chainkit/src/models/operations/getvertexbyheight.ts similarity index 100% rename from devtools/src/models/operations/getvertexbyheight.ts rename to chainkit/src/models/operations/getvertexbyheight.ts diff --git a/devtools/src/models/operations/getwebhook.ts b/chainkit/src/models/operations/getwebhook.ts similarity index 100% rename from devtools/src/models/operations/getwebhook.ts rename to chainkit/src/models/operations/getwebhook.ts diff --git a/devtools/src/models/operations/index.ts b/chainkit/src/models/operations/index.ts similarity index 100% rename from devtools/src/models/operations/index.ts rename to chainkit/src/models/operations/index.ts diff --git a/devtools/src/models/operations/listactiveprimarynetworkstakingtransactions.ts b/chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts similarity index 100% rename from devtools/src/models/operations/listactiveprimarynetworkstakingtransactions.ts rename to chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts diff --git a/devtools/src/models/operations/listaddresschains.ts b/chainkit/src/models/operations/listaddresschains.ts similarity index 100% rename from devtools/src/models/operations/listaddresschains.ts rename to chainkit/src/models/operations/listaddresschains.ts diff --git a/devtools/src/models/operations/listalllatestblocks.ts b/chainkit/src/models/operations/listalllatestblocks.ts similarity index 100% rename from devtools/src/models/operations/listalllatestblocks.ts rename to chainkit/src/models/operations/listalllatestblocks.ts diff --git a/devtools/src/models/operations/listalllatesttransactions.ts b/chainkit/src/models/operations/listalllatesttransactions.ts similarity index 100% rename from devtools/src/models/operations/listalllatesttransactions.ts rename to chainkit/src/models/operations/listalllatesttransactions.ts diff --git a/devtools/src/models/operations/listassettransactions.ts b/chainkit/src/models/operations/listassettransactions.ts similarity index 100% rename from devtools/src/models/operations/listassettransactions.ts rename to chainkit/src/models/operations/listassettransactions.ts diff --git a/devtools/src/models/operations/listblockchains.ts b/chainkit/src/models/operations/listblockchains.ts similarity index 100% rename from devtools/src/models/operations/listblockchains.ts rename to chainkit/src/models/operations/listblockchains.ts diff --git a/devtools/src/models/operations/listchains.ts b/chainkit/src/models/operations/listchains.ts similarity index 100% rename from devtools/src/models/operations/listchains.ts rename to chainkit/src/models/operations/listchains.ts diff --git a/devtools/src/models/operations/listcollectiblebalances.ts b/chainkit/src/models/operations/listcollectiblebalances.ts similarity index 100% rename from devtools/src/models/operations/listcollectiblebalances.ts rename to chainkit/src/models/operations/listcollectiblebalances.ts diff --git a/devtools/src/models/operations/listcontractdeployments.ts b/chainkit/src/models/operations/listcontractdeployments.ts similarity index 100% rename from devtools/src/models/operations/listcontractdeployments.ts rename to chainkit/src/models/operations/listcontractdeployments.ts diff --git a/devtools/src/models/operations/listdelegators.ts b/chainkit/src/models/operations/listdelegators.ts similarity index 100% rename from devtools/src/models/operations/listdelegators.ts rename to chainkit/src/models/operations/listdelegators.ts diff --git a/devtools/src/models/operations/listerc1155balances.ts b/chainkit/src/models/operations/listerc1155balances.ts similarity index 100% rename from devtools/src/models/operations/listerc1155balances.ts rename to chainkit/src/models/operations/listerc1155balances.ts diff --git a/devtools/src/models/operations/listerc1155transactions.ts b/chainkit/src/models/operations/listerc1155transactions.ts similarity index 100% rename from devtools/src/models/operations/listerc1155transactions.ts rename to chainkit/src/models/operations/listerc1155transactions.ts diff --git a/devtools/src/models/operations/listerc20balances.ts b/chainkit/src/models/operations/listerc20balances.ts similarity index 100% rename from devtools/src/models/operations/listerc20balances.ts rename to chainkit/src/models/operations/listerc20balances.ts diff --git a/devtools/src/models/operations/listerc20transactions.ts b/chainkit/src/models/operations/listerc20transactions.ts similarity index 100% rename from devtools/src/models/operations/listerc20transactions.ts rename to chainkit/src/models/operations/listerc20transactions.ts diff --git a/devtools/src/models/operations/listerc721balances.ts b/chainkit/src/models/operations/listerc721balances.ts similarity index 100% rename from devtools/src/models/operations/listerc721balances.ts rename to chainkit/src/models/operations/listerc721balances.ts diff --git a/devtools/src/models/operations/listerc721transactions.ts b/chainkit/src/models/operations/listerc721transactions.ts similarity index 100% rename from devtools/src/models/operations/listerc721transactions.ts rename to chainkit/src/models/operations/listerc721transactions.ts diff --git a/devtools/src/models/operations/listhistoricalprimarynetworkrewards.ts b/chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts similarity index 100% rename from devtools/src/models/operations/listhistoricalprimarynetworkrewards.ts rename to chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts diff --git a/devtools/src/models/operations/listicmmessages.ts b/chainkit/src/models/operations/listicmmessages.ts similarity index 100% rename from devtools/src/models/operations/listicmmessages.ts rename to chainkit/src/models/operations/listicmmessages.ts diff --git a/devtools/src/models/operations/listicmmessagesbyaddress.ts b/chainkit/src/models/operations/listicmmessagesbyaddress.ts similarity index 100% rename from devtools/src/models/operations/listicmmessagesbyaddress.ts rename to chainkit/src/models/operations/listicmmessagesbyaddress.ts diff --git a/devtools/src/models/operations/listinternaltransactions.ts b/chainkit/src/models/operations/listinternaltransactions.ts similarity index 100% rename from devtools/src/models/operations/listinternaltransactions.ts rename to chainkit/src/models/operations/listinternaltransactions.ts diff --git a/devtools/src/models/operations/listl1validators.ts b/chainkit/src/models/operations/listl1validators.ts similarity index 100% rename from devtools/src/models/operations/listl1validators.ts rename to chainkit/src/models/operations/listl1validators.ts diff --git a/devtools/src/models/operations/listlatestblocksallchains.ts b/chainkit/src/models/operations/listlatestblocksallchains.ts similarity index 100% rename from devtools/src/models/operations/listlatestblocksallchains.ts rename to chainkit/src/models/operations/listlatestblocksallchains.ts diff --git a/devtools/src/models/operations/listlatestprimarynetworkblocks.ts b/chainkit/src/models/operations/listlatestprimarynetworkblocks.ts similarity index 100% rename from devtools/src/models/operations/listlatestprimarynetworkblocks.ts rename to chainkit/src/models/operations/listlatestprimarynetworkblocks.ts diff --git a/devtools/src/models/operations/listlatestprimarynetworktransactions.ts b/chainkit/src/models/operations/listlatestprimarynetworktransactions.ts similarity index 100% rename from devtools/src/models/operations/listlatestprimarynetworktransactions.ts rename to chainkit/src/models/operations/listlatestprimarynetworktransactions.ts diff --git a/devtools/src/models/operations/listlatesttransactions.ts b/chainkit/src/models/operations/listlatesttransactions.ts similarity index 100% rename from devtools/src/models/operations/listlatesttransactions.ts rename to chainkit/src/models/operations/listlatesttransactions.ts diff --git a/devtools/src/models/operations/listlatesttransactionsallchains.ts b/chainkit/src/models/operations/listlatesttransactionsallchains.ts similarity index 100% rename from devtools/src/models/operations/listlatesttransactionsallchains.ts rename to chainkit/src/models/operations/listlatesttransactionsallchains.ts diff --git a/devtools/src/models/operations/listlatestxchainvertices.ts b/chainkit/src/models/operations/listlatestxchainvertices.ts similarity index 100% rename from devtools/src/models/operations/listlatestxchainvertices.ts rename to chainkit/src/models/operations/listlatestxchainvertices.ts diff --git a/devtools/src/models/operations/listnativetransactions.ts b/chainkit/src/models/operations/listnativetransactions.ts similarity index 100% rename from devtools/src/models/operations/listnativetransactions.ts rename to chainkit/src/models/operations/listnativetransactions.ts diff --git a/devtools/src/models/operations/listpendingprimarynetworkrewards.ts b/chainkit/src/models/operations/listpendingprimarynetworkrewards.ts similarity index 100% rename from devtools/src/models/operations/listpendingprimarynetworkrewards.ts rename to chainkit/src/models/operations/listpendingprimarynetworkrewards.ts diff --git a/devtools/src/models/operations/listprimarynetworkblocksbynodeid.ts b/chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts similarity index 100% rename from devtools/src/models/operations/listprimarynetworkblocksbynodeid.ts rename to chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts diff --git a/devtools/src/models/operations/listsubnets.ts b/chainkit/src/models/operations/listsubnets.ts similarity index 100% rename from devtools/src/models/operations/listsubnets.ts rename to chainkit/src/models/operations/listsubnets.ts diff --git a/devtools/src/models/operations/listteleportermessages.ts b/chainkit/src/models/operations/listteleportermessages.ts similarity index 100% rename from devtools/src/models/operations/listteleportermessages.ts rename to chainkit/src/models/operations/listteleportermessages.ts diff --git a/devtools/src/models/operations/listteleportermessagesbyaddress.ts b/chainkit/src/models/operations/listteleportermessagesbyaddress.ts similarity index 100% rename from devtools/src/models/operations/listteleportermessagesbyaddress.ts rename to chainkit/src/models/operations/listteleportermessagesbyaddress.ts diff --git a/devtools/src/models/operations/listtokens.ts b/chainkit/src/models/operations/listtokens.ts similarity index 100% rename from devtools/src/models/operations/listtokens.ts rename to chainkit/src/models/operations/listtokens.ts diff --git a/devtools/src/models/operations/listtransactions.ts b/chainkit/src/models/operations/listtransactions.ts similarity index 100% rename from devtools/src/models/operations/listtransactions.ts rename to chainkit/src/models/operations/listtransactions.ts diff --git a/devtools/src/models/operations/listtransfers.ts b/chainkit/src/models/operations/listtransfers.ts similarity index 100% rename from devtools/src/models/operations/listtransfers.ts rename to chainkit/src/models/operations/listtransfers.ts diff --git a/devtools/src/models/operations/listvalidators.ts b/chainkit/src/models/operations/listvalidators.ts similarity index 100% rename from devtools/src/models/operations/listvalidators.ts rename to chainkit/src/models/operations/listvalidators.ts diff --git a/devtools/src/models/operations/listwebhooks.ts b/chainkit/src/models/operations/listwebhooks.ts similarity index 100% rename from devtools/src/models/operations/listwebhooks.ts rename to chainkit/src/models/operations/listwebhooks.ts diff --git a/devtools/src/models/operations/metricshealthcheck.ts b/chainkit/src/models/operations/metricshealthcheck.ts similarity index 100% rename from devtools/src/models/operations/metricshealthcheck.ts rename to chainkit/src/models/operations/metricshealthcheck.ts diff --git a/devtools/src/models/operations/posttransactionexportjob.ts b/chainkit/src/models/operations/posttransactionexportjob.ts similarity index 100% rename from devtools/src/models/operations/posttransactionexportjob.ts rename to chainkit/src/models/operations/posttransactionexportjob.ts diff --git a/devtools/src/models/operations/reindexnft.ts b/chainkit/src/models/operations/reindexnft.ts similarity index 100% rename from devtools/src/models/operations/reindexnft.ts rename to chainkit/src/models/operations/reindexnft.ts diff --git a/devtools/src/models/operations/removeaddressesfromwebhook.ts b/chainkit/src/models/operations/removeaddressesfromwebhook.ts similarity index 100% rename from devtools/src/models/operations/removeaddressesfromwebhook.ts rename to chainkit/src/models/operations/removeaddressesfromwebhook.ts diff --git a/devtools/src/models/operations/supportedchains.ts b/chainkit/src/models/operations/supportedchains.ts similarity index 100% rename from devtools/src/models/operations/supportedchains.ts rename to chainkit/src/models/operations/supportedchains.ts diff --git a/devtools/src/models/operations/updatewebhook.ts b/chainkit/src/models/operations/updatewebhook.ts similarity index 100% rename from devtools/src/models/operations/updatewebhook.ts rename to chainkit/src/models/operations/updatewebhook.ts diff --git a/devtools/src/sdk/address.ts b/chainkit/src/sdk/address.ts similarity index 100% rename from devtools/src/sdk/address.ts rename to chainkit/src/sdk/address.ts diff --git a/devtools/src/sdk/addressbalances.ts b/chainkit/src/sdk/addressbalances.ts similarity index 100% rename from devtools/src/sdk/addressbalances.ts rename to chainkit/src/sdk/addressbalances.ts diff --git a/devtools/src/sdk/addresschains.ts b/chainkit/src/sdk/addresschains.ts similarity index 100% rename from devtools/src/sdk/addresschains.ts rename to chainkit/src/sdk/addresschains.ts diff --git a/devtools/src/sdk/addresscontracts.ts b/chainkit/src/sdk/addresscontracts.ts similarity index 100% rename from devtools/src/sdk/addresscontracts.ts rename to chainkit/src/sdk/addresscontracts.ts diff --git a/devtools/src/sdk/addresses.ts b/chainkit/src/sdk/addresses.ts similarity index 100% rename from devtools/src/sdk/addresses.ts rename to chainkit/src/sdk/addresses.ts diff --git a/devtools/src/sdk/addresstransactions.ts b/chainkit/src/sdk/addresstransactions.ts similarity index 100% rename from devtools/src/sdk/addresstransactions.ts rename to chainkit/src/sdk/addresstransactions.ts diff --git a/devtools/src/sdk/contracts.ts b/chainkit/src/sdk/contracts.ts similarity index 100% rename from devtools/src/sdk/contracts.ts rename to chainkit/src/sdk/contracts.ts diff --git a/devtools/src/sdk/data.ts b/chainkit/src/sdk/data.ts similarity index 100% rename from devtools/src/sdk/data.ts rename to chainkit/src/sdk/data.ts diff --git a/devtools/src/sdk/evm.ts b/chainkit/src/sdk/evm.ts similarity index 100% rename from devtools/src/sdk/evm.ts rename to chainkit/src/sdk/evm.ts diff --git a/devtools/src/sdk/evmblocks.ts b/chainkit/src/sdk/evmblocks.ts similarity index 100% rename from devtools/src/sdk/evmblocks.ts rename to chainkit/src/sdk/evmblocks.ts diff --git a/devtools/src/sdk/evmchains.ts b/chainkit/src/sdk/evmchains.ts similarity index 100% rename from devtools/src/sdk/evmchains.ts rename to chainkit/src/sdk/evmchains.ts diff --git a/devtools/src/sdk/evmtransactions.ts b/chainkit/src/sdk/evmtransactions.ts similarity index 100% rename from devtools/src/sdk/evmtransactions.ts rename to chainkit/src/sdk/evmtransactions.ts diff --git a/devtools/src/sdk/icm.ts b/chainkit/src/sdk/icm.ts similarity index 100% rename from devtools/src/sdk/icm.ts rename to chainkit/src/sdk/icm.ts diff --git a/devtools/src/sdk/index.ts b/chainkit/src/sdk/index.ts similarity index 100% rename from devtools/src/sdk/index.ts rename to chainkit/src/sdk/index.ts diff --git a/devtools/src/sdk/l1validators.ts b/chainkit/src/sdk/l1validators.ts similarity index 100% rename from devtools/src/sdk/l1validators.ts rename to chainkit/src/sdk/l1validators.ts diff --git a/devtools/src/sdk/metrics.ts b/chainkit/src/sdk/metrics.ts similarity index 100% rename from devtools/src/sdk/metrics.ts rename to chainkit/src/sdk/metrics.ts diff --git a/devtools/src/sdk/metricschains.ts b/chainkit/src/sdk/metricschains.ts similarity index 100% rename from devtools/src/sdk/metricschains.ts rename to chainkit/src/sdk/metricschains.ts diff --git a/devtools/src/sdk/networks.ts b/chainkit/src/sdk/networks.ts similarity index 100% rename from devtools/src/sdk/networks.ts rename to chainkit/src/sdk/networks.ts diff --git a/devtools/src/sdk/nfts.ts b/chainkit/src/sdk/nfts.ts similarity index 100% rename from devtools/src/sdk/nfts.ts rename to chainkit/src/sdk/nfts.ts diff --git a/devtools/src/sdk/operations.ts b/chainkit/src/sdk/operations.ts similarity index 100% rename from devtools/src/sdk/operations.ts rename to chainkit/src/sdk/operations.ts diff --git a/devtools/src/sdk/primarynetwork.ts b/chainkit/src/sdk/primarynetwork.ts similarity index 100% rename from devtools/src/sdk/primarynetwork.ts rename to chainkit/src/sdk/primarynetwork.ts diff --git a/devtools/src/sdk/primarynetworkbalances.ts b/chainkit/src/sdk/primarynetworkbalances.ts similarity index 100% rename from devtools/src/sdk/primarynetworkbalances.ts rename to chainkit/src/sdk/primarynetworkbalances.ts diff --git a/devtools/src/sdk/primarynetworkblocks.ts b/chainkit/src/sdk/primarynetworkblocks.ts similarity index 100% rename from devtools/src/sdk/primarynetworkblocks.ts rename to chainkit/src/sdk/primarynetworkblocks.ts diff --git a/devtools/src/sdk/primarynetworktransactions.ts b/chainkit/src/sdk/primarynetworktransactions.ts similarity index 100% rename from devtools/src/sdk/primarynetworktransactions.ts rename to chainkit/src/sdk/primarynetworktransactions.ts diff --git a/devtools/src/sdk/rewards.ts b/chainkit/src/sdk/rewards.ts similarity index 100% rename from devtools/src/sdk/rewards.ts rename to chainkit/src/sdk/rewards.ts diff --git a/devtools/src/sdk/sdk.ts b/chainkit/src/sdk/sdk.ts similarity index 100% rename from devtools/src/sdk/sdk.ts rename to chainkit/src/sdk/sdk.ts diff --git a/devtools/src/sdk/signatureaggregator.ts b/chainkit/src/sdk/signatureaggregator.ts similarity index 100% rename from devtools/src/sdk/signatureaggregator.ts rename to chainkit/src/sdk/signatureaggregator.ts diff --git a/devtools/src/sdk/subnets.ts b/chainkit/src/sdk/subnets.ts similarity index 100% rename from devtools/src/sdk/subnets.ts rename to chainkit/src/sdk/subnets.ts diff --git a/devtools/src/sdk/teleporter.ts b/chainkit/src/sdk/teleporter.ts similarity index 100% rename from devtools/src/sdk/teleporter.ts rename to chainkit/src/sdk/teleporter.ts diff --git a/devtools/src/sdk/usagemetrics.ts b/chainkit/src/sdk/usagemetrics.ts similarity index 100% rename from devtools/src/sdk/usagemetrics.ts rename to chainkit/src/sdk/usagemetrics.ts diff --git a/devtools/src/sdk/utxos.ts b/chainkit/src/sdk/utxos.ts similarity index 100% rename from devtools/src/sdk/utxos.ts rename to chainkit/src/sdk/utxos.ts diff --git a/devtools/src/sdk/vertices.ts b/chainkit/src/sdk/vertices.ts similarity index 100% rename from devtools/src/sdk/vertices.ts rename to chainkit/src/sdk/vertices.ts diff --git a/devtools/src/sdk/webhooks.ts b/chainkit/src/sdk/webhooks.ts similarity index 100% rename from devtools/src/sdk/webhooks.ts rename to chainkit/src/sdk/webhooks.ts diff --git a/devtools/src/types/async.ts b/chainkit/src/types/async.ts similarity index 100% rename from devtools/src/types/async.ts rename to chainkit/src/types/async.ts diff --git a/devtools/src/types/blobs.ts b/chainkit/src/types/blobs.ts similarity index 100% rename from devtools/src/types/blobs.ts rename to chainkit/src/types/blobs.ts diff --git a/devtools/src/types/constdatetime.ts b/chainkit/src/types/constdatetime.ts similarity index 100% rename from devtools/src/types/constdatetime.ts rename to chainkit/src/types/constdatetime.ts diff --git a/devtools/src/types/enums.ts b/chainkit/src/types/enums.ts similarity index 100% rename from devtools/src/types/enums.ts rename to chainkit/src/types/enums.ts diff --git a/devtools/src/types/fp.ts b/chainkit/src/types/fp.ts similarity index 100% rename from devtools/src/types/fp.ts rename to chainkit/src/types/fp.ts diff --git a/devtools/src/types/index.ts b/chainkit/src/types/index.ts similarity index 100% rename from devtools/src/types/index.ts rename to chainkit/src/types/index.ts diff --git a/devtools/src/types/operations.ts b/chainkit/src/types/operations.ts similarity index 100% rename from devtools/src/types/operations.ts rename to chainkit/src/types/operations.ts diff --git a/devtools/src/types/rfcdate.ts b/chainkit/src/types/rfcdate.ts similarity index 100% rename from devtools/src/types/rfcdate.ts rename to chainkit/src/types/rfcdate.ts diff --git a/devtools/src/types/streams.ts b/chainkit/src/types/streams.ts similarity index 100% rename from devtools/src/types/streams.ts rename to chainkit/src/types/streams.ts diff --git a/devtools/src/types/webhooks.ts b/chainkit/src/types/webhooks.ts similarity index 100% rename from devtools/src/types/webhooks.ts rename to chainkit/src/types/webhooks.ts diff --git a/devtools/src/utils/index.ts b/chainkit/src/utils/index.ts similarity index 100% rename from devtools/src/utils/index.ts rename to chainkit/src/utils/index.ts diff --git a/devtools/src/utils/validateSignature.ts b/chainkit/src/utils/validateSignature.ts similarity index 100% rename from devtools/src/utils/validateSignature.ts rename to chainkit/src/utils/validateSignature.ts diff --git a/devtools/tsconfig.json b/chainkit/tsconfig.json similarity index 100% rename from devtools/tsconfig.json rename to chainkit/tsconfig.json diff --git a/devtools/RELEASES.md b/devtools/RELEASES.md deleted file mode 100644 index 06eebdc0..00000000 --- a/devtools/RELEASES.md +++ /dev/null @@ -1,91 +0,0 @@ - - -## 2025-04-04 20:18:36 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.529.1 (2.566.5) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.3] devtools -### Releases -- [NPM v0.0.3] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.0.3 - devtools - -## 2025-04-05 12:32:41 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.529.1 (2.566.5) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.4] devtools -### Releases -- [NPM v0.0.4] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.0.4 - devtools - -## 2025-04-30 18:38:45 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.541.0 (2.595.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.5] devtools -### Releases -- [NPM v0.0.5] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.0.5 - devtools - -## 2025-05-20 18:39:32 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.548.3 (2.605.6) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.6] devtools -### Releases -- [NPM v0.0.6] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.0.6 - devtools - -## 2025-05-22 18:39:01 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.549.1 (2.607.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.0.7] devtools -### Releases -- [NPM v0.0.7] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.0.7 - devtools - -## 2025-06-24 18:39:59 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.1.0] devtools -### Releases -- [NPM v0.1.0] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.1.0 - devtools - -## 2025-07-15 18:41:52 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.582.0 (2.657.1) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.0] devtools -### Releases -- [NPM v0.2.0] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.2.0 - devtools - -## 2025-07-23 18:41:37 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.1] devtools -### Releases -- [NPM v0.2.1] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.2.1 - devtools - -## 2025-08-06 18:42:19 -### Changes -Based on: -- OpenAPI Doc -- Speakeasy CLI 1.598.2 (2.674.3) https://github.com/speakeasy-api/speakeasy -### Generated -- [typescript v0.2.2] devtools -### Releases -- [NPM v0.2.2] https://www.npmjs.com/package/@avalanche-sdk/devtools/v/0.2.2 - devtools \ No newline at end of file diff --git a/devtools/speakeasyusagegen/.speakeasy/logs/naming.log b/devtools/speakeasyusagegen/.speakeasy/logs/naming.log deleted file mode 100644 index f1fe1fdc..00000000 --- a/devtools/speakeasyusagegen/.speakeasy/logs/naming.log +++ /dev/null @@ -1,877 +0,0 @@ -DEBUG append_error: Renamed component to "BadRequest_error" - labels: "original_name:BadRequest scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadRequest component:true originalName:BadRequest" -DEBUG append_error: Renamed component to "Unauthorized_error" - labels: "original_name:Unauthorized scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Unauthorized component:true originalName:Unauthorized" -DEBUG append_error: Renamed component to "Forbidden_error" - labels: "original_name:Forbidden scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:Forbidden component:true originalName:Forbidden" -DEBUG append_error: Renamed component to "NotFound_error" - labels: "original_name:NotFound scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:NotFound component:true originalName:NotFound" -DEBUG append_error: Renamed component to "TooManyRequests_error" - labels: "original_name:TooManyRequests scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests component:true originalName:TooManyRequests" -DEBUG append_error: Renamed component to "BadGateway_error" - labels: "original_name:BadGateway scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:BadGateway component:true originalName:BadGateway" -DEBUG append_error: Renamed component to "ServiceUnavailable_error" - labels: "original_name:ServiceUnavailable scope:errors data_type:error" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable component:true originalName:ServiceUnavailable" -DEBUG prepend_op_id: Renamed to "postTransactionExportJob_request" - labels: "original_name:request operation:postTransactionExportJob operationTag:data.operations data_type:union" - registrationID: "scope:operations operationTag:data.operations operation:postTransactionExportJob requestResponse:request originalName:RequestBody" -DEBUG prepend_op_id: Renamed to "listLatestPrimaryNetworkTransactions_ResponseBody" - labels: "original_name:ResponseBody operation:listLatestPrimaryNetworkTransactions operationTag:data.primaryNetwork.transactions requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.transactions operation:listLatestPrimaryNetworkTransactions requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: Renamed to "getUtxosByAddresses_ResponseBody" - labels: "original_name:ResponseBody operation:getUtxosByAddresses operationTag:data.primaryNetwork.utxos requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.utxos operation:getUtxosByAddresses requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: Renamed to "createWebhook_request" - labels: "original_name:request operation:createWebhook operationTag:webhooks data_type:union" - registrationID: "scope:operations operationTag:webhooks operation:createWebhook requestResponse:request originalName:RequestBody" -DEBUG - ---- Renaming 8 types with name "status" --- -DEBUG discriminated: Renamed to "HealthCheckResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthCheckResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthCheckResultDto originalName:status" -DEBUG discriminated: Renamed to "HealthIndicatorResultDto_status" - labels: "original_name:status scope:shared data_type:enum refName:HealthIndicatorResultDto" - registrationID: "scope:shared refType:Schemas refName:HealthIndicatorResultDto originalName:status" -DEBUG discriminated: Renamed to "PendingTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:PendingTeleporterMessage constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingTeleporterMessage constProperty:pending originalName:status" -DEBUG discriminated: Renamed to "DeliveredTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredTeleporterMessage constProperty:Delivered" - registrationID: "scope:shared refType:Schemas refName:DeliveredTeleporterMessage constProperty:delivered originalName:status" -DEBUG discriminated: Renamed to "DeliveredSourceNotIndexedTeleporterMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredSourceNotIndexedTeleporterMessage constProperty:DeliveredSourceNotIndexed" - registrationID: "scope:shared refType:Schemas refName:DeliveredSourceNotIndexedTeleporterMessage constProperty:delivered_source_not_indexed originalName:status" -DEBUG discriminated: Renamed to "DeliveredSourceNotIndexedIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredSourceNotIndexedIcmMessage constProperty:DeliveredSourceNotIndexed" - registrationID: "scope:shared refType:Schemas refName:DeliveredSourceNotIndexedIcmMessage constProperty:delivered_source_not_indexed originalName:status" -DEBUG discriminated: Renamed to "PendingIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:PendingIcmMessage constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingIcmMessage constProperty:pending originalName:status" -DEBUG discriminated: Renamed to "DeliveredIcmMessage_status" - labels: "original_name:status scope:shared data_type:enum refName:DeliveredIcmMessage constProperty:Delivered" - registrationID: "scope:shared refType:Schemas refName:DeliveredIcmMessage constProperty:delivered originalName:status" -DEBUG - ---- Renaming 2 types with name "enabledFeature" --- -DEBUG discriminated: Renamed to "ChainInfo_enabledFeature" - labels: "original_name:enabledFeature scope:shared data_type:enum refName:ChainInfo" - registrationID: "scope:shared refType:Schemas refName:ChainInfo originalName:enabledFeature" -DEBUG discriminated: Renamed to "GetChainResponse_enabledFeature" - labels: "original_name:enabledFeature scope:shared data_type:enum refName:GetChainResponse" - registrationID: "scope:shared refType:Schemas refName:GetChainResponse originalName:enabledFeature" -DEBUG - ---- Renaming 12 types with name "ercType" --- -DEBUG discriminated: Renamed to "Erc721Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721Token constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721Token constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155Token constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155Token constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "TeleporterRewardDetails_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:TeleporterRewardDetails constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:TeleporterRewardDetails constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "IcmRewardDetails_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:IcmRewardDetails constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:IcmRewardDetails constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20TokenBalance constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20TokenBalance constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc721TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721TokenBalance constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721TokenBalance constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155TokenBalance_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155TokenBalance constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155TokenBalance constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20Token_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20Token constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20Token constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "Erc721Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc721Contract constProperty:Erc721" - registrationID: "scope:shared refType:Schemas refName:Erc721Contract constProperty:ERC-721 originalName:ercType" -DEBUG discriminated: Renamed to "Erc1155Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc1155Contract constProperty:Erc1155" - registrationID: "scope:shared refType:Schemas refName:Erc1155Contract constProperty:ERC-1155 originalName:ercType" -DEBUG discriminated: Renamed to "Erc20Contract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:Erc20Contract constProperty:Erc20" - registrationID: "scope:shared refType:Schemas refName:Erc20Contract constProperty:ERC-20 originalName:ercType" -DEBUG discriminated: Renamed to "UnknownContract_ercType" - labels: "original_name:ercType scope:shared data_type:enum refName:UnknownContract constProperty:Unknown" - registrationID: "scope:shared refType:Schemas refName:UnknownContract constProperty:UNKNOWN originalName:ercType" -DEBUG - ---- Renaming 4 types with name "metadata" --- -DEBUG discriminated: Renamed to "OperationStatusResponse_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:OperationStatusResponse" - registrationID: "scope:shared refType:Schemas refName:OperationStatusResponse originalName:metadata" -DEBUG discriminated: Renamed to "EVMAddressActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:EVMAddressActivityRequest" - registrationID: "scope:shared refType:Schemas refName:EVMAddressActivityRequest originalName:metadata" -DEBUG discriminated: Renamed to "PrimaryNetworkAddressActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:PrimaryNetworkAddressActivityRequest" - registrationID: "scope:shared refType:Schemas refName:PrimaryNetworkAddressActivityRequest originalName:metadata" -DEBUG discriminated: Renamed to "ValidatorActivityRequest_metadata" - labels: "original_name:metadata scope:shared data_type:union refName:ValidatorActivityRequest" - registrationID: "scope:shared refType:Schemas refName:ValidatorActivityRequest originalName:metadata" -DEBUG - ---- Renaming 3 types with name "blsCredentials" --- -DEBUG discriminated: Renamed to "L1ValidatorDetailsTransaction_blsCredentials" - labels: "original_name:blsCredentials scope:shared refName:L1ValidatorDetailsTransaction" - registrationID: "scope:shared refType:Schemas refName:L1ValidatorDetailsTransaction originalName:blsCredentials" -DEBUG discriminated: Renamed to "L1ValidatorDetailsFull_blsCredentials" - labels: "original_name:blsCredentials scope:shared refName:L1ValidatorDetailsFull" - registrationID: "scope:shared refType:Schemas refName:L1ValidatorDetailsFull originalName:blsCredentials" -DEBUG - ---- Renaming 2 types with name "genesisData" --- -DEBUG discriminated: Renamed to "BlockchainInfo_genesisData" - labels: "original_name:genesisData scope:shared refName:BlockchainInfo" - registrationID: "scope:shared refType:Schemas refName:BlockchainInfo originalName:genesisData" -DEBUG discriminated: Renamed to "Blockchain_genesisData" - labels: "original_name:genesisData scope:shared refName:Blockchain" - registrationID: "scope:shared refType:Schemas refName:Blockchain originalName:genesisData" -DEBUG - ---- Renaming 2 types with name "chainFormat" --- -DEBUG discriminated: Renamed to "XChainNonLinearTransaction_chainFormat" - labels: "original_name:chainFormat scope:shared data_type:enum refName:XChainNonLinearTransaction" - registrationID: "scope:shared refType:Schemas refName:XChainNonLinearTransaction originalName:chainFormat" -DEBUG discriminated: Renamed to "XChainLinearTransaction_chainFormat" - labels: "original_name:chainFormat scope:shared data_type:enum refName:XChainLinearTransaction" - registrationID: "scope:shared refType:Schemas refName:XChainLinearTransaction originalName:chainFormat" -DEBUG - ---- Renaming 2 types with name "txType" --- -DEBUG discriminated: Renamed to "CChainExportTransaction_txType" - labels: "original_name:txType scope:shared data_type:enum refName:CChainExportTransaction constProperty:ExportTx" - registrationID: "scope:shared refType:Schemas refName:CChainExportTransaction constProperty:ExportTx originalName:txType" -DEBUG discriminated: Renamed to "CChainImportTransaction_txType" - labels: "original_name:txType scope:shared data_type:enum refName:CChainImportTransaction constProperty:ImportTx" - registrationID: "scope:shared refType:Schemas refName:CChainImportTransaction constProperty:ImportTx originalName:txType" -DEBUG - ---- Renaming 3 types with name "transaction" --- -DEBUG discriminated: Renamed to "ListXChainTransactionsResponse_transaction" - labels: "original_name:transaction scope:shared data_type:union refName:ListXChainTransactionsResponse" - registrationID: "scope:shared refType:Schemas refName:ListXChainTransactionsResponse originalName:transaction" -DEBUG discriminated: Renamed to "ListCChainAtomicTransactionsResponse_transaction" - labels: "original_name:transaction scope:shared data_type:union refName:ListCChainAtomicTransactionsResponse" - registrationID: "scope:shared refType:Schemas refName:ListCChainAtomicTransactionsResponse originalName:transaction" -DEBUG - ---- Renaming 4 types with name "validationStatus" --- -DEBUG discriminated: Renamed to "CompletedValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:CompletedValidatorDetails constProperty:Completed" - registrationID: "scope:shared refType:Schemas refName:CompletedValidatorDetails constProperty:completed originalName:validationStatus" -DEBUG discriminated: Renamed to "ActiveValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:ActiveValidatorDetails constProperty:Active" - registrationID: "scope:shared refType:Schemas refName:ActiveValidatorDetails constProperty:active originalName:validationStatus" -DEBUG discriminated: Renamed to "PendingValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:PendingValidatorDetails constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingValidatorDetails constProperty:pending originalName:validationStatus" -DEBUG discriminated: Renamed to "RemovedValidatorDetails_validationStatus" - labels: "original_name:validationStatus scope:shared data_type:enum refName:RemovedValidatorDetails constProperty:Removed" - registrationID: "scope:shared refType:Schemas refName:RemovedValidatorDetails constProperty:removed originalName:validationStatus" -DEBUG - ---- Renaming 3 types with name "delegationStatus" --- -DEBUG discriminated: Renamed to "CompletedDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:CompletedDelegatorDetails constProperty:Completed" - registrationID: "scope:shared refType:Schemas refName:CompletedDelegatorDetails constProperty:completed originalName:delegationStatus" -DEBUG discriminated: Renamed to "ActiveDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:ActiveDelegatorDetails constProperty:Active" - registrationID: "scope:shared refType:Schemas refName:ActiveDelegatorDetails constProperty:active originalName:delegationStatus" -DEBUG discriminated: Renamed to "PendingDelegatorDetails_delegationStatus" - labels: "original_name:delegationStatus scope:shared data_type:enum refName:PendingDelegatorDetails constProperty:Pending" - registrationID: "scope:shared refType:Schemas refName:PendingDelegatorDetails constProperty:pending originalName:delegationStatus" -DEBUG - ---- Renaming 2 types with name "message" --- -DEBUG discriminated: Renamed to "ListTeleporterMessagesResponse_message" - labels: "original_name:message scope:shared data_type:union refName:ListTeleporterMessagesResponse" - registrationID: "scope:shared refType:Schemas refName:ListTeleporterMessagesResponse originalName:message" -DEBUG discriminated: Renamed to "ListIcmMessagesResponse_message" - labels: "original_name:message scope:shared data_type:union refName:ListIcmMessagesResponse" - registrationID: "scope:shared refType:Schemas refName:ListIcmMessagesResponse originalName:message" -DEBUG - ---- Renaming 2 types with name "groupedBy" --- -DEBUG discriminated: Renamed to "UsageMetricsValueDTO_groupedBy" - labels: "original_name:groupedBy scope:shared data_type:enum refName:UsageMetricsValueDTO" - registrationID: "scope:shared refType:Schemas refName:UsageMetricsValueDTO originalName:groupedBy" -DEBUG discriminated: Renamed to "RpcUsageMetricsValueAggregated_groupedBy" - labels: "original_name:groupedBy scope:shared data_type:enum refName:RpcUsageMetricsValueAggregated" - registrationID: "scope:shared refType:Schemas refName:RpcUsageMetricsValueAggregated originalName:groupedBy" -DEBUG - ---- Renaming 2 types with name "groupValue" --- -DEBUG discriminated: Renamed to "UsageMetricsValueDTO_groupValue" - labels: "original_name:groupValue scope:shared data_type:union refName:UsageMetricsValueDTO" - registrationID: "scope:shared refType:Schemas refName:UsageMetricsValueDTO originalName:groupValue" -DEBUG discriminated: Renamed to "RpcUsageMetricsValueAggregated_groupValue" - labels: "original_name:groupValue scope:shared data_type:union refName:RpcUsageMetricsValueAggregated" - registrationID: "scope:shared refType:Schemas refName:RpcUsageMetricsValueAggregated originalName:groupValue" -DEBUG - ---- Renaming 4 types with name "eventType" --- -DEBUG discriminated: Renamed to "EVMAddressActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:EVMAddressActivityRequest constProperty:AddressActivity" - registrationID: "scope:shared refType:Schemas refName:EVMAddressActivityRequest constProperty:address_activity originalName:eventType" -DEBUG discriminated: Renamed to "PrimaryNetworkAddressActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:PrimaryNetworkAddressActivityRequest constProperty:PrimaryNetworkAddressActivity" - registrationID: "scope:shared refType:Schemas refName:PrimaryNetworkAddressActivityRequest constProperty:primary_network_address_activity originalName:eventType" -DEBUG discriminated: Renamed to "ValidatorActivityRequest_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:ValidatorActivityRequest constProperty:ValidatorActivity" - registrationID: "scope:shared refType:Schemas refName:ValidatorActivityRequest constProperty:validator_activity originalName:eventType" -DEBUG discriminated: Renamed to "WebhookAddressActivityResponse_eventType" - labels: "original_name:eventType scope:shared data_type:enum refName:WebhookAddressActivityResponse constProperty:AddressActivity" - registrationID: "scope:shared refType:Schemas refName:WebhookAddressActivityResponse constProperty:address_activity originalName:eventType" -DEBUG - ---- Renaming 4 types with name "metric" --- -DEBUG discriminated: Renamed to "getTotalL1ValidatorMetrics_metric" - labels: "original_name:metric operation:getTotalL1ValidatorMetrics operationTag:metrics.l1Validators data_type:enum parameter:pathParam" - registrationID: "scope:operations operationTag:metrics.l1Validators operation:getTotalL1ValidatorMetrics parameter:pathParam originalName:metric" -DEBUG discriminated: Renamed to "getMetricsByValidationId_metric" - labels: "original_name:metric operation:getMetricsByValidationId operationTag:metrics.l1Validators data_type:enum parameter:pathParam" - registrationID: "scope:operations operationTag:metrics.l1Validators operation:getMetricsByValidationId parameter:pathParam originalName:metric" -DEBUG discriminated: Renamed to "getMetricsByNodeId_metric" - labels: "original_name:metric operation:getMetricsByNodeId operationTag:metrics.l1Validators data_type:enum parameter:pathParam" - registrationID: "scope:operations operationTag:metrics.l1Validators operation:getMetricsByNodeId parameter:pathParam originalName:metric" -DEBUG discriminated: Renamed to "getMetricsBySubnetId_metric" - labels: "original_name:metric operation:getMetricsBySubnetId operationTag:metrics.l1Validators data_type:enum parameter:pathParam" - registrationID: "scope:operations operationTag:metrics.l1Validators operation:getMetricsBySubnetId parameter:pathParam originalName:metric" -DEBUG - ---- Renaming 2 types with name "requestType" --- -DEBUG discriminated: Renamed to "getApiUsageMetrics_requestType" - labels: "original_name:requestType operation:getApiUsageMetrics operationTag:data.usageMetrics data_type:enum parameter:queryParam" - registrationID: "scope:operations operationTag:data.usageMetrics operation:getApiUsageMetrics parameter:queryParam originalName:requestType" -DEBUG discriminated: Renamed to "getApiLogs_requestType" - labels: "original_name:requestType operation:getApiLogs operationTag:data.usageMetrics data_type:enum parameter:queryParam" - registrationID: "scope:operations operationTag:data.usageMetrics operation:getApiLogs parameter:queryParam originalName:requestType" -DEBUG - ---- Renaming 8 types with name "message" --- -DEBUG discriminated: Renamed to "BadRequest_message" - labels: "original_name:message scope:errors data_type:union refName:BadRequest" - registrationID: "scope:errors refType:Schemas refName:BadRequest originalName:message" -DEBUG discriminated: Renamed to "Unauthorized_message" - labels: "original_name:message scope:errors data_type:union refName:Unauthorized" - registrationID: "scope:errors refType:Schemas refName:Unauthorized originalName:message" -DEBUG discriminated: Renamed to "Forbidden_message" - labels: "original_name:message scope:errors data_type:union refName:Forbidden" - registrationID: "scope:errors refType:Schemas refName:Forbidden originalName:message" -DEBUG discriminated: Renamed to "NotFound_message" - labels: "original_name:message scope:errors data_type:union refName:NotFound" - registrationID: "scope:errors refType:Schemas refName:NotFound originalName:message" -DEBUG discriminated: Renamed to "TooManyRequests_message" - labels: "original_name:message scope:errors data_type:union refName:TooManyRequests" - registrationID: "scope:errors refType:Schemas refName:TooManyRequests originalName:message" -DEBUG discriminated: Renamed to "InternalServerError_message" - labels: "original_name:message scope:errors data_type:union refName:InternalServerError" - registrationID: "scope:errors refType:Schemas refName:InternalServerError originalName:message" -DEBUG discriminated: Renamed to "BadGateway_message" - labels: "original_name:message scope:errors data_type:union refName:BadGateway" - registrationID: "scope:errors refType:Schemas refName:BadGateway originalName:message" -DEBUG discriminated: Renamed to "ServiceUnavailable_message" - labels: "original_name:message scope:errors data_type:union refName:ServiceUnavailable" - registrationID: "scope:errors refType:Schemas refName:ServiceUnavailable originalName:message" -DEBUG - ---- Renaming 3 types with name "chains" --- -DEBUG discriminated: Renamed to "metrics_chains" - labels: "original_name:chains group:metrics data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:metrics originalName:chains" -DEBUG discriminated: Renamed to "address_chains" - labels: "original_name:chains group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:chains" -DEBUG discriminated: Renamed to "evm_chains" - labels: "original_name:chains group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm originalName:chains" -DEBUG - ---- Renaming 3 types with name "transactions" --- -DEBUG discriminated: Renamed to "evm_transactions" - labels: "original_name:transactions group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm originalName:transactions" -DEBUG discriminated: Renamed to "primaryNetwork_transactions" - labels: "original_name:transactions group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:transactions" -DEBUG discriminated: Renamed to "address_transactions" - labels: "original_name:transactions group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:transactions" -DEBUG - ---- Renaming 2 types with name "blocks" --- -DEBUG discriminated: Renamed to "evm_blocks" - labels: "original_name:blocks group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm originalName:blocks" -DEBUG discriminated: Renamed to "primaryNetwork_blocks" - labels: "original_name:blocks group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:blocks" -DEBUG - ---- Renaming 2 types with name "balances" --- -DEBUG discriminated: Renamed to "primaryNetwork_balances" - labels: "original_name:balances group:primaryNetwork group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:primaryNetwork originalName:balances" -DEBUG discriminated: Renamed to "address_balances" - labels: "original_name:balances group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:balances" -DEBUG - ---- Renaming 2 types with name "contracts" --- -DEBUG discriminated: Renamed to "address_contracts" - labels: "original_name:contracts group:address group:evm group:data data_type:SDK mainSDK:Avalanche" - registrationID: "scope:sdk mainSDK:Avalanche group:data group:evm group:address originalName:contracts" -DEBUG prepend_op_id: N/A rename "postTransactionExportJob_request" - labels: "original_name:request operation:postTransactionExportJob operationTag:data.operations data_type:union" - registrationID: "scope:operations operationTag:data.operations operation:postTransactionExportJob requestResponse:request originalName:RequestBody" -DEBUG prepend_op_id: N/A rename "listLatestPrimaryNetworkTransactions_ResponseBody" - labels: "original_name:ResponseBody operation:listLatestPrimaryNetworkTransactions operationTag:data.primaryNetwork.transactions requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.transactions operation:listLatestPrimaryNetworkTransactions requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: N/A rename "getUtxosByAddresses_ResponseBody" - labels: "original_name:ResponseBody operation:getUtxosByAddresses operationTag:data.primaryNetwork.utxos requestResponse:response data_type:union" - registrationID: "scope:operations operationTag:data.primaryNetwork.utxos operation:getUtxosByAddresses requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: N/A rename "createWebhook_request" - labels: "original_name:request operation:createWebhook operationTag:webhooks data_type:union" - registrationID: "scope:operations operationTag:webhooks operation:createWebhook requestResponse:request originalName:RequestBody" -DEBUG - -Avalanche (SDK empty) -Metrics (SDK empty) -MetricsChains (SDK empty) -ListChainsRequest (pageToken: string, network: Network) - Network (enum: mainnet, fuji, testnet) -ListChainsResponse (Result: MetricsListChainsResponse) - MetricsListChainsResponse (nextPageToken: string, chains: array) - Chain (evmChainId: number, chainName: string, blockchainId: string ...) - NetworkType (enum: mainnet, testnet) -BadRequestError (error) - BadRequestMessage (union) -UnauthorizedError (error) - UnauthorizedMessage (union) -ForbiddenError (error) - ForbiddenMessage (union) -NotFoundError (error) - NotFoundMessage (union) -TooManyRequestsError (error) - TooManyRequestsMessage (union) -InternalServerError (error) - InternalServerErrorMessage (union) -BadGatewayError (error) - BadGatewayMessage (union) -ServiceUnavailableError (error) - ServiceUnavailableMessage (union) -Security (apiKey: string) -GetChainRequest (chainId: string) -GetEvmChainMetricsRequest (metric: ChainMetric, startTimestamp: integer, endTimestamp: integer ...) - ChainMetric (enum: activeAddresses, activeSenders, cumulativeTxCount ...) - TimeIntervalGranularity (enum: hour, day, week ...) -GetEvmChainMetricsResponse (Result: MetricsApiResponse) - MetricsApiResponse (nextPageToken: string, results: array) - MetricsValue (value: number, timestamp: number) -GetTeleporterMetricsByChainRequest (metric: TeleporterMetric, chainId: string) - TeleporterMetric (enum: teleporterSourceTxnCount, teleporterDestinationTxnCount, teleporterTotalTxnCount) -TeleporterChainMetricsApiResponse (result: TeleporterMetricsValue) - TeleporterMetricsValue (value: number) -GetEvmChainRollingWindowMetricsRequest (metric: ChainRollingWindowMetric, chainId: string) - ChainRollingWindowMetric (enum: gasUsed, txCount, avgGps ...) -RollingWindowMetricsApiResponse (result: ChainRollingWindowMetricsValue) - ChainRollingWindowMetricsValue (lastHour: number, lastDay: number, lastMonth: number ...) -GetNftHoldersByContractAddressRequest (pageToken: string, pageSize: integer, chainId: string ...) -GetNftHoldersByContractAddressResponse (Result: NftHoldersResponse) - NftHoldersResponse (nextPageToken: string, addresses: array, nftCollectionName: array ...) - AddressDetails (address: string, sortKey: string) -GetAddressesByBalanceOverTimeRequest (threshold: string, startTimestamp: integer, endTimestamp: integer ...) -GetAddressesByBalanceOverTimeResponse (Result: LookingGlassResponse) - LookingGlassResponse (nextPageToken: string, addresses: array) -GetAddressesByBtcbBridgedRequest (threshold: string, pageToken: string, pageSize: integer) -GetAddressesByBtcbBridgedResponse (Result: LookingGlassResponse) -GetAddressesByBalanceOverTimeGlobals (chainId: string) -Networks (SDK empty) -GetStakingMetricsRequest (metric: NetworkMetric, startTimestamp: integer, endTimestamp: integer ...) - NetworkMetric (enum: delegatorCount, delegatorWeight, validatorCount ...) - GlobalParamNetwork (enum: mainnet, fuji, testnet) -GetStakingMetricsResponse (Result: MetricsApiResponse) -L1Validators (SDK empty) -GetTotalL1ValidatorMetricsRequest (metric: enum, startTimestamp: integer, endTimestamp: integer) - GetTotalL1ValidatorMetricsMetric (enum: totalCumulativeFeesDaily, totalValidatorFeesDaily, totalPayingValidatorsDaily) -GetMetricsByValidationIdRequest (l1ValidationId: string, metric: enum, startTimestamp: integer ...) - GetMetricsByValidationIdMetric (enum: validationCumulativeFeesDaily, validationFeesDaily) -GetMetricsByNodeIdRequest (metric: enum, startTimestamp: integer, endTimestamp: integer ...) - GetMetricsByNodeIdMetric (enum: perNodeCumulativeFeesPaid, perNodeDailyFeesPaid) -GetMetricsBySubnetIdRequest (metric: enum, startTimestamp: integer, endTimestamp: integer ...) - GetMetricsBySubnetIdMetric (enum: perSubnetDailyFeesPaid, perSubnetCumulativeFeesPaid, perSubnetPayingValidators) -Subnets (SDK empty) -GetValidatorsByDateRangeRequest (startTimestamp: integer, endTimestamp: integer, pageToken: string ...) -GetValidatorsByDateRangeResponse (Result: PChainLookingGlassResponse) - PChainLookingGlassResponse (nextPageToken: string, addresses: array) - PChainAddressDetails (addresses: array, sortKey: string) -HealthCheckResultDto (status: enum, info: map, error: map ...) - HealthCheckResultDtoStatus (enum: error, ok, shutting_down) - HealthIndicatorResultDto (status: enum) - HealthIndicatorResultDtoStatus (enum: up, down) -Data (SDK empty) -Evm (SDK empty) -Address (SDK empty) -AddressChains (SDK empty) -ListAddressChainsRequest (address: string) -ListAddressChainsResponse (indexedChains: array, unindexedChains: array) - ChainInfo (chainId: string, status: ChainStatus, chainName: string ...) - ChainStatus (enum: OK, UNAVAILABLE) - VmName (enum: EVM, BITCOIN, ETHEREUM) - UtilityAddresses (multicall: string) - NetworkToken (name: string, symbol: string, decimals: number ...) - ChainInfoEnabledFeature (enum: nftIndexing, webhooks, teleporter) -AddressBalances (SDK empty) -GetNativeBalanceRequest (blockNumber: string, chainId: string, address: string ...) - CurrencyCode (enum: usd, eur, aud ...) -GetNativeBalanceResponse (nativeTokenBalance: NativeTokenBalance) - NativeTokenBalance (name: string, symbol: string, decimals: number ...) - Money (currencyCode: CurrencyCode, value: number) -ListErc20BalancesRequest (blockNumber: string, pageToken: string, pageSize: integer ...) -ListErc20BalancesResponse (Result: ListErc20BalancesResponse) - ListErc20BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc20TokenBalances: array) - Erc20TokenBalance (address: string, name: string, symbol: string ...) - Erc20TokenBalanceErcType (enum: ERC-20) - TokenReputation (enum: Malicious, Benign) -ListErc721BalancesRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListErc721BalancesResponse (Result: ListErc721BalancesResponse) - ListErc721BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc721TokenBalances: array) - Erc721TokenBalance (address: string, name: string, symbol: string ...) - Erc721TokenBalanceErcType (enum: ERC-721) - Erc721TokenMetadata (indexStatus: NftTokenMetadataStatus, metadataLastUpdatedTimestamp: number, name: string ...) - NftTokenMetadataStatus (enum: UNKNOWN, MISSING_TOKEN, INVALID_TOKEN_URI ...) -ListErc1155BalancesRequest (blockNumber: string, pageToken: string, pageSize: integer ...) -ListErc1155BalancesResponse (Result: ListErc1155BalancesResponse) - ListErc1155BalancesResponse (nextPageToken: string, nativeTokenBalance: NativeTokenBalance, erc1155TokenBalances: array) - Erc1155TokenBalance (address: string, ercType: enum, tokenId: string ...) - Erc1155TokenBalanceErcType (enum: ERC-1155) - Erc1155TokenMetadata (indexStatus: NftTokenMetadataStatus, metadataLastUpdatedTimestamp: number, name: string ...) -ListCollectibleBalancesRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListCollectibleBalancesResponse (Result: ListCollectibleBalancesResponse) - ListCollectibleBalancesResponse (nextPageToken: string, collectibleBalances: array) - CollectibleBalance (union) -AddressContracts (SDK empty) -ListContractDeploymentsRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListContractDeploymentsResponse (Result: ListContractsResponse) - ListContractsResponse (nextPageToken: string, contracts: array) - Contract (union) - Erc721Contract (name: string, description: string, officialSite: string ...) - ImageAsset (assetId: string, imageUri: string) - ResourceLink (type: ResourceLinkType, url: string) - ResourceLinkType (enum: Blog, CoinGecko, CoinMarketCap ...) - ContractDeploymentDetails (txHash: string, deployerAddress: string, deployerContractAddress: string) - Erc721ContractErcType (enum: ERC-721) - Erc1155Contract (name: string, description: string, officialSite: string ...) - Erc1155ContractErcType (enum: ERC-1155) - PricingProviders (coingeckoCoinId: string) - Erc20Contract (name: string, description: string, officialSite: string ...) - Erc20ContractErcType (enum: ERC-20) - UnknownContract (name: string, description: string, officialSite: string ...) - UnknownContractErcType (enum: UNKNOWN) -AddressTransactions (SDK empty) -ListTransactionsRequest (pageToken: string, pageSize: integer, startBlock: number ...) - SortOrder (enum: asc, desc) -ListTransactionsResponse (Result: ListTransactionDetailsResponse) - ListTransactionDetailsResponse (nextPageToken: string, transactions: array) - TransactionDetails (nativeTransaction: NativeTransaction, erc20Transfers: array, erc721Transfers: array ...) - NativeTransaction (blockNumber: string, blockTimestamp: number, blockHash: string ...) - RichAddress (name: string, symbol: string, decimals: number ...) - Method (callType: TransactionMethodType, methodHash: string, methodName: string) - TransactionMethodType (enum: NATIVE_TRANSFER, CONTRACT_CALL, CONTRACT_CREATION) - Erc20TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc20Token (address: string, name: string, symbol: string ...) - Erc20TokenErcType (enum: ERC-20) - Erc721TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc721Token (address: string, name: string, symbol: string ...) - Erc721TokenErcType (enum: ERC-721) - Erc1155TransferDetails (from: RichAddress, to: RichAddress, logIndex: number ...) - Erc1155Token (address: string, ercType: enum, tokenId: string ...) - Erc1155TokenErcType (enum: ERC-1155) - InternalTransactionDetails (from: RichAddress, to: RichAddress, internalTxType: InternalTransactionOpCall ...) - InternalTransactionOpCall (enum: UNKNOWN, CALL, CREATE ...) -ListNativeTransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListNativeTransactionsResponse (Result: ListNativeTransactionsResponse) - ListNativeTransactionsResponse (nextPageToken: string, transactions: array) -ListErc20TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc20TransactionsResponse (Result: ListErc20TransactionsResponse) - ListErc20TransactionsResponse (nextPageToken: string, transactions: array) - Erc20Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListErc721TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc721TransactionsResponse (Result: ListErc721TransactionsResponse) - ListErc721TransactionsResponse (nextPageToken: string, transactions: array) - Erc721Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListErc1155TransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListErc1155TransactionsResponse (Result: ListErc1155TransactionsResponse) - ListErc1155TransactionsResponse (nextPageToken: string, transactions: array) - Erc1155Transfer (blockNumber: string, blockTimestamp: number, blockHash: string ...) -ListInternalTransactionsRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListInternalTransactionsResponse (Result: ListInternalTransactionsResponse) - ListInternalTransactionsResponse (nextPageToken: string, transactions: array) - InternalTransaction (blockNumber: string, blockTimestamp: number, blockHash: string ...) -EvmTransactions (SDK empty) -ListLatestTransactionsAllChainsRequest (pageToken: string, pageSize: integer, network: Network ...) - TransactionStatus (enum: failed, success) -ListLatestTransactionsAllChainsResponse (Result: ListNativeTransactionsResponse) -GetTransactionRequest (chainId: string, txHash: string) -GetTransactionResponse (erc20Transfers: array, erc721Transfers: array, erc1155Transfers: array ...) - NetworkTokenDetails (networkToken: NetworkToken, currentPrice: Money, historicalPrice: Money) - FullNativeTransactionDetails (blockNumber: string, blockTimestamp: number, blockHash: string ...) - TeleporterMessageInfo (teleporterMessageId: string, direction: TransactionDirectionType, sourceChainId: string ...) - TransactionDirectionType (enum: SOURCE_TRANSACTION, DESTINATION_TRANSACTION) -ListLatestTransactionsRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListLatestTransactionsResponse (Result: ListNativeTransactionsResponse) -EvmBlocks (SDK empty) -ListLatestBlocksAllChainsRequest (pageToken: string, pageSize: integer, network: Network) -ListLatestBlocksAllChainsResponse (Result: ListEvmBlocksResponse) - ListEvmBlocksResponse (nextPageToken: string, blocks: array) - EvmBlock (chainId: string, blockNumber: string, blockTimestamp: number ...) -GetLatestBlocksRequest (pageToken: string, pageSize: integer, chainId: string) -GetLatestBlocksResponse (Result: ListEvmBlocksResponse) -GetBlockRequest (chainId: string, blockId: string) -GetEvmBlockResponse (chainId: string, blockNumber: string, blockTimestamp: number ...) -GetTransactionsForBlockRequest (pageToken: string, pageSize: integer, chainId: string ...) -Contracts (SDK empty) -GetDeploymentTransactionRequest (chainId: string, address: string, currency: CurrencyCode) -GetContractMetadataRequest (chainId: string, address: string) -GetContractMetadataResponse (union) -ListTransfersRequest (startBlock: number, endBlock: number, pageToken: string ...) -ListTransfersResponse (Result: ListTransfersResponse) - ListTransfersResponse (nextPageToken: string, transfers: array) - Transfer (union) -EvmChains (SDK empty) -SupportedChainsRequest (network: Network, feature: ApiFeature) - ApiFeature (enum: nftIndexing, webhooks, teleporter) -DataListChainsResponse (chains: array) -GetChainInfoRequest (chainId: string) -GetChainResponse (chainId: string, status: ChainStatus, chainName: string ...) - GetChainResponseEnabledFeature (enum: nftIndexing, webhooks, teleporter) -GetAddressChainsRequest (address: string) -ListAllLatestTransactionsRequest (pageToken: string, pageSize: integer, network: Network ...) -ListAllLatestTransactionsResponse (Result: ListNativeTransactionsResponse) -ListAllLatestBlocksRequest (pageToken: string, pageSize: integer, network: Network) -ListAllLatestBlocksResponse (Result: ListEvmBlocksResponse) -Nfts (SDK empty) -ReindexNftRequest (chainId: string, address: string, tokenId: string) -ListTokensRequest (pageToken: string, pageSize: integer, chainId: string ...) -ListTokensResponse (Result: ListNftTokens) - ListNftTokens (nextPageToken: string, tokens: array) - Token (union) -GetTokenDetailsRequest (chainId: string, address: string, tokenId: string) -GetTokenDetailsResponse (union) -Operations (SDK empty) -GetOperationResultRequest (operationId: string) -OperationStatusResponse (operationId: string, operationType: OperationType, operationStatus: OperationStatus ...) - OperationType (enum: TRANSACTION_EXPORT_PRIMARY_NETWORK, TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING, TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE ...) - OperationStatus (enum: RUNNING, COMPLETED, COMPLETED_WITH_WARNING ...) - OperationStatusResponseMetadata (union) - TransactionExportMetadata (code: OperationStatusCode, downloadUrl: string, nextDate: string) - OperationStatusCode (enum: ErrInvalidRequest, ErrInternal, WarnTruncatedExport) -PostTransactionExportJobRequest (union) - CreateEvmTransactionExportRequest (type: EVMOperationType, firstDate: string, lastDate: string ...) - EvmOperationType (enum: TRANSACTION_EXPORT_EVM) - EvmNetworkOptions (addresses: array, includeChains: array) - CreatePrimaryNetworkTransactionExportRequest (type: PrimaryNetworkOperationType, firstDate: string, lastDate: string ...) - PrimaryNetworkOperationType (enum: TRANSACTION_EXPORT_PRIMARY_NETWORK, TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING, TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE) - PrimaryNetworkOptions (addresses: array, cChainEvmAddresses: array, includeChains: array) - IncludeChain (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) -PrimaryNetwork (SDK empty) -PrimaryNetworkTransactions (SDK empty) -GetTxByHashRequest (blockchainId: BlockchainId, network: GlobalParamNetwork, txHash: string) - BlockchainId (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) -GetTxByHashResponse (union) - PChainTransaction (txHash: string, txType: PChainTransactionType, blockTimestamp: number ...) - PChainTransactionType (enum: AddValidatorTx, AddSubnetValidatorTx, AddDelegatorTx ...) - PChainUtxo (addresses: array, asset: AssetAmount, consumedOnChainId: string ...) - AssetAmount (assetId: string, name: string, symbol: string ...) - PrimaryNetworkAssetType (enum: secp256k1, nft) - RewardType (enum: VALIDATOR, DELEGATOR, VALIDATOR_FEE) - UtxoType (enum: STAKE, TRANSFER) - L1ValidatorManagerDetails (blockchainId: string, contractAddress: string) - L1ValidatorDetailsTransaction (validationId: string, validationIdHex: string, nodeId: string ...) - L1ValidatorDetailsTransactionBlsCredentials (empty) - SubnetOwnershipInfo (locktime: number, threshold: number, addresses: array) - BlsCredentials (publicKey: string, proofOfPossession: string) - BlockchainInfo (chainName: string, vmId: string, genesisData: class) - BlockchainInfoGenesisData (empty) - XChainNonLinearTransaction (txHash: string, chainFormat: enum, timestamp: number ...) - XChainNonLinearTransactionChainFormat (enum: non-linear, linear) - XChainTransactionType (enum: BaseTx, CreateAssetTx, OperationTx ...) - Utxo (addresses: array, asset: AssetAmount, consumedOnChainId: string ...) - UtxoCredential (signature: string, publicKey: string) - XChainAssetDetails (assetId: string, name: string, symbol: string ...) - PrimaryNetworkAssetCap (enum: fixed, variable) - TransactionVertexDetail (hash: string, height: number, timestamp: number) - XChainLinearTransaction (txHash: string, chainFormat: enum, timestamp: number ...) - XChainLinearTransactionChainFormat (enum: non-linear, linear) - CChainExportTransaction (txHash: string, blockHeight: number, blockHash: string ...) - CChainExportTransactionTxType (enum: ExportTx) - EvmInput (fromAddress: string, asset: AssetAmount, credentials: array) - CChainImportTransaction (txHash: string, blockHeight: number, blockHash: string ...) - CChainImportTransactionTxType (enum: ImportTx) - EvmOutput (toAddress: string, asset: AssetAmount) -ListLatestPrimaryNetworkTransactionsRequest (addresses: string, l1ValidationId: string, txTypes: array ...) - PrimaryNetworkTxType (enum: AddValidatorTx, AddSubnetValidatorTx, AddDelegatorTx ...) -ListLatestPrimaryNetworkTransactionsResponse (Result: union) - ListLatestPrimaryNetworkTransactionsResponseBody (union) - ListPChainTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - PrimaryNetworkChainInfo (chainName: PrimaryNetworkChainName, network: Network) - PrimaryNetworkChainName (enum: p-chain, x-chain, c-chain) - ListXChainTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - ListXChainTransactionsResponseTransaction (union) - ListCChainAtomicTransactionsResponse (nextPageToken: string, transactions: array, chainInfo: PrimaryNetworkChainInfo) - ListCChainAtomicTransactionsResponseTransaction (union) -ListActivePrimaryNetworkStakingTransactionsRequest (addresses: string, txTypes: array, startTimestamp: integer ...) - PChainId (enum: 11111111111111111111111111111111LpoYY, p-chain) -ListActivePrimaryNetworkStakingTransactionsResponse (Result: ListPChainTransactionsResponse) -ListAssetTransactionsRequest (txTypes: array, startTimestamp: integer, endTimestamp: integer ...) - XChainId (enum: 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm, x-chain) -ListAssetTransactionsResponse (Result: ListXChainTransactionsResponse) -Rewards (SDK empty) -ListPendingPrimaryNetworkRewardsRequest (addresses: string, pageToken: string, pageSize: integer ...) -ListPendingPrimaryNetworkRewardsResponse (Result: ListPendingRewardsResponse) - ListPendingRewardsResponse (nextPageToken: string, pendingRewards: array) - PendingReward (addresses: array, txHash: string, amountStaked: string ...) -ListHistoricalPrimaryNetworkRewardsRequest (addresses: string, pageToken: string, pageSize: integer ...) -ListHistoricalPrimaryNetworkRewardsResponse (Result: ListHistoricalRewardsResponse) - ListHistoricalRewardsResponse (nextPageToken: string, historicalRewards: array) - HistoricalReward (addresses: array, txHash: string, amountStaked: string ...) - AssetWithPriceInfo (assetId: string, name: string, symbol: string ...) -Utxos (SDK empty) -GetUtxosByAddressesRequest (addresses: string, pageToken: string, pageSize: integer ...) -GetUtxosByAddressesResponse (Result: union) - GetUtxosByAddressesResponseBody (union) - ListPChainUtxosResponse (nextPageToken: string, utxos: array, chainInfo: PrimaryNetworkChainInfo) - ListUtxosResponse (nextPageToken: string, utxos: array, chainInfo: PrimaryNetworkChainInfo) -PrimaryNetworkBalances (SDK empty) -GetBalancesByAddressesRequest (blockTimestamp: integer, addresses: string, blockchainId: BlockchainId ...) -GetBalancesByAddressesResponse (union) - ListPChainBalancesResponse (balances: PChainBalance, chainInfo: PrimaryNetworkChainInfo) - PChainBalance (unlockedUnstaked: array, unlockedStaked: array, lockedPlatform: array ...) - AggregatedAssetAmount (assetId: string, name: string, symbol: string ...) - PChainSharedAsset (assetId: string, name: string, symbol: string ...) - ListXChainBalancesResponse (balances: XChainBalances, chainInfo: PrimaryNetworkChainInfo) - XChainBalances (locked: array, unlocked: array, atomicMemoryUnlocked: array ...) - XChainSharedAssetBalance (assetId: string, name: string, symbol: string ...) - ListCChainAtomicBalancesResponse (balances: CChainAtomicBalances, chainInfo: PrimaryNetworkChainInfo) - CChainAtomicBalances (atomicMemoryUnlocked: array, atomicMemoryLocked: array) - CChainSharedAssetBalance (assetId: string, name: string, symbol: string ...) -PrimaryNetworkBlocks (SDK empty) -GetBlockByIdRequest (blockchainId: BlockchainId, network: GlobalParamNetwork, blockId: string) -GetPrimaryNetworkBlockResponse (blockNumber: string, blockHash: string, parentHash: string ...) - ProposerDetails (proposerId: string, proposerParentId: string, proposerNodeId: string ...) -ListPrimaryNetworkBlocksByNodeIdRequest (startTimestamp: integer, endTimestamp: integer, pageToken: string ...) -ListPrimaryNetworkBlocksByNodeIdResponse (Result: ListPrimaryNetworkBlocksResponse) - ListPrimaryNetworkBlocksResponse (nextPageToken: string, blocks: array, chainInfo: PrimaryNetworkChainInfo) - PrimaryNetworkBlock (blockNumber: string, blockHash: string, parentHash: string ...) -ListLatestPrimaryNetworkBlocksRequest (startTimestamp: integer, endTimestamp: integer, pageToken: string ...) -ListLatestPrimaryNetworkBlocksResponse (Result: ListPrimaryNetworkBlocksResponse) -Vertices (SDK empty) -ListLatestXChainVerticesRequest (pageToken: string, pageSize: integer, blockchainId: XChainId ...) -ListLatestXChainVerticesResponse (Result: ListXChainVerticesResponse) - ListXChainVerticesResponse (nextPageToken: string, vertices: array, chainInfo: PrimaryNetworkChainInfo) - XChainVertex (vertexHash: string, parentHashes: array, vertexHeight: number ...) -GetVertexByHashRequest (vertexHash: string, blockchainId: XChainId, network: GlobalParamNetwork) -GetVertexByHeightRequest (vertexHeight: integer, pageToken: string, pageSize: integer ...) -GetVertexByHeightResponse (Result: ListXChainVerticesResponse) -GetAssetDetailsRequest (blockchainId: XChainId, network: GlobalParamNetwork, assetId: string) -GetChainIdsForAddressesRequest (addresses: string, network: GlobalParamNetwork) -ChainAddressChainIdMapListResponse (addresses: array) - ChainAddressChainIdMap (address: string, blockchainIds: array) - BlockchainIds (enum: 11111111111111111111111111111111LpoYY, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm ...) -GetNetworkDetailsRequest (network: GlobalParamNetwork) -GetNetworkDetailsResponse (validatorDetails: ValidatorsDetails, delegatorDetails: DelegatorsDetails) - ValidatorsDetails (validatorCount: number, totalAmountStaked: string, estimatedAnnualStakingReward: string ...) - StakingDistribution (version: string, amountStaked: string, validatorCount: number) - DelegatorsDetails (delegatorCount: number, totalAmountStaked: string) -ListBlockchainsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -ListBlockchainsResponse (Result: ListBlockchainsResponse) - ListBlockchainsResponse (nextPageToken: string, blockchains: array) - Blockchain (createBlockTimestamp: number, createBlockNumber: string, blockchainId: string ...) - BlockchainGenesisData (empty) -GetBlockchainByIdRequest (blockchainId: string, network: GlobalParamNetwork) -ListSubnetsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -ListSubnetsResponse (Result: ListSubnetsResponse) - ListSubnetsResponse (nextPageToken: string, subnets: array) - Subnet (createBlockTimestamp: number, createBlockIndex: string, subnetId: string ...) -GetSubnetByIdRequest (network: GlobalParamNetwork, subnetId: string) -ListValidatorsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) - SortByOption (enum: blockIndex, delegationCapacity, timeRemaining ...) - ValidationStatusType (enum: completed, active, pending ...) -ListValidatorsResponse (Result: ListValidatorDetailsResponse) - ListValidatorDetailsResponse (nextPageToken: string, validators: array) - Validator (union) - CompletedValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - Rewards (validationRewardAmount: string, delegationRewardAmount: string, rewardAddresses: array ...) - CompletedValidatorDetailsValidationStatus (enum: completed) - ActiveValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - ActiveValidatorDetailsValidationStatus (enum: active) - ValidatorHealthDetails (reachabilityPercent: number, benchedPChainRequestsPercent: number, benchedXChainRequestsPercent: number ...) - Geolocation (city: string, country: string, countryCode: string ...) - PendingValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - PendingValidatorDetailsValidationStatus (enum: pending) - RemovedValidatorDetails (txHash: string, nodeId: string, subnetId: string ...) - RemovedValidatorDetailsValidationStatus (enum: removed) -GetSingleValidatorDetailsRequest (pageToken: string, pageSize: integer, network: GlobalParamNetwork ...) -GetSingleValidatorDetailsResponse (Result: ListValidatorDetailsResponse) -ListDelegatorsRequest (pageToken: string, pageSize: integer, rewardAddresses: string ...) - DelegationStatusType (enum: completed, active, pending) -ListDelegatorsResponse (Result: ListDelegatorDetailsResponse) - ListDelegatorDetailsResponse (nextPageToken: string, delegators: array) - Delegator (union) - CompletedDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - CompletedDelegatorDetailsDelegationStatus (enum: completed) - ActiveDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - ActiveDelegatorDetailsDelegationStatus (enum: active) - PendingDelegatorDetails (txHash: string, nodeId: string, rewardAddresses: array ...) - PendingDelegatorDetailsDelegationStatus (enum: pending) -ListL1ValidatorsRequest (pageToken: string, pageSize: integer, l1ValidationId: string ...) -ListL1ValidatorsResponse (Result: ListL1ValidatorsResponse) - ListL1ValidatorsResponse (nextPageToken: string, validators: array, blockHeight: string) - L1ValidatorDetailsFull (validationId: string, validationIdHex: string, nodeId: string ...) - L1ValidatorDetailsFullBlsCredentials (empty) - BalanceOwner (addresses: array, threshold: number) -Teleporter (SDK empty) -GetTeleporterMessageRequest (messageId: string) -GetTeleporterMessageResponse (union) - PendingTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - TeleporterReceipt (receivedMessageNonce: string, relayerRewardAddress: string) - TeleporterRewardDetails (address: string, name: string, symbol: string ...) - TeleporterRewardDetailsErcType (enum: ERC-20) - TeleporterSourceTransaction (txHash: string, timestamp: number, gasSpent: string) - PendingTeleporterMessageStatus (enum: pending) - DeliveredTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - TeleporterDestinationTransaction (txHash: string, timestamp: number, gasSpent: string ...) - DeliveredTeleporterMessageStatus (enum: delivered) - DeliveredSourceNotIndexedTeleporterMessage (messageId: string, teleporterContractAddress: string, sourceBlockchainId: string ...) - DeliveredSourceNotIndexedTeleporterMessageStatus (enum: delivered_source_not_indexed) -ListTeleporterMessagesRequest (pageToken: string, pageSize: integer, sourceBlockchainId: string ...) -ListTeleporterMessagesResponse (Result: ListTeleporterMessagesResponse) - ListTeleporterMessagesResponse (nextPageToken: string, messages: array) - ListTeleporterMessagesResponseMessage (union) - DeliveredSourceNotIndexedIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - IcmReceipt (receivedMessageNonce: string, relayerRewardAddress: string) - IcmRewardDetails (address: string, name: string, symbol: string ...) - IcmRewardDetailsErcType (enum: ERC-20) - IcmDestinationTransaction (txHash: string, timestamp: number, gasSpent: string ...) - DeliveredSourceNotIndexedIcmMessageStatus (enum: delivered_source_not_indexed) -ListTeleporterMessagesByAddressRequest (pageToken: string, pageSize: integer, address: string ...) -Icm (SDK empty) -GetIcmMessageRequest (messageId: string) -GetIcmMessageResponse (union) - PendingIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - IcmSourceTransaction (txHash: string, timestamp: number, gasSpent: string) - PendingIcmMessageStatus (enum: pending) - DeliveredIcmMessage (messageId: string, icmContractAddress: string, sourceBlockchainId: string ...) - DeliveredIcmMessageStatus (enum: delivered) -ListIcmMessagesRequest (pageToken: string, pageSize: integer, sourceBlockchainId: string ...) -ListIcmMessagesResponse (Result: ListIcmMessagesResponse) - ListIcmMessagesResponse (nextPageToken: string, messages: array) - ListIcmMessagesResponseMessage (union) -ListIcmMessagesByAddressRequest (pageToken: string, pageSize: integer, address: string ...) -UsageMetrics (SDK empty) -GetApiUsageMetricsRequest (orgId: string, startTimestamp: integer, endTimestamp: integer ...) - TimeIntervalGranularityExtended (enum: minute, hourly, daily ...) - UsageMetricsGroupByEnum (enum: requestPath, responseCode, chainId ...) - GetApiUsageMetricsRequestType (enum: data, rpc) -UsageMetricsResponseDto (aggregateDuration: string, orgId: string, metrics: array) - Metric (timestamp: number, values: array) - UsageMetricsValueDto (groupedBy: enum, groupValue: union, totalRequests: number ...) - UsageMetricsValueDtoGroupedBy (enum: requestPath, responseCode, chainId ...) - UsageMetricsValueDtoGroupValue (union) -GetApiLogsRequest (orgId: string, startTimestamp: integer, endTimestamp: integer ...) - GetApiLogsRequestType (enum: data, rpc) -GetApiLogsResponse (Result: LogsResponseDTO) - LogsResponseDto (nextPageToken: string, orgId: string, logs: array) - LogsFormat (orgId: string, logId: string, eventTimestamp: number ...) - RequestType (enum: data, rpc) - LogsFormatMetadata (ipAddress: string, host: string, userAgent: string) -GetSubnetRpcUsageMetricsRequest (timeInterval: SubnetRpcTimeIntervalGranularity, startTimestamp: integer, endTimestamp: integer ...) - SubnetRpcTimeIntervalGranularity (enum: hourly, daily, weekly ...) - RpcUsageMetricsGroupByEnum (enum: rpcMethod, responseCode, rlBypassToken) -SubnetRpcUsageMetricsResponseDto (aggregateDuration: string, metrics: array, chainId: string) - RpcMetrics (timestamp: number, values: array) - RpcUsageMetricsValueAggregated (totalRequests: number, apiCreditsUsed: number, requestsPerSecond: number ...) - RpcUsageMetricsValueAggregatedGroupedBy (enum: rpcMethod, responseCode, rlBypassToken ...) - RpcUsageMetricsValueAggregatedGroupValue (union) -GetRpcUsageMetricsRequest (timeInterval: SubnetRpcTimeIntervalGranularity, startTimestamp: integer, endTimestamp: integer ...) -SignatureAggregator (SDK empty) -AggregateSignaturesRequest (network: GlobalParamNetwork, SignatureAggregatorRequest: SignatureAggregatorRequest) - SignatureAggregatorRequest (message: string, justification: string, signingSubnetId: string ...) -SignatureAggregationResponse (signedMessage: string) -GetAggregatedSignaturesRequest (network: GlobalParamNetwork, txHash: string) -Webhooks (SDK empty) -Addresses (SDK empty) -GetAddressesFromWebhookRequest (pageToken: string, pageSize: integer, id: string) -GetAddressesFromWebhookResponse (Result: ListWebhookAddressesResponse) - ListWebhookAddressesResponse (nextPageToken: string, addresses: array, totalAddresses: number) -RemoveAddressesFromWebhookRequest (id: string, AddressesChangeRequest: AddressesChangeRequest) - AddressesChangeRequest (addresses: array) -EvmAddressActivityResponse (id: string, url: string, chainId: string ...) - WebhookStatusType (enum: active, inactive) - AddressActivityEventType (enum: address_activity) - AddressActivityMetadata (eventSignatures: array, addresses: array) -AddAddressesToWebhookRequest (id: string, AddressesChangeRequest: AddressesChangeRequest) -ListWebhooksRequest (pageToken: string, pageSize: integer, status: WebhookStatus) - WebhookStatus (enum: active, inactive) -ListWebhooksResponse (Result: ListWebhooksResponse) - ListWebhooksResponse (nextPageToken: string, webhooks: array) - Webhook (union) - PrimaryNetworkAddressActivityResponse (id: string, url: string, chainId: string ...) - PrimaryNetworkAddressActivityEventType (enum: primary_network_address_activity) - PrimaryNetworkAddressActivityMetadata (eventSignatures: array, keyType: PlatformAddressActivityKeyType, keys: array ...) - PlatformAddressActivityKeyType (enum: addresses) - PrimaryNetworkAddressActivitySubEvents (addressActivitySubEvents: array) - PrimaryNetworkAddressActivitySubEventType (enum: balance_change, balance_threshold, reward_distribution) - PrimaryNetworkBalanceThresholdFilter (balanceType: CommonBalanceType, balanceThreshold: string) - CommonBalanceType (enum: unlockedUnstaked, unlockedStaked, lockedPlatform ...) - ValidatorActivityResponse (id: string, url: string, chainId: string ...) - ValidatorActivityEventType (enum: validator_activity) - ValidatorActivityMetadata (eventSignatures: array, keyType: ValidatorActivityKeyType, keys: array ...) - ValidatorActivityKeyType (enum: nodeId, subnetId) - ValidatorActivitySubEvents (validatorActivitySubEvents: array) - ValidatorActivitySubEvent (enum: validator_stake, delegator_stake, reward_distribution ...) -CreateWebhookRequest (union) - EvmAddressActivityRequest (eventType: enum, url: string, name: string ...) - EvmAddressActivityRequestEventType (enum: address_activity) - EvmAddressActivityRequestMetadata (union) - PrimaryNetworkAddressActivityRequest (eventType: enum, url: string, name: string ...) - PrimaryNetworkAddressActivityRequestEventType (enum: primary_network_address_activity) - PrimaryNetworkType (enum: mainnet, fuji) - PrimaryNetworkAddressActivityRequestMetadata (union) - ValidatorActivityRequest (eventType: enum, url: string, name: string ...) - ValidatorActivityRequestEventType (enum: validator_activity) - ValidatorActivityRequestMetadata (union) -CreateWebhookResponse (union) -GetWebhookRequest (id: string) -GetWebhookResponse (union) -DeactivateWebhookRequest (id: string) -DeactivateWebhookResponse (union) -UpdateWebhookRequest (id: string, UpdateWebhookRequest: UpdateWebhookRequest) - UpdateWebhookRequest (name: string, description: string, url: string ...) -UpdateWebhookResponse (union) -SharedSecretsResponse (secret: string) -WebhookAddressActivityResponse (webhookId: string, eventType: enum, messageId: string ...) - WebhookAddressActivityResponseEventType (enum: address_activity) - TransactionEvent (transaction: Transaction, logs: array) - Transaction (blockHash: string, blockNumber: string, from: string ...) - ErcTransfer (transactionHash: string, type: string, from: string ...) - ErcToken (address: string, name: string, symbol: string ...) - WebhookInternalTransaction (from: string, to: string, internalTxType: string ...) - AccessListData (accessAddresses: string, storageKeys: array) - NetworkTokenInfo (tokenName: string, tokenSymbol: string, tokenDecimals: number ...) - Log (address: string, topic0: string, topic1: string ...) -Globals (chainId: string, network: GlobalParamNetwork) - diff --git a/scripts/bump_sdk_version_and_update_release_doc.py b/scripts/bump_sdk_version_and_update_release_doc.py index f3a41d01..fe5554cf 100644 --- a/scripts/bump_sdk_version_and_update_release_doc.py +++ b/scripts/bump_sdk_version_and_update_release_doc.py @@ -1,25 +1,32 @@ -import os import json +import os import subprocess import sys -from packaging.version import Version from datetime import datetime +from packaging.version import Version + # Paths to the package.json files SDK_PATH = './sdk/package.json' -SDK_DIRS = ['./devtools'] +SDK_DIRS = ['./chainkit'] # Function to load package.json + + def load_package_json(path): with open(path, 'r') as f: return json.load(f) # Function to save package.json + + def save_package_json(path, data): with open(path, 'w') as f: json.dump(data, f, indent=2) # Compare versions and determine the bump + + def compare_versions(sdk_version, sdk_versions, previous_versions): """ Compare the SDK version with the versions from data, webhook, and metrics. @@ -76,7 +83,6 @@ def update_sdk_dependencies(sdk_pkg, dependency_versions): if sdk_name in sdk_pkg['dependencies']: sdk_pkg['dependencies'][sdk_name] = f"^{sdk_version}" -from datetime import datetime def update_release_md(new_version, dependency_versions, previous_versions): """ @@ -125,7 +131,8 @@ def update_release_md(new_version, dependency_versions, previous_versions): with open(release_file, 'w') as f: f.write(release_content) - print(f"Updated RELEASE.md with version {new_version} and dependency changes.") + print( + f"Updated RELEASE.md with version {new_version} and dependency changes.") # Main execution @@ -145,8 +152,10 @@ def main(): # Get all dependency versions from services latest_dependency_versions = get_dependency_versions() - common_deps = sorted(set(latest_dependency_versions.keys()) & set(previous_versions.keys())) - latest_dependency_versions_values = [latest_dependency_versions[key] for key in common_deps] + common_deps = sorted(set(latest_dependency_versions.keys()) + & set(previous_versions.keys())) + latest_dependency_versions_values = [ + latest_dependency_versions[key] for key in common_deps] previous_versions_values = [previous_versions[key] for key in common_deps] if manual_version: @@ -154,7 +163,8 @@ def main(): new_version = manual_version else: # Compare and bump versions automatically if no manual version is provided - new_version = compare_versions(current_sdk_version, latest_dependency_versions_values, previous_versions_values) + new_version = compare_versions( + current_sdk_version, latest_dependency_versions_values, previous_versions_values) if new_version: print(f"Updating SDK version to {new_version}") @@ -166,7 +176,8 @@ def main(): save_package_json(SDK_PATH, sdk_pkg) # Update or create the release notes - update_release_md(new_version, latest_dependency_versions, previous_versions) + update_release_md( + new_version, latest_dependency_versions, previous_versions) # Sync package-lock.json inside /sdk print("Running npm install inside /sdk...") @@ -176,5 +187,6 @@ def main(): else: print("No version bump required.") + if __name__ == '__main__': main() diff --git a/scripts/generate_sdk_docs.py b/scripts/generate_sdk_docs.py index 6bb89d0a..e031c2e0 100644 --- a/scripts/generate_sdk_docs.py +++ b/scripts/generate_sdk_docs.py @@ -1,16 +1,18 @@ import os -import shutil import re +import shutil from pathlib import Path # Define source and destination mapping mappings = { - "devtools/docs": "sdk/docs/", + "chainkit/docs": "sdk/docs/", } funcs_dst = "sdk/src/funcs/" # Function to delete old files and folders + + def delete_old_doc_files(directory): """Deletes all files and folders in the specified directory.""" if os.path.exists(directory): @@ -19,6 +21,8 @@ def delete_old_doc_files(directory): os.makedirs(directory, exist_ok=True) # Function to copy files and preserve the internal folder structure + + def copy_and_replace(src, dst, search_text, replace_text): """ Recursively copies files from src to dst, maintaining structure. @@ -27,11 +31,11 @@ def copy_and_replace(src, dst, search_text, replace_text): for root, dirs, files in os.walk(src): # Create the corresponding destination path rel_path = os.path.relpath(root, src) - + # Handle SDK folders separately if rel_path.startswith("sdks"): extract_and_create_func_files(root, files) - + # Create target directory target_dir = os.path.join(dst, rel_path) @@ -57,6 +61,7 @@ def copy_and_replace(src, dst, search_text, replace_text): print(f"📄 Copied and replaced in: {dst_file}") + def extract_and_create_func_files(root, files): """ Scans files for specific SDK function imports and creates corresponding .ts files in sdk/src/func/. @@ -66,7 +71,7 @@ def extract_and_create_func_files(root, files): - files: List of files to process. """ # Regex pattern to find SDK imports - pattern = re.compile(r'@avalanche-sdk/(devtools)/funcs/(\w+)\.js') + pattern = re.compile(r'@avalanche-sdk/(chainkit)/funcs/(\w+)\.js') for file in files: src_file = os.path.join(root, file) @@ -89,7 +94,9 @@ def extract_and_create_func_files(root, files): with open(func_file, "w", encoding="utf-8") as f: f.write(export_statement) - print(f"✅ Created {func_file} with export: {export_statement.strip()}") + print( + f"✅ Created {func_file} with export: {export_statement.strip()}") + def copy_file_with_replacements( src_path: str, @@ -117,7 +124,8 @@ def copy_file_with_replacements( print(f"📄 Reading from: {src_path}") else: content = default_content - print(f"⚠️ Source file not found: {src_path}. Creating destination with default content.") + print( + f"⚠️ Source file not found: {src_path}. Creating destination with default content.") # Apply replacements for old, new in replacements.items(): @@ -132,28 +140,30 @@ def copy_file_with_replacements( with open(dst_path, "w", encoding=encoding) as f: f.write(content) - print(f"✅ File written to {dst_path} with {len(replacements)} replacements.") + print( + f"✅ File written to {dst_path} with {len(replacements)} replacements.") + # Perform the cleanup, copy, and replace operation for each mapping -search_text = "@avalanche-sdk/devtools" +search_text = "@avalanche-sdk/chainkit" replace_text = "@avalanche-sdk/sdk" delete_old_doc_files(funcs_dst) for src, dst in mappings.items(): print(f"\n🔥 Deleting old files in {dst}...") delete_old_doc_files(dst) - + print(f"📂 Copying from {src} to {dst}...") copy_and_replace(src, dst, search_text, replace_text) copy_file_with_replacements( - src_path="devtools/README.md", - dst_path="sdk/README.md", - replacements={ - "@avalanche-sdk/devtools": "@avalanche-sdk/sdk", - "Devtools": "SDK", - }, - default_content="# SDK README\n\nGenerated because the source was missing." - ) + src_path="chainkit/README.md", + dst_path="sdk/README.md", + replacements={ + "@avalanche-sdk/chainkit": "@avalanche-sdk/sdk", + "ChainKit": "SDK", + }, + default_content="# SDK README\n\nGenerated because the source was missing." +) print("\n✅ All files copied, old files deleted, and text replaced successfully!") From eb6bd90e5e288385870a89349188d1998dd2cc47 Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Sat, 9 Aug 2025 02:35:15 +0530 Subject: [PATCH 4/7] chore: modify bug_report --- .github/ISSUE_TEMPLATE/bug_report.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 9c8562f8..6c124234 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -16,7 +16,6 @@ assignees: '' - [ ] `@avalanche-sdk/client` (Core RPC functionality) -- [ ] `@avalanche-sdk/data` (Data analytics and historical data) - [ ] `@avalanche-sdk/chainkit` (All Data, Metrics and Webhooks API support) - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) From 4487166188700cfe325b72f63d7be237f2b6b688 Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Sat, 9 Aug 2025 02:37:39 +0530 Subject: [PATCH 5/7] chore: modify feature_request --- .github/ISSUE_TEMPLATE/feature_request.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 3bb2a8d6..176ec5e0 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -18,7 +18,6 @@ assignees: '' - [ ] `@avalanche-sdk/client` (Core RPC functionality) - [ ] `@avalanche-sdk/chainkit` (All Data, Metrics and Webhooks API support) - [ ] `@avalanche-sdk/interchain` (Cross-chain messaging) -- [ ] `@avalanche-sdk/metrics` (Network metrics and monitoring) - [ ] `@avalanche-sdk/sdk` (Unified SDK - all features) - [ ] Documentation improvements - [ ] Examples and tutorials From 4732d663fc2c19b24a35c8c591b217f7890652a0 Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Sat, 9 Aug 2025 02:46:31 +0530 Subject: [PATCH 6/7] chore: remove devContainer config from gen.yaml --- chainkit/.speakeasy/gen.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/chainkit/.speakeasy/gen.yaml b/chainkit/.speakeasy/gen.yaml index 3f7c8edb..58476882 100644 --- a/chainkit/.speakeasy/gen.yaml +++ b/chainkit/.speakeasy/gen.yaml @@ -1,8 +1,5 @@ configVersion: 2.0.0 generation: - devContainers: - enabled: true - schemaPath: https://glacier-api.avax.network/api-json sdkClassName: Avalanche maintainOpenAPIOrder: true usageSnippets: From 877c484d00f4368698e214641b308941a7a78691 Mon Sep 17 00:00:00 2001 From: Sayan kar Date: Mon, 11 Aug 2025 17:32:48 +0530 Subject: [PATCH 7/7] refactor: modifyt to use chainkit sdk --- CHANGELOG_GUIDELINES.md | 107 + chainkit/.speakeasy/gen.lock | 4 +- chainkit/package.json | 2 +- sdk/RELEASES.md | 70 - sdk/package-lock.json | 3288 ++++------------- sdk/package.json | 2 +- sdk/src/avalanche.ts | 19 +- sdk/src/core.ts | 3 +- .../funcs/dataEvmAddressBalancesGetNative.ts | 2 +- .../dataEvmAddressBalancesListCollectibles.ts | 2 +- .../dataEvmAddressBalancesListErc1155.ts | 2 +- .../funcs/dataEvmAddressBalancesListErc20.ts | 2 +- .../funcs/dataEvmAddressBalancesListErc721.ts | 2 +- sdk/src/funcs/dataEvmAddressChainsList.ts | 2 +- .../dataEvmAddressContractsListDeployments.ts | 2 +- .../funcs/dataEvmAddressTransactionsList.ts | 2 +- .../dataEvmAddressTransactionsListErc1155.ts | 2 +- .../dataEvmAddressTransactionsListErc20.ts | 2 +- .../dataEvmAddressTransactionsListErc721.ts | 2 +- .../dataEvmAddressTransactionsListInternal.ts | 2 +- .../dataEvmAddressTransactionsListNative.ts | 2 +- sdk/src/funcs/dataEvmBlocksGet.ts | 2 +- sdk/src/funcs/dataEvmBlocksListLatest.ts | 2 +- .../funcs/dataEvmBlocksListLatestAllChains.ts | 2 +- .../funcs/dataEvmBlocksListTransactions.ts | 2 +- sdk/src/funcs/dataEvmChainsGet.ts | 2 +- .../funcs/dataEvmChainsGetAddressChains.ts | 2 +- sdk/src/funcs/dataEvmChainsList.ts | 2 +- .../funcs/dataEvmChainsListAllLatestBlocks.ts | 2 +- .../dataEvmChainsListAllLatestTransactions.ts | 2 +- ...ataEvmContractsGetDeploymentTransaction.ts | 2 +- sdk/src/funcs/dataEvmContractsGetMetadata.ts | 2 +- .../funcs/dataEvmContractsListTransfers.ts | 2 +- sdk/src/funcs/dataEvmTransactionsGet.ts | 2 +- .../funcs/dataEvmTransactionsListLatest.ts | 2 +- .../dataEvmTransactionsListLatestAllChains.ts | 2 +- sdk/src/funcs/dataHealthCheck.ts | 2 +- sdk/src/funcs/dataIcmGet.ts | 2 +- sdk/src/funcs/dataIcmList.ts | 2 +- sdk/src/funcs/dataIcmListByAddress.ts | 2 +- sdk/src/funcs/dataNftsGet.ts | 2 +- sdk/src/funcs/dataNftsList.ts | 2 +- sdk/src/funcs/dataNftsReindex.ts | 2 +- .../funcs/dataOperationsExportTransactions.ts | 2 +- sdk/src/funcs/dataOperationsGetResult.ts | 2 +- ...taPrimaryNetworkBalancesListByAddresses.ts | 2 +- sdk/src/funcs/dataPrimaryNetworkBlocksGet.ts | 2 +- .../dataPrimaryNetworkBlocksListByNodeId.ts | 2 +- .../dataPrimaryNetworkBlocksListLatest.ts | 2 +- .../dataPrimaryNetworkGetAssetDetails.ts | 2 +- .../dataPrimaryNetworkGetBlockchainById.ts | 2 +- ...taPrimaryNetworkGetChainIdsForAddresses.ts | 2 +- .../dataPrimaryNetworkGetNetworkDetails.ts | 2 +- .../funcs/dataPrimaryNetworkGetSubnetById.ts | 2 +- .../dataPrimaryNetworkGetValidatorDetails.ts | 2 +- .../dataPrimaryNetworkListBlockchains.ts | 2 +- .../funcs/dataPrimaryNetworkListDelegators.ts | 2 +- .../dataPrimaryNetworkListL1Validators.ts | 2 +- .../funcs/dataPrimaryNetworkListSubnets.ts | 2 +- .../funcs/dataPrimaryNetworkListValidators.ts | 2 +- ...maryNetworkRewardsListHistoricalRewards.ts | 2 +- ...PrimaryNetworkRewardsListPendingRewards.ts | 2 +- .../dataPrimaryNetworkTransactionsGet.ts | 2 +- ...ansactionsListActiveStakingTransactions.ts | 2 +- ...etworkTransactionsListAssetTransactions.ts | 2 +- ...ataPrimaryNetworkTransactionsListLatest.ts | 2 +- .../dataPrimaryNetworkUtxosListByAddresses.ts | 2 +- .../dataPrimaryNetworkVerticesGetByHash.ts | 2 +- .../dataPrimaryNetworkVerticesListByHeight.ts | 2 +- .../dataPrimaryNetworkVerticesListLatest.ts | 2 +- .../funcs/dataSignatureAggregatorAggregate.ts | 2 +- sdk/src/funcs/dataSignatureAggregatorGet.ts | 2 +- .../dataTeleporterGetTeleporterMessage.ts | 2 +- .../dataTeleporterListTeleporterMessages.ts | 2 +- ...leporterListTeleporterMessagesByAddress.ts | 2 +- sdk/src/funcs/dataUsageMetricsGetLogs.ts | 2 +- .../dataUsageMetricsGetRpcUsageMetrics.ts | 2 +- .../dataUsageMetricsGetSubnetRpcUsage.ts | 2 +- sdk/src/funcs/dataUsageMetricsGetUsage.ts | 2 +- sdk/src/funcs/metricsChainsGet.ts | 2 +- sdk/src/funcs/metricsChainsGetMetrics.ts | 2 +- .../metricsChainsGetRollingWindowMetrics.ts | 2 +- .../metricsChainsGetTeleporterMetrics.ts | 2 +- sdk/src/funcs/metricsChainsList.ts | 2 +- ...icsChainsListBTCbBridgersAboveThreshold.ts | 2 +- sdk/src/funcs/metricsChainsListNftHolders.ts | 2 +- ...icsChainsListTokenHoldersAboveThreshold.ts | 2 +- sdk/src/funcs/metricsHealthCheck.ts | 2 +- .../funcs/metricsNetworksGetStakingMetrics.ts | 2 +- sdk/src/funcs/metricsSubnetsGetValidators.ts | 2 +- sdk/src/funcs/webhooksAddressesAdd.ts | 2 +- sdk/src/funcs/webhooksAddressesList.ts | 2 +- sdk/src/funcs/webhooksAddressesRemove.ts | 2 +- sdk/src/funcs/webhooksCreate.ts | 2 +- sdk/src/funcs/webhooksDeactivate.ts | 2 +- .../webhooksGenerateOrRotateSharedSecret.ts | 2 +- sdk/src/funcs/webhooksGet.ts | 2 +- sdk/src/funcs/webhooksGetSharedSecret.ts | 2 +- sdk/src/funcs/webhooksList.ts | 2 +- sdk/src/funcs/webhooksUpdate.ts | 2 +- sdk/src/index.ts | 2 +- sdk/src/lib/config.ts | 2 +- sdk/src/lib/http.ts | 2 +- sdk/src/lib/retries.ts | 2 +- sdk/src/lib/sdks.ts | 2 +- sdk/src/models/components/index.ts | 2 +- sdk/src/models/errors/index.ts | 2 +- sdk/src/models/operations/index.ts | 2 +- sdk/src/types/index.ts | 2 +- 109 files changed, 922 insertions(+), 2775 deletions(-) create mode 100644 CHANGELOG_GUIDELINES.md diff --git a/CHANGELOG_GUIDELINES.md b/CHANGELOG_GUIDELINES.md new file mode 100644 index 00000000..4a64f4f1 --- /dev/null +++ b/CHANGELOG_GUIDELINES.md @@ -0,0 +1,107 @@ +# Changelog Guidelines + +This document provides guidelines for maintaining the changelog for the Avalanche SDK TypeScript suite. + +## 📋 Legend + +- 🚀 **Added** - New features +- 🔧 **Changed** - Changes in existing functionality +- 🐛 **Fixed** - Bug fixes +- ⚠️ **Deprecated** - Features that will be removed +- 🗑️ **Removed** - Removed features +- 🔒 **Security** - Security fixes +- 📚 **Documentation** - Documentation updates +- 🧪 **Testing** - Test improvements +- 🏗️ **Build** - Build system changes + +## 📝 Contributing to Changelog + +When adding new entries to the changelog, please follow these guidelines: + +1. **Use the appropriate emoji** for the type of change +2. **Group changes by type** (Added, Changed, Fixed, etc.) +3. **Be descriptive** but concise +4. **Include breaking changes** prominently +5. **Add dates** for each version +6. **Link to issues/PRs** when relevant + +## Template for New Versions + +```markdown +### [X.Y.Z] - YYYY-MM-DD +**Release Type** (Stable/Beta/Alpha) + +🚀 **Added** +- New feature 1 +- New feature 2 + +🔧 **Changed** +- Change 1 +- Change 2 + +🐛 **Fixed** +- Bug fix 1 +- Bug fix 2 + +⚠️ **Deprecated** +- Deprecated feature 1 + +🗑️ **Removed** +- Removed feature 1 + +🔒 **Security** +- Security fix 1 + +📚 **Documentation** +- Doc update 1 + +🧪 **Testing** +- Test improvement 1 + +🏗️ **Build** +- Build change 1 +``` + +## 📦 SDK Package Structure + +The changelog is organized by SDK package: + +- `@avalanche-sdk/sdk` - Unified SDK +- `@avalanche-sdk/chainkit` - chainkit SDK +- `@avalanche-sdk/client` - Avalanche RPC Client SDK +- `@avalanche-sdk/interchain` - Cross-Chain Messaging SDK + +## 🔄 Version History + +### Previous Releases + +#### [0.0.1] - 2024-12-19 + +**Initial Release** + +🚀 **Added** + +- Initial release with multiple packages in monorepo structure +- Add `@avalanche-sdk/sdk` package - Main SDK combining client and chainkit functionality +- Add `@avalanche-sdk/data` package - Data API SDK for Avalanche network data +- Add `@avalanche-sdk/client` package - Core RPC client with C-Chain, P-Chain, and X-Chain support +- Add `@avalanche-sdk/interchain` package - ICM/ICTT messaging and Teleporter integration +- Add `@avalanche-sdk/chainkit` package - Development tools and utilities +- Add `@avalanche-sdk/metrics` package - Metrics and health check APIs +- Add `@avalanche-sdk/webhooks` package - Webhook handling with signature validation +- Add TypeScript support across all packages +- Add comprehensive documentation +- Add Code of Conduct + +## 🔗 Links + +- [GitHub Repository](https://github.com/ava-labs/avalanche-sdk-typescript) +- [Documentation](https://docs.avax.network) +- [API Reference](https://build.avax.network/docs/api-reference) +- [Discord Community](https://discord.gg/avax) +- [Telegram](https://t.me/+KDajA4iToKY2ZjBk) +- [Twitter](https://x.com/AvaxDevelopers) + +--- + +**🏔️ Built with ❤️ by the Avalanche Team** diff --git a/chainkit/.speakeasy/gen.lock b/chainkit/.speakeasy/gen.lock index e6360498..ecd31602 100644 --- a/chainkit/.speakeasy/gen.lock +++ b/chainkit/.speakeasy/gen.lock @@ -8,8 +8,8 @@ management: releaseVersion: 0.2.3 configChecksum: 17821f6f8da51541fa40b0c3ad0ae389 repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git - repoSubDirectory: devtools - installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/devtools + repoSubDirectory: chainkit + installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/chainkit published: true features: typescript: diff --git a/chainkit/package.json b/chainkit/package.json index b8b24824..da26fd2e 100644 --- a/chainkit/package.json +++ b/chainkit/package.json @@ -25,7 +25,7 @@ "repository": { "type": "git", "url": "https://github.com/ava-labs/avalanche-sdk-typescript.git", - "directory": "devtools" + "directory": "chainkit" }, "scripts": { "lint": "eslint --cache --max-warnings=0 src", diff --git a/sdk/RELEASES.md b/sdk/RELEASES.md index 46de3c56..e69de29b 100644 --- a/sdk/RELEASES.md +++ b/sdk/RELEASES.md @@ -1,70 +0,0 @@ -## 2025-08-04 18:42:49 - -### Changes - -Based on: -- @avalanche-sdk/devtools bumped from 0.0.4 to 0.2.1 - -### Generated - -- [typescript v1.3.0] sdk - -### Releases - -- [NPM v1.3.0] https://www.npmjs.com/package/@avalanche-sdk/sdk/v/1.3.0 - sdk - ---- - -## 2025-04-01 21:48:12 - -### Changes - -Based on: - -- @avalanche-sdk/webhooks bumped from 0.3.1 to 0.3.2 - -### Generated - -- [typescript v1.2.2] sdk - -### Releases - -- [NPM v1.2.2] https://www.npmjs.com/package/@avalanche-sdk/sdk/v/1.2.2 - sdk - ---- - -## 2025-03-31 19:19:46 - -### Changes - -Based on: - -- @avalanche-sdk/data bumped from 0.2.1 to 0.2.2 - -### Generated - -- [typescript v1.2.1] sdk - -### Releases - -- [NPM v1.2.1] https://www.npmjs.com/package/@avalanche-sdk/sdk/v/1.2.1 - sdk - ---- - -## 2025-03-28 01:58:28 - -### Changes - -Based on: - -- @avalanche-sdk/data bumped from 0.2.0 to 0.2.1 - -### Generated - -- [typescript v1.1.0] sdk - -### Releases - -- [NPM v1.1.0] https://www.npmjs.com/package/@avalanche-sdk/sdk/v/1.1.0 - sdk - ---- diff --git a/sdk/package-lock.json b/sdk/package-lock.json index c6803c87..9ccdcf6c 100644 --- a/sdk/package-lock.json +++ b/sdk/package-lock.json @@ -1,16 +1,16 @@ { "name": "@avalanche-sdk/sdk", "version": "1.3.0", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@avalanche-sdk/sdk", "version": "1.3.0", - "license": "MIT", + "license": "BSD-3-Clause", "dependencies": { - "@avalanche-sdk/client": "^0.0.4-alpha.10", - "@avalanche-sdk/devtools": "^0.0.4" + "@avalanche-sdk/chainkit": "^0.3.0", + "@avalanche-sdk/client": "^0.0.4-alpha.10" }, "devDependencies": { "@types/node": "^22.13.10", @@ -29,23 +29,7 @@ "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==", "license": "MIT" }, - "node_modules/@avalanche-sdk/client": { - "version": "0.0.4-alpha.10", - "resolved": "https://registry.npmjs.org/@avalanche-sdk/client/-/client-0.0.4-alpha.10.tgz", - "integrity": "sha512-dcL2/s4rTuWnYi0C0MYr04/TAlYP0BHb9vmGoBn2ekxpV9IAvVpb5GsXhsxWg9MPSHU1C7IhQ4F7twYo5H4EyQ==", - "license": "MIT", - "dependencies": { - "@avalabs/avalanchejs": "^5.0.0", - "@noble/hashes": "1.3.3", - "util": "^0.12.5", - "viem": "2.30.5" - }, - "engines": { - "node": ">=20", - "npm": ">=10" - } - }, - "node_modules/@avalanche-sdk/client/node_modules/@avalabs/avalanchejs": { + "node_modules/@avalabs/avalanchejs": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@avalabs/avalanchejs/-/avalanchejs-5.0.0.tgz", "integrity": "sha512-0hJK/Hdf8v+q05c8+5K6arFmzq7o1W4I05/Dmr+Es1XRi8canvTu1Y0RruYd6ea2rrvX3UhKrPs3BzLhCTHDrw==", @@ -60,31 +44,30 @@ "node": ">=20" } }, - "node_modules/@avalanche-sdk/client/node_modules/@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", - "license": "MIT", - "engines": { - "node": ">= 16" + "node_modules/@avalanche-sdk/chainkit": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@avalanche-sdk/chainkit/-/chainkit-0.3.0.tgz", + "integrity": "sha512-6mkDn1Gmt0OPbOtYUgFXkstkFyRMGEKOU0I6c4igtYO9wkG95WDA00tHvMd06cJprKRWAtfTnPS6kJnOt7k/Rw==", + "dependencies": { + "json-canonicalize": "^1.0.6", + "zod": "^3.20.0" }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@avalanche-sdk/client/node_modules/@scure/base": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", - "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" + "bin": { + "mcp": "bin/mcp-server.js" + }, + "peerDependencies": { + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" + }, + "peerDependenciesMeta": { + "@modelcontextprotocol/sdk": { + "optional": true + } } }, "node_modules/@avalanche-sdk/client": { - "version": "0.0.4-alpha.9", - "resolved": "https://registry.npmjs.org/@avalanche-sdk/client/-/client-0.0.4-alpha.9.tgz", - "integrity": "sha512-U6qNiN8c9JdIDxy0e7uATbq0mudn9uMfL8//y+5MKPvRmCDP3HNlhRlZhPqjEeMfAh7JeVJU1o7qDAJyNLmKCg==", + "version": "0.0.4-alpha.10", + "resolved": "https://registry.npmjs.org/@avalanche-sdk/client/-/client-0.0.4-alpha.10.tgz", + "integrity": "sha512-dcL2/s4rTuWnYi0C0MYr04/TAlYP0BHb9vmGoBn2ekxpV9IAvVpb5GsXhsxWg9MPSHU1C7IhQ4F7twYo5H4EyQ==", "license": "MIT", "dependencies": { "@avalabs/avalanchejs": "^5.0.0", @@ -97,67 +80,12 @@ "npm": ">=10" } }, - "node_modules/@avalanche-sdk/client/node_modules/@avalabs/avalanchejs": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@avalabs/avalanchejs/-/avalanchejs-5.0.0.tgz", - "integrity": "sha512-0hJK/Hdf8v+q05c8+5K6arFmzq7o1W4I05/Dmr+Es1XRi8canvTu1Y0RruYd6ea2rrvX3UhKrPs3BzLhCTHDrw==", - "dependencies": { - "@noble/curves": "1.3.0", - "@noble/hashes": "1.3.3", - "@noble/secp256k1": "2.0.0", - "@scure/base": "1.1.5", - "micro-eth-signer": "0.7.2" - }, - "engines": { - "node": ">=20" - } - }, - "node_modules/@avalanche-sdk/client/node_modules/@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@avalanche-sdk/client/node_modules/@scure/base": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", - "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@avalanche-sdk/devtools": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@avalanche-sdk/devtools/-/devtools-0.2.1.tgz", - "integrity": "sha512-FL4bL8IW0mZE9PxCDAhn9rMzyrmCT1inYfFFbHUP8QyQJYPH6X1eHc6P2T0lBRVxlekJMWaV52V5VUuMJ1LD1g==", - "dependencies": { - "json-canonicalize": "^1.0.6" - }, - "bin": { - "mcp": "bin/mcp-server.js" - }, - "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", - "zod": "^3" - }, - "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - } - } - }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -166,10 +94,11 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", - "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", "dev": true, + "license": "MIT", "dependencies": { "eslint-visitor-keys": "^3.4.3" }, @@ -183,32 +112,22 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/@eslint-community/regexpp": { "version": "4.12.1", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, + "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", @@ -218,20 +137,46 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.15" }, @@ -240,10 +185,11 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -262,13 +208,51 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz", + "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" } }, "node_modules/@eslint/object-schema": { @@ -276,17 +260,19 @@ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.12.0", + "@eslint/core": "^0.15.2", "levn": "^0.4.1" }, "engines": { @@ -310,6 +296,7 @@ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=18.18.0" } @@ -319,6 +306,7 @@ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@humanfs/core": "^0.19.1", "@humanwhocodes/retry": "^0.3.0" @@ -332,6 +320,7 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=18.18" }, @@ -345,6 +334,7 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=12.22" }, @@ -354,10 +344,11 @@ } }, "node_modules/@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=18.18" }, @@ -366,11 +357,35 @@ "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -388,21 +403,24 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "dev": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -432,7 +450,7 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@noble/curves/node_modules/@noble/hashes": { + "node_modules/@noble/hashes": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", @@ -444,18 +462,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/@noble/secp256k1": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-2.0.0.tgz", @@ -473,6 +479,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -486,6 +493,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -495,6 +503,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -504,9 +513,9 @@ } }, "node_modules/@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", + "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==", "license": "MIT", "funding": { "url": "https://paulmillr.com/funding/" @@ -527,9 +536,9 @@ } }, "node_modules/@scure/bip32/node_modules/@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.6.tgz", + "integrity": "sha512-GIKz/j99FRthB8icyJQA51E8Uk5hXmdyThjgQXRKiv9h0zeRlzSCLIzFw6K1LotZ3XuB7yzlf76qk7uBmTdFqA==", "license": "MIT", "dependencies": { "@noble/hashes": "1.8.0" @@ -541,6 +550,27 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/@scure/bip32/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip32/node_modules/@scure/base": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", + "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@scure/bip39": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", @@ -554,66 +584,95 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@scure/base": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", + "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", + "license": "MIT", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@tsconfig/node10": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", + "version": "22.17.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.17.1.tgz", + "integrity": "sha512-y3tBaz+rjspDTylNjAX37jEC3TETEFGNJL6uQDxwF9/8GLLIjW1rvVHlynyuUKMnMr1Roq8jOv3vkopBjC4/VA==", "dev": true, + "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~6.21.0" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.27.0.tgz", - "integrity": "sha512-4henw4zkePi5p252c8ncBLzLce52SEUz2Ebj8faDnuUXz2UuHEONYcJ+G0oaCF+bYCWVZtrGzq3FD7YXetmnSA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.0.tgz", + "integrity": "sha512-bhEz6OZeUR+O/6yx9Jk6ohX6H9JSFTaiY0v9/PuKT3oGK0rn0jNplLmyFUGV+a9gfYnVNwGDwS/UkLIuXNb2Rw==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/type-utils": "8.27.0", - "@typescript-eslint/utils": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/type-utils": "8.39.0", + "@typescript-eslint/utils": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "graphemer": "^1.4.0", - "ignore": "^5.3.1", + "ignore": "^7.0.0", "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -623,21 +682,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "@typescript-eslint/parser": "^8.39.0", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.27.0.tgz", - "integrity": "sha512-XGwIabPallYipmcOk45DpsBSgLC64A0yvdAkrwEzwZ2viqGqRUJ8eEYoPz0CWnutgAFbNMPdsGGvzjSmcWVlEA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.0.tgz", + "integrity": "sha512-g3WpVQHngx0aLXn6kfIYCZxM6rRJlWzEkVpqEFLT3SgEDsp9cpCbxxgwnE504q4H+ruSDh/VGS6nqZIDynP+vg==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/typescript-estree": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4" }, "engines": { @@ -649,36 +709,78 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.0.tgz", + "integrity": "sha512-CTzJqaSq30V/Z2Og9jogzZt8lJRR5TKlAdXmWgdu4hgcC9Kww5flQ+xFvMxIBWVNdxJO7OifgdOK4PokMIWPew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.39.0", + "@typescript-eslint/types": "^8.39.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.27.0.tgz", - "integrity": "sha512-8oI9GwPMQmBryaaxG1tOZdxXVeMDte6NyJA4i7/TWa4fBwgnAXYlIQP+uYOeqAaLJ2JRxlG9CAyL+C+YE9Xknw==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.0.tgz", + "integrity": "sha512-8QOzff9UKxOh6npZQ/4FQu4mjdOCGSdO3p44ww0hk8Vu+IGbg0tB/H1LcTARRDzGCC8pDGbh2rissBuuoPgH8A==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0" + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.0.tgz", + "integrity": "sha512-Fd3/QjmFV2sKmvv3Mrj8r6N8CryYiCS8Wdb/6/rgOXAWGcFuc+VkQuG28uk/4kVNVZBQuuDHEDUpo/pQ32zsIQ==", + "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.27.0.tgz", - "integrity": "sha512-wVArTVcz1oJOIEJxui/nRhV0TXzD/zMSOYi/ggCfNq78EIszddXcJb7r4RCp/oBrjt8n9A0BSxRMKxHftpDxDA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.0.tgz", + "integrity": "sha512-6B3z0c1DXVT2vYA9+z9axjtc09rqKUPRmijD5m9iv8iQpHBRYRMBcgxSiKTZKm6FwWw1/cI4v6em35OsKCiN5Q==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.27.0", - "@typescript-eslint/utils": "8.27.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0", "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -689,14 +791,15 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.27.0.tgz", - "integrity": "sha512-/6cp9yL72yUHAYq9g6DsAU+vVfvQmd1a8KyA81uvfDE21O2DwQ/qxlM4AR8TSdAu+kJLBDrEHKC5/W2/nxsY0A==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.0.tgz", + "integrity": "sha512-ArDdaOllnCj3yn/lzKn9s0pBQYmmyme/v1HbGIGB0GB/knFI3fWMHloC+oYTJW46tVbYnGKTMDK4ah1sC2v0Kg==", "dev": true, + "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -706,19 +809,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.27.0.tgz", - "integrity": "sha512-BnKq8cqPVoMw71O38a1tEb6iebEgGA80icSxW7g+kndx0o6ot6696HjG7NdgfuAVmVEtwXUr3L8R9ZuVjoQL6A==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.0.tgz", + "integrity": "sha512-ndWdiflRMvfIgQRpckQQLiB5qAKQ7w++V4LlCHwp62eym1HLB/kw7D9f2e8ytONls/jt89TEasgvb+VwnRprsw==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", + "@typescript-eslint/project-service": "8.39.0", + "@typescript-eslint/tsconfig-utils": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -728,43 +834,20 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.27.0.tgz", - "integrity": "sha512-njkodcwH1yvmo31YWgRHNb/x1Xhhq4/m81PhtvmRngD8iHPehxffz1SNCO+kwaePhATC+kOa/ggmvPoPza5i0Q==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.0.tgz", + "integrity": "sha512-4GVSvNA0Vx1Ktwvf4sFE+exxJ3QGUorQG1/A5mRfRNZtkBT2xrA/BCO2H0eALx/PnvCS6/vmYwRdDA41EoffkQ==", "dev": true, + "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/typescript-estree": "8.27.0" + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -775,17 +858,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.27.0.tgz", - "integrity": "sha512-WsXQwMkILJvffP6z4U3FYJPlbf/j07HIxmDjZpbNvBJkMfvwXj5ACRkkHwBDvLBbDbtX5TdU64/rcvKJ/vuInQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.0.tgz", + "integrity": "sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.27.0", - "eslint-visitor-keys": "^4.2.0" + "@typescript-eslint/types": "8.39.0", + "eslint-visitor-keys": "^4.2.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -795,6 +879,19 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/abitype": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.8.tgz", @@ -817,10 +914,11 @@ } }, "node_modules/acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -833,6 +931,7 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -842,6 +941,7 @@ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", "dev": true, + "license": "MIT", "dependencies": { "acorn": "^8.11.0" }, @@ -854,6 +954,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -870,6 +971,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -882,6 +984,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -897,6 +1000,7 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -909,28 +1013,15 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true, + "license": "Python-2.0" }, "node_modules/available-typed-arrays": { "version": "1.0.7", @@ -951,13 +1042,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -966,13 +1059,13 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { @@ -980,6 +1073,7 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -1039,6 +1133,7 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1048,6 +1143,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1064,6 +1160,7 @@ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, + "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -1088,6 +1185,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -1100,6 +1198,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1111,25 +1210,29 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1140,10 +1243,11 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -1160,24 +1264,8 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true, + "license": "MIT" }, "node_modules/define-data-property": { "version": "1.1.4", @@ -1201,6 +1289,7 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } @@ -1223,13 +1312,15 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/es-define-property": { "version": "1.0.1", @@ -1266,6 +1357,7 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -1274,19 +1366,20 @@ } }, "node_modules/eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz", + "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.33.0", + "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -1297,9 +1390,9 @@ "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -1334,10 +1427,11 @@ } }, "node_modules/eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -1350,10 +1444,35 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1361,16 +1480,53 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.14.0", + "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -1383,6 +1539,7 @@ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -1395,6 +1552,7 @@ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -1407,6 +1565,7 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -1416,6 +1575,7 @@ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -1430,13 +1590,15 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -1453,6 +1615,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -1464,19 +1627,22 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fastq": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -1486,6 +1652,7 @@ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, + "license": "MIT", "dependencies": { "flat-cache": "^4.0.0" }, @@ -1498,6 +1665,7 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -1510,6 +1678,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -1526,6 +1695,7 @@ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, + "license": "MIT", "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" @@ -1538,22 +1708,8 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true, + "license": "ISC" }, "node_modules/for-each": { "version": "0.3.5", @@ -1575,6 +1731,7 @@ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, + "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -1592,6 +1749,7 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -1647,14 +1805,15 @@ } }, "node_modules/glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", "dev": true, + "license": "ISC", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" @@ -1674,6 +1833,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, @@ -1681,22 +1841,14 @@ "node": ">=10.13.0" } }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/glob/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -1710,6 +1862,7 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -1733,13 +1886,15 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1796,10 +1951,11 @@ } }, "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } @@ -1809,6 +1965,7 @@ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -1825,6 +1982,7 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -1856,6 +2014,7 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -1880,6 +2039,7 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1889,6 +2049,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1916,6 +2077,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -1928,6 +2090,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -1969,7 +2132,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/isows": { "version": "1.0.7", @@ -1987,10 +2151,11 @@ } }, "node_modules/jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -2006,6 +2171,7 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -2017,30 +2183,35 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-canonicalize": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/json-canonicalize/-/json-canonicalize-1.0.6.tgz", - "integrity": "sha512-kP2iYpOS5SZHYhIaR1t9oG80d4uTY3jPoaBj+nimy3njtJk8+sRsVatN8pyJRDRtk9Su3+6XqA2U8k0dByJBUQ==" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/json-canonicalize/-/json-canonicalize-1.2.0.tgz", + "integrity": "sha512-TTdjBvqrqJKSADlEsY5rWbx8/1tOrVlTR/aSLU8N2VSInCTffP0p+byYB8Es+OmL4ZOeEftjUdvV+eJeSzJC/Q==", + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } @@ -2050,6 +2221,7 @@ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -2063,6 +2235,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -2077,13 +2250,15 @@ "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lru-cache": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", - "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", "dev": true, + "license": "ISC", "engines": { "node": "20 || >=22" } @@ -2092,7 +2267,8 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/math-intrinsics": { "version": "1.1.0", @@ -2108,6 +2284,7 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -2125,27 +2302,6 @@ "micro-packed": "~0.5.1" } }, - "node_modules/micro-eth-signer/node_modules/@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==", - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/micro-eth-signer/node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/micro-packed": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.5.3.tgz", @@ -2158,20 +2314,12 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/micro-packed/node_modules/@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -2181,15 +2329,19 @@ } }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/minipass": { @@ -2197,6 +2349,7 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, + "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } @@ -2206,6 +2359,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", "dev": true, + "license": "MIT", "bin": { "mkdirp": "dist/cjs/src/bin.js" }, @@ -2220,19 +2374,22 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2242,6 +2399,7 @@ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, + "license": "MIT", "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -2285,9 +2443,9 @@ } }, "node_modules/ox/node_modules/@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.6.tgz", + "integrity": "sha512-GIKz/j99FRthB8icyJQA51E8Uk5hXmdyThjgQXRKiv9h0zeRlzSCLIzFw6K1LotZ3XuB7yzlf76qk7uBmTdFqA==", "license": "MIT", "dependencies": { "@noble/hashes": "1.8.0" @@ -2299,11 +2457,24 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/ox/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -2319,6 +2490,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -2333,13 +2505,15 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true + "dev": true, + "license": "BlueOak-1.0.0" }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -2352,6 +2526,7 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2361,6 +2536,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2370,6 +2546,7 @@ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" @@ -2386,6 +2563,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -2398,6 +2576,7 @@ "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" }, @@ -2419,6 +2598,7 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8.0" } @@ -2428,6 +2608,7 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2450,13 +2631,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -2469,6 +2652,7 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -2478,6 +2662,7 @@ "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-2.0.0.tgz", "integrity": "sha512-jpKjLibLuc8D1XEV2+7zb0aqN7I8d12u89g/v6IsgCzdVlccMQJq4TKkPw5fbhHdxhm7nbVtN+KvOTnjFf+nEA==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "glob": "^11.0.0", "walk-up-path": "^4.0.0" @@ -2494,6 +2679,7 @@ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -2504,6 +2690,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz", "integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==", "dev": true, + "license": "ISC", "dependencies": { "glob": "^11.0.0", "package-json-from-dist": "^1.0.0" @@ -2537,6 +2724,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -2559,10 +2747,11 @@ } }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -2592,6 +2781,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2604,6 +2794,7 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2613,6 +2804,7 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, + "license": "ISC", "engines": { "node": ">=14" }, @@ -2625,6 +2817,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, + "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -2643,6 +2836,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -2657,6 +2851,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2665,13 +2860,15 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2684,6 +2881,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -2700,6 +2898,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2712,6 +2911,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2721,6 +2921,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -2733,6 +2934,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -2745,6 +2947,7 @@ "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-2.0.1.tgz", "integrity": "sha512-NI1mo514yFhr8pV/5Etvgh+pSBUIpoAKoiBIUwALVlQQNAwb40bTw8hhPFaip/dvv0GhpHVOq0vq8iY02ppLTg==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "glob": "^11.0.0", "mkdirp": "^3.0.1", @@ -2767,6 +2970,7 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -2775,10 +2979,11 @@ } }, "node_modules/ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=18.12" }, @@ -2791,6 +2996,7 @@ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, + "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -2834,6 +3040,7 @@ "resolved": "https://registry.npmjs.org/tshy/-/tshy-3.0.2.tgz", "integrity": "sha512-8GkWnAfmNXxl8iDTZ1o2H4jdaj9H7HeDKkr5qd0ZhQBCNA41D3xqTyg2Ycs51VCfmjJ5e+0v9AUmD6ylAI9Bgw==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "chalk": "^5.3.0", "chokidar": "^3.6.0", @@ -2854,20 +3061,12 @@ "node": "20 || >=22" } }, - "node_modules/tshy/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/tshy/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.5.0.tgz", + "integrity": "sha512-1tm8DTaJhPBG3bIkVeZt1iZM9GfSX2lzOeDVZH9R9ffRHpmHvxZ/QhgQH/aDTkswQVt+YHdXAdS/In/30OjCbg==", "dev": true, + "license": "MIT", "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -2876,12 +3075,13 @@ } }, "node_modules/tshy/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "@isaacs/brace-expansion": "^5.0.0" }, "engines": { "node": "20 || >=22" @@ -2895,6 +3095,7 @@ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -2903,10 +3104,11 @@ } }, "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "devOptional": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -2916,14 +3118,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.27.0.tgz", - "integrity": "sha512-ZZ/8+Y0rRUMuW1gJaPtLWe4ryHbsPLzzibk5Sq+IFa2aOH1Vo0gPr1fbA6pOnzBke7zC2Da4w8AyCgxKXo3lqA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.0.tgz", + "integrity": "sha512-lH8FvtdtzcHJCkMOKnN73LIn6SLTpoojgJqDAxPm1jCR14eWSGPX8ul/gggBdPMk/d5+u9V854vTYQ8T5jF/1Q==", "dev": true, + "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.27.0", - "@typescript-eslint/parser": "8.27.0", - "@typescript-eslint/utils": "8.27.0" + "@typescript-eslint/eslint-plugin": "8.39.0", + "@typescript-eslint/parser": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2934,20 +3138,22 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } @@ -2969,7 +3175,8 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/viem": { "version": "2.30.5", @@ -3016,11 +3223,24 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/viem/node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/walk-up-path": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", "dev": true, + "license": "ISC", "engines": { "node": "20 || >=22" } @@ -3030,6 +3250,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -3066,6 +3287,7 @@ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3075,6 +3297,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -3093,6 +3316,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3110,6 +3334,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3118,13 +3343,15 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -3139,6 +3366,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -3151,6 +3379,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -3184,6 +3413,7 @@ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -3193,6 +3423,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3201,2138 +3432,13 @@ } }, "node_modules/zod": { - "version": "3.24.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", - "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", - "peer": true, + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } } - }, - "dependencies": { - "@adraffy/ens-normalize": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz", - "integrity": "sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==" - }, - "@avalanche-sdk/client": { - "version": "0.0.4-alpha.10", - "resolved": "https://registry.npmjs.org/@avalanche-sdk/client/-/client-0.0.4-alpha.10.tgz", - "integrity": "sha512-dcL2/s4rTuWnYi0C0MYr04/TAlYP0BHb9vmGoBn2ekxpV9IAvVpb5GsXhsxWg9MPSHU1C7IhQ4F7twYo5H4EyQ==", - "requires": { - "@avalabs/avalanchejs": "^5.0.0", - "@noble/hashes": "1.3.3", - "util": "^0.12.5", - "viem": "2.30.5" - }, - "dependencies": { - "@avalabs/avalanchejs": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@avalabs/avalanchejs/-/avalanchejs-5.0.0.tgz", - "integrity": "sha512-0hJK/Hdf8v+q05c8+5K6arFmzq7o1W4I05/Dmr+Es1XRi8canvTu1Y0RruYd6ea2rrvX3UhKrPs3BzLhCTHDrw==", - "requires": { - "@noble/curves": "1.3.0", - "@noble/hashes": "1.3.3", - "@noble/secp256k1": "2.0.0", - "@scure/base": "1.1.5", - "micro-eth-signer": "0.7.2" - } - }, - "@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==" - }, - "@scure/base": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.5.tgz", - "integrity": "sha512-Brj9FiG2W1MRQSTB212YVPRrcbjkv48FoZi/u4l/zds/ieRrqsh7aUf6CLwkAq61oKXr/ZlTzlY66gLIj3TFTQ==" - } - } - }, - "@avalanche-sdk/devtools": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@avalanche-sdk/devtools/-/devtools-0.0.4.tgz", - "integrity": "sha512-rlHiabBQhdBRdS/H1zQuQGQ1nUsNqWmDvOnkIOlsRTz8GgYytiriJxUYHLvnnEtWuzlqq7l7Vhq9OQ0xt3MA1Q==", - "requires": { - "json-canonicalize": "^1.0.6" - } - }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - } - }, - "@eslint-community/eslint-utils": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", - "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.4.3" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - } - } - }, - "@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true - }, - "@eslint/config-array": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", - "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", - "dev": true, - "requires": { - "@eslint/object-schema": "^2.1.6", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - } - }, - "@eslint/config-helpers": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", - "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", - "dev": true - }, - "@eslint/core": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", - "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.15" - } - }, - "@eslint/eslintrc": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", - "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - } - }, - "@eslint/js": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", - "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", - "dev": true - }, - "@eslint/object-schema": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", - "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", - "dev": true - }, - "@eslint/plugin-kit": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", - "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", - "dev": true, - "requires": { - "@eslint/core": "^0.12.0", - "levn": "^0.4.1" - } - }, - "@ethereumjs/rlp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-5.0.0.tgz", - "integrity": "sha512-WuS1l7GJmB0n0HsXLozCoEFc9IwYgf3l0gCkKVYgR67puVF1O4OpEaN0hWmm1c+iHUHFCKt1hJrvy5toLg+6ag==" - }, - "@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true - }, - "@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "requires": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "dependencies": { - "@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true - } - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/retry": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", - "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", - "dev": true - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@noble/ciphers": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", - "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==" - }, - "@noble/curves": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.3.0.tgz", - "integrity": "sha512-t01iSXPuN+Eqzb4eBX0S5oubSqXbK/xXa1Ne18Hj8f9pStxztHCE2gfboSp/dZRLSqfuLpRK2nDXDK+W9puocA==", - "requires": { - "@noble/hashes": "1.3.3" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==" - } - } - }, - "@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==" - }, - "@noble/secp256k1": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-2.0.0.tgz", - "integrity": "sha512-rUGBd95e2a45rlmFTqQJYEFA4/gdIARFfuTuTqLglz0PZ6AKyzyXsEZZq7UZn8hZsvaBgpCzKKBJizT2cJERXw==" - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==" - }, - "@scure/bip32": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz", - "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==", - "requires": { - "@noble/curves": "~1.9.0", - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - }, - "dependencies": { - "@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "requires": { - "@noble/hashes": "1.8.0" - } - } - } - }, - "@scure/bip39": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", - "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==", - "requires": { - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - } - }, - "@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true - }, - "@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "@types/node": { - "version": "22.13.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", - "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", - "dev": true, - "requires": { - "undici-types": "~6.20.0" - } - }, - "@typescript-eslint/eslint-plugin": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.27.0.tgz", - "integrity": "sha512-4henw4zkePi5p252c8ncBLzLce52SEUz2Ebj8faDnuUXz2UuHEONYcJ+G0oaCF+bYCWVZtrGzq3FD7YXetmnSA==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/type-utils": "8.27.0", - "@typescript-eslint/utils": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", - "graphemer": "^1.4.0", - "ignore": "^5.3.1", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/parser": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.27.0.tgz", - "integrity": "sha512-XGwIabPallYipmcOk45DpsBSgLC64A0yvdAkrwEzwZ2viqGqRUJ8eEYoPz0CWnutgAFbNMPdsGGvzjSmcWVlEA==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/typescript-estree": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.27.0.tgz", - "integrity": "sha512-8oI9GwPMQmBryaaxG1tOZdxXVeMDte6NyJA4i7/TWa4fBwgnAXYlIQP+uYOeqAaLJ2JRxlG9CAyL+C+YE9Xknw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0" - } - }, - "@typescript-eslint/type-utils": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.27.0.tgz", - "integrity": "sha512-wVArTVcz1oJOIEJxui/nRhV0TXzD/zMSOYi/ggCfNq78EIszddXcJb7r4RCp/oBrjt8n9A0BSxRMKxHftpDxDA==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "8.27.0", - "@typescript-eslint/utils": "8.27.0", - "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" - } - }, - "@typescript-eslint/types": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.27.0.tgz", - "integrity": "sha512-/6cp9yL72yUHAYq9g6DsAU+vVfvQmd1a8KyA81uvfDE21O2DwQ/qxlM4AR8TSdAu+kJLBDrEHKC5/W2/nxsY0A==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.27.0.tgz", - "integrity": "sha512-BnKq8cqPVoMw71O38a1tEb6iebEgGA80icSxW7g+kndx0o6ot6696HjG7NdgfuAVmVEtwXUr3L8R9ZuVjoQL6A==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/visitor-keys": "8.27.0", - "debug": "^4.3.4", - "fast-glob": "^3.3.2", - "is-glob": "^4.0.3", - "minimatch": "^9.0.4", - "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "@typescript-eslint/utils": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.27.0.tgz", - "integrity": "sha512-njkodcwH1yvmo31YWgRHNb/x1Xhhq4/m81PhtvmRngD8iHPehxffz1SNCO+kwaePhATC+kOa/ggmvPoPza5i0Q==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.27.0", - "@typescript-eslint/types": "8.27.0", - "@typescript-eslint/typescript-estree": "8.27.0" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.27.0.tgz", - "integrity": "sha512-WsXQwMkILJvffP6z4U3FYJPlbf/j07HIxmDjZpbNvBJkMfvwXj5ACRkkHwBDvLBbDbtX5TdU64/rcvKJ/vuInQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "8.27.0", - "eslint-visitor-keys": "^4.2.0" - } - }, - "abitype": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.0.8.tgz", - "integrity": "sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==", - "requires": {} - }, - "acorn": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", - "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", - "dev": true, - "requires": { - "acorn": "^8.11.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "requires": { - "possible-typed-array-names": "^1.0.0" - } - }, - "available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "requires": { - "possible-typed-array-names": "^1.0.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "requires": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - } - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, - "requires": { - "ms": "^2.1.3" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "requires": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - } - }, - "define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "requires": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - } - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "requires": { - "es-errors": "^1.3.0" - } - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "9.22.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", - "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.19.2", - "@eslint/config-helpers": "^0.1.0", - "@eslint/core": "^0.12.0", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "9.22.0", - "@eslint/plugin-kit": "^0.2.7", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - } - }, - "eslint-scope": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", - "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true - }, - "espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "requires": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - } - }, - "esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "eventemitter3": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==" - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "requires": { - "flat-cache": "^4.0.0" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "requires": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - } - }, - "flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "requires": { - "is-callable": "^1.2.7" - } - }, - "for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "requires": { - "is-callable": "^1.2.7" - } - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - } - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "glob": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", - "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "requires": { - "es-define-property": "^1.0.0" - } - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" - }, - "has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "requires": { - "has-symbols": "^1.0.3" - } - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "requires": { - "function-bind": "^1.1.2" - } - }, - "has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "requires": { - "es-define-property": "^1.0.0" - } - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" - }, - "has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "requires": { - "has-symbols": "^1.0.3" - } - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "requires": { - "function-bind": "^1.1.2" - } - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "requires": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "requires": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-generator-function": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", - "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", - "requires": { - "call-bound": "^1.0.3", - "get-proto": "^1.0.0", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - } - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "requires": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - } - }, - "is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "requires": { - "which-typed-array": "^1.1.16" - } - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "isows": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", - "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", - "requires": {} - }, - "jackspeak": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", - "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "json-canonicalize": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/json-canonicalize/-/json-canonicalize-1.0.6.tgz", - "integrity": "sha512-kP2iYpOS5SZHYhIaR1t9oG80d4uTY3jPoaBj+nimy3njtJk8+sRsVatN8pyJRDRtk9Su3+6XqA2U8k0dByJBUQ==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "requires": { - "json-buffer": "3.0.1" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "lru-cache": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", - "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", - "dev": true - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micro-eth-signer": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/micro-eth-signer/-/micro-eth-signer-0.7.2.tgz", - "integrity": "sha512-uFH23nqPNdg2KZ9ZdvLG4GO3bTAOWRhwGTsecY4Et2IdQOJ26x6inu8lJ9oyslnYL/0o1vnETCGhMimMvO0SqQ==", - "requires": { - "@ethereumjs/rlp": "5.0.0", - "@noble/curves": "~1.3.0", - "@noble/hashes": "~1.3.3", - "@scure/base": "~1.1.5", - "micro-packed": "~0.5.1" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.3.tgz", - "integrity": "sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==" - }, - "@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==" - } - } - }, - "micro-packed": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.5.3.tgz", - "integrity": "sha512-zWRoH+qUb/ZMp9gVZhexvRGCENDM5HEQF4sflqpdilUHWK2/zKR7/MT8GBctnTwbhNJwy1iuk5q6+TYP7/twYA==", - "requires": { - "@scure/base": "~1.1.5" - }, - "dependencies": { - "@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==" - } - } - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true - }, - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - } - }, - "ox": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ox/-/ox-0.7.1.tgz", - "integrity": "sha512-+k9fY9PRNuAMHRFIUbiK9Nt5seYHHzSQs9Bj+iMETcGtlpS7SmBzcGSVUQO3+nqGLEiNK4598pHNFlVRaZbRsg==", - "requires": { - "@adraffy/ens-normalize": "^1.10.1", - "@noble/ciphers": "^1.3.0", - "@noble/curves": "^1.6.0", - "@noble/hashes": "^1.5.0", - "@scure/bip32": "^1.5.0", - "@scure/bip39": "^1.4.0", - "abitype": "^1.0.6", - "eventemitter3": "5.0.1" - }, - "dependencies": { - "@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "requires": { - "@noble/hashes": "1.8.0" - } - } - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", - "dev": true, - "requires": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - } - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "polite-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/polite-json/-/polite-json-5.0.0.tgz", - "integrity": "sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==", - "dev": true - }, - "possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==" - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "resolve-import": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-import/-/resolve-import-2.0.0.tgz", - "integrity": "sha512-jpKjLibLuc8D1XEV2+7zb0aqN7I8d12u89g/v6IsgCzdVlccMQJq4TKkPw5fbhHdxhm7nbVtN+KvOTnjFf+nEA==", - "dev": true, - "requires": { - "glob": "^11.0.0", - "walk-up-path": "^4.0.0" - } - }, - "reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true - }, - "rimraf": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz", - "integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==", - "dev": true, - "requires": { - "glob": "^11.0.0", - "package-json-from-dist": "^1.0.0" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - } - }, - "semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true - }, - "set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "requires": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - } - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "sync-content": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/sync-content/-/sync-content-2.0.1.tgz", - "integrity": "sha512-NI1mo514yFhr8pV/5Etvgh+pSBUIpoAKoiBIUwALVlQQNAwb40bTw8hhPFaip/dvv0GhpHVOq0vq8iY02ppLTg==", - "dev": true, - "requires": { - "glob": "^11.0.0", - "mkdirp": "^3.0.1", - "path-scurry": "^2.0.0", - "rimraf": "^6.0.0", - "tshy": "^3.0.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", - "dev": true, - "requires": {} - }, - "ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "requires": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - } - }, - "tshy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tshy/-/tshy-3.0.2.tgz", - "integrity": "sha512-8GkWnAfmNXxl8iDTZ1o2H4jdaj9H7HeDKkr5qd0ZhQBCNA41D3xqTyg2Ycs51VCfmjJ5e+0v9AUmD6ylAI9Bgw==", - "dev": true, - "requires": { - "chalk": "^5.3.0", - "chokidar": "^3.6.0", - "foreground-child": "^3.1.1", - "minimatch": "^10.0.0", - "mkdirp": "^3.0.1", - "polite-json": "^5.0.0", - "resolve-import": "^2.0.0", - "rimraf": "^6.0.0", - "sync-content": "^2.0.1", - "typescript": "^5.5.3", - "walk-up-path": "^4.0.0" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true - }, - "minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", - "devOptional": true - }, - "typescript-eslint": { - "version": "8.27.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.27.0.tgz", - "integrity": "sha512-ZZ/8+Y0rRUMuW1gJaPtLWe4ryHbsPLzzibk5Sq+IFa2aOH1Vo0gPr1fbA6pOnzBke7zC2Da4w8AyCgxKXo3lqA==", - "dev": true, - "requires": { - "@typescript-eslint/eslint-plugin": "8.27.0", - "@typescript-eslint/parser": "8.27.0", - "@typescript-eslint/utils": "8.27.0" - } - }, - "undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", - "dev": true - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "requires": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "viem": { - "version": "2.30.5", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.30.5.tgz", - "integrity": "sha512-YymUl7AKsIw3BhQLZxr3j+g8OwqsxmV3xu7zDMmmuFACtvQ3YZaFsKrH7N8eTXpPHYgMlClvKIjgXS8Twt+sQQ==", - "requires": { - "@noble/curves": "1.9.1", - "@noble/hashes": "1.8.0", - "@scure/bip32": "1.7.0", - "@scure/bip39": "1.6.0", - "abitype": "1.0.8", - "isows": "1.0.7", - "ox": "0.7.1", - "ws": "8.18.2" - }, - "dependencies": { - "@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "requires": { - "@noble/hashes": "1.8.0" - } - } - } - }, - "walk-up-path": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", - "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "requires": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "ws": { - "version": "8.18.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz", - "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==", - "requires": {} - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - }, - "zod": { - "version": "3.24.2", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", - "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", - "peer": true - } } } diff --git a/sdk/package.json b/sdk/package.json index abc32927..7a9d317d 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@avalanche-sdk/client": "^0.0.4-alpha.10", - "@avalanche-sdk/devtools": "^0.2.1" + "@avalanche-sdk/chainkit": "^0.3.0" }, "devDependencies": { "eslint": "^9.22.0", diff --git a/sdk/src/avalanche.ts b/sdk/src/avalanche.ts index 0abc944c..69ee98c2 100644 --- a/sdk/src/avalanche.ts +++ b/sdk/src/avalanche.ts @@ -1,21 +1,26 @@ -import { Avalanche as AvalancheDevtools, SDKOptions as DevtoolsSDKOptions } from "@avalanche-sdk/devtools"; +import { + Avalanche as Avalanchechainkit, + SDKOptions as chainkitSDKOptions, +} from "@avalanche-sdk/chainkit"; export class Avalanche { - public devtoolsInstance: AvalancheDevtools; + public chainkitInstance: Avalanchechainkit; - constructor(config: DevtoolsSDKOptions) { - this.devtoolsInstance = new AvalancheDevtools(config as unknown as DevtoolsSDKOptions); + constructor(config: chainkitSDKOptions) { + this.chainkitInstance = new Avalanchechainkit( + config as unknown as chainkitSDKOptions + ); } public get data() { - return this.devtoolsInstance.data; + return this.chainkitInstance.data; } public get webhooks() { - return this.devtoolsInstance.webhooks; + return this.chainkitInstance.webhooks; } public get metrics() { - return this.devtoolsInstance.metrics; + return this.chainkitInstance.metrics; } } diff --git a/sdk/src/core.ts b/sdk/src/core.ts index 641e69f2..8d161edd 100644 --- a/sdk/src/core.ts +++ b/sdk/src/core.ts @@ -1,2 +1 @@ -export * from "@avalanche-sdk/devtools/core.js"; - +export * from "@avalanche-sdk/chainkit/core.js"; diff --git a/sdk/src/funcs/dataEvmAddressBalancesGetNative.ts b/sdk/src/funcs/dataEvmAddressBalancesGetNative.ts index 33786f34..0adf196f 100644 --- a/sdk/src/funcs/dataEvmAddressBalancesGetNative.ts +++ b/sdk/src/funcs/dataEvmAddressBalancesGetNative.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesGetNative.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesGetNative.js"; diff --git a/sdk/src/funcs/dataEvmAddressBalancesListCollectibles.ts b/sdk/src/funcs/dataEvmAddressBalancesListCollectibles.ts index 7ca3299d..d0d54133 100644 --- a/sdk/src/funcs/dataEvmAddressBalancesListCollectibles.ts +++ b/sdk/src/funcs/dataEvmAddressBalancesListCollectibles.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListCollectibles.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListCollectibles.js"; diff --git a/sdk/src/funcs/dataEvmAddressBalancesListErc1155.ts b/sdk/src/funcs/dataEvmAddressBalancesListErc1155.ts index 93b21b59..7a1f80bb 100644 --- a/sdk/src/funcs/dataEvmAddressBalancesListErc1155.ts +++ b/sdk/src/funcs/dataEvmAddressBalancesListErc1155.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc1155.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc1155.js"; diff --git a/sdk/src/funcs/dataEvmAddressBalancesListErc20.ts b/sdk/src/funcs/dataEvmAddressBalancesListErc20.ts index e03de6e1..5bc2f903 100644 --- a/sdk/src/funcs/dataEvmAddressBalancesListErc20.ts +++ b/sdk/src/funcs/dataEvmAddressBalancesListErc20.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc20.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc20.js"; diff --git a/sdk/src/funcs/dataEvmAddressBalancesListErc721.ts b/sdk/src/funcs/dataEvmAddressBalancesListErc721.ts index 08b008f9..8103c674 100644 --- a/sdk/src/funcs/dataEvmAddressBalancesListErc721.ts +++ b/sdk/src/funcs/dataEvmAddressBalancesListErc721.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressBalancesListErc721.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressBalancesListErc721.js"; diff --git a/sdk/src/funcs/dataEvmAddressChainsList.ts b/sdk/src/funcs/dataEvmAddressChainsList.ts index e7af62ee..47b43c60 100644 --- a/sdk/src/funcs/dataEvmAddressChainsList.ts +++ b/sdk/src/funcs/dataEvmAddressChainsList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressChainsList.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressChainsList.js"; diff --git a/sdk/src/funcs/dataEvmAddressContractsListDeployments.ts b/sdk/src/funcs/dataEvmAddressContractsListDeployments.ts index 924dc251..58dbbdd0 100644 --- a/sdk/src/funcs/dataEvmAddressContractsListDeployments.ts +++ b/sdk/src/funcs/dataEvmAddressContractsListDeployments.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressContractsListDeployments.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressContractsListDeployments.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsList.ts b/sdk/src/funcs/dataEvmAddressTransactionsList.ts index 6c50be69..f29f2136 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsList.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsList.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsList.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsListErc1155.ts b/sdk/src/funcs/dataEvmAddressTransactionsListErc1155.ts index 061750a7..44826b80 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsListErc1155.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsListErc1155.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc1155.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc1155.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsListErc20.ts b/sdk/src/funcs/dataEvmAddressTransactionsListErc20.ts index 7e75d7d7..8bb9b4ec 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsListErc20.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsListErc20.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc20.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc20.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsListErc721.ts b/sdk/src/funcs/dataEvmAddressTransactionsListErc721.ts index 9087d00f..0eeeb1ba 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsListErc721.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsListErc721.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListErc721.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListErc721.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsListInternal.ts b/sdk/src/funcs/dataEvmAddressTransactionsListInternal.ts index fae26402..6c3026e9 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsListInternal.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsListInternal.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListInternal.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListInternal.js"; diff --git a/sdk/src/funcs/dataEvmAddressTransactionsListNative.ts b/sdk/src/funcs/dataEvmAddressTransactionsListNative.ts index 13b98576..fde0d3df 100644 --- a/sdk/src/funcs/dataEvmAddressTransactionsListNative.ts +++ b/sdk/src/funcs/dataEvmAddressTransactionsListNative.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmAddressTransactionsListNative.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmAddressTransactionsListNative.js"; diff --git a/sdk/src/funcs/dataEvmBlocksGet.ts b/sdk/src/funcs/dataEvmBlocksGet.ts index 57eeb55f..f29684ce 100644 --- a/sdk/src/funcs/dataEvmBlocksGet.ts +++ b/sdk/src/funcs/dataEvmBlocksGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmBlocksGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksGet.js"; diff --git a/sdk/src/funcs/dataEvmBlocksListLatest.ts b/sdk/src/funcs/dataEvmBlocksListLatest.ts index 211d3143..df56801b 100644 --- a/sdk/src/funcs/dataEvmBlocksListLatest.ts +++ b/sdk/src/funcs/dataEvmBlocksListLatest.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListLatest.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListLatest.js"; diff --git a/sdk/src/funcs/dataEvmBlocksListLatestAllChains.ts b/sdk/src/funcs/dataEvmBlocksListLatestAllChains.ts index ead224cd..780ef2ba 100644 --- a/sdk/src/funcs/dataEvmBlocksListLatestAllChains.ts +++ b/sdk/src/funcs/dataEvmBlocksListLatestAllChains.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListLatestAllChains.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListLatestAllChains.js"; diff --git a/sdk/src/funcs/dataEvmBlocksListTransactions.ts b/sdk/src/funcs/dataEvmBlocksListTransactions.ts index faeb8121..8f1b88e4 100644 --- a/sdk/src/funcs/dataEvmBlocksListTransactions.ts +++ b/sdk/src/funcs/dataEvmBlocksListTransactions.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmBlocksListTransactions.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmBlocksListTransactions.js"; diff --git a/sdk/src/funcs/dataEvmChainsGet.ts b/sdk/src/funcs/dataEvmChainsGet.ts index 2e56e6f3..45c81594 100644 --- a/sdk/src/funcs/dataEvmChainsGet.ts +++ b/sdk/src/funcs/dataEvmChainsGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmChainsGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmChainsGet.js"; diff --git a/sdk/src/funcs/dataEvmChainsGetAddressChains.ts b/sdk/src/funcs/dataEvmChainsGetAddressChains.ts index a0435d78..5ccbc81f 100644 --- a/sdk/src/funcs/dataEvmChainsGetAddressChains.ts +++ b/sdk/src/funcs/dataEvmChainsGetAddressChains.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmChainsGetAddressChains.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmChainsGetAddressChains.js"; diff --git a/sdk/src/funcs/dataEvmChainsList.ts b/sdk/src/funcs/dataEvmChainsList.ts index 706cefc4..87f6bbfb 100644 --- a/sdk/src/funcs/dataEvmChainsList.ts +++ b/sdk/src/funcs/dataEvmChainsList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmChainsList.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmChainsList.js"; diff --git a/sdk/src/funcs/dataEvmChainsListAllLatestBlocks.ts b/sdk/src/funcs/dataEvmChainsListAllLatestBlocks.ts index fcc5b7f7..1cdae75a 100644 --- a/sdk/src/funcs/dataEvmChainsListAllLatestBlocks.ts +++ b/sdk/src/funcs/dataEvmChainsListAllLatestBlocks.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmChainsListAllLatestBlocks.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmChainsListAllLatestBlocks.js"; diff --git a/sdk/src/funcs/dataEvmChainsListAllLatestTransactions.ts b/sdk/src/funcs/dataEvmChainsListAllLatestTransactions.ts index dcd24133..c7cfc466 100644 --- a/sdk/src/funcs/dataEvmChainsListAllLatestTransactions.ts +++ b/sdk/src/funcs/dataEvmChainsListAllLatestTransactions.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmChainsListAllLatestTransactions.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmChainsListAllLatestTransactions.js"; diff --git a/sdk/src/funcs/dataEvmContractsGetDeploymentTransaction.ts b/sdk/src/funcs/dataEvmContractsGetDeploymentTransaction.ts index 19d35705..d1347ded 100644 --- a/sdk/src/funcs/dataEvmContractsGetDeploymentTransaction.ts +++ b/sdk/src/funcs/dataEvmContractsGetDeploymentTransaction.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmContractsGetDeploymentTransaction.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmContractsGetDeploymentTransaction.js"; diff --git a/sdk/src/funcs/dataEvmContractsGetMetadata.ts b/sdk/src/funcs/dataEvmContractsGetMetadata.ts index c0c25133..eecafdee 100644 --- a/sdk/src/funcs/dataEvmContractsGetMetadata.ts +++ b/sdk/src/funcs/dataEvmContractsGetMetadata.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmContractsGetMetadata.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmContractsGetMetadata.js"; diff --git a/sdk/src/funcs/dataEvmContractsListTransfers.ts b/sdk/src/funcs/dataEvmContractsListTransfers.ts index c11118ff..64df4fb0 100644 --- a/sdk/src/funcs/dataEvmContractsListTransfers.ts +++ b/sdk/src/funcs/dataEvmContractsListTransfers.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmContractsListTransfers.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmContractsListTransfers.js"; diff --git a/sdk/src/funcs/dataEvmTransactionsGet.ts b/sdk/src/funcs/dataEvmTransactionsGet.ts index 35e1e175..4bdefd1b 100644 --- a/sdk/src/funcs/dataEvmTransactionsGet.ts +++ b/sdk/src/funcs/dataEvmTransactionsGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsGet.js"; diff --git a/sdk/src/funcs/dataEvmTransactionsListLatest.ts b/sdk/src/funcs/dataEvmTransactionsListLatest.ts index b3c97d2d..5051a532 100644 --- a/sdk/src/funcs/dataEvmTransactionsListLatest.ts +++ b/sdk/src/funcs/dataEvmTransactionsListLatest.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsListLatest.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsListLatest.js"; diff --git a/sdk/src/funcs/dataEvmTransactionsListLatestAllChains.ts b/sdk/src/funcs/dataEvmTransactionsListLatestAllChains.ts index b9b1ac78..58e26b59 100644 --- a/sdk/src/funcs/dataEvmTransactionsListLatestAllChains.ts +++ b/sdk/src/funcs/dataEvmTransactionsListLatestAllChains.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataEvmTransactionsListLatestAllChains.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataEvmTransactionsListLatestAllChains.js"; diff --git a/sdk/src/funcs/dataHealthCheck.ts b/sdk/src/funcs/dataHealthCheck.ts index 60518448..650ba52a 100644 --- a/sdk/src/funcs/dataHealthCheck.ts +++ b/sdk/src/funcs/dataHealthCheck.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataHealthCheck.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataHealthCheck.js"; diff --git a/sdk/src/funcs/dataIcmGet.ts b/sdk/src/funcs/dataIcmGet.ts index c65f8b9b..cbfde354 100644 --- a/sdk/src/funcs/dataIcmGet.ts +++ b/sdk/src/funcs/dataIcmGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataIcmGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataIcmGet.js"; diff --git a/sdk/src/funcs/dataIcmList.ts b/sdk/src/funcs/dataIcmList.ts index 812f9726..a642703c 100644 --- a/sdk/src/funcs/dataIcmList.ts +++ b/sdk/src/funcs/dataIcmList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataIcmList.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataIcmList.js"; diff --git a/sdk/src/funcs/dataIcmListByAddress.ts b/sdk/src/funcs/dataIcmListByAddress.ts index d00e6204..2eee5230 100644 --- a/sdk/src/funcs/dataIcmListByAddress.ts +++ b/sdk/src/funcs/dataIcmListByAddress.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataIcmListByAddress.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataIcmListByAddress.js"; diff --git a/sdk/src/funcs/dataNftsGet.ts b/sdk/src/funcs/dataNftsGet.ts index 95e779f9..3a5d3b16 100644 --- a/sdk/src/funcs/dataNftsGet.ts +++ b/sdk/src/funcs/dataNftsGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataNftsGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataNftsGet.js"; diff --git a/sdk/src/funcs/dataNftsList.ts b/sdk/src/funcs/dataNftsList.ts index 292c854f..16346cd5 100644 --- a/sdk/src/funcs/dataNftsList.ts +++ b/sdk/src/funcs/dataNftsList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataNftsList.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataNftsList.js"; diff --git a/sdk/src/funcs/dataNftsReindex.ts b/sdk/src/funcs/dataNftsReindex.ts index 0b65a957..8ddb1be3 100644 --- a/sdk/src/funcs/dataNftsReindex.ts +++ b/sdk/src/funcs/dataNftsReindex.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataNftsReindex.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataNftsReindex.js"; diff --git a/sdk/src/funcs/dataOperationsExportTransactions.ts b/sdk/src/funcs/dataOperationsExportTransactions.ts index 2280e070..15583cd5 100644 --- a/sdk/src/funcs/dataOperationsExportTransactions.ts +++ b/sdk/src/funcs/dataOperationsExportTransactions.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataOperationsExportTransactions.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataOperationsExportTransactions.js"; diff --git a/sdk/src/funcs/dataOperationsGetResult.ts b/sdk/src/funcs/dataOperationsGetResult.ts index b7259a49..3fd92c72 100644 --- a/sdk/src/funcs/dataOperationsGetResult.ts +++ b/sdk/src/funcs/dataOperationsGetResult.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataOperationsGetResult.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataOperationsGetResult.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts b/sdk/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts index 83db1ea6..f8eaaffb 100644 --- a/sdk/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts +++ b/sdk/src/funcs/dataPrimaryNetworkBalancesListByAddresses.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBalancesListByAddresses.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBalancesListByAddresses.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkBlocksGet.ts b/sdk/src/funcs/dataPrimaryNetworkBlocksGet.ts index e3b678b3..03f7e287 100644 --- a/sdk/src/funcs/dataPrimaryNetworkBlocksGet.ts +++ b/sdk/src/funcs/dataPrimaryNetworkBlocksGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksGet.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts b/sdk/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts index d4b479c2..4d4559ca 100644 --- a/sdk/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts +++ b/sdk/src/funcs/dataPrimaryNetworkBlocksListByNodeId.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksListByNodeId.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksListByNodeId.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkBlocksListLatest.ts b/sdk/src/funcs/dataPrimaryNetworkBlocksListLatest.ts index e738af5e..d15cc5f3 100644 --- a/sdk/src/funcs/dataPrimaryNetworkBlocksListLatest.ts +++ b/sdk/src/funcs/dataPrimaryNetworkBlocksListLatest.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkBlocksListLatest.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkBlocksListLatest.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetAssetDetails.ts b/sdk/src/funcs/dataPrimaryNetworkGetAssetDetails.ts index edf61fae..086b2d46 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetAssetDetails.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetAssetDetails.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetAssetDetails.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetAssetDetails.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetBlockchainById.ts b/sdk/src/funcs/dataPrimaryNetworkGetBlockchainById.ts index 0902bd6e..076974d1 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetBlockchainById.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetBlockchainById.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetBlockchainById.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetBlockchainById.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts b/sdk/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts index f59d2f5f..46dba881 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetChainIdsForAddresses.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetChainIdsForAddresses.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts b/sdk/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts index 734c4aab..3730588f 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetNetworkDetails.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetNetworkDetails.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetNetworkDetails.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetSubnetById.ts b/sdk/src/funcs/dataPrimaryNetworkGetSubnetById.ts index e919c109..96b347de 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetSubnetById.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetSubnetById.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetSubnetById.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetSubnetById.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts b/sdk/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts index 6946b973..03668c72 100644 --- a/sdk/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts +++ b/sdk/src/funcs/dataPrimaryNetworkGetValidatorDetails.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkGetValidatorDetails.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkGetValidatorDetails.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkListBlockchains.ts b/sdk/src/funcs/dataPrimaryNetworkListBlockchains.ts index b11230e2..c3bde2b7 100644 --- a/sdk/src/funcs/dataPrimaryNetworkListBlockchains.ts +++ b/sdk/src/funcs/dataPrimaryNetworkListBlockchains.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListBlockchains.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListBlockchains.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkListDelegators.ts b/sdk/src/funcs/dataPrimaryNetworkListDelegators.ts index 0473ddaa..e966b8c7 100644 --- a/sdk/src/funcs/dataPrimaryNetworkListDelegators.ts +++ b/sdk/src/funcs/dataPrimaryNetworkListDelegators.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListDelegators.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListDelegators.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkListL1Validators.ts b/sdk/src/funcs/dataPrimaryNetworkListL1Validators.ts index 33043fe5..2df9468b 100644 --- a/sdk/src/funcs/dataPrimaryNetworkListL1Validators.ts +++ b/sdk/src/funcs/dataPrimaryNetworkListL1Validators.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListL1Validators.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListL1Validators.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkListSubnets.ts b/sdk/src/funcs/dataPrimaryNetworkListSubnets.ts index f95a698f..529a0c45 100644 --- a/sdk/src/funcs/dataPrimaryNetworkListSubnets.ts +++ b/sdk/src/funcs/dataPrimaryNetworkListSubnets.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListSubnets.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListSubnets.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkListValidators.ts b/sdk/src/funcs/dataPrimaryNetworkListValidators.ts index 4974c4ca..e1c05a83 100644 --- a/sdk/src/funcs/dataPrimaryNetworkListValidators.ts +++ b/sdk/src/funcs/dataPrimaryNetworkListValidators.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkListValidators.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkListValidators.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts b/sdk/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts index b011bff7..50b318f2 100644 --- a/sdk/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts +++ b/sdk/src/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkRewardsListHistoricalRewards.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts b/sdk/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts index e9827e20..a2332158 100644 --- a/sdk/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts +++ b/sdk/src/funcs/dataPrimaryNetworkRewardsListPendingRewards.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkRewardsListPendingRewards.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkTransactionsGet.ts b/sdk/src/funcs/dataPrimaryNetworkTransactionsGet.ts index 8e98c78e..dfe75d53 100644 --- a/sdk/src/funcs/dataPrimaryNetworkTransactionsGet.ts +++ b/sdk/src/funcs/dataPrimaryNetworkTransactionsGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsGet.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts b/sdk/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts index dd55321a..dd01d4b2 100644 --- a/sdk/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts +++ b/sdk/src/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListActiveStakingTransactions.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts b/sdk/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts index 3cdf7d73..3bfccc57 100644 --- a/sdk/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts +++ b/sdk/src/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListAssetTransactions.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts b/sdk/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts index eb3633ed..0f808d40 100644 --- a/sdk/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts +++ b/sdk/src/funcs/dataPrimaryNetworkTransactionsListLatest.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkTransactionsListLatest.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkTransactionsListLatest.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts b/sdk/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts index b6658346..5af54c0a 100644 --- a/sdk/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts +++ b/sdk/src/funcs/dataPrimaryNetworkUtxosListByAddresses.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkUtxosListByAddresses.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkUtxosListByAddresses.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts b/sdk/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts index 60764e89..01bc1c3a 100644 --- a/sdk/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts +++ b/sdk/src/funcs/dataPrimaryNetworkVerticesGetByHash.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesGetByHash.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesGetByHash.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts b/sdk/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts index c77b6b76..d6ff69b0 100644 --- a/sdk/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts +++ b/sdk/src/funcs/dataPrimaryNetworkVerticesListByHeight.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesListByHeight.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesListByHeight.js"; diff --git a/sdk/src/funcs/dataPrimaryNetworkVerticesListLatest.ts b/sdk/src/funcs/dataPrimaryNetworkVerticesListLatest.ts index d4aa50b2..196b89db 100644 --- a/sdk/src/funcs/dataPrimaryNetworkVerticesListLatest.ts +++ b/sdk/src/funcs/dataPrimaryNetworkVerticesListLatest.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataPrimaryNetworkVerticesListLatest.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataPrimaryNetworkVerticesListLatest.js"; diff --git a/sdk/src/funcs/dataSignatureAggregatorAggregate.ts b/sdk/src/funcs/dataSignatureAggregatorAggregate.ts index b26f7d00..75486484 100644 --- a/sdk/src/funcs/dataSignatureAggregatorAggregate.ts +++ b/sdk/src/funcs/dataSignatureAggregatorAggregate.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataSignatureAggregatorAggregate.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataSignatureAggregatorAggregate.js"; diff --git a/sdk/src/funcs/dataSignatureAggregatorGet.ts b/sdk/src/funcs/dataSignatureAggregatorGet.ts index 0a99ae56..56054726 100644 --- a/sdk/src/funcs/dataSignatureAggregatorGet.ts +++ b/sdk/src/funcs/dataSignatureAggregatorGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataSignatureAggregatorGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataSignatureAggregatorGet.js"; diff --git a/sdk/src/funcs/dataTeleporterGetTeleporterMessage.ts b/sdk/src/funcs/dataTeleporterGetTeleporterMessage.ts index 0c107f8a..65cc2bcb 100644 --- a/sdk/src/funcs/dataTeleporterGetTeleporterMessage.ts +++ b/sdk/src/funcs/dataTeleporterGetTeleporterMessage.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataTeleporterGetTeleporterMessage.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataTeleporterGetTeleporterMessage.js"; diff --git a/sdk/src/funcs/dataTeleporterListTeleporterMessages.ts b/sdk/src/funcs/dataTeleporterListTeleporterMessages.ts index c4fedc1b..74733881 100644 --- a/sdk/src/funcs/dataTeleporterListTeleporterMessages.ts +++ b/sdk/src/funcs/dataTeleporterListTeleporterMessages.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataTeleporterListTeleporterMessages.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataTeleporterListTeleporterMessages.js"; diff --git a/sdk/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts b/sdk/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts index bfe02840..1bbe1f09 100644 --- a/sdk/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts +++ b/sdk/src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataTeleporterListTeleporterMessagesByAddress.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataTeleporterListTeleporterMessagesByAddress.js"; diff --git a/sdk/src/funcs/dataUsageMetricsGetLogs.ts b/sdk/src/funcs/dataUsageMetricsGetLogs.ts index b0dc8b4d..0af33611 100644 --- a/sdk/src/funcs/dataUsageMetricsGetLogs.ts +++ b/sdk/src/funcs/dataUsageMetricsGetLogs.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetLogs.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetLogs.js"; diff --git a/sdk/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts b/sdk/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts index 19b6f7cd..f1932297 100644 --- a/sdk/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts +++ b/sdk/src/funcs/dataUsageMetricsGetRpcUsageMetrics.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetRpcUsageMetrics.js"; diff --git a/sdk/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts b/sdk/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts index 30c0ec10..81916452 100644 --- a/sdk/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts +++ b/sdk/src/funcs/dataUsageMetricsGetSubnetRpcUsage.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetSubnetRpcUsage.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetSubnetRpcUsage.js"; diff --git a/sdk/src/funcs/dataUsageMetricsGetUsage.ts b/sdk/src/funcs/dataUsageMetricsGetUsage.ts index 29e824d0..3c665333 100644 --- a/sdk/src/funcs/dataUsageMetricsGetUsage.ts +++ b/sdk/src/funcs/dataUsageMetricsGetUsage.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/dataUsageMetricsGetUsage.js"; +export * from "@avalanche-sdk/chainkit/funcs/dataUsageMetricsGetUsage.js"; diff --git a/sdk/src/funcs/metricsChainsGet.ts b/sdk/src/funcs/metricsChainsGet.ts index 0d6b8f23..ebd6ed0f 100644 --- a/sdk/src/funcs/metricsChainsGet.ts +++ b/sdk/src/funcs/metricsChainsGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsGet.js"; diff --git a/sdk/src/funcs/metricsChainsGetMetrics.ts b/sdk/src/funcs/metricsChainsGetMetrics.ts index 07a1d5b9..beae7c82 100644 --- a/sdk/src/funcs/metricsChainsGetMetrics.ts +++ b/sdk/src/funcs/metricsChainsGetMetrics.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsGetMetrics.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsGetMetrics.js"; diff --git a/sdk/src/funcs/metricsChainsGetRollingWindowMetrics.ts b/sdk/src/funcs/metricsChainsGetRollingWindowMetrics.ts index 0469c043..7190e298 100644 --- a/sdk/src/funcs/metricsChainsGetRollingWindowMetrics.ts +++ b/sdk/src/funcs/metricsChainsGetRollingWindowMetrics.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsGetRollingWindowMetrics.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsGetRollingWindowMetrics.js"; diff --git a/sdk/src/funcs/metricsChainsGetTeleporterMetrics.ts b/sdk/src/funcs/metricsChainsGetTeleporterMetrics.ts index 9de9373f..1c3ef08e 100644 --- a/sdk/src/funcs/metricsChainsGetTeleporterMetrics.ts +++ b/sdk/src/funcs/metricsChainsGetTeleporterMetrics.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsGetTeleporterMetrics.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsGetTeleporterMetrics.js"; diff --git a/sdk/src/funcs/metricsChainsList.ts b/sdk/src/funcs/metricsChainsList.ts index 61a920e3..810a7305 100644 --- a/sdk/src/funcs/metricsChainsList.ts +++ b/sdk/src/funcs/metricsChainsList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsList.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsList.js"; diff --git a/sdk/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts b/sdk/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts index c54c7d5c..1fa80e07 100644 --- a/sdk/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts +++ b/sdk/src/funcs/metricsChainsListBTCbBridgersAboveThreshold.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsListBTCbBridgersAboveThreshold.js"; diff --git a/sdk/src/funcs/metricsChainsListNftHolders.ts b/sdk/src/funcs/metricsChainsListNftHolders.ts index b91e4bf2..19342825 100644 --- a/sdk/src/funcs/metricsChainsListNftHolders.ts +++ b/sdk/src/funcs/metricsChainsListNftHolders.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsListNftHolders.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsListNftHolders.js"; diff --git a/sdk/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts b/sdk/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts index a8d36ca5..b00e60e2 100644 --- a/sdk/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts +++ b/sdk/src/funcs/metricsChainsListTokenHoldersAboveThreshold.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsChainsListTokenHoldersAboveThreshold.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsChainsListTokenHoldersAboveThreshold.js"; diff --git a/sdk/src/funcs/metricsHealthCheck.ts b/sdk/src/funcs/metricsHealthCheck.ts index ac82bdad..29dda80b 100644 --- a/sdk/src/funcs/metricsHealthCheck.ts +++ b/sdk/src/funcs/metricsHealthCheck.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsHealthCheck.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsHealthCheck.js"; diff --git a/sdk/src/funcs/metricsNetworksGetStakingMetrics.ts b/sdk/src/funcs/metricsNetworksGetStakingMetrics.ts index d3122d38..4812f607 100644 --- a/sdk/src/funcs/metricsNetworksGetStakingMetrics.ts +++ b/sdk/src/funcs/metricsNetworksGetStakingMetrics.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsNetworksGetStakingMetrics.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsNetworksGetStakingMetrics.js"; diff --git a/sdk/src/funcs/metricsSubnetsGetValidators.ts b/sdk/src/funcs/metricsSubnetsGetValidators.ts index 8f975866..25b0bc97 100644 --- a/sdk/src/funcs/metricsSubnetsGetValidators.ts +++ b/sdk/src/funcs/metricsSubnetsGetValidators.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/metricsSubnetsGetValidators.js"; +export * from "@avalanche-sdk/chainkit/funcs/metricsSubnetsGetValidators.js"; diff --git a/sdk/src/funcs/webhooksAddressesAdd.ts b/sdk/src/funcs/webhooksAddressesAdd.ts index f056d324..d3844be9 100644 --- a/sdk/src/funcs/webhooksAddressesAdd.ts +++ b/sdk/src/funcs/webhooksAddressesAdd.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksAddressesAdd.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksAddressesAdd.js"; diff --git a/sdk/src/funcs/webhooksAddressesList.ts b/sdk/src/funcs/webhooksAddressesList.ts index c89f829d..7ed41a42 100644 --- a/sdk/src/funcs/webhooksAddressesList.ts +++ b/sdk/src/funcs/webhooksAddressesList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksAddressesList.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksAddressesList.js"; diff --git a/sdk/src/funcs/webhooksAddressesRemove.ts b/sdk/src/funcs/webhooksAddressesRemove.ts index 19cb4c35..89496b8f 100644 --- a/sdk/src/funcs/webhooksAddressesRemove.ts +++ b/sdk/src/funcs/webhooksAddressesRemove.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksAddressesRemove.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksAddressesRemove.js"; diff --git a/sdk/src/funcs/webhooksCreate.ts b/sdk/src/funcs/webhooksCreate.ts index e917bbf1..7b3bbd91 100644 --- a/sdk/src/funcs/webhooksCreate.ts +++ b/sdk/src/funcs/webhooksCreate.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksCreate.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksCreate.js"; diff --git a/sdk/src/funcs/webhooksDeactivate.ts b/sdk/src/funcs/webhooksDeactivate.ts index c14a959c..a2c8b5b6 100644 --- a/sdk/src/funcs/webhooksDeactivate.ts +++ b/sdk/src/funcs/webhooksDeactivate.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksDeactivate.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksDeactivate.js"; diff --git a/sdk/src/funcs/webhooksGenerateOrRotateSharedSecret.ts b/sdk/src/funcs/webhooksGenerateOrRotateSharedSecret.ts index e54236b8..7033bdc1 100644 --- a/sdk/src/funcs/webhooksGenerateOrRotateSharedSecret.ts +++ b/sdk/src/funcs/webhooksGenerateOrRotateSharedSecret.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksGenerateOrRotateSharedSecret.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksGenerateOrRotateSharedSecret.js"; diff --git a/sdk/src/funcs/webhooksGet.ts b/sdk/src/funcs/webhooksGet.ts index aa9057e5..78ccd2fd 100644 --- a/sdk/src/funcs/webhooksGet.ts +++ b/sdk/src/funcs/webhooksGet.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksGet.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksGet.js"; diff --git a/sdk/src/funcs/webhooksGetSharedSecret.ts b/sdk/src/funcs/webhooksGetSharedSecret.ts index 4cdaf456..1e41ba49 100644 --- a/sdk/src/funcs/webhooksGetSharedSecret.ts +++ b/sdk/src/funcs/webhooksGetSharedSecret.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksGetSharedSecret.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksGetSharedSecret.js"; diff --git a/sdk/src/funcs/webhooksList.ts b/sdk/src/funcs/webhooksList.ts index 5ed89281..956965e6 100644 --- a/sdk/src/funcs/webhooksList.ts +++ b/sdk/src/funcs/webhooksList.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksList.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksList.js"; diff --git a/sdk/src/funcs/webhooksUpdate.ts b/sdk/src/funcs/webhooksUpdate.ts index 036ed9a2..6efdae6e 100644 --- a/sdk/src/funcs/webhooksUpdate.ts +++ b/sdk/src/funcs/webhooksUpdate.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/funcs/webhooksUpdate.js"; +export * from "@avalanche-sdk/chainkit/funcs/webhooksUpdate.js"; diff --git a/sdk/src/index.ts b/sdk/src/index.ts index 3619ca32..e10786f5 100644 --- a/sdk/src/index.ts +++ b/sdk/src/index.ts @@ -1,3 +1,3 @@ +export { files, validateSignature } from "@avalanche-sdk/chainkit"; export { Avalanche } from "./avalanche.js"; export * from "./lib/config.js"; -export { files, validateSignature } from "@avalanche-sdk/devtools"; \ No newline at end of file diff --git a/sdk/src/lib/config.ts b/sdk/src/lib/config.ts index d069cc91..4c5ea488 100644 --- a/sdk/src/lib/config.ts +++ b/sdk/src/lib/config.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/lib/config"; +export * from "@avalanche-sdk/chainkit/lib/config"; diff --git a/sdk/src/lib/http.ts b/sdk/src/lib/http.ts index d19d2828..abd42338 100644 --- a/sdk/src/lib/http.ts +++ b/sdk/src/lib/http.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/lib/http"; \ No newline at end of file +export * from "@avalanche-sdk/chainkit/lib/http"; diff --git a/sdk/src/lib/retries.ts b/sdk/src/lib/retries.ts index 1c2d453d..04514793 100644 --- a/sdk/src/lib/retries.ts +++ b/sdk/src/lib/retries.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/lib/retries"; \ No newline at end of file +export * from "@avalanche-sdk/chainkit/lib/retries"; diff --git a/sdk/src/lib/sdks.ts b/sdk/src/lib/sdks.ts index 56fbfedf..24e39298 100644 --- a/sdk/src/lib/sdks.ts +++ b/sdk/src/lib/sdks.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/lib/sdks"; \ No newline at end of file +export * from "@avalanche-sdk/chainkit/lib/sdks"; diff --git a/sdk/src/models/components/index.ts b/sdk/src/models/components/index.ts index 754864c0..f27209e2 100644 --- a/sdk/src/models/components/index.ts +++ b/sdk/src/models/components/index.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/models/components"; +export * from "@avalanche-sdk/chainkit/models/components"; diff --git a/sdk/src/models/errors/index.ts b/sdk/src/models/errors/index.ts index 1d3f67c9..83e35c32 100644 --- a/sdk/src/models/errors/index.ts +++ b/sdk/src/models/errors/index.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/models/errors"; +export * from "@avalanche-sdk/chainkit/models/errors"; diff --git a/sdk/src/models/operations/index.ts b/sdk/src/models/operations/index.ts index 927f44f6..e4ce73d4 100644 --- a/sdk/src/models/operations/index.ts +++ b/sdk/src/models/operations/index.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/models/operations"; +export * from "@avalanche-sdk/chainkit/models/operations"; diff --git a/sdk/src/types/index.ts b/sdk/src/types/index.ts index cf2dcbad..7b4f5ed5 100644 --- a/sdk/src/types/index.ts +++ b/sdk/src/types/index.ts @@ -1 +1 @@ -export * from "@avalanche-sdk/devtools/types"; \ No newline at end of file +export * from "@avalanche-sdk/chainkit/types";