juno-network 0.15.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -4
- package/main/codegen/JunoSwap.client.js +165 -184
- package/main/codegen/amino/amino.js +5 -0
- package/main/codegen/amino/bundle.js +16 -0
- package/main/codegen/binary.js +478 -0
- package/main/codegen/confio/proofs.js +836 -72
- package/main/codegen/contracts.js +8 -4
- package/main/codegen/cosmos/app/v1alpha1/config.js +221 -0
- package/main/codegen/cosmos/app/v1alpha1/module.js +324 -0
- package/main/codegen/cosmos/app/v1alpha1/query.js +149 -0
- package/main/codegen/cosmos/app/v1alpha1/query.rpc.Query.js +45 -0
- package/main/codegen/cosmos/auth/v1beta1/auth.js +382 -0
- package/main/codegen/cosmos/auth/v1beta1/genesis.js +120 -0
- package/main/codegen/cosmos/auth/v1beta1/query.js +1133 -0
- package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +223 -0
- package/main/codegen/cosmos/auth/v1beta1/query.rpc.Query.js +128 -0
- package/main/codegen/cosmos/authz/v1beta1/authz.js +220 -13
- package/main/codegen/cosmos/authz/v1beta1/event.js +101 -8
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +51 -7
- package/main/codegen/cosmos/authz/v1beta1/query.js +311 -21
- package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +65 -69
- package/main/codegen/cosmos/authz/v1beta1/query.rpc.Query.js +5 -7
- package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +25 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.js +312 -18
- package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +83 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +5 -7
- package/main/codegen/cosmos/bank/v1beta1/authz.js +66 -7
- package/main/codegen/cosmos/bank/v1beta1/bank.js +425 -21
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +138 -10
- package/main/codegen/cosmos/bank/v1beta1/query.js +964 -49
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +148 -163
- package/main/codegen/cosmos/bank/v1beta1/query.rpc.Query.js +11 -13
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +5 -86
- package/main/codegen/cosmos/bank/v1beta1/tx.js +194 -13
- package/main/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +4 -6
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +677 -60
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +197 -0
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +162 -17
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +362 -0
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1230 -57
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +916 -0
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +326 -0
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +140 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +1431 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +202 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +115 -0
- package/main/codegen/cosmos/base/v1beta1/coin.js +207 -12
- package/main/codegen/cosmos/bundle.js +274 -105
- package/main/codegen/cosmos/capability/v1beta1/capability.js +300 -0
- package/main/codegen/cosmos/capability/v1beta1/genesis.js +208 -0
- package/main/codegen/cosmos/client.js +37 -23
- package/main/codegen/cosmos/crisis/v1beta1/genesis.js +85 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +15 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.js +173 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +33 -0
- package/main/codegen/cosmos/crypto/ed25519/keys.js +113 -8
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +59 -6
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +236 -14
- package/main/codegen/cosmos/crypto/multisig/keys.js +67 -7
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +125 -9
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +104 -8
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +86 -8
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +788 -56
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +514 -38
- package/main/codegen/cosmos/distribution/v1beta1/query.js +970 -53
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +107 -124
- package/main/codegen/cosmos/distribution/v1beta1/query.rpc.Query.js +11 -13
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +9 -70
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +403 -25
- package/main/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +6 -8
- package/main/codegen/cosmos/evidence/v1beta1/evidence.js +132 -0
- package/main/codegen/cosmos/evidence/v1beta1/genesis.js +107 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.js +371 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +87 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.rpc.Query.js +60 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +15 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.js +186 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +33 -0
- package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +512 -0
- package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +107 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.js +575 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +114 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.js +70 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +20 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.js +337 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +65 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +43 -0
- package/main/codegen/cosmos/genutil/v1beta1/genesis.js +107 -0
- package/main/codegen/cosmos/gov/v1/genesis.js +90 -11
- package/main/codegen/cosmos/gov/v1/gov.js +497 -58
- package/main/codegen/cosmos/gov/v1/query.js +770 -56
- package/main/codegen/cosmos/gov/v1/query.lcd.js +107 -123
- package/main/codegen/cosmos/gov/v1/query.rpc.Query.js +10 -12
- package/main/codegen/cosmos/gov/v1/tx.amino.js +11 -156
- package/main/codegen/cosmos/gov/v1/tx.js +511 -38
- package/main/codegen/cosmos/gov/v1/tx.rpc.msg.js +7 -9
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +93 -14
- package/main/codegen/cosmos/gov/v1beta1/gov.js +560 -69
- package/main/codegen/cosmos/gov/v1beta1/query.js +777 -63
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +107 -123
- package/main/codegen/cosmos/gov/v1beta1/query.rpc.Query.js +10 -12
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +9 -118
- package/main/codegen/cosmos/gov/v1beta1/tx.js +424 -34
- package/main/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +6 -8
- package/main/codegen/cosmos/group/v1/events.js +729 -0
- package/main/codegen/cosmos/group/v1/genesis.js +259 -0
- package/main/codegen/cosmos/group/v1/query.js +2377 -0
- package/main/codegen/cosmos/group/v1/query.lcd.js +398 -0
- package/main/codegen/cosmos/group/v1/query.rpc.Query.js +200 -0
- package/main/codegen/cosmos/group/v1/tx.amino.js +80 -0
- package/main/codegen/cosmos/group/v1/tx.js +2590 -0
- package/main/codegen/cosmos/group/v1/tx.registry.js +281 -0
- package/main/codegen/cosmos/group/v1/tx.rpc.msg.js +163 -0
- package/main/codegen/cosmos/group/v1/types.js +1607 -0
- package/main/codegen/cosmos/lcd.js +254 -127
- package/main/codegen/cosmos/mint/v1beta1/genesis.js +97 -0
- package/main/codegen/cosmos/mint/v1beta1/mint.js +236 -0
- package/main/codegen/cosmos/mint/v1beta1/query.js +461 -0
- package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +108 -0
- package/main/codegen/cosmos/mint/v1beta1/query.rpc.Query.js +73 -0
- package/main/codegen/cosmos/msg/v1/msg.js +5 -0
- package/main/codegen/cosmos/nft/v1beta1/event.js +325 -0
- package/main/codegen/cosmos/nft/v1beta1/genesis.js +244 -0
- package/main/codegen/cosmos/nft/v1beta1/nft.js +284 -0
- package/main/codegen/cosmos/nft/v1beta1/query.js +1219 -0
- package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +226 -0
- package/main/codegen/cosmos/nft/v1beta1/query.rpc.Query.js +125 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +15 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.js +185 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +33 -0
- package/main/codegen/cosmos/orm/v1/orm.js +400 -0
- package/main/codegen/cosmos/orm/v1alpha1/schema.js +278 -0
- package/main/codegen/cosmos/params/v1beta1/params.js +241 -0
- package/main/codegen/cosmos/params/v1beta1/query.js +473 -0
- package/main/codegen/cosmos/params/v1beta1/query.lcd.js +87 -0
- package/main/codegen/cosmos/params/v1beta1/query.rpc.Query.js +58 -0
- package/main/codegen/cosmos/rpc.query.js +198 -97
- package/main/codegen/cosmos/rpc.tx.js +178 -96
- package/main/codegen/cosmos/slashing/v1beta1/genesis.js +445 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.js +529 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +115 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.rpc.Query.js +74 -0
- package/main/codegen/cosmos/slashing/v1beta1/slashing.js +283 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +15 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.js +149 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +47 -0
- package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +33 -0
- package/main/codegen/cosmos/staking/v1beta1/authz.js +120 -26
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +153 -13
- package/main/codegen/cosmos/staking/v1beta1/query.js +1467 -72
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +205 -229
- package/main/codegen/cosmos/staking/v1beta1/query.rpc.Query.js +16 -18
- package/main/codegen/cosmos/staking/v1beta1/staking.js +1257 -98
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +11 -189
- package/main/codegen/cosmos/staking/v1beta1/tx.js +513 -35
- package/main/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +7 -9
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +273 -43
- package/main/codegen/cosmos/tx/v1beta1/service.js +603 -54
- package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +52 -57
- package/main/codegen/cosmos/tx/v1beta1/service.rpc.Service.js +7 -9
- package/main/codegen/cosmos/tx/v1beta1/tx.js +856 -53
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +523 -31
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +69 -77
- package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.js +7 -9
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +5 -47
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +214 -13
- package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +4 -6
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +248 -20
- package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +25 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.js +636 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +83 -0
- package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +53 -0
- package/main/codegen/cosmos/vesting/v1beta1/vesting.js +718 -0
- package/main/codegen/cosmos_proto/bundle.js +6 -6
- package/main/codegen/cosmos_proto/cosmos.js +129 -21
- package/main/codegen/cosmwasm/bundle.js +21 -21
- package/main/codegen/cosmwasm/client.js +21 -23
- package/main/codegen/cosmwasm/lcd.js +271 -144
- package/main/codegen/cosmwasm/rpc.query.js +211 -110
- package/main/codegen/cosmwasm/rpc.tx.js +193 -111
- package/main/codegen/cosmwasm/wasm/v1/authz.js +534 -34
- package/main/codegen/cosmwasm/wasm/v1/genesis.js +320 -24
- package/main/codegen/cosmwasm/wasm/v1/ibc.js +103 -14
- package/main/codegen/cosmwasm/wasm/v1/proposal.js +841 -45
- package/main/codegen/cosmwasm/wasm/v1/query.js +1232 -64
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +153 -175
- package/main/codegen/cosmwasm/wasm/v1/query.rpc.Query.js +13 -15
- package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +15 -217
- package/main/codegen/cosmwasm/wasm/v1/tx.js +742 -49
- package/main/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +9 -11
- package/main/codegen/cosmwasm/wasm/v1/types.js +447 -61
- package/main/codegen/gaia/bundle.js +12 -12
- package/main/codegen/gaia/globalfee/v1beta1/genesis.js +82 -10
- package/main/codegen/gaia/globalfee/v1beta1/query.js +95 -9
- package/main/codegen/gaia/globalfee/v1beta1/query.lcd.js +11 -13
- package/main/codegen/gaia/globalfee/v1beta1/query.rpc.Query.js +3 -5
- package/main/codegen/gaia/lcd.js +271 -144
- package/main/codegen/gaia/rpc.query.js +211 -110
- package/main/codegen/gogoproto/bundle.js +6 -6
- package/main/codegen/google/api/annotations.js +5 -0
- package/main/codegen/google/api/http.js +1216 -0
- package/main/codegen/google/bundle.js +13 -10
- package/main/codegen/google/protobuf/any.js +278 -6
- package/main/codegen/google/protobuf/descriptor.js +1691 -171
- package/main/codegen/google/protobuf/duration.js +215 -10
- package/main/codegen/google/protobuf/empty.js +63 -6
- package/main/codegen/google/protobuf/timestamp.js +283 -9
- package/main/codegen/helpers.js +19 -53
- package/main/codegen/ibc/applications/transfer/v1/genesis.js +60 -8
- package/main/codegen/ibc/applications/transfer/v1/query.js +297 -17
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +40 -46
- package/main/codegen/ibc/applications/transfer/v1/query.rpc.Query.js +5 -7
- package/main/codegen/ibc/applications/transfer/v1/transfer.js +117 -8
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +3 -50
- package/main/codegen/ibc/applications/transfer/v1/tx.js +122 -14
- package/main/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +3 -5
- package/main/codegen/ibc/applications/transfer/v2/packet.js +67 -6
- package/main/codegen/ibc/bundle.js +71 -60
- package/main/codegen/ibc/client.js +21 -23
- package/main/codegen/ibc/core/channel/v1/channel.js +438 -57
- package/main/codegen/ibc/core/channel/v1/genesis.js +180 -16
- package/main/codegen/ibc/core/channel/v1/query.js +1604 -97
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +184 -202
- package/main/codegen/ibc/core/channel/v1/query.rpc.Query.js +15 -17
- package/main/codegen/ibc/core/channel/v1/tx.amino.js +21 -470
- package/main/codegen/ibc/core/channel/v1/tx.js +1053 -64
- package/main/codegen/ibc/core/channel/v1/tx.rpc.msg.js +12 -14
- package/main/codegen/ibc/core/client/v1/client.js +438 -28
- package/main/codegen/ibc/core/client/v1/genesis.js +204 -15
- package/main/codegen/ibc/core/client/v1/query.js +874 -45
- package/main/codegen/ibc/core/client/v1/query.lcd.js +110 -124
- package/main/codegen/ibc/core/client/v1/query.rpc.Query.js +10 -12
- package/main/codegen/ibc/core/client/v1/tx.amino.js +9 -128
- package/main/codegen/ibc/core/client/v1/tx.js +402 -20
- package/main/codegen/ibc/core/client/v1/tx.rpc.msg.js +6 -8
- package/main/codegen/ibc/core/commitment/v1/commitment.js +236 -13
- package/main/codegen/ibc/core/connection/v1/connection.js +434 -52
- package/main/codegen/ibc/core/connection/v1/genesis.js +73 -12
- package/main/codegen/ibc/core/connection/v1/query.js +592 -36
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +68 -75
- package/main/codegen/ibc/core/connection/v1/query.rpc.Query.js +7 -9
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +9 -248
- package/main/codegen/ibc/core/connection/v1/tx.js +504 -34
- package/main/codegen/ibc/core/connection/v1/tx.rpc.msg.js +6 -8
- package/main/codegen/ibc/core/port/v1/query.js +224 -0
- package/main/codegen/ibc/core/port/v1/query.rpc.Query.js +44 -0
- package/main/codegen/ibc/core/types/v1/genesis.js +111 -0
- package/main/codegen/ibc/lcd.js +319 -192
- package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +57 -7
- package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +933 -91
- package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +930 -88
- package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +378 -30
- package/main/codegen/ibc/rpc.query.js +257 -146
- package/main/codegen/ibc/rpc.tx.js +235 -153
- package/main/codegen/ics23/bundle.js +6 -6
- package/main/codegen/index.js +74 -41
- package/main/codegen/juno/bundle.js +77 -24
- package/main/codegen/juno/client.js +33 -25
- package/main/codegen/juno/clock/v1/genesis.js +183 -0
- package/main/codegen/juno/clock/v1/query.js +288 -0
- package/main/codegen/juno/clock/v1/query.lcd.js +80 -0
- package/main/codegen/juno/clock/v1/query.rpc.Query.js +59 -0
- package/main/codegen/juno/clock/v1/tx.amino.js +15 -0
- package/main/codegen/juno/clock/v1/tx.js +177 -0
- package/main/codegen/juno/clock/v1/tx.registry.js +47 -0
- package/main/codegen/juno/clock/v1/tx.rpc.msg.js +33 -0
- package/main/codegen/juno/cwhooks/v1/genesis.js +212 -0
- package/main/codegen/juno/cwhooks/v1/query.js +436 -0
- package/main/codegen/juno/cwhooks/v1/query.lcd.js +108 -0
- package/main/codegen/juno/cwhooks/v1/query.rpc.Query.js +73 -0
- package/main/codegen/juno/cwhooks/v1/tx.amino.js +35 -0
- package/main/codegen/juno/cwhooks/v1/tx.js +745 -0
- package/main/codegen/juno/cwhooks/v1/tx.registry.js +119 -0
- package/main/codegen/juno/cwhooks/v1/tx.rpc.msg.js +73 -0
- package/main/codegen/juno/drip/v1/genesis.js +183 -0
- package/main/codegen/juno/drip/v1/query.js +137 -0
- package/main/codegen/juno/drip/v1/query.lcd.js +52 -0
- package/main/codegen/juno/drip/v1/query.rpc.Query.js +45 -0
- package/main/codegen/juno/drip/v1/tx.amino.js +20 -0
- package/main/codegen/juno/drip/v1/tx.js +326 -0
- package/main/codegen/juno/drip/v1/tx.registry.js +65 -0
- package/main/codegen/juno/drip/v1/tx.rpc.msg.js +43 -0
- package/main/codegen/juno/feepay/v1/feepay.js +217 -0
- package/main/codegen/juno/feepay/v1/genesis.js +185 -0
- package/main/codegen/juno/feepay/v1/query.js +769 -0
- package/main/codegen/juno/feepay/v1/query.lcd.js +165 -0
- package/main/codegen/juno/feepay/v1/query.rpc.Query.js +100 -0
- package/main/codegen/juno/feepay/v1/tx.amino.js +35 -0
- package/main/codegen/juno/feepay/v1/tx.js +792 -0
- package/main/codegen/juno/feepay/v1/tx.registry.js +119 -0
- package/main/codegen/juno/feepay/v1/tx.rpc.msg.js +73 -0
- package/main/codegen/juno/feeshare/v1/feeshare.js +54 -6
- package/main/codegen/juno/feeshare/v1/genesis.js +104 -12
- package/main/codegen/juno/feeshare/v1/query.js +446 -27
- package/main/codegen/juno/feeshare/v1/query.lcd.js +78 -86
- package/main/codegen/juno/feeshare/v1/query.rpc.Query.js +7 -9
- package/main/codegen/juno/feeshare/v1/tx.amino.js +12 -56
- package/main/codegen/juno/feeshare/v1/tx.js +406 -18
- package/main/codegen/juno/feeshare/v1/tx.registry.js +19 -1
- package/main/codegen/juno/feeshare/v1/tx.rpc.msg.js +15 -7
- package/main/codegen/juno/lcd.js +338 -155
- package/main/codegen/juno/mint/genesis.js +43 -8
- package/main/codegen/juno/mint/mint.js +117 -24
- package/main/codegen/juno/mint/query.js +384 -19
- package/main/codegen/juno/mint/query.lcd.js +61 -39
- package/main/codegen/juno/mint/query.rpc.Query.js +19 -7
- package/main/codegen/juno/mint/tx.amino.js +15 -0
- package/main/codegen/juno/mint/tx.js +177 -0
- package/main/codegen/juno/mint/tx.registry.js +47 -0
- package/main/codegen/juno/mint/tx.rpc.msg.js +33 -0
- package/main/codegen/juno/rpc.query.js +258 -117
- package/main/codegen/juno/rpc.tx.js +250 -111
- package/main/codegen/osmosis/bundle.js +19 -19
- package/main/codegen/osmosis/client.js +21 -23
- package/main/codegen/osmosis/lcd.js +271 -144
- package/main/codegen/osmosis/rpc.query.js +211 -110
- package/main/codegen/osmosis/rpc.tx.js +193 -111
- package/main/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.js +55 -6
- package/main/codegen/osmosis/tokenfactory/v1beta1/genesis.js +115 -11
- package/main/codegen/osmosis/tokenfactory/v1beta1/params.js +64 -8
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.js +295 -19
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.lcd.js +37 -41
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.js +5 -7
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.amino.js +18 -165
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.js +785 -34
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.registry.js +19 -1
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.js +18 -10
- package/main/codegen/router/bundle.js +12 -12
- package/main/codegen/router/lcd.js +268 -141
- package/main/codegen/router/rpc.query.js +208 -107
- package/main/codegen/router/v1/genesis.js +221 -24
- package/main/codegen/router/v1/query.js +69 -8
- package/main/codegen/router/v1/query.lcd.js +11 -13
- package/main/codegen/router/v1/query.rpc.Query.js +3 -5
- package/main/codegen/tendermint/abci/types.js +2058 -229
- package/main/codegen/tendermint/bundle.js +21 -21
- package/main/codegen/tendermint/crypto/keys.js +42 -6
- package/main/codegen/tendermint/crypto/proof.js +228 -21
- package/main/codegen/tendermint/libs/bits/types.js +47 -12
- package/main/codegen/tendermint/p2p/types.js +230 -26
- package/main/codegen/tendermint/types/block.js +46 -9
- package/main/codegen/tendermint/types/evidence.js +198 -27
- package/main/codegen/tendermint/types/params.js +316 -47
- package/main/codegen/tendermint/types/types.js +680 -87
- package/main/codegen/tendermint/types/validator.js +136 -24
- package/main/codegen/tendermint/version/types.js +114 -18
- package/main/codegen/utf8.js +129 -0
- package/main/codegen/varint.js +440 -0
- package/module/codegen/amino/amino.js +1 -0
- package/module/codegen/amino/bundle.js +5 -0
- package/module/codegen/binary.js +374 -0
- package/module/codegen/confio/proofs.js +806 -67
- package/module/codegen/contracts.js +2 -2
- package/module/codegen/cosmos/app/v1alpha1/config.js +193 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +279 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +139 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.Query.js +27 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +352 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +94 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +1066 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +62 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.Query.js +83 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +210 -9
- package/module/codegen/cosmos/authz/v1beta1/event.js +101 -5
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +46 -3
- package/module/codegen/cosmos/authz/v1beta1/query.js +298 -17
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +0 -3
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.Query.js +4 -4
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +18 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +303 -14
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +69 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +4 -4
- package/module/codegen/cosmos/bank/v1beta1/authz.js +61 -3
- package/module/codegen/cosmos/bank/v1beta1/bank.js +400 -17
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +121 -6
- package/module/codegen/cosmos/bank/v1beta1/query.js +943 -45
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +0 -9
- package/module/codegen/cosmos/bank/v1beta1/query.rpc.Query.js +10 -10
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +5 -70
- package/module/codegen/cosmos/bank/v1beta1/tx.js +181 -9
- package/module/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +3 -3
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +636 -57
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +169 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +153 -15
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +315 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1197 -53
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +859 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +296 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +132 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1347 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +60 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +74 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +207 -9
- package/module/codegen/cosmos/bundle.js +272 -103
- package/module/codegen/cosmos/capability/v1beta1/capability.js +270 -0
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +180 -0
- package/module/codegen/cosmos/client.js +21 -5
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +77 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +8 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +163 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +17 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +113 -5
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +59 -3
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +236 -11
- package/module/codegen/cosmos/crypto/multisig/keys.js +62 -3
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +120 -5
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +104 -5
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +86 -5
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +753 -52
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +475 -34
- package/module/codegen/cosmos/distribution/v1beta1/query.js +943 -49
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +0 -9
- package/module/codegen/cosmos/distribution/v1beta1/query.rpc.Query.js +10 -10
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +9 -74
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +390 -21
- package/module/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +5 -5
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +124 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +81 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +339 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +30 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.Query.js +38 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +8 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +176 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +17 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +435 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +81 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +524 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +41 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.js +45 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +13 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +323 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +51 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +23 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +81 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +75 -7
- package/module/codegen/cosmos/gov/v1/gov.js +471 -56
- package/module/codegen/cosmos/gov/v1/query.js +756 -53
- package/module/codegen/cosmos/gov/v1/query.lcd.js +0 -8
- package/module/codegen/cosmos/gov/v1/query.rpc.Query.js +9 -9
- package/module/codegen/cosmos/gov/v1/tx.amino.js +11 -150
- package/module/codegen/cosmos/gov/v1/tx.js +490 -35
- package/module/codegen/cosmos/gov/v1/tx.rpc.msg.js +6 -6
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +78 -10
- package/module/codegen/cosmos/gov/v1beta1/gov.js +538 -67
- package/module/codegen/cosmos/gov/v1beta1/query.js +763 -60
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +0 -8
- package/module/codegen/cosmos/gov/v1beta1/query.rpc.Query.js +9 -9
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +9 -114
- package/module/codegen/cosmos/gov/v1beta1/tx.js +407 -31
- package/module/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +5 -5
- package/module/codegen/cosmos/group/v1/events.js +705 -0
- package/module/codegen/cosmos/group/v1/genesis.js +173 -0
- package/module/codegen/cosmos/group/v1/query.js +2196 -0
- package/module/codegen/cosmos/group/v1/query.lcd.js +136 -0
- package/module/codegen/cosmos/group/v1/query.rpc.Query.js +135 -0
- package/module/codegen/cosmos/group/v1/tx.amino.js +73 -0
- package/module/codegen/cosmos/group/v1/tx.js +2445 -0
- package/module/codegen/cosmos/group/v1/tx.registry.js +267 -0
- package/module/codegen/cosmos/group/v1/tx.rpc.msg.js +95 -0
- package/module/codegen/cosmos/group/v1/types.js +1511 -0
- package/module/codegen/cosmos/lcd.js +47 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +89 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +226 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +443 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +27 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.Query.js +45 -0
- package/module/codegen/cosmos/msg/v1/msg.js +1 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +313 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +186 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +274 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +1152 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.Query.js +83 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +8 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +175 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +17 -0
- package/module/codegen/cosmos/orm/v1/orm.js +368 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +245 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +213 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +424 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +31 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.Query.js +36 -0
- package/module/codegen/cosmos/rpc.query.js +32 -0
- package/module/codegen/cosmos/rpc.tx.js +21 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +383 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +493 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +36 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.Query.js +47 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +273 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +8 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +139 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +33 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +17 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +111 -22
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +131 -10
- package/module/codegen/cosmos/staking/v1beta1/query.js +1436 -68
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +0 -14
- package/module/codegen/cosmos/staking/v1beta1/query.rpc.Query.js +15 -15
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1225 -95
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +11 -199
- package/module/codegen/cosmos/staking/v1beta1/tx.js +511 -32
- package/module/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +6 -6
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +261 -40
- package/module/codegen/cosmos/tx/v1beta1/service.js +581 -52
- package/module/codegen/cosmos/tx/v1beta1/service.lcd.js +0 -3
- package/module/codegen/cosmos/tx/v1beta1/service.rpc.Service.js +6 -6
- package/module/codegen/cosmos/tx/v1beta1/tx.js +818 -50
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +514 -28
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +0 -5
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.js +6 -6
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +5 -51
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +214 -10
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +3 -3
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +247 -18
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +18 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +570 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +69 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +29 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +622 -0
- package/module/codegen/cosmos_proto/bundle.js +4 -4
- package/module/codegen/cosmos_proto/cosmos.js +121 -15
- package/module/codegen/cosmwasm/bundle.js +19 -19
- package/module/codegen/cosmwasm/client.js +3 -3
- package/module/codegen/cosmwasm/lcd.js +47 -0
- package/module/codegen/cosmwasm/rpc.query.js +32 -0
- package/module/codegen/cosmwasm/rpc.tx.js +21 -0
- package/module/codegen/cosmwasm/wasm/v1/authz.js +504 -30
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +294 -21
- package/module/codegen/cosmwasm/wasm/v1/ibc.js +102 -12
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +815 -42
- package/module/codegen/cosmwasm/wasm/v1/query.js +1203 -61
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +0 -11
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.Query.js +12 -12
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +15 -219
- package/module/codegen/cosmwasm/wasm/v1/tx.js +728 -46
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +8 -8
- package/module/codegen/cosmwasm/wasm/v1/types.js +437 -59
- package/module/codegen/gaia/bundle.js +10 -10
- package/module/codegen/gaia/globalfee/v1beta1/genesis.js +77 -6
- package/module/codegen/gaia/globalfee/v1beta1/query.js +90 -5
- package/module/codegen/gaia/globalfee/v1beta1/query.lcd.js +0 -1
- package/module/codegen/gaia/globalfee/v1beta1/query.rpc.Query.js +2 -2
- package/module/codegen/gaia/lcd.js +47 -0
- package/module/codegen/gaia/rpc.query.js +32 -0
- package/module/codegen/gogoproto/bundle.js +4 -4
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +1171 -0
- package/module/codegen/google/bundle.js +11 -8
- package/module/codegen/google/protobuf/any.js +278 -3
- package/module/codegen/google/protobuf/descriptor.js +1534 -165
- package/module/codegen/google/protobuf/duration.js +154 -7
- package/module/codegen/google/protobuf/empty.js +63 -3
- package/module/codegen/google/protobuf/timestamp.js +199 -7
- package/module/codegen/helpers.js +19 -46
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +55 -4
- package/module/codegen/ibc/applications/transfer/v1/query.js +292 -13
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +0 -3
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.Query.js +4 -4
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +117 -5
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +3 -52
- package/module/codegen/ibc/applications/transfer/v1/tx.js +116 -11
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +2 -2
- package/module/codegen/ibc/applications/transfer/v2/packet.js +67 -3
- package/module/codegen/ibc/bundle.js +69 -58
- package/module/codegen/ibc/client.js +3 -3
- package/module/codegen/ibc/core/channel/v1/channel.js +424 -55
- package/module/codegen/ibc/core/channel/v1/genesis.js +149 -12
- package/module/codegen/ibc/core/channel/v1/query.js +1565 -93
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +0 -13
- package/module/codegen/ibc/core/channel/v1/query.rpc.Query.js +14 -14
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +21 -490
- package/module/codegen/ibc/core/channel/v1/tx.js +1049 -62
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +11 -11
- package/module/codegen/ibc/core/client/v1/client.js +424 -24
- package/module/codegen/ibc/core/client/v1/genesis.js +186 -12
- package/module/codegen/ibc/core/client/v1/query.js +861 -42
- package/module/codegen/ibc/core/client/v1/query.lcd.js +0 -8
- package/module/codegen/ibc/core/client/v1/query.rpc.Query.js +9 -9
- package/module/codegen/ibc/core/client/v1/tx.amino.js +9 -136
- package/module/codegen/ibc/core/client/v1/tx.js +402 -17
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +5 -5
- package/module/codegen/ibc/core/commitment/v1/commitment.js +227 -9
- package/module/codegen/ibc/core/connection/v1/connection.js +409 -48
- package/module/codegen/ibc/core/connection/v1/genesis.js +62 -8
- package/module/codegen/ibc/core/connection/v1/query.js +579 -33
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +0 -5
- package/module/codegen/ibc/core/connection/v1/query.rpc.Query.js +6 -6
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +9 -252
- package/module/codegen/ibc/core/connection/v1/tx.js +495 -31
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +5 -5
- package/module/codegen/ibc/core/port/v1/query.js +214 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.Query.js +27 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +103 -0
- package/module/codegen/ibc/lcd.js +47 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +57 -4
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +930 -89
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +927 -86
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +365 -27
- package/module/codegen/ibc/rpc.query.js +35 -0
- package/module/codegen/ibc/rpc.tx.js +21 -0
- package/module/codegen/ics23/bundle.js +4 -4
- package/module/codegen/index.js +5 -2
- package/module/codegen/juno/bundle.js +75 -22
- package/module/codegen/juno/client.js +15 -5
- package/module/codegen/juno/clock/v1/genesis.js +155 -0
- package/module/codegen/juno/clock/v1/query.js +256 -0
- package/module/codegen/juno/clock/v1/query.lcd.js +21 -0
- package/module/codegen/juno/clock/v1/query.rpc.Query.js +36 -0
- package/module/codegen/juno/clock/v1/tx.amino.js +8 -0
- package/module/codegen/juno/clock/v1/tx.js +167 -0
- package/module/codegen/juno/clock/v1/tx.registry.js +33 -0
- package/module/codegen/juno/clock/v1/tx.rpc.msg.js +17 -0
- package/module/codegen/juno/cwhooks/v1/genesis.js +169 -0
- package/module/codegen/juno/cwhooks/v1/query.js +385 -0
- package/module/codegen/juno/cwhooks/v1/query.lcd.js +27 -0
- package/module/codegen/juno/cwhooks/v1/query.rpc.Query.js +45 -0
- package/module/codegen/juno/cwhooks/v1/tx.amino.js +28 -0
- package/module/codegen/juno/cwhooks/v1/tx.js +719 -0
- package/module/codegen/juno/cwhooks/v1/tx.registry.js +105 -0
- package/module/codegen/juno/cwhooks/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/juno/drip/v1/genesis.js +155 -0
- package/module/codegen/juno/drip/v1/query.js +127 -0
- package/module/codegen/juno/drip/v1/query.lcd.js +15 -0
- package/module/codegen/juno/drip/v1/query.rpc.Query.js +27 -0
- package/module/codegen/juno/drip/v1/tx.amino.js +13 -0
- package/module/codegen/juno/drip/v1/tx.js +294 -0
- package/module/codegen/juno/drip/v1/tx.registry.js +51 -0
- package/module/codegen/juno/drip/v1/tx.rpc.msg.js +23 -0
- package/module/codegen/juno/feepay/v1/feepay.js +207 -0
- package/module/codegen/juno/feepay/v1/genesis.js +157 -0
- package/module/codegen/juno/feepay/v1/query.js +725 -0
- package/module/codegen/juno/feepay/v1/query.lcd.js +48 -0
- package/module/codegen/juno/feepay/v1/query.rpc.Query.js +65 -0
- package/module/codegen/juno/feepay/v1/tx.amino.js +28 -0
- package/module/codegen/juno/feepay/v1/tx.js +748 -0
- package/module/codegen/juno/feepay/v1/tx.registry.js +105 -0
- package/module/codegen/juno/feepay/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/juno/feeshare/v1/feeshare.js +54 -3
- package/module/codegen/juno/feeshare/v1/genesis.js +95 -8
- package/module/codegen/juno/feeshare/v1/query.js +433 -23
- package/module/codegen/juno/feeshare/v1/query.lcd.js +0 -5
- package/module/codegen/juno/feeshare/v1/query.rpc.Query.js +6 -6
- package/module/codegen/juno/feeshare/v1/tx.amino.js +12 -62
- package/module/codegen/juno/feeshare/v1/tx.js +400 -13
- package/module/codegen/juno/feeshare/v1/tx.registry.js +20 -2
- package/module/codegen/juno/feeshare/v1/tx.rpc.msg.js +11 -5
- package/module/codegen/juno/lcd.js +67 -0
- package/module/codegen/juno/mint/genesis.js +43 -5
- package/module/codegen/juno/mint/mint.js +115 -21
- package/module/codegen/juno/mint/query.js +378 -14
- package/module/codegen/juno/mint/query.lcd.js +6 -3
- package/module/codegen/juno/mint/query.rpc.Query.js +14 -5
- package/module/codegen/juno/mint/tx.amino.js +8 -0
- package/module/codegen/juno/mint/tx.js +167 -0
- package/module/codegen/juno/mint/tx.registry.js +33 -0
- package/module/codegen/juno/mint/tx.rpc.msg.js +17 -0
- package/module/codegen/juno/rpc.query.js +44 -0
- package/module/codegen/juno/rpc.tx.js +35 -1
- package/module/codegen/osmosis/bundle.js +17 -17
- package/module/codegen/osmosis/client.js +3 -3
- package/module/codegen/osmosis/lcd.js +47 -0
- package/module/codegen/osmosis/rpc.query.js +32 -0
- package/module/codegen/osmosis/rpc.tx.js +21 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.js +55 -3
- package/module/codegen/osmosis/tokenfactory/v1beta1/genesis.js +110 -7
- package/module/codegen/osmosis/tokenfactory/v1beta1/params.js +59 -4
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.js +290 -15
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.lcd.js +0 -3
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.js +4 -4
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.amino.js +18 -173
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.js +780 -30
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.registry.js +20 -2
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.js +14 -8
- package/module/codegen/router/bundle.js +10 -10
- package/module/codegen/router/lcd.js +47 -0
- package/module/codegen/router/rpc.query.js +32 -0
- package/module/codegen/router/v1/genesis.js +217 -22
- package/module/codegen/router/v1/query.js +69 -5
- package/module/codegen/router/v1/query.lcd.js +0 -1
- package/module/codegen/router/v1/query.rpc.Query.js +2 -2
- package/module/codegen/tendermint/abci/types.js +1996 -220
- package/module/codegen/tendermint/bundle.js +19 -19
- package/module/codegen/tendermint/crypto/keys.js +42 -3
- package/module/codegen/tendermint/crypto/proof.js +221 -18
- package/module/codegen/tendermint/libs/bits/types.js +42 -8
- package/module/codegen/tendermint/p2p/types.js +226 -23
- package/module/codegen/tendermint/types/block.js +46 -6
- package/module/codegen/tendermint/types/evidence.js +191 -24
- package/module/codegen/tendermint/types/params.js +306 -43
- package/module/codegen/tendermint/types/types.js +666 -85
- package/module/codegen/tendermint/types/validator.js +132 -21
- package/module/codegen/tendermint/version/types.js +108 -15
- package/module/codegen/utf8.js +121 -0
- package/module/codegen/varint.js +420 -0
- package/package.json +6 -6
- package/src/codegen/amino/amino.ts +1 -0
- package/src/codegen/amino/bundle.ts +4 -0
- package/src/codegen/binary.ts +534 -0
- package/src/codegen/confio/proofs.ts +828 -387
- package/src/codegen/cosmos/app/v1alpha1/config.ts +255 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +454 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +30 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +163 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +418 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +113 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +65 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +102 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +1249 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +238 -81
- package/src/codegen/cosmos/authz/v1beta1/event.ts +127 -56
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +54 -19
- package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +0 -17
- package/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +4 -15
- package/src/codegen/cosmos/authz/v1beta1/query.ts +359 -140
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +18 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +70 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +4 -12
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +336 -113
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +59 -19
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +454 -172
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +142 -60
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +0 -34
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +10 -39
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1075 -385
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +4 -101
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +0 -6
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +3 -9
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +212 -70
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +767 -356
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +197 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +166 -77
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +364 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1406 -501
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +1023 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +343 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +158 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +63 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +87 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1606 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +221 -70
- package/src/codegen/cosmos/bundle.ts +439 -157
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +312 -0
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +226 -0
- package/src/codegen/cosmos/client.ts +31 -5
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +99 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +8 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +34 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +20 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +190 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +111 -34
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +76 -39
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +280 -108
- package/src/codegen/cosmos/crypto/multisig/keys.ts +63 -21
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +118 -36
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +108 -34
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +104 -36
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +778 -261
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +591 -274
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +0 -24
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +10 -39
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1022 -353
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +8 -105
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +0 -12
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +5 -15
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +423 -133
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +146 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +95 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +33 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +43 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +405 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +8 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +34 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +23 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +207 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +560 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +93 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +55 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +634 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +13 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +52 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +34 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +384 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +95 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +100 -55
- package/src/codegen/cosmos/gov/v1/gov.ts +560 -306
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +0 -27
- package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +9 -35
- package/src/codegen/cosmos/gov/v1/query.ts +929 -365
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +10 -208
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +0 -15
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +6 -18
- package/src/codegen/cosmos/gov/v1/tx.ts +582 -213
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +107 -62
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +641 -348
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +0 -27
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +9 -35
- package/src/codegen/cosmos/gov/v1beta1/query.ts +948 -384
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +8 -159
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +0 -12
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +5 -15
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +468 -168
- package/src/codegen/cosmos/group/v1/events.ts +855 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +240 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +139 -0
- package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +162 -0
- package/src/codegen/cosmos/group/v1/query.ts +2674 -0
- package/src/codegen/cosmos/group/v1/tx.amino.ts +73 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +268 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +124 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2998 -0
- package/src/codegen/cosmos/group/v1/types.ts +1964 -0
- package/src/codegen/cosmos/lcd.ts +47 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +110 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +286 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +30 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +52 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +513 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +373 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +222 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +354 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +76 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +101 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +1360 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +8 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +34 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +20 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +213 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +566 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +348 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +250 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +34 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +44 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +495 -0
- package/src/codegen/cosmos/rpc.query.ts +32 -0
- package/src/codegen/cosmos/rpc.tx.ts +21 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +478 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +39 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +54 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +577 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +356 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +8 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +34 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +24 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +160 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +130 -84
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +170 -82
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +0 -47
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +15 -59
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1616 -586
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +1395 -616
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +10 -276
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +0 -15
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +6 -18
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +609 -224
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +306 -181
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +0 -14
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +6 -23
- package/src/codegen/cosmos/tx/v1beta1/service.ts +635 -293
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +930 -405
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +0 -14
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +6 -23
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +550 -182
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +4 -77
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +0 -6
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +3 -9
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +217 -73
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +284 -124
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +18 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +70 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +45 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +657 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +724 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -2
- package/src/codegen/cosmos_proto/cosmos.ts +125 -67
- package/src/codegen/cosmwasm/bundle.ts +32 -30
- package/src/codegen/cosmwasm/client.ts +5 -3
- package/src/codegen/cosmwasm/lcd.ts +47 -0
- package/src/codegen/cosmwasm/rpc.query.ts +32 -0
- package/src/codegen/cosmwasm/rpc.tx.ts +21 -0
- package/src/codegen/cosmwasm/wasm/v1/authz.ts +528 -180
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +356 -134
- package/src/codegen/cosmwasm/wasm/v1/ibc.ts +131 -60
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +987 -497
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +0 -36
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.Query.ts +12 -47
- package/src/codegen/cosmwasm/wasm/v1/query.ts +1352 -486
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +14 -298
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +0 -21
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +8 -24
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +893 -386
- package/src/codegen/cosmwasm/wasm/v1/types.ts +541 -300
- package/src/codegen/gaia/bundle.ts +14 -12
- package/src/codegen/gaia/globalfee/v1beta1/genesis.ts +97 -40
- package/src/codegen/gaia/globalfee/v1beta1/query.lcd.ts +0 -4
- package/src/codegen/gaia/globalfee/v1beta1/query.rpc.Query.ts +2 -7
- package/src/codegen/gaia/globalfee/v1beta1/query.ts +92 -33
- package/src/codegen/gaia/lcd.ts +47 -0
- package/src/codegen/gaia/rpc.query.ts +32 -0
- package/src/codegen/gogoproto/bundle.ts +3 -2
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +1351 -0
- package/src/codegen/google/bundle.ts +17 -10
- package/src/codegen/google/protobuf/any.ts +131 -24
- package/src/codegen/google/protobuf/descriptor.ts +1890 -1033
- package/src/codegen/google/protobuf/duration.ts +106 -41
- package/src/codegen/google/protobuf/empty.ts +49 -16
- package/src/codegen/google/protobuf/timestamp.ts +127 -39
- package/src/codegen/helpers.ts +180 -172
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +67 -26
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +0 -10
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.Query.ts +4 -15
- package/src/codegen/ibc/applications/transfer/v1/query.ts +322 -108
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +123 -46
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +2 -67
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +0 -3
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +2 -6
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +148 -75
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +74 -34
- package/src/codegen/ibc/bundle.ts +115 -90
- package/src/codegen/ibc/client.ts +5 -3
- package/src/codegen/ibc/core/channel/v1/channel.ts +489 -301
- package/src/codegen/ibc/core/channel/v1/genesis.ts +177 -68
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +0 -37
- package/src/codegen/ibc/core/channel/v1/query.rpc.Query.ts +14 -55
- package/src/codegen/ibc/core/channel/v1/query.ts +1799 -794
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +20 -637
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +0 -30
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +11 -33
- package/src/codegen/ibc/core/channel/v1/tx.ts +1224 -442
- package/src/codegen/ibc/core/client/v1/client.ts +463 -184
- package/src/codegen/ibc/core/client/v1/genesis.ts +218 -91
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +0 -24
- package/src/codegen/ibc/core/client/v1/query.rpc.Query.ts +9 -35
- package/src/codegen/ibc/core/client/v1/query.ts +929 -333
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +8 -190
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +0 -12
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +5 -15
- package/src/codegen/ibc/core/client/v1/tx.ts +461 -182
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +224 -67
- package/src/codegen/ibc/core/connection/v1/connection.ts +485 -246
- package/src/codegen/ibc/core/connection/v1/genesis.ts +81 -37
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +0 -14
- package/src/codegen/ibc/core/connection/v1/query.rpc.Query.ts +6 -23
- package/src/codegen/ibc/core/connection/v1/query.ts +653 -261
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +8 -328
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +0 -12
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +5 -15
- package/src/codegen/ibc/core/connection/v1/tx.ts +583 -242
- package/src/codegen/ibc/core/port/v1/query.rpc.Query.ts +30 -0
- package/src/codegen/ibc/core/port/v1/query.ts +269 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +135 -0
- package/src/codegen/ibc/lcd.ts +47 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +65 -28
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1061 -473
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1056 -468
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +419 -189
- package/src/codegen/ibc/rpc.query.ts +35 -0
- package/src/codegen/ibc/rpc.tx.ts +21 -0
- package/src/codegen/ics23/bundle.ts +3 -2
- package/src/codegen/index.ts +6 -3
- package/src/codegen/juno/bundle.ts +127 -34
- package/src/codegen/juno/client.ts +21 -4
- package/src/codegen/juno/clock/v1/genesis.ts +188 -0
- package/src/codegen/juno/clock/v1/query.lcd.ts +24 -0
- package/src/codegen/juno/clock/v1/query.rpc.Query.ts +41 -0
- package/src/codegen/juno/clock/v1/query.ts +298 -0
- package/src/codegen/juno/clock/v1/tx.amino.ts +8 -0
- package/src/codegen/juno/clock/v1/tx.registry.ts +34 -0
- package/src/codegen/juno/clock/v1/tx.rpc.msg.ts +25 -0
- package/src/codegen/juno/clock/v1/tx.ts +203 -0
- package/src/codegen/juno/cwhooks/v1/genesis.ts +209 -0
- package/src/codegen/juno/cwhooks/v1/query.lcd.ts +30 -0
- package/src/codegen/juno/cwhooks/v1/query.rpc.Query.ts +52 -0
- package/src/codegen/juno/cwhooks/v1/query.ts +447 -0
- package/src/codegen/juno/cwhooks/v1/tx.amino.ts +28 -0
- package/src/codegen/juno/cwhooks/v1/tx.registry.ts +106 -0
- package/src/codegen/juno/cwhooks/v1/tx.rpc.msg.ts +57 -0
- package/src/codegen/juno/cwhooks/v1/tx.ts +851 -0
- package/src/codegen/juno/drip/v1/genesis.ts +190 -0
- package/src/codegen/juno/drip/v1/query.lcd.ts +18 -0
- package/src/codegen/juno/drip/v1/query.rpc.Query.ts +30 -0
- package/src/codegen/juno/drip/v1/query.ts +151 -0
- package/src/codegen/juno/drip/v1/tx.amino.ts +13 -0
- package/src/codegen/juno/drip/v1/tx.registry.ts +52 -0
- package/src/codegen/juno/drip/v1/tx.rpc.msg.ts +27 -0
- package/src/codegen/juno/drip/v1/tx.ts +360 -0
- package/src/codegen/juno/feepay/v1/feepay.ts +257 -0
- package/src/codegen/juno/feepay/v1/genesis.ts +191 -0
- package/src/codegen/juno/feepay/v1/query.lcd.ts +51 -0
- package/src/codegen/juno/feepay/v1/query.rpc.Query.ts +76 -0
- package/src/codegen/juno/feepay/v1/query.ts +886 -0
- package/src/codegen/juno/feepay/v1/tx.amino.ts +28 -0
- package/src/codegen/juno/feepay/v1/tx.registry.ts +106 -0
- package/src/codegen/juno/feepay/v1/tx.rpc.msg.ts +52 -0
- package/src/codegen/juno/feepay/v1/tx.ts +905 -0
- package/src/codegen/juno/feeshare/v1/feeshare.ts +61 -29
- package/src/codegen/juno/feeshare/v1/genesis.ts +119 -56
- package/src/codegen/juno/feeshare/v1/query.lcd.ts +0 -18
- package/src/codegen/juno/feeshare/v1/query.rpc.Query.ts +6 -23
- package/src/codegen/juno/feeshare/v1/query.ts +504 -203
- package/src/codegen/juno/feeshare/v1/tx.amino.ts +12 -87
- package/src/codegen/juno/feeshare/v1/tx.registry.ts +20 -11
- package/src/codegen/juno/feeshare/v1/tx.rpc.msg.ts +13 -13
- package/src/codegen/juno/feeshare/v1/tx.ts +485 -120
- package/src/codegen/juno/lcd.ts +67 -0
- package/src/codegen/juno/mint/genesis.ts +58 -30
- package/src/codegen/juno/mint/mint.ts +152 -73
- package/src/codegen/juno/mint/query.lcd.ts +7 -9
- package/src/codegen/juno/mint/query.rpc.Query.ts +16 -16
- package/src/codegen/juno/mint/query.ts +431 -99
- package/src/codegen/juno/mint/tx.amino.ts +8 -0
- package/src/codegen/juno/mint/tx.registry.ts +34 -0
- package/src/codegen/juno/mint/tx.rpc.msg.ts +25 -0
- package/src/codegen/juno/mint/tx.ts +203 -0
- package/src/codegen/juno/rpc.query.ts +44 -0
- package/src/codegen/juno/rpc.tx.ts +35 -1
- package/src/codegen/osmosis/bundle.ts +28 -26
- package/src/codegen/osmosis/client.ts +5 -3
- package/src/codegen/osmosis/lcd.ts +47 -0
- package/src/codegen/osmosis/rpc.query.ts +32 -0
- package/src/codegen/osmosis/rpc.tx.ts +21 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.ts +56 -19
- package/src/codegen/osmosis/tokenfactory/v1beta1/genesis.ts +126 -47
- package/src/codegen/osmosis/tokenfactory/v1beta1/params.ts +80 -20
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.lcd.ts +0 -8
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts +4 -15
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.ts +318 -105
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.amino.ts +18 -244
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.registry.ts +20 -20
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.ts +21 -17
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.ts +881 -215
- package/src/codegen/router/bundle.ts +14 -12
- package/src/codegen/router/lcd.ts +47 -0
- package/src/codegen/router/rpc.query.ts +32 -0
- package/src/codegen/router/v1/genesis.ts +276 -119
- package/src/codegen/router/v1/query.lcd.ts +0 -4
- package/src/codegen/router/v1/query.rpc.Query.ts +2 -7
- package/src/codegen/router/v1/query.ts +85 -34
- package/src/codegen/tendermint/abci/types.ts +2651 -1184
- package/src/codegen/tendermint/bundle.ts +28 -22
- package/src/codegen/tendermint/crypto/keys.ts +51 -20
- package/src/codegen/tendermint/crypto/proof.ts +281 -108
- package/src/codegen/tendermint/libs/bits/types.ts +62 -32
- package/src/codegen/tendermint/p2p/types.ts +318 -126
- package/src/codegen/tendermint/types/block.ts +70 -33
- package/src/codegen/tendermint/types/evidence.ts +257 -112
- package/src/codegen/tendermint/types/params.ts +383 -188
- package/src/codegen/tendermint/types/types.ts +886 -437
- package/src/codegen/tendermint/types/validator.ts +191 -84
- package/src/codegen/tendermint/version/types.ts +125 -56
- package/src/codegen/utf8.ts +148 -0
- package/src/codegen/varint.ts +488 -0
@@ -0,0 +1,1351 @@
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
2
|
+
/**
|
3
|
+
* Defines the HTTP configuration for an API service. It contains a list of
|
4
|
+
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
5
|
+
* to one or more HTTP REST API methods.
|
6
|
+
*/
|
7
|
+
export interface Http {
|
8
|
+
/**
|
9
|
+
* A list of HTTP configuration rules that apply to individual API methods.
|
10
|
+
*
|
11
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
12
|
+
*/
|
13
|
+
rules: HttpRule[];
|
14
|
+
/**
|
15
|
+
* When set to true, URL path parameters will be fully URI-decoded except in
|
16
|
+
* cases of single segment matches in reserved expansion, where "%2F" will be
|
17
|
+
* left encoded.
|
18
|
+
*
|
19
|
+
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
20
|
+
* segment matches.
|
21
|
+
*/
|
22
|
+
fullyDecodeReservedExpansion: boolean;
|
23
|
+
}
|
24
|
+
export interface HttpProtoMsg {
|
25
|
+
typeUrl: "/google.api.Http";
|
26
|
+
value: Uint8Array;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Defines the HTTP configuration for an API service. It contains a list of
|
30
|
+
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
31
|
+
* to one or more HTTP REST API methods.
|
32
|
+
*/
|
33
|
+
export interface HttpAmino {
|
34
|
+
/**
|
35
|
+
* A list of HTTP configuration rules that apply to individual API methods.
|
36
|
+
*
|
37
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
38
|
+
*/
|
39
|
+
rules?: HttpRuleAmino[];
|
40
|
+
/**
|
41
|
+
* When set to true, URL path parameters will be fully URI-decoded except in
|
42
|
+
* cases of single segment matches in reserved expansion, where "%2F" will be
|
43
|
+
* left encoded.
|
44
|
+
*
|
45
|
+
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
46
|
+
* segment matches.
|
47
|
+
*/
|
48
|
+
fully_decode_reserved_expansion?: boolean;
|
49
|
+
}
|
50
|
+
export interface HttpAminoMsg {
|
51
|
+
type: "/google.api.Http";
|
52
|
+
value: HttpAmino;
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* Defines the HTTP configuration for an API service. It contains a list of
|
56
|
+
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
57
|
+
* to one or more HTTP REST API methods.
|
58
|
+
*/
|
59
|
+
export interface HttpSDKType {
|
60
|
+
rules: HttpRuleSDKType[];
|
61
|
+
fully_decode_reserved_expansion: boolean;
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* # gRPC Transcoding
|
65
|
+
*
|
66
|
+
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
67
|
+
* more HTTP REST endpoints. It allows developers to build a single API service
|
68
|
+
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
69
|
+
* APIs](https://github.com/googleapis/googleapis),
|
70
|
+
* [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
71
|
+
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
72
|
+
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
73
|
+
* and use it for large scale production services.
|
74
|
+
*
|
75
|
+
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
76
|
+
* how different portions of the gRPC request message are mapped to the URL
|
77
|
+
* path, URL query parameters, and HTTP request body. It also controls how the
|
78
|
+
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
79
|
+
* typically specified as an `google.api.http` annotation on the gRPC method.
|
80
|
+
*
|
81
|
+
* Each mapping specifies a URL path template and an HTTP method. The path
|
82
|
+
* template may refer to one or more fields in the gRPC request message, as long
|
83
|
+
* as each field is a non-repeated field with a primitive (non-message) type.
|
84
|
+
* The path template controls how fields of the request message are mapped to
|
85
|
+
* the URL path.
|
86
|
+
*
|
87
|
+
* Example:
|
88
|
+
*
|
89
|
+
* service Messaging {
|
90
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
91
|
+
* option (google.api.http) = {
|
92
|
+
* get: "/v1/{name=messages/*}"
|
93
|
+
* };
|
94
|
+
* }
|
95
|
+
* }
|
96
|
+
* message GetMessageRequest {
|
97
|
+
* string name = 1; // Mapped to URL path.
|
98
|
+
* }
|
99
|
+
* message Message {
|
100
|
+
* string text = 1; // The resource content.
|
101
|
+
* }
|
102
|
+
*
|
103
|
+
* This enables an HTTP REST to gRPC mapping as below:
|
104
|
+
*
|
105
|
+
* HTTP | gRPC
|
106
|
+
* -----|-----
|
107
|
+
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
108
|
+
*
|
109
|
+
* Any fields in the request message which are not bound by the path template
|
110
|
+
* automatically become HTTP query parameters if there is no HTTP request body.
|
111
|
+
* For example:
|
112
|
+
*
|
113
|
+
* service Messaging {
|
114
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
115
|
+
* option (google.api.http) = {
|
116
|
+
* get:"/v1/messages/{message_id}"
|
117
|
+
* };
|
118
|
+
* }
|
119
|
+
* }
|
120
|
+
* message GetMessageRequest {
|
121
|
+
* message SubMessage {
|
122
|
+
* string subfield = 1;
|
123
|
+
* }
|
124
|
+
* string message_id = 1; // Mapped to URL path.
|
125
|
+
* int64 revision = 2; // Mapped to URL query parameter `revision`.
|
126
|
+
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
127
|
+
* }
|
128
|
+
*
|
129
|
+
* This enables a HTTP JSON to RPC mapping as below:
|
130
|
+
*
|
131
|
+
* HTTP | gRPC
|
132
|
+
* -----|-----
|
133
|
+
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
134
|
+
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
135
|
+
* "foo"))`
|
136
|
+
*
|
137
|
+
* Note that fields which are mapped to URL query parameters must have a
|
138
|
+
* primitive type or a repeated primitive type or a non-repeated message type.
|
139
|
+
* In the case of a repeated type, the parameter can be repeated in the URL
|
140
|
+
* as `...?param=A¶m=B`. In the case of a message type, each field of the
|
141
|
+
* message is mapped to a separate parameter, such as
|
142
|
+
* `...?foo.a=A&foo.b=B&foo.c=C`.
|
143
|
+
*
|
144
|
+
* For HTTP methods that allow a request body, the `body` field
|
145
|
+
* specifies the mapping. Consider a REST update method on the
|
146
|
+
* message resource collection:
|
147
|
+
*
|
148
|
+
* service Messaging {
|
149
|
+
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
150
|
+
* option (google.api.http) = {
|
151
|
+
* patch: "/v1/messages/{message_id}"
|
152
|
+
* body: "message"
|
153
|
+
* };
|
154
|
+
* }
|
155
|
+
* }
|
156
|
+
* message UpdateMessageRequest {
|
157
|
+
* string message_id = 1; // mapped to the URL
|
158
|
+
* Message message = 2; // mapped to the body
|
159
|
+
* }
|
160
|
+
*
|
161
|
+
* The following HTTP JSON to RPC mapping is enabled, where the
|
162
|
+
* representation of the JSON in the request body is determined by
|
163
|
+
* protos JSON encoding:
|
164
|
+
*
|
165
|
+
* HTTP | gRPC
|
166
|
+
* -----|-----
|
167
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
168
|
+
* "123456" message { text: "Hi!" })`
|
169
|
+
*
|
170
|
+
* The special name `*` can be used in the body mapping to define that
|
171
|
+
* every field not bound by the path template should be mapped to the
|
172
|
+
* request body. This enables the following alternative definition of
|
173
|
+
* the update method:
|
174
|
+
*
|
175
|
+
* service Messaging {
|
176
|
+
* rpc UpdateMessage(Message) returns (Message) {
|
177
|
+
* option (google.api.http) = {
|
178
|
+
* patch: "/v1/messages/{message_id}"
|
179
|
+
* body: "*"
|
180
|
+
* };
|
181
|
+
* }
|
182
|
+
* }
|
183
|
+
* message Message {
|
184
|
+
* string message_id = 1;
|
185
|
+
* string text = 2;
|
186
|
+
* }
|
187
|
+
*
|
188
|
+
*
|
189
|
+
* The following HTTP JSON to RPC mapping is enabled:
|
190
|
+
*
|
191
|
+
* HTTP | gRPC
|
192
|
+
* -----|-----
|
193
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
194
|
+
* "123456" text: "Hi!")`
|
195
|
+
*
|
196
|
+
* Note that when using `*` in the body mapping, it is not possible to
|
197
|
+
* have HTTP parameters, as all fields not bound by the path end in
|
198
|
+
* the body. This makes this option more rarely used in practice when
|
199
|
+
* defining REST APIs. The common usage of `*` is in custom methods
|
200
|
+
* which don't use the URL at all for transferring data.
|
201
|
+
*
|
202
|
+
* It is possible to define multiple HTTP methods for one RPC by using
|
203
|
+
* the `additional_bindings` option. Example:
|
204
|
+
*
|
205
|
+
* service Messaging {
|
206
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
207
|
+
* option (google.api.http) = {
|
208
|
+
* get: "/v1/messages/{message_id}"
|
209
|
+
* additional_bindings {
|
210
|
+
* get: "/v1/users/{user_id}/messages/{message_id}"
|
211
|
+
* }
|
212
|
+
* };
|
213
|
+
* }
|
214
|
+
* }
|
215
|
+
* message GetMessageRequest {
|
216
|
+
* string message_id = 1;
|
217
|
+
* string user_id = 2;
|
218
|
+
* }
|
219
|
+
*
|
220
|
+
* This enables the following two alternative HTTP JSON to RPC mappings:
|
221
|
+
*
|
222
|
+
* HTTP | gRPC
|
223
|
+
* -----|-----
|
224
|
+
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
225
|
+
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
226
|
+
* "123456")`
|
227
|
+
*
|
228
|
+
* ## Rules for HTTP mapping
|
229
|
+
*
|
230
|
+
* 1. Leaf request fields (recursive expansion nested messages in the request
|
231
|
+
* message) are classified into three categories:
|
232
|
+
* - Fields referred by the path template. They are passed via the URL path.
|
233
|
+
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
234
|
+
* request body.
|
235
|
+
* - All other fields are passed via the URL query parameters, and the
|
236
|
+
* parameter name is the field path in the request message. A repeated
|
237
|
+
* field can be represented as multiple query parameters under the same
|
238
|
+
* name.
|
239
|
+
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
240
|
+
* are passed via URL path and HTTP request body.
|
241
|
+
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
242
|
+
* fields are passed via URL path and URL query parameters.
|
243
|
+
*
|
244
|
+
* ### Path template syntax
|
245
|
+
*
|
246
|
+
* Template = "/" Segments [ Verb ] ;
|
247
|
+
* Segments = Segment { "/" Segment } ;
|
248
|
+
* Segment = "*" | "**" | LITERAL | Variable ;
|
249
|
+
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
250
|
+
* FieldPath = IDENT { "." IDENT } ;
|
251
|
+
* Verb = ":" LITERAL ;
|
252
|
+
*
|
253
|
+
* The syntax `*` matches a single URL path segment. The syntax `**` matches
|
254
|
+
* zero or more URL path segments, which must be the last part of the URL path
|
255
|
+
* except the `Verb`.
|
256
|
+
*
|
257
|
+
* The syntax `Variable` matches part of the URL path as specified by its
|
258
|
+
* template. A variable template must not contain other variables. If a variable
|
259
|
+
* matches a single path segment, its template may be omitted, e.g. `{var}`
|
260
|
+
* is equivalent to `{var=*}`.
|
261
|
+
*
|
262
|
+
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
263
|
+
* contains any reserved character, such characters should be percent-encoded
|
264
|
+
* before the matching.
|
265
|
+
*
|
266
|
+
* If a variable contains exactly one path segment, such as `"{var}"` or
|
267
|
+
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
268
|
+
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
269
|
+
* server side does the reverse decoding. Such variables show up in the
|
270
|
+
* [Discovery
|
271
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
272
|
+
* `{var}`.
|
273
|
+
*
|
274
|
+
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
275
|
+
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
276
|
+
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
277
|
+
* The server side does the reverse decoding, except "%2F" and "%2f" are left
|
278
|
+
* unchanged. Such variables show up in the
|
279
|
+
* [Discovery
|
280
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
281
|
+
* `{+var}`.
|
282
|
+
*
|
283
|
+
* ## Using gRPC API Service Configuration
|
284
|
+
*
|
285
|
+
* gRPC API Service Configuration (service config) is a configuration language
|
286
|
+
* for configuring a gRPC service to become a user-facing product. The
|
287
|
+
* service config is simply the YAML representation of the `google.api.Service`
|
288
|
+
* proto message.
|
289
|
+
*
|
290
|
+
* As an alternative to annotating your proto file, you can configure gRPC
|
291
|
+
* transcoding in your service config YAML files. You do this by specifying a
|
292
|
+
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
293
|
+
* effect as the proto annotation. This can be particularly useful if you
|
294
|
+
* have a proto that is reused in multiple services. Note that any transcoding
|
295
|
+
* specified in the service config will override any matching transcoding
|
296
|
+
* configuration in the proto.
|
297
|
+
*
|
298
|
+
* Example:
|
299
|
+
*
|
300
|
+
* http:
|
301
|
+
* rules:
|
302
|
+
* # Selects a gRPC method and applies HttpRule to it.
|
303
|
+
* - selector: example.v1.Messaging.GetMessage
|
304
|
+
* get: /v1/messages/{message_id}/{sub.subfield}
|
305
|
+
*
|
306
|
+
* ## Special notes
|
307
|
+
*
|
308
|
+
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
309
|
+
* proto to JSON conversion must follow the [proto3
|
310
|
+
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
311
|
+
*
|
312
|
+
* While the single segment variable follows the semantics of
|
313
|
+
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
314
|
+
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
315
|
+
* 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
316
|
+
* does not expand special characters like `?` and `#`, which would lead
|
317
|
+
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
318
|
+
* for multi segment variables.
|
319
|
+
*
|
320
|
+
* The path variables **must not** refer to any repeated or mapped field,
|
321
|
+
* because client libraries are not capable of handling such variable expansion.
|
322
|
+
*
|
323
|
+
* The path variables **must not** capture the leading "/" character. The reason
|
324
|
+
* is that the most common use case "{var}" does not capture the leading "/"
|
325
|
+
* character. For consistency, all path variables must share the same behavior.
|
326
|
+
*
|
327
|
+
* Repeated message fields must not be mapped to URL query parameters, because
|
328
|
+
* no client library can support such complicated mapping.
|
329
|
+
*
|
330
|
+
* If an API needs to use a JSON array for request or response body, it can map
|
331
|
+
* the request or response body to a repeated field. However, some gRPC
|
332
|
+
* Transcoding implementations may not support this feature.
|
333
|
+
*/
|
334
|
+
export interface HttpRule {
|
335
|
+
/**
|
336
|
+
* Selects a method to which this rule applies.
|
337
|
+
*
|
338
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
339
|
+
*/
|
340
|
+
selector: string;
|
341
|
+
/**
|
342
|
+
* Maps to HTTP GET. Used for listing and getting information about
|
343
|
+
* resources.
|
344
|
+
*/
|
345
|
+
get?: string;
|
346
|
+
/** Maps to HTTP PUT. Used for replacing a resource. */
|
347
|
+
put?: string;
|
348
|
+
/** Maps to HTTP POST. Used for creating a resource or performing an action. */
|
349
|
+
post?: string;
|
350
|
+
/** Maps to HTTP DELETE. Used for deleting a resource. */
|
351
|
+
delete?: string;
|
352
|
+
/** Maps to HTTP PATCH. Used for updating a resource. */
|
353
|
+
patch?: string;
|
354
|
+
/**
|
355
|
+
* The custom pattern is used for specifying an HTTP method that is not
|
356
|
+
* included in the `pattern` field, such as HEAD, or "*" to leave the
|
357
|
+
* HTTP method unspecified for this rule. The wild-card rule is useful
|
358
|
+
* for services that provide content to Web (HTML) clients.
|
359
|
+
*/
|
360
|
+
custom?: CustomHttpPattern;
|
361
|
+
/**
|
362
|
+
* The name of the request field whose value is mapped to the HTTP request
|
363
|
+
* body, or `*` for mapping all request fields not captured by the path
|
364
|
+
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
365
|
+
*
|
366
|
+
* NOTE: the referred field must be present at the top-level of the request
|
367
|
+
* message type.
|
368
|
+
*/
|
369
|
+
body: string;
|
370
|
+
/**
|
371
|
+
* Optional. The name of the response field whose value is mapped to the HTTP
|
372
|
+
* response body. When omitted, the entire response message will be used
|
373
|
+
* as the HTTP response body.
|
374
|
+
*
|
375
|
+
* NOTE: The referred field must be present at the top-level of the response
|
376
|
+
* message type.
|
377
|
+
*/
|
378
|
+
responseBody: string;
|
379
|
+
/**
|
380
|
+
* Additional HTTP bindings for the selector. Nested bindings must
|
381
|
+
* not contain an `additional_bindings` field themselves (that is,
|
382
|
+
* the nesting may only be one level deep).
|
383
|
+
*/
|
384
|
+
additionalBindings: HttpRule[];
|
385
|
+
}
|
386
|
+
export interface HttpRuleProtoMsg {
|
387
|
+
typeUrl: "/google.api.HttpRule";
|
388
|
+
value: Uint8Array;
|
389
|
+
}
|
390
|
+
/**
|
391
|
+
* # gRPC Transcoding
|
392
|
+
*
|
393
|
+
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
394
|
+
* more HTTP REST endpoints. It allows developers to build a single API service
|
395
|
+
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
396
|
+
* APIs](https://github.com/googleapis/googleapis),
|
397
|
+
* [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
398
|
+
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
399
|
+
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
400
|
+
* and use it for large scale production services.
|
401
|
+
*
|
402
|
+
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
403
|
+
* how different portions of the gRPC request message are mapped to the URL
|
404
|
+
* path, URL query parameters, and HTTP request body. It also controls how the
|
405
|
+
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
406
|
+
* typically specified as an `google.api.http` annotation on the gRPC method.
|
407
|
+
*
|
408
|
+
* Each mapping specifies a URL path template and an HTTP method. The path
|
409
|
+
* template may refer to one or more fields in the gRPC request message, as long
|
410
|
+
* as each field is a non-repeated field with a primitive (non-message) type.
|
411
|
+
* The path template controls how fields of the request message are mapped to
|
412
|
+
* the URL path.
|
413
|
+
*
|
414
|
+
* Example:
|
415
|
+
*
|
416
|
+
* service Messaging {
|
417
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
418
|
+
* option (google.api.http) = {
|
419
|
+
* get: "/v1/{name=messages/*}"
|
420
|
+
* };
|
421
|
+
* }
|
422
|
+
* }
|
423
|
+
* message GetMessageRequest {
|
424
|
+
* string name = 1; // Mapped to URL path.
|
425
|
+
* }
|
426
|
+
* message Message {
|
427
|
+
* string text = 1; // The resource content.
|
428
|
+
* }
|
429
|
+
*
|
430
|
+
* This enables an HTTP REST to gRPC mapping as below:
|
431
|
+
*
|
432
|
+
* HTTP | gRPC
|
433
|
+
* -----|-----
|
434
|
+
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
435
|
+
*
|
436
|
+
* Any fields in the request message which are not bound by the path template
|
437
|
+
* automatically become HTTP query parameters if there is no HTTP request body.
|
438
|
+
* For example:
|
439
|
+
*
|
440
|
+
* service Messaging {
|
441
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
442
|
+
* option (google.api.http) = {
|
443
|
+
* get:"/v1/messages/{message_id}"
|
444
|
+
* };
|
445
|
+
* }
|
446
|
+
* }
|
447
|
+
* message GetMessageRequest {
|
448
|
+
* message SubMessage {
|
449
|
+
* string subfield = 1;
|
450
|
+
* }
|
451
|
+
* string message_id = 1; // Mapped to URL path.
|
452
|
+
* int64 revision = 2; // Mapped to URL query parameter `revision`.
|
453
|
+
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
454
|
+
* }
|
455
|
+
*
|
456
|
+
* This enables a HTTP JSON to RPC mapping as below:
|
457
|
+
*
|
458
|
+
* HTTP | gRPC
|
459
|
+
* -----|-----
|
460
|
+
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
461
|
+
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
462
|
+
* "foo"))`
|
463
|
+
*
|
464
|
+
* Note that fields which are mapped to URL query parameters must have a
|
465
|
+
* primitive type or a repeated primitive type or a non-repeated message type.
|
466
|
+
* In the case of a repeated type, the parameter can be repeated in the URL
|
467
|
+
* as `...?param=A¶m=B`. In the case of a message type, each field of the
|
468
|
+
* message is mapped to a separate parameter, such as
|
469
|
+
* `...?foo.a=A&foo.b=B&foo.c=C`.
|
470
|
+
*
|
471
|
+
* For HTTP methods that allow a request body, the `body` field
|
472
|
+
* specifies the mapping. Consider a REST update method on the
|
473
|
+
* message resource collection:
|
474
|
+
*
|
475
|
+
* service Messaging {
|
476
|
+
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
477
|
+
* option (google.api.http) = {
|
478
|
+
* patch: "/v1/messages/{message_id}"
|
479
|
+
* body: "message"
|
480
|
+
* };
|
481
|
+
* }
|
482
|
+
* }
|
483
|
+
* message UpdateMessageRequest {
|
484
|
+
* string message_id = 1; // mapped to the URL
|
485
|
+
* Message message = 2; // mapped to the body
|
486
|
+
* }
|
487
|
+
*
|
488
|
+
* The following HTTP JSON to RPC mapping is enabled, where the
|
489
|
+
* representation of the JSON in the request body is determined by
|
490
|
+
* protos JSON encoding:
|
491
|
+
*
|
492
|
+
* HTTP | gRPC
|
493
|
+
* -----|-----
|
494
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
495
|
+
* "123456" message { text: "Hi!" })`
|
496
|
+
*
|
497
|
+
* The special name `*` can be used in the body mapping to define that
|
498
|
+
* every field not bound by the path template should be mapped to the
|
499
|
+
* request body. This enables the following alternative definition of
|
500
|
+
* the update method:
|
501
|
+
*
|
502
|
+
* service Messaging {
|
503
|
+
* rpc UpdateMessage(Message) returns (Message) {
|
504
|
+
* option (google.api.http) = {
|
505
|
+
* patch: "/v1/messages/{message_id}"
|
506
|
+
* body: "*"
|
507
|
+
* };
|
508
|
+
* }
|
509
|
+
* }
|
510
|
+
* message Message {
|
511
|
+
* string message_id = 1;
|
512
|
+
* string text = 2;
|
513
|
+
* }
|
514
|
+
*
|
515
|
+
*
|
516
|
+
* The following HTTP JSON to RPC mapping is enabled:
|
517
|
+
*
|
518
|
+
* HTTP | gRPC
|
519
|
+
* -----|-----
|
520
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
521
|
+
* "123456" text: "Hi!")`
|
522
|
+
*
|
523
|
+
* Note that when using `*` in the body mapping, it is not possible to
|
524
|
+
* have HTTP parameters, as all fields not bound by the path end in
|
525
|
+
* the body. This makes this option more rarely used in practice when
|
526
|
+
* defining REST APIs. The common usage of `*` is in custom methods
|
527
|
+
* which don't use the URL at all for transferring data.
|
528
|
+
*
|
529
|
+
* It is possible to define multiple HTTP methods for one RPC by using
|
530
|
+
* the `additional_bindings` option. Example:
|
531
|
+
*
|
532
|
+
* service Messaging {
|
533
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
534
|
+
* option (google.api.http) = {
|
535
|
+
* get: "/v1/messages/{message_id}"
|
536
|
+
* additional_bindings {
|
537
|
+
* get: "/v1/users/{user_id}/messages/{message_id}"
|
538
|
+
* }
|
539
|
+
* };
|
540
|
+
* }
|
541
|
+
* }
|
542
|
+
* message GetMessageRequest {
|
543
|
+
* string message_id = 1;
|
544
|
+
* string user_id = 2;
|
545
|
+
* }
|
546
|
+
*
|
547
|
+
* This enables the following two alternative HTTP JSON to RPC mappings:
|
548
|
+
*
|
549
|
+
* HTTP | gRPC
|
550
|
+
* -----|-----
|
551
|
+
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
552
|
+
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
553
|
+
* "123456")`
|
554
|
+
*
|
555
|
+
* ## Rules for HTTP mapping
|
556
|
+
*
|
557
|
+
* 1. Leaf request fields (recursive expansion nested messages in the request
|
558
|
+
* message) are classified into three categories:
|
559
|
+
* - Fields referred by the path template. They are passed via the URL path.
|
560
|
+
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
561
|
+
* request body.
|
562
|
+
* - All other fields are passed via the URL query parameters, and the
|
563
|
+
* parameter name is the field path in the request message. A repeated
|
564
|
+
* field can be represented as multiple query parameters under the same
|
565
|
+
* name.
|
566
|
+
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
567
|
+
* are passed via URL path and HTTP request body.
|
568
|
+
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
569
|
+
* fields are passed via URL path and URL query parameters.
|
570
|
+
*
|
571
|
+
* ### Path template syntax
|
572
|
+
*
|
573
|
+
* Template = "/" Segments [ Verb ] ;
|
574
|
+
* Segments = Segment { "/" Segment } ;
|
575
|
+
* Segment = "*" | "**" | LITERAL | Variable ;
|
576
|
+
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
577
|
+
* FieldPath = IDENT { "." IDENT } ;
|
578
|
+
* Verb = ":" LITERAL ;
|
579
|
+
*
|
580
|
+
* The syntax `*` matches a single URL path segment. The syntax `**` matches
|
581
|
+
* zero or more URL path segments, which must be the last part of the URL path
|
582
|
+
* except the `Verb`.
|
583
|
+
*
|
584
|
+
* The syntax `Variable` matches part of the URL path as specified by its
|
585
|
+
* template. A variable template must not contain other variables. If a variable
|
586
|
+
* matches a single path segment, its template may be omitted, e.g. `{var}`
|
587
|
+
* is equivalent to `{var=*}`.
|
588
|
+
*
|
589
|
+
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
590
|
+
* contains any reserved character, such characters should be percent-encoded
|
591
|
+
* before the matching.
|
592
|
+
*
|
593
|
+
* If a variable contains exactly one path segment, such as `"{var}"` or
|
594
|
+
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
595
|
+
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
596
|
+
* server side does the reverse decoding. Such variables show up in the
|
597
|
+
* [Discovery
|
598
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
599
|
+
* `{var}`.
|
600
|
+
*
|
601
|
+
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
602
|
+
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
603
|
+
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
604
|
+
* The server side does the reverse decoding, except "%2F" and "%2f" are left
|
605
|
+
* unchanged. Such variables show up in the
|
606
|
+
* [Discovery
|
607
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
608
|
+
* `{+var}`.
|
609
|
+
*
|
610
|
+
* ## Using gRPC API Service Configuration
|
611
|
+
*
|
612
|
+
* gRPC API Service Configuration (service config) is a configuration language
|
613
|
+
* for configuring a gRPC service to become a user-facing product. The
|
614
|
+
* service config is simply the YAML representation of the `google.api.Service`
|
615
|
+
* proto message.
|
616
|
+
*
|
617
|
+
* As an alternative to annotating your proto file, you can configure gRPC
|
618
|
+
* transcoding in your service config YAML files. You do this by specifying a
|
619
|
+
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
620
|
+
* effect as the proto annotation. This can be particularly useful if you
|
621
|
+
* have a proto that is reused in multiple services. Note that any transcoding
|
622
|
+
* specified in the service config will override any matching transcoding
|
623
|
+
* configuration in the proto.
|
624
|
+
*
|
625
|
+
* Example:
|
626
|
+
*
|
627
|
+
* http:
|
628
|
+
* rules:
|
629
|
+
* # Selects a gRPC method and applies HttpRule to it.
|
630
|
+
* - selector: example.v1.Messaging.GetMessage
|
631
|
+
* get: /v1/messages/{message_id}/{sub.subfield}
|
632
|
+
*
|
633
|
+
* ## Special notes
|
634
|
+
*
|
635
|
+
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
636
|
+
* proto to JSON conversion must follow the [proto3
|
637
|
+
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
638
|
+
*
|
639
|
+
* While the single segment variable follows the semantics of
|
640
|
+
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
641
|
+
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
642
|
+
* 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
643
|
+
* does not expand special characters like `?` and `#`, which would lead
|
644
|
+
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
645
|
+
* for multi segment variables.
|
646
|
+
*
|
647
|
+
* The path variables **must not** refer to any repeated or mapped field,
|
648
|
+
* because client libraries are not capable of handling such variable expansion.
|
649
|
+
*
|
650
|
+
* The path variables **must not** capture the leading "/" character. The reason
|
651
|
+
* is that the most common use case "{var}" does not capture the leading "/"
|
652
|
+
* character. For consistency, all path variables must share the same behavior.
|
653
|
+
*
|
654
|
+
* Repeated message fields must not be mapped to URL query parameters, because
|
655
|
+
* no client library can support such complicated mapping.
|
656
|
+
*
|
657
|
+
* If an API needs to use a JSON array for request or response body, it can map
|
658
|
+
* the request or response body to a repeated field. However, some gRPC
|
659
|
+
* Transcoding implementations may not support this feature.
|
660
|
+
*/
|
661
|
+
export interface HttpRuleAmino {
|
662
|
+
/**
|
663
|
+
* Selects a method to which this rule applies.
|
664
|
+
*
|
665
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
|
666
|
+
*/
|
667
|
+
selector?: string;
|
668
|
+
/**
|
669
|
+
* Maps to HTTP GET. Used for listing and getting information about
|
670
|
+
* resources.
|
671
|
+
*/
|
672
|
+
get?: string;
|
673
|
+
/** Maps to HTTP PUT. Used for replacing a resource. */
|
674
|
+
put?: string;
|
675
|
+
/** Maps to HTTP POST. Used for creating a resource or performing an action. */
|
676
|
+
post?: string;
|
677
|
+
/** Maps to HTTP DELETE. Used for deleting a resource. */
|
678
|
+
delete?: string;
|
679
|
+
/** Maps to HTTP PATCH. Used for updating a resource. */
|
680
|
+
patch?: string;
|
681
|
+
/**
|
682
|
+
* The custom pattern is used for specifying an HTTP method that is not
|
683
|
+
* included in the `pattern` field, such as HEAD, or "*" to leave the
|
684
|
+
* HTTP method unspecified for this rule. The wild-card rule is useful
|
685
|
+
* for services that provide content to Web (HTML) clients.
|
686
|
+
*/
|
687
|
+
custom?: CustomHttpPatternAmino;
|
688
|
+
/**
|
689
|
+
* The name of the request field whose value is mapped to the HTTP request
|
690
|
+
* body, or `*` for mapping all request fields not captured by the path
|
691
|
+
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
692
|
+
*
|
693
|
+
* NOTE: the referred field must be present at the top-level of the request
|
694
|
+
* message type.
|
695
|
+
*/
|
696
|
+
body?: string;
|
697
|
+
/**
|
698
|
+
* Optional. The name of the response field whose value is mapped to the HTTP
|
699
|
+
* response body. When omitted, the entire response message will be used
|
700
|
+
* as the HTTP response body.
|
701
|
+
*
|
702
|
+
* NOTE: The referred field must be present at the top-level of the response
|
703
|
+
* message type.
|
704
|
+
*/
|
705
|
+
response_body?: string;
|
706
|
+
/**
|
707
|
+
* Additional HTTP bindings for the selector. Nested bindings must
|
708
|
+
* not contain an `additional_bindings` field themselves (that is,
|
709
|
+
* the nesting may only be one level deep).
|
710
|
+
*/
|
711
|
+
additional_bindings?: HttpRuleAmino[];
|
712
|
+
}
|
713
|
+
export interface HttpRuleAminoMsg {
|
714
|
+
type: "/google.api.HttpRule";
|
715
|
+
value: HttpRuleAmino;
|
716
|
+
}
|
717
|
+
/**
|
718
|
+
* # gRPC Transcoding
|
719
|
+
*
|
720
|
+
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
721
|
+
* more HTTP REST endpoints. It allows developers to build a single API service
|
722
|
+
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
723
|
+
* APIs](https://github.com/googleapis/googleapis),
|
724
|
+
* [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
725
|
+
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
726
|
+
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
727
|
+
* and use it for large scale production services.
|
728
|
+
*
|
729
|
+
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
730
|
+
* how different portions of the gRPC request message are mapped to the URL
|
731
|
+
* path, URL query parameters, and HTTP request body. It also controls how the
|
732
|
+
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
733
|
+
* typically specified as an `google.api.http` annotation on the gRPC method.
|
734
|
+
*
|
735
|
+
* Each mapping specifies a URL path template and an HTTP method. The path
|
736
|
+
* template may refer to one or more fields in the gRPC request message, as long
|
737
|
+
* as each field is a non-repeated field with a primitive (non-message) type.
|
738
|
+
* The path template controls how fields of the request message are mapped to
|
739
|
+
* the URL path.
|
740
|
+
*
|
741
|
+
* Example:
|
742
|
+
*
|
743
|
+
* service Messaging {
|
744
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
745
|
+
* option (google.api.http) = {
|
746
|
+
* get: "/v1/{name=messages/*}"
|
747
|
+
* };
|
748
|
+
* }
|
749
|
+
* }
|
750
|
+
* message GetMessageRequest {
|
751
|
+
* string name = 1; // Mapped to URL path.
|
752
|
+
* }
|
753
|
+
* message Message {
|
754
|
+
* string text = 1; // The resource content.
|
755
|
+
* }
|
756
|
+
*
|
757
|
+
* This enables an HTTP REST to gRPC mapping as below:
|
758
|
+
*
|
759
|
+
* HTTP | gRPC
|
760
|
+
* -----|-----
|
761
|
+
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
762
|
+
*
|
763
|
+
* Any fields in the request message which are not bound by the path template
|
764
|
+
* automatically become HTTP query parameters if there is no HTTP request body.
|
765
|
+
* For example:
|
766
|
+
*
|
767
|
+
* service Messaging {
|
768
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
769
|
+
* option (google.api.http) = {
|
770
|
+
* get:"/v1/messages/{message_id}"
|
771
|
+
* };
|
772
|
+
* }
|
773
|
+
* }
|
774
|
+
* message GetMessageRequest {
|
775
|
+
* message SubMessage {
|
776
|
+
* string subfield = 1;
|
777
|
+
* }
|
778
|
+
* string message_id = 1; // Mapped to URL path.
|
779
|
+
* int64 revision = 2; // Mapped to URL query parameter `revision`.
|
780
|
+
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
781
|
+
* }
|
782
|
+
*
|
783
|
+
* This enables a HTTP JSON to RPC mapping as below:
|
784
|
+
*
|
785
|
+
* HTTP | gRPC
|
786
|
+
* -----|-----
|
787
|
+
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
788
|
+
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
789
|
+
* "foo"))`
|
790
|
+
*
|
791
|
+
* Note that fields which are mapped to URL query parameters must have a
|
792
|
+
* primitive type or a repeated primitive type or a non-repeated message type.
|
793
|
+
* In the case of a repeated type, the parameter can be repeated in the URL
|
794
|
+
* as `...?param=A¶m=B`. In the case of a message type, each field of the
|
795
|
+
* message is mapped to a separate parameter, such as
|
796
|
+
* `...?foo.a=A&foo.b=B&foo.c=C`.
|
797
|
+
*
|
798
|
+
* For HTTP methods that allow a request body, the `body` field
|
799
|
+
* specifies the mapping. Consider a REST update method on the
|
800
|
+
* message resource collection:
|
801
|
+
*
|
802
|
+
* service Messaging {
|
803
|
+
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
804
|
+
* option (google.api.http) = {
|
805
|
+
* patch: "/v1/messages/{message_id}"
|
806
|
+
* body: "message"
|
807
|
+
* };
|
808
|
+
* }
|
809
|
+
* }
|
810
|
+
* message UpdateMessageRequest {
|
811
|
+
* string message_id = 1; // mapped to the URL
|
812
|
+
* Message message = 2; // mapped to the body
|
813
|
+
* }
|
814
|
+
*
|
815
|
+
* The following HTTP JSON to RPC mapping is enabled, where the
|
816
|
+
* representation of the JSON in the request body is determined by
|
817
|
+
* protos JSON encoding:
|
818
|
+
*
|
819
|
+
* HTTP | gRPC
|
820
|
+
* -----|-----
|
821
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
822
|
+
* "123456" message { text: "Hi!" })`
|
823
|
+
*
|
824
|
+
* The special name `*` can be used in the body mapping to define that
|
825
|
+
* every field not bound by the path template should be mapped to the
|
826
|
+
* request body. This enables the following alternative definition of
|
827
|
+
* the update method:
|
828
|
+
*
|
829
|
+
* service Messaging {
|
830
|
+
* rpc UpdateMessage(Message) returns (Message) {
|
831
|
+
* option (google.api.http) = {
|
832
|
+
* patch: "/v1/messages/{message_id}"
|
833
|
+
* body: "*"
|
834
|
+
* };
|
835
|
+
* }
|
836
|
+
* }
|
837
|
+
* message Message {
|
838
|
+
* string message_id = 1;
|
839
|
+
* string text = 2;
|
840
|
+
* }
|
841
|
+
*
|
842
|
+
*
|
843
|
+
* The following HTTP JSON to RPC mapping is enabled:
|
844
|
+
*
|
845
|
+
* HTTP | gRPC
|
846
|
+
* -----|-----
|
847
|
+
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
848
|
+
* "123456" text: "Hi!")`
|
849
|
+
*
|
850
|
+
* Note that when using `*` in the body mapping, it is not possible to
|
851
|
+
* have HTTP parameters, as all fields not bound by the path end in
|
852
|
+
* the body. This makes this option more rarely used in practice when
|
853
|
+
* defining REST APIs. The common usage of `*` is in custom methods
|
854
|
+
* which don't use the URL at all for transferring data.
|
855
|
+
*
|
856
|
+
* It is possible to define multiple HTTP methods for one RPC by using
|
857
|
+
* the `additional_bindings` option. Example:
|
858
|
+
*
|
859
|
+
* service Messaging {
|
860
|
+
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
861
|
+
* option (google.api.http) = {
|
862
|
+
* get: "/v1/messages/{message_id}"
|
863
|
+
* additional_bindings {
|
864
|
+
* get: "/v1/users/{user_id}/messages/{message_id}"
|
865
|
+
* }
|
866
|
+
* };
|
867
|
+
* }
|
868
|
+
* }
|
869
|
+
* message GetMessageRequest {
|
870
|
+
* string message_id = 1;
|
871
|
+
* string user_id = 2;
|
872
|
+
* }
|
873
|
+
*
|
874
|
+
* This enables the following two alternative HTTP JSON to RPC mappings:
|
875
|
+
*
|
876
|
+
* HTTP | gRPC
|
877
|
+
* -----|-----
|
878
|
+
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
879
|
+
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
880
|
+
* "123456")`
|
881
|
+
*
|
882
|
+
* ## Rules for HTTP mapping
|
883
|
+
*
|
884
|
+
* 1. Leaf request fields (recursive expansion nested messages in the request
|
885
|
+
* message) are classified into three categories:
|
886
|
+
* - Fields referred by the path template. They are passed via the URL path.
|
887
|
+
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
|
888
|
+
* request body.
|
889
|
+
* - All other fields are passed via the URL query parameters, and the
|
890
|
+
* parameter name is the field path in the request message. A repeated
|
891
|
+
* field can be represented as multiple query parameters under the same
|
892
|
+
* name.
|
893
|
+
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
|
894
|
+
* are passed via URL path and HTTP request body.
|
895
|
+
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
|
896
|
+
* fields are passed via URL path and URL query parameters.
|
897
|
+
*
|
898
|
+
* ### Path template syntax
|
899
|
+
*
|
900
|
+
* Template = "/" Segments [ Verb ] ;
|
901
|
+
* Segments = Segment { "/" Segment } ;
|
902
|
+
* Segment = "*" | "**" | LITERAL | Variable ;
|
903
|
+
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
904
|
+
* FieldPath = IDENT { "." IDENT } ;
|
905
|
+
* Verb = ":" LITERAL ;
|
906
|
+
*
|
907
|
+
* The syntax `*` matches a single URL path segment. The syntax `**` matches
|
908
|
+
* zero or more URL path segments, which must be the last part of the URL path
|
909
|
+
* except the `Verb`.
|
910
|
+
*
|
911
|
+
* The syntax `Variable` matches part of the URL path as specified by its
|
912
|
+
* template. A variable template must not contain other variables. If a variable
|
913
|
+
* matches a single path segment, its template may be omitted, e.g. `{var}`
|
914
|
+
* is equivalent to `{var=*}`.
|
915
|
+
*
|
916
|
+
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
917
|
+
* contains any reserved character, such characters should be percent-encoded
|
918
|
+
* before the matching.
|
919
|
+
*
|
920
|
+
* If a variable contains exactly one path segment, such as `"{var}"` or
|
921
|
+
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
922
|
+
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
923
|
+
* server side does the reverse decoding. Such variables show up in the
|
924
|
+
* [Discovery
|
925
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
926
|
+
* `{var}`.
|
927
|
+
*
|
928
|
+
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
929
|
+
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
930
|
+
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
931
|
+
* The server side does the reverse decoding, except "%2F" and "%2f" are left
|
932
|
+
* unchanged. Such variables show up in the
|
933
|
+
* [Discovery
|
934
|
+
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
935
|
+
* `{+var}`.
|
936
|
+
*
|
937
|
+
* ## Using gRPC API Service Configuration
|
938
|
+
*
|
939
|
+
* gRPC API Service Configuration (service config) is a configuration language
|
940
|
+
* for configuring a gRPC service to become a user-facing product. The
|
941
|
+
* service config is simply the YAML representation of the `google.api.Service`
|
942
|
+
* proto message.
|
943
|
+
*
|
944
|
+
* As an alternative to annotating your proto file, you can configure gRPC
|
945
|
+
* transcoding in your service config YAML files. You do this by specifying a
|
946
|
+
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
947
|
+
* effect as the proto annotation. This can be particularly useful if you
|
948
|
+
* have a proto that is reused in multiple services. Note that any transcoding
|
949
|
+
* specified in the service config will override any matching transcoding
|
950
|
+
* configuration in the proto.
|
951
|
+
*
|
952
|
+
* Example:
|
953
|
+
*
|
954
|
+
* http:
|
955
|
+
* rules:
|
956
|
+
* # Selects a gRPC method and applies HttpRule to it.
|
957
|
+
* - selector: example.v1.Messaging.GetMessage
|
958
|
+
* get: /v1/messages/{message_id}/{sub.subfield}
|
959
|
+
*
|
960
|
+
* ## Special notes
|
961
|
+
*
|
962
|
+
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
963
|
+
* proto to JSON conversion must follow the [proto3
|
964
|
+
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
965
|
+
*
|
966
|
+
* While the single segment variable follows the semantics of
|
967
|
+
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
968
|
+
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
969
|
+
* 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
970
|
+
* does not expand special characters like `?` and `#`, which would lead
|
971
|
+
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
972
|
+
* for multi segment variables.
|
973
|
+
*
|
974
|
+
* The path variables **must not** refer to any repeated or mapped field,
|
975
|
+
* because client libraries are not capable of handling such variable expansion.
|
976
|
+
*
|
977
|
+
* The path variables **must not** capture the leading "/" character. The reason
|
978
|
+
* is that the most common use case "{var}" does not capture the leading "/"
|
979
|
+
* character. For consistency, all path variables must share the same behavior.
|
980
|
+
*
|
981
|
+
* Repeated message fields must not be mapped to URL query parameters, because
|
982
|
+
* no client library can support such complicated mapping.
|
983
|
+
*
|
984
|
+
* If an API needs to use a JSON array for request or response body, it can map
|
985
|
+
* the request or response body to a repeated field. However, some gRPC
|
986
|
+
* Transcoding implementations may not support this feature.
|
987
|
+
*/
|
988
|
+
export interface HttpRuleSDKType {
|
989
|
+
selector: string;
|
990
|
+
get?: string;
|
991
|
+
put?: string;
|
992
|
+
post?: string;
|
993
|
+
delete?: string;
|
994
|
+
patch?: string;
|
995
|
+
custom?: CustomHttpPatternSDKType;
|
996
|
+
body: string;
|
997
|
+
response_body: string;
|
998
|
+
additional_bindings: HttpRuleSDKType[];
|
999
|
+
}
|
1000
|
+
/** A custom pattern is used for defining custom HTTP verb. */
|
1001
|
+
export interface CustomHttpPattern {
|
1002
|
+
/** The name of this custom HTTP verb. */
|
1003
|
+
kind: string;
|
1004
|
+
/** The path matched by this custom verb. */
|
1005
|
+
path: string;
|
1006
|
+
}
|
1007
|
+
export interface CustomHttpPatternProtoMsg {
|
1008
|
+
typeUrl: "/google.api.CustomHttpPattern";
|
1009
|
+
value: Uint8Array;
|
1010
|
+
}
|
1011
|
+
/** A custom pattern is used for defining custom HTTP verb. */
|
1012
|
+
export interface CustomHttpPatternAmino {
|
1013
|
+
/** The name of this custom HTTP verb. */
|
1014
|
+
kind?: string;
|
1015
|
+
/** The path matched by this custom verb. */
|
1016
|
+
path?: string;
|
1017
|
+
}
|
1018
|
+
export interface CustomHttpPatternAminoMsg {
|
1019
|
+
type: "/google.api.CustomHttpPattern";
|
1020
|
+
value: CustomHttpPatternAmino;
|
1021
|
+
}
|
1022
|
+
/** A custom pattern is used for defining custom HTTP verb. */
|
1023
|
+
export interface CustomHttpPatternSDKType {
|
1024
|
+
kind: string;
|
1025
|
+
path: string;
|
1026
|
+
}
|
1027
|
+
function createBaseHttp(): Http {
|
1028
|
+
return {
|
1029
|
+
rules: [],
|
1030
|
+
fullyDecodeReservedExpansion: false
|
1031
|
+
};
|
1032
|
+
}
|
1033
|
+
export const Http = {
|
1034
|
+
typeUrl: "/google.api.Http",
|
1035
|
+
encode(message: Http, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1036
|
+
for (const v of message.rules) {
|
1037
|
+
HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
|
1038
|
+
}
|
1039
|
+
if (message.fullyDecodeReservedExpansion === true) {
|
1040
|
+
writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
|
1041
|
+
}
|
1042
|
+
return writer;
|
1043
|
+
},
|
1044
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Http {
|
1045
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1046
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1047
|
+
const message = createBaseHttp();
|
1048
|
+
while (reader.pos < end) {
|
1049
|
+
const tag = reader.uint32();
|
1050
|
+
switch (tag >>> 3) {
|
1051
|
+
case 1:
|
1052
|
+
message.rules.push(HttpRule.decode(reader, reader.uint32()));
|
1053
|
+
break;
|
1054
|
+
case 2:
|
1055
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
1056
|
+
break;
|
1057
|
+
default:
|
1058
|
+
reader.skipType(tag & 7);
|
1059
|
+
break;
|
1060
|
+
}
|
1061
|
+
}
|
1062
|
+
return message;
|
1063
|
+
},
|
1064
|
+
fromPartial(object: Partial<Http>): Http {
|
1065
|
+
const message = createBaseHttp();
|
1066
|
+
message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || [];
|
1067
|
+
message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
|
1068
|
+
return message;
|
1069
|
+
},
|
1070
|
+
fromAmino(object: HttpAmino): Http {
|
1071
|
+
const message = createBaseHttp();
|
1072
|
+
message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || [];
|
1073
|
+
if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) {
|
1074
|
+
message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion;
|
1075
|
+
}
|
1076
|
+
return message;
|
1077
|
+
},
|
1078
|
+
toAmino(message: Http): HttpAmino {
|
1079
|
+
const obj: any = {};
|
1080
|
+
if (message.rules) {
|
1081
|
+
obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined);
|
1082
|
+
} else {
|
1083
|
+
obj.rules = [];
|
1084
|
+
}
|
1085
|
+
obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion;
|
1086
|
+
return obj;
|
1087
|
+
},
|
1088
|
+
fromAminoMsg(object: HttpAminoMsg): Http {
|
1089
|
+
return Http.fromAmino(object.value);
|
1090
|
+
},
|
1091
|
+
fromProtoMsg(message: HttpProtoMsg): Http {
|
1092
|
+
return Http.decode(message.value);
|
1093
|
+
},
|
1094
|
+
toProto(message: Http): Uint8Array {
|
1095
|
+
return Http.encode(message).finish();
|
1096
|
+
},
|
1097
|
+
toProtoMsg(message: Http): HttpProtoMsg {
|
1098
|
+
return {
|
1099
|
+
typeUrl: "/google.api.Http",
|
1100
|
+
value: Http.encode(message).finish()
|
1101
|
+
};
|
1102
|
+
}
|
1103
|
+
};
|
1104
|
+
function createBaseHttpRule(): HttpRule {
|
1105
|
+
return {
|
1106
|
+
selector: "",
|
1107
|
+
get: undefined,
|
1108
|
+
put: undefined,
|
1109
|
+
post: undefined,
|
1110
|
+
delete: undefined,
|
1111
|
+
patch: undefined,
|
1112
|
+
custom: undefined,
|
1113
|
+
body: "",
|
1114
|
+
responseBody: "",
|
1115
|
+
additionalBindings: []
|
1116
|
+
};
|
1117
|
+
}
|
1118
|
+
export const HttpRule = {
|
1119
|
+
typeUrl: "/google.api.HttpRule",
|
1120
|
+
encode(message: HttpRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1121
|
+
if (message.selector !== "") {
|
1122
|
+
writer.uint32(10).string(message.selector);
|
1123
|
+
}
|
1124
|
+
if (message.get !== undefined) {
|
1125
|
+
writer.uint32(18).string(message.get);
|
1126
|
+
}
|
1127
|
+
if (message.put !== undefined) {
|
1128
|
+
writer.uint32(26).string(message.put);
|
1129
|
+
}
|
1130
|
+
if (message.post !== undefined) {
|
1131
|
+
writer.uint32(34).string(message.post);
|
1132
|
+
}
|
1133
|
+
if (message.delete !== undefined) {
|
1134
|
+
writer.uint32(42).string(message.delete);
|
1135
|
+
}
|
1136
|
+
if (message.patch !== undefined) {
|
1137
|
+
writer.uint32(50).string(message.patch);
|
1138
|
+
}
|
1139
|
+
if (message.custom !== undefined) {
|
1140
|
+
CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
|
1141
|
+
}
|
1142
|
+
if (message.body !== "") {
|
1143
|
+
writer.uint32(58).string(message.body);
|
1144
|
+
}
|
1145
|
+
if (message.responseBody !== "") {
|
1146
|
+
writer.uint32(98).string(message.responseBody);
|
1147
|
+
}
|
1148
|
+
for (const v of message.additionalBindings) {
|
1149
|
+
HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
|
1150
|
+
}
|
1151
|
+
return writer;
|
1152
|
+
},
|
1153
|
+
decode(input: BinaryReader | Uint8Array, length?: number): HttpRule {
|
1154
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1155
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1156
|
+
const message = createBaseHttpRule();
|
1157
|
+
while (reader.pos < end) {
|
1158
|
+
const tag = reader.uint32();
|
1159
|
+
switch (tag >>> 3) {
|
1160
|
+
case 1:
|
1161
|
+
message.selector = reader.string();
|
1162
|
+
break;
|
1163
|
+
case 2:
|
1164
|
+
message.get = reader.string();
|
1165
|
+
break;
|
1166
|
+
case 3:
|
1167
|
+
message.put = reader.string();
|
1168
|
+
break;
|
1169
|
+
case 4:
|
1170
|
+
message.post = reader.string();
|
1171
|
+
break;
|
1172
|
+
case 5:
|
1173
|
+
message.delete = reader.string();
|
1174
|
+
break;
|
1175
|
+
case 6:
|
1176
|
+
message.patch = reader.string();
|
1177
|
+
break;
|
1178
|
+
case 8:
|
1179
|
+
message.custom = CustomHttpPattern.decode(reader, reader.uint32());
|
1180
|
+
break;
|
1181
|
+
case 7:
|
1182
|
+
message.body = reader.string();
|
1183
|
+
break;
|
1184
|
+
case 12:
|
1185
|
+
message.responseBody = reader.string();
|
1186
|
+
break;
|
1187
|
+
case 11:
|
1188
|
+
message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
|
1189
|
+
break;
|
1190
|
+
default:
|
1191
|
+
reader.skipType(tag & 7);
|
1192
|
+
break;
|
1193
|
+
}
|
1194
|
+
}
|
1195
|
+
return message;
|
1196
|
+
},
|
1197
|
+
fromPartial(object: Partial<HttpRule>): HttpRule {
|
1198
|
+
const message = createBaseHttpRule();
|
1199
|
+
message.selector = object.selector ?? "";
|
1200
|
+
message.get = object.get ?? undefined;
|
1201
|
+
message.put = object.put ?? undefined;
|
1202
|
+
message.post = object.post ?? undefined;
|
1203
|
+
message.delete = object.delete ?? undefined;
|
1204
|
+
message.patch = object.patch ?? undefined;
|
1205
|
+
message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined;
|
1206
|
+
message.body = object.body ?? "";
|
1207
|
+
message.responseBody = object.responseBody ?? "";
|
1208
|
+
message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || [];
|
1209
|
+
return message;
|
1210
|
+
},
|
1211
|
+
fromAmino(object: HttpRuleAmino): HttpRule {
|
1212
|
+
const message = createBaseHttpRule();
|
1213
|
+
if (object.selector !== undefined && object.selector !== null) {
|
1214
|
+
message.selector = object.selector;
|
1215
|
+
}
|
1216
|
+
if (object.get !== undefined && object.get !== null) {
|
1217
|
+
message.get = object.get;
|
1218
|
+
}
|
1219
|
+
if (object.put !== undefined && object.put !== null) {
|
1220
|
+
message.put = object.put;
|
1221
|
+
}
|
1222
|
+
if (object.post !== undefined && object.post !== null) {
|
1223
|
+
message.post = object.post;
|
1224
|
+
}
|
1225
|
+
if (object.delete !== undefined && object.delete !== null) {
|
1226
|
+
message.delete = object.delete;
|
1227
|
+
}
|
1228
|
+
if (object.patch !== undefined && object.patch !== null) {
|
1229
|
+
message.patch = object.patch;
|
1230
|
+
}
|
1231
|
+
if (object.custom !== undefined && object.custom !== null) {
|
1232
|
+
message.custom = CustomHttpPattern.fromAmino(object.custom);
|
1233
|
+
}
|
1234
|
+
if (object.body !== undefined && object.body !== null) {
|
1235
|
+
message.body = object.body;
|
1236
|
+
}
|
1237
|
+
if (object.response_body !== undefined && object.response_body !== null) {
|
1238
|
+
message.responseBody = object.response_body;
|
1239
|
+
}
|
1240
|
+
message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || [];
|
1241
|
+
return message;
|
1242
|
+
},
|
1243
|
+
toAmino(message: HttpRule): HttpRuleAmino {
|
1244
|
+
const obj: any = {};
|
1245
|
+
obj.selector = message.selector;
|
1246
|
+
obj.get = message.get;
|
1247
|
+
obj.put = message.put;
|
1248
|
+
obj.post = message.post;
|
1249
|
+
obj.delete = message.delete;
|
1250
|
+
obj.patch = message.patch;
|
1251
|
+
obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined;
|
1252
|
+
obj.body = message.body;
|
1253
|
+
obj.response_body = message.responseBody;
|
1254
|
+
if (message.additionalBindings) {
|
1255
|
+
obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined);
|
1256
|
+
} else {
|
1257
|
+
obj.additional_bindings = [];
|
1258
|
+
}
|
1259
|
+
return obj;
|
1260
|
+
},
|
1261
|
+
fromAminoMsg(object: HttpRuleAminoMsg): HttpRule {
|
1262
|
+
return HttpRule.fromAmino(object.value);
|
1263
|
+
},
|
1264
|
+
fromProtoMsg(message: HttpRuleProtoMsg): HttpRule {
|
1265
|
+
return HttpRule.decode(message.value);
|
1266
|
+
},
|
1267
|
+
toProto(message: HttpRule): Uint8Array {
|
1268
|
+
return HttpRule.encode(message).finish();
|
1269
|
+
},
|
1270
|
+
toProtoMsg(message: HttpRule): HttpRuleProtoMsg {
|
1271
|
+
return {
|
1272
|
+
typeUrl: "/google.api.HttpRule",
|
1273
|
+
value: HttpRule.encode(message).finish()
|
1274
|
+
};
|
1275
|
+
}
|
1276
|
+
};
|
1277
|
+
function createBaseCustomHttpPattern(): CustomHttpPattern {
|
1278
|
+
return {
|
1279
|
+
kind: "",
|
1280
|
+
path: ""
|
1281
|
+
};
|
1282
|
+
}
|
1283
|
+
export const CustomHttpPattern = {
|
1284
|
+
typeUrl: "/google.api.CustomHttpPattern",
|
1285
|
+
encode(message: CustomHttpPattern, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
1286
|
+
if (message.kind !== "") {
|
1287
|
+
writer.uint32(10).string(message.kind);
|
1288
|
+
}
|
1289
|
+
if (message.path !== "") {
|
1290
|
+
writer.uint32(18).string(message.path);
|
1291
|
+
}
|
1292
|
+
return writer;
|
1293
|
+
},
|
1294
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern {
|
1295
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
1296
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1297
|
+
const message = createBaseCustomHttpPattern();
|
1298
|
+
while (reader.pos < end) {
|
1299
|
+
const tag = reader.uint32();
|
1300
|
+
switch (tag >>> 3) {
|
1301
|
+
case 1:
|
1302
|
+
message.kind = reader.string();
|
1303
|
+
break;
|
1304
|
+
case 2:
|
1305
|
+
message.path = reader.string();
|
1306
|
+
break;
|
1307
|
+
default:
|
1308
|
+
reader.skipType(tag & 7);
|
1309
|
+
break;
|
1310
|
+
}
|
1311
|
+
}
|
1312
|
+
return message;
|
1313
|
+
},
|
1314
|
+
fromPartial(object: Partial<CustomHttpPattern>): CustomHttpPattern {
|
1315
|
+
const message = createBaseCustomHttpPattern();
|
1316
|
+
message.kind = object.kind ?? "";
|
1317
|
+
message.path = object.path ?? "";
|
1318
|
+
return message;
|
1319
|
+
},
|
1320
|
+
fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern {
|
1321
|
+
const message = createBaseCustomHttpPattern();
|
1322
|
+
if (object.kind !== undefined && object.kind !== null) {
|
1323
|
+
message.kind = object.kind;
|
1324
|
+
}
|
1325
|
+
if (object.path !== undefined && object.path !== null) {
|
1326
|
+
message.path = object.path;
|
1327
|
+
}
|
1328
|
+
return message;
|
1329
|
+
},
|
1330
|
+
toAmino(message: CustomHttpPattern): CustomHttpPatternAmino {
|
1331
|
+
const obj: any = {};
|
1332
|
+
obj.kind = message.kind;
|
1333
|
+
obj.path = message.path;
|
1334
|
+
return obj;
|
1335
|
+
},
|
1336
|
+
fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern {
|
1337
|
+
return CustomHttpPattern.fromAmino(object.value);
|
1338
|
+
},
|
1339
|
+
fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern {
|
1340
|
+
return CustomHttpPattern.decode(message.value);
|
1341
|
+
},
|
1342
|
+
toProto(message: CustomHttpPattern): Uint8Array {
|
1343
|
+
return CustomHttpPattern.encode(message).finish();
|
1344
|
+
},
|
1345
|
+
toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg {
|
1346
|
+
return {
|
1347
|
+
typeUrl: "/google.api.CustomHttpPattern",
|
1348
|
+
value: CustomHttpPattern.encode(message).finish()
|
1349
|
+
};
|
1350
|
+
}
|
1351
|
+
};
|