@burnt-labs/xion-types 0.0.1-test.1762962136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
/**
|
|
4
|
+
* `Documentation` provides the information for describing a service.
|
|
5
|
+
*
|
|
6
|
+
* Example:
|
|
7
|
+
* <pre><code>documentation:
|
|
8
|
+
* summary: >
|
|
9
|
+
* The Google Calendar API gives access
|
|
10
|
+
* to most calendar features.
|
|
11
|
+
* pages:
|
|
12
|
+
* - name: Overview
|
|
13
|
+
* content: (== include google/foo/overview.md ==)
|
|
14
|
+
* - name: Tutorial
|
|
15
|
+
* content: (== include google/foo/tutorial.md ==)
|
|
16
|
+
* subpages:
|
|
17
|
+
* - name: Java
|
|
18
|
+
* content: (== include google/foo/tutorial_java.md ==)
|
|
19
|
+
* rules:
|
|
20
|
+
* - selector: google.calendar.Calendar.Get
|
|
21
|
+
* description: >
|
|
22
|
+
* ...
|
|
23
|
+
* - selector: google.calendar.Calendar.Put
|
|
24
|
+
* description: >
|
|
25
|
+
* ...
|
|
26
|
+
* </code></pre>
|
|
27
|
+
* Documentation is provided in markdown syntax. In addition to
|
|
28
|
+
* standard markdown features, definition lists, tables and fenced
|
|
29
|
+
* code blocks are supported. Section headers can be provided and are
|
|
30
|
+
* interpreted relative to the section nesting of the context where
|
|
31
|
+
* a documentation fragment is embedded.
|
|
32
|
+
*
|
|
33
|
+
* Documentation from the IDL is merged with documentation defined
|
|
34
|
+
* via the config at normalization time, where documentation provided
|
|
35
|
+
* by config rules overrides IDL provided.
|
|
36
|
+
*
|
|
37
|
+
* A number of constructs specific to the API platform are supported
|
|
38
|
+
* in documentation text.
|
|
39
|
+
*
|
|
40
|
+
* In order to reference a proto element, the following
|
|
41
|
+
* notation can be used:
|
|
42
|
+
* <pre><code>[fully.qualified.proto.name][]</code></pre>
|
|
43
|
+
* To override the display text used for the link, this can be used:
|
|
44
|
+
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
|
45
|
+
* Text can be excluded from doc using the following notation:
|
|
46
|
+
* <pre><code>(-- internal comment --)</code></pre>
|
|
47
|
+
*
|
|
48
|
+
* A few directives are available in documentation. Note that
|
|
49
|
+
* directives must appear on a single line to be properly
|
|
50
|
+
* identified. The `include` directive includes a markdown file from
|
|
51
|
+
* an external source:
|
|
52
|
+
* <pre><code>(== include path/to/file ==)</code></pre>
|
|
53
|
+
* The `resource_for` directive marks a message to be the resource of
|
|
54
|
+
* a collection in REST view. If it is not specified, tools attempt
|
|
55
|
+
* to infer the resource from the operations in a collection:
|
|
56
|
+
* <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
|
57
|
+
* The directive `suppress_warning` does not directly affect documentation
|
|
58
|
+
* and is documented together with service config validation.
|
|
59
|
+
*/
|
|
60
|
+
export interface Documentation {
|
|
61
|
+
/**
|
|
62
|
+
* A short description of what the service does. The summary must be plain
|
|
63
|
+
* text. It becomes the overview of the service displayed in Google Cloud
|
|
64
|
+
* Console.
|
|
65
|
+
* NOTE: This field is equivalent to the standard field `description`.
|
|
66
|
+
*/
|
|
67
|
+
summary: string;
|
|
68
|
+
/** The top level pages for the documentation set. */
|
|
69
|
+
pages: Page[];
|
|
70
|
+
/**
|
|
71
|
+
* A list of documentation rules that apply to individual API elements.
|
|
72
|
+
*
|
|
73
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
74
|
+
*/
|
|
75
|
+
rules: DocumentationRule[];
|
|
76
|
+
/** The URL to the root of documentation. */
|
|
77
|
+
documentationRootUrl: string;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies the service root url if the default one (the service name
|
|
80
|
+
* from the yaml file) is not suitable. This can be seen in any fully
|
|
81
|
+
* specified service urls as well as sections that show a base that other
|
|
82
|
+
* urls are relative to.
|
|
83
|
+
*/
|
|
84
|
+
serviceRootUrl: string;
|
|
85
|
+
/**
|
|
86
|
+
* Declares a single overview page. For example:
|
|
87
|
+
* <pre><code>documentation:
|
|
88
|
+
* summary: ...
|
|
89
|
+
* overview: (== include overview.md ==)
|
|
90
|
+
* </code></pre>
|
|
91
|
+
* This is a shortcut for the following declaration (using pages style):
|
|
92
|
+
* <pre><code>documentation:
|
|
93
|
+
* summary: ...
|
|
94
|
+
* pages:
|
|
95
|
+
* - name: Overview
|
|
96
|
+
* content: (== include overview.md ==)
|
|
97
|
+
* </code></pre>
|
|
98
|
+
* Note: you cannot specify both `overview` field and `pages` field.
|
|
99
|
+
*/
|
|
100
|
+
overview: string;
|
|
101
|
+
}
|
|
102
|
+
export interface DocumentationProtoMsg {
|
|
103
|
+
typeUrl: "/google.api.Documentation";
|
|
104
|
+
value: Uint8Array;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* `Documentation` provides the information for describing a service.
|
|
108
|
+
*
|
|
109
|
+
* Example:
|
|
110
|
+
* <pre><code>documentation:
|
|
111
|
+
* summary: >
|
|
112
|
+
* The Google Calendar API gives access
|
|
113
|
+
* to most calendar features.
|
|
114
|
+
* pages:
|
|
115
|
+
* - name: Overview
|
|
116
|
+
* content: (== include google/foo/overview.md ==)
|
|
117
|
+
* - name: Tutorial
|
|
118
|
+
* content: (== include google/foo/tutorial.md ==)
|
|
119
|
+
* subpages:
|
|
120
|
+
* - name: Java
|
|
121
|
+
* content: (== include google/foo/tutorial_java.md ==)
|
|
122
|
+
* rules:
|
|
123
|
+
* - selector: google.calendar.Calendar.Get
|
|
124
|
+
* description: >
|
|
125
|
+
* ...
|
|
126
|
+
* - selector: google.calendar.Calendar.Put
|
|
127
|
+
* description: >
|
|
128
|
+
* ...
|
|
129
|
+
* </code></pre>
|
|
130
|
+
* Documentation is provided in markdown syntax. In addition to
|
|
131
|
+
* standard markdown features, definition lists, tables and fenced
|
|
132
|
+
* code blocks are supported. Section headers can be provided and are
|
|
133
|
+
* interpreted relative to the section nesting of the context where
|
|
134
|
+
* a documentation fragment is embedded.
|
|
135
|
+
*
|
|
136
|
+
* Documentation from the IDL is merged with documentation defined
|
|
137
|
+
* via the config at normalization time, where documentation provided
|
|
138
|
+
* by config rules overrides IDL provided.
|
|
139
|
+
*
|
|
140
|
+
* A number of constructs specific to the API platform are supported
|
|
141
|
+
* in documentation text.
|
|
142
|
+
*
|
|
143
|
+
* In order to reference a proto element, the following
|
|
144
|
+
* notation can be used:
|
|
145
|
+
* <pre><code>[fully.qualified.proto.name][]</code></pre>
|
|
146
|
+
* To override the display text used for the link, this can be used:
|
|
147
|
+
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
|
148
|
+
* Text can be excluded from doc using the following notation:
|
|
149
|
+
* <pre><code>(-- internal comment --)</code></pre>
|
|
150
|
+
*
|
|
151
|
+
* A few directives are available in documentation. Note that
|
|
152
|
+
* directives must appear on a single line to be properly
|
|
153
|
+
* identified. The `include` directive includes a markdown file from
|
|
154
|
+
* an external source:
|
|
155
|
+
* <pre><code>(== include path/to/file ==)</code></pre>
|
|
156
|
+
* The `resource_for` directive marks a message to be the resource of
|
|
157
|
+
* a collection in REST view. If it is not specified, tools attempt
|
|
158
|
+
* to infer the resource from the operations in a collection:
|
|
159
|
+
* <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
|
160
|
+
* The directive `suppress_warning` does not directly affect documentation
|
|
161
|
+
* and is documented together with service config validation.
|
|
162
|
+
* @name DocumentationAmino
|
|
163
|
+
* @package google.api
|
|
164
|
+
* @see proto type: google.api.Documentation
|
|
165
|
+
*/
|
|
166
|
+
export interface DocumentationAmino {
|
|
167
|
+
/**
|
|
168
|
+
* A short description of what the service does. The summary must be plain
|
|
169
|
+
* text. It becomes the overview of the service displayed in Google Cloud
|
|
170
|
+
* Console.
|
|
171
|
+
* NOTE: This field is equivalent to the standard field `description`.
|
|
172
|
+
*/
|
|
173
|
+
summary?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The top level pages for the documentation set.
|
|
176
|
+
*/
|
|
177
|
+
pages?: PageAmino[];
|
|
178
|
+
/**
|
|
179
|
+
* A list of documentation rules that apply to individual API elements.
|
|
180
|
+
*
|
|
181
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
182
|
+
*/
|
|
183
|
+
rules?: DocumentationRuleAmino[];
|
|
184
|
+
/**
|
|
185
|
+
* The URL to the root of documentation.
|
|
186
|
+
*/
|
|
187
|
+
documentation_root_url?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the service root url if the default one (the service name
|
|
190
|
+
* from the yaml file) is not suitable. This can be seen in any fully
|
|
191
|
+
* specified service urls as well as sections that show a base that other
|
|
192
|
+
* urls are relative to.
|
|
193
|
+
*/
|
|
194
|
+
service_root_url?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Declares a single overview page. For example:
|
|
197
|
+
* <pre><code>documentation:
|
|
198
|
+
* summary: ...
|
|
199
|
+
* overview: (== include overview.md ==)
|
|
200
|
+
* </code></pre>
|
|
201
|
+
* This is a shortcut for the following declaration (using pages style):
|
|
202
|
+
* <pre><code>documentation:
|
|
203
|
+
* summary: ...
|
|
204
|
+
* pages:
|
|
205
|
+
* - name: Overview
|
|
206
|
+
* content: (== include overview.md ==)
|
|
207
|
+
* </code></pre>
|
|
208
|
+
* Note: you cannot specify both `overview` field and `pages` field.
|
|
209
|
+
*/
|
|
210
|
+
overview?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface DocumentationAminoMsg {
|
|
213
|
+
type: "/google.api.Documentation";
|
|
214
|
+
value: DocumentationAmino;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* `Documentation` provides the information for describing a service.
|
|
218
|
+
*
|
|
219
|
+
* Example:
|
|
220
|
+
* <pre><code>documentation:
|
|
221
|
+
* summary: >
|
|
222
|
+
* The Google Calendar API gives access
|
|
223
|
+
* to most calendar features.
|
|
224
|
+
* pages:
|
|
225
|
+
* - name: Overview
|
|
226
|
+
* content: (== include google/foo/overview.md ==)
|
|
227
|
+
* - name: Tutorial
|
|
228
|
+
* content: (== include google/foo/tutorial.md ==)
|
|
229
|
+
* subpages:
|
|
230
|
+
* - name: Java
|
|
231
|
+
* content: (== include google/foo/tutorial_java.md ==)
|
|
232
|
+
* rules:
|
|
233
|
+
* - selector: google.calendar.Calendar.Get
|
|
234
|
+
* description: >
|
|
235
|
+
* ...
|
|
236
|
+
* - selector: google.calendar.Calendar.Put
|
|
237
|
+
* description: >
|
|
238
|
+
* ...
|
|
239
|
+
* </code></pre>
|
|
240
|
+
* Documentation is provided in markdown syntax. In addition to
|
|
241
|
+
* standard markdown features, definition lists, tables and fenced
|
|
242
|
+
* code blocks are supported. Section headers can be provided and are
|
|
243
|
+
* interpreted relative to the section nesting of the context where
|
|
244
|
+
* a documentation fragment is embedded.
|
|
245
|
+
*
|
|
246
|
+
* Documentation from the IDL is merged with documentation defined
|
|
247
|
+
* via the config at normalization time, where documentation provided
|
|
248
|
+
* by config rules overrides IDL provided.
|
|
249
|
+
*
|
|
250
|
+
* A number of constructs specific to the API platform are supported
|
|
251
|
+
* in documentation text.
|
|
252
|
+
*
|
|
253
|
+
* In order to reference a proto element, the following
|
|
254
|
+
* notation can be used:
|
|
255
|
+
* <pre><code>[fully.qualified.proto.name][]</code></pre>
|
|
256
|
+
* To override the display text used for the link, this can be used:
|
|
257
|
+
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
|
258
|
+
* Text can be excluded from doc using the following notation:
|
|
259
|
+
* <pre><code>(-- internal comment --)</code></pre>
|
|
260
|
+
*
|
|
261
|
+
* A few directives are available in documentation. Note that
|
|
262
|
+
* directives must appear on a single line to be properly
|
|
263
|
+
* identified. The `include` directive includes a markdown file from
|
|
264
|
+
* an external source:
|
|
265
|
+
* <pre><code>(== include path/to/file ==)</code></pre>
|
|
266
|
+
* The `resource_for` directive marks a message to be the resource of
|
|
267
|
+
* a collection in REST view. If it is not specified, tools attempt
|
|
268
|
+
* to infer the resource from the operations in a collection:
|
|
269
|
+
* <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
|
270
|
+
* The directive `suppress_warning` does not directly affect documentation
|
|
271
|
+
* and is documented together with service config validation.
|
|
272
|
+
*/
|
|
273
|
+
export interface DocumentationSDKType {
|
|
274
|
+
summary: string;
|
|
275
|
+
pages: PageSDKType[];
|
|
276
|
+
rules: DocumentationRuleSDKType[];
|
|
277
|
+
documentation_root_url: string;
|
|
278
|
+
service_root_url: string;
|
|
279
|
+
overview: string;
|
|
280
|
+
}
|
|
281
|
+
/** A documentation rule provides information about individual API elements. */
|
|
282
|
+
export interface DocumentationRule {
|
|
283
|
+
/**
|
|
284
|
+
* The selector is a comma-separated list of patterns for any element such as
|
|
285
|
+
* a method, a field, an enum value. Each pattern is a qualified name of the
|
|
286
|
+
* element which may end in "*", indicating a wildcard. Wildcards are only
|
|
287
|
+
* allowed at the end and for a whole component of the qualified name,
|
|
288
|
+
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
|
289
|
+
* one or more components. To specify a default for all applicable elements,
|
|
290
|
+
* the whole pattern "*" is used.
|
|
291
|
+
*/
|
|
292
|
+
selector: string;
|
|
293
|
+
/**
|
|
294
|
+
* Description of the selected proto element (e.g. a message, a method, a
|
|
295
|
+
* 'service' definition, or a field). Defaults to leading & trailing comments
|
|
296
|
+
* taken from the proto source definition of the proto element.
|
|
297
|
+
*/
|
|
298
|
+
description: string;
|
|
299
|
+
/**
|
|
300
|
+
* Deprecation description of the selected element(s). It can be provided if
|
|
301
|
+
* an element is marked as `deprecated`.
|
|
302
|
+
*/
|
|
303
|
+
deprecationDescription: string;
|
|
304
|
+
}
|
|
305
|
+
export interface DocumentationRuleProtoMsg {
|
|
306
|
+
typeUrl: "/google.api.DocumentationRule";
|
|
307
|
+
value: Uint8Array;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* A documentation rule provides information about individual API elements.
|
|
311
|
+
* @name DocumentationRuleAmino
|
|
312
|
+
* @package google.api
|
|
313
|
+
* @see proto type: google.api.DocumentationRule
|
|
314
|
+
*/
|
|
315
|
+
export interface DocumentationRuleAmino {
|
|
316
|
+
/**
|
|
317
|
+
* The selector is a comma-separated list of patterns for any element such as
|
|
318
|
+
* a method, a field, an enum value. Each pattern is a qualified name of the
|
|
319
|
+
* element which may end in "*", indicating a wildcard. Wildcards are only
|
|
320
|
+
* allowed at the end and for a whole component of the qualified name,
|
|
321
|
+
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
|
322
|
+
* one or more components. To specify a default for all applicable elements,
|
|
323
|
+
* the whole pattern "*" is used.
|
|
324
|
+
*/
|
|
325
|
+
selector?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Description of the selected proto element (e.g. a message, a method, a
|
|
328
|
+
* 'service' definition, or a field). Defaults to leading & trailing comments
|
|
329
|
+
* taken from the proto source definition of the proto element.
|
|
330
|
+
*/
|
|
331
|
+
description?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Deprecation description of the selected element(s). It can be provided if
|
|
334
|
+
* an element is marked as `deprecated`.
|
|
335
|
+
*/
|
|
336
|
+
deprecation_description?: string;
|
|
337
|
+
}
|
|
338
|
+
export interface DocumentationRuleAminoMsg {
|
|
339
|
+
type: "/google.api.DocumentationRule";
|
|
340
|
+
value: DocumentationRuleAmino;
|
|
341
|
+
}
|
|
342
|
+
/** A documentation rule provides information about individual API elements. */
|
|
343
|
+
export interface DocumentationRuleSDKType {
|
|
344
|
+
selector: string;
|
|
345
|
+
description: string;
|
|
346
|
+
deprecation_description: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Represents a documentation page. A page can contain subpages to represent
|
|
350
|
+
* nested documentation set structure.
|
|
351
|
+
*/
|
|
352
|
+
export interface Page {
|
|
353
|
+
/**
|
|
354
|
+
* The name of the page. It will be used as an identity of the page to
|
|
355
|
+
* generate URI of the page, text of the link to this page in navigation,
|
|
356
|
+
* etc. The full page name (start from the root page name to this page
|
|
357
|
+
* concatenated with `.`) can be used as reference to the page in your
|
|
358
|
+
* documentation. For example:
|
|
359
|
+
* <pre><code>pages:
|
|
360
|
+
* - name: Tutorial
|
|
361
|
+
* content: (== include tutorial.md ==)
|
|
362
|
+
* subpages:
|
|
363
|
+
* - name: Java
|
|
364
|
+
* content: (== include tutorial_java.md ==)
|
|
365
|
+
* </code></pre>
|
|
366
|
+
* You can reference `Java` page using Markdown reference link syntax:
|
|
367
|
+
* `[Java][Tutorial.Java]`.
|
|
368
|
+
*/
|
|
369
|
+
name: string;
|
|
370
|
+
/**
|
|
371
|
+
* The Markdown content of the page. You can use ```(== include {path}
|
|
372
|
+
* ==)``` to include content from a Markdown file. The content can be used
|
|
373
|
+
* to produce the documentation page such as HTML format page.
|
|
374
|
+
*/
|
|
375
|
+
content: string;
|
|
376
|
+
/**
|
|
377
|
+
* Subpages of this page. The order of subpages specified here will be
|
|
378
|
+
* honored in the generated docset.
|
|
379
|
+
*/
|
|
380
|
+
subpages: Page[];
|
|
381
|
+
}
|
|
382
|
+
export interface PageProtoMsg {
|
|
383
|
+
typeUrl: "/google.api.Page";
|
|
384
|
+
value: Uint8Array;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Represents a documentation page. A page can contain subpages to represent
|
|
388
|
+
* nested documentation set structure.
|
|
389
|
+
* @name PageAmino
|
|
390
|
+
* @package google.api
|
|
391
|
+
* @see proto type: google.api.Page
|
|
392
|
+
*/
|
|
393
|
+
export interface PageAmino {
|
|
394
|
+
/**
|
|
395
|
+
* The name of the page. It will be used as an identity of the page to
|
|
396
|
+
* generate URI of the page, text of the link to this page in navigation,
|
|
397
|
+
* etc. The full page name (start from the root page name to this page
|
|
398
|
+
* concatenated with `.`) can be used as reference to the page in your
|
|
399
|
+
* documentation. For example:
|
|
400
|
+
* <pre><code>pages:
|
|
401
|
+
* - name: Tutorial
|
|
402
|
+
* content: (== include tutorial.md ==)
|
|
403
|
+
* subpages:
|
|
404
|
+
* - name: Java
|
|
405
|
+
* content: (== include tutorial_java.md ==)
|
|
406
|
+
* </code></pre>
|
|
407
|
+
* You can reference `Java` page using Markdown reference link syntax:
|
|
408
|
+
* `[Java][Tutorial.Java]`.
|
|
409
|
+
*/
|
|
410
|
+
name?: string;
|
|
411
|
+
/**
|
|
412
|
+
* The Markdown content of the page. You can use ```(== include {path}
|
|
413
|
+
* ==)``` to include content from a Markdown file. The content can be used
|
|
414
|
+
* to produce the documentation page such as HTML format page.
|
|
415
|
+
*/
|
|
416
|
+
content?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Subpages of this page. The order of subpages specified here will be
|
|
419
|
+
* honored in the generated docset.
|
|
420
|
+
*/
|
|
421
|
+
subpages?: PageAmino[];
|
|
422
|
+
}
|
|
423
|
+
export interface PageAminoMsg {
|
|
424
|
+
type: "/google.api.Page";
|
|
425
|
+
value: PageAmino;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Represents a documentation page. A page can contain subpages to represent
|
|
429
|
+
* nested documentation set structure.
|
|
430
|
+
*/
|
|
431
|
+
export interface PageSDKType {
|
|
432
|
+
name: string;
|
|
433
|
+
content: string;
|
|
434
|
+
subpages: PageSDKType[];
|
|
435
|
+
}
|
|
436
|
+
function createBaseDocumentation(): Documentation {
|
|
437
|
+
return {
|
|
438
|
+
summary: "",
|
|
439
|
+
pages: [],
|
|
440
|
+
rules: [],
|
|
441
|
+
documentationRootUrl: "",
|
|
442
|
+
serviceRootUrl: "",
|
|
443
|
+
overview: ""
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
export const Documentation = {
|
|
447
|
+
typeUrl: "/google.api.Documentation",
|
|
448
|
+
encode(message: Documentation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
449
|
+
if (message.summary !== "") {
|
|
450
|
+
writer.uint32(10).string(message.summary);
|
|
451
|
+
}
|
|
452
|
+
for (const v of message.pages) {
|
|
453
|
+
Page.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
454
|
+
}
|
|
455
|
+
for (const v of message.rules) {
|
|
456
|
+
DocumentationRule.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
457
|
+
}
|
|
458
|
+
if (message.documentationRootUrl !== "") {
|
|
459
|
+
writer.uint32(34).string(message.documentationRootUrl);
|
|
460
|
+
}
|
|
461
|
+
if (message.serviceRootUrl !== "") {
|
|
462
|
+
writer.uint32(50).string(message.serviceRootUrl);
|
|
463
|
+
}
|
|
464
|
+
if (message.overview !== "") {
|
|
465
|
+
writer.uint32(18).string(message.overview);
|
|
466
|
+
}
|
|
467
|
+
return writer;
|
|
468
|
+
},
|
|
469
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Documentation {
|
|
470
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
471
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
472
|
+
const message = createBaseDocumentation();
|
|
473
|
+
while (reader.pos < end) {
|
|
474
|
+
const tag = reader.uint32();
|
|
475
|
+
switch (tag >>> 3) {
|
|
476
|
+
case 1:
|
|
477
|
+
message.summary = reader.string();
|
|
478
|
+
break;
|
|
479
|
+
case 5:
|
|
480
|
+
message.pages.push(Page.decode(reader, reader.uint32()));
|
|
481
|
+
break;
|
|
482
|
+
case 3:
|
|
483
|
+
message.rules.push(DocumentationRule.decode(reader, reader.uint32()));
|
|
484
|
+
break;
|
|
485
|
+
case 4:
|
|
486
|
+
message.documentationRootUrl = reader.string();
|
|
487
|
+
break;
|
|
488
|
+
case 6:
|
|
489
|
+
message.serviceRootUrl = reader.string();
|
|
490
|
+
break;
|
|
491
|
+
case 2:
|
|
492
|
+
message.overview = reader.string();
|
|
493
|
+
break;
|
|
494
|
+
default:
|
|
495
|
+
reader.skipType(tag & 7);
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return message;
|
|
500
|
+
},
|
|
501
|
+
fromPartial(object: Partial<Documentation>): Documentation {
|
|
502
|
+
const message = createBaseDocumentation();
|
|
503
|
+
message.summary = object.summary ?? "";
|
|
504
|
+
message.pages = object.pages?.map(e => Page.fromPartial(e)) || [];
|
|
505
|
+
message.rules = object.rules?.map(e => DocumentationRule.fromPartial(e)) || [];
|
|
506
|
+
message.documentationRootUrl = object.documentationRootUrl ?? "";
|
|
507
|
+
message.serviceRootUrl = object.serviceRootUrl ?? "";
|
|
508
|
+
message.overview = object.overview ?? "";
|
|
509
|
+
return message;
|
|
510
|
+
},
|
|
511
|
+
fromAmino(object: DocumentationAmino): Documentation {
|
|
512
|
+
const message = createBaseDocumentation();
|
|
513
|
+
if (object.summary !== undefined && object.summary !== null) {
|
|
514
|
+
message.summary = object.summary;
|
|
515
|
+
}
|
|
516
|
+
message.pages = object.pages?.map(e => Page.fromAmino(e)) || [];
|
|
517
|
+
message.rules = object.rules?.map(e => DocumentationRule.fromAmino(e)) || [];
|
|
518
|
+
if (object.documentation_root_url !== undefined && object.documentation_root_url !== null) {
|
|
519
|
+
message.documentationRootUrl = object.documentation_root_url;
|
|
520
|
+
}
|
|
521
|
+
if (object.service_root_url !== undefined && object.service_root_url !== null) {
|
|
522
|
+
message.serviceRootUrl = object.service_root_url;
|
|
523
|
+
}
|
|
524
|
+
if (object.overview !== undefined && object.overview !== null) {
|
|
525
|
+
message.overview = object.overview;
|
|
526
|
+
}
|
|
527
|
+
return message;
|
|
528
|
+
},
|
|
529
|
+
toAmino(message: Documentation): DocumentationAmino {
|
|
530
|
+
const obj: any = {};
|
|
531
|
+
obj.summary = message.summary === "" ? undefined : message.summary;
|
|
532
|
+
if (message.pages) {
|
|
533
|
+
obj.pages = message.pages.map(e => e ? Page.toAmino(e) : undefined);
|
|
534
|
+
} else {
|
|
535
|
+
obj.pages = message.pages;
|
|
536
|
+
}
|
|
537
|
+
if (message.rules) {
|
|
538
|
+
obj.rules = message.rules.map(e => e ? DocumentationRule.toAmino(e) : undefined);
|
|
539
|
+
} else {
|
|
540
|
+
obj.rules = message.rules;
|
|
541
|
+
}
|
|
542
|
+
obj.documentation_root_url = message.documentationRootUrl === "" ? undefined : message.documentationRootUrl;
|
|
543
|
+
obj.service_root_url = message.serviceRootUrl === "" ? undefined : message.serviceRootUrl;
|
|
544
|
+
obj.overview = message.overview === "" ? undefined : message.overview;
|
|
545
|
+
return obj;
|
|
546
|
+
},
|
|
547
|
+
fromAminoMsg(object: DocumentationAminoMsg): Documentation {
|
|
548
|
+
return Documentation.fromAmino(object.value);
|
|
549
|
+
},
|
|
550
|
+
fromProtoMsg(message: DocumentationProtoMsg): Documentation {
|
|
551
|
+
return Documentation.decode(message.value);
|
|
552
|
+
},
|
|
553
|
+
toProto(message: Documentation): Uint8Array {
|
|
554
|
+
return Documentation.encode(message).finish();
|
|
555
|
+
},
|
|
556
|
+
toProtoMsg(message: Documentation): DocumentationProtoMsg {
|
|
557
|
+
return {
|
|
558
|
+
typeUrl: "/google.api.Documentation",
|
|
559
|
+
value: Documentation.encode(message).finish()
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
function createBaseDocumentationRule(): DocumentationRule {
|
|
564
|
+
return {
|
|
565
|
+
selector: "",
|
|
566
|
+
description: "",
|
|
567
|
+
deprecationDescription: ""
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
export const DocumentationRule = {
|
|
571
|
+
typeUrl: "/google.api.DocumentationRule",
|
|
572
|
+
encode(message: DocumentationRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
573
|
+
if (message.selector !== "") {
|
|
574
|
+
writer.uint32(10).string(message.selector);
|
|
575
|
+
}
|
|
576
|
+
if (message.description !== "") {
|
|
577
|
+
writer.uint32(18).string(message.description);
|
|
578
|
+
}
|
|
579
|
+
if (message.deprecationDescription !== "") {
|
|
580
|
+
writer.uint32(26).string(message.deprecationDescription);
|
|
581
|
+
}
|
|
582
|
+
return writer;
|
|
583
|
+
},
|
|
584
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DocumentationRule {
|
|
585
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
586
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
587
|
+
const message = createBaseDocumentationRule();
|
|
588
|
+
while (reader.pos < end) {
|
|
589
|
+
const tag = reader.uint32();
|
|
590
|
+
switch (tag >>> 3) {
|
|
591
|
+
case 1:
|
|
592
|
+
message.selector = reader.string();
|
|
593
|
+
break;
|
|
594
|
+
case 2:
|
|
595
|
+
message.description = reader.string();
|
|
596
|
+
break;
|
|
597
|
+
case 3:
|
|
598
|
+
message.deprecationDescription = reader.string();
|
|
599
|
+
break;
|
|
600
|
+
default:
|
|
601
|
+
reader.skipType(tag & 7);
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return message;
|
|
606
|
+
},
|
|
607
|
+
fromPartial(object: Partial<DocumentationRule>): DocumentationRule {
|
|
608
|
+
const message = createBaseDocumentationRule();
|
|
609
|
+
message.selector = object.selector ?? "";
|
|
610
|
+
message.description = object.description ?? "";
|
|
611
|
+
message.deprecationDescription = object.deprecationDescription ?? "";
|
|
612
|
+
return message;
|
|
613
|
+
},
|
|
614
|
+
fromAmino(object: DocumentationRuleAmino): DocumentationRule {
|
|
615
|
+
const message = createBaseDocumentationRule();
|
|
616
|
+
if (object.selector !== undefined && object.selector !== null) {
|
|
617
|
+
message.selector = object.selector;
|
|
618
|
+
}
|
|
619
|
+
if (object.description !== undefined && object.description !== null) {
|
|
620
|
+
message.description = object.description;
|
|
621
|
+
}
|
|
622
|
+
if (object.deprecation_description !== undefined && object.deprecation_description !== null) {
|
|
623
|
+
message.deprecationDescription = object.deprecation_description;
|
|
624
|
+
}
|
|
625
|
+
return message;
|
|
626
|
+
},
|
|
627
|
+
toAmino(message: DocumentationRule): DocumentationRuleAmino {
|
|
628
|
+
const obj: any = {};
|
|
629
|
+
obj.selector = message.selector === "" ? undefined : message.selector;
|
|
630
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
631
|
+
obj.deprecation_description = message.deprecationDescription === "" ? undefined : message.deprecationDescription;
|
|
632
|
+
return obj;
|
|
633
|
+
},
|
|
634
|
+
fromAminoMsg(object: DocumentationRuleAminoMsg): DocumentationRule {
|
|
635
|
+
return DocumentationRule.fromAmino(object.value);
|
|
636
|
+
},
|
|
637
|
+
fromProtoMsg(message: DocumentationRuleProtoMsg): DocumentationRule {
|
|
638
|
+
return DocumentationRule.decode(message.value);
|
|
639
|
+
},
|
|
640
|
+
toProto(message: DocumentationRule): Uint8Array {
|
|
641
|
+
return DocumentationRule.encode(message).finish();
|
|
642
|
+
},
|
|
643
|
+
toProtoMsg(message: DocumentationRule): DocumentationRuleProtoMsg {
|
|
644
|
+
return {
|
|
645
|
+
typeUrl: "/google.api.DocumentationRule",
|
|
646
|
+
value: DocumentationRule.encode(message).finish()
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
function createBasePage(): Page {
|
|
651
|
+
return {
|
|
652
|
+
name: "",
|
|
653
|
+
content: "",
|
|
654
|
+
subpages: []
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
export const Page = {
|
|
658
|
+
typeUrl: "/google.api.Page",
|
|
659
|
+
encode(message: Page, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
660
|
+
if (message.name !== "") {
|
|
661
|
+
writer.uint32(10).string(message.name);
|
|
662
|
+
}
|
|
663
|
+
if (message.content !== "") {
|
|
664
|
+
writer.uint32(18).string(message.content);
|
|
665
|
+
}
|
|
666
|
+
for (const v of message.subpages) {
|
|
667
|
+
Page.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
668
|
+
}
|
|
669
|
+
return writer;
|
|
670
|
+
},
|
|
671
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Page {
|
|
672
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
673
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
674
|
+
const message = createBasePage();
|
|
675
|
+
while (reader.pos < end) {
|
|
676
|
+
const tag = reader.uint32();
|
|
677
|
+
switch (tag >>> 3) {
|
|
678
|
+
case 1:
|
|
679
|
+
message.name = reader.string();
|
|
680
|
+
break;
|
|
681
|
+
case 2:
|
|
682
|
+
message.content = reader.string();
|
|
683
|
+
break;
|
|
684
|
+
case 3:
|
|
685
|
+
message.subpages.push(Page.decode(reader, reader.uint32()));
|
|
686
|
+
break;
|
|
687
|
+
default:
|
|
688
|
+
reader.skipType(tag & 7);
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return message;
|
|
693
|
+
},
|
|
694
|
+
fromPartial(object: Partial<Page>): Page {
|
|
695
|
+
const message = createBasePage();
|
|
696
|
+
message.name = object.name ?? "";
|
|
697
|
+
message.content = object.content ?? "";
|
|
698
|
+
message.subpages = object.subpages?.map(e => Page.fromPartial(e)) || [];
|
|
699
|
+
return message;
|
|
700
|
+
},
|
|
701
|
+
fromAmino(object: PageAmino): Page {
|
|
702
|
+
const message = createBasePage();
|
|
703
|
+
if (object.name !== undefined && object.name !== null) {
|
|
704
|
+
message.name = object.name;
|
|
705
|
+
}
|
|
706
|
+
if (object.content !== undefined && object.content !== null) {
|
|
707
|
+
message.content = object.content;
|
|
708
|
+
}
|
|
709
|
+
message.subpages = object.subpages?.map(e => Page.fromAmino(e)) || [];
|
|
710
|
+
return message;
|
|
711
|
+
},
|
|
712
|
+
toAmino(message: Page): PageAmino {
|
|
713
|
+
const obj: any = {};
|
|
714
|
+
obj.name = message.name === "" ? undefined : message.name;
|
|
715
|
+
obj.content = message.content === "" ? undefined : message.content;
|
|
716
|
+
if (message.subpages) {
|
|
717
|
+
obj.subpages = message.subpages.map(e => e ? Page.toAmino(e) : undefined);
|
|
718
|
+
} else {
|
|
719
|
+
obj.subpages = message.subpages;
|
|
720
|
+
}
|
|
721
|
+
return obj;
|
|
722
|
+
},
|
|
723
|
+
fromAminoMsg(object: PageAminoMsg): Page {
|
|
724
|
+
return Page.fromAmino(object.value);
|
|
725
|
+
},
|
|
726
|
+
fromProtoMsg(message: PageProtoMsg): Page {
|
|
727
|
+
return Page.decode(message.value);
|
|
728
|
+
},
|
|
729
|
+
toProto(message: Page): Uint8Array {
|
|
730
|
+
return Page.encode(message).finish();
|
|
731
|
+
},
|
|
732
|
+
toProtoMsg(message: Page): PageProtoMsg {
|
|
733
|
+
return {
|
|
734
|
+
typeUrl: "/google.api.Page",
|
|
735
|
+
value: Page.encode(message).finish()
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
};
|