@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,1293 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { ParsedExpr, ParsedExprAmino, ParsedExprSDKType } from "../../v1alpha1/syntax";
|
|
3
|
+
import { Decl, DeclAmino, DeclSDKType, CheckedExpr, CheckedExprAmino, CheckedExprSDKType } from "../../v1alpha1/checked";
|
|
4
|
+
import { ExprValue, ExprValueAmino, ExprValueSDKType } from "../../v1alpha1/eval";
|
|
5
|
+
import { Status, StatusAmino, StatusSDKType } from "../../../../rpc/status";
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "../../../../../binary";
|
|
7
|
+
/** Severities of issues. */
|
|
8
|
+
export enum IssueDetails_Severity {
|
|
9
|
+
/** SEVERITY_UNSPECIFIED - An unspecified severity. */
|
|
10
|
+
SEVERITY_UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* DEPRECATION - Deprecation issue for statements and method that may no longer be
|
|
13
|
+
* supported or maintained.
|
|
14
|
+
*/
|
|
15
|
+
DEPRECATION = 1,
|
|
16
|
+
/** WARNING - Warnings such as: unused variables. */
|
|
17
|
+
WARNING = 2,
|
|
18
|
+
/** ERROR - Errors such as: unmatched curly braces or variable redefinition. */
|
|
19
|
+
ERROR = 3,
|
|
20
|
+
UNRECOGNIZED = -1,
|
|
21
|
+
}
|
|
22
|
+
export const IssueDetails_SeveritySDKType = IssueDetails_Severity;
|
|
23
|
+
export const IssueDetails_SeverityAmino = IssueDetails_Severity;
|
|
24
|
+
export function issueDetails_SeverityFromJSON(object: any): IssueDetails_Severity {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "SEVERITY_UNSPECIFIED":
|
|
28
|
+
return IssueDetails_Severity.SEVERITY_UNSPECIFIED;
|
|
29
|
+
case 1:
|
|
30
|
+
case "DEPRECATION":
|
|
31
|
+
return IssueDetails_Severity.DEPRECATION;
|
|
32
|
+
case 2:
|
|
33
|
+
case "WARNING":
|
|
34
|
+
return IssueDetails_Severity.WARNING;
|
|
35
|
+
case 3:
|
|
36
|
+
case "ERROR":
|
|
37
|
+
return IssueDetails_Severity.ERROR;
|
|
38
|
+
case -1:
|
|
39
|
+
case "UNRECOGNIZED":
|
|
40
|
+
default:
|
|
41
|
+
return IssueDetails_Severity.UNRECOGNIZED;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export function issueDetails_SeverityToJSON(object: IssueDetails_Severity): string {
|
|
45
|
+
switch (object) {
|
|
46
|
+
case IssueDetails_Severity.SEVERITY_UNSPECIFIED:
|
|
47
|
+
return "SEVERITY_UNSPECIFIED";
|
|
48
|
+
case IssueDetails_Severity.DEPRECATION:
|
|
49
|
+
return "DEPRECATION";
|
|
50
|
+
case IssueDetails_Severity.WARNING:
|
|
51
|
+
return "WARNING";
|
|
52
|
+
case IssueDetails_Severity.ERROR:
|
|
53
|
+
return "ERROR";
|
|
54
|
+
case IssueDetails_Severity.UNRECOGNIZED:
|
|
55
|
+
default:
|
|
56
|
+
return "UNRECOGNIZED";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/** Request message for the Parse method. */
|
|
60
|
+
export interface ParseRequest {
|
|
61
|
+
/** Required. Source text in CEL syntax. */
|
|
62
|
+
celSource: string;
|
|
63
|
+
/** Tag for version of CEL syntax, for future use. */
|
|
64
|
+
syntaxVersion: string;
|
|
65
|
+
/** File or resource for source text, used in [SourceInfo][google.api.SourceInfo]. */
|
|
66
|
+
sourceLocation: string;
|
|
67
|
+
/** Prevent macro expansion. See "Macros" in Language Defiinition. */
|
|
68
|
+
disableMacros: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ParseRequestProtoMsg {
|
|
71
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseRequest";
|
|
72
|
+
value: Uint8Array;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Request message for the Parse method.
|
|
76
|
+
* @name ParseRequestAmino
|
|
77
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
78
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.ParseRequest
|
|
79
|
+
*/
|
|
80
|
+
export interface ParseRequestAmino {
|
|
81
|
+
/**
|
|
82
|
+
* Required. Source text in CEL syntax.
|
|
83
|
+
*/
|
|
84
|
+
cel_source?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Tag for version of CEL syntax, for future use.
|
|
87
|
+
*/
|
|
88
|
+
syntax_version?: string;
|
|
89
|
+
/**
|
|
90
|
+
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
|
|
91
|
+
*/
|
|
92
|
+
source_location?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Prevent macro expansion. See "Macros" in Language Defiinition.
|
|
95
|
+
*/
|
|
96
|
+
disable_macros?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface ParseRequestAminoMsg {
|
|
99
|
+
type: "/google.api.expr.conformance.v1alpha1.ParseRequest";
|
|
100
|
+
value: ParseRequestAmino;
|
|
101
|
+
}
|
|
102
|
+
/** Request message for the Parse method. */
|
|
103
|
+
export interface ParseRequestSDKType {
|
|
104
|
+
cel_source: string;
|
|
105
|
+
syntax_version: string;
|
|
106
|
+
source_location: string;
|
|
107
|
+
disable_macros: boolean;
|
|
108
|
+
}
|
|
109
|
+
/** Response message for the Parse method. */
|
|
110
|
+
export interface ParseResponse {
|
|
111
|
+
/** The parsed representation, or unset if parsing failed. */
|
|
112
|
+
parsedExpr?: ParsedExpr;
|
|
113
|
+
/** Any number of issues with [StatusDetails][] as the details. */
|
|
114
|
+
issues: Status[];
|
|
115
|
+
}
|
|
116
|
+
export interface ParseResponseProtoMsg {
|
|
117
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseResponse";
|
|
118
|
+
value: Uint8Array;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Response message for the Parse method.
|
|
122
|
+
* @name ParseResponseAmino
|
|
123
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
124
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.ParseResponse
|
|
125
|
+
*/
|
|
126
|
+
export interface ParseResponseAmino {
|
|
127
|
+
/**
|
|
128
|
+
* The parsed representation, or unset if parsing failed.
|
|
129
|
+
*/
|
|
130
|
+
parsed_expr?: ParsedExprAmino;
|
|
131
|
+
/**
|
|
132
|
+
* Any number of issues with [StatusDetails][] as the details.
|
|
133
|
+
*/
|
|
134
|
+
issues?: StatusAmino[];
|
|
135
|
+
}
|
|
136
|
+
export interface ParseResponseAminoMsg {
|
|
137
|
+
type: "/google.api.expr.conformance.v1alpha1.ParseResponse";
|
|
138
|
+
value: ParseResponseAmino;
|
|
139
|
+
}
|
|
140
|
+
/** Response message for the Parse method. */
|
|
141
|
+
export interface ParseResponseSDKType {
|
|
142
|
+
parsed_expr?: ParsedExprSDKType;
|
|
143
|
+
issues: StatusSDKType[];
|
|
144
|
+
}
|
|
145
|
+
/** Request message for the Check method. */
|
|
146
|
+
export interface CheckRequest {
|
|
147
|
+
/** Required. The parsed representation of the CEL program. */
|
|
148
|
+
parsedExpr?: ParsedExpr;
|
|
149
|
+
/**
|
|
150
|
+
* Declarations of types for external variables and functions.
|
|
151
|
+
* Required if program uses external variables or functions
|
|
152
|
+
* not in the default environment.
|
|
153
|
+
*/
|
|
154
|
+
typeEnv: Decl[];
|
|
155
|
+
/**
|
|
156
|
+
* The protocol buffer context. See "Name Resolution" in the
|
|
157
|
+
* Language Definition.
|
|
158
|
+
*/
|
|
159
|
+
container: string;
|
|
160
|
+
/**
|
|
161
|
+
* If true, use only the declarations in [type_env][google.api.expr.conformance.v1alpha1.CheckRequest.type_env]. If false (default),
|
|
162
|
+
* add declarations for the standard definitions to the type environment. See
|
|
163
|
+
* "Standard Definitions" in the Language Definition.
|
|
164
|
+
*/
|
|
165
|
+
noStdEnv: boolean;
|
|
166
|
+
}
|
|
167
|
+
export interface CheckRequestProtoMsg {
|
|
168
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckRequest";
|
|
169
|
+
value: Uint8Array;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Request message for the Check method.
|
|
173
|
+
* @name CheckRequestAmino
|
|
174
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
175
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.CheckRequest
|
|
176
|
+
*/
|
|
177
|
+
export interface CheckRequestAmino {
|
|
178
|
+
/**
|
|
179
|
+
* Required. The parsed representation of the CEL program.
|
|
180
|
+
*/
|
|
181
|
+
parsed_expr?: ParsedExprAmino;
|
|
182
|
+
/**
|
|
183
|
+
* Declarations of types for external variables and functions.
|
|
184
|
+
* Required if program uses external variables or functions
|
|
185
|
+
* not in the default environment.
|
|
186
|
+
*/
|
|
187
|
+
type_env?: DeclAmino[];
|
|
188
|
+
/**
|
|
189
|
+
* The protocol buffer context. See "Name Resolution" in the
|
|
190
|
+
* Language Definition.
|
|
191
|
+
*/
|
|
192
|
+
container?: string;
|
|
193
|
+
/**
|
|
194
|
+
* If true, use only the declarations in [type_env][google.api.expr.conformance.v1alpha1.CheckRequest.type_env]. If false (default),
|
|
195
|
+
* add declarations for the standard definitions to the type environment. See
|
|
196
|
+
* "Standard Definitions" in the Language Definition.
|
|
197
|
+
*/
|
|
198
|
+
no_std_env?: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface CheckRequestAminoMsg {
|
|
201
|
+
type: "/google.api.expr.conformance.v1alpha1.CheckRequest";
|
|
202
|
+
value: CheckRequestAmino;
|
|
203
|
+
}
|
|
204
|
+
/** Request message for the Check method. */
|
|
205
|
+
export interface CheckRequestSDKType {
|
|
206
|
+
parsed_expr?: ParsedExprSDKType;
|
|
207
|
+
type_env: DeclSDKType[];
|
|
208
|
+
container: string;
|
|
209
|
+
no_std_env: boolean;
|
|
210
|
+
}
|
|
211
|
+
/** Response message for the Check method. */
|
|
212
|
+
export interface CheckResponse {
|
|
213
|
+
/** The annotated representation, or unset if checking failed. */
|
|
214
|
+
checkedExpr?: CheckedExpr;
|
|
215
|
+
/** Any number of issues with [StatusDetails][] as the details. */
|
|
216
|
+
issues: Status[];
|
|
217
|
+
}
|
|
218
|
+
export interface CheckResponseProtoMsg {
|
|
219
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckResponse";
|
|
220
|
+
value: Uint8Array;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Response message for the Check method.
|
|
224
|
+
* @name CheckResponseAmino
|
|
225
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
226
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.CheckResponse
|
|
227
|
+
*/
|
|
228
|
+
export interface CheckResponseAmino {
|
|
229
|
+
/**
|
|
230
|
+
* The annotated representation, or unset if checking failed.
|
|
231
|
+
*/
|
|
232
|
+
checked_expr?: CheckedExprAmino;
|
|
233
|
+
/**
|
|
234
|
+
* Any number of issues with [StatusDetails][] as the details.
|
|
235
|
+
*/
|
|
236
|
+
issues?: StatusAmino[];
|
|
237
|
+
}
|
|
238
|
+
export interface CheckResponseAminoMsg {
|
|
239
|
+
type: "/google.api.expr.conformance.v1alpha1.CheckResponse";
|
|
240
|
+
value: CheckResponseAmino;
|
|
241
|
+
}
|
|
242
|
+
/** Response message for the Check method. */
|
|
243
|
+
export interface CheckResponseSDKType {
|
|
244
|
+
checked_expr?: CheckedExprSDKType;
|
|
245
|
+
issues: StatusSDKType[];
|
|
246
|
+
}
|
|
247
|
+
export interface EvalRequest_BindingsEntry {
|
|
248
|
+
key: string;
|
|
249
|
+
value?: ExprValue;
|
|
250
|
+
}
|
|
251
|
+
export interface EvalRequest_BindingsEntryProtoMsg {
|
|
252
|
+
typeUrl: string;
|
|
253
|
+
value: Uint8Array;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @name EvalRequest_BindingsEntryAmino
|
|
257
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
258
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.EvalRequest_BindingsEntry
|
|
259
|
+
*/
|
|
260
|
+
export interface EvalRequest_BindingsEntryAmino {
|
|
261
|
+
key?: string;
|
|
262
|
+
value?: ExprValueAmino;
|
|
263
|
+
}
|
|
264
|
+
export interface EvalRequest_BindingsEntryAminoMsg {
|
|
265
|
+
type: string;
|
|
266
|
+
value: EvalRequest_BindingsEntryAmino;
|
|
267
|
+
}
|
|
268
|
+
export interface EvalRequest_BindingsEntrySDKType {
|
|
269
|
+
key: string;
|
|
270
|
+
value?: ExprValueSDKType;
|
|
271
|
+
}
|
|
272
|
+
/** Request message for the Eval method. */
|
|
273
|
+
export interface EvalRequest {
|
|
274
|
+
/** Evaluate based on the parsed representation. */
|
|
275
|
+
parsedExpr?: ParsedExpr;
|
|
276
|
+
/** Evaluate based on the checked representation. */
|
|
277
|
+
checkedExpr?: CheckedExpr;
|
|
278
|
+
/**
|
|
279
|
+
* Bindings for the external variables. The types SHOULD be compatible
|
|
280
|
+
* with the type environment in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
|
|
281
|
+
*/
|
|
282
|
+
bindings: {
|
|
283
|
+
[key: string]: ExprValue;
|
|
284
|
+
};
|
|
285
|
+
/** SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked. */
|
|
286
|
+
container: string;
|
|
287
|
+
}
|
|
288
|
+
export interface EvalRequestProtoMsg {
|
|
289
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalRequest";
|
|
290
|
+
value: Uint8Array;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Request message for the Eval method.
|
|
294
|
+
* @name EvalRequestAmino
|
|
295
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
296
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.EvalRequest
|
|
297
|
+
*/
|
|
298
|
+
export interface EvalRequestAmino {
|
|
299
|
+
/**
|
|
300
|
+
* Evaluate based on the parsed representation.
|
|
301
|
+
*/
|
|
302
|
+
parsed_expr?: ParsedExprAmino;
|
|
303
|
+
/**
|
|
304
|
+
* Evaluate based on the checked representation.
|
|
305
|
+
*/
|
|
306
|
+
checked_expr?: CheckedExprAmino;
|
|
307
|
+
/**
|
|
308
|
+
* Bindings for the external variables. The types SHOULD be compatible
|
|
309
|
+
* with the type environment in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
|
|
310
|
+
*/
|
|
311
|
+
bindings?: {
|
|
312
|
+
[key: string]: ExprValueAmino;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
|
|
316
|
+
*/
|
|
317
|
+
container?: string;
|
|
318
|
+
}
|
|
319
|
+
export interface EvalRequestAminoMsg {
|
|
320
|
+
type: "/google.api.expr.conformance.v1alpha1.EvalRequest";
|
|
321
|
+
value: EvalRequestAmino;
|
|
322
|
+
}
|
|
323
|
+
/** Request message for the Eval method. */
|
|
324
|
+
export interface EvalRequestSDKType {
|
|
325
|
+
parsed_expr?: ParsedExprSDKType;
|
|
326
|
+
checked_expr?: CheckedExprSDKType;
|
|
327
|
+
bindings: {
|
|
328
|
+
[key: string]: ExprValueSDKType;
|
|
329
|
+
};
|
|
330
|
+
container: string;
|
|
331
|
+
}
|
|
332
|
+
/** Response message for the Eval method. */
|
|
333
|
+
export interface EvalResponse {
|
|
334
|
+
/** The execution result, or unset if execution couldn't start. */
|
|
335
|
+
result?: ExprValue;
|
|
336
|
+
/**
|
|
337
|
+
* Any number of issues with [StatusDetails][] as the details.
|
|
338
|
+
* Note that CEL execution errors are reified into [ExprValue][].
|
|
339
|
+
* Nevertheless, we'll allow out-of-band issues to be raised,
|
|
340
|
+
* which also makes the replies more regular.
|
|
341
|
+
*/
|
|
342
|
+
issues: Status[];
|
|
343
|
+
}
|
|
344
|
+
export interface EvalResponseProtoMsg {
|
|
345
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalResponse";
|
|
346
|
+
value: Uint8Array;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Response message for the Eval method.
|
|
350
|
+
* @name EvalResponseAmino
|
|
351
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
352
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.EvalResponse
|
|
353
|
+
*/
|
|
354
|
+
export interface EvalResponseAmino {
|
|
355
|
+
/**
|
|
356
|
+
* The execution result, or unset if execution couldn't start.
|
|
357
|
+
*/
|
|
358
|
+
result?: ExprValueAmino;
|
|
359
|
+
/**
|
|
360
|
+
* Any number of issues with [StatusDetails][] as the details.
|
|
361
|
+
* Note that CEL execution errors are reified into [ExprValue][].
|
|
362
|
+
* Nevertheless, we'll allow out-of-band issues to be raised,
|
|
363
|
+
* which also makes the replies more regular.
|
|
364
|
+
*/
|
|
365
|
+
issues?: StatusAmino[];
|
|
366
|
+
}
|
|
367
|
+
export interface EvalResponseAminoMsg {
|
|
368
|
+
type: "/google.api.expr.conformance.v1alpha1.EvalResponse";
|
|
369
|
+
value: EvalResponseAmino;
|
|
370
|
+
}
|
|
371
|
+
/** Response message for the Eval method. */
|
|
372
|
+
export interface EvalResponseSDKType {
|
|
373
|
+
result?: ExprValueSDKType;
|
|
374
|
+
issues: StatusSDKType[];
|
|
375
|
+
}
|
|
376
|
+
/** A specific position in source. */
|
|
377
|
+
export interface SourcePosition {
|
|
378
|
+
/** The source location name (e.g. file name). */
|
|
379
|
+
location: string;
|
|
380
|
+
/** The UTF-8 code unit offset. */
|
|
381
|
+
offset: number;
|
|
382
|
+
/**
|
|
383
|
+
* The 1-based index of the starting line in the source text
|
|
384
|
+
* where the issue occurs, or 0 if unknown.
|
|
385
|
+
*/
|
|
386
|
+
line: number;
|
|
387
|
+
/**
|
|
388
|
+
* The 0-based index of the starting position within the line of source text
|
|
389
|
+
* where the issue occurs. Only meaningful if line is nonzero.
|
|
390
|
+
*/
|
|
391
|
+
column: number;
|
|
392
|
+
}
|
|
393
|
+
export interface SourcePositionProtoMsg {
|
|
394
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.SourcePosition";
|
|
395
|
+
value: Uint8Array;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* A specific position in source.
|
|
399
|
+
* @name SourcePositionAmino
|
|
400
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
401
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.SourcePosition
|
|
402
|
+
*/
|
|
403
|
+
export interface SourcePositionAmino {
|
|
404
|
+
/**
|
|
405
|
+
* The source location name (e.g. file name).
|
|
406
|
+
*/
|
|
407
|
+
location?: string;
|
|
408
|
+
/**
|
|
409
|
+
* The UTF-8 code unit offset.
|
|
410
|
+
*/
|
|
411
|
+
offset?: number;
|
|
412
|
+
/**
|
|
413
|
+
* The 1-based index of the starting line in the source text
|
|
414
|
+
* where the issue occurs, or 0 if unknown.
|
|
415
|
+
*/
|
|
416
|
+
line?: number;
|
|
417
|
+
/**
|
|
418
|
+
* The 0-based index of the starting position within the line of source text
|
|
419
|
+
* where the issue occurs. Only meaningful if line is nonzero.
|
|
420
|
+
*/
|
|
421
|
+
column?: number;
|
|
422
|
+
}
|
|
423
|
+
export interface SourcePositionAminoMsg {
|
|
424
|
+
type: "/google.api.expr.conformance.v1alpha1.SourcePosition";
|
|
425
|
+
value: SourcePositionAmino;
|
|
426
|
+
}
|
|
427
|
+
/** A specific position in source. */
|
|
428
|
+
export interface SourcePositionSDKType {
|
|
429
|
+
location: string;
|
|
430
|
+
offset: number;
|
|
431
|
+
line: number;
|
|
432
|
+
column: number;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Warnings or errors in service execution are represented by
|
|
436
|
+
* [google.rpc.Status][google.rpc.Status] messages, with the following message
|
|
437
|
+
* in the details field.
|
|
438
|
+
*/
|
|
439
|
+
export interface IssueDetails {
|
|
440
|
+
/** The severity of the issue. */
|
|
441
|
+
severity: IssueDetails_Severity;
|
|
442
|
+
/** Position in the source, if known. */
|
|
443
|
+
position?: SourcePosition;
|
|
444
|
+
/** Expression ID from [Expr][], 0 if unknown. */
|
|
445
|
+
id: bigint;
|
|
446
|
+
}
|
|
447
|
+
export interface IssueDetailsProtoMsg {
|
|
448
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.IssueDetails";
|
|
449
|
+
value: Uint8Array;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Warnings or errors in service execution are represented by
|
|
453
|
+
* [google.rpc.Status][google.rpc.Status] messages, with the following message
|
|
454
|
+
* in the details field.
|
|
455
|
+
* @name IssueDetailsAmino
|
|
456
|
+
* @package google.api.expr.conformance.v1alpha1
|
|
457
|
+
* @see proto type: google.api.expr.conformance.v1alpha1.IssueDetails
|
|
458
|
+
*/
|
|
459
|
+
export interface IssueDetailsAmino {
|
|
460
|
+
/**
|
|
461
|
+
* The severity of the issue.
|
|
462
|
+
*/
|
|
463
|
+
severity?: IssueDetails_Severity;
|
|
464
|
+
/**
|
|
465
|
+
* Position in the source, if known.
|
|
466
|
+
*/
|
|
467
|
+
position?: SourcePositionAmino;
|
|
468
|
+
/**
|
|
469
|
+
* Expression ID from [Expr][], 0 if unknown.
|
|
470
|
+
*/
|
|
471
|
+
id?: string;
|
|
472
|
+
}
|
|
473
|
+
export interface IssueDetailsAminoMsg {
|
|
474
|
+
type: "/google.api.expr.conformance.v1alpha1.IssueDetails";
|
|
475
|
+
value: IssueDetailsAmino;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Warnings or errors in service execution are represented by
|
|
479
|
+
* [google.rpc.Status][google.rpc.Status] messages, with the following message
|
|
480
|
+
* in the details field.
|
|
481
|
+
*/
|
|
482
|
+
export interface IssueDetailsSDKType {
|
|
483
|
+
severity: IssueDetails_Severity;
|
|
484
|
+
position?: SourcePositionSDKType;
|
|
485
|
+
id: bigint;
|
|
486
|
+
}
|
|
487
|
+
function createBaseParseRequest(): ParseRequest {
|
|
488
|
+
return {
|
|
489
|
+
celSource: "",
|
|
490
|
+
syntaxVersion: "",
|
|
491
|
+
sourceLocation: "",
|
|
492
|
+
disableMacros: false
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
export const ParseRequest = {
|
|
496
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseRequest",
|
|
497
|
+
encode(message: ParseRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
498
|
+
if (message.celSource !== "") {
|
|
499
|
+
writer.uint32(10).string(message.celSource);
|
|
500
|
+
}
|
|
501
|
+
if (message.syntaxVersion !== "") {
|
|
502
|
+
writer.uint32(18).string(message.syntaxVersion);
|
|
503
|
+
}
|
|
504
|
+
if (message.sourceLocation !== "") {
|
|
505
|
+
writer.uint32(26).string(message.sourceLocation);
|
|
506
|
+
}
|
|
507
|
+
if (message.disableMacros === true) {
|
|
508
|
+
writer.uint32(32).bool(message.disableMacros);
|
|
509
|
+
}
|
|
510
|
+
return writer;
|
|
511
|
+
},
|
|
512
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ParseRequest {
|
|
513
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
514
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
515
|
+
const message = createBaseParseRequest();
|
|
516
|
+
while (reader.pos < end) {
|
|
517
|
+
const tag = reader.uint32();
|
|
518
|
+
switch (tag >>> 3) {
|
|
519
|
+
case 1:
|
|
520
|
+
message.celSource = reader.string();
|
|
521
|
+
break;
|
|
522
|
+
case 2:
|
|
523
|
+
message.syntaxVersion = reader.string();
|
|
524
|
+
break;
|
|
525
|
+
case 3:
|
|
526
|
+
message.sourceLocation = reader.string();
|
|
527
|
+
break;
|
|
528
|
+
case 4:
|
|
529
|
+
message.disableMacros = reader.bool();
|
|
530
|
+
break;
|
|
531
|
+
default:
|
|
532
|
+
reader.skipType(tag & 7);
|
|
533
|
+
break;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
return message;
|
|
537
|
+
},
|
|
538
|
+
fromPartial(object: Partial<ParseRequest>): ParseRequest {
|
|
539
|
+
const message = createBaseParseRequest();
|
|
540
|
+
message.celSource = object.celSource ?? "";
|
|
541
|
+
message.syntaxVersion = object.syntaxVersion ?? "";
|
|
542
|
+
message.sourceLocation = object.sourceLocation ?? "";
|
|
543
|
+
message.disableMacros = object.disableMacros ?? false;
|
|
544
|
+
return message;
|
|
545
|
+
},
|
|
546
|
+
fromAmino(object: ParseRequestAmino): ParseRequest {
|
|
547
|
+
const message = createBaseParseRequest();
|
|
548
|
+
if (object.cel_source !== undefined && object.cel_source !== null) {
|
|
549
|
+
message.celSource = object.cel_source;
|
|
550
|
+
}
|
|
551
|
+
if (object.syntax_version !== undefined && object.syntax_version !== null) {
|
|
552
|
+
message.syntaxVersion = object.syntax_version;
|
|
553
|
+
}
|
|
554
|
+
if (object.source_location !== undefined && object.source_location !== null) {
|
|
555
|
+
message.sourceLocation = object.source_location;
|
|
556
|
+
}
|
|
557
|
+
if (object.disable_macros !== undefined && object.disable_macros !== null) {
|
|
558
|
+
message.disableMacros = object.disable_macros;
|
|
559
|
+
}
|
|
560
|
+
return message;
|
|
561
|
+
},
|
|
562
|
+
toAmino(message: ParseRequest): ParseRequestAmino {
|
|
563
|
+
const obj: any = {};
|
|
564
|
+
obj.cel_source = message.celSource === "" ? undefined : message.celSource;
|
|
565
|
+
obj.syntax_version = message.syntaxVersion === "" ? undefined : message.syntaxVersion;
|
|
566
|
+
obj.source_location = message.sourceLocation === "" ? undefined : message.sourceLocation;
|
|
567
|
+
obj.disable_macros = message.disableMacros === false ? undefined : message.disableMacros;
|
|
568
|
+
return obj;
|
|
569
|
+
},
|
|
570
|
+
fromAminoMsg(object: ParseRequestAminoMsg): ParseRequest {
|
|
571
|
+
return ParseRequest.fromAmino(object.value);
|
|
572
|
+
},
|
|
573
|
+
fromProtoMsg(message: ParseRequestProtoMsg): ParseRequest {
|
|
574
|
+
return ParseRequest.decode(message.value);
|
|
575
|
+
},
|
|
576
|
+
toProto(message: ParseRequest): Uint8Array {
|
|
577
|
+
return ParseRequest.encode(message).finish();
|
|
578
|
+
},
|
|
579
|
+
toProtoMsg(message: ParseRequest): ParseRequestProtoMsg {
|
|
580
|
+
return {
|
|
581
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseRequest",
|
|
582
|
+
value: ParseRequest.encode(message).finish()
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
function createBaseParseResponse(): ParseResponse {
|
|
587
|
+
return {
|
|
588
|
+
parsedExpr: undefined,
|
|
589
|
+
issues: []
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
export const ParseResponse = {
|
|
593
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseResponse",
|
|
594
|
+
encode(message: ParseResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
595
|
+
if (message.parsedExpr !== undefined) {
|
|
596
|
+
ParsedExpr.encode(message.parsedExpr, writer.uint32(10).fork()).ldelim();
|
|
597
|
+
}
|
|
598
|
+
for (const v of message.issues) {
|
|
599
|
+
Status.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
600
|
+
}
|
|
601
|
+
return writer;
|
|
602
|
+
},
|
|
603
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ParseResponse {
|
|
604
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
605
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
606
|
+
const message = createBaseParseResponse();
|
|
607
|
+
while (reader.pos < end) {
|
|
608
|
+
const tag = reader.uint32();
|
|
609
|
+
switch (tag >>> 3) {
|
|
610
|
+
case 1:
|
|
611
|
+
message.parsedExpr = ParsedExpr.decode(reader, reader.uint32());
|
|
612
|
+
break;
|
|
613
|
+
case 2:
|
|
614
|
+
message.issues.push(Status.decode(reader, reader.uint32()));
|
|
615
|
+
break;
|
|
616
|
+
default:
|
|
617
|
+
reader.skipType(tag & 7);
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
return message;
|
|
622
|
+
},
|
|
623
|
+
fromPartial(object: Partial<ParseResponse>): ParseResponse {
|
|
624
|
+
const message = createBaseParseResponse();
|
|
625
|
+
message.parsedExpr = object.parsedExpr !== undefined && object.parsedExpr !== null ? ParsedExpr.fromPartial(object.parsedExpr) : undefined;
|
|
626
|
+
message.issues = object.issues?.map(e => Status.fromPartial(e)) || [];
|
|
627
|
+
return message;
|
|
628
|
+
},
|
|
629
|
+
fromAmino(object: ParseResponseAmino): ParseResponse {
|
|
630
|
+
const message = createBaseParseResponse();
|
|
631
|
+
if (object.parsed_expr !== undefined && object.parsed_expr !== null) {
|
|
632
|
+
message.parsedExpr = ParsedExpr.fromAmino(object.parsed_expr);
|
|
633
|
+
}
|
|
634
|
+
message.issues = object.issues?.map(e => Status.fromAmino(e)) || [];
|
|
635
|
+
return message;
|
|
636
|
+
},
|
|
637
|
+
toAmino(message: ParseResponse): ParseResponseAmino {
|
|
638
|
+
const obj: any = {};
|
|
639
|
+
obj.parsed_expr = message.parsedExpr ? ParsedExpr.toAmino(message.parsedExpr) : undefined;
|
|
640
|
+
if (message.issues) {
|
|
641
|
+
obj.issues = message.issues.map(e => e ? Status.toAmino(e) : undefined);
|
|
642
|
+
} else {
|
|
643
|
+
obj.issues = message.issues;
|
|
644
|
+
}
|
|
645
|
+
return obj;
|
|
646
|
+
},
|
|
647
|
+
fromAminoMsg(object: ParseResponseAminoMsg): ParseResponse {
|
|
648
|
+
return ParseResponse.fromAmino(object.value);
|
|
649
|
+
},
|
|
650
|
+
fromProtoMsg(message: ParseResponseProtoMsg): ParseResponse {
|
|
651
|
+
return ParseResponse.decode(message.value);
|
|
652
|
+
},
|
|
653
|
+
toProto(message: ParseResponse): Uint8Array {
|
|
654
|
+
return ParseResponse.encode(message).finish();
|
|
655
|
+
},
|
|
656
|
+
toProtoMsg(message: ParseResponse): ParseResponseProtoMsg {
|
|
657
|
+
return {
|
|
658
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.ParseResponse",
|
|
659
|
+
value: ParseResponse.encode(message).finish()
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
function createBaseCheckRequest(): CheckRequest {
|
|
664
|
+
return {
|
|
665
|
+
parsedExpr: undefined,
|
|
666
|
+
typeEnv: [],
|
|
667
|
+
container: "",
|
|
668
|
+
noStdEnv: false
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
export const CheckRequest = {
|
|
672
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckRequest",
|
|
673
|
+
encode(message: CheckRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
674
|
+
if (message.parsedExpr !== undefined) {
|
|
675
|
+
ParsedExpr.encode(message.parsedExpr, writer.uint32(10).fork()).ldelim();
|
|
676
|
+
}
|
|
677
|
+
for (const v of message.typeEnv) {
|
|
678
|
+
Decl.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
679
|
+
}
|
|
680
|
+
if (message.container !== "") {
|
|
681
|
+
writer.uint32(26).string(message.container);
|
|
682
|
+
}
|
|
683
|
+
if (message.noStdEnv === true) {
|
|
684
|
+
writer.uint32(32).bool(message.noStdEnv);
|
|
685
|
+
}
|
|
686
|
+
return writer;
|
|
687
|
+
},
|
|
688
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckRequest {
|
|
689
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
690
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
691
|
+
const message = createBaseCheckRequest();
|
|
692
|
+
while (reader.pos < end) {
|
|
693
|
+
const tag = reader.uint32();
|
|
694
|
+
switch (tag >>> 3) {
|
|
695
|
+
case 1:
|
|
696
|
+
message.parsedExpr = ParsedExpr.decode(reader, reader.uint32());
|
|
697
|
+
break;
|
|
698
|
+
case 2:
|
|
699
|
+
message.typeEnv.push(Decl.decode(reader, reader.uint32()));
|
|
700
|
+
break;
|
|
701
|
+
case 3:
|
|
702
|
+
message.container = reader.string();
|
|
703
|
+
break;
|
|
704
|
+
case 4:
|
|
705
|
+
message.noStdEnv = reader.bool();
|
|
706
|
+
break;
|
|
707
|
+
default:
|
|
708
|
+
reader.skipType(tag & 7);
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return message;
|
|
713
|
+
},
|
|
714
|
+
fromPartial(object: Partial<CheckRequest>): CheckRequest {
|
|
715
|
+
const message = createBaseCheckRequest();
|
|
716
|
+
message.parsedExpr = object.parsedExpr !== undefined && object.parsedExpr !== null ? ParsedExpr.fromPartial(object.parsedExpr) : undefined;
|
|
717
|
+
message.typeEnv = object.typeEnv?.map(e => Decl.fromPartial(e)) || [];
|
|
718
|
+
message.container = object.container ?? "";
|
|
719
|
+
message.noStdEnv = object.noStdEnv ?? false;
|
|
720
|
+
return message;
|
|
721
|
+
},
|
|
722
|
+
fromAmino(object: CheckRequestAmino): CheckRequest {
|
|
723
|
+
const message = createBaseCheckRequest();
|
|
724
|
+
if (object.parsed_expr !== undefined && object.parsed_expr !== null) {
|
|
725
|
+
message.parsedExpr = ParsedExpr.fromAmino(object.parsed_expr);
|
|
726
|
+
}
|
|
727
|
+
message.typeEnv = object.type_env?.map(e => Decl.fromAmino(e)) || [];
|
|
728
|
+
if (object.container !== undefined && object.container !== null) {
|
|
729
|
+
message.container = object.container;
|
|
730
|
+
}
|
|
731
|
+
if (object.no_std_env !== undefined && object.no_std_env !== null) {
|
|
732
|
+
message.noStdEnv = object.no_std_env;
|
|
733
|
+
}
|
|
734
|
+
return message;
|
|
735
|
+
},
|
|
736
|
+
toAmino(message: CheckRequest): CheckRequestAmino {
|
|
737
|
+
const obj: any = {};
|
|
738
|
+
obj.parsed_expr = message.parsedExpr ? ParsedExpr.toAmino(message.parsedExpr) : undefined;
|
|
739
|
+
if (message.typeEnv) {
|
|
740
|
+
obj.type_env = message.typeEnv.map(e => e ? Decl.toAmino(e) : undefined);
|
|
741
|
+
} else {
|
|
742
|
+
obj.type_env = message.typeEnv;
|
|
743
|
+
}
|
|
744
|
+
obj.container = message.container === "" ? undefined : message.container;
|
|
745
|
+
obj.no_std_env = message.noStdEnv === false ? undefined : message.noStdEnv;
|
|
746
|
+
return obj;
|
|
747
|
+
},
|
|
748
|
+
fromAminoMsg(object: CheckRequestAminoMsg): CheckRequest {
|
|
749
|
+
return CheckRequest.fromAmino(object.value);
|
|
750
|
+
},
|
|
751
|
+
fromProtoMsg(message: CheckRequestProtoMsg): CheckRequest {
|
|
752
|
+
return CheckRequest.decode(message.value);
|
|
753
|
+
},
|
|
754
|
+
toProto(message: CheckRequest): Uint8Array {
|
|
755
|
+
return CheckRequest.encode(message).finish();
|
|
756
|
+
},
|
|
757
|
+
toProtoMsg(message: CheckRequest): CheckRequestProtoMsg {
|
|
758
|
+
return {
|
|
759
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckRequest",
|
|
760
|
+
value: CheckRequest.encode(message).finish()
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
function createBaseCheckResponse(): CheckResponse {
|
|
765
|
+
return {
|
|
766
|
+
checkedExpr: undefined,
|
|
767
|
+
issues: []
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
export const CheckResponse = {
|
|
771
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckResponse",
|
|
772
|
+
encode(message: CheckResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
773
|
+
if (message.checkedExpr !== undefined) {
|
|
774
|
+
CheckedExpr.encode(message.checkedExpr, writer.uint32(10).fork()).ldelim();
|
|
775
|
+
}
|
|
776
|
+
for (const v of message.issues) {
|
|
777
|
+
Status.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
778
|
+
}
|
|
779
|
+
return writer;
|
|
780
|
+
},
|
|
781
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CheckResponse {
|
|
782
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
784
|
+
const message = createBaseCheckResponse();
|
|
785
|
+
while (reader.pos < end) {
|
|
786
|
+
const tag = reader.uint32();
|
|
787
|
+
switch (tag >>> 3) {
|
|
788
|
+
case 1:
|
|
789
|
+
message.checkedExpr = CheckedExpr.decode(reader, reader.uint32());
|
|
790
|
+
break;
|
|
791
|
+
case 2:
|
|
792
|
+
message.issues.push(Status.decode(reader, reader.uint32()));
|
|
793
|
+
break;
|
|
794
|
+
default:
|
|
795
|
+
reader.skipType(tag & 7);
|
|
796
|
+
break;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return message;
|
|
800
|
+
},
|
|
801
|
+
fromPartial(object: Partial<CheckResponse>): CheckResponse {
|
|
802
|
+
const message = createBaseCheckResponse();
|
|
803
|
+
message.checkedExpr = object.checkedExpr !== undefined && object.checkedExpr !== null ? CheckedExpr.fromPartial(object.checkedExpr) : undefined;
|
|
804
|
+
message.issues = object.issues?.map(e => Status.fromPartial(e)) || [];
|
|
805
|
+
return message;
|
|
806
|
+
},
|
|
807
|
+
fromAmino(object: CheckResponseAmino): CheckResponse {
|
|
808
|
+
const message = createBaseCheckResponse();
|
|
809
|
+
if (object.checked_expr !== undefined && object.checked_expr !== null) {
|
|
810
|
+
message.checkedExpr = CheckedExpr.fromAmino(object.checked_expr);
|
|
811
|
+
}
|
|
812
|
+
message.issues = object.issues?.map(e => Status.fromAmino(e)) || [];
|
|
813
|
+
return message;
|
|
814
|
+
},
|
|
815
|
+
toAmino(message: CheckResponse): CheckResponseAmino {
|
|
816
|
+
const obj: any = {};
|
|
817
|
+
obj.checked_expr = message.checkedExpr ? CheckedExpr.toAmino(message.checkedExpr) : undefined;
|
|
818
|
+
if (message.issues) {
|
|
819
|
+
obj.issues = message.issues.map(e => e ? Status.toAmino(e) : undefined);
|
|
820
|
+
} else {
|
|
821
|
+
obj.issues = message.issues;
|
|
822
|
+
}
|
|
823
|
+
return obj;
|
|
824
|
+
},
|
|
825
|
+
fromAminoMsg(object: CheckResponseAminoMsg): CheckResponse {
|
|
826
|
+
return CheckResponse.fromAmino(object.value);
|
|
827
|
+
},
|
|
828
|
+
fromProtoMsg(message: CheckResponseProtoMsg): CheckResponse {
|
|
829
|
+
return CheckResponse.decode(message.value);
|
|
830
|
+
},
|
|
831
|
+
toProto(message: CheckResponse): Uint8Array {
|
|
832
|
+
return CheckResponse.encode(message).finish();
|
|
833
|
+
},
|
|
834
|
+
toProtoMsg(message: CheckResponse): CheckResponseProtoMsg {
|
|
835
|
+
return {
|
|
836
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.CheckResponse",
|
|
837
|
+
value: CheckResponse.encode(message).finish()
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
function createBaseEvalRequest_BindingsEntry(): EvalRequest_BindingsEntry {
|
|
842
|
+
return {
|
|
843
|
+
key: "",
|
|
844
|
+
value: undefined
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
export const EvalRequest_BindingsEntry = {
|
|
848
|
+
encode(message: EvalRequest_BindingsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
849
|
+
if (message.key !== "") {
|
|
850
|
+
writer.uint32(10).string(message.key);
|
|
851
|
+
}
|
|
852
|
+
if (message.value !== undefined) {
|
|
853
|
+
ExprValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
854
|
+
}
|
|
855
|
+
return writer;
|
|
856
|
+
},
|
|
857
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EvalRequest_BindingsEntry {
|
|
858
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
859
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
860
|
+
const message = createBaseEvalRequest_BindingsEntry();
|
|
861
|
+
while (reader.pos < end) {
|
|
862
|
+
const tag = reader.uint32();
|
|
863
|
+
switch (tag >>> 3) {
|
|
864
|
+
case 1:
|
|
865
|
+
message.key = reader.string();
|
|
866
|
+
break;
|
|
867
|
+
case 2:
|
|
868
|
+
message.value = ExprValue.decode(reader, reader.uint32());
|
|
869
|
+
break;
|
|
870
|
+
default:
|
|
871
|
+
reader.skipType(tag & 7);
|
|
872
|
+
break;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
return message;
|
|
876
|
+
},
|
|
877
|
+
fromPartial(object: Partial<EvalRequest_BindingsEntry>): EvalRequest_BindingsEntry {
|
|
878
|
+
const message = createBaseEvalRequest_BindingsEntry();
|
|
879
|
+
message.key = object.key ?? "";
|
|
880
|
+
message.value = object.value !== undefined && object.value !== null ? ExprValue.fromPartial(object.value) : undefined;
|
|
881
|
+
return message;
|
|
882
|
+
},
|
|
883
|
+
fromAmino(object: EvalRequest_BindingsEntryAmino): EvalRequest_BindingsEntry {
|
|
884
|
+
const message = createBaseEvalRequest_BindingsEntry();
|
|
885
|
+
if (object.key !== undefined && object.key !== null) {
|
|
886
|
+
message.key = object.key;
|
|
887
|
+
}
|
|
888
|
+
if (object.value !== undefined && object.value !== null) {
|
|
889
|
+
message.value = ExprValue.fromAmino(object.value);
|
|
890
|
+
}
|
|
891
|
+
return message;
|
|
892
|
+
},
|
|
893
|
+
toAmino(message: EvalRequest_BindingsEntry): EvalRequest_BindingsEntryAmino {
|
|
894
|
+
const obj: any = {};
|
|
895
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
896
|
+
obj.value = message.value ? ExprValue.toAmino(message.value) : undefined;
|
|
897
|
+
return obj;
|
|
898
|
+
},
|
|
899
|
+
fromAminoMsg(object: EvalRequest_BindingsEntryAminoMsg): EvalRequest_BindingsEntry {
|
|
900
|
+
return EvalRequest_BindingsEntry.fromAmino(object.value);
|
|
901
|
+
},
|
|
902
|
+
fromProtoMsg(message: EvalRequest_BindingsEntryProtoMsg): EvalRequest_BindingsEntry {
|
|
903
|
+
return EvalRequest_BindingsEntry.decode(message.value);
|
|
904
|
+
},
|
|
905
|
+
toProto(message: EvalRequest_BindingsEntry): Uint8Array {
|
|
906
|
+
return EvalRequest_BindingsEntry.encode(message).finish();
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
function createBaseEvalRequest(): EvalRequest {
|
|
910
|
+
return {
|
|
911
|
+
parsedExpr: undefined,
|
|
912
|
+
checkedExpr: undefined,
|
|
913
|
+
bindings: {},
|
|
914
|
+
container: ""
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
export const EvalRequest = {
|
|
918
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalRequest",
|
|
919
|
+
encode(message: EvalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
920
|
+
if (message.parsedExpr !== undefined) {
|
|
921
|
+
ParsedExpr.encode(message.parsedExpr, writer.uint32(10).fork()).ldelim();
|
|
922
|
+
}
|
|
923
|
+
if (message.checkedExpr !== undefined) {
|
|
924
|
+
CheckedExpr.encode(message.checkedExpr, writer.uint32(18).fork()).ldelim();
|
|
925
|
+
}
|
|
926
|
+
Object.entries(message.bindings).forEach(([key, value]) => {
|
|
927
|
+
EvalRequest_BindingsEntry.encode({
|
|
928
|
+
key: key as any,
|
|
929
|
+
value
|
|
930
|
+
}, writer.uint32(26).fork()).ldelim();
|
|
931
|
+
});
|
|
932
|
+
if (message.container !== "") {
|
|
933
|
+
writer.uint32(34).string(message.container);
|
|
934
|
+
}
|
|
935
|
+
return writer;
|
|
936
|
+
},
|
|
937
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EvalRequest {
|
|
938
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
939
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
940
|
+
const message = createBaseEvalRequest();
|
|
941
|
+
while (reader.pos < end) {
|
|
942
|
+
const tag = reader.uint32();
|
|
943
|
+
switch (tag >>> 3) {
|
|
944
|
+
case 1:
|
|
945
|
+
message.parsedExpr = ParsedExpr.decode(reader, reader.uint32());
|
|
946
|
+
break;
|
|
947
|
+
case 2:
|
|
948
|
+
message.checkedExpr = CheckedExpr.decode(reader, reader.uint32());
|
|
949
|
+
break;
|
|
950
|
+
case 3:
|
|
951
|
+
const entry3 = EvalRequest_BindingsEntry.decode(reader, reader.uint32());
|
|
952
|
+
if (entry3.value !== undefined) {
|
|
953
|
+
message.bindings[entry3.key] = entry3.value;
|
|
954
|
+
}
|
|
955
|
+
break;
|
|
956
|
+
case 4:
|
|
957
|
+
message.container = reader.string();
|
|
958
|
+
break;
|
|
959
|
+
default:
|
|
960
|
+
reader.skipType(tag & 7);
|
|
961
|
+
break;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return message;
|
|
965
|
+
},
|
|
966
|
+
fromPartial(object: Partial<EvalRequest>): EvalRequest {
|
|
967
|
+
const message = createBaseEvalRequest();
|
|
968
|
+
message.parsedExpr = object.parsedExpr !== undefined && object.parsedExpr !== null ? ParsedExpr.fromPartial(object.parsedExpr) : undefined;
|
|
969
|
+
message.checkedExpr = object.checkedExpr !== undefined && object.checkedExpr !== null ? CheckedExpr.fromPartial(object.checkedExpr) : undefined;
|
|
970
|
+
message.bindings = Object.entries(object.bindings ?? {}).reduce<{
|
|
971
|
+
[key: string]: ExprValue;
|
|
972
|
+
}>((acc, [key, value]) => {
|
|
973
|
+
if (value !== undefined) {
|
|
974
|
+
acc[key] = ExprValue.fromPartial(value);
|
|
975
|
+
}
|
|
976
|
+
return acc;
|
|
977
|
+
}, {});
|
|
978
|
+
message.container = object.container ?? "";
|
|
979
|
+
return message;
|
|
980
|
+
},
|
|
981
|
+
fromAmino(object: EvalRequestAmino): EvalRequest {
|
|
982
|
+
const message = createBaseEvalRequest();
|
|
983
|
+
if (object.parsed_expr !== undefined && object.parsed_expr !== null) {
|
|
984
|
+
message.parsedExpr = ParsedExpr.fromAmino(object.parsed_expr);
|
|
985
|
+
}
|
|
986
|
+
if (object.checked_expr !== undefined && object.checked_expr !== null) {
|
|
987
|
+
message.checkedExpr = CheckedExpr.fromAmino(object.checked_expr);
|
|
988
|
+
}
|
|
989
|
+
message.bindings = Object.entries(object.bindings ?? {}).reduce<{
|
|
990
|
+
[key: string]: ExprValue;
|
|
991
|
+
}>((acc, [key, value]) => {
|
|
992
|
+
if (value !== undefined) {
|
|
993
|
+
acc[key] = ExprValue.fromAmino(value);
|
|
994
|
+
}
|
|
995
|
+
return acc;
|
|
996
|
+
}, {});
|
|
997
|
+
if (object.container !== undefined && object.container !== null) {
|
|
998
|
+
message.container = object.container;
|
|
999
|
+
}
|
|
1000
|
+
return message;
|
|
1001
|
+
},
|
|
1002
|
+
toAmino(message: EvalRequest): EvalRequestAmino {
|
|
1003
|
+
const obj: any = {};
|
|
1004
|
+
obj.parsed_expr = message.parsedExpr ? ParsedExpr.toAmino(message.parsedExpr) : undefined;
|
|
1005
|
+
obj.checked_expr = message.checkedExpr ? CheckedExpr.toAmino(message.checkedExpr) : undefined;
|
|
1006
|
+
obj.bindings = {};
|
|
1007
|
+
if (message.bindings) {
|
|
1008
|
+
Object.entries(message.bindings).forEach(([k, v]) => {
|
|
1009
|
+
obj.bindings[k] = ExprValue.toAmino(v);
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
obj.container = message.container === "" ? undefined : message.container;
|
|
1013
|
+
return obj;
|
|
1014
|
+
},
|
|
1015
|
+
fromAminoMsg(object: EvalRequestAminoMsg): EvalRequest {
|
|
1016
|
+
return EvalRequest.fromAmino(object.value);
|
|
1017
|
+
},
|
|
1018
|
+
fromProtoMsg(message: EvalRequestProtoMsg): EvalRequest {
|
|
1019
|
+
return EvalRequest.decode(message.value);
|
|
1020
|
+
},
|
|
1021
|
+
toProto(message: EvalRequest): Uint8Array {
|
|
1022
|
+
return EvalRequest.encode(message).finish();
|
|
1023
|
+
},
|
|
1024
|
+
toProtoMsg(message: EvalRequest): EvalRequestProtoMsg {
|
|
1025
|
+
return {
|
|
1026
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalRequest",
|
|
1027
|
+
value: EvalRequest.encode(message).finish()
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
function createBaseEvalResponse(): EvalResponse {
|
|
1032
|
+
return {
|
|
1033
|
+
result: undefined,
|
|
1034
|
+
issues: []
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
export const EvalResponse = {
|
|
1038
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalResponse",
|
|
1039
|
+
encode(message: EvalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1040
|
+
if (message.result !== undefined) {
|
|
1041
|
+
ExprValue.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1042
|
+
}
|
|
1043
|
+
for (const v of message.issues) {
|
|
1044
|
+
Status.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1045
|
+
}
|
|
1046
|
+
return writer;
|
|
1047
|
+
},
|
|
1048
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EvalResponse {
|
|
1049
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1050
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1051
|
+
const message = createBaseEvalResponse();
|
|
1052
|
+
while (reader.pos < end) {
|
|
1053
|
+
const tag = reader.uint32();
|
|
1054
|
+
switch (tag >>> 3) {
|
|
1055
|
+
case 1:
|
|
1056
|
+
message.result = ExprValue.decode(reader, reader.uint32());
|
|
1057
|
+
break;
|
|
1058
|
+
case 2:
|
|
1059
|
+
message.issues.push(Status.decode(reader, reader.uint32()));
|
|
1060
|
+
break;
|
|
1061
|
+
default:
|
|
1062
|
+
reader.skipType(tag & 7);
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
return message;
|
|
1067
|
+
},
|
|
1068
|
+
fromPartial(object: Partial<EvalResponse>): EvalResponse {
|
|
1069
|
+
const message = createBaseEvalResponse();
|
|
1070
|
+
message.result = object.result !== undefined && object.result !== null ? ExprValue.fromPartial(object.result) : undefined;
|
|
1071
|
+
message.issues = object.issues?.map(e => Status.fromPartial(e)) || [];
|
|
1072
|
+
return message;
|
|
1073
|
+
},
|
|
1074
|
+
fromAmino(object: EvalResponseAmino): EvalResponse {
|
|
1075
|
+
const message = createBaseEvalResponse();
|
|
1076
|
+
if (object.result !== undefined && object.result !== null) {
|
|
1077
|
+
message.result = ExprValue.fromAmino(object.result);
|
|
1078
|
+
}
|
|
1079
|
+
message.issues = object.issues?.map(e => Status.fromAmino(e)) || [];
|
|
1080
|
+
return message;
|
|
1081
|
+
},
|
|
1082
|
+
toAmino(message: EvalResponse): EvalResponseAmino {
|
|
1083
|
+
const obj: any = {};
|
|
1084
|
+
obj.result = message.result ? ExprValue.toAmino(message.result) : undefined;
|
|
1085
|
+
if (message.issues) {
|
|
1086
|
+
obj.issues = message.issues.map(e => e ? Status.toAmino(e) : undefined);
|
|
1087
|
+
} else {
|
|
1088
|
+
obj.issues = message.issues;
|
|
1089
|
+
}
|
|
1090
|
+
return obj;
|
|
1091
|
+
},
|
|
1092
|
+
fromAminoMsg(object: EvalResponseAminoMsg): EvalResponse {
|
|
1093
|
+
return EvalResponse.fromAmino(object.value);
|
|
1094
|
+
},
|
|
1095
|
+
fromProtoMsg(message: EvalResponseProtoMsg): EvalResponse {
|
|
1096
|
+
return EvalResponse.decode(message.value);
|
|
1097
|
+
},
|
|
1098
|
+
toProto(message: EvalResponse): Uint8Array {
|
|
1099
|
+
return EvalResponse.encode(message).finish();
|
|
1100
|
+
},
|
|
1101
|
+
toProtoMsg(message: EvalResponse): EvalResponseProtoMsg {
|
|
1102
|
+
return {
|
|
1103
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.EvalResponse",
|
|
1104
|
+
value: EvalResponse.encode(message).finish()
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
function createBaseSourcePosition(): SourcePosition {
|
|
1109
|
+
return {
|
|
1110
|
+
location: "",
|
|
1111
|
+
offset: 0,
|
|
1112
|
+
line: 0,
|
|
1113
|
+
column: 0
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
export const SourcePosition = {
|
|
1117
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.SourcePosition",
|
|
1118
|
+
encode(message: SourcePosition, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1119
|
+
if (message.location !== "") {
|
|
1120
|
+
writer.uint32(10).string(message.location);
|
|
1121
|
+
}
|
|
1122
|
+
if (message.offset !== 0) {
|
|
1123
|
+
writer.uint32(16).int32(message.offset);
|
|
1124
|
+
}
|
|
1125
|
+
if (message.line !== 0) {
|
|
1126
|
+
writer.uint32(24).int32(message.line);
|
|
1127
|
+
}
|
|
1128
|
+
if (message.column !== 0) {
|
|
1129
|
+
writer.uint32(32).int32(message.column);
|
|
1130
|
+
}
|
|
1131
|
+
return writer;
|
|
1132
|
+
},
|
|
1133
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SourcePosition {
|
|
1134
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1136
|
+
const message = createBaseSourcePosition();
|
|
1137
|
+
while (reader.pos < end) {
|
|
1138
|
+
const tag = reader.uint32();
|
|
1139
|
+
switch (tag >>> 3) {
|
|
1140
|
+
case 1:
|
|
1141
|
+
message.location = reader.string();
|
|
1142
|
+
break;
|
|
1143
|
+
case 2:
|
|
1144
|
+
message.offset = reader.int32();
|
|
1145
|
+
break;
|
|
1146
|
+
case 3:
|
|
1147
|
+
message.line = reader.int32();
|
|
1148
|
+
break;
|
|
1149
|
+
case 4:
|
|
1150
|
+
message.column = reader.int32();
|
|
1151
|
+
break;
|
|
1152
|
+
default:
|
|
1153
|
+
reader.skipType(tag & 7);
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
return message;
|
|
1158
|
+
},
|
|
1159
|
+
fromPartial(object: Partial<SourcePosition>): SourcePosition {
|
|
1160
|
+
const message = createBaseSourcePosition();
|
|
1161
|
+
message.location = object.location ?? "";
|
|
1162
|
+
message.offset = object.offset ?? 0;
|
|
1163
|
+
message.line = object.line ?? 0;
|
|
1164
|
+
message.column = object.column ?? 0;
|
|
1165
|
+
return message;
|
|
1166
|
+
},
|
|
1167
|
+
fromAmino(object: SourcePositionAmino): SourcePosition {
|
|
1168
|
+
const message = createBaseSourcePosition();
|
|
1169
|
+
if (object.location !== undefined && object.location !== null) {
|
|
1170
|
+
message.location = object.location;
|
|
1171
|
+
}
|
|
1172
|
+
if (object.offset !== undefined && object.offset !== null) {
|
|
1173
|
+
message.offset = object.offset;
|
|
1174
|
+
}
|
|
1175
|
+
if (object.line !== undefined && object.line !== null) {
|
|
1176
|
+
message.line = object.line;
|
|
1177
|
+
}
|
|
1178
|
+
if (object.column !== undefined && object.column !== null) {
|
|
1179
|
+
message.column = object.column;
|
|
1180
|
+
}
|
|
1181
|
+
return message;
|
|
1182
|
+
},
|
|
1183
|
+
toAmino(message: SourcePosition): SourcePositionAmino {
|
|
1184
|
+
const obj: any = {};
|
|
1185
|
+
obj.location = message.location === "" ? undefined : message.location;
|
|
1186
|
+
obj.offset = message.offset === 0 ? undefined : message.offset;
|
|
1187
|
+
obj.line = message.line === 0 ? undefined : message.line;
|
|
1188
|
+
obj.column = message.column === 0 ? undefined : message.column;
|
|
1189
|
+
return obj;
|
|
1190
|
+
},
|
|
1191
|
+
fromAminoMsg(object: SourcePositionAminoMsg): SourcePosition {
|
|
1192
|
+
return SourcePosition.fromAmino(object.value);
|
|
1193
|
+
},
|
|
1194
|
+
fromProtoMsg(message: SourcePositionProtoMsg): SourcePosition {
|
|
1195
|
+
return SourcePosition.decode(message.value);
|
|
1196
|
+
},
|
|
1197
|
+
toProto(message: SourcePosition): Uint8Array {
|
|
1198
|
+
return SourcePosition.encode(message).finish();
|
|
1199
|
+
},
|
|
1200
|
+
toProtoMsg(message: SourcePosition): SourcePositionProtoMsg {
|
|
1201
|
+
return {
|
|
1202
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.SourcePosition",
|
|
1203
|
+
value: SourcePosition.encode(message).finish()
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
function createBaseIssueDetails(): IssueDetails {
|
|
1208
|
+
return {
|
|
1209
|
+
severity: 0,
|
|
1210
|
+
position: undefined,
|
|
1211
|
+
id: BigInt(0)
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
export const IssueDetails = {
|
|
1215
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.IssueDetails",
|
|
1216
|
+
encode(message: IssueDetails, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1217
|
+
if (message.severity !== 0) {
|
|
1218
|
+
writer.uint32(8).int32(message.severity);
|
|
1219
|
+
}
|
|
1220
|
+
if (message.position !== undefined) {
|
|
1221
|
+
SourcePosition.encode(message.position, writer.uint32(18).fork()).ldelim();
|
|
1222
|
+
}
|
|
1223
|
+
if (message.id !== BigInt(0)) {
|
|
1224
|
+
writer.uint32(24).int64(message.id);
|
|
1225
|
+
}
|
|
1226
|
+
return writer;
|
|
1227
|
+
},
|
|
1228
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IssueDetails {
|
|
1229
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1230
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1231
|
+
const message = createBaseIssueDetails();
|
|
1232
|
+
while (reader.pos < end) {
|
|
1233
|
+
const tag = reader.uint32();
|
|
1234
|
+
switch (tag >>> 3) {
|
|
1235
|
+
case 1:
|
|
1236
|
+
message.severity = reader.int32() as any;
|
|
1237
|
+
break;
|
|
1238
|
+
case 2:
|
|
1239
|
+
message.position = SourcePosition.decode(reader, reader.uint32());
|
|
1240
|
+
break;
|
|
1241
|
+
case 3:
|
|
1242
|
+
message.id = reader.int64();
|
|
1243
|
+
break;
|
|
1244
|
+
default:
|
|
1245
|
+
reader.skipType(tag & 7);
|
|
1246
|
+
break;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
return message;
|
|
1250
|
+
},
|
|
1251
|
+
fromPartial(object: Partial<IssueDetails>): IssueDetails {
|
|
1252
|
+
const message = createBaseIssueDetails();
|
|
1253
|
+
message.severity = object.severity ?? 0;
|
|
1254
|
+
message.position = object.position !== undefined && object.position !== null ? SourcePosition.fromPartial(object.position) : undefined;
|
|
1255
|
+
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
1256
|
+
return message;
|
|
1257
|
+
},
|
|
1258
|
+
fromAmino(object: IssueDetailsAmino): IssueDetails {
|
|
1259
|
+
const message = createBaseIssueDetails();
|
|
1260
|
+
if (object.severity !== undefined && object.severity !== null) {
|
|
1261
|
+
message.severity = object.severity;
|
|
1262
|
+
}
|
|
1263
|
+
if (object.position !== undefined && object.position !== null) {
|
|
1264
|
+
message.position = SourcePosition.fromAmino(object.position);
|
|
1265
|
+
}
|
|
1266
|
+
if (object.id !== undefined && object.id !== null) {
|
|
1267
|
+
message.id = BigInt(object.id);
|
|
1268
|
+
}
|
|
1269
|
+
return message;
|
|
1270
|
+
},
|
|
1271
|
+
toAmino(message: IssueDetails): IssueDetailsAmino {
|
|
1272
|
+
const obj: any = {};
|
|
1273
|
+
obj.severity = message.severity === 0 ? undefined : message.severity;
|
|
1274
|
+
obj.position = message.position ? SourcePosition.toAmino(message.position) : undefined;
|
|
1275
|
+
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
1276
|
+
return obj;
|
|
1277
|
+
},
|
|
1278
|
+
fromAminoMsg(object: IssueDetailsAminoMsg): IssueDetails {
|
|
1279
|
+
return IssueDetails.fromAmino(object.value);
|
|
1280
|
+
},
|
|
1281
|
+
fromProtoMsg(message: IssueDetailsProtoMsg): IssueDetails {
|
|
1282
|
+
return IssueDetails.decode(message.value);
|
|
1283
|
+
},
|
|
1284
|
+
toProto(message: IssueDetails): Uint8Array {
|
|
1285
|
+
return IssueDetails.encode(message).finish();
|
|
1286
|
+
},
|
|
1287
|
+
toProtoMsg(message: IssueDetails): IssueDetailsProtoMsg {
|
|
1288
|
+
return {
|
|
1289
|
+
typeUrl: "/google.api.expr.conformance.v1alpha1.IssueDetails",
|
|
1290
|
+
value: IssueDetails.encode(message).finish()
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
};
|