From c90a7cd3f929465d3a93281a281783b0817dc3dc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Nov 2025 11:22:16 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes Detected: * `avalanche.data.primaryNetwork.listBlockchains()`: `response.blockchains.[].genesisData` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.getBlockchainById()`: `response.genesisdata` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.listSubnets()`: `response.subnets.[].blockchains.[].genesisData` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.getSubnetById()`: `response.blockchains.[].genesisData` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.transactions.get()`: `response.[pchaintransaction].blockchainInfo.genesisData` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.transactions.listLatest()`: `response.[listpchaintransactionsresponse].transactions.[].blockchainInfo.genesisData` **Changed** **Breaking** :warning: * `avalanche.data.primaryNetwork.transactions.listActiveStakingTransactions()`: `response.transactions.[].blockchainInfo.genesisData` **Changed** **Breaking** :warning: * `avalanche.avaxSupply.get()`: `response` **Changed** **Breaking** :warning: * `avalanche.data.liveCheck()`: **Added** --- .speakeasy/workflow.lock | 18 +- chainkit/.speakeasy/gen.lock | 66 ++++- chainkit/.speakeasy/gen.yaml | 5 +- chainkit/README.md | 4 +- chainkit/RELEASES.md | 12 +- .../models/components/avaxsupplyresponse.md | 35 +++ chainkit/docs/models/components/blockchain.md | 4 +- .../components/blockchaingenesisdata.md | 139 ++++++++++- .../docs/models/components/blockchaininfo.md | 3 +- .../components/blockchaininfogenesisdata.md | 137 ++++++++++- .../models/components/evmgenesisallocdto.md | 20 ++ .../evmgenesisallowlistconfigdto.md | 29 +++ .../models/components/evmgenesisconfigdto.md | 128 ++++++++++ .../docs/models/components/evmgenesisdto.md | 151 ++++++++++++ .../components/evmgenesisfeeconfigdto.md | 31 +++ .../components/evmgenesiswarpconfigdto.md | 21 ++ .../listpchaintransactionsresponse.md | 5 + .../models/components/pchaintransaction.md | 5 + chainkit/docs/models/components/subnet.md | 2 +- .../models/operations/gettxbyhashresponse.md | 5 + ...tprimarynetworktransactionsresponsebody.md | 5 + chainkit/docs/sdks/avaxsupply/README.md | 8 +- chainkit/docs/sdks/data/README.md | 76 +++++- chainkit/examples/package-lock.json | 2 +- chainkit/package-lock.json | 4 +- chainkit/package.json | 2 +- chainkit/src/funcs/avaxSupplyGet.ts | 10 +- chainkit/src/funcs/dataHealthCheck.ts | 2 +- chainkit/src/funcs/dataLiveCheck.ts | 204 ++++++++++++++++ chainkit/src/lib/config.ts | 8 +- chainkit/src/mcp-server/mcp-server.ts | 2 +- chainkit/src/mcp-server/server.ts | 4 +- .../src/mcp-server/tools/avaxSupplyGet.ts | 4 +- .../src/mcp-server/tools/dataHealthCheck.ts | 2 +- .../src/mcp-server/tools/dataLiveCheck.ts | 30 +++ .../src/models/components/accesslistdata.ts | 15 -- .../components/activedelegatordetails.ts | 29 --- .../components/activevalidatordetails.ts | 44 ---- .../components/addressactivityeventtype.ts | 12 - .../components/addressactivitymetadata.ts | 15 -- .../src/models/components/addressdetails.ts | 15 -- .../components/addresseschangerequest.ts | 15 -- .../components/aggregatedassetamount.ts | 15 -- chainkit/src/models/components/apifeature.ts | 12 - chainkit/src/models/components/assetamount.ts | 15 -- .../models/components/assetwithpriceinfo.ts | 15 -- .../models/components/avaxsupplyresponse.ts | 119 +++++++++ .../src/models/components/balanceowner.ts | 15 -- chainkit/src/models/components/blockchain.ts | 56 ++--- .../src/models/components/blockchainid.ts | 12 - .../src/models/components/blockchainids.ts | 12 - .../src/models/components/blockchaininfo.ts | 55 ++--- .../src/models/components/blscredentials.ts | 15 -- .../models/components/cchainatomicbalances.ts | 15 -- .../components/cchainexporttransaction.ts | 27 --- .../components/cchainimporttransaction.ts | 27 --- .../components/cchainsharedassetbalance.ts | 15 -- chainkit/src/models/components/chain.ts | 15 -- .../components/chainaddresschainidmap.ts | 15 -- .../chainaddresschainidmaplistresponse.ts | 16 -- chainkit/src/models/components/chaininfo.ts | 27 --- chainkit/src/models/components/chainmetric.ts | 12 - .../components/chainrollingwindowmetric.ts | 12 - .../chainrollingwindowmetricsvalue.ts | 15 -- chainkit/src/models/components/chainstatus.ts | 12 - .../models/components/commonbalancetype.ts | 12 - .../components/completeddelegatordetails.ts | 29 --- .../components/completedvalidatordetails.ts | 29 --- .../components/contractdeploymentdetails.ts | 15 -- .../createevmtransactionexportrequest.ts | 16 -- ...eprimarynetworktransactionexportrequest.ts | 17 -- .../src/models/components/currencycode.ts | 12 - .../components/datalistchainsresponse.ts | 15 -- .../models/components/delegationstatustype.ts | 12 - .../models/components/delegatorsdetails.ts | 15 -- .../models/components/deliveredicmmessage.ts | 27 --- .../deliveredsourcenotindexedicmmessage.ts | 31 --- ...iveredsourcenotindexedteleportermessage.ts | 31 --- .../components/deliveredteleportermessage.ts | 27 --- .../src/models/components/erc1155contract.ts | 27 --- .../src/models/components/erc1155token.ts | 27 --- .../models/components/erc1155tokenbalance.ts | 27 --- .../models/components/erc1155tokenmetadata.ts | 15 -- .../src/models/components/erc1155transfer.ts | 15 -- .../components/erc1155transferdetails.ts | 15 -- .../src/models/components/erc20contract.ts | 27 --- chainkit/src/models/components/erc20token.ts | 27 --- .../models/components/erc20tokenbalance.ts | 39 --- .../src/models/components/erc20transfer.ts | 15 -- .../models/components/erc20transferdetails.ts | 15 -- .../src/models/components/erc721contract.ts | 27 --- chainkit/src/models/components/erc721token.ts | 27 --- .../models/components/erc721tokenbalance.ts | 27 --- .../models/components/erc721tokenmetadata.ts | 15 -- .../src/models/components/erc721transfer.ts | 15 -- .../components/erc721transferdetails.ts | 15 -- chainkit/src/models/components/erctoken.ts | 15 -- chainkit/src/models/components/erctransfer.ts | 15 -- .../components/evmaddressactivityrequest.ts | 44 ---- .../components/evmaddressactivityresponse.ts | 15 -- chainkit/src/models/components/evmblock.ts | 15 -- .../models/components/evmgenesisallocdto.ts | 68 ++++++ .../evmgenesisallowlistconfigdto.ts | 77 ++++++ .../models/components/evmgenesisconfigdto.ts | 227 ++++++++++++++++++ .../src/models/components/evmgenesisdto.ts | 174 ++++++++++++++ .../components/evmgenesisfeeconfigdto.ts | 103 ++++++++ .../components/evmgenesiswarpconfigdto.ts | 68 ++++++ chainkit/src/models/components/evminput.ts | 15 -- .../models/components/evmnetworkoptions.ts | 15 -- .../src/models/components/evmoperationtype.ts | 12 - chainkit/src/models/components/evmoutput.ts | 15 -- .../fullnativetransactiondetails.ts | 15 -- .../src/models/components/getchainresponse.ts | 27 --- .../models/components/getevmblockresponse.ts | 15 -- .../components/getnativebalanceresponse.ts | 15 -- .../components/getnetworkdetailsresponse.ts | 15 -- .../getprimarynetworkblockresponse.ts | 15 -- .../components/gettransactionresponse.ts | 15 -- .../models/components/globalparamnetwork.ts | 12 - .../models/components/healthcheckresultdto.ts | 27 --- .../components/healthindicatorresultdto.ts | 27 --- .../src/models/components/historicalreward.ts | 15 -- .../components/icmdestinationtransaction.ts | 15 -- .../components/icmmetricsapiresponse.ts | 15 -- .../src/models/components/icmmetricsvalue.ts | 15 -- chainkit/src/models/components/icmreceipt.ts | 15 -- .../src/models/components/icmrewarddetails.ts | 27 --- .../icmrollingwindowmetricsapiresponse.ts | 16 -- .../icmrollingwindowmetricsvalue.ts | 15 -- .../models/components/icmsourcetransaction.ts | 15 -- chainkit/src/models/components/imageasset.ts | 15 -- chainkit/src/models/components/index.ts | 7 + .../models/components/internaltransaction.ts | 15 -- .../components/internaltransactiondetails.ts | 15 -- .../components/internaltransactionopcall.ts | 12 - .../components/l1validatordetailsfull.ts | 32 --- .../l1validatordetailstransaction.ts | 32 --- .../components/l1validatormanagerdetails.ts | 15 -- .../components/listaddresschainsresponse.ts | 15 -- .../components/listblockchainsresponse.ts | 15 -- .../listcchainatomicbalancesresponse.ts | 15 -- .../listcchainatomictransactionsresponse.ts | 35 --- .../listcollectiblebalancesresponse.ts | 30 --- .../components/listcontractsresponse.ts | 30 --- .../listdelegatordetailsresponse.ts | 30 --- .../components/listerc1155balancesresponse.ts | 15 -- .../listerc1155transactionsresponse.ts | 15 -- .../components/listerc20balancesresponse.ts | 15 -- .../listerc20transactionsresponse.ts | 15 -- .../components/listerc721balancesresponse.ts | 15 -- .../listerc721transactionsresponse.ts | 15 -- .../components/listevmblocksresponse.ts | 15 -- .../listhistoricalrewardsresponse.ts | 15 -- .../components/listicmmessagesresponse.ts | 30 --- .../listinternaltransactionsresponse.ts | 15 -- .../components/listl1validatorsresponse.ts | 15 -- .../listnativetransactionsresponse.ts | 15 -- .../src/models/components/listnfttokens.ts | 30 --- .../components/listpchainbalancesresponse.ts | 15 -- .../listpchaintransactionsresponse.ts | 15 -- .../components/listpchainutxosresponse.ts | 15 -- .../components/listpendingrewardsresponse.ts | 15 -- .../listprimarynetworkblocksresponse.ts | 15 -- .../models/components/listsubnetsresponse.ts | 15 -- .../listteleportermessagesresponse.ts | 32 --- .../listtransactiondetailsresponse.ts | 15 -- .../components/listtransfersresponse.ts | 30 --- .../models/components/listutxosresponse.ts | 15 -- .../listvalidatordetailsresponse.ts | 30 --- .../listwebhookaddressesresponse.ts | 15 -- .../models/components/listwebhooksresponse.ts | 30 --- .../components/listxchainbalancesresponse.ts | 15 -- .../listxchaintransactionsresponse.ts | 32 --- .../components/listxchainverticesresponse.ts | 15 -- chainkit/src/models/components/log.ts | 15 -- chainkit/src/models/components/logsformat.ts | 15 -- .../models/components/logsformatmetadata.ts | 15 -- .../src/models/components/logsresponsedto.ts | 15 -- .../models/components/lookingglassresponse.ts | 15 -- chainkit/src/models/components/method.ts | 15 -- chainkit/src/models/components/metric.ts | 15 -- .../models/components/metricsapiresponse.ts | 15 -- .../components/metricslistchainsresponse.ts | 15 -- .../src/models/components/metricsvalue.ts | 15 -- chainkit/src/models/components/money.ts | 15 -- .../models/components/nativetokenbalance.ts | 15 -- .../models/components/nativetransaction.ts | 15 -- chainkit/src/models/components/network.ts | 12 - .../src/models/components/networkmetric.ts | 12 - .../src/models/components/networktoken.ts | 15 -- .../models/components/networktokendetails.ts | 15 -- .../src/models/components/networktokeninfo.ts | 15 -- chainkit/src/models/components/networktype.ts | 12 - .../models/components/nftholdersresponse.ts | 15 -- .../components/nfttokenmetadatastatus.ts | 12 - .../src/models/components/operationstatus.ts | 12 - .../models/components/operationstatuscode.ts | 12 - .../components/operationstatusresponse.ts | 30 --- .../src/models/components/operationtype.ts | 12 - .../models/components/pchainaddressdetails.ts | 15 -- .../src/models/components/pchainbalance.ts | 15 -- chainkit/src/models/components/pchainid.ts | 12 - .../components/pchainlookingglassresponse.ts | 15 -- .../models/components/pchainsharedasset.ts | 15 -- .../models/components/pchaintransaction.ts | 15 -- .../components/pchaintransactiontype.ts | 12 - chainkit/src/models/components/pchainutxo.ts | 15 -- .../components/pendingdelegatordetails.ts | 29 --- .../models/components/pendingicmmessage.ts | 27 --- .../src/models/components/pendingreward.ts | 15 -- .../components/pendingteleportermessage.ts | 27 --- .../components/pendingvalidatordetails.ts | 29 --- .../platformaddressactivitykeytype.ts | 12 - .../src/models/components/pricingproviders.ts | 15 -- .../primarynetworkaddressactivityeventtype.ts | 14 -- .../primarynetworkaddressactivitymetadata.ts | 17 -- .../primarynetworkaddressactivityrequest.ts | 48 ---- .../primarynetworkaddressactivityresponse.ts | 17 -- .../primarynetworkaddressactivitysubevents.ts | 17 -- ...imarynetworkaddressactivitysubeventtype.ts | 14 -- .../primarynetworkaddressesbodydto.ts | 15 -- .../components/primarynetworkassetcap.ts | 12 - .../components/primarynetworkassettype.ts | 12 - .../primarynetworkbalancethresholdfilter.ts | 17 -- .../models/components/primarynetworkblock.ts | 15 -- .../components/primarynetworkchaininfo.ts | 15 -- .../components/primarynetworkchainname.ts | 12 - .../components/primarynetworkoperationtype.ts | 12 - .../components/primarynetworkoptions.ts | 27 --- .../models/components/primarynetworktxtype.ts | 12 - .../models/components/primarynetworktype.ts | 12 - .../src/models/components/proposerdetails.ts | 15 -- .../components/removedvalidatordetails.ts | 29 --- chainkit/src/models/components/requesttype.ts | 12 - .../src/models/components/resourcelink.ts | 15 -- .../src/models/components/resourcelinktype.ts | 12 - chainkit/src/models/components/rewards.ts | 15 -- chainkit/src/models/components/rewardtype.ts | 12 - chainkit/src/models/components/richaddress.ts | 15 -- .../rollingwindowmetricsapiresponse.ts | 15 -- chainkit/src/models/components/rpcmetrics.ts | 15 -- .../components/rpcusagemetricsgroupbyenum.ts | 12 - .../rpcusagemetricsvalueaggregated.ts | 46 ---- chainkit/src/models/components/security.ts | 15 -- .../components/sharedsecretsresponse.ts | 15 -- .../signatureaggregationresponse.ts | 15 -- .../components/signatureaggregatorrequest.ts | 15 -- .../src/models/components/sortbyoption.ts | 12 - chainkit/src/models/components/sortorder.ts | 12 - .../models/components/stakingdistribution.ts | 15 -- chainkit/src/models/components/subnet.ts | 15 -- .../models/components/subnetownershipinfo.ts | 15 -- .../subnetrpctimeintervalgranularity.ts | 12 - .../subnetrpcusagemetricsresponsedto.ts | 15 -- .../teleporterdestinationtransaction.ts | 15 -- .../components/teleportermessageinfo.ts | 15 -- .../models/components/teleporterreceipt.ts | 15 -- .../components/teleporterrewarddetails.ts | 27 --- .../components/teleportersourcetransaction.ts | 15 -- .../components/timeintervalgranularity.ts | 12 - .../timeintervalgranularityextended.ts | 12 - chainkit/src/models/components/transaction.ts | 15 -- .../models/components/transactiondetails.ts | 15 -- .../components/transactiondirectiontype.ts | 12 - .../src/models/components/transactionevent.ts | 15 -- .../components/transactionexportmetadata.ts | 15 -- .../components/transactionmethodtype.ts | 12 - .../models/components/transactionstatus.ts | 12 - .../components/transactionvertexdetail.ts | 15 -- .../src/models/components/unknowncontract.ts | 27 --- .../models/components/updatewebhookrequest.ts | 15 -- .../components/usagemetricsgroupbyenum.ts | 12 - .../components/usagemetricsresponsedto.ts | 15 -- .../models/components/usagemetricsvaluedto.ts | 42 ---- .../src/models/components/utilityaddresses.ts | 15 -- chainkit/src/models/components/utxo.ts | 15 -- .../src/models/components/utxocredential.ts | 15 -- .../models/components/utxossortbyoption.ts | 12 - chainkit/src/models/components/utxotype.ts | 12 - .../models/components/validationstatustype.ts | 12 - .../components/validatoractivityeventtype.ts | 12 - .../components/validatoractivitykeytype.ts | 12 - .../components/validatoractivitymetadata.ts | 15 -- .../components/validatoractivityrequest.ts | 43 ---- .../components/validatoractivityresponse.ts | 15 -- .../components/validatoractivitysubevents.ts | 27 --- .../components/validatorhealthdetails.ts | 15 -- .../models/components/validatorsdetails.ts | 15 -- chainkit/src/models/components/vmname.ts | 12 - .../webhookaddressactivityresponse.ts | 29 --- .../components/webhookinternaltransaction.ts | 15 -- .../src/models/components/webhookstatus.ts | 12 - .../models/components/webhookstatustype.ts | 12 - .../models/components/xchainassetdetails.ts | 15 -- .../src/models/components/xchainbalances.ts | 15 -- chainkit/src/models/components/xchainid.ts | 12 - .../components/xchainlineartransaction.ts | 28 --- .../components/xchainnonlineartransaction.ts | 29 --- .../components/xchainsharedassetbalance.ts | 15 -- .../components/xchaintransactiontype.ts | 12 - .../src/models/components/xchainvertex.ts | 15 -- chainkit/src/models/errors/badgatewayerror.ts | 28 --- chainkit/src/models/errors/badrequesterror.ts | 28 --- chainkit/src/models/errors/forbiddenerror.ts | 28 --- .../src/models/errors/internalservererror.ts | 28 --- chainkit/src/models/errors/notfounderror.ts | 28 --- .../models/errors/serviceunavailableerror.ts | 28 --- .../src/models/errors/toomanyrequestserror.ts | 28 --- .../src/models/errors/unauthorizederror.ts | 28 --- .../operations/addaddressestowebhook.ts | 17 +- .../models/operations/aggregatesignatures.ts | 32 +-- .../src/models/operations/createwebhook.ts | 32 +-- .../src/models/operations/datahealthcheck.ts | 2 +- .../models/operations/deactivatewebhook.ts | 32 +-- .../generateorrotatesharedsecret.ts | 2 +- .../src/models/operations/getaddresschains.ts | 17 +- .../getaddressesbybalanceovertime.ts | 51 ---- .../operations/getaddressesbybtcbbridged.ts | 31 --- .../operations/getaddressesfromwebhook.ts | 32 +-- .../operations/getaggregatedsignatures.ts | 32 +-- chainkit/src/models/operations/getapilogs.ts | 44 +--- .../models/operations/getapiusagemetrics.ts | 29 +-- .../src/models/operations/getassetdetails.ts | 32 +-- .../src/models/operations/getavaxsupply.ts | 2 +- .../operations/getbalancesbyaddresses.ts | 47 +--- chainkit/src/models/operations/getblock.ts | 32 +-- .../src/models/operations/getblockbyid.ts | 32 +-- .../models/operations/getblockchainbyid.ts | 32 +-- chainkit/src/models/operations/getchain.ts | 30 --- .../operations/getchainidsforaddresses.ts | 32 +-- .../src/models/operations/getchaininfo.ts | 32 +-- .../models/operations/getcontractmetadata.ts | 47 +--- .../operations/getdeploymenttransaction.ts | 32 +-- .../models/operations/getevmchainmetrics.ts | 45 ---- .../getevmchainrollingwindowmetrics.ts | 34 --- .../src/models/operations/geticmmessage.ts | 32 +-- .../src/models/operations/geticmsummary.ts | 27 --- .../src/models/operations/geticmtimeseries.ts | 27 --- .../src/models/operations/getlatestblocks.ts | 47 +--- .../models/operations/getmetricsbynodeid.ts | 27 --- .../models/operations/getmetricsbysubnetid.ts | 27 --- .../operations/getmetricsbyvalidationid.ts | 27 --- .../src/models/operations/getnativebalance.ts | 32 +-- .../models/operations/getnetworkdetails.ts | 32 +-- .../getnftholdersbycontractaddress.ts | 51 ---- .../models/operations/getoperationresult.ts | 17 +- .../models/operations/getrpcusagemetrics.ts | 17 +- .../src/models/operations/getsharedsecret.ts | 2 +- .../operations/getsinglevalidatordetails.ts | 48 +--- .../models/operations/getstakingmetrics.ts | 45 ---- .../src/models/operations/getsubnetbyid.ts | 32 +-- .../operations/getsubnetrpcusagemetrics.ts | 17 +- .../models/operations/getteleportermessage.ts | 32 +-- .../src/models/operations/gettokendetails.ts | 47 +--- .../operations/gettotall1validatormetrics.ts | 28 --- .../src/models/operations/gettransaction.ts | 32 +-- .../operations/gettransactionsforblock.ts | 32 +-- chainkit/src/models/operations/gettxbyhash.ts | 47 +--- .../models/operations/getutxosbyaddresses.ts | 62 +---- .../operations/getutxosbyaddressesv2.ts | 63 +---- .../operations/getvalidatorsbydaterange.ts | 30 --- .../src/models/operations/getvertexbyhash.ts | 32 +-- .../models/operations/getvertexbyheight.ts | 47 +--- chainkit/src/models/operations/getwebhook.ts | 32 +-- chainkit/src/models/operations/index.ts | 1 + ...activeprimarynetworkstakingtransactions.ts | 56 +---- .../models/operations/listaddresschains.ts | 17 +- .../models/operations/listalllatestblocks.ts | 32 +-- .../operations/listalllatesttransactions.ts | 33 +-- .../operations/listassettransactions.ts | 47 +--- .../src/models/operations/listblockchains.ts | 47 +--- chainkit/src/models/operations/listchains.ts | 30 --- .../operations/listcollectiblebalances.ts | 47 +--- .../operations/listcontractdeployments.ts | 47 +--- .../src/models/operations/listdelegators.ts | 47 +--- .../models/operations/listerc1155balances.ts | 47 +--- .../operations/listerc1155transactions.ts | 47 +--- .../models/operations/listerc20balances.ts | 47 +--- .../operations/listerc20transactions.ts | 47 +--- .../models/operations/listerc721balances.ts | 47 +--- .../operations/listerc721transactions.ts | 47 +--- .../listhistoricalprimarynetworkrewards.ts | 53 +--- .../src/models/operations/listicmmessages.ts | 32 +-- .../operations/listicmmessagesbyaddress.ts | 17 +- .../operations/listinternaltransactions.ts | 47 +--- .../src/models/operations/listl1validators.ts | 47 +--- .../operations/listlatestblocksallchains.ts | 33 +-- .../listlatestprimarynetworkblocks.ts | 53 +--- .../listlatestprimarynetworktransactions.ts | 71 +----- .../operations/listlatesttransactions.ts | 47 +--- .../listlatesttransactionsallchains.ts | 36 +-- .../operations/listlatestxchainvertices.ts | 47 +--- .../operations/listnativetransactions.ts | 47 +--- .../listpendingprimarynetworkrewards.ts | 53 +--- .../listprimarynetworkblocksbynodeid.ts | 53 +--- chainkit/src/models/operations/listsubnets.ts | 47 +--- .../operations/listteleportermessages.ts | 32 +-- .../listteleportermessagesbyaddress.ts | 19 +- chainkit/src/models/operations/listtokens.ts | 47 +--- .../src/models/operations/listtransactions.ts | 47 +--- .../src/models/operations/listtransfers.ts | 47 +--- .../src/models/operations/listvalidators.ts | 47 +--- .../src/models/operations/listwebhooks.ts | 32 +-- chainkit/src/models/operations/livecheck.ts | 7 + .../operations/posttransactionexportjob.ts | 17 +- chainkit/src/models/operations/reindexnft.ts | 32 +-- .../operations/removeaddressesfromwebhook.ts | 18 +- .../src/models/operations/supportedchains.ts | 17 +- .../src/models/operations/updatewebhook.ts | 32 +-- chainkit/src/sdk/avaxsupply.ts | 3 +- chainkit/src/sdk/data.ts | 18 +- 411 files changed, 2106 insertions(+), 8364 deletions(-) create mode 100644 chainkit/docs/models/components/avaxsupplyresponse.md create mode 100644 chainkit/docs/models/components/evmgenesisallocdto.md create mode 100644 chainkit/docs/models/components/evmgenesisallowlistconfigdto.md create mode 100644 chainkit/docs/models/components/evmgenesisconfigdto.md create mode 100644 chainkit/docs/models/components/evmgenesisdto.md create mode 100644 chainkit/docs/models/components/evmgenesisfeeconfigdto.md create mode 100644 chainkit/docs/models/components/evmgenesiswarpconfigdto.md create mode 100644 chainkit/src/funcs/dataLiveCheck.ts create mode 100644 chainkit/src/mcp-server/tools/dataLiveCheck.ts create mode 100644 chainkit/src/models/components/avaxsupplyresponse.ts create mode 100644 chainkit/src/models/components/evmgenesisallocdto.ts create mode 100644 chainkit/src/models/components/evmgenesisallowlistconfigdto.ts create mode 100644 chainkit/src/models/components/evmgenesisconfigdto.ts create mode 100644 chainkit/src/models/components/evmgenesisdto.ts create mode 100644 chainkit/src/models/components/evmgenesisfeeconfigdto.ts create mode 100644 chainkit/src/models/components/evmgenesiswarpconfigdto.ts create mode 100644 chainkit/src/models/operations/livecheck.ts diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2cfa82ca..39024689 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,29 +1,29 @@ -speakeasyVersion: 1.648.1 +speakeasyVersion: 1.650.0 sources: chainkit-source: sourceNamespace: avalanche-sdk-chainkit-typescript - sourceRevisionDigest: sha256:7bf3cdb27fb5d07d8bb25d53fa58e56443200c1f3027b77cad7721e97ab50f2d - sourceBlobDigest: sha256:cd3f0c49febbaeb565c98c8e894b98b72e98d5b86470d900709cf36e2ae5a7b5 + sourceRevisionDigest: sha256:ab3972b494cb8bf8b42f03e60b9328034c38065c779fc006d59f42573513fb7b + sourceBlobDigest: sha256:bd8f240c05cc61972898e16aaf9a51b3ca94fb6af5f589f4dbefe0d0219842aa tags: - latest - - speakeasy-sdk-regen-1761768382 + - speakeasy-sdk-regen-1762514433 - 1.0.0 targets: chainkit-sdk: source: chainkit-source sourceNamespace: avalanche-sdk-chainkit-typescript - sourceRevisionDigest: sha256:7bf3cdb27fb5d07d8bb25d53fa58e56443200c1f3027b77cad7721e97ab50f2d - sourceBlobDigest: sha256:cd3f0c49febbaeb565c98c8e894b98b72e98d5b86470d900709cf36e2ae5a7b5 + sourceRevisionDigest: sha256:ab3972b494cb8bf8b42f03e60b9328034c38065c779fc006d59f42573513fb7b + sourceBlobDigest: sha256:bd8f240c05cc61972898e16aaf9a51b3ca94fb6af5f589f4dbefe0d0219842aa codeSamplesNamespace: avalanche-sdk-chainkit-typescript-code-samples - codeSamplesRevisionDigest: sha256:fc0c8a5d286790f4f2394f3bfcca1f335c75e455534378bf571ab456b996e686 + codeSamplesRevisionDigest: sha256:9bdf92d8e9e8447d7d15817c2be482258490395145fe99cccbed8fe4c26767b3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: chainkit-source: inputs: - - location: https://popsicle-api.avax.network/api-json - - location: https://glacier-api.avax.network/api-json + - location: https://metrics.avax.network/api-json + - location: https://data-api.avax.network/api-json overlays: - location: chainkit/overlays/overlay.yaml registry: diff --git a/chainkit/.speakeasy/gen.lock b/chainkit/.speakeasy/gen.lock index 4829c4c8..42c1aca7 100644 --- a/chainkit/.speakeasy/gen.lock +++ b/chainkit/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 125b8491-d8a2-4e4f-ad7e-83badf249c68 management: - docChecksum: 85501582624d31f5aa5753177080d57c + docChecksum: ef2075f5fdb3c1d8c753b26c69506b9f docVersion: 1.0.0 - speakeasyVersion: 1.648.1 - generationVersion: 2.739.1 - releaseVersion: 0.3.0-alpha.7 - configChecksum: a9bf4e0a55cc4f35df499884a107d381 + speakeasyVersion: 1.650.0 + generationVersion: 2.743.2 + releaseVersion: 0.3.0-alpha.8 + configChecksum: 0c3ddab268d08f518a28224675737e40 repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git repoSubDirectory: chainkit installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/chainkit @@ -15,7 +15,7 @@ features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.26.0 + core: 3.26.3 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 enumUnions: 0.1.0 @@ -58,6 +58,7 @@ generatedFiles: - docs/models/components/apifeature.md - docs/models/components/assetamount.md - docs/models/components/assetwithpriceinfo.md + - docs/models/components/avaxsupplyresponse.md - docs/models/components/balanceowner.md - docs/models/components/blockchain.md - docs/models/components/blockchaingenesisdata.md @@ -137,6 +138,12 @@ generatedFiles: - docs/models/components/evmaddressactivityrequestmetadata.md - docs/models/components/evmaddressactivityresponse.md - docs/models/components/evmblock.md + - docs/models/components/evmgenesisallocdto.md + - docs/models/components/evmgenesisallowlistconfigdto.md + - docs/models/components/evmgenesisconfigdto.md + - docs/models/components/evmgenesisdto.md + - docs/models/components/evmgenesisfeeconfigdto.md + - docs/models/components/evmgenesiswarpconfigdto.md - docs/models/components/evminput.md - docs/models/components/evmnetworkoptions.md - docs/models/components/evmoperationtype.md @@ -674,6 +681,7 @@ generatedFiles: - src/funcs/dataIcmGet.ts - src/funcs/dataIcmList.ts - src/funcs/dataIcmListByAddress.ts + - src/funcs/dataLiveCheck.ts - src/funcs/dataNftsGet.ts - src/funcs/dataNftsList.ts - src/funcs/dataNftsReindex.ts @@ -805,6 +813,7 @@ generatedFiles: - src/mcp-server/tools/dataIcmGet.ts - src/mcp-server/tools/dataIcmList.ts - src/mcp-server/tools/dataIcmListByAddress.ts + - src/mcp-server/tools/dataLiveCheck.ts - src/mcp-server/tools/dataNftsGet.ts - src/mcp-server/tools/dataNftsList.ts - src/mcp-server/tools/dataNftsReindex.ts @@ -882,6 +891,7 @@ generatedFiles: - src/models/components/apifeature.ts - src/models/components/assetamount.ts - src/models/components/assetwithpriceinfo.ts + - src/models/components/avaxsupplyresponse.ts - src/models/components/balanceowner.ts - src/models/components/blockchain.ts - src/models/components/blockchainid.ts @@ -936,6 +946,12 @@ generatedFiles: - src/models/components/evmaddressactivityrequest.ts - src/models/components/evmaddressactivityresponse.ts - src/models/components/evmblock.ts + - src/models/components/evmgenesisallocdto.ts + - src/models/components/evmgenesisallowlistconfigdto.ts + - src/models/components/evmgenesisconfigdto.ts + - src/models/components/evmgenesisdto.ts + - src/models/components/evmgenesisfeeconfigdto.ts + - src/models/components/evmgenesiswarpconfigdto.ts - src/models/components/evminput.ts - src/models/components/evmnetworkoptions.ts - src/models/components/evmoperationtype.ts @@ -1238,6 +1254,7 @@ generatedFiles: - src/models/operations/listtransfers.ts - src/models/operations/listvalidators.ts - src/models/operations/listwebhooks.ts + - src/models/operations/livecheck.ts - src/models/operations/metricshealthcheck.ts - src/models/operations/posttransactionexportjob.ts - src/models/operations/reindexnft.ts @@ -3797,7 +3814,7 @@ examples: network: "mainnet" responses: "200": - application/json: {"createBlockTimestamp": 6647.43, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114, "genesisData": {}} + application/json: {"createBlockTimestamp": 6647.43, "createBlockNumber": "", "blockchainId": "", "vmId": "", "subnetId": "", "blockchainName": "", "evmChainId": 43114, "genesisData": "{\"chainId\": 43114}"} "400": application/json: {"message": ["", "", ""], "statusCode": 400, "error": "Bad Request"} "401": @@ -6180,6 +6197,8 @@ examples: application/json: {"message": ["", "", ""], "statusCode": 502, "error": "Bad Gateway"} "503": application/json: {"message": "", "statusCode": 503, "error": "Service Unavailable"} + "200": + application/json: {"circulatingSupply": "454257251.7149865026656081965", "totalSupply": "454257251.7149865026656081965", "totalPBurned": "15039.56226661934233308491042", "totalCBurned": "4868917.656222642629429578983", "totalXBurned": "45577.89911362119281041174838", "totalStaked": "199605247.61112", "totalLocked": "36162978.31786130001530843447", "totalRewards": "99186786.83258938583018127214", "lastUpdated": "2025-11-05T20:15:15.678Z", "genesisUnlock": "360000000"} getICMTimeseries: speakeasy-default-get-ICM-timeseries: parameters: @@ -6264,6 +6283,37 @@ examples: application/json: {"message": "", "statusCode": 502, "error": "Bad Gateway"} "503": application/json: {"message": ["", ""], "statusCode": 503, "error": "Service Unavailable"} + live-check: + speakeasy-default-live-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"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Typescript SDK Changes Detected:\n* `avalanche.metrics.chains.getIcmTimeseries()`: **Added**\n* `avalanche.metrics.chains.getIcmSummary()`: **Added**\n* `avalanche.data.primaryNetwork.utxos.listByAddressesV2()`: **Added**\n* `avalanche.metrics.chains.getIcmMetrics()`: **Deleted** **Breaking** :warning:\n* `avalanche.metrics.chains.getIcmRollingWindowMetrics()`: **Deleted** **Breaking** :warning:\n* `avalanche.metrics.chains.getRollingWindowMetrics()`: \n * `request.metric` **Changed**\n * `response.result` **Changed**\n* `avalanche.data.primaryNetwork.utxos.listByAddresses()`: \n * `request.sortBy` **Added**\n* `avalanche.data.signatureAggregator.aggregate()`: \n * `request.signatureAggregatorRequest` **Changed**\n" +releaseNotes: | + ## Typescript SDK Changes Detected: + * `avalanche.data.primaryNetwork.listBlockchains()`: `response.blockchains.[].genesisData` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.getBlockchainById()`: `response.genesisdata` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.listSubnets()`: `response.subnets.[].blockchains.[].genesisData` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.getSubnetById()`: `response.blockchains.[].genesisData` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.transactions.get()`: `response.[pchaintransaction].blockchainInfo.genesisData` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.transactions.listLatest()`: `response.[listpchaintransactionsresponse].transactions.[].blockchainInfo.genesisData` **Changed** **Breaking** :warning: + * `avalanche.data.primaryNetwork.transactions.listActiveStakingTransactions()`: `response.transactions.[].blockchainInfo.genesisData` **Changed** **Breaking** :warning: + * `avalanche.avaxSupply.get()`: `response` **Changed** **Breaking** :warning: + * `avalanche.data.liveCheck()`: **Added** diff --git a/chainkit/.speakeasy/gen.yaml b/chainkit/.speakeasy/gen.yaml index 71fbbca6..8a52da0a 100644 --- a/chainkit/.speakeasy/gen.yaml +++ b/chainkit/.speakeasy/gen.yaml @@ -19,12 +19,13 @@ generation: hoistGlobalSecurity: true schemas: allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 0.3.0-alpha.7 + version: 0.3.0-alpha.8 acceptHeaderEnum: true additionalDependencies: dependencies: @@ -38,6 +39,7 @@ typescript: publishConfig: access: public additionalScripts: {} + alwaysIncludeInboundAndOutbound: false author: Speakeasy baseErrorName: AvalancheError clientServerStatusCodesAsErrors: true @@ -47,6 +49,7 @@ typescript: enableMCPServer: true enableReactQuery: false enumFormat: union + exportZodModelNamespace: false flattenGlobalSecurity: true flatteningOrder: parameters-first generateExamples: true diff --git a/chainkit/README.md b/chainkit/README.md index 33b2e16d..e85e0fb1 100644 --- a/chainkit/README.md +++ b/chainkit/README.md @@ -244,6 +244,7 @@ run(); ### [data](docs/sdks/data/README.md) * [healthCheck](docs/sdks/data/README.md#healthcheck) - Get the health of the service +* [liveCheck](docs/sdks/data/README.md#livecheck) - Get the liveliness of the service (reads only) #### [data.evm.address.balances](docs/sdks/addressbalances/README.md) @@ -488,6 +489,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`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 +- [`dataLiveCheck`](docs/sdks/data/README.md#livecheck) - Get the liveliness of the service (reads only) - [`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 @@ -802,7 +804,7 @@ The default server can be overridden globally by passing a URL to the `serverURL import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ - serverURL: "https://glacier-api.avax.network", + serverURL: "https://data-api.avax.network", }); async function run() { diff --git a/chainkit/RELEASES.md b/chainkit/RELEASES.md index aacfda04..76bc0526 100644 --- a/chainkit/RELEASES.md +++ b/chainkit/RELEASES.md @@ -90,4 +90,14 @@ Based on: ### Generated - [typescript v0.3.0-alpha.7] chainkit ### Releases -- [NPM v0.3.0-alpha.7] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.7 - chainkit \ No newline at end of file +- [NPM v0.3.0-alpha.7] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.7 - chainkit + +## 2025-11-07 11:20:13 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.650.0 (2.743.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.3.0-alpha.8] chainkit +### Releases +- [NPM v0.3.0-alpha.8] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.8 - chainkit \ No newline at end of file diff --git a/chainkit/docs/models/components/avaxsupplyresponse.md b/chainkit/docs/models/components/avaxsupplyresponse.md new file mode 100644 index 00000000..fc1e4721 --- /dev/null +++ b/chainkit/docs/models/components/avaxsupplyresponse.md @@ -0,0 +1,35 @@ +# AvaxSupplyResponse + +## Example Usage + +```typescript +import { AvaxSupplyResponse } from "@avalanche-sdk/chainkit/models/components"; + +let value: AvaxSupplyResponse = { + circulatingSupply: "454257251.7149865026656081965", + totalSupply: "454257251.7149865026656081965", + totalPBurned: "15039.56226661934233308491042", + totalCBurned: "4868917.656222642629429578983", + totalXBurned: "45577.89911362119281041174838", + totalStaked: "199605247.61112", + totalLocked: "36162978.31786130001530843447", + totalRewards: "99186786.83258938583018127214", + lastUpdated: new Date("2025-11-05T20:15:15.678Z"), + genesisUnlock: "360000000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `circulatingSupply` | *string* | :heavy_check_mark: | The circulating supply of AVAX. | 454257251.7149865026656081965 | +| `totalSupply` | *string* | :heavy_check_mark: | The total supply of AVAX. | 454257251.7149865026656081965 | +| `totalPBurned` | *string* | :heavy_check_mark: | The total P-chain burned fees of AVAX. | 15039.56226661934233308491042 | +| `totalCBurned` | *string* | :heavy_check_mark: | The total C-chain burned fees of AVAX. | 4868917.656222642629429578983 | +| `totalXBurned` | *string* | :heavy_check_mark: | The total X-chain burned fees of AVAX. | 45577.89911362119281041174838 | +| `totalStaked` | *string* | :heavy_check_mark: | The total staked AVAX. | 199605247.61112 | +| `totalLocked` | *string* | :heavy_check_mark: | The total locked AVAX. | 36162978.31786130001530843447 | +| `totalRewards` | *string* | :heavy_check_mark: | The total rewards AVAX. | 99186786.83258938583018127214 | +| `lastUpdated` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | The last updated time of the AVAX supply. | 2025-11-05T20:15:15.678Z | +| `genesisUnlock` | *string* | :heavy_check_mark: | The genesis unlock amount of the AVAX supply. | 360000000 | \ No newline at end of file diff --git a/chainkit/docs/models/components/blockchain.md b/chainkit/docs/models/components/blockchain.md index c4c48d77..b377995a 100644 --- a/chainkit/docs/models/components/blockchain.md +++ b/chainkit/docs/models/components/blockchain.md @@ -13,7 +13,7 @@ let value: Blockchain = { subnetId: "", blockchainName: "", evmChainId: 43114, - genesisData: {}, + genesisData: "{\"chainId\": 43114}", }; ``` @@ -28,4 +28,4 @@ let value: Blockchain = { | `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 +| `genesisData` | *components.BlockchainGenesisData* | :heavy_minus_sign: | The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string. | | \ No newline at end of file diff --git a/chainkit/docs/models/components/blockchaingenesisdata.md b/chainkit/docs/models/components/blockchaingenesisdata.md index d9515db9..76b6ffb6 100644 --- a/chainkit/docs/models/components/blockchaingenesisdata.md +++ b/chainkit/docs/models/components/blockchaingenesisdata.md @@ -1,16 +1,139 @@ # BlockchainGenesisData -The genesis data of the blockchain. +The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string. -## Example Usage -```typescript -import { BlockchainGenesisData } from "@avalanche-sdk/chainkit/models/components"; +## Supported Types + +### `components.EvmGenesisDto` -let value: BlockchainGenesisData = {}; +```typescript +const value: components.EvmGenesisDto = { + airdropAmount: null, + airdropHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + alloc: { + "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": { + balance: "0x52b7d2dcc80cd2e4000000", + code: "0x6080604052...", + storage: { + "0x0": "0x1", + }, + }, + }, + baseFeePerGas: null, + blobGasUsed: null, + coinbase: "0x0000000000000000000000000000000000000000", + config: { + berlinBlock: 0, + byzantiumBlock: 0, + chainId: 43114, + constantinopleBlock: 0, + eip150Block: 0, + eip150Hash: + "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0", + eip155Block: 0, + eip158Block: 0, + feeConfig: { + baseFeeChangeDenominator: 36, + blockGasCostStep: 200000, + gasLimit: 12000000, + maxBlockGasCost: 1000000, + minBaseFee: 25000000000, + minBlockGasCost: 0, + targetBlockRate: 2, + targetGas: 60000000, + }, + homesteadBlock: 0, + istanbulBlock: 0, + londonBlock: 0, + muirGlacierBlock: 0, + petersburgBlock: 0, + subnetEVMTimestamp: 0, + allowFeeRecipients: false, + warpConfig: { + blockTimestamp: 1690000000, + quorumNumerator: 67, + requirePrimaryNetworkSigners: true, + }, + txAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractDeployerAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractNativeMinterConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + feeManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + rewardManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + }, + difficulty: "0x0", + excessBlobGas: null, + extraData: "0x", + gasLimit: "0xb71b00", + gasUsed: "0x0", + mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000", + nonce: "0x0", + number: "0x0", + parentHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + timestamp: "0x64f0a000", +}; ``` -## Fields +### `string` + +```typescript +const value: string = "{\"chainId\": 43114}"; +``` -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/chainkit/docs/models/components/blockchaininfo.md b/chainkit/docs/models/components/blockchaininfo.md index 8c8e1345..3b268ac3 100644 --- a/chainkit/docs/models/components/blockchaininfo.md +++ b/chainkit/docs/models/components/blockchaininfo.md @@ -8,6 +8,7 @@ import { BlockchainInfo } from "@avalanche-sdk/chainkit/models/components"; let value: BlockchainInfo = { chainName: "", vmId: "", + genesisData: "{\"chainId\": 43114}", }; ``` @@ -17,4 +18,4 @@ let value: BlockchainInfo = { | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `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 +| `genesisData` | *components.BlockchainInfoGenesisData* | :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/chainkit/docs/models/components/blockchaininfogenesisdata.md b/chainkit/docs/models/components/blockchaininfogenesisdata.md index bb70d530..ca742519 100644 --- a/chainkit/docs/models/components/blockchaininfogenesisdata.md +++ b/chainkit/docs/models/components/blockchaininfogenesisdata.md @@ -2,15 +2,138 @@ 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/chainkit/models/components"; +## Supported Types + +### `components.EvmGenesisDto` -let value: BlockchainInfoGenesisData = {}; +```typescript +const value: components.EvmGenesisDto = { + airdropAmount: null, + airdropHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + alloc: { + "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": { + balance: "0x52b7d2dcc80cd2e4000000", + code: "0x6080604052...", + storage: { + "0x0": "0x1", + }, + }, + }, + baseFeePerGas: null, + blobGasUsed: null, + coinbase: "0x0000000000000000000000000000000000000000", + config: { + berlinBlock: 0, + byzantiumBlock: 0, + chainId: 43114, + constantinopleBlock: 0, + eip150Block: 0, + eip150Hash: + "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0", + eip155Block: 0, + eip158Block: 0, + feeConfig: { + baseFeeChangeDenominator: 36, + blockGasCostStep: 200000, + gasLimit: 12000000, + maxBlockGasCost: 1000000, + minBaseFee: 25000000000, + minBlockGasCost: 0, + targetBlockRate: 2, + targetGas: 60000000, + }, + homesteadBlock: 0, + istanbulBlock: 0, + londonBlock: 0, + muirGlacierBlock: 0, + petersburgBlock: 0, + subnetEVMTimestamp: 0, + allowFeeRecipients: false, + warpConfig: { + blockTimestamp: 1690000000, + quorumNumerator: 67, + requirePrimaryNetworkSigners: true, + }, + txAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractDeployerAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractNativeMinterConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + feeManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + rewardManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + }, + difficulty: "0x0", + excessBlobGas: null, + extraData: "0x", + gasLimit: "0xb71b00", + gasUsed: "0x0", + mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000", + nonce: "0x0", + number: "0x0", + parentHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + timestamp: "0x64f0a000", +}; ``` -## Fields +### `string` + +```typescript +const value: string = "{\"chainId\": 43114}"; +``` -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesisallocdto.md b/chainkit/docs/models/components/evmgenesisallocdto.md new file mode 100644 index 00000000..72d38304 --- /dev/null +++ b/chainkit/docs/models/components/evmgenesisallocdto.md @@ -0,0 +1,20 @@ +# EvmGenesisAllocDto + +## Example Usage + +```typescript +import { EvmGenesisAllocDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisAllocDto = { + balance: "0x295BE96E64066972000000", + code: "0x6080604052...", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `balance` | *string* | :heavy_minus_sign: | Account balance in hex format | 0x295BE96E64066972000000 | +| `code` | *string* | :heavy_minus_sign: | Contract bytecode in hex format | 0x6080604052... | +| `storage` | Record | :heavy_minus_sign: | Contract storage slots | | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesisallowlistconfigdto.md b/chainkit/docs/models/components/evmgenesisallowlistconfigdto.md new file mode 100644 index 00000000..dabe380d --- /dev/null +++ b/chainkit/docs/models/components/evmgenesisallowlistconfigdto.md @@ -0,0 +1,29 @@ +# EvmGenesisAllowListConfigDto + +## Example Usage + +```typescript +import { EvmGenesisAllowListConfigDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisAllowListConfigDto = { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `blockTimestamp` | *number* | :heavy_minus_sign: | Block timestamp | 0 | +| `adminAddresses` | *string*[] | :heavy_minus_sign: | Admin addresses | [
"0x1234..."
] | +| `managerAddresses` | *string*[] | :heavy_minus_sign: | Manager addresses | [
"0x5678..."
] | +| `enabledAddresses` | *string*[] | :heavy_minus_sign: | Enabled addresses | [
"0x9abc..."
] | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesisconfigdto.md b/chainkit/docs/models/components/evmgenesisconfigdto.md new file mode 100644 index 00000000..1afd86f2 --- /dev/null +++ b/chainkit/docs/models/components/evmgenesisconfigdto.md @@ -0,0 +1,128 @@ +# EvmGenesisConfigDto + +## Example Usage + +```typescript +import { EvmGenesisConfigDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisConfigDto = { + berlinBlock: 0, + byzantiumBlock: 0, + chainId: 43114, + constantinopleBlock: 0, + eip150Block: 0, + eip150Hash: + "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0", + eip155Block: 0, + eip158Block: 0, + feeConfig: { + baseFeeChangeDenominator: 36, + blockGasCostStep: 200000, + gasLimit: 12000000, + maxBlockGasCost: 1000000, + minBaseFee: 25000000000, + minBlockGasCost: 0, + targetBlockRate: 2, + targetGas: 60000000, + }, + homesteadBlock: 0, + istanbulBlock: 0, + londonBlock: 0, + muirGlacierBlock: 0, + petersburgBlock: 0, + subnetEVMTimestamp: 0, + allowFeeRecipients: false, + warpConfig: { + blockTimestamp: 1690000000, + quorumNumerator: 67, + requirePrimaryNetworkSigners: true, + }, + txAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractDeployerAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractNativeMinterConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + feeManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + rewardManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `berlinBlock` | *number* | :heavy_minus_sign: | Berlin block number | 0 | +| `byzantiumBlock` | *number* | :heavy_minus_sign: | Byzantium block number | 0 | +| `chainId` | *number* | :heavy_minus_sign: | Chain ID | 43114 | +| `constantinopleBlock` | *number* | :heavy_minus_sign: | Constantinople block number | 0 | +| `eip150Block` | *number* | :heavy_minus_sign: | EIP-150 block number | 0 | +| `eip150Hash` | *string* | :heavy_minus_sign: | EIP-150 hash | 0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0 | +| `eip155Block` | *number* | :heavy_minus_sign: | EIP-155 block number | 0 | +| `eip158Block` | *number* | :heavy_minus_sign: | EIP-158 block number | 0 | +| `feeConfig` | [components.EvmGenesisFeeConfigDto](../../models/components/evmgenesisfeeconfigdto.md) | :heavy_minus_sign: | Fee configuration | | +| `homesteadBlock` | *number* | :heavy_minus_sign: | Homestead block number | 0 | +| `istanbulBlock` | *number* | :heavy_minus_sign: | Istanbul block number | 0 | +| `londonBlock` | *number* | :heavy_minus_sign: | London block number | 0 | +| `muirGlacierBlock` | *number* | :heavy_minus_sign: | Muir Glacier block number | 0 | +| `petersburgBlock` | *number* | :heavy_minus_sign: | Petersburg block number | 0 | +| `subnetEVMTimestamp` | *number* | :heavy_minus_sign: | Subnet EVM timestamp | 0 | +| `allowFeeRecipients` | *boolean* | :heavy_minus_sign: | Allow fee recipients | false | +| `warpConfig` | [components.EvmGenesisWarpConfigDto](../../models/components/evmgenesiswarpconfigdto.md) | :heavy_minus_sign: | Warp configuration | | +| `txAllowListConfig` | [components.EvmGenesisAllowListConfigDto](../../models/components/evmgenesisallowlistconfigdto.md) | :heavy_minus_sign: | Transaction allow list configuration | | +| `contractDeployerAllowListConfig` | [components.EvmGenesisAllowListConfigDto](../../models/components/evmgenesisallowlistconfigdto.md) | :heavy_minus_sign: | Contract deployer allow list configuration | | +| `contractNativeMinterConfig` | [components.EvmGenesisAllowListConfigDto](../../models/components/evmgenesisallowlistconfigdto.md) | :heavy_minus_sign: | Contract native minter configuration | | +| `feeManagerConfig` | [components.EvmGenesisAllowListConfigDto](../../models/components/evmgenesisallowlistconfigdto.md) | :heavy_minus_sign: | Fee manager configuration | | +| `rewardManagerConfig` | [components.EvmGenesisAllowListConfigDto](../../models/components/evmgenesisallowlistconfigdto.md) | :heavy_minus_sign: | Reward manager configuration | | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesisdto.md b/chainkit/docs/models/components/evmgenesisdto.md new file mode 100644 index 00000000..d98065f1 --- /dev/null +++ b/chainkit/docs/models/components/evmgenesisdto.md @@ -0,0 +1,151 @@ +# EvmGenesisDto + +## Example Usage + +```typescript +import { EvmGenesisDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisDto = { + airdropAmount: null, + airdropHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + alloc: { + "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": { + balance: "0x52b7d2dcc80cd2e4000000", + code: "0x6080604052...", + storage: { + "0x0": "0x1", + }, + }, + }, + baseFeePerGas: null, + blobGasUsed: null, + coinbase: "0x0000000000000000000000000000000000000000", + config: { + berlinBlock: 0, + byzantiumBlock: 0, + chainId: 43114, + constantinopleBlock: 0, + eip150Block: 0, + eip150Hash: + "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0", + eip155Block: 0, + eip158Block: 0, + feeConfig: { + baseFeeChangeDenominator: 36, + blockGasCostStep: 200000, + gasLimit: 12000000, + maxBlockGasCost: 1000000, + minBaseFee: 25000000000, + minBlockGasCost: 0, + targetBlockRate: 2, + targetGas: 60000000, + }, + homesteadBlock: 0, + istanbulBlock: 0, + londonBlock: 0, + muirGlacierBlock: 0, + petersburgBlock: 0, + subnetEVMTimestamp: 0, + allowFeeRecipients: false, + warpConfig: { + blockTimestamp: 1690000000, + quorumNumerator: 67, + requirePrimaryNetworkSigners: true, + }, + txAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractDeployerAllowListConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + contractNativeMinterConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + feeManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + rewardManagerConfig: { + blockTimestamp: 0, + adminAddresses: [ + "0x1234...", + ], + managerAddresses: [ + "0x5678...", + ], + enabledAddresses: [ + "0x9abc...", + ], + }, + }, + difficulty: "0x0", + excessBlobGas: null, + extraData: "0x", + gasLimit: "0xb71b00", + gasUsed: "0x0", + mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000", + nonce: "0x0", + number: "0x0", + parentHash: + "0x0000000000000000000000000000000000000000000000000000000000000000", + timestamp: "0x64f0a000", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `airdropAmount` | *number* | :heavy_minus_sign: | Airdrop amount | | +| `airdropHash` | *string* | :heavy_minus_sign: | Airdrop hash | 0x0000000000000000000000000000000000000000000000000000000000000000 | +| `alloc` | Record | :heavy_minus_sign: | Allocation of accounts and balances | {
"0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": {
"balance": "0x52b7d2dcc80cd2e4000000",
"code": "0x6080604052...",
"storage": {
"0x0": "0x1"
}
}
} | +| `baseFeePerGas` | *number* | :heavy_minus_sign: | Base fee per gas | | +| `blobGasUsed` | *string* | :heavy_minus_sign: | Blob gas used | | +| `coinbase` | *string* | :heavy_minus_sign: | Coinbase address | 0x0000000000000000000000000000000000000000 | +| `config` | [components.EvmGenesisConfigDto](../../models/components/evmgenesisconfigdto.md) | :heavy_minus_sign: | Genesis configuration | | +| `difficulty` | *string* | :heavy_minus_sign: | Difficulty | 0x0 | +| `excessBlobGas` | *string* | :heavy_minus_sign: | Excess blob gas | | +| `extraData` | *string* | :heavy_minus_sign: | Extra data | 0x | +| `gasLimit` | *string* | :heavy_minus_sign: | Gas limit | 0xb71b00 | +| `gasUsed` | *string* | :heavy_minus_sign: | Gas used | 0x0 | +| `mixHash` | *string* | :heavy_minus_sign: | Mix hash | 0x0000000000000000000000000000000000000000000000000000000000000000 | +| `nonce` | *string* | :heavy_minus_sign: | Nonce | 0x0 | +| `number` | *string* | :heavy_minus_sign: | Block number | 0x0 | +| `parentHash` | *string* | :heavy_minus_sign: | Parent hash | 0x0000000000000000000000000000000000000000000000000000000000000000 | +| `timestamp` | *string* | :heavy_minus_sign: | Block timestamp | 0x64f0a000 | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesisfeeconfigdto.md b/chainkit/docs/models/components/evmgenesisfeeconfigdto.md new file mode 100644 index 00000000..5d68a7b5 --- /dev/null +++ b/chainkit/docs/models/components/evmgenesisfeeconfigdto.md @@ -0,0 +1,31 @@ +# EvmGenesisFeeConfigDto + +## Example Usage + +```typescript +import { EvmGenesisFeeConfigDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisFeeConfigDto = { + baseFeeChangeDenominator: 36, + blockGasCostStep: 200000, + gasLimit: 12000000, + maxBlockGasCost: 1000000, + minBaseFee: 25000000000, + minBlockGasCost: 0, + targetBlockRate: 2, + targetGas: 60000000, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `baseFeeChangeDenominator` | *number* | :heavy_minus_sign: | Base fee change denominator | 36 | +| `blockGasCostStep` | *number* | :heavy_minus_sign: | Block gas cost step | 200000 | +| `gasLimit` | *number* | :heavy_minus_sign: | Gas limit | 12000000 | +| `maxBlockGasCost` | *number* | :heavy_minus_sign: | Maximum block gas cost | 1000000 | +| `minBaseFee` | *number* | :heavy_minus_sign: | Minimum base fee | 25000000000 | +| `minBlockGasCost` | *number* | :heavy_minus_sign: | Minimum block gas cost | 0 | +| `targetBlockRate` | *number* | :heavy_minus_sign: | Target block rate | 2 | +| `targetGas` | *number* | :heavy_minus_sign: | Target gas | 60000000 | \ No newline at end of file diff --git a/chainkit/docs/models/components/evmgenesiswarpconfigdto.md b/chainkit/docs/models/components/evmgenesiswarpconfigdto.md new file mode 100644 index 00000000..c6e51ed1 --- /dev/null +++ b/chainkit/docs/models/components/evmgenesiswarpconfigdto.md @@ -0,0 +1,21 @@ +# EvmGenesisWarpConfigDto + +## Example Usage + +```typescript +import { EvmGenesisWarpConfigDto } from "@avalanche-sdk/chainkit/models/components"; + +let value: EvmGenesisWarpConfigDto = { + blockTimestamp: 1690000000, + quorumNumerator: 67, + requirePrimaryNetworkSigners: true, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | +| `blockTimestamp` | *number* | :heavy_minus_sign: | Block timestamp | 1690000000 | +| `quorumNumerator` | *number* | :heavy_minus_sign: | Quorum numerator | 67 | +| `requirePrimaryNetworkSigners` | *boolean* | :heavy_minus_sign: | Require primary network signers | true | \ No newline at end of file diff --git a/chainkit/docs/models/components/listpchaintransactionsresponse.md b/chainkit/docs/models/components/listpchaintransactionsresponse.md index 95548777..57af914d 100644 --- a/chainkit/docs/models/components/listpchaintransactionsresponse.md +++ b/chainkit/docs/models/components/listpchaintransactionsresponse.md @@ -46,6 +46,11 @@ let value: ListPChainTransactionsResponse = { "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", ], }, + blockchainInfo: { + chainName: "", + vmId: "", + genesisData: "{\"chainId\": 43114}", + }, }, ], chainInfo: { diff --git a/chainkit/docs/models/components/pchaintransaction.md b/chainkit/docs/models/components/pchaintransaction.md index 87338e36..381097dd 100644 --- a/chainkit/docs/models/components/pchaintransaction.md +++ b/chainkit/docs/models/components/pchaintransaction.md @@ -85,6 +85,11 @@ let value: PChainTransaction = { "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", ], }, + blockchainInfo: { + chainName: "", + vmId: "", + genesisData: "{\"chainId\": 43114}", + }, }; ``` diff --git a/chainkit/docs/models/components/subnet.md b/chainkit/docs/models/components/subnet.md index 80fa63b8..5cb86fb8 100644 --- a/chainkit/docs/models/components/subnet.md +++ b/chainkit/docs/models/components/subnet.md @@ -32,7 +32,7 @@ let value: Subnet = { subnetId: "", blockchainName: "", evmChainId: 43114, - genesisData: {}, + genesisData: "{\"chainId\": 43114}", }, ], }; diff --git a/chainkit/docs/models/operations/gettxbyhashresponse.md b/chainkit/docs/models/operations/gettxbyhashresponse.md index 212986b6..fe7c567f 100644 --- a/chainkit/docs/models/operations/gettxbyhashresponse.md +++ b/chainkit/docs/models/operations/gettxbyhashresponse.md @@ -88,6 +88,11 @@ const value: components.PChainTransaction = { "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", ], }, + blockchainInfo: { + chainName: "", + vmId: "", + genesisData: "{\"chainId\": 43114}", + }, }; ``` diff --git a/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md index ffbd9c23..995753ea 100644 --- a/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md +++ b/chainkit/docs/models/operations/listlatestprimarynetworktransactionsresponsebody.md @@ -49,6 +49,11 @@ const value: components.ListPChainTransactionsResponse = { "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw", ], }, + blockchainInfo: { + chainName: "", + vmId: "", + genesisData: "{\"chainId\": 43114}", + }, }, ], chainInfo: { diff --git a/chainkit/docs/sdks/avaxsupply/README.md b/chainkit/docs/sdks/avaxsupply/README.md index 21b8d848..9c16ee0f 100644 --- a/chainkit/docs/sdks/avaxsupply/README.md +++ b/chainkit/docs/sdks/avaxsupply/README.md @@ -22,9 +22,9 @@ import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche(); async function run() { - await avalanche.avaxSupply.get(); - + const result = await avalanche.avaxSupply.get(); + console.log(result); } run(); @@ -46,7 +46,7 @@ async function run() { const res = await avaxSupplyGet(avalanche); if (res.ok) { const { value: result } = res; - + console.log(result); } else { console.log("avaxSupplyGet failed:", res.error); } @@ -66,7 +66,7 @@ run(); ### Response -**Promise\** +**Promise\<[components.AvaxSupplyResponse](../../models/components/avaxsupplyresponse.md)\>** ### Errors diff --git a/chainkit/docs/sdks/data/README.md b/chainkit/docs/sdks/data/README.md index 32ea28ba..49281e85 100644 --- a/chainkit/docs/sdks/data/README.md +++ b/chainkit/docs/sdks/data/README.md @@ -6,10 +6,11 @@ ### Available Operations * [healthCheck](#healthcheck) - Get the health of the service +* [liveCheck](#livecheck) - Get the liveliness of the service (reads only) ## healthCheck -Check the health of the service. +Check the health of the service. This checks the read and write health of the database and cache. ### Example Usage @@ -68,6 +69,79 @@ run(); ### 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 | \*/\* | + +## liveCheck + +Check the liveliness of the service (reads only). + +### Example Usage + + +```typescript +import { Avalanche } from "@avalanche-sdk/chainkit"; + +const avalanche = new Avalanche(); + +async function run() { + const result = await avalanche.data.liveCheck(); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { AvalancheCore } from "@avalanche-sdk/chainkit/core.js"; +import { dataLiveCheck } from "@avalanche-sdk/chainkit/funcs/dataLiveCheck.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 dataLiveCheck(avalanche); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("dataLiveCheck 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. | +| `options.serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**Promise\<[components.HealthCheckResultDto](../../models/components/healthcheckresultdto.md)\>** + +### Errors + | Error Type | Status Code | Content Type | | ------------------------------ | ------------------------------ | ------------------------------ | | errors.BadRequestError | 400 | application/json | diff --git a/chainkit/examples/package-lock.json b/chainkit/examples/package-lock.json index 7a548a04..59e3565d 100644 --- a/chainkit/examples/package-lock.json +++ b/chainkit/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@avalanche-sdk/chainkit", - "version": "0.3.0-alpha.7", + "version": "0.3.0-alpha.8", "license": "BSD-3-Clause", "dependencies": { "json-canonicalize": "^1.0.6", diff --git a/chainkit/package-lock.json b/chainkit/package-lock.json index 1ad50fc2..76b0554d 100644 --- a/chainkit/package-lock.json +++ b/chainkit/package-lock.json @@ -1,12 +1,12 @@ { "name": "@avalanche-sdk/chainkit", - "version": "0.3.0-alpha.7", + "version": "0.3.0-alpha.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@avalanche-sdk/chainkit", - "version": "0.3.0-alpha.7", + "version": "0.3.0-alpha.8", "license": "BSD-3-Clause", "dependencies": { "json-canonicalize": "^1.0.6", diff --git a/chainkit/package.json b/chainkit/package.json index 86b07a2a..de3df7b1 100644 --- a/chainkit/package.json +++ b/chainkit/package.json @@ -1,6 +1,6 @@ { "name": "@avalanche-sdk/chainkit", - "version": "0.3.0-alpha.7", + "version": "0.3.0-alpha.8", "author": "Sayan Kar", "license": "BSD-3-Clause", "publishConfig": { diff --git a/chainkit/src/funcs/avaxSupplyGet.ts b/chainkit/src/funcs/avaxSupplyGet.ts index 4cb8837d..19486558 100644 --- a/chainkit/src/funcs/avaxSupplyGet.ts +++ b/chainkit/src/funcs/avaxSupplyGet.ts @@ -2,13 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod/v3"; 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, @@ -35,7 +35,7 @@ export function avaxSupplyGet( options?: RequestOptions, ): APIPromise< Result< - void, + components.AvaxSupplyResponse, | errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError @@ -66,7 +66,7 @@ async function $do( ): Promise< [ Result< - void, + components.AvaxSupplyResponse, | errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError @@ -166,7 +166,7 @@ async function $do( }; const [result] = await M.match< - void, + components.AvaxSupplyResponse, | errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError @@ -184,6 +184,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( + M.json(200, components.AvaxSupplyResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), @@ -192,7 +193,6 @@ async function $do( M.jsonErr(500, errors.InternalServerError$inboundSchema), M.jsonErr(502, errors.BadGatewayError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema), - M.nil("2XX", z.void()), M.fail("4XX"), M.fail("5XX"), )(response, req, { extraFields: responseFields }); diff --git a/chainkit/src/funcs/dataHealthCheck.ts b/chainkit/src/funcs/dataHealthCheck.ts index 98c72739..6989d7a1 100644 --- a/chainkit/src/funcs/dataHealthCheck.ts +++ b/chainkit/src/funcs/dataHealthCheck.ts @@ -28,7 +28,7 @@ import { Result } from "../types/fp.js"; * Get the health of the service * * @remarks - * Check the health of the service. + * Check the health of the service. This checks the read and write health of the database and cache. */ export function dataHealthCheck( client: AvalancheCore, diff --git a/chainkit/src/funcs/dataLiveCheck.ts b/chainkit/src/funcs/dataLiveCheck.ts new file mode 100644 index 00000000..61669932 --- /dev/null +++ b/chainkit/src/funcs/dataLiveCheck.ts @@ -0,0 +1,204 @@ +/* + * 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 { LiveCheckServerList } from "../models/operations/livecheck.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get the liveliness of the service (reads only) + * + * @remarks + * Check the liveliness of the service (reads only). + */ +export function dataLiveCheck( + 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 baseURL = options?.serverURL + || pathToFunc(LiveCheckServerList[0], { charEncoding: "percent" })(); + + const path = pathToFunc("/v1/live-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: baseURL ?? "", + operationID: "live-check", + oAuth2Scopes: null, + + 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: baseURL, + 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/chainkit/src/lib/config.ts b/chainkit/src/lib/config.ts index a1ca4e84..d540ea1a 100644 --- a/chainkit/src/lib/config.ts +++ b/chainkit/src/lib/config.ts @@ -15,7 +15,7 @@ export const ServerList = [ /** * Data API */ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type SDKOptions = { @@ -77,8 +77,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "0.3.0-alpha.7", - genVersion: "2.739.1", + sdkVersion: "0.3.0-alpha.8", + genVersion: "2.743.2", userAgent: - "speakeasy-sdk/typescript 0.3.0-alpha.7 2.739.1 1.0.0 @avalanche-sdk/chainkit", + "speakeasy-sdk/typescript 0.3.0-alpha.8 2.743.2 1.0.0 @avalanche-sdk/chainkit", } as const; diff --git a/chainkit/src/mcp-server/mcp-server.ts b/chainkit/src/mcp-server/mcp-server.ts index fd51fc9b..9d7710f6 100644 --- a/chainkit/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.3.0-alpha.7", + currentVersion: "0.3.0-alpha.8", }, }); diff --git a/chainkit/src/mcp-server/server.ts b/chainkit/src/mcp-server/server.ts index 6bcd46d1..2e0557c7 100644 --- a/chainkit/src/mcp-server/server.ts +++ b/chainkit/src/mcp-server/server.ts @@ -46,6 +46,7 @@ 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$dataLiveCheck } from "./tools/dataLiveCheck.js"; import { tool$dataNftsGet } from "./tools/dataNftsGet.js"; import { tool$dataNftsList } from "./tools/dataNftsList.js"; import { tool$dataNftsReindex } from "./tools/dataNftsReindex.js"; @@ -126,7 +127,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Avalanche", - version: "0.3.0-alpha.7", + version: "0.3.0-alpha.8", }); const client = new AvalancheCore({ @@ -161,6 +162,7 @@ export function createMCPServer(deps: { tool(tool$metricsHealthCheck); tool(tool$dataHealthCheck); + tool(tool$dataLiveCheck); tool(tool$webhooksList); tool(tool$webhooksCreate); tool(tool$webhooksGet); diff --git a/chainkit/src/mcp-server/tools/avaxSupplyGet.ts b/chainkit/src/mcp-server/tools/avaxSupplyGet.ts index e888e701..148580e9 100644 --- a/chainkit/src/mcp-server/tools/avaxSupplyGet.ts +++ b/chainkit/src/mcp-server/tools/avaxSupplyGet.ts @@ -23,6 +23,8 @@ Get AVAX supply information that includes total supply, circulating supply, tot }; } - return formatResult(void 0, apiCall); + const value = result.value; + + return formatResult(value, apiCall); }, }; diff --git a/chainkit/src/mcp-server/tools/dataHealthCheck.ts b/chainkit/src/mcp-server/tools/dataHealthCheck.ts index 3491169a..f0fd9406 100644 --- a/chainkit/src/mcp-server/tools/dataHealthCheck.ts +++ b/chainkit/src/mcp-server/tools/dataHealthCheck.ts @@ -9,7 +9,7 @@ export const tool$dataHealthCheck: ToolDefinition = { name: "data-health-check", description: `Get the health of the service -Check the health of the service.`, +Check the health of the service. This checks the read and write health of the database and cache.`, tool: async (client, ctx) => { const [result, apiCall] = await dataHealthCheck( client, diff --git a/chainkit/src/mcp-server/tools/dataLiveCheck.ts b/chainkit/src/mcp-server/tools/dataLiveCheck.ts new file mode 100644 index 00000000..ca30f17e --- /dev/null +++ b/chainkit/src/mcp-server/tools/dataLiveCheck.ts @@ -0,0 +1,30 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { dataLiveCheck } from "../../funcs/dataLiveCheck.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +export const tool$dataLiveCheck: ToolDefinition = { + name: "data-live-check", + description: `Get the liveliness of the service (reads only) + +Check the liveliness of the service (reads only).`, + tool: async (client, ctx) => { + const [result, apiCall] = await dataLiveCheck( + 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/chainkit/src/models/components/accesslistdata.ts b/chainkit/src/models/components/accesslistdata.ts index a4a7a630..25e635dd 100644 --- a/chainkit/src/models/components/accesslistdata.ts +++ b/chainkit/src/models/components/accesslistdata.ts @@ -27,7 +27,6 @@ export const AccessListData$inboundSchema: z.ZodType< accessAddresses: z.string(), storageKeys: z.array(z.string()), }); - /** @internal */ export type AccessListData$Outbound = { accessAddresses: string; @@ -44,23 +43,9 @@ export const AccessListData$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/activedelegatordetails.ts b/chainkit/src/models/components/activedelegatordetails.ts index 23453ce8..3356ca50 100644 --- a/chainkit/src/models/components/activedelegatordetails.ts +++ b/chainkit/src/models/components/activedelegatordetails.ts @@ -33,25 +33,11 @@ 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, @@ -69,7 +55,6 @@ export const ActiveDelegatorDetails$inboundSchema: z.ZodType< estimatedNetReward: z.string(), delegationStatus: ActiveDelegatorDetailsDelegationStatus$inboundSchema, }); - /** @internal */ export type ActiveDelegatorDetails$Outbound = { txHash: string; @@ -102,19 +87,6 @@ export const ActiveDelegatorDetails$outboundSchema: z.ZodType< 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 { @@ -122,7 +94,6 @@ export function activeDelegatorDetailsToJSON( ActiveDelegatorDetails$outboundSchema.parse(activeDelegatorDetails), ); } - export function activeDelegatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/activevalidatordetails.ts b/chainkit/src/models/components/activevalidatordetails.ts index 12f8e996..7a925142 100644 --- a/chainkit/src/models/components/activevalidatordetails.ts +++ b/chainkit/src/models/components/activevalidatordetails.ts @@ -112,25 +112,11 @@ 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, @@ -143,7 +129,6 @@ export const Geolocation$inboundSchema: z.ZodType< latitude: z.number(), longitude: z.number(), }); - /** @internal */ export type Geolocation$Outbound = { city: string; @@ -166,23 +151,9 @@ export const Geolocation$outboundSchema: z.ZodType< 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 { @@ -218,7 +189,6 @@ export const ActiveValidatorDetails$inboundSchema: z.ZodType< validatorHealth: ValidatorHealthDetails$inboundSchema, geolocation: z.nullable(z.lazy(() => Geolocation$inboundSchema)), }); - /** @internal */ export type ActiveValidatorDetails$Outbound = { txHash: string; @@ -267,19 +237,6 @@ export const ActiveValidatorDetails$outboundSchema: z.ZodType< 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 { @@ -287,7 +244,6 @@ export function activeValidatorDetailsToJSON( ActiveValidatorDetails$outboundSchema.parse(activeValidatorDetails), ); } - export function activeValidatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/addressactivityeventtype.ts b/chainkit/src/models/components/addressactivityeventtype.ts index 28c881e8..9742b6b5 100644 --- a/chainkit/src/models/components/addressactivityeventtype.ts +++ b/chainkit/src/models/components/addressactivityeventtype.ts @@ -16,19 +16,7 @@ export type AddressActivityEventType = ClosedEnum< 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/chainkit/src/models/components/addressactivitymetadata.ts b/chainkit/src/models/components/addressactivitymetadata.ts index 027ce490..9638d52c 100644 --- a/chainkit/src/models/components/addressactivitymetadata.ts +++ b/chainkit/src/models/components/addressactivitymetadata.ts @@ -27,7 +27,6 @@ export const AddressActivityMetadata$inboundSchema: z.ZodType< eventSignatures: z.array(z.string()).optional(), addresses: z.array(z.string()), }); - /** @internal */ export type AddressActivityMetadata$Outbound = { eventSignatures?: Array | undefined; @@ -44,19 +43,6 @@ export const AddressActivityMetadata$outboundSchema: z.ZodType< 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 { @@ -64,7 +50,6 @@ export function addressActivityMetadataToJSON( AddressActivityMetadata$outboundSchema.parse(addressActivityMetadata), ); } - export function addressActivityMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/addressdetails.ts b/chainkit/src/models/components/addressdetails.ts index ce0b366e..33810ad2 100644 --- a/chainkit/src/models/components/addressdetails.ts +++ b/chainkit/src/models/components/addressdetails.ts @@ -27,7 +27,6 @@ export const AddressDetails$inboundSchema: z.ZodType< address: z.string(), sortKey: z.string(), }); - /** @internal */ export type AddressDetails$Outbound = { address: string; @@ -44,23 +43,9 @@ export const AddressDetails$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/addresseschangerequest.ts b/chainkit/src/models/components/addresseschangerequest.ts index 63d01125..eee7811e 100644 --- a/chainkit/src/models/components/addresseschangerequest.ts +++ b/chainkit/src/models/components/addresseschangerequest.ts @@ -22,7 +22,6 @@ export const AddressesChangeRequest$inboundSchema: z.ZodType< > = z.object({ addresses: z.array(z.string()), }); - /** @internal */ export type AddressesChangeRequest$Outbound = { addresses: Array; @@ -37,19 +36,6 @@ export const AddressesChangeRequest$outboundSchema: z.ZodType< 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 { @@ -57,7 +43,6 @@ export function addressesChangeRequestToJSON( AddressesChangeRequest$outboundSchema.parse(addressesChangeRequest), ); } - export function addressesChangeRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/aggregatedassetamount.ts b/chainkit/src/models/components/aggregatedassetamount.ts index 67d8fe96..d704b4eb 100644 --- a/chainkit/src/models/components/aggregatedassetamount.ts +++ b/chainkit/src/models/components/aggregatedassetamount.ts @@ -54,7 +54,6 @@ export const AggregatedAssetAmount$inboundSchema: z.ZodType< amount: z.string(), utxoCount: z.number(), }); - /** @internal */ export type AggregatedAssetAmount$Outbound = { assetId: string; @@ -81,19 +80,6 @@ export const AggregatedAssetAmount$outboundSchema: z.ZodType< 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 { @@ -101,7 +87,6 @@ export function aggregatedAssetAmountToJSON( AggregatedAssetAmount$outboundSchema.parse(aggregatedAssetAmount), ); } - export function aggregatedAssetAmountFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/apifeature.ts b/chainkit/src/models/components/apifeature.ts index 93473304..20331b7e 100644 --- a/chainkit/src/models/components/apifeature.ts +++ b/chainkit/src/models/components/apifeature.ts @@ -15,18 +15,6 @@ 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/chainkit/src/models/components/assetamount.ts b/chainkit/src/models/components/assetamount.ts index 8879d130..5a4f76f7 100644 --- a/chainkit/src/models/components/assetamount.ts +++ b/chainkit/src/models/components/assetamount.ts @@ -52,7 +52,6 @@ export const AssetAmount$inboundSchema: z.ZodType< type: PrimaryNetworkAssetType$inboundSchema, amount: z.string(), }); - /** @internal */ export type AssetAmount$Outbound = { assetId: string; @@ -77,23 +76,9 @@ export const AssetAmount$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/assetwithpriceinfo.ts b/chainkit/src/models/components/assetwithpriceinfo.ts index 1bff0e7c..3304a25f 100644 --- a/chainkit/src/models/components/assetwithpriceinfo.ts +++ b/chainkit/src/models/components/assetwithpriceinfo.ts @@ -63,7 +63,6 @@ export const AssetWithPriceInfo$inboundSchema: z.ZodType< amount: z.string(), historicalPrice: Money$inboundSchema.optional(), }); - /** @internal */ export type AssetWithPriceInfo$Outbound = { assetId: string; @@ -90,19 +89,6 @@ export const AssetWithPriceInfo$outboundSchema: z.ZodType< 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 { @@ -110,7 +96,6 @@ export function assetWithPriceInfoToJSON( AssetWithPriceInfo$outboundSchema.parse(assetWithPriceInfo), ); } - export function assetWithPriceInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/avaxsupplyresponse.ts b/chainkit/src/models/components/avaxsupplyresponse.ts new file mode 100644 index 00000000..955d2aa9 --- /dev/null +++ b/chainkit/src/models/components/avaxsupplyresponse.ts @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type AvaxSupplyResponse = { + /** + * The circulating supply of AVAX. + */ + circulatingSupply: string; + /** + * The total supply of AVAX. + */ + totalSupply: string; + /** + * The total P-chain burned fees of AVAX. + */ + totalPBurned: string; + /** + * The total C-chain burned fees of AVAX. + */ + totalCBurned: string; + /** + * The total X-chain burned fees of AVAX. + */ + totalXBurned: string; + /** + * The total staked AVAX. + */ + totalStaked: string; + /** + * The total locked AVAX. + */ + totalLocked: string; + /** + * The total rewards AVAX. + */ + totalRewards: string; + /** + * The last updated time of the AVAX supply. + */ + lastUpdated: Date; + /** + * The genesis unlock amount of the AVAX supply. + */ + genesisUnlock: string; +}; + +/** @internal */ +export const AvaxSupplyResponse$inboundSchema: z.ZodType< + AvaxSupplyResponse, + z.ZodTypeDef, + unknown +> = z.object({ + circulatingSupply: z.string(), + totalSupply: z.string(), + totalPBurned: z.string(), + totalCBurned: z.string(), + totalXBurned: z.string(), + totalStaked: z.string(), + totalLocked: z.string(), + totalRewards: z.string(), + lastUpdated: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ), + genesisUnlock: z.string(), +}); +/** @internal */ +export type AvaxSupplyResponse$Outbound = { + circulatingSupply: string; + totalSupply: string; + totalPBurned: string; + totalCBurned: string; + totalXBurned: string; + totalStaked: string; + totalLocked: string; + totalRewards: string; + lastUpdated: string; + genesisUnlock: string; +}; + +/** @internal */ +export const AvaxSupplyResponse$outboundSchema: z.ZodType< + AvaxSupplyResponse$Outbound, + z.ZodTypeDef, + AvaxSupplyResponse +> = z.object({ + circulatingSupply: z.string(), + totalSupply: z.string(), + totalPBurned: z.string(), + totalCBurned: z.string(), + totalXBurned: z.string(), + totalStaked: z.string(), + totalLocked: z.string(), + totalRewards: z.string(), + lastUpdated: z.date().transform(v => v.toISOString()), + genesisUnlock: z.string(), +}); + +export function avaxSupplyResponseToJSON( + avaxSupplyResponse: AvaxSupplyResponse, +): string { + return JSON.stringify( + AvaxSupplyResponse$outboundSchema.parse(avaxSupplyResponse), + ); +} +export function avaxSupplyResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AvaxSupplyResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AvaxSupplyResponse' from JSON`, + ); +} diff --git a/chainkit/src/models/components/balanceowner.ts b/chainkit/src/models/components/balanceowner.ts index fa180657..fdaf3ed3 100644 --- a/chainkit/src/models/components/balanceowner.ts +++ b/chainkit/src/models/components/balanceowner.ts @@ -21,7 +21,6 @@ export const BalanceOwner$inboundSchema: z.ZodType< addresses: z.array(z.string()), threshold: z.number(), }); - /** @internal */ export type BalanceOwner$Outbound = { addresses: Array; @@ -38,23 +37,9 @@ export const BalanceOwner$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/blockchain.ts b/chainkit/src/models/components/blockchain.ts index 0ee5cf87..6c8d2ef6 100644 --- a/chainkit/src/models/components/blockchain.ts +++ b/chainkit/src/models/components/blockchain.ts @@ -6,11 +6,17 @@ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + EvmGenesisDto, + EvmGenesisDto$inboundSchema, + EvmGenesisDto$Outbound, + EvmGenesisDto$outboundSchema, +} from "./evmgenesisdto.js"; /** - * The genesis data of the blockchain. + * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string. */ -export type BlockchainGenesisData = {}; +export type BlockchainGenesisData = EvmGenesisDto | string; export type Blockchain = { createBlockTimestamp: number; @@ -24,9 +30,9 @@ export type Blockchain = { */ evmChainId: number; /** - * The genesis data of the blockchain. + * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string. */ - genesisData?: BlockchainGenesisData | undefined; + genesisData?: EvmGenesisDto | string | undefined; }; /** @internal */ @@ -34,30 +40,16 @@ export const BlockchainGenesisData$inboundSchema: z.ZodType< BlockchainGenesisData, z.ZodTypeDef, unknown -> = z.object({}); - +> = z.union([EvmGenesisDto$inboundSchema, z.string()]); /** @internal */ -export type BlockchainGenesisData$Outbound = {}; +export type BlockchainGenesisData$Outbound = EvmGenesisDto$Outbound | string; /** @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; -} +> = z.union([EvmGenesisDto$outboundSchema, z.string()]); export function blockchainGenesisDataToJSON( blockchainGenesisData: BlockchainGenesisData, @@ -66,7 +58,6 @@ export function blockchainGenesisDataToJSON( BlockchainGenesisData$outboundSchema.parse(blockchainGenesisData), ); } - export function blockchainGenesisDataFromJSON( jsonString: string, ): SafeParseResult { @@ -90,9 +81,8 @@ export const Blockchain$inboundSchema: z.ZodType< subnetId: z.string(), blockchainName: z.string(), evmChainId: z.number(), - genesisData: z.lazy(() => BlockchainGenesisData$inboundSchema).optional(), + genesisData: z.union([EvmGenesisDto$inboundSchema, z.string()]).optional(), }); - /** @internal */ export type Blockchain$Outbound = { createBlockTimestamp: number; @@ -102,7 +92,7 @@ export type Blockchain$Outbound = { subnetId: string; blockchainName: string; evmChainId: number; - genesisData?: BlockchainGenesisData$Outbound | undefined; + genesisData?: EvmGenesisDto$Outbound | string | undefined; }; /** @internal */ @@ -118,26 +108,12 @@ export const Blockchain$outboundSchema: z.ZodType< subnetId: z.string(), blockchainName: z.string(), evmChainId: z.number(), - genesisData: z.lazy(() => BlockchainGenesisData$outboundSchema).optional(), + genesisData: z.union([EvmGenesisDto$outboundSchema, 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 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 { diff --git a/chainkit/src/models/components/blockchainid.ts b/chainkit/src/models/components/blockchainid.ts index 5f77d1de..2e89fc57 100644 --- a/chainkit/src/models/components/blockchainid.ts +++ b/chainkit/src/models/components/blockchainid.ts @@ -25,18 +25,6 @@ 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/chainkit/src/models/components/blockchainids.ts b/chainkit/src/models/components/blockchainids.ts index 68f6ffe6..ac7c5916 100644 --- a/chainkit/src/models/components/blockchainids.ts +++ b/chainkit/src/models/components/blockchainids.ts @@ -23,19 +23,7 @@ export type BlockchainIds = ClosedEnum; 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/chainkit/src/models/components/blockchaininfo.ts b/chainkit/src/models/components/blockchaininfo.ts index 686b6f68..04a8a17c 100644 --- a/chainkit/src/models/components/blockchaininfo.ts +++ b/chainkit/src/models/components/blockchaininfo.ts @@ -6,11 +6,17 @@ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + EvmGenesisDto, + EvmGenesisDto$inboundSchema, + EvmGenesisDto$Outbound, + EvmGenesisDto$outboundSchema, +} from "./evmgenesisdto.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 BlockchainInfoGenesisData = EvmGenesisDto | string; export type BlockchainInfo = { chainName: string; @@ -18,7 +24,7 @@ export type BlockchainInfo = { /** * 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; + genesisData?: EvmGenesisDto | string | undefined; }; /** @internal */ @@ -26,30 +32,18 @@ export const BlockchainInfoGenesisData$inboundSchema: z.ZodType< BlockchainInfoGenesisData, z.ZodTypeDef, unknown -> = z.object({}); - +> = z.union([EvmGenesisDto$inboundSchema, z.string()]); /** @internal */ -export type BlockchainInfoGenesisData$Outbound = {}; +export type BlockchainInfoGenesisData$Outbound = + | EvmGenesisDto$Outbound + | string; /** @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; -} +> = z.union([EvmGenesisDto$outboundSchema, z.string()]); export function blockchainInfoGenesisDataToJSON( blockchainInfoGenesisData: BlockchainInfoGenesisData, @@ -58,7 +52,6 @@ export function blockchainInfoGenesisDataToJSON( BlockchainInfoGenesisData$outboundSchema.parse(blockchainInfoGenesisData), ); } - export function blockchainInfoGenesisDataFromJSON( jsonString: string, ): SafeParseResult { @@ -77,14 +70,13 @@ export const BlockchainInfo$inboundSchema: z.ZodType< > = z.object({ chainName: z.string(), vmId: z.string(), - genesisData: z.lazy(() => BlockchainInfoGenesisData$inboundSchema).optional(), + genesisData: z.union([EvmGenesisDto$inboundSchema, z.string()]).optional(), }); - /** @internal */ export type BlockchainInfo$Outbound = { chainName: string; vmId: string; - genesisData?: BlockchainInfoGenesisData$Outbound | undefined; + genesisData?: EvmGenesisDto$Outbound | string | undefined; }; /** @internal */ @@ -95,27 +87,12 @@ export const BlockchainInfo$outboundSchema: z.ZodType< > = z.object({ chainName: z.string(), vmId: z.string(), - genesisData: z.lazy(() => BlockchainInfoGenesisData$outboundSchema) - .optional(), + genesisData: z.union([EvmGenesisDto$outboundSchema, 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 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 { diff --git a/chainkit/src/models/components/blscredentials.ts b/chainkit/src/models/components/blscredentials.ts index 2e538997..04439bc4 100644 --- a/chainkit/src/models/components/blscredentials.ts +++ b/chainkit/src/models/components/blscredentials.ts @@ -21,7 +21,6 @@ export const BlsCredentials$inboundSchema: z.ZodType< publicKey: z.string(), proofOfPossession: z.string(), }); - /** @internal */ export type BlsCredentials$Outbound = { publicKey: string; @@ -38,23 +37,9 @@ export const BlsCredentials$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/cchainatomicbalances.ts b/chainkit/src/models/components/cchainatomicbalances.ts index 7124a877..dae027c4 100644 --- a/chainkit/src/models/components/cchainatomicbalances.ts +++ b/chainkit/src/models/components/cchainatomicbalances.ts @@ -27,7 +27,6 @@ export const CChainAtomicBalances$inboundSchema: z.ZodType< atomicMemoryUnlocked: z.array(CChainSharedAssetBalance$inboundSchema), atomicMemoryLocked: z.array(CChainSharedAssetBalance$inboundSchema), }); - /** @internal */ export type CChainAtomicBalances$Outbound = { atomicMemoryUnlocked: Array; @@ -44,19 +43,6 @@ export const CChainAtomicBalances$outboundSchema: z.ZodType< 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 { @@ -64,7 +50,6 @@ export function cChainAtomicBalancesToJSON( CChainAtomicBalances$outboundSchema.parse(cChainAtomicBalances), ); } - export function cChainAtomicBalancesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/cchainexporttransaction.ts b/chainkit/src/models/components/cchainexporttransaction.ts index fa08db51..357e1211 100644 --- a/chainkit/src/models/components/cchainexporttransaction.ts +++ b/chainkit/src/models/components/cchainexporttransaction.ts @@ -88,23 +88,11 @@ export type CChainExportTransaction = { 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, @@ -124,7 +112,6 @@ export const CChainExportTransaction$inboundSchema: z.ZodType< evmInputs: z.array(EVMInput$inboundSchema), emittedUtxos: z.array(Utxo$inboundSchema), }); - /** @internal */ export type CChainExportTransaction$Outbound = { txHash: string; @@ -161,19 +148,6 @@ export const CChainExportTransaction$outboundSchema: z.ZodType< 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 { @@ -181,7 +155,6 @@ export function cChainExportTransactionToJSON( CChainExportTransaction$outboundSchema.parse(cChainExportTransaction), ); } - export function cChainExportTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/cchainimporttransaction.ts b/chainkit/src/models/components/cchainimporttransaction.ts index 5a29c263..986fc8a5 100644 --- a/chainkit/src/models/components/cchainimporttransaction.ts +++ b/chainkit/src/models/components/cchainimporttransaction.ts @@ -88,23 +88,11 @@ export type CChainImportTransaction = { 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, @@ -124,7 +112,6 @@ export const CChainImportTransaction$inboundSchema: z.ZodType< evmOutputs: z.array(EVMOutput$inboundSchema), consumedUtxos: z.array(Utxo$inboundSchema), }); - /** @internal */ export type CChainImportTransaction$Outbound = { txHash: string; @@ -161,19 +148,6 @@ export const CChainImportTransaction$outboundSchema: z.ZodType< 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 { @@ -181,7 +155,6 @@ export function cChainImportTransactionToJSON( CChainImportTransaction$outboundSchema.parse(cChainImportTransaction), ); } - export function cChainImportTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/cchainsharedassetbalance.ts b/chainkit/src/models/components/cchainsharedassetbalance.ts index 5e82c470..b03b67a6 100644 --- a/chainkit/src/models/components/cchainsharedassetbalance.ts +++ b/chainkit/src/models/components/cchainsharedassetbalance.ts @@ -56,7 +56,6 @@ export const CChainSharedAssetBalance$inboundSchema: z.ZodType< utxoCount: z.number(), sharedWithChainId: z.string(), }); - /** @internal */ export type CChainSharedAssetBalance$Outbound = { assetId: string; @@ -85,19 +84,6 @@ export const CChainSharedAssetBalance$outboundSchema: z.ZodType< 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 { @@ -105,7 +91,6 @@ export function cChainSharedAssetBalanceToJSON( CChainSharedAssetBalance$outboundSchema.parse(cChainSharedAssetBalance), ); } - export function cChainSharedAssetBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/chain.ts b/chainkit/src/models/components/chain.ts index 3dfff07d..5bc291dc 100644 --- a/chainkit/src/models/components/chain.ts +++ b/chainkit/src/models/components/chain.ts @@ -44,7 +44,6 @@ export const Chain$inboundSchema: z.ZodType = z subnetId: z.string(), network: NetworkType$inboundSchema, }); - /** @internal */ export type Chain$Outbound = { evmChainId: number; @@ -67,23 +66,9 @@ export const Chain$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/chainaddresschainidmap.ts b/chainkit/src/models/components/chainaddresschainidmap.ts index 2438bc0c..eddfcb70 100644 --- a/chainkit/src/models/components/chainaddresschainidmap.ts +++ b/chainkit/src/models/components/chainaddresschainidmap.ts @@ -26,7 +26,6 @@ export const ChainAddressChainIdMap$inboundSchema: z.ZodType< address: z.string(), blockchainIds: z.array(BlockchainIds$inboundSchema), }); - /** @internal */ export type ChainAddressChainIdMap$Outbound = { address: string; @@ -43,19 +42,6 @@ export const ChainAddressChainIdMap$outboundSchema: z.ZodType< 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 { @@ -63,7 +49,6 @@ export function chainAddressChainIdMapToJSON( ChainAddressChainIdMap$outboundSchema.parse(chainAddressChainIdMap), ); } - export function chainAddressChainIdMapFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/chainaddresschainidmaplistresponse.ts b/chainkit/src/models/components/chainaddresschainidmaplistresponse.ts index 2db1be20..fa83c88d 100644 --- a/chainkit/src/models/components/chainaddresschainidmaplistresponse.ts +++ b/chainkit/src/models/components/chainaddresschainidmaplistresponse.ts @@ -25,7 +25,6 @@ export const ChainAddressChainIdMapListResponse$inboundSchema: z.ZodType< > = z.object({ addresses: z.array(ChainAddressChainIdMap$inboundSchema), }); - /** @internal */ export type ChainAddressChainIdMapListResponse$Outbound = { addresses: Array; @@ -40,20 +39,6 @@ export const ChainAddressChainIdMapListResponse$outboundSchema: z.ZodType< 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 { @@ -63,7 +48,6 @@ export function chainAddressChainIdMapListResponseToJSON( ), ); } - export function chainAddressChainIdMapListResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/chaininfo.ts b/chainkit/src/models/components/chaininfo.ts index cdf39fa0..b7fba1c5 100644 --- a/chainkit/src/models/components/chaininfo.ts +++ b/chainkit/src/models/components/chaininfo.ts @@ -66,23 +66,11 @@ export type ChainInfo = { 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, @@ -107,7 +95,6 @@ export const ChainInfo$inboundSchema: z.ZodType< private: z.boolean().optional(), enabledFeatures: z.array(ChainInfoEnabledFeature$inboundSchema).optional(), }); - /** @internal */ export type ChainInfo$Outbound = { chainId: string; @@ -154,23 +141,9 @@ export const ChainInfo$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/chainmetric.ts b/chainkit/src/models/components/chainmetric.ts index 4d05fcc4..d7abe541 100644 --- a/chainkit/src/models/components/chainmetric.ts +++ b/chainkit/src/models/components/chainmetric.ts @@ -29,18 +29,6 @@ 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/chainkit/src/models/components/chainrollingwindowmetric.ts b/chainkit/src/models/components/chainrollingwindowmetric.ts index 58814c1f..523af7d5 100644 --- a/chainkit/src/models/components/chainrollingwindowmetric.ts +++ b/chainkit/src/models/components/chainrollingwindowmetric.ts @@ -28,19 +28,7 @@ export type ChainRollingWindowMetric = ClosedEnum< 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/chainkit/src/models/components/chainrollingwindowmetricsvalue.ts b/chainkit/src/models/components/chainrollingwindowmetricsvalue.ts index b777c45c..193246d1 100644 --- a/chainkit/src/models/components/chainrollingwindowmetricsvalue.ts +++ b/chainkit/src/models/components/chainrollingwindowmetricsvalue.ts @@ -52,7 +52,6 @@ export const ChainRollingWindowMetricsValue$inboundSchema: z.ZodType< lastYear: z.number().optional(), allTime: z.number().optional(), }); - /** @internal */ export type ChainRollingWindowMetricsValue$Outbound = { lastHour?: number | undefined; @@ -79,19 +78,6 @@ export const ChainRollingWindowMetricsValue$outboundSchema: z.ZodType< allTime: 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 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 { @@ -101,7 +87,6 @@ export function chainRollingWindowMetricsValueToJSON( ), ); } - export function chainRollingWindowMetricsValueFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/chainstatus.ts b/chainkit/src/models/components/chainstatus.ts index b652fb7e..a9c08e62 100644 --- a/chainkit/src/models/components/chainstatus.ts +++ b/chainkit/src/models/components/chainstatus.ts @@ -20,18 +20,6 @@ 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/chainkit/src/models/components/commonbalancetype.ts b/chainkit/src/models/components/commonbalancetype.ts index c194afc7..196191cb 100644 --- a/chainkit/src/models/components/commonbalancetype.ts +++ b/chainkit/src/models/components/commonbalancetype.ts @@ -29,19 +29,7 @@ export type CommonBalanceType = ClosedEnum; 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/chainkit/src/models/components/completeddelegatordetails.ts b/chainkit/src/models/components/completeddelegatordetails.ts index 84f39a3c..5bb97aba 100644 --- a/chainkit/src/models/components/completeddelegatordetails.ts +++ b/chainkit/src/models/components/completeddelegatordetails.ts @@ -38,25 +38,11 @@ export type CompletedDelegatorDetails = { 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, @@ -74,7 +60,6 @@ export const CompletedDelegatorDetails$inboundSchema: z.ZodType< netReward: z.string(), delegationStatus: CompletedDelegatorDetailsDelegationStatus$inboundSchema, }); - /** @internal */ export type CompletedDelegatorDetails$Outbound = { txHash: string; @@ -107,19 +92,6 @@ export const CompletedDelegatorDetails$outboundSchema: z.ZodType< 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 { @@ -127,7 +99,6 @@ export function completedDelegatorDetailsToJSON( CompletedDelegatorDetails$outboundSchema.parse(completedDelegatorDetails), ); } - export function completedDelegatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/completedvalidatordetails.ts b/chainkit/src/models/components/completedvalidatordetails.ts index 52a9bcf0..511eb172 100644 --- a/chainkit/src/models/components/completedvalidatordetails.ts +++ b/chainkit/src/models/components/completedvalidatordetails.ts @@ -52,25 +52,11 @@ export type CompletedValidatorDetails = { 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, @@ -90,7 +76,6 @@ export const CompletedValidatorDetails$inboundSchema: z.ZodType< rewards: Rewards$inboundSchema, validationStatus: CompletedValidatorDetailsValidationStatus$inboundSchema, }); - /** @internal */ export type CompletedValidatorDetails$Outbound = { txHash: string; @@ -127,19 +112,6 @@ export const CompletedValidatorDetails$outboundSchema: z.ZodType< 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 { @@ -147,7 +119,6 @@ export function completedValidatorDetailsToJSON( CompletedValidatorDetails$outboundSchema.parse(completedValidatorDetails), ); } - export function completedValidatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/contractdeploymentdetails.ts b/chainkit/src/models/components/contractdeploymentdetails.ts index bd7ea99e..eb256c27 100644 --- a/chainkit/src/models/components/contractdeploymentdetails.ts +++ b/chainkit/src/models/components/contractdeploymentdetails.ts @@ -29,7 +29,6 @@ export const ContractDeploymentDetails$inboundSchema: z.ZodType< deployerAddress: z.string(), deployerContractAddress: z.string().optional(), }); - /** @internal */ export type ContractDeploymentDetails$Outbound = { txHash: string; @@ -48,19 +47,6 @@ export const ContractDeploymentDetails$outboundSchema: z.ZodType< 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 { @@ -68,7 +54,6 @@ export function contractDeploymentDetailsToJSON( ContractDeploymentDetails$outboundSchema.parse(contractDeploymentDetails), ); } - export function contractDeploymentDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/createevmtransactionexportrequest.ts b/chainkit/src/models/components/createevmtransactionexportrequest.ts index a420ca93..bdacaad2 100644 --- a/chainkit/src/models/components/createevmtransactionexportrequest.ts +++ b/chainkit/src/models/components/createevmtransactionexportrequest.ts @@ -46,7 +46,6 @@ export const CreateEvmTransactionExportRequest$inboundSchema: z.ZodType< endDate: z.string().optional(), options: EvmNetworkOptions$inboundSchema, }); - /** @internal */ export type CreateEvmTransactionExportRequest$Outbound = { type: string; @@ -71,20 +70,6 @@ export const CreateEvmTransactionExportRequest$outboundSchema: z.ZodType< 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 { @@ -94,7 +79,6 @@ export function createEvmTransactionExportRequestToJSON( ), ); } - export function createEvmTransactionExportRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts b/chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts index 994ae5f2..b94c4206 100644 --- a/chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts +++ b/chainkit/src/models/components/createprimarynetworktransactionexportrequest.ts @@ -47,7 +47,6 @@ export const CreatePrimaryNetworkTransactionExportRequest$inboundSchema: endDate: z.string().optional(), options: PrimaryNetworkOptions$inboundSchema, }); - /** @internal */ export type CreatePrimaryNetworkTransactionExportRequest$Outbound = { type: string; @@ -73,21 +72,6 @@ export const CreatePrimaryNetworkTransactionExportRequest$outboundSchema: 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, @@ -98,7 +82,6 @@ export function createPrimaryNetworkTransactionExportRequestToJSON( ), ); } - export function createPrimaryNetworkTransactionExportRequestFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/components/currencycode.ts b/chainkit/src/models/components/currencycode.ts index f0dee089..df132740 100644 --- a/chainkit/src/models/components/currencycode.ts +++ b/chainkit/src/models/components/currencycode.ts @@ -32,18 +32,6 @@ 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/chainkit/src/models/components/datalistchainsresponse.ts b/chainkit/src/models/components/datalistchainsresponse.ts index b8b70145..7b18f0a0 100644 --- a/chainkit/src/models/components/datalistchainsresponse.ts +++ b/chainkit/src/models/components/datalistchainsresponse.ts @@ -25,7 +25,6 @@ export const DataListChainsResponse$inboundSchema: z.ZodType< > = z.object({ chains: z.array(ChainInfo$inboundSchema), }); - /** @internal */ export type DataListChainsResponse$Outbound = { chains: Array; @@ -40,19 +39,6 @@ export const DataListChainsResponse$outboundSchema: z.ZodType< 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 DataListChainsResponse$ { - /** @deprecated use `DataListChainsResponse$inboundSchema` instead. */ - export const inboundSchema = DataListChainsResponse$inboundSchema; - /** @deprecated use `DataListChainsResponse$outboundSchema` instead. */ - export const outboundSchema = DataListChainsResponse$outboundSchema; - /** @deprecated use `DataListChainsResponse$Outbound` instead. */ - export type Outbound = DataListChainsResponse$Outbound; -} - export function dataListChainsResponseToJSON( dataListChainsResponse: DataListChainsResponse, ): string { @@ -60,7 +46,6 @@ export function dataListChainsResponseToJSON( DataListChainsResponse$outboundSchema.parse(dataListChainsResponse), ); } - export function dataListChainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/delegationstatustype.ts b/chainkit/src/models/components/delegationstatustype.ts index e3d52099..d12f800e 100644 --- a/chainkit/src/models/components/delegationstatustype.ts +++ b/chainkit/src/models/components/delegationstatustype.ts @@ -16,19 +16,7 @@ export type DelegationStatusType = ClosedEnum; 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/chainkit/src/models/components/delegatorsdetails.ts b/chainkit/src/models/components/delegatorsdetails.ts index 509288e1..9caf518e 100644 --- a/chainkit/src/models/components/delegatorsdetails.ts +++ b/chainkit/src/models/components/delegatorsdetails.ts @@ -21,7 +21,6 @@ export const DelegatorsDetails$inboundSchema: z.ZodType< delegatorCount: z.number(), totalAmountStaked: z.string(), }); - /** @internal */ export type DelegatorsDetails$Outbound = { delegatorCount: number; @@ -38,19 +37,6 @@ export const DelegatorsDetails$outboundSchema: z.ZodType< 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 { @@ -58,7 +44,6 @@ export function delegatorsDetailsToJSON( DelegatorsDetails$outboundSchema.parse(delegatorsDetails), ); } - export function delegatorsDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/deliveredicmmessage.ts b/chainkit/src/models/components/deliveredicmmessage.ts index 43310556..0ad4cff6 100644 --- a/chainkit/src/models/components/deliveredicmmessage.ts +++ b/chainkit/src/models/components/deliveredicmmessage.ts @@ -63,23 +63,11 @@ export type DeliveredIcmMessage = { 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, @@ -104,7 +92,6 @@ export const DeliveredIcmMessage$inboundSchema: z.ZodType< destinationTransaction: IcmDestinationTransaction$inboundSchema, status: DeliveredIcmMessageStatus$inboundSchema, }); - /** @internal */ export type DeliveredIcmMessage$Outbound = { messageId: string; @@ -151,19 +138,6 @@ export const DeliveredIcmMessage$outboundSchema: z.ZodType< 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 { @@ -171,7 +145,6 @@ export function deliveredIcmMessageToJSON( DeliveredIcmMessage$outboundSchema.parse(deliveredIcmMessage), ); } - export function deliveredIcmMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts b/chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts index 988312be..629ec205 100644 --- a/chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts +++ b/chainkit/src/models/components/deliveredsourcenotindexedicmmessage.ts @@ -56,25 +56,11 @@ export type DeliveredSourceNotIndexedIcmMessage = { 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, @@ -98,7 +84,6 @@ export const DeliveredSourceNotIndexedIcmMessage$inboundSchema: z.ZodType< destinationTransaction: IcmDestinationTransaction$inboundSchema, status: DeliveredSourceNotIndexedIcmMessageStatus$inboundSchema, }); - /** @internal */ export type DeliveredSourceNotIndexedIcmMessage$Outbound = { messageId: string; @@ -143,21 +128,6 @@ export const DeliveredSourceNotIndexedIcmMessage$outboundSchema: z.ZodType< 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 { @@ -167,7 +137,6 @@ export function deliveredSourceNotIndexedIcmMessageToJSON( ), ); } - export function deliveredSourceNotIndexedIcmMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts b/chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts index 0c9e904b..2a1fd6be 100644 --- a/chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts +++ b/chainkit/src/models/components/deliveredsourcenotindexedteleportermessage.ts @@ -56,25 +56,11 @@ export type DeliveredSourceNotIndexedTeleporterMessage = { 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 = @@ -96,7 +82,6 @@ export const DeliveredSourceNotIndexedTeleporterMessage$inboundSchema: destinationTransaction: TeleporterDestinationTransaction$inboundSchema, status: DeliveredSourceNotIndexedTeleporterMessageStatus$inboundSchema, }); - /** @internal */ export type DeliveredSourceNotIndexedTeleporterMessage$Outbound = { messageId: string; @@ -142,21 +127,6 @@ export const DeliveredSourceNotIndexedTeleporterMessage$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, @@ -167,7 +137,6 @@ export function deliveredSourceNotIndexedTeleporterMessageToJSON( ), ); } - export function deliveredSourceNotIndexedTeleporterMessageFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/components/deliveredteleportermessage.ts b/chainkit/src/models/components/deliveredteleportermessage.ts index b62784f8..10897661 100644 --- a/chainkit/src/models/components/deliveredteleportermessage.ts +++ b/chainkit/src/models/components/deliveredteleportermessage.ts @@ -63,23 +63,11 @@ export type DeliveredTeleporterMessage = { 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, @@ -104,7 +92,6 @@ export const DeliveredTeleporterMessage$inboundSchema: z.ZodType< destinationTransaction: TeleporterDestinationTransaction$inboundSchema, status: DeliveredTeleporterMessageStatus$inboundSchema, }); - /** @internal */ export type DeliveredTeleporterMessage$Outbound = { messageId: string; @@ -151,19 +138,6 @@ export const DeliveredTeleporterMessage$outboundSchema: z.ZodType< 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 { @@ -171,7 +145,6 @@ export function deliveredTeleporterMessageToJSON( DeliveredTeleporterMessage$outboundSchema.parse(deliveredTeleporterMessage), ); } - export function deliveredTeleporterMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc1155contract.ts b/chainkit/src/models/components/erc1155contract.ts index c53987a1..06dc6a98 100644 --- a/chainkit/src/models/components/erc1155contract.ts +++ b/chainkit/src/models/components/erc1155contract.ts @@ -67,23 +67,11 @@ export type Erc1155Contract = { 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, @@ -105,7 +93,6 @@ export const Erc1155Contract$inboundSchema: z.ZodType< symbol: z.string().optional(), pricingProviders: PricingProviders$inboundSchema.optional(), }); - /** @internal */ export type Erc1155Contract$Outbound = { name?: string | undefined; @@ -146,25 +133,11 @@ export const Erc1155Contract$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc1155token.ts b/chainkit/src/models/components/erc1155token.ts index 99d22b1f..58318bc4 100644 --- a/chainkit/src/models/components/erc1155token.ts +++ b/chainkit/src/models/components/erc1155token.ts @@ -34,23 +34,11 @@ export type Erc1155Token = { 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, @@ -63,7 +51,6 @@ export const Erc1155Token$inboundSchema: z.ZodType< tokenUri: z.string(), metadata: Erc1155TokenMetadata$inboundSchema, }); - /** @internal */ export type Erc1155Token$Outbound = { address: string; @@ -86,23 +73,9 @@ export const Erc1155Token$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc1155tokenbalance.ts b/chainkit/src/models/components/erc1155tokenbalance.ts index 1370b508..732307f5 100644 --- a/chainkit/src/models/components/erc1155tokenbalance.ts +++ b/chainkit/src/models/components/erc1155tokenbalance.ts @@ -44,23 +44,11 @@ export type Erc1155TokenBalance = { 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, @@ -75,7 +63,6 @@ export const Erc1155TokenBalance$inboundSchema: z.ZodType< chainId: z.string(), balance: z.string(), }); - /** @internal */ export type Erc1155TokenBalance$Outbound = { address: string; @@ -102,19 +89,6 @@ export const Erc1155TokenBalance$outboundSchema: z.ZodType< 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 { @@ -122,7 +96,6 @@ export function erc1155TokenBalanceToJSON( Erc1155TokenBalance$outboundSchema.parse(erc1155TokenBalance), ); } - export function erc1155TokenBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc1155tokenmetadata.ts b/chainkit/src/models/components/erc1155tokenmetadata.ts index ccbe0f8d..2e2e0e9c 100644 --- a/chainkit/src/models/components/erc1155tokenmetadata.ts +++ b/chainkit/src/models/components/erc1155tokenmetadata.ts @@ -47,7 +47,6 @@ export const Erc1155TokenMetadata$inboundSchema: z.ZodType< decimals: z.number().optional(), properties: z.string().optional(), }); - /** @internal */ export type Erc1155TokenMetadata$Outbound = { indexStatus: string; @@ -82,19 +81,6 @@ export const Erc1155TokenMetadata$outboundSchema: z.ZodType< 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 { @@ -102,7 +88,6 @@ export function erc1155TokenMetadataToJSON( Erc1155TokenMetadata$outboundSchema.parse(erc1155TokenMetadata), ); } - export function erc1155TokenMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc1155transfer.ts b/chainkit/src/models/components/erc1155transfer.ts index fb79beb4..8d558513 100644 --- a/chainkit/src/models/components/erc1155transfer.ts +++ b/chainkit/src/models/components/erc1155transfer.ts @@ -59,7 +59,6 @@ export const Erc1155Transfer$inboundSchema: z.ZodType< value: z.string(), erc1155Token: Erc1155Token$inboundSchema, }); - /** @internal */ export type Erc1155Transfer$Outbound = { blockNumber: string; @@ -90,25 +89,11 @@ export const Erc1155Transfer$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc1155transferdetails.ts b/chainkit/src/models/components/erc1155transferdetails.ts index f2a6d38e..9f4d0088 100644 --- a/chainkit/src/models/components/erc1155transferdetails.ts +++ b/chainkit/src/models/components/erc1155transferdetails.ts @@ -39,7 +39,6 @@ export const Erc1155TransferDetails$inboundSchema: z.ZodType< value: z.string(), erc1155Token: Erc1155Token$inboundSchema, }); - /** @internal */ export type Erc1155TransferDetails$Outbound = { from: RichAddress$Outbound; @@ -62,19 +61,6 @@ export const Erc1155TransferDetails$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function erc1155TransferDetailsToJSON( Erc1155TransferDetails$outboundSchema.parse(erc1155TransferDetails), ); } - export function erc1155TransferDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc20contract.ts b/chainkit/src/models/components/erc20contract.ts index 659d657a..2ed35373 100644 --- a/chainkit/src/models/components/erc20contract.ts +++ b/chainkit/src/models/components/erc20contract.ts @@ -71,23 +71,11 @@ export type Erc20Contract = { 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, @@ -110,7 +98,6 @@ export const Erc20Contract$inboundSchema: z.ZodType< decimals: z.number(), pricingProviders: PricingProviders$inboundSchema.optional(), }); - /** @internal */ export type Erc20Contract$Outbound = { name?: string | undefined; @@ -153,23 +140,9 @@ export const Erc20Contract$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc20token.ts b/chainkit/src/models/components/erc20token.ts index 61d4e7f9..7cd02dc6 100644 --- a/chainkit/src/models/components/erc20token.ts +++ b/chainkit/src/models/components/erc20token.ts @@ -51,23 +51,11 @@ export type Erc20Token = { 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, @@ -82,7 +70,6 @@ export const Erc20Token$inboundSchema: z.ZodType< ercType: Erc20TokenErcType$inboundSchema, price: Money$inboundSchema.optional(), }); - /** @internal */ export type Erc20Token$Outbound = { address: string; @@ -109,23 +96,9 @@ export const Erc20Token$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc20tokenbalance.ts b/chainkit/src/models/components/erc20tokenbalance.ts index 9da8e47f..1420b36f 100644 --- a/chainkit/src/models/components/erc20tokenbalance.ts +++ b/chainkit/src/models/components/erc20tokenbalance.ts @@ -81,44 +81,20 @@ export type Erc20TokenBalance = { 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, @@ -137,7 +113,6 @@ export const Erc20TokenBalance$inboundSchema: z.ZodType< balanceValue: Money$inboundSchema.optional(), tokenReputation: z.nullable(TokenReputation$inboundSchema), }); - /** @internal */ export type Erc20TokenBalance$Outbound = { address: string; @@ -172,19 +147,6 @@ export const Erc20TokenBalance$outboundSchema: z.ZodType< 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 { @@ -192,7 +154,6 @@ export function erc20TokenBalanceToJSON( Erc20TokenBalance$outboundSchema.parse(erc20TokenBalance), ); } - export function erc20TokenBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc20transfer.ts b/chainkit/src/models/components/erc20transfer.ts index a17bc010..78e7fbe2 100644 --- a/chainkit/src/models/components/erc20transfer.ts +++ b/chainkit/src/models/components/erc20transfer.ts @@ -59,7 +59,6 @@ export const Erc20Transfer$inboundSchema: z.ZodType< value: z.string(), erc20Token: Erc20Token$inboundSchema, }); - /** @internal */ export type Erc20Transfer$Outbound = { blockNumber: string; @@ -90,23 +89,9 @@ export const Erc20Transfer$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc20transferdetails.ts b/chainkit/src/models/components/erc20transferdetails.ts index 7b4ec19d..9b8b6fa6 100644 --- a/chainkit/src/models/components/erc20transferdetails.ts +++ b/chainkit/src/models/components/erc20transferdetails.ts @@ -39,7 +39,6 @@ export const Erc20TransferDetails$inboundSchema: z.ZodType< value: z.string(), erc20Token: Erc20Token$inboundSchema, }); - /** @internal */ export type Erc20TransferDetails$Outbound = { from: RichAddress$Outbound; @@ -62,19 +61,6 @@ export const Erc20TransferDetails$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function erc20TransferDetailsToJSON( Erc20TransferDetails$outboundSchema.parse(erc20TransferDetails), ); } - export function erc20TransferDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc721contract.ts b/chainkit/src/models/components/erc721contract.ts index 96b35e01..34d7e407 100644 --- a/chainkit/src/models/components/erc721contract.ts +++ b/chainkit/src/models/components/erc721contract.ts @@ -60,23 +60,11 @@ export type Erc721Contract = { 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, @@ -97,7 +85,6 @@ export const Erc721Contract$inboundSchema: z.ZodType< ercType: Erc721ContractErcType$inboundSchema, symbol: z.string().optional(), }); - /** @internal */ export type Erc721Contract$Outbound = { name?: string | undefined; @@ -136,23 +123,9 @@ export const Erc721Contract$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc721token.ts b/chainkit/src/models/components/erc721token.ts index 063da3c1..05913195 100644 --- a/chainkit/src/models/components/erc721token.ts +++ b/chainkit/src/models/components/erc721token.ts @@ -46,23 +46,11 @@ export type Erc721Token = { 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, @@ -78,7 +66,6 @@ export const Erc721Token$inboundSchema: z.ZodType< metadata: Erc721TokenMetadata$inboundSchema, ownerAddress: z.string().optional(), }); - /** @internal */ export type Erc721Token$Outbound = { address: string; @@ -107,23 +94,9 @@ export const Erc721Token$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc721tokenbalance.ts b/chainkit/src/models/components/erc721tokenbalance.ts index 9677e726..217b546c 100644 --- a/chainkit/src/models/components/erc721tokenbalance.ts +++ b/chainkit/src/models/components/erc721tokenbalance.ts @@ -52,23 +52,11 @@ export type Erc721TokenBalance = { 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, @@ -85,7 +73,6 @@ export const Erc721TokenBalance$inboundSchema: z.ZodType< ownerAddress: z.string().optional(), chainId: z.string(), }); - /** @internal */ export type Erc721TokenBalance$Outbound = { address: string; @@ -116,19 +103,6 @@ export const Erc721TokenBalance$outboundSchema: z.ZodType< 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 { @@ -136,7 +110,6 @@ export function erc721TokenBalanceToJSON( Erc721TokenBalance$outboundSchema.parse(erc721TokenBalance), ); } - export function erc721TokenBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc721tokenmetadata.ts b/chainkit/src/models/components/erc721tokenmetadata.ts index ad548273..1e392273 100644 --- a/chainkit/src/models/components/erc721tokenmetadata.ts +++ b/chainkit/src/models/components/erc721tokenmetadata.ts @@ -45,7 +45,6 @@ export const Erc721TokenMetadata$inboundSchema: z.ZodType< background: z.string().optional(), attributes: z.string().optional(), }); - /** @internal */ export type Erc721TokenMetadata$Outbound = { indexStatus: string; @@ -78,19 +77,6 @@ export const Erc721TokenMetadata$outboundSchema: z.ZodType< 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 { @@ -98,7 +84,6 @@ export function erc721TokenMetadataToJSON( Erc721TokenMetadata$outboundSchema.parse(erc721TokenMetadata), ); } - export function erc721TokenMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erc721transfer.ts b/chainkit/src/models/components/erc721transfer.ts index 2936b961..aa4076ad 100644 --- a/chainkit/src/models/components/erc721transfer.ts +++ b/chainkit/src/models/components/erc721transfer.ts @@ -57,7 +57,6 @@ export const Erc721Transfer$inboundSchema: z.ZodType< logIndex: z.number(), erc721Token: Erc721Token$inboundSchema, }); - /** @internal */ export type Erc721Transfer$Outbound = { blockNumber: string; @@ -86,23 +85,9 @@ export const Erc721Transfer$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erc721transferdetails.ts b/chainkit/src/models/components/erc721transferdetails.ts index 7c4dc25a..578d760a 100644 --- a/chainkit/src/models/components/erc721transferdetails.ts +++ b/chainkit/src/models/components/erc721transferdetails.ts @@ -37,7 +37,6 @@ export const Erc721TransferDetails$inboundSchema: z.ZodType< logIndex: z.number(), erc721Token: Erc721Token$inboundSchema, }); - /** @internal */ export type Erc721TransferDetails$Outbound = { from: RichAddress$Outbound; @@ -58,19 +57,6 @@ export const Erc721TransferDetails$outboundSchema: z.ZodType< 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 { @@ -78,7 +64,6 @@ export function erc721TransferDetailsToJSON( Erc721TransferDetails$outboundSchema.parse(erc721TransferDetails), ); } - export function erc721TransferDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/erctoken.ts b/chainkit/src/models/components/erctoken.ts index e8023ea2..0aa9b580 100644 --- a/chainkit/src/models/components/erctoken.ts +++ b/chainkit/src/models/components/erctoken.ts @@ -42,7 +42,6 @@ export const ERCToken$inboundSchema: z.ZodType< decimals: z.number(), valueWithDecimals: z.string(), }); - /** @internal */ export type ERCToken$Outbound = { address: string; @@ -65,23 +64,9 @@ export const ERCToken$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/erctransfer.ts b/chainkit/src/models/components/erctransfer.ts index 7b94fec3..3321169e 100644 --- a/chainkit/src/models/components/erctransfer.ts +++ b/chainkit/src/models/components/erctransfer.ts @@ -78,7 +78,6 @@ export const ERCTransfer$inboundSchema: z.ZodType< erc721Token: ERCToken$inboundSchema.optional(), erc1155Token: ERCToken$inboundSchema.optional(), }); - /** @internal */ export type ERCTransfer$Outbound = { transactionHash: string; @@ -113,23 +112,9 @@ export const ERCTransfer$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/evmaddressactivityrequest.ts b/chainkit/src/models/components/evmaddressactivityrequest.ts index ad00c59c..19bd8ff4 100644 --- a/chainkit/src/models/components/evmaddressactivityrequest.ts +++ b/chainkit/src/models/components/evmaddressactivityrequest.ts @@ -44,31 +44,17 @@ export type EVMAddressActivityRequest = { 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; @@ -80,20 +66,6 @@ export const EVMAddressActivityRequestMetadata$outboundSchema: z.ZodType< 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 { @@ -103,7 +75,6 @@ export function evmAddressActivityRequestMetadataToJSON( ), ); } - export function evmAddressActivityRequestMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -129,7 +100,6 @@ export const EVMAddressActivityRequest$inboundSchema: z.ZodType< includeInternalTxs: z.boolean().optional(), includeLogs: z.boolean().optional(), }); - /** @internal */ export type EVMAddressActivityRequest$Outbound = { eventType: string; @@ -158,19 +128,6 @@ export const EVMAddressActivityRequest$outboundSchema: z.ZodType< 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 { @@ -178,7 +135,6 @@ export function evmAddressActivityRequestToJSON( EVMAddressActivityRequest$outboundSchema.parse(evmAddressActivityRequest), ); } - export function evmAddressActivityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/evmaddressactivityresponse.ts b/chainkit/src/models/components/evmaddressactivityresponse.ts index 8a4120fd..541c37d8 100644 --- a/chainkit/src/models/components/evmaddressactivityresponse.ts +++ b/chainkit/src/models/components/evmaddressactivityresponse.ts @@ -61,7 +61,6 @@ export const EVMAddressActivityResponse$inboundSchema: z.ZodType< includeInternalTxs: z.boolean().optional(), includeLogs: z.boolean().optional(), }); - /** @internal */ export type EVMAddressActivityResponse$Outbound = { id: string; @@ -96,19 +95,6 @@ export const EVMAddressActivityResponse$outboundSchema: z.ZodType< 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 { @@ -116,7 +102,6 @@ export function evmAddressActivityResponseToJSON( EVMAddressActivityResponse$outboundSchema.parse(evmAddressActivityResponse), ); } - export function evmAddressActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/evmblock.ts b/chainkit/src/models/components/evmblock.ts index 39ada743..f0917bef 100644 --- a/chainkit/src/models/components/evmblock.ts +++ b/chainkit/src/models/components/evmblock.ts @@ -74,7 +74,6 @@ export const EvmBlock$inboundSchema: z.ZodType< feesSpent: z.string(), cumulativeTransactions: z.string(), }); - /** @internal */ export type EvmBlock$Outbound = { chainId: string; @@ -111,23 +110,9 @@ export const EvmBlock$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/evmgenesisallocdto.ts b/chainkit/src/models/components/evmgenesisallocdto.ts new file mode 100644 index 00000000..9c6a35e7 --- /dev/null +++ b/chainkit/src/models/components/evmgenesisallocdto.ts @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type EvmGenesisAllocDto = { + /** + * Account balance in hex format + */ + balance?: string | undefined; + /** + * Contract bytecode in hex format + */ + code?: string | undefined; + /** + * Contract storage slots + */ + storage?: { [k: string]: string } | undefined; +}; + +/** @internal */ +export const EvmGenesisAllocDto$inboundSchema: z.ZodType< + EvmGenesisAllocDto, + z.ZodTypeDef, + unknown +> = z.object({ + balance: z.string().optional(), + code: z.string().optional(), + storage: z.record(z.string()).optional(), +}); +/** @internal */ +export type EvmGenesisAllocDto$Outbound = { + balance?: string | undefined; + code?: string | undefined; + storage?: { [k: string]: string } | undefined; +}; + +/** @internal */ +export const EvmGenesisAllocDto$outboundSchema: z.ZodType< + EvmGenesisAllocDto$Outbound, + z.ZodTypeDef, + EvmGenesisAllocDto +> = z.object({ + balance: z.string().optional(), + code: z.string().optional(), + storage: z.record(z.string()).optional(), +}); + +export function evmGenesisAllocDtoToJSON( + evmGenesisAllocDto: EvmGenesisAllocDto, +): string { + return JSON.stringify( + EvmGenesisAllocDto$outboundSchema.parse(evmGenesisAllocDto), + ); +} +export function evmGenesisAllocDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisAllocDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisAllocDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evmgenesisallowlistconfigdto.ts b/chainkit/src/models/components/evmgenesisallowlistconfigdto.ts new file mode 100644 index 00000000..db9da8f8 --- /dev/null +++ b/chainkit/src/models/components/evmgenesisallowlistconfigdto.ts @@ -0,0 +1,77 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type EvmGenesisAllowListConfigDto = { + /** + * Block timestamp + */ + blockTimestamp?: number | undefined; + /** + * Admin addresses + */ + adminAddresses?: Array | undefined; + /** + * Manager addresses + */ + managerAddresses?: Array | undefined; + /** + * Enabled addresses + */ + enabledAddresses?: Array | undefined; +}; + +/** @internal */ +export const EvmGenesisAllowListConfigDto$inboundSchema: z.ZodType< + EvmGenesisAllowListConfigDto, + z.ZodTypeDef, + unknown +> = z.object({ + blockTimestamp: z.number().optional(), + adminAddresses: z.array(z.string()).optional(), + managerAddresses: z.array(z.string()).optional(), + enabledAddresses: z.array(z.string()).optional(), +}); +/** @internal */ +export type EvmGenesisAllowListConfigDto$Outbound = { + blockTimestamp?: number | undefined; + adminAddresses?: Array | undefined; + managerAddresses?: Array | undefined; + enabledAddresses?: Array | undefined; +}; + +/** @internal */ +export const EvmGenesisAllowListConfigDto$outboundSchema: z.ZodType< + EvmGenesisAllowListConfigDto$Outbound, + z.ZodTypeDef, + EvmGenesisAllowListConfigDto +> = z.object({ + blockTimestamp: z.number().optional(), + adminAddresses: z.array(z.string()).optional(), + managerAddresses: z.array(z.string()).optional(), + enabledAddresses: z.array(z.string()).optional(), +}); + +export function evmGenesisAllowListConfigDtoToJSON( + evmGenesisAllowListConfigDto: EvmGenesisAllowListConfigDto, +): string { + return JSON.stringify( + EvmGenesisAllowListConfigDto$outboundSchema.parse( + evmGenesisAllowListConfigDto, + ), + ); +} +export function evmGenesisAllowListConfigDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisAllowListConfigDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisAllowListConfigDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evmgenesisconfigdto.ts b/chainkit/src/models/components/evmgenesisconfigdto.ts new file mode 100644 index 00000000..d3f6972c --- /dev/null +++ b/chainkit/src/models/components/evmgenesisconfigdto.ts @@ -0,0 +1,227 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + EvmGenesisAllowListConfigDto, + EvmGenesisAllowListConfigDto$inboundSchema, + EvmGenesisAllowListConfigDto$Outbound, + EvmGenesisAllowListConfigDto$outboundSchema, +} from "./evmgenesisallowlistconfigdto.js"; +import { + EvmGenesisFeeConfigDto, + EvmGenesisFeeConfigDto$inboundSchema, + EvmGenesisFeeConfigDto$Outbound, + EvmGenesisFeeConfigDto$outboundSchema, +} from "./evmgenesisfeeconfigdto.js"; +import { + EvmGenesisWarpConfigDto, + EvmGenesisWarpConfigDto$inboundSchema, + EvmGenesisWarpConfigDto$Outbound, + EvmGenesisWarpConfigDto$outboundSchema, +} from "./evmgenesiswarpconfigdto.js"; + +export type EvmGenesisConfigDto = { + /** + * Berlin block number + */ + berlinBlock?: number | undefined; + /** + * Byzantium block number + */ + byzantiumBlock?: number | undefined; + /** + * Chain ID + */ + chainId?: number | undefined; + /** + * Constantinople block number + */ + constantinopleBlock?: number | undefined; + /** + * EIP-150 block number + */ + eip150Block?: number | undefined; + /** + * EIP-150 hash + */ + eip150Hash?: string | undefined; + /** + * EIP-155 block number + */ + eip155Block?: number | undefined; + /** + * EIP-158 block number + */ + eip158Block?: number | undefined; + /** + * Fee configuration + */ + feeConfig?: EvmGenesisFeeConfigDto | undefined; + /** + * Homestead block number + */ + homesteadBlock?: number | undefined; + /** + * Istanbul block number + */ + istanbulBlock?: number | undefined; + /** + * London block number + */ + londonBlock?: number | undefined; + /** + * Muir Glacier block number + */ + muirGlacierBlock?: number | undefined; + /** + * Petersburg block number + */ + petersburgBlock?: number | undefined; + /** + * Subnet EVM timestamp + */ + subnetEVMTimestamp?: number | undefined; + /** + * Allow fee recipients + */ + allowFeeRecipients?: boolean | undefined; + /** + * Warp configuration + */ + warpConfig?: EvmGenesisWarpConfigDto | undefined; + /** + * Transaction allow list configuration + */ + txAllowListConfig?: EvmGenesisAllowListConfigDto | undefined; + /** + * Contract deployer allow list configuration + */ + contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto | undefined; + /** + * Contract native minter configuration + */ + contractNativeMinterConfig?: EvmGenesisAllowListConfigDto | undefined; + /** + * Fee manager configuration + */ + feeManagerConfig?: EvmGenesisAllowListConfigDto | undefined; + /** + * Reward manager configuration + */ + rewardManagerConfig?: EvmGenesisAllowListConfigDto | undefined; +}; + +/** @internal */ +export const EvmGenesisConfigDto$inboundSchema: z.ZodType< + EvmGenesisConfigDto, + z.ZodTypeDef, + unknown +> = z.object({ + berlinBlock: z.number().optional(), + byzantiumBlock: z.number().optional(), + chainId: z.number().optional(), + constantinopleBlock: z.number().optional(), + eip150Block: z.number().optional(), + eip150Hash: z.string().optional(), + eip155Block: z.number().optional(), + eip158Block: z.number().optional(), + feeConfig: EvmGenesisFeeConfigDto$inboundSchema.optional(), + homesteadBlock: z.number().optional(), + istanbulBlock: z.number().optional(), + londonBlock: z.number().optional(), + muirGlacierBlock: z.number().optional(), + petersburgBlock: z.number().optional(), + subnetEVMTimestamp: z.number().optional(), + allowFeeRecipients: z.boolean().optional(), + warpConfig: EvmGenesisWarpConfigDto$inboundSchema.optional(), + txAllowListConfig: EvmGenesisAllowListConfigDto$inboundSchema.optional(), + contractDeployerAllowListConfig: EvmGenesisAllowListConfigDto$inboundSchema + .optional(), + contractNativeMinterConfig: EvmGenesisAllowListConfigDto$inboundSchema + .optional(), + feeManagerConfig: EvmGenesisAllowListConfigDto$inboundSchema.optional(), + rewardManagerConfig: EvmGenesisAllowListConfigDto$inboundSchema.optional(), +}); +/** @internal */ +export type EvmGenesisConfigDto$Outbound = { + berlinBlock?: number | undefined; + byzantiumBlock?: number | undefined; + chainId?: number | undefined; + constantinopleBlock?: number | undefined; + eip150Block?: number | undefined; + eip150Hash?: string | undefined; + eip155Block?: number | undefined; + eip158Block?: number | undefined; + feeConfig?: EvmGenesisFeeConfigDto$Outbound | undefined; + homesteadBlock?: number | undefined; + istanbulBlock?: number | undefined; + londonBlock?: number | undefined; + muirGlacierBlock?: number | undefined; + petersburgBlock?: number | undefined; + subnetEVMTimestamp?: number | undefined; + allowFeeRecipients?: boolean | undefined; + warpConfig?: EvmGenesisWarpConfigDto$Outbound | undefined; + txAllowListConfig?: EvmGenesisAllowListConfigDto$Outbound | undefined; + contractDeployerAllowListConfig?: + | EvmGenesisAllowListConfigDto$Outbound + | undefined; + contractNativeMinterConfig?: + | EvmGenesisAllowListConfigDto$Outbound + | undefined; + feeManagerConfig?: EvmGenesisAllowListConfigDto$Outbound | undefined; + rewardManagerConfig?: EvmGenesisAllowListConfigDto$Outbound | undefined; +}; + +/** @internal */ +export const EvmGenesisConfigDto$outboundSchema: z.ZodType< + EvmGenesisConfigDto$Outbound, + z.ZodTypeDef, + EvmGenesisConfigDto +> = z.object({ + berlinBlock: z.number().optional(), + byzantiumBlock: z.number().optional(), + chainId: z.number().optional(), + constantinopleBlock: z.number().optional(), + eip150Block: z.number().optional(), + eip150Hash: z.string().optional(), + eip155Block: z.number().optional(), + eip158Block: z.number().optional(), + feeConfig: EvmGenesisFeeConfigDto$outboundSchema.optional(), + homesteadBlock: z.number().optional(), + istanbulBlock: z.number().optional(), + londonBlock: z.number().optional(), + muirGlacierBlock: z.number().optional(), + petersburgBlock: z.number().optional(), + subnetEVMTimestamp: z.number().optional(), + allowFeeRecipients: z.boolean().optional(), + warpConfig: EvmGenesisWarpConfigDto$outboundSchema.optional(), + txAllowListConfig: EvmGenesisAllowListConfigDto$outboundSchema.optional(), + contractDeployerAllowListConfig: EvmGenesisAllowListConfigDto$outboundSchema + .optional(), + contractNativeMinterConfig: EvmGenesisAllowListConfigDto$outboundSchema + .optional(), + feeManagerConfig: EvmGenesisAllowListConfigDto$outboundSchema.optional(), + rewardManagerConfig: EvmGenesisAllowListConfigDto$outboundSchema.optional(), +}); + +export function evmGenesisConfigDtoToJSON( + evmGenesisConfigDto: EvmGenesisConfigDto, +): string { + return JSON.stringify( + EvmGenesisConfigDto$outboundSchema.parse(evmGenesisConfigDto), + ); +} +export function evmGenesisConfigDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisConfigDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisConfigDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evmgenesisdto.ts b/chainkit/src/models/components/evmgenesisdto.ts new file mode 100644 index 00000000..024480cf --- /dev/null +++ b/chainkit/src/models/components/evmgenesisdto.ts @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + EvmGenesisAllocDto, + EvmGenesisAllocDto$inboundSchema, + EvmGenesisAllocDto$Outbound, + EvmGenesisAllocDto$outboundSchema, +} from "./evmgenesisallocdto.js"; +import { + EvmGenesisConfigDto, + EvmGenesisConfigDto$inboundSchema, + EvmGenesisConfigDto$Outbound, + EvmGenesisConfigDto$outboundSchema, +} from "./evmgenesisconfigdto.js"; + +export type EvmGenesisDto = { + /** + * Airdrop amount + */ + airdropAmount?: number | null | undefined; + /** + * Airdrop hash + */ + airdropHash?: string | undefined; + /** + * Allocation of accounts and balances + */ + alloc?: { [k: string]: EvmGenesisAllocDto } | undefined; + /** + * Base fee per gas + */ + baseFeePerGas?: number | null | undefined; + /** + * Blob gas used + */ + blobGasUsed?: string | null | undefined; + /** + * Coinbase address + */ + coinbase?: string | undefined; + /** + * Genesis configuration + */ + config?: EvmGenesisConfigDto | undefined; + /** + * Difficulty + */ + difficulty?: string | undefined; + /** + * Excess blob gas + */ + excessBlobGas?: string | null | undefined; + /** + * Extra data + */ + extraData?: string | undefined; + /** + * Gas limit + */ + gasLimit?: string | undefined; + /** + * Gas used + */ + gasUsed?: string | undefined; + /** + * Mix hash + */ + mixHash?: string | undefined; + /** + * Nonce + */ + nonce?: string | undefined; + /** + * Block number + */ + number?: string | undefined; + /** + * Parent hash + */ + parentHash?: string | undefined; + /** + * Block timestamp + */ + timestamp?: string | undefined; +}; + +/** @internal */ +export const EvmGenesisDto$inboundSchema: z.ZodType< + EvmGenesisDto, + z.ZodTypeDef, + unknown +> = z.object({ + airdropAmount: z.nullable(z.number()).optional(), + airdropHash: z.string().optional(), + alloc: z.record(EvmGenesisAllocDto$inboundSchema).optional(), + baseFeePerGas: z.nullable(z.number()).optional(), + blobGasUsed: z.nullable(z.string()).optional(), + coinbase: z.string().optional(), + config: EvmGenesisConfigDto$inboundSchema.optional(), + difficulty: z.string().optional(), + excessBlobGas: z.nullable(z.string()).optional(), + extraData: z.string().optional(), + gasLimit: z.string().optional(), + gasUsed: z.string().optional(), + mixHash: z.string().optional(), + nonce: z.string().optional(), + number: z.string().optional(), + parentHash: z.string().optional(), + timestamp: z.string().optional(), +}); +/** @internal */ +export type EvmGenesisDto$Outbound = { + airdropAmount?: number | null | undefined; + airdropHash?: string | undefined; + alloc?: { [k: string]: EvmGenesisAllocDto$Outbound } | undefined; + baseFeePerGas?: number | null | undefined; + blobGasUsed?: string | null | undefined; + coinbase?: string | undefined; + config?: EvmGenesisConfigDto$Outbound | undefined; + difficulty?: string | undefined; + excessBlobGas?: string | null | undefined; + extraData?: string | undefined; + gasLimit?: string | undefined; + gasUsed?: string | undefined; + mixHash?: string | undefined; + nonce?: string | undefined; + number?: string | undefined; + parentHash?: string | undefined; + timestamp?: string | undefined; +}; + +/** @internal */ +export const EvmGenesisDto$outboundSchema: z.ZodType< + EvmGenesisDto$Outbound, + z.ZodTypeDef, + EvmGenesisDto +> = z.object({ + airdropAmount: z.nullable(z.number()).optional(), + airdropHash: z.string().optional(), + alloc: z.record(EvmGenesisAllocDto$outboundSchema).optional(), + baseFeePerGas: z.nullable(z.number()).optional(), + blobGasUsed: z.nullable(z.string()).optional(), + coinbase: z.string().optional(), + config: EvmGenesisConfigDto$outboundSchema.optional(), + difficulty: z.string().optional(), + excessBlobGas: z.nullable(z.string()).optional(), + extraData: z.string().optional(), + gasLimit: z.string().optional(), + gasUsed: z.string().optional(), + mixHash: z.string().optional(), + nonce: z.string().optional(), + number: z.string().optional(), + parentHash: z.string().optional(), + timestamp: z.string().optional(), +}); + +export function evmGenesisDtoToJSON(evmGenesisDto: EvmGenesisDto): string { + return JSON.stringify(EvmGenesisDto$outboundSchema.parse(evmGenesisDto)); +} +export function evmGenesisDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evmgenesisfeeconfigdto.ts b/chainkit/src/models/components/evmgenesisfeeconfigdto.ts new file mode 100644 index 00000000..a75f9225 --- /dev/null +++ b/chainkit/src/models/components/evmgenesisfeeconfigdto.ts @@ -0,0 +1,103 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type EvmGenesisFeeConfigDto = { + /** + * Base fee change denominator + */ + baseFeeChangeDenominator?: number | undefined; + /** + * Block gas cost step + */ + blockGasCostStep?: number | undefined; + /** + * Gas limit + */ + gasLimit?: number | undefined; + /** + * Maximum block gas cost + */ + maxBlockGasCost?: number | undefined; + /** + * Minimum base fee + */ + minBaseFee?: number | undefined; + /** + * Minimum block gas cost + */ + minBlockGasCost?: number | undefined; + /** + * Target block rate + */ + targetBlockRate?: number | undefined; + /** + * Target gas + */ + targetGas?: number | undefined; +}; + +/** @internal */ +export const EvmGenesisFeeConfigDto$inboundSchema: z.ZodType< + EvmGenesisFeeConfigDto, + z.ZodTypeDef, + unknown +> = z.object({ + baseFeeChangeDenominator: z.number().optional(), + blockGasCostStep: z.number().optional(), + gasLimit: z.number().optional(), + maxBlockGasCost: z.number().optional(), + minBaseFee: z.number().optional(), + minBlockGasCost: z.number().optional(), + targetBlockRate: z.number().optional(), + targetGas: z.number().optional(), +}); +/** @internal */ +export type EvmGenesisFeeConfigDto$Outbound = { + baseFeeChangeDenominator?: number | undefined; + blockGasCostStep?: number | undefined; + gasLimit?: number | undefined; + maxBlockGasCost?: number | undefined; + minBaseFee?: number | undefined; + minBlockGasCost?: number | undefined; + targetBlockRate?: number | undefined; + targetGas?: number | undefined; +}; + +/** @internal */ +export const EvmGenesisFeeConfigDto$outboundSchema: z.ZodType< + EvmGenesisFeeConfigDto$Outbound, + z.ZodTypeDef, + EvmGenesisFeeConfigDto +> = z.object({ + baseFeeChangeDenominator: z.number().optional(), + blockGasCostStep: z.number().optional(), + gasLimit: z.number().optional(), + maxBlockGasCost: z.number().optional(), + minBaseFee: z.number().optional(), + minBlockGasCost: z.number().optional(), + targetBlockRate: z.number().optional(), + targetGas: z.number().optional(), +}); + +export function evmGenesisFeeConfigDtoToJSON( + evmGenesisFeeConfigDto: EvmGenesisFeeConfigDto, +): string { + return JSON.stringify( + EvmGenesisFeeConfigDto$outboundSchema.parse(evmGenesisFeeConfigDto), + ); +} +export function evmGenesisFeeConfigDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisFeeConfigDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisFeeConfigDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evmgenesiswarpconfigdto.ts b/chainkit/src/models/components/evmgenesiswarpconfigdto.ts new file mode 100644 index 00000000..1103e27a --- /dev/null +++ b/chainkit/src/models/components/evmgenesiswarpconfigdto.ts @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type EvmGenesisWarpConfigDto = { + /** + * Block timestamp + */ + blockTimestamp?: number | undefined; + /** + * Quorum numerator + */ + quorumNumerator?: number | undefined; + /** + * Require primary network signers + */ + requirePrimaryNetworkSigners?: boolean | undefined; +}; + +/** @internal */ +export const EvmGenesisWarpConfigDto$inboundSchema: z.ZodType< + EvmGenesisWarpConfigDto, + z.ZodTypeDef, + unknown +> = z.object({ + blockTimestamp: z.number().optional(), + quorumNumerator: z.number().optional(), + requirePrimaryNetworkSigners: z.boolean().optional(), +}); +/** @internal */ +export type EvmGenesisWarpConfigDto$Outbound = { + blockTimestamp?: number | undefined; + quorumNumerator?: number | undefined; + requirePrimaryNetworkSigners?: boolean | undefined; +}; + +/** @internal */ +export const EvmGenesisWarpConfigDto$outboundSchema: z.ZodType< + EvmGenesisWarpConfigDto$Outbound, + z.ZodTypeDef, + EvmGenesisWarpConfigDto +> = z.object({ + blockTimestamp: z.number().optional(), + quorumNumerator: z.number().optional(), + requirePrimaryNetworkSigners: z.boolean().optional(), +}); + +export function evmGenesisWarpConfigDtoToJSON( + evmGenesisWarpConfigDto: EvmGenesisWarpConfigDto, +): string { + return JSON.stringify( + EvmGenesisWarpConfigDto$outboundSchema.parse(evmGenesisWarpConfigDto), + ); +} +export function evmGenesisWarpConfigDtoFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => EvmGenesisWarpConfigDto$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'EvmGenesisWarpConfigDto' from JSON`, + ); +} diff --git a/chainkit/src/models/components/evminput.ts b/chainkit/src/models/components/evminput.ts index b83cd0a9..763800a9 100644 --- a/chainkit/src/models/components/evminput.ts +++ b/chainkit/src/models/components/evminput.ts @@ -44,7 +44,6 @@ export const EVMInput$inboundSchema: z.ZodType< asset: AssetAmount$inboundSchema, credentials: z.array(UtxoCredential$inboundSchema), }); - /** @internal */ export type EVMInput$Outbound = { fromAddress: string; @@ -63,23 +62,9 @@ export const EVMInput$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/evmnetworkoptions.ts b/chainkit/src/models/components/evmnetworkoptions.ts index 74635f5d..342bc6db 100644 --- a/chainkit/src/models/components/evmnetworkoptions.ts +++ b/chainkit/src/models/components/evmnetworkoptions.ts @@ -21,7 +21,6 @@ export const EvmNetworkOptions$inboundSchema: z.ZodType< addresses: z.array(z.string()), includeChains: z.array(z.string()), }); - /** @internal */ export type EvmNetworkOptions$Outbound = { addresses: Array; @@ -38,19 +37,6 @@ export const EvmNetworkOptions$outboundSchema: z.ZodType< 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 { @@ -58,7 +44,6 @@ export function evmNetworkOptionsToJSON( EvmNetworkOptions$outboundSchema.parse(evmNetworkOptions), ); } - export function evmNetworkOptionsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/evmoperationtype.ts b/chainkit/src/models/components/evmoperationtype.ts index e3925b92..f7aac75f 100644 --- a/chainkit/src/models/components/evmoperationtype.ts +++ b/chainkit/src/models/components/evmoperationtype.ts @@ -14,19 +14,7 @@ export type EVMOperationType = ClosedEnum; 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/chainkit/src/models/components/evmoutput.ts b/chainkit/src/models/components/evmoutput.ts index 672134e3..b1c6f131 100644 --- a/chainkit/src/models/components/evmoutput.ts +++ b/chainkit/src/models/components/evmoutput.ts @@ -33,7 +33,6 @@ export const EVMOutput$inboundSchema: z.ZodType< toAddress: z.string(), asset: AssetAmount$inboundSchema, }); - /** @internal */ export type EVMOutput$Outbound = { toAddress: string; @@ -50,23 +49,9 @@ export const EVMOutput$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/fullnativetransactiondetails.ts b/chainkit/src/models/components/fullnativetransactiondetails.ts index 72373ade..cc0505d2 100644 --- a/chainkit/src/models/components/fullnativetransactiondetails.ts +++ b/chainkit/src/models/components/fullnativetransactiondetails.ts @@ -108,7 +108,6 @@ export const FullNativeTransactionDetails$inboundSchema: z.ZodType< maxFeePerGas: z.string().optional(), maxPriorityFeePerGas: z.string().optional(), }); - /** @internal */ export type FullNativeTransactionDetails$Outbound = { blockNumber: string; @@ -161,19 +160,6 @@ export const FullNativeTransactionDetails$outboundSchema: z.ZodType< 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 { @@ -183,7 +169,6 @@ export function fullNativeTransactionDetailsToJSON( ), ); } - export function fullNativeTransactionDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/getchainresponse.ts b/chainkit/src/models/components/getchainresponse.ts index 35390b26..54434a5c 100644 --- a/chainkit/src/models/components/getchainresponse.ts +++ b/chainkit/src/models/components/getchainresponse.ts @@ -66,23 +66,11 @@ export type GetChainResponse = { 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, @@ -108,7 +96,6 @@ export const GetChainResponse$inboundSchema: z.ZodType< enabledFeatures: z.array(GetChainResponseEnabledFeature$inboundSchema) .optional(), }); - /** @internal */ export type GetChainResponse$Outbound = { chainId: string; @@ -156,19 +143,6 @@ export const GetChainResponse$outboundSchema: z.ZodType< .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 { @@ -176,7 +150,6 @@ export function getChainResponseToJSON( GetChainResponse$outboundSchema.parse(getChainResponse), ); } - export function getChainResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/getevmblockresponse.ts b/chainkit/src/models/components/getevmblockresponse.ts index e972ace6..9ce3d294 100644 --- a/chainkit/src/models/components/getevmblockresponse.ts +++ b/chainkit/src/models/components/getevmblockresponse.ts @@ -74,7 +74,6 @@ export const GetEvmBlockResponse$inboundSchema: z.ZodType< feesSpent: z.string(), cumulativeTransactions: z.string(), }); - /** @internal */ export type GetEvmBlockResponse$Outbound = { chainId: string; @@ -111,19 +110,6 @@ export const GetEvmBlockResponse$outboundSchema: z.ZodType< 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 { @@ -131,7 +117,6 @@ export function getEvmBlockResponseToJSON( GetEvmBlockResponse$outboundSchema.parse(getEvmBlockResponse), ); } - export function getEvmBlockResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/getnativebalanceresponse.ts b/chainkit/src/models/components/getnativebalanceresponse.ts index 3a862dea..ea526630 100644 --- a/chainkit/src/models/components/getnativebalanceresponse.ts +++ b/chainkit/src/models/components/getnativebalanceresponse.ts @@ -28,7 +28,6 @@ export const GetNativeBalanceResponse$inboundSchema: z.ZodType< > = z.object({ nativeTokenBalance: NativeTokenBalance$inboundSchema, }); - /** @internal */ export type GetNativeBalanceResponse$Outbound = { nativeTokenBalance: NativeTokenBalance$Outbound; @@ -43,19 +42,6 @@ export const GetNativeBalanceResponse$outboundSchema: z.ZodType< 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 { @@ -63,7 +49,6 @@ export function getNativeBalanceResponseToJSON( GetNativeBalanceResponse$outboundSchema.parse(getNativeBalanceResponse), ); } - export function getNativeBalanceResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/getnetworkdetailsresponse.ts b/chainkit/src/models/components/getnetworkdetailsresponse.ts index 253bb59b..390d35a0 100644 --- a/chainkit/src/models/components/getnetworkdetailsresponse.ts +++ b/chainkit/src/models/components/getnetworkdetailsresponse.ts @@ -33,7 +33,6 @@ export const GetNetworkDetailsResponse$inboundSchema: z.ZodType< validatorDetails: ValidatorsDetails$inboundSchema, delegatorDetails: DelegatorsDetails$inboundSchema, }); - /** @internal */ export type GetNetworkDetailsResponse$Outbound = { validatorDetails: ValidatorsDetails$Outbound; @@ -50,19 +49,6 @@ export const GetNetworkDetailsResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function getNetworkDetailsResponseToJSON( GetNetworkDetailsResponse$outboundSchema.parse(getNetworkDetailsResponse), ); } - export function getNetworkDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/getprimarynetworkblockresponse.ts b/chainkit/src/models/components/getprimarynetworkblockresponse.ts index a4f36f33..94910a45 100644 --- a/chainkit/src/models/components/getprimarynetworkblockresponse.ts +++ b/chainkit/src/models/components/getprimarynetworkblockresponse.ts @@ -47,7 +47,6 @@ export const GetPrimaryNetworkBlockResponse$inboundSchema: z.ZodType< currentSupply: z.string().optional(), proposerDetails: ProposerDetails$inboundSchema.optional(), }); - /** @internal */ export type GetPrimaryNetworkBlockResponse$Outbound = { blockNumber: string; @@ -84,19 +83,6 @@ export const GetPrimaryNetworkBlockResponse$outboundSchema: z.ZodType< 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 { @@ -106,7 +92,6 @@ export function getPrimaryNetworkBlockResponseToJSON( ), ); } - export function getPrimaryNetworkBlockResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/gettransactionresponse.ts b/chainkit/src/models/components/gettransactionresponse.ts index 32dba15f..24309662 100644 --- a/chainkit/src/models/components/gettransactionresponse.ts +++ b/chainkit/src/models/components/gettransactionresponse.ts @@ -89,7 +89,6 @@ export const GetTransactionResponse$inboundSchema: z.ZodType< nativeTransaction: FullNativeTransactionDetails$inboundSchema, teleporterMessageInfo: TeleporterMessageInfo$inboundSchema.optional(), }); - /** @internal */ export type GetTransactionResponse$Outbound = { erc20Transfers?: Array | undefined; @@ -117,19 +116,6 @@ export const GetTransactionResponse$outboundSchema: z.ZodType< 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 { @@ -137,7 +123,6 @@ export function getTransactionResponseToJSON( GetTransactionResponse$outboundSchema.parse(getTransactionResponse), ); } - export function getTransactionResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/globalparamnetwork.ts b/chainkit/src/models/components/globalparamnetwork.ts index 806640f3..8b876b31 100644 --- a/chainkit/src/models/components/globalparamnetwork.ts +++ b/chainkit/src/models/components/globalparamnetwork.ts @@ -16,19 +16,7 @@ export type GlobalParamNetwork = ClosedEnum; 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/chainkit/src/models/components/healthcheckresultdto.ts b/chainkit/src/models/components/healthcheckresultdto.ts index 18857a67..a63cc640 100644 --- a/chainkit/src/models/components/healthcheckresultdto.ts +++ b/chainkit/src/models/components/healthcheckresultdto.ts @@ -34,23 +34,11 @@ export type HealthCheckResultDto = { 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, @@ -63,7 +51,6 @@ export const HealthCheckResultDto$inboundSchema: z.ZodType< .optional(), details: z.record(HealthIndicatorResultDto$inboundSchema).optional(), }); - /** @internal */ export type HealthCheckResultDto$Outbound = { status?: string | undefined; @@ -86,19 +73,6 @@ export const HealthCheckResultDto$outboundSchema: z.ZodType< 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 { @@ -106,7 +80,6 @@ export function healthCheckResultDtoToJSON( HealthCheckResultDto$outboundSchema.parse(healthCheckResultDto), ); } - export function healthCheckResultDtoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/healthindicatorresultdto.ts b/chainkit/src/models/components/healthindicatorresultdto.ts index ec929aa6..cabd7a23 100644 --- a/chainkit/src/models/components/healthindicatorresultdto.ts +++ b/chainkit/src/models/components/healthindicatorresultdto.ts @@ -33,23 +33,11 @@ export type HealthIndicatorResultDto = { 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, @@ -58,7 +46,6 @@ export const HealthIndicatorResultDto$inboundSchema: z.ZodType< > = z.object({ status: HealthIndicatorResultDtoStatus$inboundSchema.optional(), }); - /** @internal */ export type HealthIndicatorResultDto$Outbound = { status?: string | undefined; @@ -73,19 +60,6 @@ export const HealthIndicatorResultDto$outboundSchema: z.ZodType< 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 { @@ -93,7 +67,6 @@ export function healthIndicatorResultDtoToJSON( HealthIndicatorResultDto$outboundSchema.parse(healthIndicatorResultDto), ); } - export function healthIndicatorResultDtoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/historicalreward.ts b/chainkit/src/models/components/historicalreward.ts index e7e5965b..5c2aa4f8 100644 --- a/chainkit/src/models/components/historicalreward.ts +++ b/chainkit/src/models/components/historicalreward.ts @@ -53,7 +53,6 @@ export const HistoricalReward$inboundSchema: z.ZodType< reward: AssetWithPriceInfo$inboundSchema, rewardTxHash: z.string(), }); - /** @internal */ export type HistoricalReward$Outbound = { addresses: Array; @@ -88,19 +87,6 @@ export const HistoricalReward$outboundSchema: z.ZodType< 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 { @@ -108,7 +94,6 @@ export function historicalRewardToJSON( HistoricalReward$outboundSchema.parse(historicalReward), ); } - export function historicalRewardFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmdestinationtransaction.ts b/chainkit/src/models/components/icmdestinationtransaction.ts index 6de5fc0e..5a8a2e28 100644 --- a/chainkit/src/models/components/icmdestinationtransaction.ts +++ b/chainkit/src/models/components/icmdestinationtransaction.ts @@ -27,7 +27,6 @@ export const IcmDestinationTransaction$inboundSchema: z.ZodType< rewardRedeemer: z.string(), delivererAddress: z.string(), }); - /** @internal */ export type IcmDestinationTransaction$Outbound = { txHash: string; @@ -50,19 +49,6 @@ export const IcmDestinationTransaction$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function icmDestinationTransactionToJSON( IcmDestinationTransaction$outboundSchema.parse(icmDestinationTransaction), ); } - export function icmDestinationTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmmetricsapiresponse.ts b/chainkit/src/models/components/icmmetricsapiresponse.ts index 6f2daecb..d6ee5176 100644 --- a/chainkit/src/models/components/icmmetricsapiresponse.ts +++ b/chainkit/src/models/components/icmmetricsapiresponse.ts @@ -33,7 +33,6 @@ export const ICMMetricsApiResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), results: z.array(ICMMetricsValue$inboundSchema), }); - /** @internal */ export type ICMMetricsApiResponse$Outbound = { nextPageToken?: string | undefined; @@ -50,19 +49,6 @@ export const ICMMetricsApiResponse$outboundSchema: z.ZodType< results: z.array(ICMMetricsValue$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ICMMetricsApiResponse$ { - /** @deprecated use `ICMMetricsApiResponse$inboundSchema` instead. */ - export const inboundSchema = ICMMetricsApiResponse$inboundSchema; - /** @deprecated use `ICMMetricsApiResponse$outboundSchema` instead. */ - export const outboundSchema = ICMMetricsApiResponse$outboundSchema; - /** @deprecated use `ICMMetricsApiResponse$Outbound` instead. */ - export type Outbound = ICMMetricsApiResponse$Outbound; -} - export function icmMetricsApiResponseToJSON( icmMetricsApiResponse: ICMMetricsApiResponse, ): string { @@ -70,7 +56,6 @@ export function icmMetricsApiResponseToJSON( ICMMetricsApiResponse$outboundSchema.parse(icmMetricsApiResponse), ); } - export function icmMetricsApiResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmmetricsvalue.ts b/chainkit/src/models/components/icmmetricsvalue.ts index df8a7cae..fba06776 100644 --- a/chainkit/src/models/components/icmmetricsvalue.ts +++ b/chainkit/src/models/components/icmmetricsvalue.ts @@ -37,7 +37,6 @@ export const ICMMetricsValue$inboundSchema: z.ZodType< srcBlockchainId: z.string(), destBlockchainId: z.string(), }); - /** @internal */ export type ICMMetricsValue$Outbound = { value: number; @@ -58,25 +57,11 @@ export const ICMMetricsValue$outboundSchema: z.ZodType< destBlockchainId: 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 ICMMetricsValue$ { - /** @deprecated use `ICMMetricsValue$inboundSchema` instead. */ - export const inboundSchema = ICMMetricsValue$inboundSchema; - /** @deprecated use `ICMMetricsValue$outboundSchema` instead. */ - export const outboundSchema = ICMMetricsValue$outboundSchema; - /** @deprecated use `ICMMetricsValue$Outbound` instead. */ - export type Outbound = ICMMetricsValue$Outbound; -} - export function icmMetricsValueToJSON( icmMetricsValue: ICMMetricsValue, ): string { return JSON.stringify(ICMMetricsValue$outboundSchema.parse(icmMetricsValue)); } - export function icmMetricsValueFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmreceipt.ts b/chainkit/src/models/components/icmreceipt.ts index d4fa8207..669c0316 100644 --- a/chainkit/src/models/components/icmreceipt.ts +++ b/chainkit/src/models/components/icmreceipt.ts @@ -21,7 +21,6 @@ export const IcmReceipt$inboundSchema: z.ZodType< receivedMessageNonce: z.string(), relayerRewardAddress: z.string(), }); - /** @internal */ export type IcmReceipt$Outbound = { receivedMessageNonce: string; @@ -38,23 +37,9 @@ export const IcmReceipt$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/icmrewarddetails.ts b/chainkit/src/models/components/icmrewarddetails.ts index 5229d127..ae896dc7 100644 --- a/chainkit/src/models/components/icmrewarddetails.ts +++ b/chainkit/src/models/components/icmrewarddetails.ts @@ -54,23 +54,11 @@ export type IcmRewardDetails = { 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, @@ -86,7 +74,6 @@ export const IcmRewardDetails$inboundSchema: z.ZodType< price: Money$inboundSchema.optional(), value: z.string(), }); - /** @internal */ export type IcmRewardDetails$Outbound = { address: string; @@ -115,19 +102,6 @@ export const IcmRewardDetails$outboundSchema: z.ZodType< 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 { @@ -135,7 +109,6 @@ export function icmRewardDetailsToJSON( IcmRewardDetails$outboundSchema.parse(icmRewardDetails), ); } - export function icmRewardDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmrollingwindowmetricsapiresponse.ts b/chainkit/src/models/components/icmrollingwindowmetricsapiresponse.ts index eddca448..b551beb8 100644 --- a/chainkit/src/models/components/icmrollingwindowmetricsapiresponse.ts +++ b/chainkit/src/models/components/icmrollingwindowmetricsapiresponse.ts @@ -28,7 +28,6 @@ export const ICMRollingWindowMetricsApiResponse$inboundSchema: z.ZodType< > = z.object({ result: ICMRollingWindowMetricsValue$inboundSchema, }); - /** @internal */ export type ICMRollingWindowMetricsApiResponse$Outbound = { result: ICMRollingWindowMetricsValue$Outbound; @@ -43,20 +42,6 @@ export const ICMRollingWindowMetricsApiResponse$outboundSchema: z.ZodType< result: ICMRollingWindowMetricsValue$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ICMRollingWindowMetricsApiResponse$ { - /** @deprecated use `ICMRollingWindowMetricsApiResponse$inboundSchema` instead. */ - export const inboundSchema = ICMRollingWindowMetricsApiResponse$inboundSchema; - /** @deprecated use `ICMRollingWindowMetricsApiResponse$outboundSchema` instead. */ - export const outboundSchema = - ICMRollingWindowMetricsApiResponse$outboundSchema; - /** @deprecated use `ICMRollingWindowMetricsApiResponse$Outbound` instead. */ - export type Outbound = ICMRollingWindowMetricsApiResponse$Outbound; -} - export function icmRollingWindowMetricsApiResponseToJSON( icmRollingWindowMetricsApiResponse: ICMRollingWindowMetricsApiResponse, ): string { @@ -66,7 +51,6 @@ export function icmRollingWindowMetricsApiResponseToJSON( ), ); } - export function icmRollingWindowMetricsApiResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmrollingwindowmetricsvalue.ts b/chainkit/src/models/components/icmrollingwindowmetricsvalue.ts index 6288cf36..42527049 100644 --- a/chainkit/src/models/components/icmrollingwindowmetricsvalue.ts +++ b/chainkit/src/models/components/icmrollingwindowmetricsvalue.ts @@ -62,7 +62,6 @@ export const ICMRollingWindowMetricsValue$inboundSchema: z.ZodType< srcBlockchainId: z.string(), destBlockchainId: z.string(), }); - /** @internal */ export type ICMRollingWindowMetricsValue$Outbound = { lastHour?: number | undefined; @@ -93,19 +92,6 @@ export const ICMRollingWindowMetricsValue$outboundSchema: z.ZodType< destBlockchainId: 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 ICMRollingWindowMetricsValue$ { - /** @deprecated use `ICMRollingWindowMetricsValue$inboundSchema` instead. */ - export const inboundSchema = ICMRollingWindowMetricsValue$inboundSchema; - /** @deprecated use `ICMRollingWindowMetricsValue$outboundSchema` instead. */ - export const outboundSchema = ICMRollingWindowMetricsValue$outboundSchema; - /** @deprecated use `ICMRollingWindowMetricsValue$Outbound` instead. */ - export type Outbound = ICMRollingWindowMetricsValue$Outbound; -} - export function icmRollingWindowMetricsValueToJSON( icmRollingWindowMetricsValue: ICMRollingWindowMetricsValue, ): string { @@ -115,7 +101,6 @@ export function icmRollingWindowMetricsValueToJSON( ), ); } - export function icmRollingWindowMetricsValueFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/icmsourcetransaction.ts b/chainkit/src/models/components/icmsourcetransaction.ts index 75ed6a55..58a31e27 100644 --- a/chainkit/src/models/components/icmsourcetransaction.ts +++ b/chainkit/src/models/components/icmsourcetransaction.ts @@ -23,7 +23,6 @@ export const IcmSourceTransaction$inboundSchema: z.ZodType< timestamp: z.number(), gasSpent: z.string(), }); - /** @internal */ export type IcmSourceTransaction$Outbound = { txHash: string; @@ -42,19 +41,6 @@ export const IcmSourceTransaction$outboundSchema: z.ZodType< 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 { @@ -62,7 +48,6 @@ export function icmSourceTransactionToJSON( IcmSourceTransaction$outboundSchema.parse(icmSourceTransaction), ); } - export function icmSourceTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/imageasset.ts b/chainkit/src/models/components/imageasset.ts index aa4aa138..5f302cd5 100644 --- a/chainkit/src/models/components/imageasset.ts +++ b/chainkit/src/models/components/imageasset.ts @@ -24,7 +24,6 @@ export const ImageAsset$inboundSchema: z.ZodType< assetId: z.string().optional(), imageUri: z.string().optional(), }); - /** @internal */ export type ImageAsset$Outbound = { assetId?: string | undefined; @@ -41,23 +40,9 @@ export const ImageAsset$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/index.ts b/chainkit/src/models/components/index.ts index 9ebe825b..1a9645e2 100644 --- a/chainkit/src/models/components/index.ts +++ b/chainkit/src/models/components/index.ts @@ -13,6 +13,7 @@ export * from "./aggregatedassetamount.js"; export * from "./apifeature.js"; export * from "./assetamount.js"; export * from "./assetwithpriceinfo.js"; +export * from "./avaxsupplyresponse.js"; export * from "./balanceowner.js"; export * from "./blockchain.js"; export * from "./blockchainid.js"; @@ -67,6 +68,12 @@ export * from "./erctransfer.js"; export * from "./evmaddressactivityrequest.js"; export * from "./evmaddressactivityresponse.js"; export * from "./evmblock.js"; +export * from "./evmgenesisallocdto.js"; +export * from "./evmgenesisallowlistconfigdto.js"; +export * from "./evmgenesisconfigdto.js"; +export * from "./evmgenesisdto.js"; +export * from "./evmgenesisfeeconfigdto.js"; +export * from "./evmgenesiswarpconfigdto.js"; export * from "./evminput.js"; export * from "./evmnetworkoptions.js"; export * from "./evmoperationtype.js"; diff --git a/chainkit/src/models/components/internaltransaction.ts b/chainkit/src/models/components/internaltransaction.ts index 7048cf66..e3f1e457 100644 --- a/chainkit/src/models/components/internaltransaction.ts +++ b/chainkit/src/models/components/internaltransaction.ts @@ -65,7 +65,6 @@ export const InternalTransaction$inboundSchema: z.ZodType< gasUsed: z.string(), gasLimit: z.string(), }); - /** @internal */ export type InternalTransaction$Outbound = { blockNumber: string; @@ -100,19 +99,6 @@ export const InternalTransaction$outboundSchema: z.ZodType< 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 { @@ -120,7 +106,6 @@ export function internalTransactionToJSON( InternalTransaction$outboundSchema.parse(internalTransaction), ); } - export function internalTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/internaltransactiondetails.ts b/chainkit/src/models/components/internaltransactiondetails.ts index 6de09953..9cf9320f 100644 --- a/chainkit/src/models/components/internaltransactiondetails.ts +++ b/chainkit/src/models/components/internaltransactiondetails.ts @@ -45,7 +45,6 @@ export const InternalTransactionDetails$inboundSchema: z.ZodType< gasUsed: z.string(), gasLimit: z.string(), }); - /** @internal */ export type InternalTransactionDetails$Outbound = { from: RichAddress$Outbound; @@ -72,19 +71,6 @@ export const InternalTransactionDetails$outboundSchema: z.ZodType< 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 { @@ -92,7 +78,6 @@ export function internalTransactionDetailsToJSON( InternalTransactionDetails$outboundSchema.parse(internalTransactionDetails), ); } - export function internalTransactionDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/internaltransactionopcall.ts b/chainkit/src/models/components/internaltransactionopcall.ts index 4497b9dd..2939fa8f 100644 --- a/chainkit/src/models/components/internaltransactionopcall.ts +++ b/chainkit/src/models/components/internaltransactionopcall.ts @@ -23,19 +23,7 @@ export type InternalTransactionOpCall = ClosedEnum< 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/chainkit/src/models/components/l1validatordetailsfull.ts b/chainkit/src/models/components/l1validatordetailsfull.ts index 62274fdd..d93f407f 100644 --- a/chainkit/src/models/components/l1validatordetailsfull.ts +++ b/chainkit/src/models/components/l1validatordetailsfull.ts @@ -55,7 +55,6 @@ export const L1ValidatorDetailsFullBlsCredentials$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type L1ValidatorDetailsFullBlsCredentials$Outbound = {}; @@ -66,21 +65,6 @@ export const L1ValidatorDetailsFullBlsCredentials$outboundSchema: z.ZodType< 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 { @@ -90,7 +74,6 @@ export function l1ValidatorDetailsFullBlsCredentialsToJSON( ), ); } - export function l1ValidatorDetailsFullBlsCredentialsFromJSON( jsonString: string, ): SafeParseResult { @@ -121,7 +104,6 @@ export const L1ValidatorDetailsFull$inboundSchema: z.ZodType< remainingBalanceOwner: BalanceOwner$inboundSchema, deactivationOwner: BalanceOwner$inboundSchema, }); - /** @internal */ export type L1ValidatorDetailsFull$Outbound = { validationId: string; @@ -156,19 +138,6 @@ export const L1ValidatorDetailsFull$outboundSchema: z.ZodType< 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 { @@ -176,7 +145,6 @@ export function l1ValidatorDetailsFullToJSON( L1ValidatorDetailsFull$outboundSchema.parse(l1ValidatorDetailsFull), ); } - export function l1ValidatorDetailsFullFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/l1validatordetailstransaction.ts b/chainkit/src/models/components/l1validatordetailstransaction.ts index d3202638..62166695 100644 --- a/chainkit/src/models/components/l1validatordetailstransaction.ts +++ b/chainkit/src/models/components/l1validatordetailstransaction.ts @@ -42,7 +42,6 @@ export const L1ValidatorDetailsTransactionBlsCredentials$inboundSchema: z.ZodTypeDef, unknown > = z.object({}); - /** @internal */ export type L1ValidatorDetailsTransactionBlsCredentials$Outbound = {}; @@ -54,21 +53,6 @@ export const L1ValidatorDetailsTransactionBlsCredentials$outboundSchema: 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, @@ -79,7 +63,6 @@ export function l1ValidatorDetailsTransactionBlsCredentialsToJSON( ), ); } - export function l1ValidatorDetailsTransactionBlsCredentialsFromJSON( jsonString: string, ): SafeParseResult< @@ -113,7 +96,6 @@ export const L1ValidatorDetailsTransaction$inboundSchema: z.ZodType< L1ValidatorDetailsTransactionBlsCredentials$inboundSchema ).optional(), }); - /** @internal */ export type L1ValidatorDetailsTransaction$Outbound = { validationId: string; @@ -146,19 +128,6 @@ export const L1ValidatorDetailsTransaction$outboundSchema: z.ZodType< ).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 { @@ -168,7 +137,6 @@ export function l1ValidatorDetailsTransactionToJSON( ), ); } - export function l1ValidatorDetailsTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/l1validatormanagerdetails.ts b/chainkit/src/models/components/l1validatormanagerdetails.ts index aac06dab..7f335d26 100644 --- a/chainkit/src/models/components/l1validatormanagerdetails.ts +++ b/chainkit/src/models/components/l1validatormanagerdetails.ts @@ -21,7 +21,6 @@ export const L1ValidatorManagerDetails$inboundSchema: z.ZodType< blockchainId: z.string(), contractAddress: z.string(), }); - /** @internal */ export type L1ValidatorManagerDetails$Outbound = { blockchainId: string; @@ -38,19 +37,6 @@ export const L1ValidatorManagerDetails$outboundSchema: z.ZodType< 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 { @@ -58,7 +44,6 @@ export function l1ValidatorManagerDetailsToJSON( L1ValidatorManagerDetails$outboundSchema.parse(l1ValidatorManagerDetails), ); } - export function l1ValidatorManagerDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listaddresschainsresponse.ts b/chainkit/src/models/components/listaddresschainsresponse.ts index 0bbbd46a..755eb9a5 100644 --- a/chainkit/src/models/components/listaddresschainsresponse.ts +++ b/chainkit/src/models/components/listaddresschainsresponse.ts @@ -27,7 +27,6 @@ export const ListAddressChainsResponse$inboundSchema: z.ZodType< indexedChains: z.array(ChainInfo$inboundSchema).optional(), unindexedChains: z.array(z.string()).optional(), }); - /** @internal */ export type ListAddressChainsResponse$Outbound = { indexedChains?: Array | undefined; @@ -44,19 +43,6 @@ export const ListAddressChainsResponse$outboundSchema: z.ZodType< 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 { @@ -64,7 +50,6 @@ export function listAddressChainsResponseToJSON( ListAddressChainsResponse$outboundSchema.parse(listAddressChainsResponse), ); } - export function listAddressChainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listblockchainsresponse.ts b/chainkit/src/models/components/listblockchainsresponse.ts index 6f844d97..8c0c9d23 100644 --- a/chainkit/src/models/components/listblockchainsresponse.ts +++ b/chainkit/src/models/components/listblockchainsresponse.ts @@ -30,7 +30,6 @@ export const ListBlockchainsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), blockchains: z.array(Blockchain$inboundSchema), }); - /** @internal */ export type ListBlockchainsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListBlockchainsResponse$outboundSchema: z.ZodType< 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 { @@ -67,7 +53,6 @@ export function listBlockchainsResponseToJSON( ListBlockchainsResponse$outboundSchema.parse(listBlockchainsResponse), ); } - export function listBlockchainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listcchainatomicbalancesresponse.ts b/chainkit/src/models/components/listcchainatomicbalancesresponse.ts index 7680e238..a0794634 100644 --- a/chainkit/src/models/components/listcchainatomicbalancesresponse.ts +++ b/chainkit/src/models/components/listcchainatomicbalancesresponse.ts @@ -33,7 +33,6 @@ export const ListCChainAtomicBalancesResponse$inboundSchema: z.ZodType< balances: CChainAtomicBalances$inboundSchema, chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListCChainAtomicBalancesResponse$Outbound = { balances: CChainAtomicBalances$Outbound; @@ -50,19 +49,6 @@ export const ListCChainAtomicBalancesResponse$outboundSchema: z.ZodType< 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 { @@ -72,7 +58,6 @@ export function listCChainAtomicBalancesResponseToJSON( ), ); } - export function listCChainAtomicBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listcchainatomictransactionsresponse.ts b/chainkit/src/models/components/listcchainatomictransactionsresponse.ts index fe3db607..34e54388 100644 --- a/chainkit/src/models/components/listcchainatomictransactionsresponse.ts +++ b/chainkit/src/models/components/listcchainatomictransactionsresponse.ts @@ -48,7 +48,6 @@ export const ListCChainAtomicTransactionsResponseTransaction$inboundSchema: CChainExportTransaction$inboundSchema, CChainImportTransaction$inboundSchema, ]); - /** @internal */ export type ListCChainAtomicTransactionsResponseTransaction$Outbound = | CChainExportTransaction$Outbound @@ -65,22 +64,6 @@ export const ListCChainAtomicTransactionsResponseTransaction$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, @@ -91,7 +74,6 @@ export function listCChainAtomicTransactionsResponseTransactionToJSON( ), ); } - export function listCChainAtomicTransactionsResponseTransactionFromJSON( jsonString: string, ): SafeParseResult< @@ -123,7 +105,6 @@ export const ListCChainAtomicTransactionsResponse$inboundSchema: z.ZodType< ), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListCChainAtomicTransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -149,21 +130,6 @@ export const ListCChainAtomicTransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -173,7 +139,6 @@ export function listCChainAtomicTransactionsResponseToJSON( ), ); } - export function listCChainAtomicTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listcollectiblebalancesresponse.ts b/chainkit/src/models/components/listcollectiblebalancesresponse.ts index a988f7a4..05da33c4 100644 --- a/chainkit/src/models/components/listcollectiblebalancesresponse.ts +++ b/chainkit/src/models/components/listcollectiblebalancesresponse.ts @@ -41,7 +41,6 @@ export const CollectibleBalance$inboundSchema: z.ZodType< Erc721TokenBalance$inboundSchema, Erc1155TokenBalance$inboundSchema, ]); - /** @internal */ export type CollectibleBalance$Outbound = | Erc721TokenBalance$Outbound @@ -57,19 +56,6 @@ export const CollectibleBalance$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function collectibleBalanceToJSON( CollectibleBalance$outboundSchema.parse(collectibleBalance), ); } - export function collectibleBalanceFromJSON( jsonString: string, ): SafeParseResult { @@ -102,7 +87,6 @@ export const ListCollectibleBalancesResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListCollectibleBalancesResponse$Outbound = { nextPageToken?: string | undefined; @@ -126,19 +110,6 @@ export const ListCollectibleBalancesResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -148,7 +119,6 @@ export function listCollectibleBalancesResponseToJSON( ), ); } - export function listCollectibleBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listcontractsresponse.ts b/chainkit/src/models/components/listcontractsresponse.ts index f8d1b0e7..bd9d2e18 100644 --- a/chainkit/src/models/components/listcontractsresponse.ts +++ b/chainkit/src/models/components/listcontractsresponse.ts @@ -77,7 +77,6 @@ export const Contract$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type Contract$Outbound = | (Erc20Contract$Outbound & { ercType: "ERC-20" }) @@ -113,23 +112,9 @@ export const Contract$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -172,7 +157,6 @@ export const ListContractsResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListContractsResponse$Outbound = { nextPageToken?: string | undefined; @@ -217,19 +201,6 @@ export const ListContractsResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -237,7 +208,6 @@ export function listContractsResponseToJSON( ListContractsResponse$outboundSchema.parse(listContractsResponse), ); } - export function listContractsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listdelegatordetailsresponse.ts b/chainkit/src/models/components/listdelegatordetailsresponse.ts index a2240142..c1141f9a 100644 --- a/chainkit/src/models/components/listdelegatordetailsresponse.ts +++ b/chainkit/src/models/components/listdelegatordetailsresponse.ts @@ -67,7 +67,6 @@ export const Delegator$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type Delegator$Outbound = | (ActiveDelegatorDetails$Outbound & { delegationStatus: "active" }) @@ -97,23 +96,9 @@ export const Delegator$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -151,7 +136,6 @@ export const ListDelegatorDetailsResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListDelegatorDetailsResponse$Outbound = { nextPageToken?: string | undefined; @@ -190,19 +174,6 @@ export const ListDelegatorDetailsResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -212,7 +183,6 @@ export function listDelegatorDetailsResponseToJSON( ), ); } - export function listDelegatorDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc1155balancesresponse.ts b/chainkit/src/models/components/listerc1155balancesresponse.ts index 35344ee2..de2eb798 100644 --- a/chainkit/src/models/components/listerc1155balancesresponse.ts +++ b/chainkit/src/models/components/listerc1155balancesresponse.ts @@ -44,7 +44,6 @@ export const ListErc1155BalancesResponse$inboundSchema: z.ZodType< nativeTokenBalance: NativeTokenBalance$inboundSchema, erc1155TokenBalances: z.array(Erc1155TokenBalance$inboundSchema), }); - /** @internal */ export type ListErc1155BalancesResponse$Outbound = { nextPageToken?: string | undefined; @@ -63,19 +62,6 @@ export const ListErc1155BalancesResponse$outboundSchema: z.ZodType< 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 { @@ -85,7 +71,6 @@ export function listErc1155BalancesResponseToJSON( ), ); } - export function listErc1155BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc1155transactionsresponse.ts b/chainkit/src/models/components/listerc1155transactionsresponse.ts index 2cab0ce0..ca06f595 100644 --- a/chainkit/src/models/components/listerc1155transactionsresponse.ts +++ b/chainkit/src/models/components/listerc1155transactionsresponse.ts @@ -30,7 +30,6 @@ export const ListErc1155TransactionsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(Erc1155Transfer$inboundSchema), }); - /** @internal */ export type ListErc1155TransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListErc1155TransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listErc1155TransactionsResponseToJSON( ), ); } - export function listErc1155TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc20balancesresponse.ts b/chainkit/src/models/components/listerc20balancesresponse.ts index fedeff43..b3373b6b 100644 --- a/chainkit/src/models/components/listerc20balancesresponse.ts +++ b/chainkit/src/models/components/listerc20balancesresponse.ts @@ -44,7 +44,6 @@ export const ListErc20BalancesResponse$inboundSchema: z.ZodType< nativeTokenBalance: NativeTokenBalance$inboundSchema, erc20TokenBalances: z.array(Erc20TokenBalance$inboundSchema), }); - /** @internal */ export type ListErc20BalancesResponse$Outbound = { nextPageToken?: string | undefined; @@ -63,19 +62,6 @@ export const ListErc20BalancesResponse$outboundSchema: z.ZodType< 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 { @@ -83,7 +69,6 @@ export function listErc20BalancesResponseToJSON( ListErc20BalancesResponse$outboundSchema.parse(listErc20BalancesResponse), ); } - export function listErc20BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc20transactionsresponse.ts b/chainkit/src/models/components/listerc20transactionsresponse.ts index 63400b0d..221e237d 100644 --- a/chainkit/src/models/components/listerc20transactionsresponse.ts +++ b/chainkit/src/models/components/listerc20transactionsresponse.ts @@ -30,7 +30,6 @@ export const ListErc20TransactionsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(Erc20Transfer$inboundSchema), }); - /** @internal */ export type ListErc20TransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListErc20TransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listErc20TransactionsResponseToJSON( ), ); } - export function listErc20TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc721balancesresponse.ts b/chainkit/src/models/components/listerc721balancesresponse.ts index 69499515..8602a69d 100644 --- a/chainkit/src/models/components/listerc721balancesresponse.ts +++ b/chainkit/src/models/components/listerc721balancesresponse.ts @@ -44,7 +44,6 @@ export const ListErc721BalancesResponse$inboundSchema: z.ZodType< nativeTokenBalance: NativeTokenBalance$inboundSchema, erc721TokenBalances: z.array(Erc721TokenBalance$inboundSchema), }); - /** @internal */ export type ListErc721BalancesResponse$Outbound = { nextPageToken?: string | undefined; @@ -63,19 +62,6 @@ export const ListErc721BalancesResponse$outboundSchema: z.ZodType< 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 { @@ -83,7 +69,6 @@ export function listErc721BalancesResponseToJSON( ListErc721BalancesResponse$outboundSchema.parse(listErc721BalancesResponse), ); } - export function listErc721BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listerc721transactionsresponse.ts b/chainkit/src/models/components/listerc721transactionsresponse.ts index 9e5a30ad..45b0c00d 100644 --- a/chainkit/src/models/components/listerc721transactionsresponse.ts +++ b/chainkit/src/models/components/listerc721transactionsresponse.ts @@ -30,7 +30,6 @@ export const ListErc721TransactionsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(Erc721Transfer$inboundSchema), }); - /** @internal */ export type ListErc721TransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListErc721TransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listErc721TransactionsResponseToJSON( ), ); } - export function listErc721TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listevmblocksresponse.ts b/chainkit/src/models/components/listevmblocksresponse.ts index 60e58246..f83314c0 100644 --- a/chainkit/src/models/components/listevmblocksresponse.ts +++ b/chainkit/src/models/components/listevmblocksresponse.ts @@ -30,7 +30,6 @@ export const ListEvmBlocksResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), blocks: z.array(EvmBlock$inboundSchema), }); - /** @internal */ export type ListEvmBlocksResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListEvmBlocksResponse$outboundSchema: z.ZodType< 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 { @@ -67,7 +53,6 @@ export function listEvmBlocksResponseToJSON( ListEvmBlocksResponse$outboundSchema.parse(listEvmBlocksResponse), ); } - export function listEvmBlocksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listhistoricalrewardsresponse.ts b/chainkit/src/models/components/listhistoricalrewardsresponse.ts index cb72bc0e..0b2fcd9e 100644 --- a/chainkit/src/models/components/listhistoricalrewardsresponse.ts +++ b/chainkit/src/models/components/listhistoricalrewardsresponse.ts @@ -30,7 +30,6 @@ export const ListHistoricalRewardsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), historicalRewards: z.array(HistoricalReward$inboundSchema), }); - /** @internal */ export type ListHistoricalRewardsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListHistoricalRewardsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listHistoricalRewardsResponseToJSON( ), ); } - export function listHistoricalRewardsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listicmmessagesresponse.ts b/chainkit/src/models/components/listicmmessagesresponse.ts index b6b3e900..dab1b78a 100644 --- a/chainkit/src/models/components/listicmmessagesresponse.ts +++ b/chainkit/src/models/components/listicmmessagesresponse.ts @@ -68,7 +68,6 @@ export const ListIcmMessagesResponseMessage$inboundSchema: z.ZodType< ) => ({ status: v.status })), ), ]); - /** @internal */ export type ListIcmMessagesResponseMessage$Outbound = | (DeliveredIcmMessage$Outbound & { status: "delivered" }) @@ -100,19 +99,6 @@ export const ListIcmMessagesResponseMessage$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -122,7 +108,6 @@ export function listIcmMessagesResponseMessageToJSON( ), ); } - export function listIcmMessagesResponseMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -159,7 +144,6 @@ export const ListIcmMessagesResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListIcmMessagesResponse$Outbound = { nextPageToken?: string | undefined; @@ -199,19 +183,6 @@ export const ListIcmMessagesResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -219,7 +190,6 @@ export function listIcmMessagesResponseToJSON( ListIcmMessagesResponse$outboundSchema.parse(listIcmMessagesResponse), ); } - export function listIcmMessagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listinternaltransactionsresponse.ts b/chainkit/src/models/components/listinternaltransactionsresponse.ts index 90a0f3da..390bd20e 100644 --- a/chainkit/src/models/components/listinternaltransactionsresponse.ts +++ b/chainkit/src/models/components/listinternaltransactionsresponse.ts @@ -30,7 +30,6 @@ export const ListInternalTransactionsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(InternalTransaction$inboundSchema), }); - /** @internal */ export type ListInternalTransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListInternalTransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listInternalTransactionsResponseToJSON( ), ); } - export function listInternalTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listl1validatorsresponse.ts b/chainkit/src/models/components/listl1validatorsresponse.ts index 12ab9be6..c526139c 100644 --- a/chainkit/src/models/components/listl1validatorsresponse.ts +++ b/chainkit/src/models/components/listl1validatorsresponse.ts @@ -38,7 +38,6 @@ export const ListL1ValidatorsResponse$inboundSchema: z.ZodType< validators: z.array(L1ValidatorDetailsFull$inboundSchema), blockHeight: z.string(), }); - /** @internal */ export type ListL1ValidatorsResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListL1ValidatorsResponse$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function listL1ValidatorsResponseToJSON( ListL1ValidatorsResponse$outboundSchema.parse(listL1ValidatorsResponse), ); } - export function listL1ValidatorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listnativetransactionsresponse.ts b/chainkit/src/models/components/listnativetransactionsresponse.ts index fd6e35ca..1008984c 100644 --- a/chainkit/src/models/components/listnativetransactionsresponse.ts +++ b/chainkit/src/models/components/listnativetransactionsresponse.ts @@ -30,7 +30,6 @@ export const ListNativeTransactionsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(NativeTransaction$inboundSchema), }); - /** @internal */ export type ListNativeTransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListNativeTransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listNativeTransactionsResponseToJSON( ), ); } - export function listNativeTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listnfttokens.ts b/chainkit/src/models/components/listnfttokens.ts index 28fc22bb..d4c2eee4 100644 --- a/chainkit/src/models/components/listnfttokens.ts +++ b/chainkit/src/models/components/listnfttokens.ts @@ -32,7 +32,6 @@ export type ListNftTokens = { /** @internal */ export const Token$inboundSchema: z.ZodType = z .union([Erc721Token$inboundSchema, Erc1155Token$inboundSchema]); - /** @internal */ export type Token$Outbound = Erc721Token$Outbound | Erc1155Token$Outbound; @@ -43,23 +42,9 @@ export const Token$outboundSchema: z.ZodType< 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 { @@ -81,7 +66,6 @@ export const ListNftTokens$inboundSchema: z.ZodType< z.union([Erc721Token$inboundSchema, Erc1155Token$inboundSchema]), ), }); - /** @internal */ export type ListNftTokens$Outbound = { nextPageToken?: string | undefined; @@ -100,23 +84,9 @@ export const ListNftTokens$outboundSchema: z.ZodType< ), }); -/** - * @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 { diff --git a/chainkit/src/models/components/listpchainbalancesresponse.ts b/chainkit/src/models/components/listpchainbalancesresponse.ts index eef7fa5d..8823f984 100644 --- a/chainkit/src/models/components/listpchainbalancesresponse.ts +++ b/chainkit/src/models/components/listpchainbalancesresponse.ts @@ -33,7 +33,6 @@ export const ListPChainBalancesResponse$inboundSchema: z.ZodType< balances: PChainBalance$inboundSchema, chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListPChainBalancesResponse$Outbound = { balances: PChainBalance$Outbound; @@ -50,19 +49,6 @@ export const ListPChainBalancesResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function listPChainBalancesResponseToJSON( ListPChainBalancesResponse$outboundSchema.parse(listPChainBalancesResponse), ); } - export function listPChainBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listpchaintransactionsresponse.ts b/chainkit/src/models/components/listpchaintransactionsresponse.ts index c1366e9a..ffeb9ce0 100644 --- a/chainkit/src/models/components/listpchaintransactionsresponse.ts +++ b/chainkit/src/models/components/listpchaintransactionsresponse.ts @@ -38,7 +38,6 @@ export const ListPChainTransactionsResponse$inboundSchema: z.ZodType< transactions: z.array(PChainTransaction$inboundSchema), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListPChainTransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListPChainTransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -79,7 +65,6 @@ export function listPChainTransactionsResponseToJSON( ), ); } - export function listPChainTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listpchainutxosresponse.ts b/chainkit/src/models/components/listpchainutxosresponse.ts index b0b6db61..a346df69 100644 --- a/chainkit/src/models/components/listpchainutxosresponse.ts +++ b/chainkit/src/models/components/listpchainutxosresponse.ts @@ -38,7 +38,6 @@ export const ListPChainUtxosResponse$inboundSchema: z.ZodType< utxos: z.array(PChainUtxo$inboundSchema), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListPChainUtxosResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListPChainUtxosResponse$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function listPChainUtxosResponseToJSON( ListPChainUtxosResponse$outboundSchema.parse(listPChainUtxosResponse), ); } - export function listPChainUtxosResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listpendingrewardsresponse.ts b/chainkit/src/models/components/listpendingrewardsresponse.ts index 26ea6a1f..a2e307f4 100644 --- a/chainkit/src/models/components/listpendingrewardsresponse.ts +++ b/chainkit/src/models/components/listpendingrewardsresponse.ts @@ -30,7 +30,6 @@ export const ListPendingRewardsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), pendingRewards: z.array(PendingReward$inboundSchema), }); - /** @internal */ export type ListPendingRewardsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListPendingRewardsResponse$outboundSchema: z.ZodType< 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 { @@ -67,7 +53,6 @@ export function listPendingRewardsResponseToJSON( ListPendingRewardsResponse$outboundSchema.parse(listPendingRewardsResponse), ); } - export function listPendingRewardsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listprimarynetworkblocksresponse.ts b/chainkit/src/models/components/listprimarynetworkblocksresponse.ts index 0c2b386d..ed59b78a 100644 --- a/chainkit/src/models/components/listprimarynetworkblocksresponse.ts +++ b/chainkit/src/models/components/listprimarynetworkblocksresponse.ts @@ -38,7 +38,6 @@ export const ListPrimaryNetworkBlocksResponse$inboundSchema: z.ZodType< blocks: z.array(PrimaryNetworkBlock$inboundSchema), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListPrimaryNetworkBlocksResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListPrimaryNetworkBlocksResponse$outboundSchema: z.ZodType< 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 { @@ -79,7 +65,6 @@ export function listPrimaryNetworkBlocksResponseToJSON( ), ); } - export function listPrimaryNetworkBlocksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listsubnetsresponse.ts b/chainkit/src/models/components/listsubnetsresponse.ts index deb7e143..07b81de7 100644 --- a/chainkit/src/models/components/listsubnetsresponse.ts +++ b/chainkit/src/models/components/listsubnetsresponse.ts @@ -30,7 +30,6 @@ export const ListSubnetsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), subnets: z.array(Subnet$inboundSchema), }); - /** @internal */ export type ListSubnetsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListSubnetsResponse$outboundSchema: z.ZodType< 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 { @@ -67,7 +53,6 @@ export function listSubnetsResponseToJSON( ListSubnetsResponse$outboundSchema.parse(listSubnetsResponse), ); } - export function listSubnetsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listteleportermessagesresponse.ts b/chainkit/src/models/components/listteleportermessagesresponse.ts index 6e361f55..b139f5a2 100644 --- a/chainkit/src/models/components/listteleportermessagesresponse.ts +++ b/chainkit/src/models/components/listteleportermessagesresponse.ts @@ -68,7 +68,6 @@ export const ListTeleporterMessagesResponseMessage$inboundSchema: z.ZodType< ) => ({ status: v.status })), ), ]); - /** @internal */ export type ListTeleporterMessagesResponseMessage$Outbound = | (DeliveredTeleporterMessage$Outbound & { status: "delivered" }) @@ -100,21 +99,6 @@ export const ListTeleporterMessagesResponseMessage$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -124,7 +108,6 @@ export function listTeleporterMessagesResponseMessageToJSON( ), ); } - export function listTeleporterMessagesResponseMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -162,7 +145,6 @@ export const ListTeleporterMessagesResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListTeleporterMessagesResponse$Outbound = { nextPageToken?: string | undefined; @@ -202,19 +184,6 @@ export const ListTeleporterMessagesResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -224,7 +193,6 @@ export function listTeleporterMessagesResponseToJSON( ), ); } - export function listTeleporterMessagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listtransactiondetailsresponse.ts b/chainkit/src/models/components/listtransactiondetailsresponse.ts index e48b23cd..41823d59 100644 --- a/chainkit/src/models/components/listtransactiondetailsresponse.ts +++ b/chainkit/src/models/components/listtransactiondetailsresponse.ts @@ -30,7 +30,6 @@ export const ListTransactionDetailsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), transactions: z.array(TransactionDetails$inboundSchema), }); - /** @internal */ export type ListTransactionDetailsResponse$Outbound = { nextPageToken?: string | undefined; @@ -47,19 +46,6 @@ export const ListTransactionDetailsResponse$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function listTransactionDetailsResponseToJSON( ), ); } - export function listTransactionDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listtransfersresponse.ts b/chainkit/src/models/components/listtransfersresponse.ts index dc580b32..f418cf04 100644 --- a/chainkit/src/models/components/listtransfersresponse.ts +++ b/chainkit/src/models/components/listtransfersresponse.ts @@ -45,7 +45,6 @@ export const Transfer$inboundSchema: z.ZodType< Erc1155Transfer$inboundSchema, Erc721Transfer$inboundSchema, ]); - /** @internal */ export type Transfer$Outbound = | Erc20Transfer$Outbound @@ -63,23 +62,9 @@ export const Transfer$outboundSchema: z.ZodType< 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 { @@ -105,7 +90,6 @@ export const ListTransfersResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListTransfersResponse$Outbound = { nextPageToken?: string | undefined; @@ -130,19 +114,6 @@ export const ListTransfersResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -150,7 +121,6 @@ export function listTransfersResponseToJSON( ListTransfersResponse$outboundSchema.parse(listTransfersResponse), ); } - export function listTransfersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listutxosresponse.ts b/chainkit/src/models/components/listutxosresponse.ts index 33e697d5..e57e3734 100644 --- a/chainkit/src/models/components/listutxosresponse.ts +++ b/chainkit/src/models/components/listutxosresponse.ts @@ -38,7 +38,6 @@ export const ListUtxosResponse$inboundSchema: z.ZodType< utxos: z.array(Utxo$inboundSchema), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListUtxosResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListUtxosResponse$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function listUtxosResponseToJSON( ListUtxosResponse$outboundSchema.parse(listUtxosResponse), ); } - export function listUtxosResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listvalidatordetailsresponse.ts b/chainkit/src/models/components/listvalidatordetailsresponse.ts index 52bd9a64..15cd719d 100644 --- a/chainkit/src/models/components/listvalidatordetailsresponse.ts +++ b/chainkit/src/models/components/listvalidatordetailsresponse.ts @@ -80,7 +80,6 @@ export const Validator$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type Validator$Outbound = | (ActiveValidatorDetails$Outbound & { validationStatus: "active" }) @@ -116,23 +115,9 @@ export const Validator$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -175,7 +160,6 @@ export const ListValidatorDetailsResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListValidatorDetailsResponse$Outbound = { nextPageToken?: string | undefined; @@ -220,19 +204,6 @@ export const ListValidatorDetailsResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -242,7 +213,6 @@ export function listValidatorDetailsResponseToJSON( ), ); } - export function listValidatorDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listwebhookaddressesresponse.ts b/chainkit/src/models/components/listwebhookaddressesresponse.ts index b9627b0d..2b648285 100644 --- a/chainkit/src/models/components/listwebhookaddressesresponse.ts +++ b/chainkit/src/models/components/listwebhookaddressesresponse.ts @@ -26,7 +26,6 @@ export const ListWebhookAddressesResponse$inboundSchema: z.ZodType< addresses: z.array(z.string()), totalAddresses: z.number(), }); - /** @internal */ export type ListWebhookAddressesResponse$Outbound = { nextPageToken?: string | undefined; @@ -45,19 +44,6 @@ export const ListWebhookAddressesResponse$outboundSchema: z.ZodType< 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 { @@ -67,7 +53,6 @@ export function listWebhookAddressesResponseToJSON( ), ); } - export function listWebhookAddressesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listwebhooksresponse.ts b/chainkit/src/models/components/listwebhooksresponse.ts index fbc8cd4b..0c4b01d5 100644 --- a/chainkit/src/models/components/listwebhooksresponse.ts +++ b/chainkit/src/models/components/listwebhooksresponse.ts @@ -49,7 +49,6 @@ export const Webhook$inboundSchema: z.ZodType = PrimaryNetworkAddressActivityResponse$inboundSchema, ValidatorActivityResponse$inboundSchema, ]); - /** @internal */ export type Webhook$Outbound = | EVMAddressActivityResponse$Outbound @@ -67,23 +66,9 @@ export const Webhook$outboundSchema: z.ZodType< 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 { @@ -109,7 +94,6 @@ export const ListWebhooksResponse$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type ListWebhooksResponse$Outbound = { nextPageToken?: string | undefined; @@ -136,19 +120,6 @@ export const ListWebhooksResponse$outboundSchema: z.ZodType< ), }); -/** - * @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 { @@ -156,7 +127,6 @@ export function listWebhooksResponseToJSON( ListWebhooksResponse$outboundSchema.parse(listWebhooksResponse), ); } - export function listWebhooksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listxchainbalancesresponse.ts b/chainkit/src/models/components/listxchainbalancesresponse.ts index 2d2dcea0..30f53b0c 100644 --- a/chainkit/src/models/components/listxchainbalancesresponse.ts +++ b/chainkit/src/models/components/listxchainbalancesresponse.ts @@ -33,7 +33,6 @@ export const ListXChainBalancesResponse$inboundSchema: z.ZodType< balances: XChainBalances$inboundSchema, chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListXChainBalancesResponse$Outbound = { balances: XChainBalances$Outbound; @@ -50,19 +49,6 @@ export const ListXChainBalancesResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function listXChainBalancesResponseToJSON( ListXChainBalancesResponse$outboundSchema.parse(listXChainBalancesResponse), ); } - export function listXChainBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listxchaintransactionsresponse.ts b/chainkit/src/models/components/listxchaintransactionsresponse.ts index 30aed925..d0f687dd 100644 --- a/chainkit/src/models/components/listxchaintransactionsresponse.ts +++ b/chainkit/src/models/components/listxchaintransactionsresponse.ts @@ -47,7 +47,6 @@ export const ListXChainTransactionsResponseTransaction$inboundSchema: z.ZodType< XChainLinearTransaction$inboundSchema, XChainNonLinearTransaction$inboundSchema, ]); - /** @internal */ export type ListXChainTransactionsResponseTransaction$Outbound = | XChainLinearTransaction$Outbound @@ -64,21 +63,6 @@ export const ListXChainTransactionsResponseTransaction$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, @@ -89,7 +73,6 @@ export function listXChainTransactionsResponseTransactionToJSON( ), ); } - export function listXChainTransactionsResponseTransactionFromJSON( jsonString: string, ): SafeParseResult< @@ -121,7 +104,6 @@ export const ListXChainTransactionsResponse$inboundSchema: z.ZodType< ), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListXChainTransactionsResponse$Outbound = { nextPageToken?: string | undefined; @@ -147,19 +129,6 @@ export const ListXChainTransactionsResponse$outboundSchema: z.ZodType< 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 { @@ -169,7 +138,6 @@ export function listXChainTransactionsResponseToJSON( ), ); } - export function listXChainTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/listxchainverticesresponse.ts b/chainkit/src/models/components/listxchainverticesresponse.ts index 581c9ef2..e3b7afcf 100644 --- a/chainkit/src/models/components/listxchainverticesresponse.ts +++ b/chainkit/src/models/components/listxchainverticesresponse.ts @@ -38,7 +38,6 @@ export const ListXChainVerticesResponse$inboundSchema: z.ZodType< vertices: z.array(XChainVertex$inboundSchema), chainInfo: PrimaryNetworkChainInfo$inboundSchema, }); - /** @internal */ export type ListXChainVerticesResponse$Outbound = { nextPageToken?: string | undefined; @@ -57,19 +56,6 @@ export const ListXChainVerticesResponse$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function listXChainVerticesResponseToJSON( ListXChainVerticesResponse$outboundSchema.parse(listXChainVerticesResponse), ); } - export function listXChainVerticesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/log.ts b/chainkit/src/models/components/log.ts index 95a94b5a..1ee95c85 100644 --- a/chainkit/src/models/components/log.ts +++ b/chainkit/src/models/components/log.ts @@ -59,7 +59,6 @@ export const Log$inboundSchema: z.ZodType = z logIndex: z.number(), removed: z.boolean(), }); - /** @internal */ export type Log$Outbound = { address: string; @@ -87,23 +86,9 @@ export const Log$outboundSchema: z.ZodType = z 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 { diff --git a/chainkit/src/models/components/logsformat.ts b/chainkit/src/models/components/logsformat.ts index 1491a930..8a1eeb7c 100644 --- a/chainkit/src/models/components/logsformat.ts +++ b/chainkit/src/models/components/logsformat.ts @@ -98,7 +98,6 @@ export const LogsFormat$inboundSchema: z.ZodType< rpcMethod: z.string().optional(), metadata: LogsFormatMetadata$inboundSchema, }); - /** @internal */ export type LogsFormat$Outbound = { orgId: string; @@ -139,23 +138,9 @@ export const LogsFormat$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/logsformatmetadata.ts b/chainkit/src/models/components/logsformatmetadata.ts index 5cab7117..04678bb5 100644 --- a/chainkit/src/models/components/logsformatmetadata.ts +++ b/chainkit/src/models/components/logsformatmetadata.ts @@ -32,7 +32,6 @@ export const LogsFormatMetadata$inboundSchema: z.ZodType< host: z.string(), userAgent: z.string(), }); - /** @internal */ export type LogsFormatMetadata$Outbound = { ipAddress: string; @@ -51,19 +50,6 @@ export const LogsFormatMetadata$outboundSchema: z.ZodType< 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 { @@ -71,7 +57,6 @@ export function logsFormatMetadataToJSON( LogsFormatMetadata$outboundSchema.parse(logsFormatMetadata), ); } - export function logsFormatMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/logsresponsedto.ts b/chainkit/src/models/components/logsresponsedto.ts index d691abf6..36c7a762 100644 --- a/chainkit/src/models/components/logsresponsedto.ts +++ b/chainkit/src/models/components/logsresponsedto.ts @@ -38,7 +38,6 @@ export const LogsResponseDTO$inboundSchema: z.ZodType< orgId: z.string(), logs: z.array(LogsFormat$inboundSchema), }); - /** @internal */ export type LogsResponseDTO$Outbound = { nextPageToken?: string | undefined; @@ -57,25 +56,11 @@ export const LogsResponseDTO$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/lookingglassresponse.ts b/chainkit/src/models/components/lookingglassresponse.ts index ec3355ac..be24bb97 100644 --- a/chainkit/src/models/components/lookingglassresponse.ts +++ b/chainkit/src/models/components/lookingglassresponse.ts @@ -33,7 +33,6 @@ export const LookingGlassResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), addresses: z.array(AddressDetails$inboundSchema), }); - /** @internal */ export type LookingGlassResponse$Outbound = { nextPageToken?: string | undefined; @@ -50,19 +49,6 @@ export const LookingGlassResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function lookingGlassResponseToJSON( LookingGlassResponse$outboundSchema.parse(lookingGlassResponse), ); } - export function lookingGlassResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/method.ts b/chainkit/src/models/components/method.ts index 519b2f0f..c15076e0 100644 --- a/chainkit/src/models/components/method.ts +++ b/chainkit/src/models/components/method.ts @@ -34,7 +34,6 @@ export const Method$inboundSchema: z.ZodType = z methodHash: z.string(), methodName: z.string().optional(), }); - /** @internal */ export type Method$Outbound = { callType: string; @@ -53,23 +52,9 @@ export const Method$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/metric.ts b/chainkit/src/models/components/metric.ts index 7fb5b161..1639cf33 100644 --- a/chainkit/src/models/components/metric.ts +++ b/chainkit/src/models/components/metric.ts @@ -30,7 +30,6 @@ export const Metric$inboundSchema: z.ZodType = z timestamp: z.number(), values: z.array(UsageMetricsValueDTO$inboundSchema), }); - /** @internal */ export type Metric$Outbound = { timestamp: number; @@ -47,23 +46,9 @@ export const Metric$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/metricsapiresponse.ts b/chainkit/src/models/components/metricsapiresponse.ts index a9097e92..cf359813 100644 --- a/chainkit/src/models/components/metricsapiresponse.ts +++ b/chainkit/src/models/components/metricsapiresponse.ts @@ -33,7 +33,6 @@ export const MetricsApiResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), results: z.array(MetricsValue$inboundSchema), }); - /** @internal */ export type MetricsApiResponse$Outbound = { nextPageToken?: string | undefined; @@ -50,19 +49,6 @@ export const MetricsApiResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function metricsApiResponseToJSON( MetricsApiResponse$outboundSchema.parse(metricsApiResponse), ); } - export function metricsApiResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/metricslistchainsresponse.ts b/chainkit/src/models/components/metricslistchainsresponse.ts index e76c1054..6bdabebf 100644 --- a/chainkit/src/models/components/metricslistchainsresponse.ts +++ b/chainkit/src/models/components/metricslistchainsresponse.ts @@ -33,7 +33,6 @@ export const MetricsListChainsResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), chains: z.array(Chain$inboundSchema), }); - /** @internal */ export type MetricsListChainsResponse$Outbound = { nextPageToken?: string | undefined; @@ -50,19 +49,6 @@ export const MetricsListChainsResponse$outboundSchema: z.ZodType< 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 MetricsListChainsResponse$ { - /** @deprecated use `MetricsListChainsResponse$inboundSchema` instead. */ - export const inboundSchema = MetricsListChainsResponse$inboundSchema; - /** @deprecated use `MetricsListChainsResponse$outboundSchema` instead. */ - export const outboundSchema = MetricsListChainsResponse$outboundSchema; - /** @deprecated use `MetricsListChainsResponse$Outbound` instead. */ - export type Outbound = MetricsListChainsResponse$Outbound; -} - export function metricsListChainsResponseToJSON( metricsListChainsResponse: MetricsListChainsResponse, ): string { @@ -70,7 +56,6 @@ export function metricsListChainsResponseToJSON( MetricsListChainsResponse$outboundSchema.parse(metricsListChainsResponse), ); } - export function metricsListChainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/metricsvalue.ts b/chainkit/src/models/components/metricsvalue.ts index b971d1be..9a0919dd 100644 --- a/chainkit/src/models/components/metricsvalue.ts +++ b/chainkit/src/models/components/metricsvalue.ts @@ -27,7 +27,6 @@ export const MetricsValue$inboundSchema: z.ZodType< value: z.number(), timestamp: z.number(), }); - /** @internal */ export type MetricsValue$Outbound = { value: number; @@ -44,23 +43,9 @@ export const MetricsValue$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/money.ts b/chainkit/src/models/components/money.ts index fb9c6ee7..3f42b0cb 100644 --- a/chainkit/src/models/components/money.ts +++ b/chainkit/src/models/components/money.ts @@ -29,7 +29,6 @@ export const Money$inboundSchema: z.ZodType = z currencyCode: CurrencyCode$inboundSchema, value: z.number(), }); - /** @internal */ export type Money$Outbound = { currencyCode: string; @@ -46,23 +45,9 @@ export const Money$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/nativetokenbalance.ts b/chainkit/src/models/components/nativetokenbalance.ts index 87e3d8df..b42c1196 100644 --- a/chainkit/src/models/components/nativetokenbalance.ts +++ b/chainkit/src/models/components/nativetokenbalance.ts @@ -63,7 +63,6 @@ export const NativeTokenBalance$inboundSchema: z.ZodType< balance: z.string(), balanceValue: Money$inboundSchema.optional(), }); - /** @internal */ export type NativeTokenBalance$Outbound = { name: string; @@ -92,19 +91,6 @@ export const NativeTokenBalance$outboundSchema: z.ZodType< 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 { @@ -112,7 +98,6 @@ export function nativeTokenBalanceToJSON( NativeTokenBalance$outboundSchema.parse(nativeTokenBalance), ); } - export function nativeTokenBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/nativetransaction.ts b/chainkit/src/models/components/nativetransaction.ts index c718ce1b..02032e1d 100644 --- a/chainkit/src/models/components/nativetransaction.ts +++ b/chainkit/src/models/components/nativetransaction.ts @@ -97,7 +97,6 @@ export const NativeTransaction$inboundSchema: z.ZodType< method: Method$inboundSchema.optional(), value: z.string(), }); - /** @internal */ export type NativeTransaction$Outbound = { blockNumber: string; @@ -142,19 +141,6 @@ export const NativeTransaction$outboundSchema: z.ZodType< 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 { @@ -162,7 +148,6 @@ export function nativeTransactionToJSON( NativeTransaction$outboundSchema.parse(nativeTransaction), ); } - export function nativeTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/network.ts b/chainkit/src/models/components/network.ts index 5955af15..d11955fb 100644 --- a/chainkit/src/models/components/network.ts +++ b/chainkit/src/models/components/network.ts @@ -15,18 +15,6 @@ 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/chainkit/src/models/components/networkmetric.ts b/chainkit/src/models/components/networkmetric.ts index 1afe738f..f0f3faf2 100644 --- a/chainkit/src/models/components/networkmetric.ts +++ b/chainkit/src/models/components/networkmetric.ts @@ -17,19 +17,7 @@ export type NetworkMetric = ClosedEnum; 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/chainkit/src/models/components/networktoken.ts b/chainkit/src/models/components/networktoken.ts index c6553a64..76ee99a3 100644 --- a/chainkit/src/models/components/networktoken.ts +++ b/chainkit/src/models/components/networktoken.ts @@ -39,7 +39,6 @@ export const NetworkToken$inboundSchema: z.ZodType< logoUri: z.string().optional(), description: z.string().optional(), }); - /** @internal */ export type NetworkToken$Outbound = { name: string; @@ -62,23 +61,9 @@ export const NetworkToken$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/networktokendetails.ts b/chainkit/src/models/components/networktokendetails.ts index c201c9ea..e29f64d7 100644 --- a/chainkit/src/models/components/networktokendetails.ts +++ b/chainkit/src/models/components/networktokendetails.ts @@ -41,7 +41,6 @@ export const NetworkTokenDetails$inboundSchema: z.ZodType< currentPrice: Money$inboundSchema.optional(), historicalPrice: Money$inboundSchema.optional(), }); - /** @internal */ export type NetworkTokenDetails$Outbound = { networkToken: NetworkToken$Outbound; @@ -60,19 +59,6 @@ export const NetworkTokenDetails$outboundSchema: z.ZodType< 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 { @@ -80,7 +66,6 @@ export function networkTokenDetailsToJSON( NetworkTokenDetails$outboundSchema.parse(networkTokenDetails), ); } - export function networkTokenDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/networktokeninfo.ts b/chainkit/src/models/components/networktokeninfo.ts index fee00f62..0fc5bb8c 100644 --- a/chainkit/src/models/components/networktokeninfo.ts +++ b/chainkit/src/models/components/networktokeninfo.ts @@ -37,7 +37,6 @@ export const NetworkTokenInfo$inboundSchema: z.ZodType< tokenDecimals: z.number().optional(), valueWithDecimals: z.string().optional(), }); - /** @internal */ export type NetworkTokenInfo$Outbound = { tokenName?: string | undefined; @@ -58,19 +57,6 @@ export const NetworkTokenInfo$outboundSchema: z.ZodType< 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 { @@ -78,7 +64,6 @@ export function networkTokenInfoToJSON( NetworkTokenInfo$outboundSchema.parse(networkTokenInfo), ); } - export function networkTokenInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/networktype.ts b/chainkit/src/models/components/networktype.ts index 7d28dada..5dd698af 100644 --- a/chainkit/src/models/components/networktype.ts +++ b/chainkit/src/models/components/networktype.ts @@ -20,18 +20,6 @@ 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/chainkit/src/models/components/nftholdersresponse.ts b/chainkit/src/models/components/nftholdersresponse.ts index f1cc9b34..a38f342b 100644 --- a/chainkit/src/models/components/nftholdersresponse.ts +++ b/chainkit/src/models/components/nftholdersresponse.ts @@ -53,7 +53,6 @@ export const NftHoldersResponse$inboundSchema: z.ZodType< totalHolders: z.number(), totalTokens: z.number(), }); - /** @internal */ export type NftHoldersResponse$Outbound = { nextPageToken?: string | undefined; @@ -78,19 +77,6 @@ export const NftHoldersResponse$outboundSchema: z.ZodType< 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 { @@ -98,7 +84,6 @@ export function nftHoldersResponseToJSON( NftHoldersResponse$outboundSchema.parse(nftHoldersResponse), ); } - export function nftHoldersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/nfttokenmetadatastatus.ts b/chainkit/src/models/components/nfttokenmetadatastatus.ts index c14fcf7e..4d1d04f7 100644 --- a/chainkit/src/models/components/nfttokenmetadatastatus.ts +++ b/chainkit/src/models/components/nfttokenmetadatastatus.ts @@ -30,19 +30,7 @@ export type NftTokenMetadataStatus = ClosedEnum; 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/chainkit/src/models/components/operationstatus.ts b/chainkit/src/models/components/operationstatus.ts index 0a871802..3144569f 100644 --- a/chainkit/src/models/components/operationstatus.ts +++ b/chainkit/src/models/components/operationstatus.ts @@ -17,19 +17,7 @@ export type OperationStatus = ClosedEnum; 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/chainkit/src/models/components/operationstatuscode.ts b/chainkit/src/models/components/operationstatuscode.ts index 8a6e9fdb..db526305 100644 --- a/chainkit/src/models/components/operationstatuscode.ts +++ b/chainkit/src/models/components/operationstatuscode.ts @@ -16,19 +16,7 @@ export type OperationStatusCode = ClosedEnum; 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/chainkit/src/models/components/operationstatusresponse.ts b/chainkit/src/models/components/operationstatusresponse.ts index 5c2699d7..6632a6bd 100644 --- a/chainkit/src/models/components/operationstatusresponse.ts +++ b/chainkit/src/models/components/operationstatusresponse.ts @@ -41,7 +41,6 @@ export const OperationStatusResponseMetadata$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = TransactionExportMetadata$inboundSchema; - /** @internal */ export type OperationStatusResponseMetadata$Outbound = TransactionExportMetadata$Outbound; @@ -53,19 +52,6 @@ export const OperationStatusResponseMetadata$outboundSchema: z.ZodType< OperationStatusResponseMetadata > = 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 OperationStatusResponseMetadata$ { - /** @deprecated use `OperationStatusResponseMetadata$inboundSchema` instead. */ - export const inboundSchema = OperationStatusResponseMetadata$inboundSchema; - /** @deprecated use `OperationStatusResponseMetadata$outboundSchema` instead. */ - export const outboundSchema = OperationStatusResponseMetadata$outboundSchema; - /** @deprecated use `OperationStatusResponseMetadata$Outbound` instead. */ - export type Outbound = OperationStatusResponseMetadata$Outbound; -} - export function operationStatusResponseMetadataToJSON( operationStatusResponseMetadata: OperationStatusResponseMetadata, ): string { @@ -75,7 +61,6 @@ export function operationStatusResponseMetadataToJSON( ), ); } - export function operationStatusResponseMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const OperationStatusResponse$inboundSchema: z.ZodType< createdAtTimestamp: z.number(), updatedAtTimestamp: z.number(), }); - /** @internal */ export type OperationStatusResponse$Outbound = { operationId: string; @@ -127,19 +111,6 @@ export const OperationStatusResponse$outboundSchema: z.ZodType< 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 { @@ -147,7 +118,6 @@ export function operationStatusResponseToJSON( OperationStatusResponse$outboundSchema.parse(operationStatusResponse), ); } - export function operationStatusResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/operationtype.ts b/chainkit/src/models/components/operationtype.ts index deed6918..596aa50f 100644 --- a/chainkit/src/models/components/operationtype.ts +++ b/chainkit/src/models/components/operationtype.ts @@ -19,19 +19,7 @@ export type OperationType = ClosedEnum; 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/chainkit/src/models/components/pchainaddressdetails.ts b/chainkit/src/models/components/pchainaddressdetails.ts index 31627f1c..011d5b3e 100644 --- a/chainkit/src/models/components/pchainaddressdetails.ts +++ b/chainkit/src/models/components/pchainaddressdetails.ts @@ -27,7 +27,6 @@ export const PChainAddressDetails$inboundSchema: z.ZodType< addresses: z.array(z.string()), sortKey: z.string(), }); - /** @internal */ export type PChainAddressDetails$Outbound = { addresses: Array; @@ -44,19 +43,6 @@ export const PChainAddressDetails$outboundSchema: z.ZodType< 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 { @@ -64,7 +50,6 @@ export function pChainAddressDetailsToJSON( PChainAddressDetails$outboundSchema.parse(pChainAddressDetails), ); } - export function pChainAddressDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pchainbalance.ts b/chainkit/src/models/components/pchainbalance.ts index 12e20b83..d559c458 100644 --- a/chainkit/src/models/components/pchainbalance.ts +++ b/chainkit/src/models/components/pchainbalance.ts @@ -69,7 +69,6 @@ export const PChainBalance$inboundSchema: z.ZodType< atomicMemoryUnlocked: z.array(PChainSharedAsset$inboundSchema), atomicMemoryLocked: z.array(PChainSharedAsset$inboundSchema), }); - /** @internal */ export type PChainBalance$Outbound = { unlockedUnstaked: Array; @@ -98,23 +97,9 @@ export const PChainBalance$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/pchainid.ts b/chainkit/src/models/components/pchainid.ts index fe392ccc..39761710 100644 --- a/chainkit/src/models/components/pchainid.ts +++ b/chainkit/src/models/components/pchainid.ts @@ -15,18 +15,6 @@ 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/chainkit/src/models/components/pchainlookingglassresponse.ts b/chainkit/src/models/components/pchainlookingglassresponse.ts index ca23151a..fd1a3e01 100644 --- a/chainkit/src/models/components/pchainlookingglassresponse.ts +++ b/chainkit/src/models/components/pchainlookingglassresponse.ts @@ -33,7 +33,6 @@ export const PChainLookingGlassResponse$inboundSchema: z.ZodType< nextPageToken: z.string().optional(), addresses: z.array(PChainAddressDetails$inboundSchema), }); - /** @internal */ export type PChainLookingGlassResponse$Outbound = { nextPageToken?: string | undefined; @@ -50,19 +49,6 @@ export const PChainLookingGlassResponse$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function pChainLookingGlassResponseToJSON( PChainLookingGlassResponse$outboundSchema.parse(pChainLookingGlassResponse), ); } - export function pChainLookingGlassResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pchainsharedasset.ts b/chainkit/src/models/components/pchainsharedasset.ts index 28c4e9c5..2bfaf8b0 100644 --- a/chainkit/src/models/components/pchainsharedasset.ts +++ b/chainkit/src/models/components/pchainsharedasset.ts @@ -58,7 +58,6 @@ export const PChainSharedAsset$inboundSchema: z.ZodType< sharedWithChainId: z.string(), status: z.string(), }); - /** @internal */ export type PChainSharedAsset$Outbound = { assetId: string; @@ -89,19 +88,6 @@ export const PChainSharedAsset$outboundSchema: z.ZodType< 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 { @@ -109,7 +95,6 @@ export function pChainSharedAssetToJSON( PChainSharedAsset$outboundSchema.parse(pChainSharedAsset), ); } - export function pChainSharedAssetFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pchaintransaction.ts b/chainkit/src/models/components/pchaintransaction.ts index 04a7415a..70e70864 100644 --- a/chainkit/src/models/components/pchaintransaction.ts +++ b/chainkit/src/models/components/pchaintransaction.ts @@ -193,7 +193,6 @@ export const PChainTransaction$inboundSchema: z.ZodType< blsCredentials: BlsCredentials$inboundSchema.optional(), blockchainInfo: BlockchainInfo$inboundSchema.optional(), }); - /** @internal */ export type PChainTransaction$Outbound = { txHash: string; @@ -266,19 +265,6 @@ export const PChainTransaction$outboundSchema: z.ZodType< 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 { @@ -286,7 +272,6 @@ export function pChainTransactionToJSON( PChainTransaction$outboundSchema.parse(pChainTransaction), ); } - export function pChainTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pchaintransactiontype.ts b/chainkit/src/models/components/pchaintransactiontype.ts index be2aefe9..2aed7d5e 100644 --- a/chainkit/src/models/components/pchaintransactiontype.ts +++ b/chainkit/src/models/components/pchaintransactiontype.ts @@ -34,19 +34,7 @@ export type PChainTransactionType = ClosedEnum; 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/chainkit/src/models/components/pchainutxo.ts b/chainkit/src/models/components/pchainutxo.ts index 7bec31bb..72ee39c8 100644 --- a/chainkit/src/models/components/pchainutxo.ts +++ b/chainkit/src/models/components/pchainutxo.ts @@ -133,7 +133,6 @@ export const PChainUtxo$inboundSchema: z.ZodType< utxoStartTimestamp: z.number().optional(), utxoType: UtxoType$inboundSchema, }); - /** @internal */ export type PChainUtxo$Outbound = { addresses: Array; @@ -192,23 +191,9 @@ export const PChainUtxo$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/pendingdelegatordetails.ts b/chainkit/src/models/components/pendingdelegatordetails.ts index ad074bd3..1d734920 100644 --- a/chainkit/src/models/components/pendingdelegatordetails.ts +++ b/chainkit/src/models/components/pendingdelegatordetails.ts @@ -38,25 +38,11 @@ export type PendingDelegatorDetails = { 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, @@ -74,7 +60,6 @@ export const PendingDelegatorDetails$inboundSchema: z.ZodType< estimatedNetReward: z.string(), delegationStatus: PendingDelegatorDetailsDelegationStatus$inboundSchema, }); - /** @internal */ export type PendingDelegatorDetails$Outbound = { txHash: string; @@ -107,19 +92,6 @@ export const PendingDelegatorDetails$outboundSchema: z.ZodType< 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 { @@ -127,7 +99,6 @@ export function pendingDelegatorDetailsToJSON( PendingDelegatorDetails$outboundSchema.parse(pendingDelegatorDetails), ); } - export function pendingDelegatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pendingicmmessage.ts b/chainkit/src/models/components/pendingicmmessage.ts index 7c2c0ba9..e9205c49 100644 --- a/chainkit/src/models/components/pendingicmmessage.ts +++ b/chainkit/src/models/components/pendingicmmessage.ts @@ -56,23 +56,11 @@ export type PendingIcmMessage = { 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, @@ -96,7 +84,6 @@ export const PendingIcmMessage$inboundSchema: z.ZodType< sourceTransaction: IcmSourceTransaction$inboundSchema, status: PendingIcmMessageStatus$inboundSchema, }); - /** @internal */ export type PendingIcmMessage$Outbound = { messageId: string; @@ -141,19 +128,6 @@ export const PendingIcmMessage$outboundSchema: z.ZodType< 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 { @@ -161,7 +135,6 @@ export function pendingIcmMessageToJSON( PendingIcmMessage$outboundSchema.parse(pendingIcmMessage), ); } - export function pendingIcmMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pendingreward.ts b/chainkit/src/models/components/pendingreward.ts index cf268750..7fe9892b 100644 --- a/chainkit/src/models/components/pendingreward.ts +++ b/chainkit/src/models/components/pendingreward.ts @@ -52,7 +52,6 @@ export const PendingReward$inboundSchema: z.ZodType< progress: z.number(), estimatedReward: AssetAmount$inboundSchema, }); - /** @internal */ export type PendingReward$Outbound = { addresses: Array; @@ -83,23 +82,9 @@ export const PendingReward$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/pendingteleportermessage.ts b/chainkit/src/models/components/pendingteleportermessage.ts index f3cc696c..71387399 100644 --- a/chainkit/src/models/components/pendingteleportermessage.ts +++ b/chainkit/src/models/components/pendingteleportermessage.ts @@ -56,23 +56,11 @@ export type PendingTeleporterMessage = { 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, @@ -96,7 +84,6 @@ export const PendingTeleporterMessage$inboundSchema: z.ZodType< sourceTransaction: TeleporterSourceTransaction$inboundSchema, status: PendingTeleporterMessageStatus$inboundSchema, }); - /** @internal */ export type PendingTeleporterMessage$Outbound = { messageId: string; @@ -141,19 +128,6 @@ export const PendingTeleporterMessage$outboundSchema: z.ZodType< 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 { @@ -161,7 +135,6 @@ export function pendingTeleporterMessageToJSON( PendingTeleporterMessage$outboundSchema.parse(pendingTeleporterMessage), ); } - export function pendingTeleporterMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/pendingvalidatordetails.ts b/chainkit/src/models/components/pendingvalidatordetails.ts index c107002e..49da7907 100644 --- a/chainkit/src/models/components/pendingvalidatordetails.ts +++ b/chainkit/src/models/components/pendingvalidatordetails.ts @@ -43,25 +43,11 @@ export type PendingValidatorDetails = { 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, @@ -78,7 +64,6 @@ export const PendingValidatorDetails$inboundSchema: z.ZodType< blsCredentials: BlsCredentials$inboundSchema.optional(), validationStatus: PendingValidatorDetailsValidationStatus$inboundSchema, }); - /** @internal */ export type PendingValidatorDetails$Outbound = { txHash: string; @@ -109,19 +94,6 @@ export const PendingValidatorDetails$outboundSchema: z.ZodType< 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 { @@ -129,7 +101,6 @@ export function pendingValidatorDetailsToJSON( PendingValidatorDetails$outboundSchema.parse(pendingValidatorDetails), ); } - export function pendingValidatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/platformaddressactivitykeytype.ts b/chainkit/src/models/components/platformaddressactivitykeytype.ts index 747e46b7..091f3fb6 100644 --- a/chainkit/src/models/components/platformaddressactivitykeytype.ts +++ b/chainkit/src/models/components/platformaddressactivitykeytype.ts @@ -22,19 +22,7 @@ export type PlatformAddressActivityKeyType = ClosedEnum< 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/chainkit/src/models/components/pricingproviders.ts b/chainkit/src/models/components/pricingproviders.ts index 82ad11da..5b2f3b38 100644 --- a/chainkit/src/models/components/pricingproviders.ts +++ b/chainkit/src/models/components/pricingproviders.ts @@ -19,7 +19,6 @@ export const PricingProviders$inboundSchema: z.ZodType< > = z.object({ coingeckoCoinId: z.string().optional(), }); - /** @internal */ export type PricingProviders$Outbound = { coingeckoCoinId?: string | undefined; @@ -34,19 +33,6 @@ export const PricingProviders$outboundSchema: z.ZodType< 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 { @@ -54,7 +40,6 @@ export function pricingProvidersToJSON( PricingProviders$outboundSchema.parse(pricingProviders), ); } - export function pricingProvidersFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts b/chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts index 72aa265b..00febd5b 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivityeventtype.ts @@ -17,21 +17,7 @@ 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/chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts b/chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts index 027ecceb..ba4ec177 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivitymetadata.ts @@ -60,7 +60,6 @@ export const PrimaryNetworkAddressActivityMetadata$inboundSchema: z.ZodType< balanceThresholdFilter: PrimaryNetworkBalanceThresholdFilter$inboundSchema .optional(), }); - /** @internal */ export type PrimaryNetworkAddressActivityMetadata$Outbound = { eventSignatures?: Array | undefined; @@ -86,21 +85,6 @@ export const PrimaryNetworkAddressActivityMetadata$outboundSchema: z.ZodType< .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 { @@ -110,7 +94,6 @@ export function primaryNetworkAddressActivityMetadataToJSON( ), ); } - export function primaryNetworkAddressActivityMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkaddressactivityrequest.ts b/chainkit/src/models/components/primarynetworkaddressactivityrequest.ts index ca5da571..ddbed3c6 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivityrequest.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivityrequest.ts @@ -49,25 +49,11 @@ export type PrimaryNetworkAddressActivityRequest = { 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< @@ -75,7 +61,6 @@ export const PrimaryNetworkAddressActivityRequestMetadata$inboundSchema: z.ZodTypeDef, unknown > = PrimaryNetworkAddressActivityMetadata$inboundSchema; - /** @internal */ export type PrimaryNetworkAddressActivityRequestMetadata$Outbound = PrimaryNetworkAddressActivityMetadata$Outbound; @@ -88,21 +73,6 @@ export const PrimaryNetworkAddressActivityRequestMetadata$outboundSchema: 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, @@ -113,7 +83,6 @@ export function primaryNetworkAddressActivityRequestMetadataToJSON( ), ); } - export function primaryNetworkAddressActivityRequestMetadataFromJSON( jsonString: string, ): SafeParseResult< @@ -144,7 +113,6 @@ export const PrimaryNetworkAddressActivityRequest$inboundSchema: z.ZodType< chainId: z.string(), metadata: PrimaryNetworkAddressActivityMetadata$inboundSchema, }); - /** @internal */ export type PrimaryNetworkAddressActivityRequest$Outbound = { eventType: string; @@ -171,21 +139,6 @@ export const PrimaryNetworkAddressActivityRequest$outboundSchema: z.ZodType< 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 { @@ -195,7 +148,6 @@ export function primaryNetworkAddressActivityRequestToJSON( ), ); } - export function primaryNetworkAddressActivityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkaddressactivityresponse.ts b/chainkit/src/models/components/primarynetworkaddressactivityresponse.ts index 5c4a46d8..2181579d 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivityresponse.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivityresponse.ts @@ -51,7 +51,6 @@ export const PrimaryNetworkAddressActivityResponse$inboundSchema: z.ZodType< eventType: PrimaryNetworkAddressActivityEventType$inboundSchema, metadata: PrimaryNetworkAddressActivityMetadata$inboundSchema, }); - /** @internal */ export type PrimaryNetworkAddressActivityResponse$Outbound = { id: string; @@ -82,21 +81,6 @@ export const PrimaryNetworkAddressActivityResponse$outboundSchema: z.ZodType< 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 { @@ -106,7 +90,6 @@ export function primaryNetworkAddressActivityResponseToJSON( ), ); } - export function primaryNetworkAddressActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts b/chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts index 73fecbfd..55ba9604 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivitysubevents.ts @@ -26,7 +26,6 @@ export const PrimaryNetworkAddressActivitySubEvents$inboundSchema: z.ZodType< PrimaryNetworkAddressActivitySubEventType$inboundSchema, ), }); - /** @internal */ export type PrimaryNetworkAddressActivitySubEvents$Outbound = { addressActivitySubEvents: Array; @@ -43,21 +42,6 @@ export const PrimaryNetworkAddressActivitySubEvents$outboundSchema: z.ZodType< ), }); -/** - * @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, @@ -68,7 +52,6 @@ export function primaryNetworkAddressActivitySubEventsToJSON( ), ); } - export function primaryNetworkAddressActivitySubEventsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts b/chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts index cf15a0aa..404fb865 100644 --- a/chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts +++ b/chainkit/src/models/components/primarynetworkaddressactivitysubeventtype.ts @@ -24,21 +24,7 @@ export type PrimaryNetworkAddressActivitySubEventType = ClosedEnum< 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/chainkit/src/models/components/primarynetworkaddressesbodydto.ts b/chainkit/src/models/components/primarynetworkaddressesbodydto.ts index ba62d132..f3570405 100644 --- a/chainkit/src/models/components/primarynetworkaddressesbodydto.ts +++ b/chainkit/src/models/components/primarynetworkaddressesbodydto.ts @@ -22,7 +22,6 @@ export const PrimaryNetworkAddressesBodyDto$inboundSchema: z.ZodType< > = z.object({ addresses: z.string(), }); - /** @internal */ export type PrimaryNetworkAddressesBodyDto$Outbound = { addresses: string; @@ -37,19 +36,6 @@ export const PrimaryNetworkAddressesBodyDto$outboundSchema: z.ZodType< addresses: 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 PrimaryNetworkAddressesBodyDto$ { - /** @deprecated use `PrimaryNetworkAddressesBodyDto$inboundSchema` instead. */ - export const inboundSchema = PrimaryNetworkAddressesBodyDto$inboundSchema; - /** @deprecated use `PrimaryNetworkAddressesBodyDto$outboundSchema` instead. */ - export const outboundSchema = PrimaryNetworkAddressesBodyDto$outboundSchema; - /** @deprecated use `PrimaryNetworkAddressesBodyDto$Outbound` instead. */ - export type Outbound = PrimaryNetworkAddressesBodyDto$Outbound; -} - export function primaryNetworkAddressesBodyDtoToJSON( primaryNetworkAddressesBodyDto: PrimaryNetworkAddressesBodyDto, ): string { @@ -59,7 +45,6 @@ export function primaryNetworkAddressesBodyDtoToJSON( ), ); } - export function primaryNetworkAddressesBodyDtoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkassetcap.ts b/chainkit/src/models/components/primarynetworkassetcap.ts index 9d164de7..a4e04b1c 100644 --- a/chainkit/src/models/components/primarynetworkassetcap.ts +++ b/chainkit/src/models/components/primarynetworkassetcap.ts @@ -21,19 +21,7 @@ export type PrimaryNetworkAssetCap = ClosedEnum; 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/chainkit/src/models/components/primarynetworkassettype.ts b/chainkit/src/models/components/primarynetworkassettype.ts index 955024ed..792a47a3 100644 --- a/chainkit/src/models/components/primarynetworkassettype.ts +++ b/chainkit/src/models/components/primarynetworkassettype.ts @@ -23,19 +23,7 @@ export type PrimaryNetworkAssetType = ClosedEnum< 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/chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts b/chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts index 17d24951..4ceef2cb 100644 --- a/chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts +++ b/chainkit/src/models/components/primarynetworkbalancethresholdfilter.ts @@ -32,7 +32,6 @@ export const PrimaryNetworkBalanceThresholdFilter$inboundSchema: z.ZodType< balanceType: CommonBalanceType$inboundSchema, balanceThreshold: z.string(), }); - /** @internal */ export type PrimaryNetworkBalanceThresholdFilter$Outbound = { balanceType: string; @@ -49,21 +48,6 @@ export const PrimaryNetworkBalanceThresholdFilter$outboundSchema: z.ZodType< 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 { @@ -73,7 +57,6 @@ export function primaryNetworkBalanceThresholdFilterToJSON( ), ); } - export function primaryNetworkBalanceThresholdFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkblock.ts b/chainkit/src/models/components/primarynetworkblock.ts index 736dea6e..f37c5f98 100644 --- a/chainkit/src/models/components/primarynetworkblock.ts +++ b/chainkit/src/models/components/primarynetworkblock.ts @@ -47,7 +47,6 @@ export const PrimaryNetworkBlock$inboundSchema: z.ZodType< currentSupply: z.string().optional(), proposerDetails: ProposerDetails$inboundSchema.optional(), }); - /** @internal */ export type PrimaryNetworkBlock$Outbound = { blockNumber: string; @@ -84,19 +83,6 @@ export const PrimaryNetworkBlock$outboundSchema: z.ZodType< 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 { @@ -104,7 +90,6 @@ export function primaryNetworkBlockToJSON( PrimaryNetworkBlock$outboundSchema.parse(primaryNetworkBlock), ); } - export function primaryNetworkBlockFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkchaininfo.ts b/chainkit/src/models/components/primarynetworkchaininfo.ts index e3b40bbc..2d890f14 100644 --- a/chainkit/src/models/components/primarynetworkchaininfo.ts +++ b/chainkit/src/models/components/primarynetworkchaininfo.ts @@ -31,7 +31,6 @@ export const PrimaryNetworkChainInfo$inboundSchema: z.ZodType< chainName: PrimaryNetworkChainName$inboundSchema, network: Network$inboundSchema, }); - /** @internal */ export type PrimaryNetworkChainInfo$Outbound = { chainName: string; @@ -48,19 +47,6 @@ export const PrimaryNetworkChainInfo$outboundSchema: z.ZodType< 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 { @@ -68,7 +54,6 @@ export function primaryNetworkChainInfoToJSON( PrimaryNetworkChainInfo$outboundSchema.parse(primaryNetworkChainInfo), ); } - export function primaryNetworkChainInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworkchainname.ts b/chainkit/src/models/components/primarynetworkchainname.ts index 27710fcf..3161fd42 100644 --- a/chainkit/src/models/components/primarynetworkchainname.ts +++ b/chainkit/src/models/components/primarynetworkchainname.ts @@ -18,19 +18,7 @@ export type PrimaryNetworkChainName = ClosedEnum< 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/chainkit/src/models/components/primarynetworkoperationtype.ts b/chainkit/src/models/components/primarynetworkoperationtype.ts index 68334bd4..9c9e088f 100644 --- a/chainkit/src/models/components/primarynetworkoperationtype.ts +++ b/chainkit/src/models/components/primarynetworkoperationtype.ts @@ -20,19 +20,7 @@ export type PrimaryNetworkOperationType = ClosedEnum< 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/chainkit/src/models/components/primarynetworkoptions.ts b/chainkit/src/models/components/primarynetworkoptions.ts index 5565df21..d41fe6f4 100644 --- a/chainkit/src/models/components/primarynetworkoptions.ts +++ b/chainkit/src/models/components/primarynetworkoptions.ts @@ -34,22 +34,10 @@ export type PrimaryNetworkOptions = { /** @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, @@ -60,7 +48,6 @@ export const PrimaryNetworkOptions$inboundSchema: z.ZodType< cChainEvmAddresses: z.array(z.string()).optional(), includeChains: z.array(IncludeChain$inboundSchema), }); - /** @internal */ export type PrimaryNetworkOptions$Outbound = { addresses?: Array | undefined; @@ -79,19 +66,6 @@ export const PrimaryNetworkOptions$outboundSchema: z.ZodType< 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 { @@ -99,7 +73,6 @@ export function primaryNetworkOptionsToJSON( PrimaryNetworkOptions$outboundSchema.parse(primaryNetworkOptions), ); } - export function primaryNetworkOptionsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/primarynetworktxtype.ts b/chainkit/src/models/components/primarynetworktxtype.ts index 17704f57..637795fd 100644 --- a/chainkit/src/models/components/primarynetworktxtype.ts +++ b/chainkit/src/models/components/primarynetworktxtype.ts @@ -36,19 +36,7 @@ export type PrimaryNetworkTxType = ClosedEnum; 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/chainkit/src/models/components/primarynetworktype.ts b/chainkit/src/models/components/primarynetworktype.ts index 967e04f4..a737d349 100644 --- a/chainkit/src/models/components/primarynetworktype.ts +++ b/chainkit/src/models/components/primarynetworktype.ts @@ -15,19 +15,7 @@ export type PrimaryNetworkType = ClosedEnum; 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/chainkit/src/models/components/proposerdetails.ts b/chainkit/src/models/components/proposerdetails.ts index 40f54090..f48bd5a0 100644 --- a/chainkit/src/models/components/proposerdetails.ts +++ b/chainkit/src/models/components/proposerdetails.ts @@ -27,7 +27,6 @@ export const ProposerDetails$inboundSchema: z.ZodType< proposerPChainHeight: z.number().optional(), proposerTimestamp: z.number().optional(), }); - /** @internal */ export type ProposerDetails$Outbound = { proposerId?: string | undefined; @@ -50,25 +49,11 @@ export const ProposerDetails$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/removedvalidatordetails.ts b/chainkit/src/models/components/removedvalidatordetails.ts index 85d61f28..403fdfdd 100644 --- a/chainkit/src/models/components/removedvalidatordetails.ts +++ b/chainkit/src/models/components/removedvalidatordetails.ts @@ -51,25 +51,11 @@ export type RemovedValidatorDetails = { 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, @@ -88,7 +74,6 @@ export const RemovedValidatorDetails$inboundSchema: z.ZodType< removeTimestamp: z.number(), validationStatus: RemovedValidatorDetailsValidationStatus$inboundSchema, }); - /** @internal */ export type RemovedValidatorDetails$Outbound = { txHash: string; @@ -123,19 +108,6 @@ export const RemovedValidatorDetails$outboundSchema: z.ZodType< 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 { @@ -143,7 +115,6 @@ export function removedValidatorDetailsToJSON( RemovedValidatorDetails$outboundSchema.parse(removedValidatorDetails), ); } - export function removedValidatorDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/requesttype.ts b/chainkit/src/models/components/requesttype.ts index 7e95c079..fb62434e 100644 --- a/chainkit/src/models/components/requesttype.ts +++ b/chainkit/src/models/components/requesttype.ts @@ -20,18 +20,6 @@ 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/chainkit/src/models/components/resourcelink.ts b/chainkit/src/models/components/resourcelink.ts index 9be5dda3..d4b49ec6 100644 --- a/chainkit/src/models/components/resourcelink.ts +++ b/chainkit/src/models/components/resourcelink.ts @@ -26,7 +26,6 @@ export const ResourceLink$inboundSchema: z.ZodType< type: ResourceLinkType$inboundSchema, url: z.string(), }); - /** @internal */ export type ResourceLink$Outbound = { type: string; @@ -43,23 +42,9 @@ export const ResourceLink$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/resourcelinktype.ts b/chainkit/src/models/components/resourcelinktype.ts index f7c95e53..38d9ddd5 100644 --- a/chainkit/src/models/components/resourcelinktype.ts +++ b/chainkit/src/models/components/resourcelinktype.ts @@ -31,19 +31,7 @@ export type ResourceLinkType = ClosedEnum; 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/chainkit/src/models/components/rewards.ts b/chainkit/src/models/components/rewards.ts index eccdfe7f..b65a576f 100644 --- a/chainkit/src/models/components/rewards.ts +++ b/chainkit/src/models/components/rewards.ts @@ -22,7 +22,6 @@ export const Rewards$inboundSchema: z.ZodType = rewardAddresses: z.array(z.string()).optional(), rewardTxHash: z.string().optional(), }); - /** @internal */ export type Rewards$Outbound = { validationRewardAmount: string; @@ -43,23 +42,9 @@ export const Rewards$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/rewardtype.ts b/chainkit/src/models/components/rewardtype.ts index d0e310a2..6fa7f5a8 100644 --- a/chainkit/src/models/components/rewardtype.ts +++ b/chainkit/src/models/components/rewardtype.ts @@ -15,18 +15,6 @@ 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/chainkit/src/models/components/richaddress.ts b/chainkit/src/models/components/richaddress.ts index a5ae9b5f..eee2612b 100644 --- a/chainkit/src/models/components/richaddress.ts +++ b/chainkit/src/models/components/richaddress.ts @@ -42,7 +42,6 @@ export const RichAddress$inboundSchema: z.ZodType< logoUri: z.string().optional(), address: z.string(), }); - /** @internal */ export type RichAddress$Outbound = { name?: string | undefined; @@ -65,23 +64,9 @@ export const RichAddress$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/rollingwindowmetricsapiresponse.ts b/chainkit/src/models/components/rollingwindowmetricsapiresponse.ts index 932f8e2a..09b3753d 100644 --- a/chainkit/src/models/components/rollingwindowmetricsapiresponse.ts +++ b/chainkit/src/models/components/rollingwindowmetricsapiresponse.ts @@ -28,7 +28,6 @@ export const RollingWindowMetricsApiResponse$inboundSchema: z.ZodType< > = z.object({ result: ChainRollingWindowMetricsValue$inboundSchema, }); - /** @internal */ export type RollingWindowMetricsApiResponse$Outbound = { result: ChainRollingWindowMetricsValue$Outbound; @@ -43,19 +42,6 @@ export const RollingWindowMetricsApiResponse$outboundSchema: z.ZodType< 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 { @@ -65,7 +51,6 @@ export function rollingWindowMetricsApiResponseToJSON( ), ); } - export function rollingWindowMetricsApiResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/rpcmetrics.ts b/chainkit/src/models/components/rpcmetrics.ts index 10cef04d..deadbb77 100644 --- a/chainkit/src/models/components/rpcmetrics.ts +++ b/chainkit/src/models/components/rpcmetrics.ts @@ -33,7 +33,6 @@ export const RpcMetrics$inboundSchema: z.ZodType< timestamp: z.number(), values: z.array(RpcUsageMetricsValueAggregated$inboundSchema), }); - /** @internal */ export type RpcMetrics$Outbound = { timestamp: number; @@ -50,23 +49,9 @@ export const RpcMetrics$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts b/chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts index 6b0a190f..f84bb201 100644 --- a/chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts +++ b/chainkit/src/models/components/rpcusagemetricsgroupbyenum.ts @@ -18,19 +18,7 @@ export type RpcUsageMetricsGroupByEnum = ClosedEnum< 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/chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts b/chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts index 01d61c9a..bfee8256 100644 --- a/chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts +++ b/chainkit/src/models/components/rpcusagemetricsvalueaggregated.ts @@ -76,32 +76,17 @@ export type RpcUsageMetricsValueAggregated = { 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; @@ -112,21 +97,6 @@ export const RpcUsageMetricsValueAggregatedGroupValue$outboundSchema: z.ZodType< 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, @@ -137,7 +107,6 @@ export function rpcUsageMetricsValueAggregatedGroupValueToJSON( ), ); } - export function rpcUsageMetricsValueAggregatedGroupValueFromJSON( jsonString: string, ): SafeParseResult< @@ -170,7 +139,6 @@ export const RpcUsageMetricsValueAggregated$inboundSchema: z.ZodType< groupedBy: RpcUsageMetricsValueAggregatedGroupedBy$inboundSchema, groupValue: z.union([z.string(), z.number()]).optional(), }); - /** @internal */ export type RpcUsageMetricsValueAggregated$Outbound = { totalRequests: number; @@ -201,19 +169,6 @@ export const RpcUsageMetricsValueAggregated$outboundSchema: z.ZodType< 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 { @@ -223,7 +178,6 @@ export function rpcUsageMetricsValueAggregatedToJSON( ), ); } - export function rpcUsageMetricsValueAggregatedFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/security.ts b/chainkit/src/models/components/security.ts index b995fe96..93443ecb 100644 --- a/chainkit/src/models/components/security.ts +++ b/chainkit/src/models/components/security.ts @@ -19,7 +19,6 @@ export const Security$inboundSchema: z.ZodType< > = z.object({ apiKey: z.string().optional(), }); - /** @internal */ export type Security$Outbound = { apiKey?: string | undefined; @@ -34,23 +33,9 @@ export const Security$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/sharedsecretsresponse.ts b/chainkit/src/models/components/sharedsecretsresponse.ts index 8205ef87..c558612c 100644 --- a/chainkit/src/models/components/sharedsecretsresponse.ts +++ b/chainkit/src/models/components/sharedsecretsresponse.ts @@ -19,7 +19,6 @@ export const SharedSecretsResponse$inboundSchema: z.ZodType< > = z.object({ secret: z.string(), }); - /** @internal */ export type SharedSecretsResponse$Outbound = { secret: string; @@ -34,19 +33,6 @@ export const SharedSecretsResponse$outboundSchema: z.ZodType< 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 { @@ -54,7 +40,6 @@ export function sharedSecretsResponseToJSON( SharedSecretsResponse$outboundSchema.parse(sharedSecretsResponse), ); } - export function sharedSecretsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/signatureaggregationresponse.ts b/chainkit/src/models/components/signatureaggregationresponse.ts index 2bde2b52..739174ad 100644 --- a/chainkit/src/models/components/signatureaggregationresponse.ts +++ b/chainkit/src/models/components/signatureaggregationresponse.ts @@ -19,7 +19,6 @@ export const SignatureAggregationResponse$inboundSchema: z.ZodType< > = z.object({ signedMessage: z.string(), }); - /** @internal */ export type SignatureAggregationResponse$Outbound = { signedMessage: string; @@ -34,19 +33,6 @@ export const SignatureAggregationResponse$outboundSchema: z.ZodType< 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 { @@ -56,7 +42,6 @@ export function signatureAggregationResponseToJSON( ), ); } - export function signatureAggregationResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/signatureaggregatorrequest.ts b/chainkit/src/models/components/signatureaggregatorrequest.ts index 54e5df41..565e8b1a 100644 --- a/chainkit/src/models/components/signatureaggregatorrequest.ts +++ b/chainkit/src/models/components/signatureaggregatorrequest.ts @@ -47,7 +47,6 @@ export const SignatureAggregatorRequest$inboundSchema: z.ZodType< quorumPercentageBuffer: z.number().optional(), pChainHeight: z.number().optional(), }); - /** @internal */ export type SignatureAggregatorRequest$Outbound = { message?: string | undefined; @@ -72,19 +71,6 @@ export const SignatureAggregatorRequest$outboundSchema: z.ZodType< pChainHeight: 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 { @@ -92,7 +78,6 @@ export function signatureAggregatorRequestToJSON( SignatureAggregatorRequest$outboundSchema.parse(signatureAggregatorRequest), ); } - export function signatureAggregatorRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/sortbyoption.ts b/chainkit/src/models/components/sortbyoption.ts index ae3cb8b5..3193489f 100644 --- a/chainkit/src/models/components/sortbyoption.ts +++ b/chainkit/src/models/components/sortbyoption.ts @@ -17,18 +17,6 @@ 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/chainkit/src/models/components/sortorder.ts b/chainkit/src/models/components/sortorder.ts index e34423cb..dea54967 100644 --- a/chainkit/src/models/components/sortorder.ts +++ b/chainkit/src/models/components/sortorder.ts @@ -14,18 +14,6 @@ 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/chainkit/src/models/components/stakingdistribution.ts b/chainkit/src/models/components/stakingdistribution.ts index 743f08a6..29915107 100644 --- a/chainkit/src/models/components/stakingdistribution.ts +++ b/chainkit/src/models/components/stakingdistribution.ts @@ -32,7 +32,6 @@ export const StakingDistribution$inboundSchema: z.ZodType< amountStaked: z.string(), validatorCount: z.number(), }); - /** @internal */ export type StakingDistribution$Outbound = { version: string; @@ -51,19 +50,6 @@ export const StakingDistribution$outboundSchema: z.ZodType< 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 { @@ -71,7 +57,6 @@ export function stakingDistributionToJSON( StakingDistribution$outboundSchema.parse(stakingDistribution), ); } - export function stakingDistributionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/subnet.ts b/chainkit/src/models/components/subnet.ts index 18e024d8..1b06d404 100644 --- a/chainkit/src/models/components/subnet.ts +++ b/chainkit/src/models/components/subnet.ts @@ -82,7 +82,6 @@ export const Subnet$inboundSchema: z.ZodType = z .optional(), blockchains: z.array(Blockchain$inboundSchema), }); - /** @internal */ export type Subnet$Outbound = { createBlockTimestamp: number; @@ -118,23 +117,9 @@ export const Subnet$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/subnetownershipinfo.ts b/chainkit/src/models/components/subnetownershipinfo.ts index 9fd49933..d2c64e17 100644 --- a/chainkit/src/models/components/subnetownershipinfo.ts +++ b/chainkit/src/models/components/subnetownershipinfo.ts @@ -32,7 +32,6 @@ export const SubnetOwnershipInfo$inboundSchema: z.ZodType< threshold: z.number(), addresses: z.array(z.string()), }); - /** @internal */ export type SubnetOwnershipInfo$Outbound = { locktime: number; @@ -51,19 +50,6 @@ export const SubnetOwnershipInfo$outboundSchema: z.ZodType< 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 { @@ -71,7 +57,6 @@ export function subnetOwnershipInfoToJSON( SubnetOwnershipInfo$outboundSchema.parse(subnetOwnershipInfo), ); } - export function subnetOwnershipInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/subnetrpctimeintervalgranularity.ts b/chainkit/src/models/components/subnetrpctimeintervalgranularity.ts index 5a7b08f6..ffbea776 100644 --- a/chainkit/src/models/components/subnetrpctimeintervalgranularity.ts +++ b/chainkit/src/models/components/subnetrpctimeintervalgranularity.ts @@ -19,19 +19,7 @@ export type SubnetRpcTimeIntervalGranularity = ClosedEnum< 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/chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts b/chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts index e82d4ffd..e7c05d32 100644 --- a/chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts +++ b/chainkit/src/models/components/subnetrpcusagemetricsresponsedto.ts @@ -38,7 +38,6 @@ export const SubnetRpcUsageMetricsResponseDTO$inboundSchema: z.ZodType< metrics: z.array(RpcMetrics$inboundSchema), chainId: z.string(), }); - /** @internal */ export type SubnetRpcUsageMetricsResponseDTO$Outbound = { aggregateDuration: string; @@ -57,19 +56,6 @@ export const SubnetRpcUsageMetricsResponseDTO$outboundSchema: z.ZodType< 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 { @@ -79,7 +65,6 @@ export function subnetRpcUsageMetricsResponseDTOToJSON( ), ); } - export function subnetRpcUsageMetricsResponseDTOFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/teleporterdestinationtransaction.ts b/chainkit/src/models/components/teleporterdestinationtransaction.ts index 224210f8..66fc9d81 100644 --- a/chainkit/src/models/components/teleporterdestinationtransaction.ts +++ b/chainkit/src/models/components/teleporterdestinationtransaction.ts @@ -27,7 +27,6 @@ export const TeleporterDestinationTransaction$inboundSchema: z.ZodType< rewardRedeemer: z.string(), delivererAddress: z.string(), }); - /** @internal */ export type TeleporterDestinationTransaction$Outbound = { txHash: string; @@ -50,19 +49,6 @@ export const TeleporterDestinationTransaction$outboundSchema: z.ZodType< 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 { @@ -72,7 +58,6 @@ export function teleporterDestinationTransactionToJSON( ), ); } - export function teleporterDestinationTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/teleportermessageinfo.ts b/chainkit/src/models/components/teleportermessageinfo.ts index d56b4f66..a267b98d 100644 --- a/chainkit/src/models/components/teleportermessageinfo.ts +++ b/chainkit/src/models/components/teleportermessageinfo.ts @@ -36,7 +36,6 @@ export const TeleporterMessageInfo$inboundSchema: z.ZodType< sourceChainId: z.string().optional(), destinationChainId: z.string().optional(), }); - /** @internal */ export type TeleporterMessageInfo$Outbound = { teleporterMessageId: string; @@ -57,19 +56,6 @@ export const TeleporterMessageInfo$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function teleporterMessageInfoToJSON( TeleporterMessageInfo$outboundSchema.parse(teleporterMessageInfo), ); } - export function teleporterMessageInfoFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/teleporterreceipt.ts b/chainkit/src/models/components/teleporterreceipt.ts index 36545564..12d74478 100644 --- a/chainkit/src/models/components/teleporterreceipt.ts +++ b/chainkit/src/models/components/teleporterreceipt.ts @@ -21,7 +21,6 @@ export const TeleporterReceipt$inboundSchema: z.ZodType< receivedMessageNonce: z.string(), relayerRewardAddress: z.string(), }); - /** @internal */ export type TeleporterReceipt$Outbound = { receivedMessageNonce: string; @@ -38,19 +37,6 @@ export const TeleporterReceipt$outboundSchema: z.ZodType< 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 { @@ -58,7 +44,6 @@ export function teleporterReceiptToJSON( TeleporterReceipt$outboundSchema.parse(teleporterReceipt), ); } - export function teleporterReceiptFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/teleporterrewarddetails.ts b/chainkit/src/models/components/teleporterrewarddetails.ts index f7b4893e..208d97d7 100644 --- a/chainkit/src/models/components/teleporterrewarddetails.ts +++ b/chainkit/src/models/components/teleporterrewarddetails.ts @@ -54,23 +54,11 @@ export type TeleporterRewardDetails = { 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, @@ -86,7 +74,6 @@ export const TeleporterRewardDetails$inboundSchema: z.ZodType< price: Money$inboundSchema.optional(), value: z.string(), }); - /** @internal */ export type TeleporterRewardDetails$Outbound = { address: string; @@ -115,19 +102,6 @@ export const TeleporterRewardDetails$outboundSchema: z.ZodType< 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 { @@ -135,7 +109,6 @@ export function teleporterRewardDetailsToJSON( TeleporterRewardDetails$outboundSchema.parse(teleporterRewardDetails), ); } - export function teleporterRewardDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/teleportersourcetransaction.ts b/chainkit/src/models/components/teleportersourcetransaction.ts index e20a229d..721a3f3c 100644 --- a/chainkit/src/models/components/teleportersourcetransaction.ts +++ b/chainkit/src/models/components/teleportersourcetransaction.ts @@ -23,7 +23,6 @@ export const TeleporterSourceTransaction$inboundSchema: z.ZodType< timestamp: z.number(), gasSpent: z.string(), }); - /** @internal */ export type TeleporterSourceTransaction$Outbound = { txHash: string; @@ -42,19 +41,6 @@ export const TeleporterSourceTransaction$outboundSchema: z.ZodType< 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 { @@ -64,7 +50,6 @@ export function teleporterSourceTransactionToJSON( ), ); } - export function teleporterSourceTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/timeintervalgranularity.ts b/chainkit/src/models/components/timeintervalgranularity.ts index 95d2996b..c8e96f71 100644 --- a/chainkit/src/models/components/timeintervalgranularity.ts +++ b/chainkit/src/models/components/timeintervalgranularity.ts @@ -19,19 +19,7 @@ export type TimeIntervalGranularity = ClosedEnum< 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/chainkit/src/models/components/timeintervalgranularityextended.ts b/chainkit/src/models/components/timeintervalgranularityextended.ts index 9cdfe996..1366e61d 100644 --- a/chainkit/src/models/components/timeintervalgranularityextended.ts +++ b/chainkit/src/models/components/timeintervalgranularityextended.ts @@ -20,19 +20,7 @@ export type TimeIntervalGranularityExtended = ClosedEnum< 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/chainkit/src/models/components/transaction.ts b/chainkit/src/models/components/transaction.ts index 0ca0a150..b3fde32f 100644 --- a/chainkit/src/models/components/transaction.ts +++ b/chainkit/src/models/components/transaction.ts @@ -182,7 +182,6 @@ export const Transaction$inboundSchema: z.ZodType< accessList: z.array(AccessListData$inboundSchema).optional(), networkToken: NetworkTokenInfo$inboundSchema.optional(), }); - /** @internal */ export type Transaction$Outbound = { blockHash: string; @@ -252,23 +251,9 @@ export const Transaction$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/transactiondetails.ts b/chainkit/src/models/components/transactiondetails.ts index b234c259..27f0a587 100644 --- a/chainkit/src/models/components/transactiondetails.ts +++ b/chainkit/src/models/components/transactiondetails.ts @@ -73,7 +73,6 @@ export const TransactionDetails$inboundSchema: z.ZodType< internalTransactions: z.array(InternalTransactionDetails$inboundSchema) .optional(), }); - /** @internal */ export type TransactionDetails$Outbound = { nativeTransaction: NativeTransaction$Outbound; @@ -97,19 +96,6 @@ export const TransactionDetails$outboundSchema: z.ZodType< .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 { @@ -117,7 +103,6 @@ export function transactionDetailsToJSON( TransactionDetails$outboundSchema.parse(transactionDetails), ); } - export function transactionDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/transactiondirectiontype.ts b/chainkit/src/models/components/transactiondirectiontype.ts index 65f8f5e5..69301690 100644 --- a/chainkit/src/models/components/transactiondirectiontype.ts +++ b/chainkit/src/models/components/transactiondirectiontype.ts @@ -17,19 +17,7 @@ export type TransactionDirectionType = ClosedEnum< 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/chainkit/src/models/components/transactionevent.ts b/chainkit/src/models/components/transactionevent.ts index cc999082..c27e5d8f 100644 --- a/chainkit/src/models/components/transactionevent.ts +++ b/chainkit/src/models/components/transactionevent.ts @@ -39,7 +39,6 @@ export const TransactionEvent$inboundSchema: z.ZodType< transaction: Transaction$inboundSchema, logs: z.array(Log$inboundSchema).optional(), }); - /** @internal */ export type TransactionEvent$Outbound = { transaction: Transaction$Outbound; @@ -56,19 +55,6 @@ export const TransactionEvent$outboundSchema: z.ZodType< 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 { @@ -76,7 +62,6 @@ export function transactionEventToJSON( TransactionEvent$outboundSchema.parse(transactionEvent), ); } - export function transactionEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/transactionexportmetadata.ts b/chainkit/src/models/components/transactionexportmetadata.ts index 24f5d1ad..1460f69f 100644 --- a/chainkit/src/models/components/transactionexportmetadata.ts +++ b/chainkit/src/models/components/transactionexportmetadata.ts @@ -34,7 +34,6 @@ export const TransactionExportMetadata$inboundSchema: z.ZodType< downloadUrl: z.string().optional(), nextDate: z.string().optional(), }); - /** @internal */ export type TransactionExportMetadata$Outbound = { code?: string | undefined; @@ -53,19 +52,6 @@ export const TransactionExportMetadata$outboundSchema: z.ZodType< 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 { @@ -73,7 +59,6 @@ export function transactionExportMetadataToJSON( TransactionExportMetadata$outboundSchema.parse(transactionExportMetadata), ); } - export function transactionExportMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/transactionmethodtype.ts b/chainkit/src/models/components/transactionmethodtype.ts index 594471ca..1890e842 100644 --- a/chainkit/src/models/components/transactionmethodtype.ts +++ b/chainkit/src/models/components/transactionmethodtype.ts @@ -22,19 +22,7 @@ export type TransactionMethodType = ClosedEnum; 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/chainkit/src/models/components/transactionstatus.ts b/chainkit/src/models/components/transactionstatus.ts index 688b37dd..a76a2795 100644 --- a/chainkit/src/models/components/transactionstatus.ts +++ b/chainkit/src/models/components/transactionstatus.ts @@ -15,19 +15,7 @@ export type TransactionStatus = ClosedEnum; 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/chainkit/src/models/components/transactionvertexdetail.ts b/chainkit/src/models/components/transactionvertexdetail.ts index e82d2a61..371b7c6b 100644 --- a/chainkit/src/models/components/transactionvertexdetail.ts +++ b/chainkit/src/models/components/transactionvertexdetail.ts @@ -32,7 +32,6 @@ export const TransactionVertexDetail$inboundSchema: z.ZodType< height: z.number(), timestamp: z.number(), }); - /** @internal */ export type TransactionVertexDetail$Outbound = { hash: string; @@ -51,19 +50,6 @@ export const TransactionVertexDetail$outboundSchema: z.ZodType< 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 { @@ -71,7 +57,6 @@ export function transactionVertexDetailToJSON( TransactionVertexDetail$outboundSchema.parse(transactionVertexDetail), ); } - export function transactionVertexDetailFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/unknowncontract.ts b/chainkit/src/models/components/unknowncontract.ts index e455570c..080b9a0b 100644 --- a/chainkit/src/models/components/unknowncontract.ts +++ b/chainkit/src/models/components/unknowncontract.ts @@ -56,23 +56,11 @@ export type UnknownContract = { 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, @@ -92,7 +80,6 @@ export const UnknownContract$inboundSchema: z.ZodType< deploymentDetails: ContractDeploymentDetails$inboundSchema.optional(), ercType: UnknownContractErcType$inboundSchema, }); - /** @internal */ export type UnknownContract$Outbound = { name?: string | undefined; @@ -129,25 +116,11 @@ export const UnknownContract$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/updatewebhookrequest.ts b/chainkit/src/models/components/updatewebhookrequest.ts index 11793233..19fc7258 100644 --- a/chainkit/src/models/components/updatewebhookrequest.ts +++ b/chainkit/src/models/components/updatewebhookrequest.ts @@ -37,7 +37,6 @@ export const UpdateWebhookRequest$inboundSchema: z.ZodType< includeInternalTxs: z.boolean().optional(), includeLogs: z.boolean().optional(), }); - /** @internal */ export type UpdateWebhookRequest$Outbound = { name?: string | undefined; @@ -62,19 +61,6 @@ export const UpdateWebhookRequest$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function updateWebhookRequestToJSON( UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), ); } - export function updateWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/usagemetricsgroupbyenum.ts b/chainkit/src/models/components/usagemetricsgroupbyenum.ts index e86848e4..6bb7a1b5 100644 --- a/chainkit/src/models/components/usagemetricsgroupbyenum.ts +++ b/chainkit/src/models/components/usagemetricsgroupbyenum.ts @@ -20,19 +20,7 @@ export type UsageMetricsGroupByEnum = ClosedEnum< 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/chainkit/src/models/components/usagemetricsresponsedto.ts b/chainkit/src/models/components/usagemetricsresponsedto.ts index 4ce22770..f80438c8 100644 --- a/chainkit/src/models/components/usagemetricsresponsedto.ts +++ b/chainkit/src/models/components/usagemetricsresponsedto.ts @@ -38,7 +38,6 @@ export const UsageMetricsResponseDTO$inboundSchema: z.ZodType< orgId: z.string(), metrics: z.array(Metric$inboundSchema), }); - /** @internal */ export type UsageMetricsResponseDTO$Outbound = { aggregateDuration: string; @@ -57,19 +56,6 @@ export const UsageMetricsResponseDTO$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function usageMetricsResponseDTOToJSON( UsageMetricsResponseDTO$outboundSchema.parse(usageMetricsResponseDTO), ); } - export function usageMetricsResponseDTOFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/usagemetricsvaluedto.ts b/chainkit/src/models/components/usagemetricsvaluedto.ts index f9396818..82cb9e7a 100644 --- a/chainkit/src/models/components/usagemetricsvaluedto.ts +++ b/chainkit/src/models/components/usagemetricsvaluedto.ts @@ -74,30 +74,17 @@ export type UsageMetricsValueDTO = { 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; @@ -108,19 +95,6 @@ export const UsageMetricsValueDTOGroupValue$outboundSchema: z.ZodType< 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 { @@ -130,7 +104,6 @@ export function usageMetricsValueDTOGroupValueToJSON( ), ); } - export function usageMetricsValueDTOGroupValueFromJSON( jsonString: string, ): SafeParseResult { @@ -157,7 +130,6 @@ export const UsageMetricsValueDTO$inboundSchema: z.ZodType< apiCreditsUsed: z.number(), apiCreditsWasted: z.number(), }); - /** @internal */ export type UsageMetricsValueDTO$Outbound = { groupedBy: string; @@ -188,19 +160,6 @@ export const UsageMetricsValueDTO$outboundSchema: z.ZodType< 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 { @@ -208,7 +167,6 @@ export function usageMetricsValueDTOToJSON( UsageMetricsValueDTO$outboundSchema.parse(usageMetricsValueDTO), ); } - export function usageMetricsValueDTOFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/utilityaddresses.ts b/chainkit/src/models/components/utilityaddresses.ts index 3df6f819..faf8a04a 100644 --- a/chainkit/src/models/components/utilityaddresses.ts +++ b/chainkit/src/models/components/utilityaddresses.ts @@ -19,7 +19,6 @@ export const UtilityAddresses$inboundSchema: z.ZodType< > = z.object({ multicall: z.string().optional(), }); - /** @internal */ export type UtilityAddresses$Outbound = { multicall?: string | undefined; @@ -34,19 +33,6 @@ export const UtilityAddresses$outboundSchema: z.ZodType< 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 { @@ -54,7 +40,6 @@ export function utilityAddressesToJSON( UtilityAddresses$outboundSchema.parse(utilityAddresses), ); } - export function utilityAddressesFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/utxo.ts b/chainkit/src/models/components/utxo.ts index 47753d8f..9d569e2c 100644 --- a/chainkit/src/models/components/utxo.ts +++ b/chainkit/src/models/components/utxo.ts @@ -108,7 +108,6 @@ export const Utxo$inboundSchema: z.ZodType = z timestamp: z.number(), utxoType: z.string(), }); - /** @internal */ export type Utxo$Outbound = { addresses: Array; @@ -152,23 +151,9 @@ export const Utxo$outboundSchema: z.ZodType = 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 { diff --git a/chainkit/src/models/components/utxocredential.ts b/chainkit/src/models/components/utxocredential.ts index 1503c2d1..d9d07a81 100644 --- a/chainkit/src/models/components/utxocredential.ts +++ b/chainkit/src/models/components/utxocredential.ts @@ -27,7 +27,6 @@ export const UtxoCredential$inboundSchema: z.ZodType< signature: z.string().optional(), publicKey: z.string().optional(), }); - /** @internal */ export type UtxoCredential$Outbound = { signature?: string | undefined; @@ -44,23 +43,9 @@ export const UtxoCredential$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/utxossortbyoption.ts b/chainkit/src/models/components/utxossortbyoption.ts index 7ac14a8e..ecb618ec 100644 --- a/chainkit/src/models/components/utxossortbyoption.ts +++ b/chainkit/src/models/components/utxossortbyoption.ts @@ -15,19 +15,7 @@ export type UtxosSortByOption = ClosedEnum; export const UtxosSortByOption$inboundSchema: z.ZodNativeEnum< typeof UtxosSortByOption > = z.nativeEnum(UtxosSortByOption); - /** @internal */ export const UtxosSortByOption$outboundSchema: z.ZodNativeEnum< typeof UtxosSortByOption > = UtxosSortByOption$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UtxosSortByOption$ { - /** @deprecated use `UtxosSortByOption$inboundSchema` instead. */ - export const inboundSchema = UtxosSortByOption$inboundSchema; - /** @deprecated use `UtxosSortByOption$outboundSchema` instead. */ - export const outboundSchema = UtxosSortByOption$outboundSchema; -} diff --git a/chainkit/src/models/components/utxotype.ts b/chainkit/src/models/components/utxotype.ts index 2b8760ca..8739a768 100644 --- a/chainkit/src/models/components/utxotype.ts +++ b/chainkit/src/models/components/utxotype.ts @@ -20,18 +20,6 @@ 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/chainkit/src/models/components/validationstatustype.ts b/chainkit/src/models/components/validationstatustype.ts index 3766bde4..8bb504b8 100644 --- a/chainkit/src/models/components/validationstatustype.ts +++ b/chainkit/src/models/components/validationstatustype.ts @@ -17,19 +17,7 @@ export type ValidationStatusType = ClosedEnum; 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/chainkit/src/models/components/validatoractivityeventtype.ts b/chainkit/src/models/components/validatoractivityeventtype.ts index 0a51a6d3..18f31d18 100644 --- a/chainkit/src/models/components/validatoractivityeventtype.ts +++ b/chainkit/src/models/components/validatoractivityeventtype.ts @@ -16,19 +16,7 @@ export type ValidatorActivityEventType = ClosedEnum< 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/chainkit/src/models/components/validatoractivitykeytype.ts b/chainkit/src/models/components/validatoractivitykeytype.ts index 1c6de6d8..0c75d4af 100644 --- a/chainkit/src/models/components/validatoractivitykeytype.ts +++ b/chainkit/src/models/components/validatoractivitykeytype.ts @@ -23,19 +23,7 @@ export type ValidatorActivityKeyType = ClosedEnum< 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/chainkit/src/models/components/validatoractivitymetadata.ts b/chainkit/src/models/components/validatoractivitymetadata.ts index bbf4a313..f0502779 100644 --- a/chainkit/src/models/components/validatoractivitymetadata.ts +++ b/chainkit/src/models/components/validatoractivitymetadata.ts @@ -63,7 +63,6 @@ export const ValidatorActivityMetadata$inboundSchema: z.ZodType< subnetIds: z.array(z.string()).optional(), l1ValidatorFeeBalanceThreshold: z.string().optional(), }); - /** @internal */ export type ValidatorActivityMetadata$Outbound = { eventSignatures?: Array | undefined; @@ -90,19 +89,6 @@ export const ValidatorActivityMetadata$outboundSchema: z.ZodType< 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 { @@ -110,7 +96,6 @@ export function validatorActivityMetadataToJSON( ValidatorActivityMetadata$outboundSchema.parse(validatorActivityMetadata), ); } - export function validatorActivityMetadataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/validatoractivityrequest.ts b/chainkit/src/models/components/validatoractivityrequest.ts index 35fa3bde..2c91d12b 100644 --- a/chainkit/src/models/components/validatoractivityrequest.ts +++ b/chainkit/src/models/components/validatoractivityrequest.ts @@ -47,31 +47,17 @@ export type ValidatorActivityRequest = { 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; @@ -83,19 +69,6 @@ export const ValidatorActivityRequestMetadata$outboundSchema: z.ZodType< 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 { @@ -105,7 +78,6 @@ export function validatorActivityRequestMetadataToJSON( ), ); } - export function validatorActivityRequestMetadataFromJSON( jsonString: string, ): SafeParseResult { @@ -129,7 +101,6 @@ export const ValidatorActivityRequest$inboundSchema: z.ZodType< network: PrimaryNetworkType$inboundSchema, metadata: ValidatorActivityMetadata$inboundSchema, }); - /** @internal */ export type ValidatorActivityRequest$Outbound = { eventType: string; @@ -154,19 +125,6 @@ export const ValidatorActivityRequest$outboundSchema: z.ZodType< 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 { @@ -174,7 +132,6 @@ export function validatorActivityRequestToJSON( ValidatorActivityRequest$outboundSchema.parse(validatorActivityRequest), ); } - export function validatorActivityRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/validatoractivityresponse.ts b/chainkit/src/models/components/validatoractivityresponse.ts index 4e767889..86f324d9 100644 --- a/chainkit/src/models/components/validatoractivityresponse.ts +++ b/chainkit/src/models/components/validatoractivityresponse.ts @@ -51,7 +51,6 @@ export const ValidatorActivityResponse$inboundSchema: z.ZodType< eventType: ValidatorActivityEventType$inboundSchema, metadata: ValidatorActivityMetadata$inboundSchema, }); - /** @internal */ export type ValidatorActivityResponse$Outbound = { id: string; @@ -82,19 +81,6 @@ export const ValidatorActivityResponse$outboundSchema: z.ZodType< 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 { @@ -102,7 +88,6 @@ export function validatorActivityResponseToJSON( ValidatorActivityResponse$outboundSchema.parse(validatorActivityResponse), ); } - export function validatorActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/validatoractivitysubevents.ts b/chainkit/src/models/components/validatoractivitysubevents.ts index 3c719a21..765fc14f 100644 --- a/chainkit/src/models/components/validatoractivitysubevents.ts +++ b/chainkit/src/models/components/validatoractivitysubevents.ts @@ -32,23 +32,11 @@ export type ValidatorActivitySubEvents = { 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, @@ -57,7 +45,6 @@ export const ValidatorActivitySubEvents$inboundSchema: z.ZodType< > = z.object({ validatorActivitySubEvents: z.array(ValidatorActivitySubEvent$inboundSchema), }); - /** @internal */ export type ValidatorActivitySubEvents$Outbound = { validatorActivitySubEvents: Array; @@ -72,19 +59,6 @@ export const ValidatorActivitySubEvents$outboundSchema: z.ZodType< 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 { @@ -92,7 +66,6 @@ export function validatorActivitySubEventsToJSON( ValidatorActivitySubEvents$outboundSchema.parse(validatorActivitySubEvents), ); } - export function validatorActivitySubEventsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/validatorhealthdetails.ts b/chainkit/src/models/components/validatorhealthdetails.ts index 3b601009..b1080b89 100644 --- a/chainkit/src/models/components/validatorhealthdetails.ts +++ b/chainkit/src/models/components/validatorhealthdetails.ts @@ -37,7 +37,6 @@ export const ValidatorHealthDetails$inboundSchema: z.ZodType< benchedXChainRequestsPercent: z.number(), benchedCChainRequestsPercent: z.number(), }); - /** @internal */ export type ValidatorHealthDetails$Outbound = { reachabilityPercent: number; @@ -58,19 +57,6 @@ export const ValidatorHealthDetails$outboundSchema: z.ZodType< 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 { @@ -78,7 +64,6 @@ export function validatorHealthDetailsToJSON( ValidatorHealthDetails$outboundSchema.parse(validatorHealthDetails), ); } - export function validatorHealthDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/validatorsdetails.ts b/chainkit/src/models/components/validatorsdetails.ts index 512263a6..ba27ce52 100644 --- a/chainkit/src/models/components/validatorsdetails.ts +++ b/chainkit/src/models/components/validatorsdetails.ts @@ -39,7 +39,6 @@ export const ValidatorsDetails$inboundSchema: z.ZodType< stakingDistributionByVersion: z.array(StakingDistribution$inboundSchema), stakingRatio: z.string(), }); - /** @internal */ export type ValidatorsDetails$Outbound = { validatorCount: number; @@ -62,19 +61,6 @@ export const ValidatorsDetails$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function validatorsDetailsToJSON( ValidatorsDetails$outboundSchema.parse(validatorsDetails), ); } - export function validatorsDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/vmname.ts b/chainkit/src/models/components/vmname.ts index 6e555714..bfb4925e 100644 --- a/chainkit/src/models/components/vmname.ts +++ b/chainkit/src/models/components/vmname.ts @@ -15,18 +15,6 @@ 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/chainkit/src/models/components/webhookaddressactivityresponse.ts b/chainkit/src/models/components/webhookaddressactivityresponse.ts index e8646153..fc04d1b9 100644 --- a/chainkit/src/models/components/webhookaddressactivityresponse.ts +++ b/chainkit/src/models/components/webhookaddressactivityresponse.ts @@ -50,25 +50,11 @@ export type WebhookAddressActivityResponse = { 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, @@ -80,7 +66,6 @@ export const WebhookAddressActivityResponse$inboundSchema: z.ZodType< messageId: z.string(), event: TransactionEvent$inboundSchema, }); - /** @internal */ export type WebhookAddressActivityResponse$Outbound = { webhookId: string; @@ -101,19 +86,6 @@ export const WebhookAddressActivityResponse$outboundSchema: z.ZodType< 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 { @@ -123,7 +95,6 @@ export function webhookAddressActivityResponseToJSON( ), ); } - export function webhookAddressActivityResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/webhookinternaltransaction.ts b/chainkit/src/models/components/webhookinternaltransaction.ts index 671bd0dc..9c3a5bb0 100644 --- a/chainkit/src/models/components/webhookinternaltransaction.ts +++ b/chainkit/src/models/components/webhookinternaltransaction.ts @@ -52,7 +52,6 @@ export const WebhookInternalTransaction$inboundSchema: z.ZodType< gasLimit: z.string(), transactionHash: z.string(), }); - /** @internal */ export type WebhookInternalTransaction$Outbound = { from: string; @@ -79,19 +78,6 @@ export const WebhookInternalTransaction$outboundSchema: z.ZodType< 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 { @@ -99,7 +85,6 @@ export function webhookInternalTransactionToJSON( WebhookInternalTransaction$outboundSchema.parse(webhookInternalTransaction), ); } - export function webhookInternalTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/webhookstatus.ts b/chainkit/src/models/components/webhookstatus.ts index 94aaa667..e3fe2fe2 100644 --- a/chainkit/src/models/components/webhookstatus.ts +++ b/chainkit/src/models/components/webhookstatus.ts @@ -15,19 +15,7 @@ export type WebhookStatus = ClosedEnum; 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/chainkit/src/models/components/webhookstatustype.ts b/chainkit/src/models/components/webhookstatustype.ts index 7c2f9841..5ef3f7a7 100644 --- a/chainkit/src/models/components/webhookstatustype.ts +++ b/chainkit/src/models/components/webhookstatustype.ts @@ -15,19 +15,7 @@ export type WebhookStatusType = ClosedEnum; 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/chainkit/src/models/components/xchainassetdetails.ts b/chainkit/src/models/components/xchainassetdetails.ts index f5d61aa4..c9773b31 100644 --- a/chainkit/src/models/components/xchainassetdetails.ts +++ b/chainkit/src/models/components/xchainassetdetails.ts @@ -62,7 +62,6 @@ export const XChainAssetDetails$inboundSchema: z.ZodType< createdAtTimestamp: z.number(), cap: PrimaryNetworkAssetCap$inboundSchema, }); - /** @internal */ export type XChainAssetDetails$Outbound = { assetId: string; @@ -89,19 +88,6 @@ export const XChainAssetDetails$outboundSchema: z.ZodType< 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 { @@ -109,7 +95,6 @@ export function xChainAssetDetailsToJSON( XChainAssetDetails$outboundSchema.parse(xChainAssetDetails), ); } - export function xChainAssetDetailsFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/xchainbalances.ts b/chainkit/src/models/components/xchainbalances.ts index 28114084..b44803b8 100644 --- a/chainkit/src/models/components/xchainbalances.ts +++ b/chainkit/src/models/components/xchainbalances.ts @@ -43,7 +43,6 @@ export const XChainBalances$inboundSchema: z.ZodType< atomicMemoryUnlocked: z.array(XChainSharedAssetBalance$inboundSchema), atomicMemoryLocked: z.array(XChainSharedAssetBalance$inboundSchema), }); - /** @internal */ export type XChainBalances$Outbound = { locked: Array; @@ -64,23 +63,9 @@ export const XChainBalances$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/components/xchainid.ts b/chainkit/src/models/components/xchainid.ts index 0501d729..50b8f750 100644 --- a/chainkit/src/models/components/xchainid.ts +++ b/chainkit/src/models/components/xchainid.ts @@ -17,18 +17,6 @@ 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/chainkit/src/models/components/xchainlineartransaction.ts b/chainkit/src/models/components/xchainlineartransaction.ts index 78e59783..b4125345 100644 --- a/chainkit/src/models/components/xchainlineartransaction.ts +++ b/chainkit/src/models/components/xchainlineartransaction.ts @@ -102,24 +102,11 @@ export type XChainLinearTransaction = { 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, @@ -141,7 +128,6 @@ export const XChainLinearTransaction$inboundSchema: z.ZodType< blockHeight: z.number(), blockHash: z.string(), }); - /** @internal */ export type XChainLinearTransaction$Outbound = { txHash: string; @@ -182,19 +168,6 @@ export const XChainLinearTransaction$outboundSchema: z.ZodType< 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 { @@ -202,7 +175,6 @@ export function xChainLinearTransactionToJSON( XChainLinearTransaction$outboundSchema.parse(xChainLinearTransaction), ); } - export function xChainLinearTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/xchainnonlineartransaction.ts b/chainkit/src/models/components/xchainnonlineartransaction.ts index 1251d49b..6b181676 100644 --- a/chainkit/src/models/components/xchainnonlineartransaction.ts +++ b/chainkit/src/models/components/xchainnonlineartransaction.ts @@ -105,25 +105,11 @@ 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, @@ -144,7 +130,6 @@ export const XChainNonLinearTransaction$inboundSchema: z.ZodType< assetCreated: XChainAssetDetails$inboundSchema.optional(), vertices: z.array(TransactionVertexDetail$inboundSchema), }); - /** @internal */ export type XChainNonLinearTransaction$Outbound = { txHash: string; @@ -183,19 +168,6 @@ export const XChainNonLinearTransaction$outboundSchema: z.ZodType< 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 { @@ -203,7 +175,6 @@ export function xChainNonLinearTransactionToJSON( XChainNonLinearTransaction$outboundSchema.parse(xChainNonLinearTransaction), ); } - export function xChainNonLinearTransactionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/xchainsharedassetbalance.ts b/chainkit/src/models/components/xchainsharedassetbalance.ts index b1a8de25..11948de3 100644 --- a/chainkit/src/models/components/xchainsharedassetbalance.ts +++ b/chainkit/src/models/components/xchainsharedassetbalance.ts @@ -56,7 +56,6 @@ export const XChainSharedAssetBalance$inboundSchema: z.ZodType< utxoCount: z.number(), sharedWithChainId: z.string(), }); - /** @internal */ export type XChainSharedAssetBalance$Outbound = { assetId: string; @@ -85,19 +84,6 @@ export const XChainSharedAssetBalance$outboundSchema: z.ZodType< 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 { @@ -105,7 +91,6 @@ export function xChainSharedAssetBalanceToJSON( XChainSharedAssetBalance$outboundSchema.parse(xChainSharedAssetBalance), ); } - export function xChainSharedAssetBalanceFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/components/xchaintransactiontype.ts b/chainkit/src/models/components/xchaintransactiontype.ts index 4b7d92cc..947a094e 100644 --- a/chainkit/src/models/components/xchaintransactiontype.ts +++ b/chainkit/src/models/components/xchaintransactiontype.ts @@ -25,19 +25,7 @@ export type XChainTransactionType = ClosedEnum; 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/chainkit/src/models/components/xchainvertex.ts b/chainkit/src/models/components/xchainvertex.ts index 2251dfda..d7a3b264 100644 --- a/chainkit/src/models/components/xchainvertex.ts +++ b/chainkit/src/models/components/xchainvertex.ts @@ -33,7 +33,6 @@ export const XChainVertex$inboundSchema: z.ZodType< transactions: z.array(z.string()), vertexSizeBytes: z.number(), }); - /** @internal */ export type XChainVertex$Outbound = { vertexHash: string; @@ -62,23 +61,9 @@ export const XChainVertex$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/errors/badgatewayerror.ts b/chainkit/src/models/errors/badgatewayerror.ts index 80e2dadd..e45166b0 100644 --- a/chainkit/src/models/errors/badgatewayerror.ts +++ b/chainkit/src/models/errors/badgatewayerror.ts @@ -58,7 +58,6 @@ export const BadGatewayMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type BadGatewayMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const BadGatewayMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function badGatewayMessageToJSON( BadGatewayMessage$outboundSchema.parse(badGatewayMessage), ); } - export function badGatewayMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const BadGatewayError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/badrequesterror.ts b/chainkit/src/models/errors/badrequesterror.ts index 85f4ebed..8cbbcd8a 100644 --- a/chainkit/src/models/errors/badrequesterror.ts +++ b/chainkit/src/models/errors/badrequesterror.ts @@ -58,7 +58,6 @@ export const BadRequestMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type BadRequestMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const BadRequestMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function badRequestMessageToJSON( BadRequestMessage$outboundSchema.parse(badRequestMessage), ); } - export function badRequestMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const BadRequestError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/forbiddenerror.ts b/chainkit/src/models/errors/forbiddenerror.ts index 44844e33..01be14a1 100644 --- a/chainkit/src/models/errors/forbiddenerror.ts +++ b/chainkit/src/models/errors/forbiddenerror.ts @@ -58,7 +58,6 @@ export const ForbiddenMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type ForbiddenMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const ForbiddenMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function forbiddenMessageToJSON( ForbiddenMessage$outboundSchema.parse(forbiddenMessage), ); } - export function forbiddenMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const ForbiddenError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/internalservererror.ts b/chainkit/src/models/errors/internalservererror.ts index 4820d89c..d2296e3a 100644 --- a/chainkit/src/models/errors/internalservererror.ts +++ b/chainkit/src/models/errors/internalservererror.ts @@ -58,7 +58,6 @@ export const InternalServerErrorMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type InternalServerErrorMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const InternalServerErrorMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function internalServerErrorMessageToJSON( InternalServerErrorMessage$outboundSchema.parse(internalServerErrorMessage), ); } - export function internalServerErrorMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const InternalServerError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/notfounderror.ts b/chainkit/src/models/errors/notfounderror.ts index d2d94c34..b72c419d 100644 --- a/chainkit/src/models/errors/notfounderror.ts +++ b/chainkit/src/models/errors/notfounderror.ts @@ -58,7 +58,6 @@ export const NotFoundMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type NotFoundMessage$Outbound = string | Array; @@ -69,25 +68,11 @@ export const NotFoundMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -138,16 +123,3 @@ export const NotFoundError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/serviceunavailableerror.ts b/chainkit/src/models/errors/serviceunavailableerror.ts index bdc938ef..4ed9fe72 100644 --- a/chainkit/src/models/errors/serviceunavailableerror.ts +++ b/chainkit/src/models/errors/serviceunavailableerror.ts @@ -58,7 +58,6 @@ export const ServiceUnavailableMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type ServiceUnavailableMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const ServiceUnavailableMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function serviceUnavailableMessageToJSON( ServiceUnavailableMessage$outboundSchema.parse(serviceUnavailableMessage), ); } - export function serviceUnavailableMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const ServiceUnavailableError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/toomanyrequestserror.ts b/chainkit/src/models/errors/toomanyrequestserror.ts index 346d6dfc..958efd73 100644 --- a/chainkit/src/models/errors/toomanyrequestserror.ts +++ b/chainkit/src/models/errors/toomanyrequestserror.ts @@ -58,7 +58,6 @@ export const TooManyRequestsMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type TooManyRequestsMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const TooManyRequestsMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function tooManyRequestsMessageToJSON( TooManyRequestsMessage$outboundSchema.parse(tooManyRequestsMessage), ); } - export function tooManyRequestsMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const TooManyRequestsError$outboundSchema: z.ZodType< 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/chainkit/src/models/errors/unauthorizederror.ts b/chainkit/src/models/errors/unauthorizederror.ts index 8b1adecb..0fc4d03e 100644 --- a/chainkit/src/models/errors/unauthorizederror.ts +++ b/chainkit/src/models/errors/unauthorizederror.ts @@ -58,7 +58,6 @@ export const UnauthorizedMessage$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.array(z.string())]); - /** @internal */ export type UnauthorizedMessage$Outbound = string | Array; @@ -69,19 +68,6 @@ export const UnauthorizedMessage$outboundSchema: z.ZodType< unknown > = 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 { @@ -89,7 +75,6 @@ export function unauthorizedMessageToJSON( UnauthorizedMessage$outboundSchema.parse(unauthorizedMessage), ); } - export function unauthorizedMessageFromJSON( jsonString: string, ): SafeParseResult { @@ -140,16 +125,3 @@ export const UnauthorizedError$outboundSchema: z.ZodType< 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/chainkit/src/models/operations/addaddressestowebhook.ts b/chainkit/src/models/operations/addaddressestowebhook.ts index e9205c44..c2a0054c 100644 --- a/chainkit/src/models/operations/addaddressestowebhook.ts +++ b/chainkit/src/models/operations/addaddressestowebhook.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const AddAddressesToWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type AddAddressesToWebhookRequest = { @@ -34,7 +34,6 @@ export const AddAddressesToWebhookRequest$inboundSchema: z.ZodType< "AddressesChangeRequest": "addressesChangeRequest", }); }); - /** @internal */ export type AddAddressesToWebhookRequest$Outbound = { id: string; @@ -55,19 +54,6 @@ export const AddAddressesToWebhookRequest$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -77,7 +63,6 @@ export function addAddressesToWebhookRequestToJSON( ), ); } - export function addAddressesToWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/aggregatesignatures.ts b/chainkit/src/models/operations/aggregatesignatures.ts index 54319940..8cc26e20 100644 --- a/chainkit/src/models/operations/aggregatesignatures.ts +++ b/chainkit/src/models/operations/aggregatesignatures.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const AggregateSignaturesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type AggregateSignaturesGlobals = { @@ -36,7 +36,6 @@ export const AggregateSignaturesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type AggregateSignaturesGlobals$Outbound = { network?: string | undefined; @@ -51,19 +50,6 @@ export const AggregateSignaturesGlobals$outboundSchema: z.ZodType< 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 { @@ -71,7 +57,6 @@ export function aggregateSignaturesGlobalsToJSON( AggregateSignaturesGlobals$outboundSchema.parse(aggregateSignaturesGlobals), ); } - export function aggregateSignaturesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -96,7 +81,6 @@ export const AggregateSignaturesRequest$inboundSchema: z.ZodType< "SignatureAggregatorRequest": "signatureAggregatorRequest", }); }); - /** @internal */ export type AggregateSignaturesRequest$Outbound = { network?: string | undefined; @@ -118,19 +102,6 @@ export const AggregateSignaturesRequest$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -138,7 +109,6 @@ export function aggregateSignaturesRequestToJSON( AggregateSignaturesRequest$outboundSchema.parse(aggregateSignaturesRequest), ); } - export function aggregateSignaturesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/createwebhook.ts b/chainkit/src/models/operations/createwebhook.ts index 750e6f98..6e283f7f 100644 --- a/chainkit/src/models/operations/createwebhook.ts +++ b/chainkit/src/models/operations/createwebhook.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const CreateWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type CreateWebhookRequest = @@ -35,7 +35,6 @@ export const CreateWebhookRequest$inboundSchema: z.ZodType< components.EVMAddressActivityRequest$inboundSchema, components.ValidatorActivityRequest$inboundSchema, ]); - /** @internal */ export type CreateWebhookRequest$Outbound = | components.PrimaryNetworkAddressActivityRequest$Outbound @@ -53,19 +52,6 @@ export const CreateWebhookRequest$outboundSchema: z.ZodType< 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 { @@ -73,7 +59,6 @@ export function createWebhookRequestToJSON( CreateWebhookRequest$outboundSchema.parse(createWebhookRequest), ); } - export function createWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -94,7 +79,6 @@ export const CreateWebhookResponse$inboundSchema: z.ZodType< components.PrimaryNetworkAddressActivityResponse$inboundSchema, components.ValidatorActivityResponse$inboundSchema, ]); - /** @internal */ export type CreateWebhookResponse$Outbound = | components.EVMAddressActivityResponse$Outbound @@ -112,19 +96,6 @@ export const CreateWebhookResponse$outboundSchema: z.ZodType< 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 { @@ -132,7 +103,6 @@ export function createWebhookResponseToJSON( CreateWebhookResponse$outboundSchema.parse(createWebhookResponse), ); } - export function createWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/datahealthcheck.ts b/chainkit/src/models/operations/datahealthcheck.ts index 51fb4ef6..283a4240 100644 --- a/chainkit/src/models/operations/datahealthcheck.ts +++ b/chainkit/src/models/operations/datahealthcheck.ts @@ -3,5 +3,5 @@ */ export const DataHealthCheckServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; diff --git a/chainkit/src/models/operations/deactivatewebhook.ts b/chainkit/src/models/operations/deactivatewebhook.ts index 3aeaaebb..c9ecc7b3 100644 --- a/chainkit/src/models/operations/deactivatewebhook.ts +++ b/chainkit/src/models/operations/deactivatewebhook.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const DeactivateWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type DeactivateWebhookRequest = { @@ -35,7 +35,6 @@ export const DeactivateWebhookRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeactivateWebhookRequest$Outbound = { id: string; @@ -50,19 +49,6 @@ export const DeactivateWebhookRequest$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function deactivateWebhookRequestToJSON( DeactivateWebhookRequest$outboundSchema.parse(deactivateWebhookRequest), ); } - export function deactivateWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -91,7 +76,6 @@ export const DeactivateWebhookResponse$inboundSchema: z.ZodType< components.PrimaryNetworkAddressActivityResponse$inboundSchema, components.ValidatorActivityResponse$inboundSchema, ]); - /** @internal */ export type DeactivateWebhookResponse$Outbound = | components.EVMAddressActivityResponse$Outbound @@ -109,19 +93,6 @@ export const DeactivateWebhookResponse$outboundSchema: z.ZodType< 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 { @@ -129,7 +100,6 @@ export function deactivateWebhookResponseToJSON( DeactivateWebhookResponse$outboundSchema.parse(deactivateWebhookResponse), ); } - export function deactivateWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/generateorrotatesharedsecret.ts b/chainkit/src/models/operations/generateorrotatesharedsecret.ts index 1a19a443..ad2162eb 100644 --- a/chainkit/src/models/operations/generateorrotatesharedsecret.ts +++ b/chainkit/src/models/operations/generateorrotatesharedsecret.ts @@ -3,5 +3,5 @@ */ export const GenerateOrRotateSharedSecretServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; diff --git a/chainkit/src/models/operations/getaddresschains.ts b/chainkit/src/models/operations/getaddresschains.ts index 3d28e61e..afeec89a 100644 --- a/chainkit/src/models/operations/getaddresschains.ts +++ b/chainkit/src/models/operations/getaddresschains.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetAddressChainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetAddressChainsRequest = { @@ -26,7 +26,6 @@ export const GetAddressChainsRequest$inboundSchema: z.ZodType< > = z.object({ address: z.string(), }); - /** @internal */ export type GetAddressChainsRequest$Outbound = { address: string; @@ -41,19 +40,6 @@ export const GetAddressChainsRequest$outboundSchema: z.ZodType< 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 { @@ -61,7 +47,6 @@ export function getAddressChainsRequestToJSON( GetAddressChainsRequest$outboundSchema.parse(getAddressChainsRequest), ); } - export function getAddressChainsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getaddressesbybalanceovertime.ts b/chainkit/src/models/operations/getaddressesbybalanceovertime.ts index 5de35b69..ddfd76e2 100644 --- a/chainkit/src/models/operations/getaddressesbybalanceovertime.ts +++ b/chainkit/src/models/operations/getaddressesbybalanceovertime.ts @@ -63,7 +63,6 @@ export const GetAddressesByBalanceOverTimeGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetAddressesByBalanceOverTimeGlobals$Outbound = { chainId?: string | undefined; @@ -78,21 +77,6 @@ export const GetAddressesByBalanceOverTimeGlobals$outboundSchema: z.ZodType< 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 { @@ -102,7 +86,6 @@ export function getAddressesByBalanceOverTimeGlobalsToJSON( ), ); } - export function getAddressesByBalanceOverTimeGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +111,6 @@ export const GetAddressesByBalanceOverTimeRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type GetAddressesByBalanceOverTimeRequest$Outbound = { threshold: string; @@ -155,21 +137,6 @@ export const GetAddressesByBalanceOverTimeRequest$outboundSchema: z.ZodType< 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 { @@ -179,7 +146,6 @@ export function getAddressesByBalanceOverTimeRequestToJSON( ), ); } - export function getAddressesByBalanceOverTimeRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -203,7 +169,6 @@ export const GetAddressesByBalanceOverTimeResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetAddressesByBalanceOverTimeResponse$Outbound = { Result: components.LookingGlassResponse$Outbound; @@ -222,21 +187,6 @@ export const GetAddressesByBalanceOverTimeResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -246,7 +196,6 @@ export function getAddressesByBalanceOverTimeResponseToJSON( ), ); } - export function getAddressesByBalanceOverTimeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getaddressesbybtcbbridged.ts b/chainkit/src/models/operations/getaddressesbybtcbbridged.ts index e4288735..dee469eb 100644 --- a/chainkit/src/models/operations/getaddressesbybtcbbridged.ts +++ b/chainkit/src/models/operations/getaddressesbybtcbbridged.ts @@ -42,7 +42,6 @@ export const GetAddressesByBtcbBridgedRequest$inboundSchema: z.ZodType< pageToken: z.string().optional(), pageSize: z.number().int().default(1000), }); - /** @internal */ export type GetAddressesByBtcbBridgedRequest$Outbound = { threshold: string; @@ -61,19 +60,6 @@ export const GetAddressesByBtcbBridgedRequest$outboundSchema: z.ZodType< 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 { @@ -83,7 +69,6 @@ export function getAddressesByBtcbBridgedRequestToJSON( ), ); } - export function getAddressesByBtcbBridgedRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +91,6 @@ export const GetAddressesByBtcbBridgedResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetAddressesByBtcbBridgedResponse$Outbound = { Result: components.LookingGlassResponse$Outbound; @@ -125,20 +109,6 @@ export const GetAddressesByBtcbBridgedResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -148,7 +118,6 @@ export function getAddressesByBtcbBridgedResponseToJSON( ), ); } - export function getAddressesByBtcbBridgedResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getaddressesfromwebhook.ts b/chainkit/src/models/operations/getaddressesfromwebhook.ts index 36f46bc7..647bf30b 100644 --- a/chainkit/src/models/operations/getaddressesfromwebhook.ts +++ b/chainkit/src/models/operations/getaddressesfromwebhook.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetAddressesFromWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetAddressesFromWebhookRequest = { @@ -42,7 +42,6 @@ export const GetAddressesFromWebhookRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(10), id: z.string(), }); - /** @internal */ export type GetAddressesFromWebhookRequest$Outbound = { pageToken?: string | undefined; @@ -61,19 +60,6 @@ export const GetAddressesFromWebhookRequest$outboundSchema: z.ZodType< 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 { @@ -83,7 +69,6 @@ export function getAddressesFromWebhookRequestToJSON( ), ); } - export function getAddressesFromWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +91,6 @@ export const GetAddressesFromWebhookResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetAddressesFromWebhookResponse$Outbound = { Result: components.ListWebhookAddressesResponse$Outbound; @@ -125,19 +109,6 @@ export const GetAddressesFromWebhookResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -147,7 +118,6 @@ export function getAddressesFromWebhookResponseToJSON( ), ); } - export function getAddressesFromWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getaggregatedsignatures.ts b/chainkit/src/models/operations/getaggregatedsignatures.ts index 22a04e59..57d8ef5b 100644 --- a/chainkit/src/models/operations/getaggregatedsignatures.ts +++ b/chainkit/src/models/operations/getaggregatedsignatures.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetAggregatedSignaturesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetAggregatedSignaturesGlobals = { @@ -38,7 +38,6 @@ export const GetAggregatedSignaturesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetAggregatedSignaturesGlobals$Outbound = { network?: string | undefined; @@ -53,19 +52,6 @@ export const GetAggregatedSignaturesGlobals$outboundSchema: z.ZodType< 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 { @@ -75,7 +61,6 @@ export function getAggregatedSignaturesGlobalsToJSON( ), ); } - export function getAggregatedSignaturesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -95,7 +80,6 @@ export const GetAggregatedSignaturesRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), txHash: z.string(), }); - /** @internal */ export type GetAggregatedSignaturesRequest$Outbound = { network?: string | undefined; @@ -112,19 +96,6 @@ export const GetAggregatedSignaturesRequest$outboundSchema: z.ZodType< 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 { @@ -134,7 +105,6 @@ export function getAggregatedSignaturesRequestToJSON( ), ); } - export function getAggregatedSignaturesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getapilogs.ts b/chainkit/src/models/operations/getapilogs.ts index a46d1f05..7d47f7cf 100644 --- a/chainkit/src/models/operations/getapilogs.ts +++ b/chainkit/src/models/operations/getapilogs.ts @@ -11,7 +11,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetApiLogsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; /** @@ -77,23 +77,11 @@ export type GetApiLogsResponse = { 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, @@ -111,7 +99,6 @@ export const GetApiLogsRequest$inboundSchema: z.ZodType< pageToken: z.string().optional(), pageSize: z.number().int().default(10), }); - /** @internal */ export type GetApiLogsRequest$Outbound = { orgId?: string | undefined; @@ -144,19 +131,6 @@ export const GetApiLogsRequest$outboundSchema: z.ZodType< 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 { @@ -164,7 +138,6 @@ export function getApiLogsRequestToJSON( GetApiLogsRequest$outboundSchema.parse(getApiLogsRequest), ); } - export function getApiLogsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -187,7 +160,6 @@ export const GetApiLogsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetApiLogsResponse$Outbound = { Result: components.LogsResponseDTO$Outbound; @@ -206,19 +178,6 @@ export const GetApiLogsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -226,7 +185,6 @@ export function getApiLogsResponseToJSON( GetApiLogsResponse$outboundSchema.parse(getApiLogsResponse), ); } - export function getApiLogsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getapiusagemetrics.ts b/chainkit/src/models/operations/getapiusagemetrics.ts index aa3be56a..ccd0e2e7 100644 --- a/chainkit/src/models/operations/getapiusagemetrics.ts +++ b/chainkit/src/models/operations/getapiusagemetrics.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetApiUsageMetricsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; /** @@ -74,23 +74,11 @@ export type GetApiUsageMetricsRequest = { 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, @@ -109,7 +97,6 @@ export const GetApiUsageMetricsRequest$inboundSchema: z.ZodType< apiKeyId: z.string().optional(), requestPath: z.string().optional(), }); - /** @internal */ export type GetApiUsageMetricsRequest$Outbound = { orgId?: string | undefined; @@ -143,19 +130,6 @@ export const GetApiUsageMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -163,7 +137,6 @@ export function getApiUsageMetricsRequestToJSON( GetApiUsageMetricsRequest$outboundSchema.parse(getApiUsageMetricsRequest), ); } - export function getApiUsageMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getassetdetails.ts b/chainkit/src/models/operations/getassetdetails.ts index 3176ec8a..1c5f3d0a 100644 --- a/chainkit/src/models/operations/getassetdetails.ts +++ b/chainkit/src/models/operations/getassetdetails.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetAssetDetailsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetAssetDetailsGlobals = { @@ -42,7 +42,6 @@ export const GetAssetDetailsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetAssetDetailsGlobals$Outbound = { network?: string | undefined; @@ -57,19 +56,6 @@ export const GetAssetDetailsGlobals$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function getAssetDetailsGlobalsToJSON( GetAssetDetailsGlobals$outboundSchema.parse(getAssetDetailsGlobals), ); } - export function getAssetDetailsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -98,7 +83,6 @@ export const GetAssetDetailsRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), assetId: z.string(), }); - /** @internal */ export type GetAssetDetailsRequest$Outbound = { blockchainId: string; @@ -117,19 +101,6 @@ export const GetAssetDetailsRequest$outboundSchema: z.ZodType< 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 { @@ -137,7 +108,6 @@ export function getAssetDetailsRequestToJSON( GetAssetDetailsRequest$outboundSchema.parse(getAssetDetailsRequest), ); } - export function getAssetDetailsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getavaxsupply.ts b/chainkit/src/models/operations/getavaxsupply.ts index 9d7e6979..f2f0e70d 100644 --- a/chainkit/src/models/operations/getavaxsupply.ts +++ b/chainkit/src/models/operations/getavaxsupply.ts @@ -3,5 +3,5 @@ */ export const GetAvaxSupplyServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; diff --git a/chainkit/src/models/operations/getbalancesbyaddresses.ts b/chainkit/src/models/operations/getbalancesbyaddresses.ts index d1ae7568..75cbc43d 100644 --- a/chainkit/src/models/operations/getbalancesbyaddresses.ts +++ b/chainkit/src/models/operations/getbalancesbyaddresses.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetBalancesByAddressesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetBalancesByAddressesGlobals = { @@ -54,7 +54,6 @@ export const GetBalancesByAddressesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetBalancesByAddressesGlobals$Outbound = { network?: string | undefined; @@ -69,19 +68,6 @@ export const GetBalancesByAddressesGlobals$outboundSchema: z.ZodType< 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 { @@ -91,7 +77,6 @@ export function getBalancesByAddressesGlobalsToJSON( ), ); } - export function getBalancesByAddressesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +98,6 @@ export const GetBalancesByAddressesRequest$inboundSchema: z.ZodType< blockchainId: components.BlockchainId$inboundSchema, network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetBalancesByAddressesRequest$Outbound = { blockTimestamp?: number | undefined; @@ -134,19 +118,6 @@ export const GetBalancesByAddressesRequest$outboundSchema: z.ZodType< 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 { @@ -156,7 +127,6 @@ export function getBalancesByAddressesRequestToJSON( ), ); } - export function getBalancesByAddressesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -177,7 +147,6 @@ export const GetBalancesByAddressesResponse$inboundSchema: z.ZodType< components.ListXChainBalancesResponse$inboundSchema, components.ListCChainAtomicBalancesResponse$inboundSchema, ]); - /** @internal */ export type GetBalancesByAddressesResponse$Outbound = | components.ListPChainBalancesResponse$Outbound @@ -195,19 +164,6 @@ export const GetBalancesByAddressesResponse$outboundSchema: z.ZodType< 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 { @@ -217,7 +173,6 @@ export function getBalancesByAddressesResponseToJSON( ), ); } - export function getBalancesByAddressesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getblock.ts b/chainkit/src/models/operations/getblock.ts index 9b4c7399..d339bcbd 100644 --- a/chainkit/src/models/operations/getblock.ts +++ b/chainkit/src/models/operations/getblock.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetBlockServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetBlockGlobals = { @@ -37,7 +37,6 @@ export const GetBlockGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetBlockGlobals$Outbound = { chainId?: string | undefined; @@ -52,25 +51,11 @@ export const GetBlockGlobals$outboundSchema: z.ZodType< 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 { @@ -90,7 +75,6 @@ export const GetBlockRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), blockId: z.string(), }); - /** @internal */ export type GetBlockRequest$Outbound = { chainId?: string | undefined; @@ -107,25 +91,11 @@ export const GetBlockRequest$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/operations/getblockbyid.ts b/chainkit/src/models/operations/getblockbyid.ts index c541d795..1674369b 100644 --- a/chainkit/src/models/operations/getblockbyid.ts +++ b/chainkit/src/models/operations/getblockbyid.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetBlockByIdServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetBlockByIdGlobals = { @@ -42,7 +42,6 @@ export const GetBlockByIdGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetBlockByIdGlobals$Outbound = { network?: string | undefined; @@ -57,19 +56,6 @@ export const GetBlockByIdGlobals$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function getBlockByIdGlobalsToJSON( GetBlockByIdGlobals$outboundSchema.parse(getBlockByIdGlobals), ); } - export function getBlockByIdGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -98,7 +83,6 @@ export const GetBlockByIdRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), blockId: z.string(), }); - /** @internal */ export type GetBlockByIdRequest$Outbound = { blockchainId: string; @@ -117,19 +101,6 @@ export const GetBlockByIdRequest$outboundSchema: z.ZodType< 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 { @@ -137,7 +108,6 @@ export function getBlockByIdRequestToJSON( GetBlockByIdRequest$outboundSchema.parse(getBlockByIdRequest), ); } - export function getBlockByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getblockchainbyid.ts b/chainkit/src/models/operations/getblockchainbyid.ts index 3cb558d4..73fabe21 100644 --- a/chainkit/src/models/operations/getblockchainbyid.ts +++ b/chainkit/src/models/operations/getblockchainbyid.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetBlockchainByIdServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetBlockchainByIdGlobals = { @@ -38,7 +38,6 @@ export const GetBlockchainByIdGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetBlockchainByIdGlobals$Outbound = { network?: string | undefined; @@ -53,19 +52,6 @@ export const GetBlockchainByIdGlobals$outboundSchema: z.ZodType< 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 { @@ -73,7 +59,6 @@ export function getBlockchainByIdGlobalsToJSON( GetBlockchainByIdGlobals$outboundSchema.parse(getBlockchainByIdGlobals), ); } - export function getBlockchainByIdGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetBlockchainByIdRequest$inboundSchema: z.ZodType< blockchainId: z.string(), network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetBlockchainByIdRequest$Outbound = { blockchainId: string; @@ -110,19 +94,6 @@ export const GetBlockchainByIdRequest$outboundSchema: z.ZodType< 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 { @@ -130,7 +101,6 @@ export function getBlockchainByIdRequestToJSON( GetBlockchainByIdRequest$outboundSchema.parse(getBlockchainByIdRequest), ); } - export function getBlockchainByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getchain.ts b/chainkit/src/models/operations/getchain.ts index 332f92a7..ea63a705 100644 --- a/chainkit/src/models/operations/getchain.ts +++ b/chainkit/src/models/operations/getchain.ts @@ -33,7 +33,6 @@ export const GetChainGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetChainGlobals$Outbound = { chainId?: string | undefined; @@ -48,25 +47,11 @@ export const GetChainGlobals$outboundSchema: z.ZodType< 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 { @@ -85,7 +70,6 @@ export const GetChainRequest$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetChainRequest$Outbound = { chainId?: string | undefined; @@ -100,25 +84,11 @@ export const GetChainRequest$outboundSchema: z.ZodType< 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 { diff --git a/chainkit/src/models/operations/getchainidsforaddresses.ts b/chainkit/src/models/operations/getchainidsforaddresses.ts index 4c9e16bf..553bceed 100644 --- a/chainkit/src/models/operations/getchainidsforaddresses.ts +++ b/chainkit/src/models/operations/getchainidsforaddresses.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetChainIdsForAddressesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetChainIdsForAddressesGlobals = { @@ -38,7 +38,6 @@ export const GetChainIdsForAddressesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetChainIdsForAddressesGlobals$Outbound = { network?: string | undefined; @@ -53,19 +52,6 @@ export const GetChainIdsForAddressesGlobals$outboundSchema: z.ZodType< 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 { @@ -75,7 +61,6 @@ export function getChainIdsForAddressesGlobalsToJSON( ), ); } - export function getChainIdsForAddressesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -95,7 +80,6 @@ export const GetChainIdsForAddressesRequest$inboundSchema: z.ZodType< addresses: z.string(), network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetChainIdsForAddressesRequest$Outbound = { addresses: string; @@ -112,19 +96,6 @@ export const GetChainIdsForAddressesRequest$outboundSchema: z.ZodType< 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 { @@ -134,7 +105,6 @@ export function getChainIdsForAddressesRequestToJSON( ), ); } - export function getChainIdsForAddressesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getchaininfo.ts b/chainkit/src/models/operations/getchaininfo.ts index de9ca3d0..036de96a 100644 --- a/chainkit/src/models/operations/getchaininfo.ts +++ b/chainkit/src/models/operations/getchaininfo.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetChainInfoServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetChainInfoGlobals = { @@ -33,7 +33,6 @@ export const GetChainInfoGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetChainInfoGlobals$Outbound = { chainId?: string | undefined; @@ -48,19 +47,6 @@ export const GetChainInfoGlobals$outboundSchema: z.ZodType< 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 { @@ -68,7 +54,6 @@ export function getChainInfoGlobalsToJSON( GetChainInfoGlobals$outboundSchema.parse(getChainInfoGlobals), ); } - export function getChainInfoGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -87,7 +72,6 @@ export const GetChainInfoRequest$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetChainInfoRequest$Outbound = { chainId?: string | undefined; @@ -102,19 +86,6 @@ export const GetChainInfoRequest$outboundSchema: z.ZodType< 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 { @@ -122,7 +93,6 @@ export function getChainInfoRequestToJSON( GetChainInfoRequest$outboundSchema.parse(getChainInfoRequest), ); } - export function getChainInfoRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getcontractmetadata.ts b/chainkit/src/models/operations/getcontractmetadata.ts index 58afda4a..1c856651 100644 --- a/chainkit/src/models/operations/getcontractmetadata.ts +++ b/chainkit/src/models/operations/getcontractmetadata.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetContractMetadataServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetContractMetadataGlobals = { @@ -47,7 +47,6 @@ export const GetContractMetadataGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetContractMetadataGlobals$Outbound = { chainId?: string | undefined; @@ -62,19 +61,6 @@ export const GetContractMetadataGlobals$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function getContractMetadataGlobalsToJSON( GetContractMetadataGlobals$outboundSchema.parse(getContractMetadataGlobals), ); } - export function getContractMetadataGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -102,7 +87,6 @@ export const GetContractMetadataRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type GetContractMetadataRequest$Outbound = { chainId?: string | undefined; @@ -119,19 +103,6 @@ export const GetContractMetadataRequest$outboundSchema: z.ZodType< 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 { @@ -139,7 +110,6 @@ export function getContractMetadataRequestToJSON( GetContractMetadataRequest$outboundSchema.parse(getContractMetadataRequest), ); } - export function getContractMetadataRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -177,7 +147,6 @@ export const GetContractMetadataResponse$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type GetContractMetadataResponse$Outbound = | (components.Erc20Contract$Outbound & { ercType: "ERC-20" }) @@ -213,19 +182,6 @@ export const GetContractMetadataResponse$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -235,7 +191,6 @@ export function getContractMetadataResponseToJSON( ), ); } - export function getContractMetadataResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getdeploymenttransaction.ts b/chainkit/src/models/operations/getdeploymenttransaction.ts index ce34bb78..a5069037 100644 --- a/chainkit/src/models/operations/getdeploymenttransaction.ts +++ b/chainkit/src/models/operations/getdeploymenttransaction.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetDeploymentTransactionServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetDeploymentTransactionGlobals = { @@ -42,7 +42,6 @@ export const GetDeploymentTransactionGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetDeploymentTransactionGlobals$Outbound = { chainId?: string | undefined; @@ -57,19 +56,6 @@ export const GetDeploymentTransactionGlobals$outboundSchema: z.ZodType< 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 { @@ -79,7 +65,6 @@ export function getDeploymentTransactionGlobalsToJSON( ), ); } - export function getDeploymentTransactionGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const GetDeploymentTransactionRequest$inboundSchema: z.ZodType< address: z.string(), currency: components.CurrencyCode$inboundSchema.optional(), }); - /** @internal */ export type GetDeploymentTransactionRequest$Outbound = { chainId?: string | undefined; @@ -119,19 +103,6 @@ export const GetDeploymentTransactionRequest$outboundSchema: z.ZodType< 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 { @@ -141,7 +112,6 @@ export function getDeploymentTransactionRequestToJSON( ), ); } - export function getDeploymentTransactionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getevmchainmetrics.ts b/chainkit/src/models/operations/getevmchainmetrics.ts index d44c5e5c..9c9eded5 100644 --- a/chainkit/src/models/operations/getevmchainmetrics.ts +++ b/chainkit/src/models/operations/getevmchainmetrics.ts @@ -67,7 +67,6 @@ export const GetEvmChainMetricsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetEvmChainMetricsGlobals$Outbound = { chainId?: string | undefined; @@ -82,19 +81,6 @@ export const GetEvmChainMetricsGlobals$outboundSchema: z.ZodType< 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 { @@ -102,7 +88,6 @@ export function getEvmChainMetricsGlobalsToJSON( GetEvmChainMetricsGlobals$outboundSchema.parse(getEvmChainMetricsGlobals), ); } - export function getEvmChainMetricsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -127,7 +112,6 @@ export const GetEvmChainMetricsRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(100), chainId: z.string().optional(), }); - /** @internal */ export type GetEvmChainMetricsRequest$Outbound = { metric: string; @@ -154,19 +138,6 @@ export const GetEvmChainMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -174,7 +145,6 @@ export function getEvmChainMetricsRequestToJSON( GetEvmChainMetricsRequest$outboundSchema.parse(getEvmChainMetricsRequest), ); } - export function getEvmChainMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -197,7 +167,6 @@ export const GetEvmChainMetricsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetEvmChainMetricsResponse$Outbound = { Result: components.MetricsApiResponse$Outbound; @@ -216,19 +185,6 @@ export const GetEvmChainMetricsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -236,7 +192,6 @@ export function getEvmChainMetricsResponseToJSON( GetEvmChainMetricsResponse$outboundSchema.parse(getEvmChainMetricsResponse), ); } - export function getEvmChainMetricsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts b/chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts index f78d9294..f9377492 100644 --- a/chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts +++ b/chainkit/src/models/operations/getevmchainrollingwindowmetrics.ts @@ -38,7 +38,6 @@ export const GetEvmChainRollingWindowMetricsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetEvmChainRollingWindowMetricsGlobals$Outbound = { chainId?: string | undefined; @@ -53,21 +52,6 @@ export const GetEvmChainRollingWindowMetricsGlobals$outboundSchema: z.ZodType< 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, @@ -78,7 +62,6 @@ export function getEvmChainRollingWindowMetricsGlobalsToJSON( ), ); } - export function getEvmChainRollingWindowMetricsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -99,7 +82,6 @@ export const GetEvmChainRollingWindowMetricsRequest$inboundSchema: z.ZodType< metric: components.ChainRollingWindowMetric$inboundSchema, chainId: z.string().optional(), }); - /** @internal */ export type GetEvmChainRollingWindowMetricsRequest$Outbound = { metric: string; @@ -116,21 +98,6 @@ export const GetEvmChainRollingWindowMetricsRequest$outboundSchema: z.ZodType< 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, @@ -141,7 +108,6 @@ export function getEvmChainRollingWindowMetricsRequestToJSON( ), ); } - export function getEvmChainRollingWindowMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/geticmmessage.ts b/chainkit/src/models/operations/geticmmessage.ts index 839754ab..5cd82f00 100644 --- a/chainkit/src/models/operations/geticmmessage.ts +++ b/chainkit/src/models/operations/geticmmessage.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetIcmMessageServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetIcmMessageRequest = { @@ -37,7 +37,6 @@ export const GetIcmMessageRequest$inboundSchema: z.ZodType< > = z.object({ messageId: z.string(), }); - /** @internal */ export type GetIcmMessageRequest$Outbound = { messageId: string; @@ -52,19 +51,6 @@ export const GetIcmMessageRequest$outboundSchema: z.ZodType< 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 { @@ -72,7 +58,6 @@ export function getIcmMessageRequestToJSON( GetIcmMessageRequest$outboundSchema.parse(getIcmMessageRequest), ); } - export function getIcmMessageRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -105,7 +90,6 @@ export const GetIcmMessageResponse$inboundSchema: z.ZodType< ) => ({ status: v.status })), ), ]); - /** @internal */ export type GetIcmMessageResponse$Outbound = | (components.DeliveredIcmMessage$Outbound & { status: "delivered" }) @@ -137,19 +121,6 @@ export const GetIcmMessageResponse$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -157,7 +128,6 @@ export function getIcmMessageResponseToJSON( GetIcmMessageResponse$outboundSchema.parse(getIcmMessageResponse), ); } - export function getIcmMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/geticmsummary.ts b/chainkit/src/models/operations/geticmsummary.ts index 47298c8f..5af1f619 100644 --- a/chainkit/src/models/operations/geticmsummary.ts +++ b/chainkit/src/models/operations/geticmsummary.ts @@ -49,23 +49,11 @@ export type GetICMSummaryRequest = { export const GetICMSummaryGroupBy$inboundSchema: z.ZodNativeEnum< typeof GetICMSummaryGroupBy > = z.nativeEnum(GetICMSummaryGroupBy); - /** @internal */ export const GetICMSummaryGroupBy$outboundSchema: z.ZodNativeEnum< typeof GetICMSummaryGroupBy > = GetICMSummaryGroupBy$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetICMSummaryGroupBy$ { - /** @deprecated use `GetICMSummaryGroupBy$inboundSchema` instead. */ - export const inboundSchema = GetICMSummaryGroupBy$inboundSchema; - /** @deprecated use `GetICMSummaryGroupBy$outboundSchema` instead. */ - export const outboundSchema = GetICMSummaryGroupBy$outboundSchema; -} - /** @internal */ export const GetICMSummaryRequest$inboundSchema: z.ZodType< GetICMSummaryRequest, @@ -77,7 +65,6 @@ export const GetICMSummaryRequest$inboundSchema: z.ZodType< groupBy: GetICMSummaryGroupBy$inboundSchema.optional(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type GetICMSummaryRequest$Outbound = { srcBlockchainId?: string | undefined; @@ -98,19 +85,6 @@ export const GetICMSummaryRequest$outboundSchema: z.ZodType< 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 GetICMSummaryRequest$ { - /** @deprecated use `GetICMSummaryRequest$inboundSchema` instead. */ - export const inboundSchema = GetICMSummaryRequest$inboundSchema; - /** @deprecated use `GetICMSummaryRequest$outboundSchema` instead. */ - export const outboundSchema = GetICMSummaryRequest$outboundSchema; - /** @deprecated use `GetICMSummaryRequest$Outbound` instead. */ - export type Outbound = GetICMSummaryRequest$Outbound; -} - export function getICMSummaryRequestToJSON( getICMSummaryRequest: GetICMSummaryRequest, ): string { @@ -118,7 +92,6 @@ export function getICMSummaryRequestToJSON( GetICMSummaryRequest$outboundSchema.parse(getICMSummaryRequest), ); } - export function getICMSummaryRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/geticmtimeseries.ts b/chainkit/src/models/operations/geticmtimeseries.ts index 4bde40ea..b0f8197b 100644 --- a/chainkit/src/models/operations/geticmtimeseries.ts +++ b/chainkit/src/models/operations/geticmtimeseries.ts @@ -75,23 +75,11 @@ export type GetICMTimeseriesRequest = { export const GetICMTimeseriesGroupBy$inboundSchema: z.ZodNativeEnum< typeof GetICMTimeseriesGroupBy > = z.nativeEnum(GetICMTimeseriesGroupBy); - /** @internal */ export const GetICMTimeseriesGroupBy$outboundSchema: z.ZodNativeEnum< typeof GetICMTimeseriesGroupBy > = GetICMTimeseriesGroupBy$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetICMTimeseriesGroupBy$ { - /** @deprecated use `GetICMTimeseriesGroupBy$inboundSchema` instead. */ - export const inboundSchema = GetICMTimeseriesGroupBy$inboundSchema; - /** @deprecated use `GetICMTimeseriesGroupBy$outboundSchema` instead. */ - export const outboundSchema = GetICMTimeseriesGroupBy$outboundSchema; -} - /** @internal */ export const GetICMTimeseriesRequest$inboundSchema: z.ZodType< GetICMTimeseriesRequest, @@ -108,7 +96,6 @@ export const GetICMTimeseriesRequest$inboundSchema: z.ZodType< groupBy: GetICMTimeseriesGroupBy$inboundSchema.optional(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type GetICMTimeseriesRequest$Outbound = { startTimestamp?: number | undefined; @@ -139,19 +126,6 @@ export const GetICMTimeseriesRequest$outboundSchema: z.ZodType< 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 GetICMTimeseriesRequest$ { - /** @deprecated use `GetICMTimeseriesRequest$inboundSchema` instead. */ - export const inboundSchema = GetICMTimeseriesRequest$inboundSchema; - /** @deprecated use `GetICMTimeseriesRequest$outboundSchema` instead. */ - export const outboundSchema = GetICMTimeseriesRequest$outboundSchema; - /** @deprecated use `GetICMTimeseriesRequest$Outbound` instead. */ - export type Outbound = GetICMTimeseriesRequest$Outbound; -} - export function getICMTimeseriesRequestToJSON( getICMTimeseriesRequest: GetICMTimeseriesRequest, ): string { @@ -159,7 +133,6 @@ export function getICMTimeseriesRequestToJSON( GetICMTimeseriesRequest$outboundSchema.parse(getICMTimeseriesRequest), ); } - export function getICMTimeseriesRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getlatestblocks.ts b/chainkit/src/models/operations/getlatestblocks.ts index 70c4e792..d72488a2 100644 --- a/chainkit/src/models/operations/getlatestblocks.ts +++ b/chainkit/src/models/operations/getlatestblocks.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetLatestBlocksServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetLatestBlocksGlobals = { @@ -47,7 +47,6 @@ export const GetLatestBlocksGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetLatestBlocksGlobals$Outbound = { chainId?: string | undefined; @@ -62,19 +61,6 @@ export const GetLatestBlocksGlobals$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function getLatestBlocksGlobalsToJSON( GetLatestBlocksGlobals$outboundSchema.parse(getLatestBlocksGlobals), ); } - export function getLatestBlocksGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -103,7 +88,6 @@ export const GetLatestBlocksRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(10), chainId: z.string().optional(), }); - /** @internal */ export type GetLatestBlocksRequest$Outbound = { pageToken?: string | undefined; @@ -122,19 +106,6 @@ export const GetLatestBlocksRequest$outboundSchema: z.ZodType< 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 { @@ -142,7 +113,6 @@ export function getLatestBlocksRequestToJSON( GetLatestBlocksRequest$outboundSchema.parse(getLatestBlocksRequest), ); } - export function getLatestBlocksRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -165,7 +135,6 @@ export const GetLatestBlocksResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetLatestBlocksResponse$Outbound = { Result: components.ListEvmBlocksResponse$Outbound; @@ -184,19 +153,6 @@ export const GetLatestBlocksResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -204,7 +160,6 @@ export function getLatestBlocksResponseToJSON( GetLatestBlocksResponse$outboundSchema.parse(getLatestBlocksResponse), ); } - export function getLatestBlocksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getmetricsbynodeid.ts b/chainkit/src/models/operations/getmetricsbynodeid.ts index e12d9d8f..6c88e3f1 100644 --- a/chainkit/src/models/operations/getmetricsbynodeid.ts +++ b/chainkit/src/models/operations/getmetricsbynodeid.ts @@ -49,23 +49,11 @@ export type GetMetricsByNodeIdRequest = { 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, @@ -77,7 +65,6 @@ export const GetMetricsByNodeIdRequest$inboundSchema: z.ZodType< endTimestamp: z.number().int().optional(), nodeId: z.string(), }); - /** @internal */ export type GetMetricsByNodeIdRequest$Outbound = { metric: string; @@ -98,19 +85,6 @@ export const GetMetricsByNodeIdRequest$outboundSchema: z.ZodType< 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 { @@ -118,7 +92,6 @@ export function getMetricsByNodeIdRequestToJSON( GetMetricsByNodeIdRequest$outboundSchema.parse(getMetricsByNodeIdRequest), ); } - export function getMetricsByNodeIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getmetricsbysubnetid.ts b/chainkit/src/models/operations/getmetricsbysubnetid.ts index 3ee5e6bc..645e34bb 100644 --- a/chainkit/src/models/operations/getmetricsbysubnetid.ts +++ b/chainkit/src/models/operations/getmetricsbysubnetid.ts @@ -50,23 +50,11 @@ export type GetMetricsBySubnetIdRequest = { 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, @@ -78,7 +66,6 @@ export const GetMetricsBySubnetIdRequest$inboundSchema: z.ZodType< endTimestamp: z.number().int().optional(), subnetId: z.string(), }); - /** @internal */ export type GetMetricsBySubnetIdRequest$Outbound = { metric: string; @@ -99,19 +86,6 @@ export const GetMetricsBySubnetIdRequest$outboundSchema: z.ZodType< 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 { @@ -121,7 +95,6 @@ export function getMetricsBySubnetIdRequestToJSON( ), ); } - export function getMetricsBySubnetIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getmetricsbyvalidationid.ts b/chainkit/src/models/operations/getmetricsbyvalidationid.ts index 2bb170db..9d55f2a6 100644 --- a/chainkit/src/models/operations/getmetricsbyvalidationid.ts +++ b/chainkit/src/models/operations/getmetricsbyvalidationid.ts @@ -49,23 +49,11 @@ export type GetMetricsByValidationIdRequest = { 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, @@ -77,7 +65,6 @@ export const GetMetricsByValidationIdRequest$inboundSchema: z.ZodType< startTimestamp: z.number().int().optional(), endTimestamp: z.number().int().optional(), }); - /** @internal */ export type GetMetricsByValidationIdRequest$Outbound = { l1ValidationId: string; @@ -98,19 +85,6 @@ export const GetMetricsByValidationIdRequest$outboundSchema: z.ZodType< 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 { @@ -120,7 +94,6 @@ export function getMetricsByValidationIdRequestToJSON( ), ); } - export function getMetricsByValidationIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getnativebalance.ts b/chainkit/src/models/operations/getnativebalance.ts index dc81e148..b1224ef3 100644 --- a/chainkit/src/models/operations/getnativebalance.ts +++ b/chainkit/src/models/operations/getnativebalance.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetNativeBalanceServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetNativeBalanceGlobals = { @@ -46,7 +46,6 @@ export const GetNativeBalanceGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetNativeBalanceGlobals$Outbound = { chainId?: string | undefined; @@ -61,19 +60,6 @@ export const GetNativeBalanceGlobals$outboundSchema: z.ZodType< 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 { @@ -81,7 +67,6 @@ export function getNativeBalanceGlobalsToJSON( GetNativeBalanceGlobals$outboundSchema.parse(getNativeBalanceGlobals), ); } - export function getNativeBalanceGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -103,7 +88,6 @@ export const GetNativeBalanceRequest$inboundSchema: z.ZodType< address: z.string(), currency: components.CurrencyCode$inboundSchema.optional(), }); - /** @internal */ export type GetNativeBalanceRequest$Outbound = { blockNumber?: string | undefined; @@ -124,19 +108,6 @@ export const GetNativeBalanceRequest$outboundSchema: z.ZodType< 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 { @@ -144,7 +115,6 @@ export function getNativeBalanceRequestToJSON( GetNativeBalanceRequest$outboundSchema.parse(getNativeBalanceRequest), ); } - export function getNativeBalanceRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getnetworkdetails.ts b/chainkit/src/models/operations/getnetworkdetails.ts index 6c373505..c36c836b 100644 --- a/chainkit/src/models/operations/getnetworkdetails.ts +++ b/chainkit/src/models/operations/getnetworkdetails.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetNetworkDetailsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetNetworkDetailsGlobals = { @@ -34,7 +34,6 @@ export const GetNetworkDetailsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetNetworkDetailsGlobals$Outbound = { network?: string | undefined; @@ -49,19 +48,6 @@ export const GetNetworkDetailsGlobals$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function getNetworkDetailsGlobalsToJSON( GetNetworkDetailsGlobals$outboundSchema.parse(getNetworkDetailsGlobals), ); } - export function getNetworkDetailsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -88,7 +73,6 @@ export const GetNetworkDetailsRequest$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetNetworkDetailsRequest$Outbound = { network?: string | undefined; @@ -103,19 +87,6 @@ export const GetNetworkDetailsRequest$outboundSchema: z.ZodType< 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 { @@ -123,7 +94,6 @@ export function getNetworkDetailsRequestToJSON( GetNetworkDetailsRequest$outboundSchema.parse(getNetworkDetailsRequest), ); } - export function getNetworkDetailsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getnftholdersbycontractaddress.ts b/chainkit/src/models/operations/getnftholdersbycontractaddress.ts index 3081d757..6544b2e1 100644 --- a/chainkit/src/models/operations/getnftholdersbycontractaddress.ts +++ b/chainkit/src/models/operations/getnftholdersbycontractaddress.ts @@ -51,7 +51,6 @@ export const GetNftHoldersByContractAddressGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetNftHoldersByContractAddressGlobals$Outbound = { chainId?: string | undefined; @@ -66,21 +65,6 @@ export const GetNftHoldersByContractAddressGlobals$outboundSchema: z.ZodType< 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 { @@ -90,7 +74,6 @@ export function getNftHoldersByContractAddressGlobalsToJSON( ), ); } - export function getNftHoldersByContractAddressGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +96,6 @@ export const GetNftHoldersByContractAddressRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type GetNftHoldersByContractAddressRequest$Outbound = { pageToken?: string | undefined; @@ -134,21 +116,6 @@ export const GetNftHoldersByContractAddressRequest$outboundSchema: z.ZodType< 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 { @@ -158,7 +125,6 @@ export function getNftHoldersByContractAddressRequestToJSON( ), ); } - export function getNftHoldersByContractAddressRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -182,7 +148,6 @@ export const GetNftHoldersByContractAddressResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetNftHoldersByContractAddressResponse$Outbound = { Result: components.NftHoldersResponse$Outbound; @@ -201,21 +166,6 @@ export const GetNftHoldersByContractAddressResponse$outboundSchema: z.ZodType< }); }); -/** - * @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, @@ -226,7 +176,6 @@ export function getNftHoldersByContractAddressResponseToJSON( ), ); } - export function getNftHoldersByContractAddressResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getoperationresult.ts b/chainkit/src/models/operations/getoperationresult.ts index 5a5222b1..22f3184e 100644 --- a/chainkit/src/models/operations/getoperationresult.ts +++ b/chainkit/src/models/operations/getoperationresult.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetOperationResultServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetOperationResultRequest = { @@ -26,7 +26,6 @@ export const GetOperationResultRequest$inboundSchema: z.ZodType< > = z.object({ operationId: z.string(), }); - /** @internal */ export type GetOperationResultRequest$Outbound = { operationId: string; @@ -41,19 +40,6 @@ export const GetOperationResultRequest$outboundSchema: z.ZodType< 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 { @@ -61,7 +47,6 @@ export function getOperationResultRequestToJSON( GetOperationResultRequest$outboundSchema.parse(getOperationResultRequest), ); } - export function getOperationResultRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getrpcusagemetrics.ts b/chainkit/src/models/operations/getrpcusagemetrics.ts index 4b837871..f1d4d629 100644 --- a/chainkit/src/models/operations/getrpcusagemetrics.ts +++ b/chainkit/src/models/operations/getrpcusagemetrics.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetRpcUsageMetricsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetRpcUsageMetricsRequest = { @@ -66,7 +66,6 @@ export const GetRpcUsageMetricsRequest$inboundSchema: z.ZodType< rpcMethod: z.string().optional(), rlBypassApiToken: z.string().optional(), }); - /** @internal */ export type GetRpcUsageMetricsRequest$Outbound = { timeInterval?: string | undefined; @@ -96,19 +95,6 @@ export const GetRpcUsageMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -116,7 +102,6 @@ export function getRpcUsageMetricsRequestToJSON( GetRpcUsageMetricsRequest$outboundSchema.parse(getRpcUsageMetricsRequest), ); } - export function getRpcUsageMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getsharedsecret.ts b/chainkit/src/models/operations/getsharedsecret.ts index 020c2371..b56efa08 100644 --- a/chainkit/src/models/operations/getsharedsecret.ts +++ b/chainkit/src/models/operations/getsharedsecret.ts @@ -3,5 +3,5 @@ */ export const GetSharedSecretServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; diff --git a/chainkit/src/models/operations/getsinglevalidatordetails.ts b/chainkit/src/models/operations/getsinglevalidatordetails.ts index 714eeccd..aad72672 100644 --- a/chainkit/src/models/operations/getsinglevalidatordetails.ts +++ b/chainkit/src/models/operations/getsinglevalidatordetails.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetSingleValidatorDetailsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetSingleValidatorDetailsGlobals = { @@ -59,7 +59,6 @@ export const GetSingleValidatorDetailsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetSingleValidatorDetailsGlobals$Outbound = { network?: string | undefined; @@ -74,19 +73,6 @@ export const GetSingleValidatorDetailsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function getSingleValidatorDetailsGlobalsToJSON( ), ); } - export function getSingleValidatorDetailsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const GetSingleValidatorDetailsRequest$inboundSchema: z.ZodType< validationStatus: components.ValidationStatusType$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type GetSingleValidatorDetailsRequest$Outbound = { pageToken?: string | undefined; @@ -145,19 +129,6 @@ export const GetSingleValidatorDetailsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function getSingleValidatorDetailsRequestToJSON( ), ); } - export function getSingleValidatorDetailsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const GetSingleValidatorDetailsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetSingleValidatorDetailsResponse$Outbound = { Result: components.ListValidatorDetailsResponse$Outbound; @@ -209,20 +178,6 @@ export const GetSingleValidatorDetailsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -232,7 +187,6 @@ export function getSingleValidatorDetailsResponseToJSON( ), ); } - export function getSingleValidatorDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getstakingmetrics.ts b/chainkit/src/models/operations/getstakingmetrics.ts index 4726a41d..76ebc695 100644 --- a/chainkit/src/models/operations/getstakingmetrics.ts +++ b/chainkit/src/models/operations/getstakingmetrics.ts @@ -63,7 +63,6 @@ export const GetStakingMetricsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetStakingMetricsGlobals$Outbound = { network?: string | undefined; @@ -78,19 +77,6 @@ export const GetStakingMetricsGlobals$outboundSchema: z.ZodType< 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 { @@ -98,7 +84,6 @@ export function getStakingMetricsGlobalsToJSON( GetStakingMetricsGlobals$outboundSchema.parse(getStakingMetricsGlobals), ); } - export function getStakingMetricsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -123,7 +108,6 @@ export const GetStakingMetricsRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), subnetId: z.any(), }); - /** @internal */ export type GetStakingMetricsRequest$Outbound = { metric: string; @@ -150,19 +134,6 @@ export const GetStakingMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -170,7 +141,6 @@ export function getStakingMetricsRequestToJSON( GetStakingMetricsRequest$outboundSchema.parse(getStakingMetricsRequest), ); } - export function getStakingMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -193,7 +163,6 @@ export const GetStakingMetricsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetStakingMetricsResponse$Outbound = { Result: components.MetricsApiResponse$Outbound; @@ -212,19 +181,6 @@ export const GetStakingMetricsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -232,7 +188,6 @@ export function getStakingMetricsResponseToJSON( GetStakingMetricsResponse$outboundSchema.parse(getStakingMetricsResponse), ); } - export function getStakingMetricsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getsubnetbyid.ts b/chainkit/src/models/operations/getsubnetbyid.ts index ed1de383..644f37b6 100644 --- a/chainkit/src/models/operations/getsubnetbyid.ts +++ b/chainkit/src/models/operations/getsubnetbyid.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetSubnetByIdServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetSubnetByIdGlobals = { @@ -38,7 +38,6 @@ export const GetSubnetByIdGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetSubnetByIdGlobals$Outbound = { network?: string | undefined; @@ -53,19 +52,6 @@ export const GetSubnetByIdGlobals$outboundSchema: z.ZodType< 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 { @@ -73,7 +59,6 @@ export function getSubnetByIdGlobalsToJSON( GetSubnetByIdGlobals$outboundSchema.parse(getSubnetByIdGlobals), ); } - export function getSubnetByIdGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -93,7 +78,6 @@ export const GetSubnetByIdRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), subnetId: z.string(), }); - /** @internal */ export type GetSubnetByIdRequest$Outbound = { network?: string | undefined; @@ -110,19 +94,6 @@ export const GetSubnetByIdRequest$outboundSchema: z.ZodType< 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 { @@ -130,7 +101,6 @@ export function getSubnetByIdRequestToJSON( GetSubnetByIdRequest$outboundSchema.parse(getSubnetByIdRequest), ); } - export function getSubnetByIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getsubnetrpcusagemetrics.ts b/chainkit/src/models/operations/getsubnetrpcusagemetrics.ts index 1d4b6eb4..ee117111 100644 --- a/chainkit/src/models/operations/getsubnetrpcusagemetrics.ts +++ b/chainkit/src/models/operations/getsubnetrpcusagemetrics.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetSubnetRpcUsageMetricsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetSubnetRpcUsageMetricsRequest = { @@ -66,7 +66,6 @@ export const GetSubnetRpcUsageMetricsRequest$inboundSchema: z.ZodType< rpcMethod: z.string().optional(), rlBypassApiToken: z.string().optional(), }); - /** @internal */ export type GetSubnetRpcUsageMetricsRequest$Outbound = { timeInterval?: string | undefined; @@ -96,19 +95,6 @@ export const GetSubnetRpcUsageMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -118,7 +104,6 @@ export function getSubnetRpcUsageMetricsRequestToJSON( ), ); } - export function getSubnetRpcUsageMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getteleportermessage.ts b/chainkit/src/models/operations/getteleportermessage.ts index c6cac167..49a4e450 100644 --- a/chainkit/src/models/operations/getteleportermessage.ts +++ b/chainkit/src/models/operations/getteleportermessage.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetTeleporterMessageServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetTeleporterMessageRequest = { @@ -37,7 +37,6 @@ export const GetTeleporterMessageRequest$inboundSchema: z.ZodType< > = z.object({ messageId: z.string(), }); - /** @internal */ export type GetTeleporterMessageRequest$Outbound = { messageId: string; @@ -52,19 +51,6 @@ export const GetTeleporterMessageRequest$outboundSchema: z.ZodType< 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 { @@ -74,7 +60,6 @@ export function getTeleporterMessageRequestToJSON( ), ); } - export function getTeleporterMessageRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -107,7 +92,6 @@ export const GetTeleporterMessageResponse$inboundSchema: z.ZodType< ) => ({ status: v.status })), ), ]); - /** @internal */ export type GetTeleporterMessageResponse$Outbound = | (components.DeliveredTeleporterMessage$Outbound & { status: "delivered" }) @@ -139,19 +123,6 @@ export const GetTeleporterMessageResponse$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -161,7 +132,6 @@ export function getTeleporterMessageResponseToJSON( ), ); } - export function getTeleporterMessageResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/gettokendetails.ts b/chainkit/src/models/operations/gettokendetails.ts index 346bad5d..f6c7ab73 100644 --- a/chainkit/src/models/operations/gettokendetails.ts +++ b/chainkit/src/models/operations/gettokendetails.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetTokenDetailsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetTokenDetailsGlobals = { @@ -49,7 +49,6 @@ export const GetTokenDetailsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetTokenDetailsGlobals$Outbound = { chainId?: string | undefined; @@ -64,19 +63,6 @@ export const GetTokenDetailsGlobals$outboundSchema: z.ZodType< 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 { @@ -84,7 +70,6 @@ export function getTokenDetailsGlobalsToJSON( GetTokenDetailsGlobals$outboundSchema.parse(getTokenDetailsGlobals), ); } - export function getTokenDetailsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -105,7 +90,6 @@ export const GetTokenDetailsRequest$inboundSchema: z.ZodType< address: z.string(), tokenId: z.string(), }); - /** @internal */ export type GetTokenDetailsRequest$Outbound = { chainId?: string | undefined; @@ -124,19 +108,6 @@ export const GetTokenDetailsRequest$outboundSchema: z.ZodType< 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 { @@ -144,7 +115,6 @@ export function getTokenDetailsRequestToJSON( GetTokenDetailsRequest$outboundSchema.parse(getTokenDetailsRequest), ); } - export function getTokenDetailsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -172,7 +142,6 @@ export const GetTokenDetailsResponse$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type GetTokenDetailsResponse$Outbound = | (components.Erc721Token$Outbound & { ercType: "ERC-721" }) @@ -196,19 +165,6 @@ export const GetTokenDetailsResponse$outboundSchema: z.ZodType< ), ]); -/** - * @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 { @@ -216,7 +172,6 @@ export function getTokenDetailsResponseToJSON( GetTokenDetailsResponse$outboundSchema.parse(getTokenDetailsResponse), ); } - export function getTokenDetailsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/gettotall1validatormetrics.ts b/chainkit/src/models/operations/gettotall1validatormetrics.ts index bb6dbd20..ac602cbe 100644 --- a/chainkit/src/models/operations/gettotall1validatormetrics.ts +++ b/chainkit/src/models/operations/gettotall1validatormetrics.ts @@ -46,23 +46,11 @@ export type GetTotalL1ValidatorMetricsRequest = { 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, @@ -73,7 +61,6 @@ export const GetTotalL1ValidatorMetricsRequest$inboundSchema: z.ZodType< startTimestamp: z.number().int().optional(), endTimestamp: z.number().int().optional(), }); - /** @internal */ export type GetTotalL1ValidatorMetricsRequest$Outbound = { metric: string; @@ -92,20 +79,6 @@ export const GetTotalL1ValidatorMetricsRequest$outboundSchema: z.ZodType< 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 { @@ -115,7 +88,6 @@ export function getTotalL1ValidatorMetricsRequestToJSON( ), ); } - export function getTotalL1ValidatorMetricsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/gettransaction.ts b/chainkit/src/models/operations/gettransaction.ts index e38e1b2c..5b429879 100644 --- a/chainkit/src/models/operations/gettransaction.ts +++ b/chainkit/src/models/operations/gettransaction.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetTransactionServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetTransactionGlobals = { @@ -37,7 +37,6 @@ export const GetTransactionGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetTransactionGlobals$Outbound = { chainId?: string | undefined; @@ -52,19 +51,6 @@ export const GetTransactionGlobals$outboundSchema: z.ZodType< 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 { @@ -72,7 +58,6 @@ export function getTransactionGlobalsToJSON( GetTransactionGlobals$outboundSchema.parse(getTransactionGlobals), ); } - export function getTransactionGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -92,7 +77,6 @@ export const GetTransactionRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), txHash: z.string(), }); - /** @internal */ export type GetTransactionRequest$Outbound = { chainId?: string | undefined; @@ -109,19 +93,6 @@ export const GetTransactionRequest$outboundSchema: z.ZodType< 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 { @@ -129,7 +100,6 @@ export function getTransactionRequestToJSON( GetTransactionRequest$outboundSchema.parse(getTransactionRequest), ); } - export function getTransactionRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/gettransactionsforblock.ts b/chainkit/src/models/operations/gettransactionsforblock.ts index 93f992a5..d783a8a3 100644 --- a/chainkit/src/models/operations/gettransactionsforblock.ts +++ b/chainkit/src/models/operations/gettransactionsforblock.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetTransactionsForBlockServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetTransactionsForBlockGlobals = { @@ -45,7 +45,6 @@ export const GetTransactionsForBlockGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type GetTransactionsForBlockGlobals$Outbound = { chainId?: string | undefined; @@ -60,19 +59,6 @@ export const GetTransactionsForBlockGlobals$outboundSchema: z.ZodType< 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 { @@ -82,7 +68,6 @@ export function getTransactionsForBlockGlobalsToJSON( ), ); } - export function getTransactionsForBlockGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -104,7 +89,6 @@ export const GetTransactionsForBlockRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), blockId: z.string(), }); - /** @internal */ export type GetTransactionsForBlockRequest$Outbound = { pageToken?: string | undefined; @@ -125,19 +109,6 @@ export const GetTransactionsForBlockRequest$outboundSchema: z.ZodType< 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 { @@ -147,7 +118,6 @@ export function getTransactionsForBlockRequestToJSON( ), ); } - export function getTransactionsForBlockRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/gettxbyhash.ts b/chainkit/src/models/operations/gettxbyhash.ts index 3bd07d59..25fab38b 100644 --- a/chainkit/src/models/operations/gettxbyhash.ts +++ b/chainkit/src/models/operations/gettxbyhash.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetTxByHashServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetTxByHashGlobals = { @@ -52,7 +52,6 @@ export const GetTxByHashGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetTxByHashGlobals$Outbound = { network?: string | undefined; @@ -67,19 +66,6 @@ export const GetTxByHashGlobals$outboundSchema: z.ZodType< 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 { @@ -87,7 +73,6 @@ export function getTxByHashGlobalsToJSON( GetTxByHashGlobals$outboundSchema.parse(getTxByHashGlobals), ); } - export function getTxByHashGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const GetTxByHashRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), txHash: z.string(), }); - /** @internal */ export type GetTxByHashRequest$Outbound = { blockchainId: string; @@ -127,19 +111,6 @@ export const GetTxByHashRequest$outboundSchema: z.ZodType< 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 { @@ -147,7 +118,6 @@ export function getTxByHashRequestToJSON( GetTxByHashRequest$outboundSchema.parse(getTxByHashRequest), ); } - export function getTxByHashRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -170,7 +140,6 @@ export const GetTxByHashResponse$inboundSchema: z.ZodType< components.XChainLinearTransaction$inboundSchema, components.XChainNonLinearTransaction$inboundSchema, ]); - /** @internal */ export type GetTxByHashResponse$Outbound = | components.CChainExportTransaction$Outbound @@ -192,19 +161,6 @@ export const GetTxByHashResponse$outboundSchema: z.ZodType< 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 { @@ -212,7 +168,6 @@ export function getTxByHashResponseToJSON( GetTxByHashResponse$outboundSchema.parse(getTxByHashResponse), ); } - export function getTxByHashResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getutxosbyaddresses.ts b/chainkit/src/models/operations/getutxosbyaddresses.ts index 75fbcee3..74555ddc 100644 --- a/chainkit/src/models/operations/getutxosbyaddresses.ts +++ b/chainkit/src/models/operations/getutxosbyaddresses.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetUtxosByAddressesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetUtxosByAddressesGlobals = { @@ -78,7 +78,6 @@ export const GetUtxosByAddressesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetUtxosByAddressesGlobals$Outbound = { network?: string | undefined; @@ -93,19 +92,6 @@ export const GetUtxosByAddressesGlobals$outboundSchema: z.ZodType< 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 { @@ -113,7 +99,6 @@ export function getUtxosByAddressesGlobalsToJSON( GetUtxosByAddressesGlobals$outboundSchema.parse(getUtxosByAddressesGlobals), ); } - export function getUtxosByAddressesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -140,7 +125,6 @@ export const GetUtxosByAddressesRequest$inboundSchema: z.ZodType< sortBy: components.UtxosSortByOption$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type GetUtxosByAddressesRequest$Outbound = { addresses?: string | undefined; @@ -171,19 +155,6 @@ export const GetUtxosByAddressesRequest$outboundSchema: z.ZodType< 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 { @@ -191,7 +162,6 @@ export function getUtxosByAddressesRequestToJSON( GetUtxosByAddressesRequest$outboundSchema.parse(getUtxosByAddressesRequest), ); } - export function getUtxosByAddressesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -211,7 +181,6 @@ export const GetUtxosByAddressesResponseBody$inboundSchema: z.ZodType< components.ListPChainUtxosResponse$inboundSchema, components.ListUtxosResponse$inboundSchema, ]); - /** @internal */ export type GetUtxosByAddressesResponseBody$Outbound = | components.ListPChainUtxosResponse$Outbound @@ -227,19 +196,6 @@ export const GetUtxosByAddressesResponseBody$outboundSchema: z.ZodType< 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 { @@ -249,7 +205,6 @@ export function getUtxosByAddressesResponseBodyToJSON( ), ); } - export function getUtxosByAddressesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -275,7 +230,6 @@ export const GetUtxosByAddressesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetUtxosByAddressesResponse$Outbound = { Result: @@ -299,19 +253,6 @@ export const GetUtxosByAddressesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -321,7 +262,6 @@ export function getUtxosByAddressesResponseToJSON( ), ); } - export function getUtxosByAddressesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getutxosbyaddressesv2.ts b/chainkit/src/models/operations/getutxosbyaddressesv2.ts index 6c19b806..fa0247b5 100644 --- a/chainkit/src/models/operations/getutxosbyaddressesv2.ts +++ b/chainkit/src/models/operations/getutxosbyaddressesv2.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetUtxosByAddressesV2ServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetUtxosByAddressesV2Globals = { @@ -75,7 +75,6 @@ export const GetUtxosByAddressesV2Globals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetUtxosByAddressesV2Globals$Outbound = { network?: string | undefined; @@ -90,19 +89,6 @@ export const GetUtxosByAddressesV2Globals$outboundSchema: z.ZodType< 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 GetUtxosByAddressesV2Globals$ { - /** @deprecated use `GetUtxosByAddressesV2Globals$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesV2Globals$inboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Globals$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesV2Globals$outboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Globals$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesV2Globals$Outbound; -} - export function getUtxosByAddressesV2GlobalsToJSON( getUtxosByAddressesV2Globals: GetUtxosByAddressesV2Globals, ): string { @@ -112,7 +98,6 @@ export function getUtxosByAddressesV2GlobalsToJSON( ), ); } - export function getUtxosByAddressesV2GlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -144,7 +129,6 @@ export const GetUtxosByAddressesV2Request$inboundSchema: z.ZodType< "PrimaryNetworkAddressesBodyDto": "primaryNetworkAddressesBodyDto", }); }); - /** @internal */ export type GetUtxosByAddressesV2Request$Outbound = { pageToken?: string | undefined; @@ -181,19 +165,6 @@ export const GetUtxosByAddressesV2Request$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesV2Request$ { - /** @deprecated use `GetUtxosByAddressesV2Request$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesV2Request$inboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Request$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesV2Request$outboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Request$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesV2Request$Outbound; -} - export function getUtxosByAddressesV2RequestToJSON( getUtxosByAddressesV2Request: GetUtxosByAddressesV2Request, ): string { @@ -203,7 +174,6 @@ export function getUtxosByAddressesV2RequestToJSON( ), ); } - export function getUtxosByAddressesV2RequestFromJSON( jsonString: string, ): SafeParseResult { @@ -223,7 +193,6 @@ export const GetUtxosByAddressesV2ResponseBody$inboundSchema: z.ZodType< components.ListPChainUtxosResponse$inboundSchema, components.ListUtxosResponse$inboundSchema, ]); - /** @internal */ export type GetUtxosByAddressesV2ResponseBody$Outbound = | components.ListPChainUtxosResponse$Outbound @@ -239,20 +208,6 @@ export const GetUtxosByAddressesV2ResponseBody$outboundSchema: z.ZodType< 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 GetUtxosByAddressesV2ResponseBody$ { - /** @deprecated use `GetUtxosByAddressesV2ResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesV2ResponseBody$inboundSchema; - /** @deprecated use `GetUtxosByAddressesV2ResponseBody$outboundSchema` instead. */ - export const outboundSchema = - GetUtxosByAddressesV2ResponseBody$outboundSchema; - /** @deprecated use `GetUtxosByAddressesV2ResponseBody$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesV2ResponseBody$Outbound; -} - export function getUtxosByAddressesV2ResponseBodyToJSON( getUtxosByAddressesV2ResponseBody: GetUtxosByAddressesV2ResponseBody, ): string { @@ -262,7 +217,6 @@ export function getUtxosByAddressesV2ResponseBodyToJSON( ), ); } - export function getUtxosByAddressesV2ResponseBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -288,7 +242,6 @@ export const GetUtxosByAddressesV2Response$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetUtxosByAddressesV2Response$Outbound = { Result: @@ -312,19 +265,6 @@ export const GetUtxosByAddressesV2Response$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetUtxosByAddressesV2Response$ { - /** @deprecated use `GetUtxosByAddressesV2Response$inboundSchema` instead. */ - export const inboundSchema = GetUtxosByAddressesV2Response$inboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Response$outboundSchema` instead. */ - export const outboundSchema = GetUtxosByAddressesV2Response$outboundSchema; - /** @deprecated use `GetUtxosByAddressesV2Response$Outbound` instead. */ - export type Outbound = GetUtxosByAddressesV2Response$Outbound; -} - export function getUtxosByAddressesV2ResponseToJSON( getUtxosByAddressesV2Response: GetUtxosByAddressesV2Response, ): string { @@ -334,7 +274,6 @@ export function getUtxosByAddressesV2ResponseToJSON( ), ); } - export function getUtxosByAddressesV2ResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getvalidatorsbydaterange.ts b/chainkit/src/models/operations/getvalidatorsbydaterange.ts index 3b80d3c1..f052c9ea 100644 --- a/chainkit/src/models/operations/getvalidatorsbydaterange.ts +++ b/chainkit/src/models/operations/getvalidatorsbydaterange.ts @@ -57,7 +57,6 @@ export const GetValidatorsByDateRangeRequest$inboundSchema: z.ZodType< subnetId: z.string(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type GetValidatorsByDateRangeRequest$Outbound = { startTimestamp?: number | undefined; @@ -82,19 +81,6 @@ export const GetValidatorsByDateRangeRequest$outboundSchema: z.ZodType< 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 { @@ -104,7 +90,6 @@ export function getValidatorsByDateRangeRequestToJSON( ), ); } - export function getValidatorsByDateRangeRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -127,7 +112,6 @@ export const GetValidatorsByDateRangeResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetValidatorsByDateRangeResponse$Outbound = { Result: components.PChainLookingGlassResponse$Outbound; @@ -146,19 +130,6 @@ export const GetValidatorsByDateRangeResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -168,7 +139,6 @@ export function getValidatorsByDateRangeResponseToJSON( ), ); } - export function getValidatorsByDateRangeResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getvertexbyhash.ts b/chainkit/src/models/operations/getvertexbyhash.ts index 00074be8..bf9fcfd8 100644 --- a/chainkit/src/models/operations/getvertexbyhash.ts +++ b/chainkit/src/models/operations/getvertexbyhash.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetVertexByHashServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetVertexByHashGlobals = { @@ -42,7 +42,6 @@ export const GetVertexByHashGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetVertexByHashGlobals$Outbound = { network?: string | undefined; @@ -57,19 +56,6 @@ export const GetVertexByHashGlobals$outboundSchema: z.ZodType< 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 { @@ -77,7 +63,6 @@ export function getVertexByHashGlobalsToJSON( GetVertexByHashGlobals$outboundSchema.parse(getVertexByHashGlobals), ); } - export function getVertexByHashGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -98,7 +83,6 @@ export const GetVertexByHashRequest$inboundSchema: z.ZodType< blockchainId: components.XChainId$inboundSchema, network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetVertexByHashRequest$Outbound = { vertexHash: string; @@ -117,19 +101,6 @@ export const GetVertexByHashRequest$outboundSchema: z.ZodType< 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 { @@ -137,7 +108,6 @@ export function getVertexByHashRequestToJSON( GetVertexByHashRequest$outboundSchema.parse(getVertexByHashRequest), ); } - export function getVertexByHashRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getvertexbyheight.ts b/chainkit/src/models/operations/getvertexbyheight.ts index cf94e65f..ceabae49 100644 --- a/chainkit/src/models/operations/getvertexbyheight.ts +++ b/chainkit/src/models/operations/getvertexbyheight.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetVertexByHeightServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetVertexByHeightGlobals = { @@ -59,7 +59,6 @@ export const GetVertexByHeightGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type GetVertexByHeightGlobals$Outbound = { network?: string | undefined; @@ -74,19 +73,6 @@ export const GetVertexByHeightGlobals$outboundSchema: z.ZodType< 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 { @@ -94,7 +80,6 @@ export function getVertexByHeightGlobalsToJSON( GetVertexByHeightGlobals$outboundSchema.parse(getVertexByHeightGlobals), ); } - export function getVertexByHeightGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -118,7 +103,6 @@ export const GetVertexByHeightRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type GetVertexByHeightRequest$Outbound = { vertexHeight: number; @@ -143,19 +127,6 @@ export const GetVertexByHeightRequest$outboundSchema: z.ZodType< 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 { @@ -163,7 +134,6 @@ export function getVertexByHeightRequestToJSON( GetVertexByHeightRequest$outboundSchema.parse(getVertexByHeightRequest), ); } - export function getVertexByHeightRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const GetVertexByHeightResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type GetVertexByHeightResponse$Outbound = { Result: components.ListXChainVerticesResponse$Outbound; @@ -205,19 +174,6 @@ export const GetVertexByHeightResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -225,7 +181,6 @@ export function getVertexByHeightResponseToJSON( GetVertexByHeightResponse$outboundSchema.parse(getVertexByHeightResponse), ); } - export function getVertexByHeightResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/getwebhook.ts b/chainkit/src/models/operations/getwebhook.ts index 9bf3fb03..5a450768 100644 --- a/chainkit/src/models/operations/getwebhook.ts +++ b/chainkit/src/models/operations/getwebhook.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const GetWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type GetWebhookRequest = { @@ -35,7 +35,6 @@ export const GetWebhookRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetWebhookRequest$Outbound = { id: string; @@ -50,19 +49,6 @@ export const GetWebhookRequest$outboundSchema: z.ZodType< 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 { @@ -70,7 +56,6 @@ export function getWebhookRequestToJSON( GetWebhookRequest$outboundSchema.parse(getWebhookRequest), ); } - export function getWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -91,7 +76,6 @@ export const GetWebhookResponse$inboundSchema: z.ZodType< components.PrimaryNetworkAddressActivityResponse$inboundSchema, components.ValidatorActivityResponse$inboundSchema, ]); - /** @internal */ export type GetWebhookResponse$Outbound = | components.EVMAddressActivityResponse$Outbound @@ -109,19 +93,6 @@ export const GetWebhookResponse$outboundSchema: z.ZodType< 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 { @@ -129,7 +100,6 @@ export function getWebhookResponseToJSON( GetWebhookResponse$outboundSchema.parse(getWebhookResponse), ); } - export function getWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/index.ts b/chainkit/src/models/operations/index.ts index ea2e9626..c5da8193 100644 --- a/chainkit/src/models/operations/index.ts +++ b/chainkit/src/models/operations/index.ts @@ -95,6 +95,7 @@ export * from "./listtransactions.js"; export * from "./listtransfers.js"; export * from "./listvalidators.js"; export * from "./listwebhooks.js"; +export * from "./livecheck.js"; export * from "./metricshealthcheck.js"; export * from "./posttransactionexportjob.js"; export * from "./reindexnft.js"; diff --git a/chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts b/chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts index 54195273..e346f0d8 100644 --- a/chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts +++ b/chainkit/src/models/operations/listactiveprimarynetworkstakingtransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListActivePrimaryNetworkStakingTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListActivePrimaryNetworkStakingTransactionsGlobals = { @@ -72,7 +72,6 @@ export const ListActivePrimaryNetworkStakingTransactionsGlobals$inboundSchema: > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListActivePrimaryNetworkStakingTransactionsGlobals$Outbound = { network?: string | undefined; @@ -88,22 +87,6 @@ export const ListActivePrimaryNetworkStakingTransactionsGlobals$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 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, @@ -114,7 +97,6 @@ export function listActivePrimaryNetworkStakingTransactionsGlobalsToJSON( ), ); } - export function listActivePrimaryNetworkStakingTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult< @@ -148,7 +130,6 @@ export const ListActivePrimaryNetworkStakingTransactionsRequest$inboundSchema: network: components.GlobalParamNetwork$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListActivePrimaryNetworkStakingTransactionsRequest$Outbound = { addresses?: string | undefined; @@ -180,22 +161,6 @@ export const ListActivePrimaryNetworkStakingTransactionsRequest$outboundSchema: 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, @@ -206,7 +171,6 @@ export function listActivePrimaryNetworkStakingTransactionsRequestToJSON( ), ); } - export function listActivePrimaryNetworkStakingTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -236,7 +200,6 @@ export const ListActivePrimaryNetworkStakingTransactionsResponse$inboundSchema: "Result": "result", }); }); - /** @internal */ export type ListActivePrimaryNetworkStakingTransactionsResponse$Outbound = { Result: components.ListPChainTransactionsResponse$Outbound; @@ -256,22 +219,6 @@ export const ListActivePrimaryNetworkStakingTransactionsResponse$outboundSchema: }); }); -/** - * @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, @@ -282,7 +229,6 @@ export function listActivePrimaryNetworkStakingTransactionsResponseToJSON( ), ); } - export function listActivePrimaryNetworkStakingTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listaddresschains.ts b/chainkit/src/models/operations/listaddresschains.ts index 82e159db..40bf7bff 100644 --- a/chainkit/src/models/operations/listaddresschains.ts +++ b/chainkit/src/models/operations/listaddresschains.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListAddressChainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListAddressChainsRequest = { @@ -26,7 +26,6 @@ export const ListAddressChainsRequest$inboundSchema: z.ZodType< > = z.object({ address: z.string(), }); - /** @internal */ export type ListAddressChainsRequest$Outbound = { address: string; @@ -41,19 +40,6 @@ export const ListAddressChainsRequest$outboundSchema: z.ZodType< 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 { @@ -61,7 +47,6 @@ export function listAddressChainsRequestToJSON( ListAddressChainsRequest$outboundSchema.parse(listAddressChainsRequest), ); } - export function listAddressChainsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listalllatestblocks.ts b/chainkit/src/models/operations/listalllatestblocks.ts index 9ef9a4f1..e0fd1b86 100644 --- a/chainkit/src/models/operations/listalllatestblocks.ts +++ b/chainkit/src/models/operations/listalllatestblocks.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListAllLatestBlocksServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListAllLatestBlocksRequest = { @@ -42,7 +42,6 @@ export const ListAllLatestBlocksRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(10), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListAllLatestBlocksRequest$Outbound = { pageToken?: string | undefined; @@ -61,19 +60,6 @@ export const ListAllLatestBlocksRequest$outboundSchema: z.ZodType< 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 { @@ -81,7 +67,6 @@ export function listAllLatestBlocksRequestToJSON( ListAllLatestBlocksRequest$outboundSchema.parse(listAllLatestBlocksRequest), ); } - export function listAllLatestBlocksRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -104,7 +89,6 @@ export const ListAllLatestBlocksResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListAllLatestBlocksResponse$Outbound = { Result: components.ListEvmBlocksResponse$Outbound; @@ -123,19 +107,6 @@ export const ListAllLatestBlocksResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -145,7 +116,6 @@ export function listAllLatestBlocksResponseToJSON( ), ); } - export function listAllLatestBlocksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listalllatesttransactions.ts b/chainkit/src/models/operations/listalllatesttransactions.ts index 24578790..1bf703a1 100644 --- a/chainkit/src/models/operations/listalllatesttransactions.ts +++ b/chainkit/src/models/operations/listalllatesttransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListAllLatestTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListAllLatestTransactionsRequest = { @@ -47,7 +47,6 @@ export const ListAllLatestTransactionsRequest$inboundSchema: z.ZodType< network: components.Network$inboundSchema.optional(), status: components.TransactionStatus$inboundSchema.optional(), }); - /** @internal */ export type ListAllLatestTransactionsRequest$Outbound = { pageToken?: string | undefined; @@ -68,19 +67,6 @@ export const ListAllLatestTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -90,7 +76,6 @@ export function listAllLatestTransactionsRequestToJSON( ), ); } - export function listAllLatestTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +98,6 @@ export const ListAllLatestTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListAllLatestTransactionsResponse$Outbound = { Result: components.ListNativeTransactionsResponse$Outbound; @@ -132,20 +116,6 @@ export const ListAllLatestTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -155,7 +125,6 @@ export function listAllLatestTransactionsResponseToJSON( ), ); } - export function listAllLatestTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listassettransactions.ts b/chainkit/src/models/operations/listassettransactions.ts index 34fc806a..f96c27bd 100644 --- a/chainkit/src/models/operations/listassettransactions.ts +++ b/chainkit/src/models/operations/listassettransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListAssetTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListAssetTransactionsGlobals = { @@ -67,7 +67,6 @@ export const ListAssetTransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListAssetTransactionsGlobals$Outbound = { network?: string | undefined; @@ -82,19 +81,6 @@ export const ListAssetTransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -104,7 +90,6 @@ export function listAssetTransactionsGlobalsToJSON( ), ); } - export function listAssetTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -130,7 +115,6 @@ export const ListAssetTransactionsRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), assetId: z.string(), }); - /** @internal */ export type ListAssetTransactionsRequest$Outbound = { txTypes?: Array | undefined; @@ -159,19 +143,6 @@ export const ListAssetTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -181,7 +152,6 @@ export function listAssetTransactionsRequestToJSON( ), ); } - export function listAssetTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -204,7 +174,6 @@ export const ListAssetTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListAssetTransactionsResponse$Outbound = { Result: components.ListXChainTransactionsResponse$Outbound; @@ -223,19 +192,6 @@ export const ListAssetTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -245,7 +201,6 @@ export function listAssetTransactionsResponseToJSON( ), ); } - export function listAssetTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listblockchains.ts b/chainkit/src/models/operations/listblockchains.ts index 26783436..2c2c2fd7 100644 --- a/chainkit/src/models/operations/listblockchains.ts +++ b/chainkit/src/models/operations/listblockchains.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListBlockchainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListBlockchainsGlobals = { @@ -51,7 +51,6 @@ export const ListBlockchainsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListBlockchainsGlobals$Outbound = { network?: string | undefined; @@ -66,19 +65,6 @@ export const ListBlockchainsGlobals$outboundSchema: z.ZodType< 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 { @@ -86,7 +72,6 @@ export function listBlockchainsGlobalsToJSON( ListBlockchainsGlobals$outboundSchema.parse(listBlockchainsGlobals), ); } - export function listBlockchainsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const ListBlockchainsRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListBlockchainsRequest$Outbound = { pageToken?: string | undefined; @@ -129,19 +113,6 @@ export const ListBlockchainsRequest$outboundSchema: z.ZodType< 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 { @@ -149,7 +120,6 @@ export function listBlockchainsRequestToJSON( ListBlockchainsRequest$outboundSchema.parse(listBlockchainsRequest), ); } - export function listBlockchainsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -172,7 +142,6 @@ export const ListBlockchainsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListBlockchainsResponse$Outbound = { Result: components.ListBlockchainsResponse$Outbound; @@ -191,19 +160,6 @@ export const ListBlockchainsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -211,7 +167,6 @@ export function listBlockchainsResponseToJSON( ListBlockchainsResponse$outboundSchema.parse(listBlockchainsResponse), ); } - export function listBlockchainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listchains.ts b/chainkit/src/models/operations/listchains.ts index 21f27c1b..b0042b67 100644 --- a/chainkit/src/models/operations/listchains.ts +++ b/chainkit/src/models/operations/listchains.ts @@ -37,7 +37,6 @@ export const ListChainsRequest$inboundSchema: z.ZodType< pageToken: z.string().optional(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListChainsRequest$Outbound = { pageToken?: string | undefined; @@ -54,19 +53,6 @@ export const ListChainsRequest$outboundSchema: z.ZodType< 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 { @@ -74,7 +60,6 @@ export function listChainsRequestToJSON( ListChainsRequest$outboundSchema.parse(listChainsRequest), ); } - export function listChainsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const ListChainsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListChainsResponse$Outbound = { Result: components.MetricsListChainsResponse$Outbound; @@ -116,19 +100,6 @@ export const ListChainsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -136,7 +107,6 @@ export function listChainsResponseToJSON( ListChainsResponse$outboundSchema.parse(listChainsResponse), ); } - export function listChainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listcollectiblebalances.ts b/chainkit/src/models/operations/listcollectiblebalances.ts index b2e2c838..13094696 100644 --- a/chainkit/src/models/operations/listcollectiblebalances.ts +++ b/chainkit/src/models/operations/listcollectiblebalances.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListCollectibleBalancesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListCollectibleBalancesGlobals = { @@ -55,7 +55,6 @@ export const ListCollectibleBalancesGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListCollectibleBalancesGlobals$Outbound = { chainId?: string | undefined; @@ -70,19 +69,6 @@ export const ListCollectibleBalancesGlobals$outboundSchema: z.ZodType< 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 { @@ -92,7 +78,6 @@ export function listCollectibleBalancesGlobalsToJSON( ), ); } - export function listCollectibleBalancesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -115,7 +100,6 @@ export const ListCollectibleBalancesRequest$inboundSchema: z.ZodType< address: z.string(), contractAddress: z.string().optional(), }); - /** @internal */ export type ListCollectibleBalancesRequest$Outbound = { pageToken?: string | undefined; @@ -138,19 +122,6 @@ export const ListCollectibleBalancesRequest$outboundSchema: z.ZodType< 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 { @@ -160,7 +131,6 @@ export function listCollectibleBalancesRequestToJSON( ), ); } - export function listCollectibleBalancesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -183,7 +153,6 @@ export const ListCollectibleBalancesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListCollectibleBalancesResponse$Outbound = { Result: components.ListCollectibleBalancesResponse$Outbound; @@ -202,19 +171,6 @@ export const ListCollectibleBalancesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -224,7 +180,6 @@ export function listCollectibleBalancesResponseToJSON( ), ); } - export function listCollectibleBalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listcontractdeployments.ts b/chainkit/src/models/operations/listcontractdeployments.ts index c8ea1841..3a629efc 100644 --- a/chainkit/src/models/operations/listcontractdeployments.ts +++ b/chainkit/src/models/operations/listcontractdeployments.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListContractDeploymentsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListContractDeploymentsGlobals = { @@ -51,7 +51,6 @@ export const ListContractDeploymentsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListContractDeploymentsGlobals$Outbound = { chainId?: string | undefined; @@ -66,19 +65,6 @@ export const ListContractDeploymentsGlobals$outboundSchema: z.ZodType< 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 { @@ -88,7 +74,6 @@ export function listContractDeploymentsGlobalsToJSON( ), ); } - export function listContractDeploymentsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const ListContractDeploymentsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListContractDeploymentsRequest$Outbound = { pageToken?: string | undefined; @@ -131,19 +115,6 @@ export const ListContractDeploymentsRequest$outboundSchema: z.ZodType< 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 { @@ -153,7 +124,6 @@ export function listContractDeploymentsRequestToJSON( ), ); } - export function listContractDeploymentsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -176,7 +146,6 @@ export const ListContractDeploymentsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListContractDeploymentsResponse$Outbound = { Result: components.ListContractsResponse$Outbound; @@ -195,19 +164,6 @@ export const ListContractDeploymentsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -217,7 +173,6 @@ export function listContractDeploymentsResponseToJSON( ), ); } - export function listContractDeploymentsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listdelegators.ts b/chainkit/src/models/operations/listdelegators.ts index 60c36c0c..a605d814 100644 --- a/chainkit/src/models/operations/listdelegators.ts +++ b/chainkit/src/models/operations/listdelegators.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListDelegatorsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListDelegatorsGlobals = { @@ -63,7 +63,6 @@ export const ListDelegatorsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListDelegatorsGlobals$Outbound = { network?: string | undefined; @@ -78,19 +77,6 @@ export const ListDelegatorsGlobals$outboundSchema: z.ZodType< 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 { @@ -98,7 +84,6 @@ export function listDelegatorsGlobalsToJSON( ListDelegatorsGlobals$outboundSchema.parse(listDelegatorsGlobals), ); } - export function listDelegatorsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -123,7 +108,6 @@ export const ListDelegatorsRequest$inboundSchema: z.ZodType< delegationStatus: components.DelegationStatusType$inboundSchema.optional(), nodeIds: z.string().optional(), }); - /** @internal */ export type ListDelegatorsRequest$Outbound = { pageToken?: string | undefined; @@ -150,19 +134,6 @@ export const ListDelegatorsRequest$outboundSchema: z.ZodType< 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 { @@ -170,7 +141,6 @@ export function listDelegatorsRequestToJSON( ListDelegatorsRequest$outboundSchema.parse(listDelegatorsRequest), ); } - export function listDelegatorsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -193,7 +163,6 @@ export const ListDelegatorsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListDelegatorsResponse$Outbound = { Result: components.ListDelegatorDetailsResponse$Outbound; @@ -212,19 +181,6 @@ export const ListDelegatorsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -232,7 +188,6 @@ export function listDelegatorsResponseToJSON( ListDelegatorsResponse$outboundSchema.parse(listDelegatorsResponse), ); } - export function listDelegatorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc1155balances.ts b/chainkit/src/models/operations/listerc1155balances.ts index 21f37834..b5fdec9a 100644 --- a/chainkit/src/models/operations/listerc1155balances.ts +++ b/chainkit/src/models/operations/listerc1155balances.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc1155BalancesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc1155BalancesGlobals = { @@ -59,7 +59,6 @@ export const ListErc1155BalancesGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc1155BalancesGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListErc1155BalancesGlobals$outboundSchema: z.ZodType< 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 { @@ -94,7 +80,6 @@ export function listErc1155BalancesGlobalsToJSON( ListErc1155BalancesGlobals$outboundSchema.parse(listErc1155BalancesGlobals), ); } - export function listErc1155BalancesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -118,7 +103,6 @@ export const ListErc1155BalancesRequest$inboundSchema: z.ZodType< address: z.string(), contractAddress: z.string().optional(), }); - /** @internal */ export type ListErc1155BalancesRequest$Outbound = { blockNumber?: string | undefined; @@ -143,19 +127,6 @@ export const ListErc1155BalancesRequest$outboundSchema: z.ZodType< 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 { @@ -163,7 +134,6 @@ export function listErc1155BalancesRequestToJSON( ListErc1155BalancesRequest$outboundSchema.parse(listErc1155BalancesRequest), ); } - export function listErc1155BalancesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const ListErc1155BalancesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc1155BalancesResponse$Outbound = { Result: components.ListErc1155BalancesResponse$Outbound; @@ -205,19 +174,6 @@ export const ListErc1155BalancesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -227,7 +183,6 @@ export function listErc1155BalancesResponseToJSON( ), ); } - export function listErc1155BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc1155transactions.ts b/chainkit/src/models/operations/listerc1155transactions.ts index 3b4707c8..2801883e 100644 --- a/chainkit/src/models/operations/listerc1155transactions.ts +++ b/chainkit/src/models/operations/listerc1155transactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc1155TransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc1155TransactionsGlobals = { @@ -59,7 +59,6 @@ export const ListErc1155TransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc1155TransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListErc1155TransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function listErc1155TransactionsGlobalsToJSON( ), ); } - export function listErc1155TransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListErc1155TransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListErc1155TransactionsRequest$Outbound = { startBlock?: number | undefined; @@ -145,19 +129,6 @@ export const ListErc1155TransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listErc1155TransactionsRequestToJSON( ), ); } - export function listErc1155TransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListErc1155TransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc1155TransactionsResponse$Outbound = { Result: components.ListErc1155TransactionsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListErc1155TransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -231,7 +187,6 @@ export function listErc1155TransactionsResponseToJSON( ), ); } - export function listErc1155TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc20balances.ts b/chainkit/src/models/operations/listerc20balances.ts index ca418034..8886e8fb 100644 --- a/chainkit/src/models/operations/listerc20balances.ts +++ b/chainkit/src/models/operations/listerc20balances.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc20BalancesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc20BalancesGlobals = { @@ -67,7 +67,6 @@ export const ListErc20BalancesGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc20BalancesGlobals$Outbound = { chainId?: string | undefined; @@ -82,19 +81,6 @@ export const ListErc20BalancesGlobals$outboundSchema: z.ZodType< 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 { @@ -102,7 +88,6 @@ export function listErc20BalancesGlobalsToJSON( ListErc20BalancesGlobals$outboundSchema.parse(listErc20BalancesGlobals), ); } - export function listErc20BalancesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +113,6 @@ export const ListErc20BalancesRequest$inboundSchema: z.ZodType< contractAddresses: z.string().optional(), currency: components.CurrencyCode$inboundSchema.optional(), }); - /** @internal */ export type ListErc20BalancesRequest$Outbound = { blockNumber?: string | undefined; @@ -157,19 +141,6 @@ export const ListErc20BalancesRequest$outboundSchema: z.ZodType< 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 { @@ -177,7 +148,6 @@ export function listErc20BalancesRequestToJSON( ListErc20BalancesRequest$outboundSchema.parse(listErc20BalancesRequest), ); } - export function listErc20BalancesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -200,7 +170,6 @@ export const ListErc20BalancesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc20BalancesResponse$Outbound = { Result: components.ListErc20BalancesResponse$Outbound; @@ -219,19 +188,6 @@ export const ListErc20BalancesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -239,7 +195,6 @@ export function listErc20BalancesResponseToJSON( ListErc20BalancesResponse$outboundSchema.parse(listErc20BalancesResponse), ); } - export function listErc20BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc20transactions.ts b/chainkit/src/models/operations/listerc20transactions.ts index 27b0dea8..7ea10156 100644 --- a/chainkit/src/models/operations/listerc20transactions.ts +++ b/chainkit/src/models/operations/listerc20transactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc20TransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc20TransactionsGlobals = { @@ -59,7 +59,6 @@ export const ListErc20TransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc20TransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListErc20TransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function listErc20TransactionsGlobalsToJSON( ), ); } - export function listErc20TransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListErc20TransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListErc20TransactionsRequest$Outbound = { startBlock?: number | undefined; @@ -145,19 +129,6 @@ export const ListErc20TransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listErc20TransactionsRequestToJSON( ), ); } - export function listErc20TransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListErc20TransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc20TransactionsResponse$Outbound = { Result: components.ListErc20TransactionsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListErc20TransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -231,7 +187,6 @@ export function listErc20TransactionsResponseToJSON( ), ); } - export function listErc20TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc721balances.ts b/chainkit/src/models/operations/listerc721balances.ts index 9581f30c..07808b4e 100644 --- a/chainkit/src/models/operations/listerc721balances.ts +++ b/chainkit/src/models/operations/listerc721balances.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc721BalancesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc721BalancesGlobals = { @@ -55,7 +55,6 @@ export const ListErc721BalancesGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc721BalancesGlobals$Outbound = { chainId?: string | undefined; @@ -70,19 +69,6 @@ export const ListErc721BalancesGlobals$outboundSchema: z.ZodType< 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 { @@ -90,7 +76,6 @@ export function listErc721BalancesGlobalsToJSON( ListErc721BalancesGlobals$outboundSchema.parse(listErc721BalancesGlobals), ); } - export function listErc721BalancesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -113,7 +98,6 @@ export const ListErc721BalancesRequest$inboundSchema: z.ZodType< address: z.string(), contractAddress: z.string().optional(), }); - /** @internal */ export type ListErc721BalancesRequest$Outbound = { pageToken?: string | undefined; @@ -136,19 +120,6 @@ export const ListErc721BalancesRequest$outboundSchema: z.ZodType< 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 { @@ -156,7 +127,6 @@ export function listErc721BalancesRequestToJSON( ListErc721BalancesRequest$outboundSchema.parse(listErc721BalancesRequest), ); } - export function listErc721BalancesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -179,7 +149,6 @@ export const ListErc721BalancesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc721BalancesResponse$Outbound = { Result: components.ListErc721BalancesResponse$Outbound; @@ -198,19 +167,6 @@ export const ListErc721BalancesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -218,7 +174,6 @@ export function listErc721BalancesResponseToJSON( ListErc721BalancesResponse$outboundSchema.parse(listErc721BalancesResponse), ); } - export function listErc721BalancesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listerc721transactions.ts b/chainkit/src/models/operations/listerc721transactions.ts index f8bc71bd..24a44168 100644 --- a/chainkit/src/models/operations/listerc721transactions.ts +++ b/chainkit/src/models/operations/listerc721transactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListErc721TransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListErc721TransactionsGlobals = { @@ -59,7 +59,6 @@ export const ListErc721TransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListErc721TransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListErc721TransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function listErc721TransactionsGlobalsToJSON( ), ); } - export function listErc721TransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListErc721TransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListErc721TransactionsRequest$Outbound = { startBlock?: number | undefined; @@ -145,19 +129,6 @@ export const ListErc721TransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listErc721TransactionsRequestToJSON( ), ); } - export function listErc721TransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListErc721TransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListErc721TransactionsResponse$Outbound = { Result: components.ListErc721TransactionsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListErc721TransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -231,7 +187,6 @@ export function listErc721TransactionsResponseToJSON( ), ); } - export function listErc721TransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts b/chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts index c6067833..14ca14d9 100644 --- a/chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts +++ b/chainkit/src/models/operations/listhistoricalprimarynetworkrewards.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListHistoricalPrimaryNetworkRewardsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListHistoricalPrimaryNetworkRewardsGlobals = { @@ -61,7 +61,6 @@ export const ListHistoricalPrimaryNetworkRewardsGlobals$inboundSchema: z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListHistoricalPrimaryNetworkRewardsGlobals$Outbound = { network?: string | undefined; @@ -77,21 +76,6 @@ export const ListHistoricalPrimaryNetworkRewardsGlobals$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 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, @@ -102,7 +86,6 @@ export function listHistoricalPrimaryNetworkRewardsGlobalsToJSON( ), ); } - export function listHistoricalPrimaryNetworkRewardsGlobalsFromJSON( jsonString: string, ): SafeParseResult< @@ -131,7 +114,6 @@ export const ListHistoricalPrimaryNetworkRewardsRequest$inboundSchema: sortOrder: components.SortOrder$inboundSchema.optional(), currency: components.CurrencyCode$inboundSchema.optional(), }); - /** @internal */ export type ListHistoricalPrimaryNetworkRewardsRequest$Outbound = { addresses?: string | undefined; @@ -159,21 +141,6 @@ export const ListHistoricalPrimaryNetworkRewardsRequest$outboundSchema: 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, @@ -184,7 +151,6 @@ export function listHistoricalPrimaryNetworkRewardsRequestToJSON( ), ); } - export function listHistoricalPrimaryNetworkRewardsRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -214,7 +180,6 @@ export const ListHistoricalPrimaryNetworkRewardsResponse$inboundSchema: "Result": "result", }); }); - /** @internal */ export type ListHistoricalPrimaryNetworkRewardsResponse$Outbound = { Result: components.ListHistoricalRewardsResponse$Outbound; @@ -234,21 +199,6 @@ export const ListHistoricalPrimaryNetworkRewardsResponse$outboundSchema: }); }); -/** - * @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, @@ -259,7 +209,6 @@ export function listHistoricalPrimaryNetworkRewardsResponseToJSON( ), ); } - export function listHistoricalPrimaryNetworkRewardsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listicmmessages.ts b/chainkit/src/models/operations/listicmmessages.ts index 5846773d..0b7bedc8 100644 --- a/chainkit/src/models/operations/listicmmessages.ts +++ b/chainkit/src/models/operations/listicmmessages.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListIcmMessagesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListIcmMessagesRequest = { @@ -67,7 +67,6 @@ export const ListIcmMessagesRequest$inboundSchema: z.ZodType< from: z.string().optional(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListIcmMessagesRequest$Outbound = { pageToken?: string | undefined; @@ -96,19 +95,6 @@ export const ListIcmMessagesRequest$outboundSchema: z.ZodType< 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 { @@ -116,7 +102,6 @@ export function listIcmMessagesRequestToJSON( ListIcmMessagesRequest$outboundSchema.parse(listIcmMessagesRequest), ); } - export function listIcmMessagesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -139,7 +124,6 @@ export const ListIcmMessagesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListIcmMessagesResponse$Outbound = { Result: components.ListIcmMessagesResponse$Outbound; @@ -158,19 +142,6 @@ export const ListIcmMessagesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -178,7 +149,6 @@ export function listIcmMessagesResponseToJSON( ListIcmMessagesResponse$outboundSchema.parse(listIcmMessagesResponse), ); } - export function listIcmMessagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listicmmessagesbyaddress.ts b/chainkit/src/models/operations/listicmmessagesbyaddress.ts index 23fbd969..5e607abb 100644 --- a/chainkit/src/models/operations/listicmmessagesbyaddress.ts +++ b/chainkit/src/models/operations/listicmmessagesbyaddress.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListIcmMessagesByAddressServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListIcmMessagesByAddressRequest = { @@ -42,7 +42,6 @@ export const ListIcmMessagesByAddressRequest$inboundSchema: z.ZodType< address: z.string(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListIcmMessagesByAddressRequest$Outbound = { pageToken?: string | undefined; @@ -63,19 +62,6 @@ export const ListIcmMessagesByAddressRequest$outboundSchema: z.ZodType< 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 { @@ -85,7 +71,6 @@ export function listIcmMessagesByAddressRequestToJSON( ), ); } - export function listIcmMessagesByAddressRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listinternaltransactions.ts b/chainkit/src/models/operations/listinternaltransactions.ts index 5efbab6f..efbc878b 100644 --- a/chainkit/src/models/operations/listinternaltransactions.ts +++ b/chainkit/src/models/operations/listinternaltransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListInternalTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListInternalTransactionsGlobals = { @@ -59,7 +59,6 @@ export const ListInternalTransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListInternalTransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListInternalTransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function listInternalTransactionsGlobalsToJSON( ), ); } - export function listInternalTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListInternalTransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListInternalTransactionsRequest$Outbound = { startBlock?: number | undefined; @@ -145,19 +129,6 @@ export const ListInternalTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listInternalTransactionsRequestToJSON( ), ); } - export function listInternalTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListInternalTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListInternalTransactionsResponse$Outbound = { Result: components.ListInternalTransactionsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListInternalTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -231,7 +187,6 @@ export function listInternalTransactionsResponseToJSON( ), ); } - export function listInternalTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listl1validators.ts b/chainkit/src/models/operations/listl1validators.ts index 1d0e42ba..26114b68 100644 --- a/chainkit/src/models/operations/listl1validators.ts +++ b/chainkit/src/models/operations/listl1validators.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListL1ValidatorsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListL1ValidatorsGlobals = { @@ -60,7 +60,6 @@ export const ListL1ValidatorsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListL1ValidatorsGlobals$Outbound = { network?: string | undefined; @@ -75,19 +74,6 @@ export const ListL1ValidatorsGlobals$outboundSchema: z.ZodType< 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 { @@ -95,7 +81,6 @@ export function listL1ValidatorsGlobalsToJSON( ListL1ValidatorsGlobals$outboundSchema.parse(listL1ValidatorsGlobals), ); } - export function listL1ValidatorsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListL1ValidatorsRequest$inboundSchema: z.ZodType< nodeId: z.string().optional(), subnetId: z.any().optional(), }); - /** @internal */ export type ListL1ValidatorsRequest$Outbound = { pageToken?: string | undefined; @@ -147,19 +131,6 @@ export const ListL1ValidatorsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listL1ValidatorsRequestToJSON( ListL1ValidatorsRequest$outboundSchema.parse(listL1ValidatorsRequest), ); } - export function listL1ValidatorsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListL1ValidatorsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListL1ValidatorsResponse$Outbound = { Result: components.ListL1ValidatorsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListL1ValidatorsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -229,7 +185,6 @@ export function listL1ValidatorsResponseToJSON( ListL1ValidatorsResponse$outboundSchema.parse(listL1ValidatorsResponse), ); } - export function listL1ValidatorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listlatestblocksallchains.ts b/chainkit/src/models/operations/listlatestblocksallchains.ts index 2fa44093..6d2d4e1c 100644 --- a/chainkit/src/models/operations/listlatestblocksallchains.ts +++ b/chainkit/src/models/operations/listlatestblocksallchains.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestBlocksAllChainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestBlocksAllChainsRequest = { @@ -42,7 +42,6 @@ export const ListLatestBlocksAllChainsRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(10), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListLatestBlocksAllChainsRequest$Outbound = { pageToken?: string | undefined; @@ -61,19 +60,6 @@ export const ListLatestBlocksAllChainsRequest$outboundSchema: z.ZodType< 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 { @@ -83,7 +69,6 @@ export function listLatestBlocksAllChainsRequestToJSON( ), ); } - export function listLatestBlocksAllChainsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +91,6 @@ export const ListLatestBlocksAllChainsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListLatestBlocksAllChainsResponse$Outbound = { Result: components.ListEvmBlocksResponse$Outbound; @@ -125,20 +109,6 @@ export const ListLatestBlocksAllChainsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -148,7 +118,6 @@ export function listLatestBlocksAllChainsResponseToJSON( ), ); } - export function listLatestBlocksAllChainsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listlatestprimarynetworkblocks.ts b/chainkit/src/models/operations/listlatestprimarynetworkblocks.ts index 3ea6cc5e..8720327d 100644 --- a/chainkit/src/models/operations/listlatestprimarynetworkblocks.ts +++ b/chainkit/src/models/operations/listlatestprimarynetworkblocks.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestPrimaryNetworkBlocksServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestPrimaryNetworkBlocksGlobals = { @@ -59,7 +59,6 @@ export const ListLatestPrimaryNetworkBlocksGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListLatestPrimaryNetworkBlocksGlobals$Outbound = { network?: string | undefined; @@ -74,21 +73,6 @@ export const ListLatestPrimaryNetworkBlocksGlobals$outboundSchema: z.ZodType< 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 { @@ -98,7 +82,6 @@ export function listLatestPrimaryNetworkBlocksGlobalsToJSON( ), ); } - export function listLatestPrimaryNetworkBlocksGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -123,7 +106,6 @@ export const ListLatestPrimaryNetworkBlocksRequest$inboundSchema: z.ZodType< blockchainId: components.BlockchainId$inboundSchema, network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListLatestPrimaryNetworkBlocksRequest$Outbound = { startTimestamp?: number | undefined; @@ -148,21 +130,6 @@ export const ListLatestPrimaryNetworkBlocksRequest$outboundSchema: z.ZodType< 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 { @@ -172,7 +139,6 @@ export function listLatestPrimaryNetworkBlocksRequestToJSON( ), ); } - export function listLatestPrimaryNetworkBlocksRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -196,7 +162,6 @@ export const ListLatestPrimaryNetworkBlocksResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListLatestPrimaryNetworkBlocksResponse$Outbound = { Result: components.ListPrimaryNetworkBlocksResponse$Outbound; @@ -215,21 +180,6 @@ export const ListLatestPrimaryNetworkBlocksResponse$outboundSchema: z.ZodType< }); }); -/** - * @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, @@ -240,7 +190,6 @@ export function listLatestPrimaryNetworkBlocksResponseToJSON( ), ); } - export function listLatestPrimaryNetworkBlocksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listlatestprimarynetworktransactions.ts b/chainkit/src/models/operations/listlatestprimarynetworktransactions.ts index 3fb1d8bb..15ff7e96 100644 --- a/chainkit/src/models/operations/listlatestprimarynetworktransactions.ts +++ b/chainkit/src/models/operations/listlatestprimarynetworktransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestPrimaryNetworkTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestPrimaryNetworkTransactionsGlobals = { @@ -84,7 +84,6 @@ export const ListLatestPrimaryNetworkTransactionsGlobals$inboundSchema: > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListLatestPrimaryNetworkTransactionsGlobals$Outbound = { network?: string | undefined; @@ -100,21 +99,6 @@ export const ListLatestPrimaryNetworkTransactionsGlobals$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 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, @@ -125,7 +109,6 @@ export function listLatestPrimaryNetworkTransactionsGlobalsToJSON( ), ); } - export function listLatestPrimaryNetworkTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult< @@ -160,7 +143,6 @@ export const ListLatestPrimaryNetworkTransactionsRequest$inboundSchema: network: components.GlobalParamNetwork$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListLatestPrimaryNetworkTransactionsRequest$Outbound = { addresses?: string | undefined; @@ -194,21 +176,6 @@ export const ListLatestPrimaryNetworkTransactionsRequest$outboundSchema: 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, @@ -219,7 +186,6 @@ export function listLatestPrimaryNetworkTransactionsRequestToJSON( ), ); } - export function listLatestPrimaryNetworkTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -247,7 +213,6 @@ export const ListLatestPrimaryNetworkTransactionsResponseBody$inboundSchema: components.ListXChainTransactionsResponse$inboundSchema, components.ListCChainAtomicTransactionsResponse$inboundSchema, ]); - /** @internal */ export type ListLatestPrimaryNetworkTransactionsResponseBody$Outbound = | components.ListPChainTransactionsResponse$Outbound @@ -266,22 +231,6 @@ export const ListLatestPrimaryNetworkTransactionsResponseBody$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, @@ -292,7 +241,6 @@ export function listLatestPrimaryNetworkTransactionsResponseBodyToJSON( ), ); } - export function listLatestPrimaryNetworkTransactionsResponseBodyFromJSON( jsonString: string, ): SafeParseResult< @@ -326,7 +274,6 @@ export const ListLatestPrimaryNetworkTransactionsResponse$inboundSchema: "Result": "result", }); }); - /** @internal */ export type ListLatestPrimaryNetworkTransactionsResponse$Outbound = { Result: @@ -353,21 +300,6 @@ export const ListLatestPrimaryNetworkTransactionsResponse$outboundSchema: }); }); -/** - * @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, @@ -378,7 +310,6 @@ export function listLatestPrimaryNetworkTransactionsResponseToJSON( ), ); } - export function listLatestPrimaryNetworkTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listlatesttransactions.ts b/chainkit/src/models/operations/listlatesttransactions.ts index 01e65458..8154dba3 100644 --- a/chainkit/src/models/operations/listlatesttransactions.ts +++ b/chainkit/src/models/operations/listlatesttransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestTransactionsGlobals = { @@ -51,7 +51,6 @@ export const ListLatestTransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListLatestTransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -66,19 +65,6 @@ export const ListLatestTransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -88,7 +74,6 @@ export function listLatestTransactionsGlobalsToJSON( ), ); } - export function listLatestTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const ListLatestTransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), status: components.TransactionStatus$inboundSchema.optional(), }); - /** @internal */ export type ListLatestTransactionsRequest$Outbound = { pageToken?: string | undefined; @@ -131,19 +115,6 @@ export const ListLatestTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -153,7 +124,6 @@ export function listLatestTransactionsRequestToJSON( ), ); } - export function listLatestTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -176,7 +146,6 @@ export const ListLatestTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListLatestTransactionsResponse$Outbound = { Result: components.ListNativeTransactionsResponse$Outbound; @@ -195,19 +164,6 @@ export const ListLatestTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -217,7 +173,6 @@ export function listLatestTransactionsResponseToJSON( ), ); } - export function listLatestTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listlatesttransactionsallchains.ts b/chainkit/src/models/operations/listlatesttransactionsallchains.ts index 1db6d4b9..5339893a 100644 --- a/chainkit/src/models/operations/listlatesttransactionsallchains.ts +++ b/chainkit/src/models/operations/listlatesttransactionsallchains.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestTransactionsAllChainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestTransactionsAllChainsRequest = { @@ -47,7 +47,6 @@ export const ListLatestTransactionsAllChainsRequest$inboundSchema: z.ZodType< network: components.Network$inboundSchema.optional(), status: components.TransactionStatus$inboundSchema.optional(), }); - /** @internal */ export type ListLatestTransactionsAllChainsRequest$Outbound = { pageToken?: string | undefined; @@ -68,21 +67,6 @@ export const ListLatestTransactionsAllChainsRequest$outboundSchema: z.ZodType< 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, @@ -93,7 +77,6 @@ export function listLatestTransactionsAllChainsRequestToJSON( ), ); } - export function listLatestTransactionsAllChainsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -117,7 +100,6 @@ export const ListLatestTransactionsAllChainsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListLatestTransactionsAllChainsResponse$Outbound = { Result: components.ListNativeTransactionsResponse$Outbound; @@ -136,21 +118,6 @@ export const ListLatestTransactionsAllChainsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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, @@ -161,7 +128,6 @@ export function listLatestTransactionsAllChainsResponseToJSON( ), ); } - export function listLatestTransactionsAllChainsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listlatestxchainvertices.ts b/chainkit/src/models/operations/listlatestxchainvertices.ts index 0a80a5d3..106ab3b8 100644 --- a/chainkit/src/models/operations/listlatestxchainvertices.ts +++ b/chainkit/src/models/operations/listlatestxchainvertices.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListLatestXChainVerticesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListLatestXChainVerticesGlobals = { @@ -51,7 +51,6 @@ export const ListLatestXChainVerticesGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListLatestXChainVerticesGlobals$Outbound = { network?: string | undefined; @@ -66,19 +65,6 @@ export const ListLatestXChainVerticesGlobals$outboundSchema: z.ZodType< 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 { @@ -88,7 +74,6 @@ export function listLatestXChainVerticesGlobalsToJSON( ), ); } - export function listLatestXChainVerticesGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -110,7 +95,6 @@ export const ListLatestXChainVerticesRequest$inboundSchema: z.ZodType< blockchainId: components.XChainId$inboundSchema, network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListLatestXChainVerticesRequest$Outbound = { pageToken?: string | undefined; @@ -131,19 +115,6 @@ export const ListLatestXChainVerticesRequest$outboundSchema: z.ZodType< 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 { @@ -153,7 +124,6 @@ export function listLatestXChainVerticesRequestToJSON( ), ); } - export function listLatestXChainVerticesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -176,7 +146,6 @@ export const ListLatestXChainVerticesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListLatestXChainVerticesResponse$Outbound = { Result: components.ListXChainVerticesResponse$Outbound; @@ -195,19 +164,6 @@ export const ListLatestXChainVerticesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -217,7 +173,6 @@ export function listLatestXChainVerticesResponseToJSON( ), ); } - export function listLatestXChainVerticesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listnativetransactions.ts b/chainkit/src/models/operations/listnativetransactions.ts index fe613e5b..c257268b 100644 --- a/chainkit/src/models/operations/listnativetransactions.ts +++ b/chainkit/src/models/operations/listnativetransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListNativeTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListNativeTransactionsGlobals = { @@ -59,7 +59,6 @@ export const ListNativeTransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListNativeTransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListNativeTransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -96,7 +82,6 @@ export function listNativeTransactionsGlobalsToJSON( ), ); } - export function listNativeTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +105,6 @@ export const ListNativeTransactionsRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListNativeTransactionsRequest$Outbound = { startBlock?: number | undefined; @@ -145,19 +129,6 @@ export const ListNativeTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -167,7 +138,6 @@ export function listNativeTransactionsRequestToJSON( ), ); } - export function listNativeTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +160,6 @@ export const ListNativeTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListNativeTransactionsResponse$Outbound = { Result: components.ListNativeTransactionsResponse$Outbound; @@ -209,19 +178,6 @@ export const ListNativeTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -231,7 +187,6 @@ export function listNativeTransactionsResponseToJSON( ), ); } - export function listNativeTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listpendingprimarynetworkrewards.ts b/chainkit/src/models/operations/listpendingprimarynetworkrewards.ts index abae4961..e7459530 100644 --- a/chainkit/src/models/operations/listpendingprimarynetworkrewards.ts +++ b/chainkit/src/models/operations/listpendingprimarynetworkrewards.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListPendingPrimaryNetworkRewardsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListPendingPrimaryNetworkRewardsGlobals = { @@ -59,7 +59,6 @@ export const ListPendingPrimaryNetworkRewardsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListPendingPrimaryNetworkRewardsGlobals$Outbound = { network?: string | undefined; @@ -74,21 +73,6 @@ export const ListPendingPrimaryNetworkRewardsGlobals$outboundSchema: z.ZodType< 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, @@ -99,7 +83,6 @@ export function listPendingPrimaryNetworkRewardsGlobalsToJSON( ), ); } - export function listPendingPrimaryNetworkRewardsGlobalsFromJSON( jsonString: string, ): SafeParseResult< @@ -129,7 +112,6 @@ export const ListPendingPrimaryNetworkRewardsRequest$inboundSchema: z.ZodType< nodeIds: z.string().optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListPendingPrimaryNetworkRewardsRequest$Outbound = { addresses?: string | undefined; @@ -154,21 +136,6 @@ export const ListPendingPrimaryNetworkRewardsRequest$outboundSchema: z.ZodType< 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, @@ -179,7 +146,6 @@ export function listPendingPrimaryNetworkRewardsRequestToJSON( ), ); } - export function listPendingPrimaryNetworkRewardsRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -208,7 +174,6 @@ export const ListPendingPrimaryNetworkRewardsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListPendingPrimaryNetworkRewardsResponse$Outbound = { Result: components.ListPendingRewardsResponse$Outbound; @@ -227,21 +192,6 @@ export const ListPendingPrimaryNetworkRewardsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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, @@ -252,7 +202,6 @@ export function listPendingPrimaryNetworkRewardsResponseToJSON( ), ); } - export function listPendingPrimaryNetworkRewardsResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts b/chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts index ad97dd42..63845909 100644 --- a/chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts +++ b/chainkit/src/models/operations/listprimarynetworkblocksbynodeid.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListPrimaryNetworkBlocksByNodeIdServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListPrimaryNetworkBlocksByNodeIdGlobals = { @@ -63,7 +63,6 @@ export const ListPrimaryNetworkBlocksByNodeIdGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListPrimaryNetworkBlocksByNodeIdGlobals$Outbound = { network?: string | undefined; @@ -78,21 +77,6 @@ export const ListPrimaryNetworkBlocksByNodeIdGlobals$outboundSchema: z.ZodType< 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, @@ -103,7 +87,6 @@ export function listPrimaryNetworkBlocksByNodeIdGlobalsToJSON( ), ); } - export function listPrimaryNetworkBlocksByNodeIdGlobalsFromJSON( jsonString: string, ): SafeParseResult< @@ -134,7 +117,6 @@ export const ListPrimaryNetworkBlocksByNodeIdRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), nodeId: z.string(), }); - /** @internal */ export type ListPrimaryNetworkBlocksByNodeIdRequest$Outbound = { startTimestamp?: number | undefined; @@ -161,21 +143,6 @@ export const ListPrimaryNetworkBlocksByNodeIdRequest$outboundSchema: z.ZodType< 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, @@ -186,7 +153,6 @@ export function listPrimaryNetworkBlocksByNodeIdRequestToJSON( ), ); } - export function listPrimaryNetworkBlocksByNodeIdRequestFromJSON( jsonString: string, ): SafeParseResult< @@ -215,7 +181,6 @@ export const ListPrimaryNetworkBlocksByNodeIdResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListPrimaryNetworkBlocksByNodeIdResponse$Outbound = { Result: components.ListPrimaryNetworkBlocksResponse$Outbound; @@ -234,21 +199,6 @@ export const ListPrimaryNetworkBlocksByNodeIdResponse$outboundSchema: z.ZodType< }); }); -/** - * @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, @@ -259,7 +209,6 @@ export function listPrimaryNetworkBlocksByNodeIdResponseToJSON( ), ); } - export function listPrimaryNetworkBlocksByNodeIdResponseFromJSON( jsonString: string, ): SafeParseResult< diff --git a/chainkit/src/models/operations/listsubnets.ts b/chainkit/src/models/operations/listsubnets.ts index a78430fc..0cde6e79 100644 --- a/chainkit/src/models/operations/listsubnets.ts +++ b/chainkit/src/models/operations/listsubnets.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListSubnetsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListSubnetsGlobals = { @@ -51,7 +51,6 @@ export const ListSubnetsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListSubnetsGlobals$Outbound = { network?: string | undefined; @@ -66,19 +65,6 @@ export const ListSubnetsGlobals$outboundSchema: z.ZodType< 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 { @@ -86,7 +72,6 @@ export function listSubnetsGlobalsToJSON( ListSubnetsGlobals$outboundSchema.parse(listSubnetsGlobals), ); } - export function listSubnetsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const ListSubnetsRequest$inboundSchema: z.ZodType< network: components.GlobalParamNetwork$inboundSchema.optional(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListSubnetsRequest$Outbound = { pageToken?: string | undefined; @@ -129,19 +113,6 @@ export const ListSubnetsRequest$outboundSchema: z.ZodType< 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 { @@ -149,7 +120,6 @@ export function listSubnetsRequestToJSON( ListSubnetsRequest$outboundSchema.parse(listSubnetsRequest), ); } - export function listSubnetsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -172,7 +142,6 @@ export const ListSubnetsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListSubnetsResponse$Outbound = { Result: components.ListSubnetsResponse$Outbound; @@ -191,19 +160,6 @@ export const ListSubnetsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -211,7 +167,6 @@ export function listSubnetsResponseToJSON( ListSubnetsResponse$outboundSchema.parse(listSubnetsResponse), ); } - export function listSubnetsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listteleportermessages.ts b/chainkit/src/models/operations/listteleportermessages.ts index dcaa084d..1c4cfefe 100644 --- a/chainkit/src/models/operations/listteleportermessages.ts +++ b/chainkit/src/models/operations/listteleportermessages.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListTeleporterMessagesServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListTeleporterMessagesRequest = { @@ -67,7 +67,6 @@ export const ListTeleporterMessagesRequest$inboundSchema: z.ZodType< from: z.string().optional(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListTeleporterMessagesRequest$Outbound = { pageToken?: string | undefined; @@ -96,19 +95,6 @@ export const ListTeleporterMessagesRequest$outboundSchema: z.ZodType< 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 { @@ -118,7 +104,6 @@ export function listTeleporterMessagesRequestToJSON( ), ); } - export function listTeleporterMessagesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -141,7 +126,6 @@ export const ListTeleporterMessagesResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListTeleporterMessagesResponse$Outbound = { Result: components.ListTeleporterMessagesResponse$Outbound; @@ -160,19 +144,6 @@ export const ListTeleporterMessagesResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -182,7 +153,6 @@ export function listTeleporterMessagesResponseToJSON( ), ); } - export function listTeleporterMessagesResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listteleportermessagesbyaddress.ts b/chainkit/src/models/operations/listteleportermessagesbyaddress.ts index 4a6b7e35..cda2770d 100644 --- a/chainkit/src/models/operations/listteleportermessagesbyaddress.ts +++ b/chainkit/src/models/operations/listteleportermessagesbyaddress.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListTeleporterMessagesByAddressServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListTeleporterMessagesByAddressRequest = { @@ -42,7 +42,6 @@ export const ListTeleporterMessagesByAddressRequest$inboundSchema: z.ZodType< address: z.string(), network: components.Network$inboundSchema.optional(), }); - /** @internal */ export type ListTeleporterMessagesByAddressRequest$Outbound = { pageToken?: string | undefined; @@ -63,21 +62,6 @@ export const ListTeleporterMessagesByAddressRequest$outboundSchema: z.ZodType< 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, @@ -88,7 +72,6 @@ export function listTeleporterMessagesByAddressRequestToJSON( ), ); } - export function listTeleporterMessagesByAddressRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listtokens.ts b/chainkit/src/models/operations/listtokens.ts index df13b8fe..e79ea20e 100644 --- a/chainkit/src/models/operations/listtokens.ts +++ b/chainkit/src/models/operations/listtokens.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListTokensServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListTokensGlobals = { @@ -51,7 +51,6 @@ export const ListTokensGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListTokensGlobals$Outbound = { chainId?: string | undefined; @@ -66,19 +65,6 @@ export const ListTokensGlobals$outboundSchema: z.ZodType< 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 { @@ -86,7 +72,6 @@ export function listTokensGlobalsToJSON( ListTokensGlobals$outboundSchema.parse(listTokensGlobals), ); } - export function listTokensGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const ListTokensRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListTokensRequest$Outbound = { pageToken?: string | undefined; @@ -129,19 +113,6 @@ export const ListTokensRequest$outboundSchema: z.ZodType< 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 { @@ -149,7 +120,6 @@ export function listTokensRequestToJSON( ListTokensRequest$outboundSchema.parse(listTokensRequest), ); } - export function listTokensRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -172,7 +142,6 @@ export const ListTokensResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListTokensResponse$Outbound = { Result: components.ListNftTokens$Outbound; @@ -191,19 +160,6 @@ export const ListTokensResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -211,7 +167,6 @@ export function listTokensResponseToJSON( ListTokensResponse$outboundSchema.parse(listTokensResponse), ); } - export function listTokensResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listtransactions.ts b/chainkit/src/models/operations/listtransactions.ts index 8f4d6343..461f4b79 100644 --- a/chainkit/src/models/operations/listtransactions.ts +++ b/chainkit/src/models/operations/listtransactions.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListTransactionsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListTransactionsGlobals = { @@ -63,7 +63,6 @@ export const ListTransactionsGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListTransactionsGlobals$Outbound = { chainId?: string | undefined; @@ -78,19 +77,6 @@ export const ListTransactionsGlobals$outboundSchema: z.ZodType< 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 { @@ -98,7 +84,6 @@ export function listTransactionsGlobalsToJSON( ListTransactionsGlobals$outboundSchema.parse(listTransactionsGlobals), ); } - export function listTransactionsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -123,7 +108,6 @@ export const ListTransactionsRequest$inboundSchema: z.ZodType< address: z.string(), sortOrder: components.SortOrder$inboundSchema.optional(), }); - /** @internal */ export type ListTransactionsRequest$Outbound = { pageToken?: string | undefined; @@ -150,19 +134,6 @@ export const ListTransactionsRequest$outboundSchema: z.ZodType< 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 { @@ -170,7 +141,6 @@ export function listTransactionsRequestToJSON( ListTransactionsRequest$outboundSchema.parse(listTransactionsRequest), ); } - export function listTransactionsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -193,7 +163,6 @@ export const ListTransactionsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListTransactionsResponse$Outbound = { Result: components.ListTransactionDetailsResponse$Outbound; @@ -212,19 +181,6 @@ export const ListTransactionsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -232,7 +188,6 @@ export function listTransactionsResponseToJSON( ListTransactionsResponse$outboundSchema.parse(listTransactionsResponse), ); } - export function listTransactionsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listtransfers.ts b/chainkit/src/models/operations/listtransfers.ts index 5e8c2ecc..1ffd2694 100644 --- a/chainkit/src/models/operations/listtransfers.ts +++ b/chainkit/src/models/operations/listtransfers.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListTransfersServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListTransfersGlobals = { @@ -59,7 +59,6 @@ export const ListTransfersGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ListTransfersGlobals$Outbound = { chainId?: string | undefined; @@ -74,19 +73,6 @@ export const ListTransfersGlobals$outboundSchema: z.ZodType< 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 { @@ -94,7 +80,6 @@ export function listTransfersGlobalsToJSON( ListTransfersGlobals$outboundSchema.parse(listTransfersGlobals), ); } - export function listTransfersGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -118,7 +103,6 @@ export const ListTransfersRequest$inboundSchema: z.ZodType< chainId: z.string().optional(), address: z.string(), }); - /** @internal */ export type ListTransfersRequest$Outbound = { startBlock?: number | undefined; @@ -143,19 +127,6 @@ export const ListTransfersRequest$outboundSchema: z.ZodType< 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 { @@ -163,7 +134,6 @@ export function listTransfersRequestToJSON( ListTransfersRequest$outboundSchema.parse(listTransfersRequest), ); } - export function listTransfersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const ListTransfersResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListTransfersResponse$Outbound = { Result: components.ListTransfersResponse$Outbound; @@ -205,19 +174,6 @@ export const ListTransfersResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -225,7 +181,6 @@ export function listTransfersResponseToJSON( ListTransfersResponse$outboundSchema.parse(listTransfersResponse), ); } - export function listTransfersResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listvalidators.ts b/chainkit/src/models/operations/listvalidators.ts index 642e9de5..1f14ecf8 100644 --- a/chainkit/src/models/operations/listvalidators.ts +++ b/chainkit/src/models/operations/listvalidators.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListValidatorsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListValidatorsGlobals = { @@ -103,7 +103,6 @@ export const ListValidatorsGlobals$inboundSchema: z.ZodType< > = z.object({ network: components.GlobalParamNetwork$inboundSchema.optional(), }); - /** @internal */ export type ListValidatorsGlobals$Outbound = { network?: string | undefined; @@ -118,19 +117,6 @@ export const ListValidatorsGlobals$outboundSchema: z.ZodType< 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 { @@ -138,7 +124,6 @@ export function listValidatorsGlobalsToJSON( ListValidatorsGlobals$outboundSchema.parse(listValidatorsGlobals), ); } - export function listValidatorsGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -172,7 +157,6 @@ export const ListValidatorsRequest$inboundSchema: z.ZodType< maxUptimePerformance: z.number().optional(), subnetId: z.any().optional(), }); - /** @internal */ export type ListValidatorsRequest$Outbound = { pageToken?: string | undefined; @@ -217,19 +201,6 @@ export const ListValidatorsRequest$outboundSchema: z.ZodType< 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 { @@ -237,7 +208,6 @@ export function listValidatorsRequestToJSON( ListValidatorsRequest$outboundSchema.parse(listValidatorsRequest), ); } - export function listValidatorsRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -260,7 +230,6 @@ export const ListValidatorsResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListValidatorsResponse$Outbound = { Result: components.ListValidatorDetailsResponse$Outbound; @@ -279,19 +248,6 @@ export const ListValidatorsResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -299,7 +255,6 @@ export function listValidatorsResponseToJSON( ListValidatorsResponse$outboundSchema.parse(listValidatorsResponse), ); } - export function listValidatorsResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/listwebhooks.ts b/chainkit/src/models/operations/listwebhooks.ts index a6a4ff4a..b6b556fc 100644 --- a/chainkit/src/models/operations/listwebhooks.ts +++ b/chainkit/src/models/operations/listwebhooks.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ListWebhooksServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ListWebhooksRequest = { @@ -42,7 +42,6 @@ export const ListWebhooksRequest$inboundSchema: z.ZodType< pageSize: z.number().int().default(10), status: components.WebhookStatus$inboundSchema.optional(), }); - /** @internal */ export type ListWebhooksRequest$Outbound = { pageToken?: string | undefined; @@ -61,19 +60,6 @@ export const ListWebhooksRequest$outboundSchema: z.ZodType< 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 { @@ -81,7 +67,6 @@ export function listWebhooksRequestToJSON( ListWebhooksRequest$outboundSchema.parse(listWebhooksRequest), ); } - export function listWebhooksRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -104,7 +89,6 @@ export const ListWebhooksResponse$inboundSchema: z.ZodType< "Result": "result", }); }); - /** @internal */ export type ListWebhooksResponse$Outbound = { Result: components.ListWebhooksResponse$Outbound; @@ -123,19 +107,6 @@ export const ListWebhooksResponse$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -143,7 +114,6 @@ export function listWebhooksResponseToJSON( ListWebhooksResponse$outboundSchema.parse(listWebhooksResponse), ); } - export function listWebhooksResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/livecheck.ts b/chainkit/src/models/operations/livecheck.ts new file mode 100644 index 00000000..e180d805 --- /dev/null +++ b/chainkit/src/models/operations/livecheck.ts @@ -0,0 +1,7 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +export const LiveCheckServerList = [ + "https://data-api.avax.network", +] as const; diff --git a/chainkit/src/models/operations/posttransactionexportjob.ts b/chainkit/src/models/operations/posttransactionexportjob.ts index 2d5b3035..7a6b4b8a 100644 --- a/chainkit/src/models/operations/posttransactionexportjob.ts +++ b/chainkit/src/models/operations/posttransactionexportjob.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const PostTransactionExportJobServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type PostTransactionExportJobRequest = @@ -25,7 +25,6 @@ export const PostTransactionExportJobRequest$inboundSchema: z.ZodType< components.CreateEvmTransactionExportRequest$inboundSchema, components.CreatePrimaryNetworkTransactionExportRequest$inboundSchema, ]); - /** @internal */ export type PostTransactionExportJobRequest$Outbound = | components.CreateEvmTransactionExportRequest$Outbound @@ -41,19 +40,6 @@ export const PostTransactionExportJobRequest$outboundSchema: z.ZodType< 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 { @@ -63,7 +49,6 @@ export function postTransactionExportJobRequestToJSON( ), ); } - export function postTransactionExportJobRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/reindexnft.ts b/chainkit/src/models/operations/reindexnft.ts index dac06483..acadbeca 100644 --- a/chainkit/src/models/operations/reindexnft.ts +++ b/chainkit/src/models/operations/reindexnft.ts @@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const ReindexNftServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type ReindexNftGlobals = { @@ -41,7 +41,6 @@ export const ReindexNftGlobals$inboundSchema: z.ZodType< > = z.object({ chainId: z.string().optional(), }); - /** @internal */ export type ReindexNftGlobals$Outbound = { chainId?: string | undefined; @@ -56,19 +55,6 @@ export const ReindexNftGlobals$outboundSchema: z.ZodType< 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 { @@ -76,7 +62,6 @@ export function reindexNftGlobalsToJSON( ReindexNftGlobals$outboundSchema.parse(reindexNftGlobals), ); } - export function reindexNftGlobalsFromJSON( jsonString: string, ): SafeParseResult { @@ -97,7 +82,6 @@ export const ReindexNftRequest$inboundSchema: z.ZodType< address: z.string(), tokenId: z.string(), }); - /** @internal */ export type ReindexNftRequest$Outbound = { chainId?: string | undefined; @@ -116,19 +100,6 @@ export const ReindexNftRequest$outboundSchema: z.ZodType< 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 { @@ -136,7 +107,6 @@ export function reindexNftRequestToJSON( ReindexNftRequest$outboundSchema.parse(reindexNftRequest), ); } - export function reindexNftRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/removeaddressesfromwebhook.ts b/chainkit/src/models/operations/removeaddressesfromwebhook.ts index ea2dbc25..a68ac065 100644 --- a/chainkit/src/models/operations/removeaddressesfromwebhook.ts +++ b/chainkit/src/models/operations/removeaddressesfromwebhook.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const RemoveAddressesFromWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type RemoveAddressesFromWebhookRequest = { @@ -34,7 +34,6 @@ export const RemoveAddressesFromWebhookRequest$inboundSchema: z.ZodType< "AddressesChangeRequest": "addressesChangeRequest", }); }); - /** @internal */ export type RemoveAddressesFromWebhookRequest$Outbound = { id: string; @@ -55,20 +54,6 @@ export const RemoveAddressesFromWebhookRequest$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -78,7 +63,6 @@ export function removeAddressesFromWebhookRequestToJSON( ), ); } - export function removeAddressesFromWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/supportedchains.ts b/chainkit/src/models/operations/supportedchains.ts index f0e99eb8..b93d5129 100644 --- a/chainkit/src/models/operations/supportedchains.ts +++ b/chainkit/src/models/operations/supportedchains.ts @@ -9,7 +9,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const SupportedChainsServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type SupportedChainsRequest = { @@ -32,7 +32,6 @@ export const SupportedChainsRequest$inboundSchema: z.ZodType< network: components.Network$inboundSchema.optional(), feature: components.ApiFeature$inboundSchema.optional(), }); - /** @internal */ export type SupportedChainsRequest$Outbound = { network?: string | undefined; @@ -49,19 +48,6 @@ export const SupportedChainsRequest$outboundSchema: z.ZodType< 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 { @@ -69,7 +55,6 @@ export function supportedChainsRequestToJSON( SupportedChainsRequest$outboundSchema.parse(supportedChainsRequest), ); } - export function supportedChainsRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/models/operations/updatewebhook.ts b/chainkit/src/models/operations/updatewebhook.ts index db584794..5d695a72 100644 --- a/chainkit/src/models/operations/updatewebhook.ts +++ b/chainkit/src/models/operations/updatewebhook.ts @@ -10,7 +10,7 @@ import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const UpdateWebhookServerList = [ - "https://glacier-api.avax.network", + "https://data-api.avax.network", ] as const; export type UpdateWebhookRequest = { @@ -42,7 +42,6 @@ export const UpdateWebhookRequest$inboundSchema: z.ZodType< "UpdateWebhookRequest": "updateWebhookRequest", }); }); - /** @internal */ export type UpdateWebhookRequest$Outbound = { id: string; @@ -63,19 +62,6 @@ export const UpdateWebhookRequest$outboundSchema: z.ZodType< }); }); -/** - * @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 { @@ -83,7 +69,6 @@ export function updateWebhookRequestToJSON( UpdateWebhookRequest$outboundSchema.parse(updateWebhookRequest), ); } - export function updateWebhookRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -104,7 +89,6 @@ export const UpdateWebhookResponse$inboundSchema: z.ZodType< components.PrimaryNetworkAddressActivityResponse$inboundSchema, components.ValidatorActivityResponse$inboundSchema, ]); - /** @internal */ export type UpdateWebhookResponse$Outbound = | components.EVMAddressActivityResponse$Outbound @@ -122,19 +106,6 @@ export const UpdateWebhookResponse$outboundSchema: z.ZodType< 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 { @@ -142,7 +113,6 @@ export function updateWebhookResponseToJSON( UpdateWebhookResponse$outboundSchema.parse(updateWebhookResponse), ); } - export function updateWebhookResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/chainkit/src/sdk/avaxsupply.ts b/chainkit/src/sdk/avaxsupply.ts index 94f02453..090e84b8 100644 --- a/chainkit/src/sdk/avaxsupply.ts +++ b/chainkit/src/sdk/avaxsupply.ts @@ -4,6 +4,7 @@ import { avaxSupplyGet } from "../funcs/avaxSupplyGet.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class AVAXSupply extends ClientSDK { @@ -15,7 +16,7 @@ export class AVAXSupply extends ClientSDK { */ async get( options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(avaxSupplyGet( this, options, diff --git a/chainkit/src/sdk/data.ts b/chainkit/src/sdk/data.ts index e3f09ee7..bcbf2be6 100644 --- a/chainkit/src/sdk/data.ts +++ b/chainkit/src/sdk/data.ts @@ -3,6 +3,7 @@ */ import { dataHealthCheck } from "../funcs/dataHealthCheck.js"; +import { dataLiveCheck } from "../funcs/dataLiveCheck.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -62,7 +63,7 @@ export class Data extends ClientSDK { * Get the health of the service * * @remarks - * Check the health of the service. + * Check the health of the service. This checks the read and write health of the database and cache. */ async healthCheck( options?: RequestOptions, @@ -72,4 +73,19 @@ export class Data extends ClientSDK { options, )); } + + /** + * Get the liveliness of the service (reads only) + * + * @remarks + * Check the liveliness of the service (reads only). + */ + async liveCheck( + options?: RequestOptions, + ): Promise { + return unwrapAsync(dataLiveCheck( + this, + options, + )); + } } From d559847d07337fe4ade90588db5d6489d4b20f17 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 11:22:41 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow